2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for linux nfs-utils 1.2.4.
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.4'
574 PACKAGE_STRING='linux nfs-utils 1.2.4'
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
647 CONFIG_NFSIDMAP_FALSE
732 MAINTAINER_MODE_FALSE
742 INSTALL_STRIP_PROGRAM
792 program_transform_name
805 enable_option_checking
806 enable_maintainer_mode
819 enable_libmount_mount
825 enable_dependency_tracking
838 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used" >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1400 \`configure' configures linux nfs-utils 1.2.4 to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of linux nfs-utils 1.2.4:";;
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-maintainer-mode enable make rules and dependencies not useful
1479 (and sometimes confusing) to the casual installer
1480 --enable-nfsv3 enable support for NFSv3 [default=yes]
1481 --enable-nfsv4 enable support for NFSv4 [default=yes]
1482 --enable-nfsv41 enable support for NFSv41 [default=no]
1483 --enable-gss enable support for rpcsec_gss [default=yes]
1484 --enable-kprefix install progs as rpc.knfsd etc
1485 --disable-uuid Exclude uuid support to avoid buggy libblkid
1486 --enable-mount Create mount.nfs and don't use the util-linux
1487 mount(8) functionality. [default=yes]
1488 --enable-libmount-mount Link mount.nfs with libmount (EXPERIMENTAL)
1489 --enable-tirpc enable use of TI-RPC [default=yes]
1490 --enable-ipv6 enable support for IPv6 [default=no]
1491 --enable-mountconfig enable mount to use a configuration file
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --disable-caps Disable capabilities support
1495 --disable-largefile omit support for large files
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-static[=PKGS] build static libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-release=XXX set release to XXX [1]
1506 --with-statedir=/foo use state dir /foo /var/lib/nfs
1507 --with-statduser=rpcuser
1508 statd to run under [rpcuser or nobody]
1509 --with-start-statd=scriptname
1510 When an nfs filesystems is mounted with locking, run
1512 --with-rpcgen=internal use internal rpcgen instead of system one
1513 --with-mountfile=filename
1514 Using filename as the NFS mount options file
1515 [/etc/nfsmounts.conf]
1516 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1517 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1518 (optionally in PATH)
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot=DIR Search for dependent libraries within DIR
1523 (or the compiler's sysroot if not specified).
1524 --with-krb5=DIR use Kerberos v5 installation in DIR
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 CXX C++ compiler command
1536 CXXFLAGS C++ compiler flags
1537 CXXCPP C++ preprocessor
1538 PKG_CONFIG path to pkg-config utility
1540 directories to add to pkg-config's search path
1542 path overriding pkg-config's built-in search path
1544 C compiler flags for GSSGLUE, overriding pkg-config
1546 linker flags for GSSGLUE, overriding pkg-config
1548 C compiler flags for RPCSECGSS, overriding pkg-config
1550 linker flags for RPCSECGSS, overriding pkg-config
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 Report bugs to <linux-nfs@vger.kernel.org>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1585 .) # We are building in place.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1618 linux nfs-utils configure 1.2.4
1619 generated by GNU Autoconf 2.68
1621 Copyright (C) 2010 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 $as_test_x conftest$ac_exeext
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1758 ac_fn_c_check_header_mongrel ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if eval \${$3+:} false; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1782 ac_header_compiler=no
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1798 ac_header_preproc=no
1800 rm -f conftest.err conftest.i conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( $as_echo "## ---------------------------------------- ##
1824 ## Report this to linux-nfs@vger.kernel.org ##
1825 ## ---------------------------------------- ##"
1826 ) | sed "s/^/$as_me: WARNING: /" >&2
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1834 eval "$3=\$ac_header_compiler"
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_c_check_header_mongrel
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1878 ac_retval=$ac_status
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1903 if ac_fn_c_try_compile "$LINENO"; then :
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_compile
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1940 # include <limits.h>
1942 # include <assert.h>
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1969 if ac_fn_c_try_link "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_func
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext
1991 if { { ac_try="$ac_compile"
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_compile") 2>conftest.err
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest.$ac_objext; then :
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2020 } # ac_fn_cxx_try_compile
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } > conftest.i && {
2044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045 test ! -s conftest.err
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_cxx_try_cpp
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext conftest$ac_exeext
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>conftest.err
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_cxx_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest$ac_exeext && {
2085 test "$cross_compiling" = yes ||
2086 $as_test_x conftest$ac_exeext
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2095 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097 # interfere with the next link command; also delete a directory that is
2098 # left behind by Apple's compiler. We do this before executing the actions.
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_cxx_try_link
2105 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2106 # ---------------------------------------------
2107 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2109 ac_fn_c_check_decl ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 as_decl_name=`echo $2|sed 's/ *(.*//'`
2113 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2115 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2125 #ifndef $as_decl_name
2127 (void) $as_decl_use;
2129 (void) $as_decl_name;
2137 if ac_fn_c_try_compile "$LINENO"; then :
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_decl
2151 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2152 # -------------------------------------------
2153 # Tests whether TYPE exists after having included INCLUDES, setting cache
2154 # variable VAR accordingly.
2155 ac_fn_c_check_type ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2189 if ac_fn_c_try_compile "$LINENO"; then :
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_c_check_type
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2210 ac_fn_c_compute_int ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if test "$cross_compiling" = yes; then
2214 # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) >= 0)];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2237 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 ac_hi=$ac_mid; break
2247 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2248 if test $ac_lo -le $ac_mid; then
2252 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) < 0)];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2279 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 ac_lo=$ac_mid; break
2289 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2290 if test $ac_mid -le $ac_hi; then
2294 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 # Binary search between lo and hi bounds.
2305 while test "x$ac_lo" != "x$ac_hi"; do
2306 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2313 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2320 if ac_fn_c_try_compile "$LINENO"; then :
2323 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2335 static long int longval () { return $2; }
2336 static unsigned long int ulongval () { return $2; }
2343 FILE *f = fopen ("conftest.val", "w");
2348 long int i = longval ();
2351 fprintf (f, "%ld", i);
2355 unsigned long int i = ulongval ();
2358 fprintf (f, "%lu", i);
2360 /* Do not output a trailing newline, as this causes \r\n confusion
2361 on some platforms. */
2362 return ferror (f) || fclose (f) != 0;
2368 if ac_fn_c_try_run "$LINENO"; then :
2369 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2374 conftest.$ac_objext conftest.beam conftest.$ac_ext
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379 as_fn_set_status $ac_retval
2381 } # ac_fn_c_compute_int
2382 cat >config.log <<_ACEOF
2383 This file contains any messages produced by compilers while
2384 running configure, to aid debugging if configure makes a mistake.
2386 It was created by linux nfs-utils $as_me 1.2.4, which was
2387 generated by GNU Autoconf 2.68. Invocation command line was
2399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2406 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2408 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2409 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2411 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2412 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2413 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2414 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 $as_echo "PATH: $as_dir"
2439 # Keep a trace of the command line.
2440 # Strip out --no-create and --no-recursion so they do not pile up.
2441 # Strip out --silent because we don't want to record it for future runs.
2442 # Also quote any args containing shell meta-characters.
2443 # Make two passes to allow for proper duplicate-argument suppression.
2447 ac_must_keep_next=false
2453 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2455 | -silent | --silent | --silen | --sile | --sil)
2458 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2463 as_fn_append ac_configure_args1 " '$ac_arg'"
2464 if test $ac_must_keep_next = true; then
2465 ac_must_keep_next=false # Got value, back to normal.
2468 *=* | --config-cache | -C | -disable-* | --disable-* \
2469 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2470 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2471 | -with-* | --with-* | -without-* | --without-* | --x)
2472 case "$ac_configure_args0 " in
2473 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2476 -* ) ac_must_keep_next=true ;;
2479 as_fn_append ac_configure_args " '$ac_arg'"
2484 { ac_configure_args0=; unset ac_configure_args0;}
2485 { ac_configure_args1=; unset ac_configure_args1;}
2487 # When interrupted or exit'd, cleanup temporary files, and complete
2488 # config.log. We remove comments because anyway the quotes in there
2489 # would cause problems or look ugly.
2490 # WARNING: Use '\'' to represent an apostrophe within the trap.
2491 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2492 trap 'exit_status=$?
2493 # Save into config.log some information that might help in debugging.
2497 $as_echo "## ---------------- ##
2498 ## Cache variables. ##
2499 ## ---------------- ##"
2501 # The following way of writing the cache mishandles newlines in values,
2503 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2504 eval ac_val=\$$ac_var
2508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2512 _ | IFS | as_nl) ;; #(
2513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2514 *) { eval $ac_var=; unset $ac_var;} ;;
2519 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2520 *${as_nl}ac_space=\ *)
2522 "s/'\''/'\''\\\\'\'''\''/g;
2523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2533 $as_echo "## ----------------- ##
2534 ## Output variables. ##
2535 ## ----------------- ##"
2537 for ac_var in $ac_subst_vars
2539 eval ac_val=\$$ac_var
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 $as_echo "$ac_var='\''$ac_val'\''"
2547 if test -n "$ac_subst_files"; then
2548 $as_echo "## ------------------- ##
2549 ## File substitutions. ##
2550 ## ------------------- ##"
2552 for ac_var in $ac_subst_files
2554 eval ac_val=\$$ac_var
2556 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2558 $as_echo "$ac_var='\''$ac_val'\''"
2563 if test -s confdefs.h; then
2564 $as_echo "## ----------- ##
2571 test "$ac_signal" != 0 &&
2572 $as_echo "$as_me: caught signal $ac_signal"
2573 $as_echo "$as_me: exit $exit_status"
2575 rm -f core *.core core.conftest.* &&
2576 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2579 for ac_signal in 1 2 13 15; do
2580 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2584 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2585 rm -f -r conftest* confdefs.h
2587 $as_echo "/* confdefs.h */" > confdefs.h
2589 # Predefined preprocessor variables.
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_NAME "$PACKAGE_NAME"
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2603 cat >>confdefs.h <<_ACEOF
2604 #define PACKAGE_STRING "$PACKAGE_STRING"
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_URL "$PACKAGE_URL"
2616 # Let the site file select an alternate cache file if it wants to.
2617 # Prefer an explicitly selected file to automatically selected ones.
2620 if test -n "$CONFIG_SITE"; then
2621 # We do not want a PATH search for config.site.
2622 case $CONFIG_SITE in #((
2623 -*) ac_site_file1=./$CONFIG_SITE;;
2624 */*) ac_site_file1=$CONFIG_SITE;;
2625 *) ac_site_file1=./$CONFIG_SITE;;
2627 elif test "x$prefix" != xNONE; then
2628 ac_site_file1=$prefix/share/config.site
2629 ac_site_file2=$prefix/etc/config.site
2631 ac_site_file1=$ac_default_prefix/share/config.site
2632 ac_site_file2=$ac_default_prefix/etc/config.site
2634 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2636 test "x$ac_site_file" = xNONE && continue
2637 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2639 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2640 sed 's/^/| /' "$ac_site_file" >&5
2642 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 as_fn_error $? "failed to load site script $ac_site_file
2645 See \`config.log' for more details" "$LINENO" 5; }
2649 if test -r "$cache_file"; then
2650 # Some versions of bash will fail to source /dev/null (special files
2651 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2652 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2654 $as_echo "$as_me: loading cache $cache_file" >&6;}
2656 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2657 *) . "./$cache_file";;
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2662 $as_echo "$as_me: creating cache $cache_file" >&6;}
2666 # Check that the precious variables saved in the cache have kept the same
2668 ac_cache_corrupted=false
2669 for ac_var in $ac_precious_vars; do
2670 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2671 eval ac_new_set=\$ac_env_${ac_var}_set
2672 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2673 eval ac_new_val=\$ac_env_${ac_var}_value
2674 case $ac_old_set,$ac_new_set in
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2677 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2685 if test "x$ac_old_val" != "x$ac_new_val"; then
2686 # differences in whitespace do not lead to failure.
2687 ac_old_val_w=`echo x $ac_old_val`
2688 ac_new_val_w=`echo x $ac_new_val`
2689 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2691 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2692 ac_cache_corrupted=:
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2695 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2696 eval $ac_var=\$ac_old_val
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2699 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2701 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2704 # Pass precious variables to config.status.
2705 if test "$ac_new_set" = set; then
2707 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2708 *) ac_arg=$ac_var=$ac_new_val ;;
2710 case " $ac_configure_args " in
2711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2712 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2716 if $ac_cache_corrupted; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2720 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2721 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2723 ## -------------------- ##
2724 ## Main body of script. ##
2725 ## -------------------- ##
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2740 elif test -f "$ac_dir/install.sh"; then
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2744 elif test -f "$ac_dir/shtool"; then
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 ac_build_alias=$build_alias
2773 test "x$ac_build_alias" = x &&
2774 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x &&
2776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2785 *) as_fn_error $? "invalid value of canonical build" "$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 $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 if test "x$host_alias" = x; then
2807 ac_cv_host=$ac_cv_build
2809 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 ac_save_IFS=$IFS; IFS='-'
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835 am__api_version='1.11'
2837 # Find a good install program. We prefer a C program (faster),
2838 # so one script is as good as another. But avoid the broken or
2839 # incompatible versions:
2840 # SysV /etc/install, /usr/sbin/install
2841 # SunOS /usr/etc/install
2842 # IRIX /sbin/install
2844 # AmigaOS /C/install, which installs bootblocks on floppy discs
2845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2848 # OS/2's system install, which has a completely different semantic
2849 # ./install, which can be erroneously created by make from ./install.sh.
2850 # Reject install programs that cannot install multiple files.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2852 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2853 if test -z "$INSTALL"; then
2854 if ${ac_cv_path_install+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 # Account for people who put trailing slashes in PATH elements.
2863 case $as_dir/ in #((
2864 ./ | .// | /[cC]/* | \
2865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2866 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2869 # OSF1 and SCO ODT 3.0 have their own names for install.
2870 # Don't use installbsd from OSF since it installs stuff as root
2872 for ac_prog in ginstall scoinst install; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2875 if test $ac_prog = install &&
2876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877 # AIX install. It has an incompatible calling convention.
2879 elif test $ac_prog = install &&
2880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2881 # program-specific install script used by HP pwplus--don't use.
2884 rm -rf conftest.one conftest.two conftest.dir
2885 echo one > conftest.one
2886 echo two > conftest.two
2888 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2889 test -s conftest.one && test -s conftest.two &&
2890 test -s conftest.dir/conftest.one &&
2891 test -s conftest.dir/conftest.two
2893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2906 rm -rf conftest.one conftest.two conftest.dir
2909 if test "${ac_cv_path_install+set}" = set; then
2910 INSTALL=$ac_cv_path_install
2912 # As a last resort, use the slow shell script. Don't cache a
2913 # value for INSTALL within a source directory, because that will
2914 # break other packages using the cache if that directory is
2915 # removed, or if the value is a relative name.
2916 INSTALL=$ac_install_sh
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2920 $as_echo "$INSTALL" >&6; }
2922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2923 # It thinks the first close brace ends the variable substitution.
2924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2931 $as_echo_n "checking whether build environment is sane... " >&6; }
2934 echo timestamp > conftest.file
2935 # Reject unsafe characters in $srcdir or the absolute working directory
2936 # name. Accept space and tab only in the latter.
2940 *[\\\"\#\$\&\'\`$am_lf]*)
2941 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2944 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2945 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2948 # Do `set' in a subshell so we don't clobber the current shell's
2949 # arguments. Must try -L first in case configure is actually a
2950 # symlink; some systems play weird games with the mod time of symlinks
2951 # (eg FreeBSD returns the mod time of the symlink's containing
2954 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2955 if test "$*" = "X"; then
2957 set X `ls -t "$srcdir/configure" conftest.file`
2960 if test "$*" != "X $srcdir/configure conftest.file" \
2961 && test "$*" != "X conftest.file $srcdir/configure"; then
2963 # If neither matched, then we have a broken ls. This can happen
2964 # if, for instance, CONFIG_SHELL is bash and it inherits a
2965 # broken ls alias from the environment. This has actually
2966 # happened. Such a system could not be considered "sane".
2967 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2968 alias in your environment" "$LINENO" 5
2971 test "$2" = conftest.file
2977 as_fn_error $? "newly created file is older than distributed files!
2978 Check your system clock" "$LINENO" 5
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 test "$program_prefix" != NONE &&
2983 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2984 # Use a double $ so make ignores it.
2985 test "$program_suffix" != NONE &&
2986 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2987 # Double any \ or $.
2988 # By default was `s,x,x', remove it if useless.
2989 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2990 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2992 # expand $ac_aux_dir to an absolute path
2993 am_aux_dir=`cd $ac_aux_dir && pwd`
2995 if test x"${MISSING+set}" != xset; then
2998 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3000 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3003 # Use eval to expand $SHELL
3004 if eval "$MISSING --run true"; then
3005 am_missing_run="$MISSING --run "
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3009 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3012 if test x"${install_sh}" != xset; then
3015 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3017 install_sh="\${SHELL} $am_aux_dir/install-sh"
3021 # Installed binaries are usually stripped using `strip' when the user
3022 # run `make install-strip'. However `strip' might not be the right
3023 # tool to use in cross-compilation environments, therefore Automake
3024 # will honor the `STRIP' environment variable to overrule this program.
3025 if test "$cross_compiling" != no; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}strip; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_STRIP+:} false; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$STRIP"; then
3035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 STRIP=$ac_cv_prog_STRIP
3055 if test -n "$STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057 $as_echo "$STRIP" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$ac_cv_prog_STRIP"; then
3067 # Extract the first word of "strip", so it can be a program name with args.
3068 set dummy strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$ac_ct_STRIP"; then
3075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_STRIP="strip"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3095 if test -n "$ac_ct_STRIP"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097 $as_echo "$ac_ct_STRIP" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3103 if test "x$ac_ct_STRIP" = x; then
3106 case $cross_compiling:$ac_tool_warned in
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3115 STRIP="$ac_cv_prog_STRIP"
3119 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123 if test -z "$MKDIR_P"; then
3124 if ${ac_cv_path_mkdir+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3131 test -z "$as_dir" && as_dir=.
3132 for ac_prog in mkdir gmkdir; do
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136 'mkdir (GNU coreutils) '* | \
3137 'mkdir (coreutils) '* | \
3138 'mkdir (fileutils) '4.1*)
3139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3149 test -d ./--version && rmdir ./--version
3150 if test "${ac_cv_path_mkdir+set}" = set; then
3151 MKDIR_P="$ac_cv_path_mkdir -p"
3153 # As a last resort, use the slow shell script. Don't cache a
3154 # value for MKDIR_P within a source directory, because that will
3155 # break other packages using the cache if that directory is
3156 # removed, or if the value is a relative name.
3157 MKDIR_P="$ac_install_sh -d"
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161 $as_echo "$MKDIR_P" >&6; }
3165 [\\/$]* | ?:[\\/]*) ;;
3166 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3169 for ac_prog in gawk mawk nawk awk
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_AWK+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$AWK"; then
3179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_AWK="$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$AWK"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3201 $as_echo "$AWK" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3208 test -n "$AWK" && break
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3214 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3215 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3216 $as_echo_n "(cached) " >&6
3218 cat >conftest.make <<\_ACEOF
3221 @echo '@@@%%%=$(MAKE)=@@@%%%'
3223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3226 eval ac_cv_prog_make_${ac_make}_set=yes;;
3228 eval ac_cv_prog_make_${ac_make}_set=no;;
3232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 SET_MAKE="MAKE=${MAKE-make}"
3242 rm -rf .tst 2>/dev/null
3243 mkdir .tst 2>/dev/null
3244 if test -d .tst; then
3249 rmdir .tst 2>/dev/null
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253 # is not polluted with repeated "-I."
3254 am__isrc=' -I$(srcdir)'
3255 # test to see if srcdir already configured
3256 if test -f $srcdir/config.status; then
3257 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263 if (cygpath --version) >/dev/null 2>/dev/null; then
3264 CYGPATH_W='cygpath -w'
3271 # Define the identity of the package.
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE "$PACKAGE"
3281 cat >>confdefs.h <<_ACEOF
3282 #define VERSION "$VERSION"
3285 # Some tools Automake needs.
3287 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3293 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3299 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3301 # We need awk for the "check" target. The system "awk" is bad on
3303 # Always define AMTAR for backward compatibility.
3305 AMTAR=${AMTAR-"${am_missing_run}tar"}
3307 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3317 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3318 # Check whether --enable-maintainer-mode was given.
3319 if test "${enable_maintainer_mode+set}" = set; then :
3320 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3322 USE_MAINTAINER_MODE=no
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3326 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3327 if test $USE_MAINTAINER_MODE = yes; then
3328 MAINTAINER_MODE_TRUE=
3329 MAINTAINER_MODE_FALSE='#'
3331 MAINTAINER_MODE_TRUE='#'
3332 MAINTAINER_MODE_FALSE=
3335 MAINT=$MAINTAINER_MODE_TRUE
3340 # Check whether --with-release was given.
3341 if test "${with_release+set}" = set; then :
3342 withval=$with_release; RELEASE=$withval
3349 # Check whether --with-statedir was given.
3350 if test "${with_statedir+set}" = set; then :
3351 withval=$with_statedir; statedir=$withval
3353 statedir=/var/lib/nfs
3358 # Check whether --with-statduser was given.
3359 if test "${with_statduser+set}" = set; then :
3360 withval=$with_statduser; statduser=$withval
3362 if test "x$cross_compiling" = "xno"; then
3363 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3375 # Check whether --with-start-statd was given.
3376 if test "${with_start_statd+set}" = set; then :
3377 withval=$with_start_statd; startstatd=$withval
3379 startstatd=/usr/sbin/start-statd
3385 cat >>confdefs.h <<_ACEOF
3386 #define START_STATD "$startstatd"
3389 # Check whether --enable-nfsv3 was given.
3390 if test "${enable_nfsv3+set}" = set; then :
3391 enableval=$enable_nfsv3; enable_nfsv3=$enableval
3396 if test "$enable_nfsv3" = yes; then
3398 $as_echo "#define NFS3_SUPPORTED 1" >>confdefs.h
3404 # Check whether --enable-nfsv4 was given.
3405 if test "${enable_nfsv4+set}" = set; then :
3406 enableval=$enable_nfsv4; enable_nfsv4=$enableval
3411 if test "$enable_nfsv4" = yes; then
3413 $as_echo "#define NFS4_SUPPORTED 1" >>confdefs.h
3422 if test "$enable_nfsv4" = "yes"; then
3424 CONFIG_NFSV4_FALSE='#'
3426 CONFIG_NFSV4_TRUE='#'
3431 # Check whether --enable-nfsv41 was given.
3432 if test "${enable_nfsv41+set}" = set; then :
3433 enableval=$enable_nfsv41; enable_nfsv41=$enableval
3438 if test "$enable_nfsv41" = yes; then
3440 $as_echo "#define NFS41_SUPPORTED 1" >>confdefs.h
3446 if test "$enable_nfsv41" = "yes"; then
3448 CONFIG_NFSV41_FALSE='#'
3450 CONFIG_NFSV41_TRUE='#'
3451 CONFIG_NFSV41_FALSE=
3455 # Check whether --enable-gss was given.
3456 if test "${enable_gss+set}" = set; then :
3457 enableval=$enable_gss; enable_gss=$enableval
3462 if test "$enable_gss" = yes; then
3464 $as_echo "#define GSS_SUPPORTED 1" >>confdefs.h
3476 if test "$enable_gss" = "yes"; then
3478 CONFIG_GSS_FALSE='#'
3484 # Check whether --enable-kprefix was given.
3485 if test "${enable_kprefix+set}" = set; then :
3486 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3493 # Check whether --with-rpcgen was given.
3494 if test "${with_rpcgen+set}" = set; then :
3495 withval=$with_rpcgen; rpcgen_path=$withval
3501 if test "$rpcgen_path" == "yes"; then
3502 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3503 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3504 elif test "$rpcgen_path" != "internal"; then
3505 RPCGEN_PATH=$rpcgen_path
3508 if test "$RPCGEN_PATH" == ""; then
3510 CONFIG_RPCGEN_FALSE='#'
3512 CONFIG_RPCGEN_TRUE='#'
3513 CONFIG_RPCGEN_FALSE=
3516 # Check whether --enable-uuid was given.
3517 if test "${enable_uuid+set}" = set; then :
3518 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3520 choose_blkid=default
3523 # Check whether --enable-mount was given.
3524 if test "${enable_mount+set}" = set; then :
3525 enableval=$enable_mount; enable_mount=$enableval
3530 if test "$enable_mount" = "yes"; then
3532 CONFIG_MOUNT_FALSE='#'
3534 CONFIG_MOUNT_TRUE='#'
3539 if test "$enable_mount" = yes; then
3540 # Check whether --enable-libmount-mount was given.
3541 if test "${enable_libmount_mount+set}" = set; then :
3542 enableval=$enable_libmount_mount; enable_libmount=yes
3549 # Check whether --enable-tirpc was given.
3550 if test "${enable_tirpc+set}" = set; then :
3551 enableval=$enable_tirpc; enable_tirpc=$enableval
3556 # Check whether --enable-ipv6 was given.
3557 if test "${enable_ipv6+set}" = set; then :
3558 enableval=$enable_ipv6; enable_ipv6=$enableval
3563 if test "$enable_ipv6" = yes; then
3565 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3571 if test "$enable_ipv6" = "yes"; then
3573 CONFIG_IPV6_FALSE='#'
3575 CONFIG_IPV6_TRUE='#'
3580 if test "$enable_mount" = yes; then
3581 # Check whether --enable-mountconfig was given.
3582 if test "${enable_mountconfig+set}" = set; then :
3583 enableval=$enable_mountconfig; mountconfig=$enableval
3588 if test "$enable_mountconfig" = yes; then
3590 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3593 # Check whether --with-mountfile was given.
3594 if test "${with_mountfile+set}" = set; then :
3595 withval=$with_mountfile; mountfile=$withval
3597 mountfile=/etc/nfsmount.conf
3602 cat >>confdefs.h <<_ACEOF
3603 #define MOUNTOPTS_CONFFILE "$mountfile"
3610 if test "$enable_mountconfig" = "yes"; then
3612 MOUNT_CONFIG_FALSE='#'
3614 MOUNT_CONFIG_TRUE='#'
3619 if test "$enable_mount" = "yes"; then
3621 MOUNT_CONFIG_FALSE='#'
3623 MOUNT_CONFIG_TRUE='#'
3629 DEPDIR="${am__leading_dot}deps"
3631 ac_config_commands="$ac_config_commands depfiles"
3634 am_make=${MAKE-make}
3635 cat > confinc << 'END'
3637 @echo this is the am__doit target
3640 # If we don't find an include directive, just comment out the code.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3642 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3646 # First try GNU make style include.
3647 echo "include confinc" > confmf
3648 # Ignore all kinds of additional output from `make'.
3649 case `$am_make -s -f confmf 2> /dev/null` in #(
3650 *the\ am__doit\ target*)
3656 # Now try BSD make style include.
3657 if test "$am__include" = "#"; then
3658 echo '.include "confinc"' > confmf
3659 case `$am_make -s -f confmf 2> /dev/null` in #(
3660 *the\ am__doit\ target*)
3661 am__include=.include
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3670 $as_echo "$_am_result" >&6; }
3671 rm -f confinc confmf
3673 # Check whether --enable-dependency-tracking was given.
3674 if test "${enable_dependency_tracking+set}" = set; then :
3675 enableval=$enable_dependency_tracking;
3678 if test "x$enable_dependency_tracking" != xno; then
3679 am_depcomp="$ac_aux_dir/depcomp"
3682 if test "x$enable_dependency_tracking" != xno; then
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 if test -n "$ac_tool_prefix"; then
3697 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$CC"; then
3705 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3735 if test -z "$ac_cv_prog_CC"; then
3737 # Extract the first word of "gcc", so it can be a program name with args.
3738 set dummy gcc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_ac_ct_CC="gcc"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3773 if test "x$ac_ct_CC" = x; then
3776 case $cross_compiling:$ac_tool_warned in
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3788 if test -z "$CC"; then
3789 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_CC+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 ac_cv_prog_CC="${ac_tool_prefix}cc"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3829 if test -z "$CC"; then
3830 # Extract the first word of "cc", so it can be a program name with args.
3831 set dummy cc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3849 ac_prog_rejected=yes
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 if test $ac_prog_rejected = yes; then
3861 # We found a bogon in the path, so make sure we never use it.
3862 set dummy $ac_cv_prog_CC
3864 if test $# != 0; then
3865 # We chose a different compiler from the bogus one.
3866 # However, it has the same basename, so the bogon will be chosen
3867 # first if we set CC to just the basename; use the full file name.
3869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3885 if test -z "$CC"; then
3886 if test -n "$ac_tool_prefix"; then
3887 for ac_prog in cl.exe
3889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3926 test -n "$CC" && break
3929 if test -z "$CC"; then
3931 for ac_prog in cl.exe
3933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$ac_ct_CC"; then
3941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_ac_ct_CC="$ac_prog"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 test -n "$ac_ct_CC" && break
3973 if test "x$ac_ct_CC" = x; then
3976 case $cross_compiling:$ac_tool_warned in
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "no acceptable C compiler found in \$PATH
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 # Provide some information about the compiler.
3995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3998 for ac_option in --version -v -V -qversion; do
3999 { { ac_try="$ac_compiler $ac_option >&5"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4008 if test -s conftest.err; then
4010 ... rest of stderr output deleted ...
4011 10q' conftest.err >conftest.er1
4012 cat conftest.er1 >&5
4014 rm -f conftest.er1 conftest.err
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4030 ac_clean_files_save=$ac_clean_files
4031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4032 # Try to create an executable without -o first, disregard a.out.
4033 # It will help us diagnose broken compilers, and finding out an intuition
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4036 $as_echo_n "checking whether the C compiler works... " >&6; }
4037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4039 # The possible output files:
4040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4043 for ac_file in $ac_files
4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4052 if { { ac_try="$ac_link_default"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_link_default") 2>&5
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; then :
4063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4066 # so that the user can short-circuit this test for compilers unknown to
4068 for ac_file in $ac_files ''
4070 test -f "$ac_file" || continue
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4075 # We found the default executable, but exeext='' is most
4079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4083 # We set ac_cv_exeext here because the later test for it is not
4084 # safe: cross compilers may not add the suffix if given an `-o'
4085 # argument, so we may need to know it at that point already.
4086 # Even if this section looks crufty: it has the advantage of
4093 test "$ac_cv_exeext" = no && ac_cv_exeext=
4098 if test -z "$ac_file"; then :
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error 77 "C compiler cannot create executables
4107 See \`config.log' for more details" "$LINENO" 5; }
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4113 $as_echo_n "checking for C compiler default output file name... " >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4115 $as_echo "$ac_file" >&6; }
4116 ac_exeext=$ac_cv_exeext
4118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4119 ac_clean_files=$ac_clean_files_save
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4121 $as_echo_n "checking for suffix of executables... " >&6; }
4122 if { { ac_try="$ac_link"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_link") 2>&5
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; then :
4133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4134 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4135 # work properly (i.e., refer to `conftest.exe'), while it won't with
4137 for ac_file in conftest.exe conftest conftest.*; do
4138 test -f "$ac_file" || continue
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4150 See \`config.log' for more details" "$LINENO" 5; }
4152 rm -f conftest conftest$ac_cv_exeext
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4154 $as_echo "$ac_cv_exeext" >&6; }
4156 rm -f conftest.$ac_ext
4157 EXEEXT=$ac_cv_exeext
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4165 FILE *f = fopen ("conftest.out", "w");
4166 return ferror (f) || fclose (f) != 0;
4172 ac_clean_files="$ac_clean_files conftest.out"
4173 # Check that the compiler produces executables we can run. If not, either
4174 # the compiler is broken, or we cross compile.
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4176 $as_echo_n "checking whether we are cross compiling... " >&6; }
4177 if test "$cross_compiling" != yes; then
4178 { { ac_try="$ac_link"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185 (eval "$ac_link") 2>&5
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4189 if { ac_try='./conftest$ac_cv_exeext'
4190 { { case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_try") 2>&5
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }; }; then
4202 if test "$cross_compiling" = maybe; then
4205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "cannot run C compiled programs.
4208 If you meant to cross compile, use \`--host'.
4209 See \`config.log' for more details" "$LINENO" 5; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4214 $as_echo "$cross_compiling" >&6; }
4216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4217 ac_clean_files=$ac_clean_files_save
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219 $as_echo_n "checking for suffix of object files... " >&6; }
4220 if ${ac_cv_objext+:} false; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 rm -f conftest.o conftest.obj
4235 if { { ac_try="$ac_compile"
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_compile") 2>&5
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 for ac_file in conftest.o conftest.obj conftest.*; do
4247 test -f "$ac_file" || continue;
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4255 $as_echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260 as_fn_error $? "cannot compute suffix of object files: cannot compile
4261 See \`config.log' for more details" "$LINENO" 5; }
4263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266 $as_echo "$ac_cv_objext" >&6; }
4267 OBJEXT=$ac_cv_objext
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271 if ${ac_cv_c_compiler_gnu+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4288 if ac_fn_c_try_compile "$LINENO"; then :
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4304 ac_test_CFLAGS=${CFLAGS+set}
4305 ac_save_CFLAGS=$CFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4308 if ${ac_cv_prog_cc_g+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 ac_save_c_werror_flag=$ac_c_werror_flag
4312 ac_c_werror_flag=yes
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4326 if ac_fn_c_try_compile "$LINENO"; then :
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 if ac_fn_c_try_compile "$LINENO"; then :
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4357 if ac_fn_c_try_compile "$LINENO"; then :
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368 $as_echo "$ac_cv_prog_cc_g" >&6; }
4369 if test "$ac_test_CFLAGS" = set; then
4370 CFLAGS=$ac_save_CFLAGS
4371 elif test $ac_cv_prog_cc_g = yes; then
4372 if test "$GCC" = yes; then
4378 if test "$GCC" = yes; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386 if ${ac_cv_prog_cc_c89+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 ac_cv_prog_cc_c89=no
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4395 #include <sys/types.h>
4396 #include <sys/stat.h>
4397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4398 struct buf { int x; };
4399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400 static char *e (p, i)
4406 static char *f (char * (*g) (char **, int), char **p, ...)
4411 s = g (p, va_arg (v,int));
4416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4417 function prototypes and stuff, but not '\xHH' hex character constants.
4418 These don't provoke an error unfortunately, instead are silently treated
4419 as 'x'. The following induces an error, until -std is added to get
4420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4421 array size at least. It's necessary to write '\x00'==0 to get something
4422 that's true only with -std. */
4423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4425 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426 inside strings and character constants. */
4428 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4430 int test (int i, double x);
4431 struct s1 {int (*f) (int a);};
4432 struct s2 {int (*f) (double a);};
4433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4439 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4447 CC="$ac_save_CC $ac_arg"
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_prog_cc_c89=$ac_arg
4451 rm -f core conftest.err conftest.$ac_objext
4452 test "x$ac_cv_prog_cc_c89" != "xno" && break
4454 rm -f conftest.$ac_ext
4459 case "x$ac_cv_prog_cc_c89" in
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462 $as_echo "none needed" >&6; } ;;
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465 $as_echo "unsupported" >&6; } ;;
4467 CC="$CC $ac_cv_prog_cc_c89"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4471 if test "x$ac_cv_prog_cc_c89" != xno; then :
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 depcc="$CC" am_compiler_list=
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4484 $as_echo_n "checking dependency style of $depcc... " >&6; }
4485 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4489 # We make a subdir and do the tests there. Otherwise we can end up
4490 # making bogus files that we don't know about and never remove. For
4491 # instance it was reported that on HP-UX the gcc test will end up
4492 # making a dummy file named `D' -- because `-MD' means `put the output
4495 # Copy depcomp to subdir because otherwise we won't find it if we're
4496 # using a relative directory.
4497 cp "$am_depcomp" conftest.dir
4499 # We will build objects and dependencies in a subdirectory because
4500 # it helps to detect inapplicable dependency modes. For instance
4501 # both Tru64's cc and ICC support -MD to output dependencies as a
4502 # side effect of compilation, but ICC will put the dependencies in
4503 # the current directory while Tru64 will put them in the object
4507 am_cv_CC_dependencies_compiler_type=none
4508 if test "$am_compiler_list" = ""; then
4509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4512 case " $depcc " in #(
4513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4516 for depmode in $am_compiler_list; do
4517 # Setup a source with many dependencies, because some compilers
4518 # like to wrap large dependency lists on column 80 (with \), and
4519 # we should not choose a depcomp mode which is confused by this.
4521 # We need to recreate these files for each test, as the compiler may
4522 # overwrite some of them when testing with obscure command lines.
4523 # This happens at least with the AIX C compiler.
4525 for i in 1 2 3 4 5 6; do
4526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4528 # Solaris 8's {/usr,}/bin/sh.
4529 touch sub/conftst$i.h
4531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4534 # mode. It turns out that the SunPro C++ compiler does not properly
4535 # handle `-M -o', and we need to detect this. Also, some Intel
4536 # versions had trouble with output in subdirs
4537 am__obj=sub/conftest.${OBJEXT-o}
4538 am__minus_obj="-o $am__obj"
4541 # This depmode causes a compiler race in universal mode.
4542 test "$am__universal" = false || continue
4545 # after this tag, mechanisms are not by side-effect, so they'll
4546 # only be used when explicitly requested
4547 if test "x$enable_dependency_tracking" = xyes; then
4553 msvisualcpp | msvcmsys)
4554 # This compiler won't grok `-c -o', but also, the minuso test has
4555 # not run yet. These depmodes are late enough in the game, and
4556 # so weak that their functioning should not be impacted.
4557 am__obj=conftest.${OBJEXT-o}
4562 if depmode=$depmode \
4563 source=sub/conftest.c object=$am__obj \
4564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566 >/dev/null 2>conftest.err &&
4567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571 # icc doesn't choke on unknown options, it will just issue warnings
4572 # or remarks (even with -Werror). So we grep stderr for any message
4573 # that says an option was ignored or not supported.
4574 # When given -MP, icc 7.0 and 7.1 complain thusly:
4575 # icc: Command line warning: ignoring option '-M'; no argument required
4576 # The diagnosis changed in icc 8.0:
4577 # icc: Command line remark: option '-MP' not supported
4578 if (grep 'ignoring option' conftest.err ||
4579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580 am_cv_CC_dependencies_compiler_type=$depmode
4589 am_cv_CC_dependencies_compiler_type=none
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4598 test "x$enable_dependency_tracking" != xno \
4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4601 am__fastdepCC_FALSE='#'
4603 am__fastdepCC_TRUE='#'
4604 am__fastdepCC_FALSE=
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4615 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4616 # On Suns, sometimes $CPP names a directory.
4617 if test -n "$CPP" && test -d "$CPP"; then
4620 if test -z "$CPP"; then
4621 if ${ac_cv_prog_CPP+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 # Double quotes because CPP needs to be expanded
4625 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4628 for ac_c_preproc_warn_flag in '' yes
4630 # Use a header file that comes with gcc, so configuring glibc
4631 # with a fresh cross-compiler works.
4632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 # <limits.h> exists even on freestanding compilers.
4634 # On the NeXT, cc -E runs the code through the compiler's parser,
4635 # not just through cpp. "Syntax error" is here to catch this case.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 # include <limits.h>
4641 # include <assert.h>
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4648 # Broken: fails on valid input.
4651 rm -f conftest.err conftest.i conftest.$ac_ext
4653 # OK, works on sane cases. Now check whether nonexistent headers
4654 # can be detected and how.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <ac_nonexistent.h>
4659 if ac_fn_c_try_cpp "$LINENO"; then :
4660 # Broken: success on invalid input.
4663 # Passes both tests.
4667 rm -f conftest.err conftest.i conftest.$ac_ext
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.i conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then :
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4685 $as_echo "$CPP" >&6; }
4687 for ac_c_preproc_warn_flag in '' yes
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4698 # include <limits.h>
4700 # include <assert.h>
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4707 # Broken: fails on valid input.
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719 # Broken: success on invalid input.
4722 # Passes both tests.
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4736 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details" "$LINENO" 5; }
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4748 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4749 if ${ac_cv_path_GREP+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 if test -z "$GREP"; then
4753 ac_path_GREP_found=false
4754 # Loop through the user's path and test for each of PROGNAME-LIST
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 test -z "$as_dir" && as_dir=.
4760 for ac_prog in grep ggrep; do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4763 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4764 # Check for GNU ac_path_GREP and select it if it is found.
4765 # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4771 $as_echo_n 0123456789 >"conftest.in"
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 $as_echo 'GREP' >> "conftest.nl"
4778 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780 as_fn_arith $ac_count + 1 && ac_count=$as_val
4781 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_GREP="$ac_path_GREP"
4784 ac_path_GREP_max=$ac_count
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 $ac_path_GREP_found && break 3
4797 if test -z "$ac_cv_path_GREP"; then
4798 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801 ac_cv_path_GREP=$GREP
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4806 $as_echo "$ac_cv_path_GREP" >&6; }
4807 GREP="$ac_cv_path_GREP"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4811 $as_echo_n "checking for egrep... " >&6; }
4812 if ${ac_cv_path_EGREP+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4816 then ac_cv_path_EGREP="$GREP -E"
4818 if test -z "$EGREP"; then
4819 ac_path_EGREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 test -z "$as_dir" && as_dir=.
4826 for ac_prog in egrep; do
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4829 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4830 # Check for GNU ac_path_EGREP and select it if it is found.
4831 # Check for GNU $ac_path_EGREP
4832 case `"$ac_path_EGREP" --version 2>&1` in
4834 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4837 $as_echo_n 0123456789 >"conftest.in"
4840 cat "conftest.in" "conftest.in" >"conftest.tmp"
4841 mv "conftest.tmp" "conftest.in"
4842 cp "conftest.in" "conftest.nl"
4843 $as_echo 'EGREP' >> "conftest.nl"
4844 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846 as_fn_arith $ac_count + 1 && ac_count=$as_val
4847 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4848 # Best one so far, save it but keep looking for a better one
4849 ac_cv_path_EGREP="$ac_path_EGREP"
4850 ac_path_EGREP_max=$ac_count
4852 # 10*(2^10) chars as input seems more than enough
4853 test $ac_count -gt 10 && break
4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858 $ac_path_EGREP_found && break 3
4863 if test -z "$ac_cv_path_EGREP"; then
4864 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867 ac_cv_path_EGREP=$EGREP
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4873 $as_echo "$ac_cv_path_EGREP" >&6; }
4874 EGREP="$ac_cv_path_EGREP"
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4878 $as_echo_n "checking for ANSI C header files... " >&6; }
4879 if ${ac_cv_header_stdc+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898 ac_cv_header_stdc=yes
4900 ac_cv_header_stdc=no
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 if test $ac_cv_header_stdc = yes; then
4905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912 $EGREP "memchr" >/dev/null 2>&1; then :
4915 ac_cv_header_stdc=no
4921 if test $ac_cv_header_stdc = yes; then
4922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "free" >/dev/null 2>&1; then :
4932 ac_cv_header_stdc=no
4938 if test $ac_cv_header_stdc = yes; then
4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940 if test "$cross_compiling" = yes; then :
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4947 #if ((' ' & 0x0FF) == 0x020)
4948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951 # define ISLOWER(c) \
4952 (('a' <= (c) && (c) <= 'i') \
4953 || ('j' <= (c) && (c) <= 'r') \
4954 || ('s' <= (c) && (c) <= 'z'))
4955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4963 for (i = 0; i < 256; i++)
4964 if (XOR (islower (i), ISLOWER (i))
4965 || toupper (i) != TOUPPER (i))
4970 if ac_fn_c_try_run "$LINENO"; then :
4973 ac_cv_header_stdc=no
4975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4976 conftest.$ac_objext conftest.beam conftest.$ac_ext
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4982 $as_echo "$ac_cv_header_stdc" >&6; }
4983 if test $ac_cv_header_stdc = yes; then
4985 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4991 inttypes.h stdint.h unistd.h
4993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4997 cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5009 # Check whether --with-tirpcinclude was given.
5010 if test "${with_tirpcinclude+set}" = set; then :
5011 withval=$with_tirpcinclude; tirpc_header_dir=$withval
5013 tirpc_header_dir=/usr/include/tirpc
5018 if test "$enable_tirpc" != "no"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
5021 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
5022 if ${ac_cv_lib_tirpc_clnt_tli_create+:} false; then :
5023 $as_echo_n "(cached) " >&6
5025 ac_check_lib_save_LIBS=$LIBS
5026 LIBS="-ltirpc $LIBS"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5030 /* Override any GCC internal prototype to avoid an error.
5031 Use char because int might match the return type of a GCC
5032 builtin and then its argument prototype would still apply. */
5036 char clnt_tli_create ();
5040 return clnt_tli_create ();
5045 if ac_fn_c_try_link "$LINENO"; then :
5046 ac_cv_lib_tirpc_clnt_tli_create=yes
5048 ac_cv_lib_tirpc_clnt_tli_create=no
5050 rm -f core conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5055 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5056 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = xyes; then :
5057 cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBTIRPC 1
5061 LIBS="-ltirpc $LIBS"
5064 if test "$enable_tirpc" = "yes"; then
5065 as_fn_error $? "libtirpc not found." "$LINENO" 5
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5068 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5075 if test "$enable_tirpc" != "no"; then
5076 for ac_header in ${tirpc_header_dir}/netconfig.h
5078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5079 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5080 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5081 cat >>confdefs.h <<_ACEOF
5082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5084 AM_CPPFLAGS="-I${tirpc_header_dir}"
5087 if test "$enable_tirpc" = "yes"; then
5088 as_fn_error $? "libtirpc headers not found." "$LINENO" 5
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5091 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5105 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5106 if test "x$ac_cv_func_prctl" = xyes; then :
5111 # Check whether --enable-caps was given.
5112 if test "${enable_caps+set}" = set; then :
5113 enableval=$enable_caps;
5119 if test "x$enable_caps" != "xno" ; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5121 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5122 if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
5123 $as_echo_n "(cached) " >&6
5125 ac_check_lib_save_LIBS=$LIBS
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5130 /* Override any GCC internal prototype to avoid an error.
5131 Use char because int might match the return type of a GCC
5132 builtin and then its argument prototype would still apply. */
5136 char cap_get_proc ();
5140 return cap_get_proc ();
5145 if ac_fn_c_try_link "$LINENO"; then :
5146 ac_cv_lib_cap_cap_get_proc=yes
5148 ac_cv_lib_cap_cap_get_proc=no
5150 rm -f core conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5152 LIBS=$ac_check_lib_save_LIBS
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5155 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5156 if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
5161 for ac_header in sys/capability.h
5163 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5164 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
5165 cat >>confdefs.h <<_ACEOF
5166 #define HAVE_SYS_CAPABILITY_H 1
5170 test "x$enable_caps" = "xyes" && as_fn_error $? "libcap headers not found." "$LINENO" 5
5181 # Check whether user wants TCP wrappers support
5185 # Check whether --with-tcp-wrappers was given.
5186 if test "${with_tcp_wrappers+set}" = set; then :
5187 withval=$with_tcp_wrappers; with_tcpw=$withval
5192 if test "x$with_tcpw" != "xno" ; then
5194 saved_LDFLAGS="$LDFLAGS"
5195 saved_CPPFLAGS="$CPPFLAGS"
5196 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5197 if test -d "${with_tcpw}/lib"; then
5198 if test -n "${need_dash_r}"; then
5199 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5201 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5204 if test -n "${need_dash_r}"; then
5205 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5207 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5210 if test -d "${with_tcpw}/include"; then
5211 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5213 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5217 LIBS="$LIBWRAP $LIBS"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5219 $as_echo_n "checking for libwrap... " >&6; }
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5224 int deny_severity = 0, allow_severity = 0;
5234 if ac_fn_c_try_link "$LINENO"; then :
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5240 $as_echo "#define LIBWRAP 1" >>confdefs.h
5243 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5246 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5252 as_fn_error $? "*** libwrap missing" "$LINENO" 5
5256 rm -f core conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5265 # Arrange for large-file support
5266 # Check whether --enable-largefile was given.
5267 if test "${enable_largefile+set}" = set; then :
5268 enableval=$enable_largefile;
5271 if test "$enable_largefile" != no; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5274 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5275 if ${ac_cv_sys_largefile_CC+:} false; then :
5276 $as_echo_n "(cached) " >&6
5278 ac_cv_sys_largefile_CC=no
5279 if test "$GCC" != yes; then
5282 # IRIX 6.2 and later do not support large files by default,
5283 # so use the C compiler's -n32 option if that helps.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <sys/types.h>
5287 /* Check that off_t can represent 2**63 - 1 correctly.
5288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5289 since some C++ compilers masquerading as C compilers
5290 incorrectly reject 9223372036854775807. */
5291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5293 && LARGE_OFF_T % 2147483647 == 1)
5303 if ac_fn_c_try_compile "$LINENO"; then :
5306 rm -f core conftest.err conftest.$ac_objext
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_cv_sys_largefile_CC=' -n32'; break
5311 rm -f core conftest.err conftest.$ac_objext
5315 rm -f conftest.$ac_ext
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5319 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5320 if test "$ac_cv_sys_largefile_CC" != no; then
5321 CC=$CC$ac_cv_sys_largefile_CC
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5325 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5326 if ${ac_cv_sys_file_offset_bits+:} false; then :
5327 $as_echo_n "(cached) " >&6
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <sys/types.h>
5333 /* Check that off_t can represent 2**63 - 1 correctly.
5334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5335 since some C++ compilers masquerading as C compilers
5336 incorrectly reject 9223372036854775807. */
5337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5339 && LARGE_OFF_T % 2147483647 == 1)
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 ac_cv_sys_file_offset_bits=no; break
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #define _FILE_OFFSET_BITS 64
5356 #include <sys/types.h>
5357 /* Check that off_t can represent 2**63 - 1 correctly.
5358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359 since some C++ compilers masquerading as C compilers
5360 incorrectly reject 9223372036854775807. */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363 && LARGE_OFF_T % 2147483647 == 1)
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_sys_file_offset_bits=64; break
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 ac_cv_sys_file_offset_bits=unknown
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5382 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5383 case $ac_cv_sys_file_offset_bits in #(
5386 cat >>confdefs.h <<_ACEOF
5387 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5392 if test $ac_cv_sys_file_offset_bits = unknown; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5394 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5395 if ${ac_cv_sys_large_files+:} false; then :
5396 $as_echo_n "(cached) " >&6
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #include <sys/types.h>
5402 /* Check that off_t can represent 2**63 - 1 correctly.
5403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5404 since some C++ compilers masquerading as C compilers
5405 incorrectly reject 9223372036854775807. */
5406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5408 && LARGE_OFF_T % 2147483647 == 1)
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419 ac_cv_sys_large_files=no; break
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 #define _LARGE_FILES 1
5425 #include <sys/types.h>
5426 /* Check that off_t can represent 2**63 - 1 correctly.
5427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5428 since some C++ compilers masquerading as C compilers
5429 incorrectly reject 9223372036854775807. */
5430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5432 && LARGE_OFF_T % 2147483647 == 1)
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 ac_cv_sys_large_files=1; break
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 ac_cv_sys_large_files=unknown
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5451 $as_echo "$ac_cv_sys_large_files" >&6; }
5452 case $ac_cv_sys_large_files in #(
5455 cat >>confdefs.h <<_ACEOF
5456 #define _LARGE_FILES $ac_cv_sys_large_files
5466 ac_config_headers="$ac_config_headers support/include/config.h"
5469 # Checks for programs.
5471 ac_cpp='$CXXCPP $CPPFLAGS'
5472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5475 if test -z "$CXX"; then
5476 if test -n "$CCC"; then
5479 if test -n "$ac_tool_prefix"; then
5480 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_CXX+:} false; then :
5487 $as_echo_n "(cached) " >&6
5489 if test -n "$CXX"; then
5490 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 if test -n "$CXX"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5512 $as_echo "$CXX" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5519 test -n "$CXX" && break
5522 if test -z "$CXX"; then
5524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5526 # Extract the first word of "$ac_prog", so it can be a program name with args.
5527 set dummy $ac_prog; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5531 $as_echo_n "(cached) " >&6
5533 if test -n "$ac_ct_CXX"; then
5534 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_ac_ct_CXX="$ac_prog"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5554 if test -n "$ac_ct_CXX"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5556 $as_echo "$ac_ct_CXX" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 test -n "$ac_ct_CXX" && break
5566 if test "x$ac_ct_CXX" = x; then
5569 case $cross_compiling:$ac_tool_warned in
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573 ac_tool_warned=yes ;;
5581 # Provide some information about the compiler.
5582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5585 for ac_option in --version -v -V -qversion; do
5586 { { ac_try="$ac_compiler $ac_option >&5"
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5592 $as_echo "$ac_try_echo"; } >&5
5593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5595 if test -s conftest.err; then
5597 ... rest of stderr output deleted ...
5598 10q' conftest.err >conftest.er1
5599 cat conftest.er1 >&5
5601 rm -f conftest.er1 conftest.err
5602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603 test $ac_status = 0; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5607 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5608 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5625 if ac_fn_cxx_try_compile "$LINENO"; then :
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5635 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5636 if test $ac_compiler_gnu = yes; then
5641 ac_test_CXXFLAGS=${CXXFLAGS+set}
5642 ac_save_CXXFLAGS=$CXXFLAGS
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5644 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5645 if ${ac_cv_prog_cxx_g+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5649 ac_cxx_werror_flag=yes
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5663 if ac_fn_cxx_try_compile "$LINENO"; then :
5664 ac_cv_prog_cxx_g=yes
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5678 if ac_fn_cxx_try_compile "$LINENO"; then :
5681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5694 if ac_fn_cxx_try_compile "$LINENO"; then :
5695 ac_cv_prog_cxx_g=yes
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5705 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5706 if test "$ac_test_CXXFLAGS" = set; then
5707 CXXFLAGS=$ac_save_CXXFLAGS
5708 elif test $ac_cv_prog_cxx_g = yes; then
5709 if test "$GXX" = yes; then
5715 if test "$GXX" = yes; then
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 depcc="$CXX" am_compiler_list=
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5730 $as_echo_n "checking dependency style of $depcc... " >&6; }
5731 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5735 # We make a subdir and do the tests there. Otherwise we can end up
5736 # making bogus files that we don't know about and never remove. For
5737 # instance it was reported that on HP-UX the gcc test will end up
5738 # making a dummy file named `D' -- because `-MD' means `put the output
5741 # Copy depcomp to subdir because otherwise we won't find it if we're
5742 # using a relative directory.
5743 cp "$am_depcomp" conftest.dir
5745 # We will build objects and dependencies in a subdirectory because
5746 # it helps to detect inapplicable dependency modes. For instance
5747 # both Tru64's cc and ICC support -MD to output dependencies as a
5748 # side effect of compilation, but ICC will put the dependencies in
5749 # the current directory while Tru64 will put them in the object
5753 am_cv_CXX_dependencies_compiler_type=none
5754 if test "$am_compiler_list" = ""; then
5755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5758 case " $depcc " in #(
5759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5762 for depmode in $am_compiler_list; do
5763 # Setup a source with many dependencies, because some compilers
5764 # like to wrap large dependency lists on column 80 (with \), and
5765 # we should not choose a depcomp mode which is confused by this.
5767 # We need to recreate these files for each test, as the compiler may
5768 # overwrite some of them when testing with obscure command lines.
5769 # This happens at least with the AIX C compiler.
5771 for i in 1 2 3 4 5 6; do
5772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5774 # Solaris 8's {/usr,}/bin/sh.
5775 touch sub/conftst$i.h
5777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5780 # mode. It turns out that the SunPro C++ compiler does not properly
5781 # handle `-M -o', and we need to detect this. Also, some Intel
5782 # versions had trouble with output in subdirs
5783 am__obj=sub/conftest.${OBJEXT-o}
5784 am__minus_obj="-o $am__obj"
5787 # This depmode causes a compiler race in universal mode.
5788 test "$am__universal" = false || continue
5791 # after this tag, mechanisms are not by side-effect, so they'll
5792 # only be used when explicitly requested
5793 if test "x$enable_dependency_tracking" = xyes; then
5799 msvisualcpp | msvcmsys)
5800 # This compiler won't grok `-c -o', but also, the minuso test has
5801 # not run yet. These depmodes are late enough in the game, and
5802 # so weak that their functioning should not be impacted.
5803 am__obj=conftest.${OBJEXT-o}
5808 if depmode=$depmode \
5809 source=sub/conftest.c object=$am__obj \
5810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5812 >/dev/null 2>conftest.err &&
5813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5817 # icc doesn't choke on unknown options, it will just issue warnings
5818 # or remarks (even with -Werror). So we grep stderr for any message
5819 # that says an option was ignored or not supported.
5820 # When given -MP, icc 7.0 and 7.1 complain thusly:
5821 # icc: Command line warning: ignoring option '-M'; no argument required
5822 # The diagnosis changed in icc 8.0:
5823 # icc: Command line remark: option '-MP' not supported
5824 if (grep 'ignoring option' conftest.err ||
5825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5826 am_cv_CXX_dependencies_compiler_type=$depmode
5835 am_cv_CXX_dependencies_compiler_type=none
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5840 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5841 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5844 test "x$enable_dependency_tracking" != xno \
5845 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5846 am__fastdepCXX_TRUE=
5847 am__fastdepCXX_FALSE='#'
5849 am__fastdepCXX_TRUE='#'
5850 am__fastdepCXX_FALSE=
5855 ac_cpp='$CPP $CPPFLAGS'
5856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_CC+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 if test -n "$CC"; then
5868 ac_cv_prog_CC="$CC" # Let the user override the test.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 if test -n "$CC"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5890 $as_echo "$CC" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5898 if test -z "$ac_cv_prog_CC"; then
5900 # Extract the first word of "gcc", so it can be a program name with args.
5901 set dummy gcc; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5905 $as_echo_n "(cached) " >&6
5907 if test -n "$ac_ct_CC"; then
5908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_prog_ac_ct_CC="gcc"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5928 if test -n "$ac_ct_CC"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5930 $as_echo "$ac_ct_CC" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5936 if test "x$ac_ct_CC" = x; then
5939 case $cross_compiling:$ac_tool_warned in
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943 ac_tool_warned=yes ;;
5951 if test -z "$CC"; then
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}cc; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_CC+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -n "$CC"; then
5961 ac_cv_prog_CC="$CC" # Let the user override the test.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_CC="${ac_tool_prefix}cc"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 if test -n "$CC"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5983 $as_echo "$CC" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5992 if test -z "$CC"; then
5993 # Extract the first word of "cc", so it can be a program name with args.
5994 set dummy cc; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_prog_CC+:} false; then :
5998 $as_echo_n "(cached) " >&6
6000 if test -n "$CC"; then
6001 ac_cv_prog_CC="$CC" # Let the user override the test.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6012 ac_prog_rejected=yes
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 if test $ac_prog_rejected = yes; then
6024 # We found a bogon in the path, so make sure we never use it.
6025 set dummy $ac_cv_prog_CC
6027 if test $# != 0; then
6028 # We chose a different compiler from the bogus one.
6029 # However, it has the same basename, so the bogon will be chosen
6030 # first if we set CC to just the basename; use the full file name.
6032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6038 if test -n "$CC"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6040 $as_echo "$CC" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$CC"; then
6049 if test -n "$ac_tool_prefix"; then
6050 for ac_prog in cl.exe
6052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_CC+:} false; then :
6057 $as_echo_n "(cached) " >&6
6059 if test -n "$CC"; then
6060 ac_cv_prog_CC="$CC" # Let the user override the test.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 if test -n "$CC"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6082 $as_echo "$CC" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6089 test -n "$CC" && break
6092 if test -z "$CC"; then
6094 for ac_prog in cl.exe
6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
6097 set dummy $ac_prog; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 if test -n "$ac_ct_CC"; then
6104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 ac_cv_prog_ac_ct_CC="$ac_prog"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6124 if test -n "$ac_ct_CC"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6126 $as_echo "$ac_ct_CC" >&6; }
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6133 test -n "$ac_ct_CC" && break
6136 if test "x$ac_ct_CC" = x; then
6139 case $cross_compiling:$ac_tool_warned in
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6152 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error $? "no acceptable C compiler found in \$PATH
6155 See \`config.log' for more details" "$LINENO" 5; }
6157 # Provide some information about the compiler.
6158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6161 for ac_option in --version -v -V -qversion; do
6162 { { ac_try="$ac_compiler $ac_option >&5"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6168 $as_echo "$ac_try_echo"; } >&5
6169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6171 if test -s conftest.err; then
6173 ... rest of stderr output deleted ...
6174 10q' conftest.err >conftest.er1
6175 cat conftest.er1 >&5
6177 rm -f conftest.er1 conftest.err
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6183 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6184 if ${ac_cv_c_compiler_gnu+:} false; then :
6185 $as_echo_n "(cached) " >&6
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6201 if ac_fn_c_try_compile "$LINENO"; then :
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6211 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6212 if test $ac_compiler_gnu = yes; then
6217 ac_test_CFLAGS=${CFLAGS+set}
6218 ac_save_CFLAGS=$CFLAGS
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6220 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6221 if ${ac_cv_prog_cc_g+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 ac_save_c_werror_flag=$ac_c_werror_flag
6225 ac_c_werror_flag=yes
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6239 if ac_fn_c_try_compile "$LINENO"; then :
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6254 if ac_fn_c_try_compile "$LINENO"; then :
6257 ac_c_werror_flag=$ac_save_c_werror_flag
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6270 if ac_fn_c_try_compile "$LINENO"; then :
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 ac_c_werror_flag=$ac_save_c_werror_flag
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6281 $as_echo "$ac_cv_prog_cc_g" >&6; }
6282 if test "$ac_test_CFLAGS" = set; then
6283 CFLAGS=$ac_save_CFLAGS
6284 elif test $ac_cv_prog_cc_g = yes; then
6285 if test "$GCC" = yes; then
6291 if test "$GCC" = yes; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6298 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6299 if ${ac_cv_prog_cc_c89+:} false; then :
6300 $as_echo_n "(cached) " >&6
6302 ac_cv_prog_cc_c89=no
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6308 #include <sys/types.h>
6309 #include <sys/stat.h>
6310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6311 struct buf { int x; };
6312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6313 static char *e (p, i)
6319 static char *f (char * (*g) (char **, int), char **p, ...)
6324 s = g (p, va_arg (v,int));
6329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6330 function prototypes and stuff, but not '\xHH' hex character constants.
6331 These don't provoke an error unfortunately, instead are silently treated
6332 as 'x'. The following induces an error, until -std is added to get
6333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6334 array size at least. It's necessary to write '\x00'==0 to get something
6335 that's true only with -std. */
6336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6339 inside strings and character constants. */
6341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6343 int test (int i, double x);
6344 struct s1 {int (*f) (int a);};
6345 struct s2 {int (*f) (double a);};
6346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6352 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6360 CC="$ac_save_CC $ac_arg"
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 ac_cv_prog_cc_c89=$ac_arg
6364 rm -f core conftest.err conftest.$ac_objext
6365 test "x$ac_cv_prog_cc_c89" != "xno" && break
6367 rm -f conftest.$ac_ext
6372 case "x$ac_cv_prog_cc_c89" in
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6375 $as_echo "none needed" >&6; } ;;
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6378 $as_echo "unsupported" >&6; } ;;
6380 CC="$CC $ac_cv_prog_cc_c89"
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6382 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6384 if test "x$ac_cv_prog_cc_c89" != xno; then :
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394 depcc="$CC" am_compiler_list=
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6397 $as_echo_n "checking dependency style of $depcc... " >&6; }
6398 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6402 # We make a subdir and do the tests there. Otherwise we can end up
6403 # making bogus files that we don't know about and never remove. For
6404 # instance it was reported that on HP-UX the gcc test will end up
6405 # making a dummy file named `D' -- because `-MD' means `put the output
6408 # Copy depcomp to subdir because otherwise we won't find it if we're
6409 # using a relative directory.
6410 cp "$am_depcomp" conftest.dir
6412 # We will build objects and dependencies in a subdirectory because
6413 # it helps to detect inapplicable dependency modes. For instance
6414 # both Tru64's cc and ICC support -MD to output dependencies as a
6415 # side effect of compilation, but ICC will put the dependencies in
6416 # the current directory while Tru64 will put them in the object
6420 am_cv_CC_dependencies_compiler_type=none
6421 if test "$am_compiler_list" = ""; then
6422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6425 case " $depcc " in #(
6426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6429 for depmode in $am_compiler_list; do
6430 # Setup a source with many dependencies, because some compilers
6431 # like to wrap large dependency lists on column 80 (with \), and
6432 # we should not choose a depcomp mode which is confused by this.
6434 # We need to recreate these files for each test, as the compiler may
6435 # overwrite some of them when testing with obscure command lines.
6436 # This happens at least with the AIX C compiler.
6438 for i in 1 2 3 4 5 6; do
6439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6441 # Solaris 8's {/usr,}/bin/sh.
6442 touch sub/conftst$i.h
6444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6447 # mode. It turns out that the SunPro C++ compiler does not properly
6448 # handle `-M -o', and we need to detect this. Also, some Intel
6449 # versions had trouble with output in subdirs
6450 am__obj=sub/conftest.${OBJEXT-o}
6451 am__minus_obj="-o $am__obj"
6454 # This depmode causes a compiler race in universal mode.
6455 test "$am__universal" = false || continue
6458 # after this tag, mechanisms are not by side-effect, so they'll
6459 # only be used when explicitly requested
6460 if test "x$enable_dependency_tracking" = xyes; then
6466 msvisualcpp | msvcmsys)
6467 # This compiler won't grok `-c -o', but also, the minuso test has
6468 # not run yet. These depmodes are late enough in the game, and
6469 # so weak that their functioning should not be impacted.
6470 am__obj=conftest.${OBJEXT-o}
6475 if depmode=$depmode \
6476 source=sub/conftest.c object=$am__obj \
6477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6479 >/dev/null 2>conftest.err &&
6480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6484 # icc doesn't choke on unknown options, it will just issue warnings
6485 # or remarks (even with -Werror). So we grep stderr for any message
6486 # that says an option was ignored or not supported.
6487 # When given -MP, icc 7.0 and 7.1 complain thusly:
6488 # icc: Command line warning: ignoring option '-M'; no argument required
6489 # The diagnosis changed in icc 8.0:
6490 # icc: Command line remark: option '-MP' not supported
6491 if (grep 'ignoring option' conftest.err ||
6492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6493 am_cv_CC_dependencies_compiler_type=$depmode
6502 am_cv_CC_dependencies_compiler_type=none
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6507 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6511 test "x$enable_dependency_tracking" != xno \
6512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6514 am__fastdepCC_FALSE='#'
6516 am__fastdepCC_TRUE='#'
6517 am__fastdepCC_FALSE=
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6528 # On Suns, sometimes $CPP names a directory.
6529 if test -n "$CPP" && test -d "$CPP"; then
6532 if test -z "$CPP"; then
6533 if ${ac_cv_prog_CPP+:} false; then :
6534 $as_echo_n "(cached) " >&6
6536 # Double quotes because CPP needs to be expanded
6537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6540 for ac_c_preproc_warn_flag in '' yes
6542 # Use a header file that comes with gcc, so configuring glibc
6543 # with a fresh cross-compiler works.
6544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6545 # <limits.h> exists even on freestanding compilers.
6546 # On the NeXT, cc -E runs the code through the compiler's parser,
6547 # not just through cpp. "Syntax error" is here to catch this case.
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6551 # include <limits.h>
6553 # include <assert.h>
6557 if ac_fn_c_try_cpp "$LINENO"; then :
6560 # Broken: fails on valid input.
6563 rm -f conftest.err conftest.i conftest.$ac_ext
6565 # OK, works on sane cases. Now check whether nonexistent headers
6566 # can be detected and how.
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 #include <ac_nonexistent.h>
6571 if ac_fn_c_try_cpp "$LINENO"; then :
6572 # Broken: success on invalid input.
6575 # Passes both tests.
6579 rm -f conftest.err conftest.i conftest.$ac_ext
6582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6583 rm -f conftest.i conftest.err conftest.$ac_ext
6584 if $ac_preproc_ok; then :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6597 $as_echo "$CPP" >&6; }
6599 for ac_c_preproc_warn_flag in '' yes
6601 # Use a header file that comes with gcc, so configuring glibc
6602 # with a fresh cross-compiler works.
6603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6604 # <limits.h> exists even on freestanding compilers.
6605 # On the NeXT, cc -E runs the code through the compiler's parser,
6606 # not just through cpp. "Syntax error" is here to catch this case.
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6610 # include <limits.h>
6612 # include <assert.h>
6616 if ac_fn_c_try_cpp "$LINENO"; then :
6619 # Broken: fails on valid input.
6622 rm -f conftest.err conftest.i conftest.$ac_ext
6624 # OK, works on sane cases. Now check whether nonexistent headers
6625 # can be detected and how.
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 #include <ac_nonexistent.h>
6630 if ac_fn_c_try_cpp "$LINENO"; then :
6631 # Broken: success on invalid input.
6634 # Passes both tests.
6638 rm -f conftest.err conftest.i conftest.$ac_ext
6641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6642 rm -f conftest.i conftest.err conftest.$ac_ext
6643 if $ac_preproc_ok; then :
6646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6648 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6649 See \`config.log' for more details" "$LINENO" 5; }
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6660 $as_echo_n "checking whether ln -s works... " >&6; }
6662 if test "$LN_S" = "ln -s"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6664 $as_echo "yes" >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6667 $as_echo "no, using $LN_S" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6671 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6673 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6674 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 cat >conftest.make <<\_ACEOF
6680 @echo '@@@%%%=$(MAKE)=@@@%%%'
6682 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6683 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6685 eval ac_cv_prog_make_${ac_make}_set=yes;;
6687 eval ac_cv_prog_make_${ac_make}_set=no;;
6691 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6693 $as_echo "yes" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 SET_MAKE="MAKE=${MAKE-make}"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6704 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6710 macro_revision='1.3293'
6724 ltmain="$ac_aux_dir/ltmain.sh"
6726 # Backslashify metacharacters that are still active within
6727 # double-quoted strings.
6728 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6730 # Same as above, but do not quote variable references.
6731 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6733 # Sed substitution to delay expansion of an escaped shell variable in a
6734 # double_quote_subst'ed string.
6735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6737 # Sed substitution to delay expansion of an escaped single quote.
6738 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6740 # Sed substitution to avoid accidental globbing in evaled expressions
6741 no_glob_subst='s/\*/\\\*/g'
6743 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6748 $as_echo_n "checking how to print strings... " >&6; }
6749 # Test print first, because it will be a builtin if present.
6750 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6751 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6753 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6756 # Use this function as a fallback that always works.
6757 func_fallback_echo ()
6759 eval 'cat <<_LTECHO_EOF
6763 ECHO='func_fallback_echo'
6766 # func_echo_all arg...
6767 # Invoke $ECHO with all args, space-separated.
6774 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6775 $as_echo "printf" >&6; } ;;
6776 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6777 $as_echo "print -r" >&6; } ;;
6778 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6779 $as_echo "cat" >&6; } ;;
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6796 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6797 if ${ac_cv_path_SED+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6801 for ac_i in 1 2 3 4 5 6 7; do
6802 ac_script="$ac_script$as_nl$ac_script"
6804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6805 { ac_script=; unset ac_script;}
6806 if test -z "$SED"; then
6807 ac_path_SED_found=false
6808 # Loop through the user's path and test for each of PROGNAME-LIST
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_prog in sed gsed; do
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6817 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6818 # Check for GNU ac_path_SED and select it if it is found.
6819 # Check for GNU $ac_path_SED
6820 case `"$ac_path_SED" --version 2>&1` in
6822 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6825 $as_echo_n 0123456789 >"conftest.in"
6828 cat "conftest.in" "conftest.in" >"conftest.tmp"
6829 mv "conftest.tmp" "conftest.in"
6830 cp "conftest.in" "conftest.nl"
6831 $as_echo '' >> "conftest.nl"
6832 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6834 as_fn_arith $ac_count + 1 && ac_count=$as_val
6835 if test $ac_count -gt ${ac_path_SED_max-0}; then
6836 # Best one so far, save it but keep looking for a better one
6837 ac_cv_path_SED="$ac_path_SED"
6838 ac_path_SED_max=$ac_count
6840 # 10*(2^10) chars as input seems more than enough
6841 test $ac_count -gt 10 && break
6843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6846 $ac_path_SED_found && break 3
6851 if test -z "$ac_cv_path_SED"; then
6852 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6860 $as_echo "$ac_cv_path_SED" >&6; }
6861 SED="$ac_cv_path_SED"
6864 test -z "$SED" && SED=sed
6865 Xsed="$SED -e 1s/^X//"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6878 $as_echo_n "checking for fgrep... " >&6; }
6879 if ${ac_cv_path_FGREP+:} false; then :
6880 $as_echo_n "(cached) " >&6
6882 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6883 then ac_cv_path_FGREP="$GREP -F"
6885 if test -z "$FGREP"; then
6886 ac_path_FGREP_found=false
6887 # Loop through the user's path and test for each of PROGNAME-LIST
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6892 test -z "$as_dir" && as_dir=.
6893 for ac_prog in fgrep; do
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6896 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6897 # Check for GNU ac_path_FGREP and select it if it is found.
6898 # Check for GNU $ac_path_FGREP
6899 case `"$ac_path_FGREP" --version 2>&1` in
6901 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6904 $as_echo_n 0123456789 >"conftest.in"
6907 cat "conftest.in" "conftest.in" >"conftest.tmp"
6908 mv "conftest.tmp" "conftest.in"
6909 cp "conftest.in" "conftest.nl"
6910 $as_echo 'FGREP' >> "conftest.nl"
6911 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6913 as_fn_arith $ac_count + 1 && ac_count=$as_val
6914 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6915 # Best one so far, save it but keep looking for a better one
6916 ac_cv_path_FGREP="$ac_path_FGREP"
6917 ac_path_FGREP_max=$ac_count
6919 # 10*(2^10) chars as input seems more than enough
6920 test $ac_count -gt 10 && break
6922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6925 $ac_path_FGREP_found && break 3
6930 if test -z "$ac_cv_path_FGREP"; then
6931 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6934 ac_cv_path_FGREP=$FGREP
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6940 $as_echo "$ac_cv_path_FGREP" >&6; }
6941 FGREP="$ac_cv_path_FGREP"
6944 test -z "$GREP" && GREP=grep
6964 # Check whether --with-gnu-ld was given.
6965 if test "${with_gnu_ld+set}" = set; then :
6966 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6972 if test "$GCC" = yes; then
6973 # Check if gcc -print-prog-name=ld gives a path.
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6975 $as_echo_n "checking for ld used by $CC... " >&6; }
6978 # gcc leaves a trailing carriage return which upsets mingw
6979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6984 # Accept absolute paths.
6986 re_direlt='/[^/][^/]*/\.\./'
6987 # Canonicalize the pathname of ld
6988 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6989 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6990 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6992 test -z "$LD" && LD="$ac_prog"
6995 # If it fails, then pretend we aren't using GCC.
6999 # If it is relative, then search for the first ld in PATH.
7003 elif test "$with_gnu_ld" = yes; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7005 $as_echo_n "checking for GNU ld... " >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7008 $as_echo_n "checking for non-GNU ld... " >&6; }
7010 if ${lt_cv_path_LD+:} false; then :
7011 $as_echo_n "(cached) " >&6
7013 if test -z "$LD"; then
7014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7015 for ac_dir in $PATH; do
7017 test -z "$ac_dir" && ac_dir=.
7018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7019 lt_cv_path_LD="$ac_dir/$ac_prog"
7020 # Check to see if the program is GNU ld. I'd rather use --version,
7021 # but apparently some variants of GNU ld only accept -v.
7022 # Break only if it was the GNU/non-GNU ld that we prefer.
7023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7024 *GNU* | *'with BFD'*)
7025 test "$with_gnu_ld" != no && break
7028 test "$with_gnu_ld" != yes && break
7035 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7040 if test -n "$LD"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7042 $as_echo "$LD" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7047 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7049 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7050 if ${lt_cv_prog_gnu_ld+:} false; then :
7051 $as_echo_n "(cached) " >&6
7053 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7054 case `$LD -v 2>&1 </dev/null` in
7055 *GNU* | *'with BFD'*)
7056 lt_cv_prog_gnu_ld=yes
7059 lt_cv_prog_gnu_ld=no
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7064 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7065 with_gnu_ld=$lt_cv_prog_gnu_ld
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7076 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7077 if ${lt_cv_path_NM+:} false; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$NM"; then
7081 # Let the user override the test.
7084 lt_nm_to_check="${ac_tool_prefix}nm"
7085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7086 lt_nm_to_check="$lt_nm_to_check nm"
7088 for lt_tmp_nm in $lt_nm_to_check; do
7089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7090 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7092 test -z "$ac_dir" && ac_dir=.
7093 tmp_nm="$ac_dir/$lt_tmp_nm"
7094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7095 # Check to see if the nm accepts a BSD-compat flag.
7096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7097 # nm: unknown option "B" ignored
7098 # Tru64's nm complains that /dev/null is an invalid object file
7099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7100 */dev/null* | *'Invalid file or object type'*)
7101 lt_cv_path_NM="$tmp_nm -B"
7105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7107 lt_cv_path_NM="$tmp_nm -p"
7111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7112 continue # so that we can try to find one that supports BSD flags
7121 : ${lt_cv_path_NM=no}
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7125 $as_echo "$lt_cv_path_NM" >&6; }
7126 if test "$lt_cv_path_NM" != "no"; then
7129 # Didn't find any BSD compatible name lister, look for dumpbin.
7130 if test -n "$DUMPBIN"; then :
7131 # Let the user override the test.
7133 if test -n "$ac_tool_prefix"; then
7134 for ac_prog in dumpbin "link -dump"
7136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_DUMPBIN+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 if test -n "$DUMPBIN"; then
7144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 DUMPBIN=$ac_cv_prog_DUMPBIN
7164 if test -n "$DUMPBIN"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7166 $as_echo "$DUMPBIN" >&6; }
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7173 test -n "$DUMPBIN" && break
7176 if test -z "$DUMPBIN"; then
7177 ac_ct_DUMPBIN=$DUMPBIN
7178 for ac_prog in dumpbin "link -dump"
7180 # Extract the first word of "$ac_prog", so it can be a program name with args.
7181 set dummy $ac_prog; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$ac_ct_DUMPBIN"; then
7188 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7208 if test -n "$ac_ct_DUMPBIN"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7210 $as_echo "$ac_ct_DUMPBIN" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7217 test -n "$ac_ct_DUMPBIN" && break
7220 if test "x$ac_ct_DUMPBIN" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7229 DUMPBIN=$ac_ct_DUMPBIN
7233 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7235 DUMPBIN="$DUMPBIN -symbols"
7243 if test "$DUMPBIN" != ":"; then
7247 test -z "$NM" && NM=nm
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7255 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7256 if ${lt_cv_nm_interface+:} false; then :
7257 $as_echo_n "(cached) " >&6
7259 lt_cv_nm_interface="BSD nm"
7260 echo "int some_variable = 0;" > conftest.$ac_ext
7261 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7262 (eval "$ac_compile" 2>conftest.err)
7263 cat conftest.err >&5
7264 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7265 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7266 cat conftest.err >&5
7267 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7268 cat conftest.out >&5
7269 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7270 lt_cv_nm_interface="MS dumpbin"
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7275 $as_echo "$lt_cv_nm_interface" >&6; }
7277 # find the maximum length of command line arguments
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7279 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7280 if ${lt_cv_sys_max_cmd_len+:} false; then :
7281 $as_echo_n "(cached) " >&6
7288 # On DJGPP, this test can blow up pretty badly due to problems in libc
7289 # (any single argument exceeding 2000 bytes causes a buffer overrun
7290 # during glob expansion). Even if it were fixed, the result of this
7291 # check would be larger than it should be.
7292 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7296 # Under GNU Hurd, this test is not required because there is
7297 # no limit to the length of command line arguments.
7298 # Libtool will interpret -1 as no limit whatsoever
7299 lt_cv_sys_max_cmd_len=-1;
7302 cygwin* | mingw* | cegcc*)
7303 # On Win9x/ME, this test blows up -- it succeeds, but takes
7304 # about 5 minutes as the teststring grows exponentially.
7305 # Worse, since 9x/ME are not pre-emptively multitasking,
7306 # you end up with a "frozen" computer, even though with patience
7307 # the test eventually succeeds (with a max line length of 256k).
7308 # Instead, let's just punt: use the minimum linelength reported by
7309 # all of the supported platforms: 8192 (on NT/2K/XP).
7310 lt_cv_sys_max_cmd_len=8192;
7314 # On MiNT this can take a long time and run out of memory.
7315 lt_cv_sys_max_cmd_len=8192;
7319 # On AmigaOS with pdksh, this test takes hours, literally.
7320 # So we just punt and use a minimum line length of 8192.
7321 lt_cv_sys_max_cmd_len=8192;
7324 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7325 # This has been around since 386BSD, at least. Likely further.
7326 if test -x /sbin/sysctl; then
7327 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7328 elif test -x /usr/sbin/sysctl; then
7329 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7331 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7333 # And add a safety zone
7334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7339 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7340 lt_cv_sys_max_cmd_len=196608
7344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7346 # nice to cause kernel panics so lets avoid the loop below.
7347 # First set a reasonable default.
7348 lt_cv_sys_max_cmd_len=16384
7350 if test -x /sbin/sysconfig; then
7351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7352 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7357 lt_cv_sys_max_cmd_len=102400
7359 sysv5* | sco5v6* | sysv4.2uw2*)
7360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7361 if test -n "$kargmax"; then
7362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7364 lt_cv_sys_max_cmd_len=32768
7368 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7369 if test -n "$lt_cv_sys_max_cmd_len"; then
7370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7373 # Make teststring a little bigger before we do anything with it.
7374 # a 1K string should be a reasonable start.
7375 for i in 1 2 3 4 5 6 7 8 ; do
7376 teststring=$teststring$teststring
7378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7379 # If test is not a shell built-in, we'll probably end up computing a
7380 # maximum length that is only half of the actual maximum length, but
7382 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7383 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7384 test $i != 17 # 1/2 MB should be enough
7387 teststring=$teststring$teststring
7389 # Only check the string length outside the loop.
7390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7392 # Add a significant safety factor because C++ compilers can tack on
7393 # massive amounts of additional arguments before passing them to the
7394 # linker. It appears as though 1/2 is a usable value.
7395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7402 if test -n $lt_cv_sys_max_cmd_len ; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7404 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7407 $as_echo "none" >&6; }
7409 max_cmd_len=$lt_cv_sys_max_cmd_len
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7421 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7422 # Try some XSI features
7425 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7427 && eval 'test $(( 1 + 1 )) -eq 2 \
7428 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7431 $as_echo "$xsi_shell" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7435 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7437 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7439 && lt_shell_append=yes
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7441 $as_echo "$lt_shell_append" >&6; }
7444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7454 # test EBCDIC or ASCII
7455 case `echo X|tr X '\101'` in
7456 A) # ASCII based system
7457 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7458 lt_SP2NL='tr \040 \012'
7459 lt_NL2SP='tr \015\012 \040\040'
7461 *) # EBCDIC based system
7462 lt_SP2NL='tr \100 \n'
7463 lt_NL2SP='tr \r\n \100\100'
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7476 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7477 if ${lt_cv_to_host_file_cmd+:} false; then :
7478 $as_echo_n "(cached) " >&6
7483 *-*-mingw* ) # actually msys
7484 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7487 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7489 * ) # otherwise, assume *nix
7490 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7496 *-*-mingw* ) # actually msys
7497 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7500 lt_cv_to_host_file_cmd=func_convert_file_noop
7502 * ) # otherwise, assume *nix
7503 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7507 * ) # unhandled hosts (and "normal" native builds)
7508 lt_cv_to_host_file_cmd=func_convert_file_noop
7514 to_host_file_cmd=$lt_cv_to_host_file_cmd
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7516 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7523 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7524 if ${lt_cv_to_tool_file_cmd+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 #assume ordinary cross tools, or native build.
7528 lt_cv_to_tool_file_cmd=func_convert_file_noop
7532 *-*-mingw* ) # actually msys
7533 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7541 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7543 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7550 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7551 if ${lt_cv_ld_reload_flag+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 lt_cv_ld_reload_flag='-r'
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7557 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7558 reload_flag=$lt_cv_ld_reload_flag
7559 case $reload_flag in
7561 *) reload_flag=" $reload_flag" ;;
7563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7565 cygwin* | mingw* | pw32* | cegcc*)
7566 if test "$GCC" != yes; then
7571 if test "$GCC" = yes; then
7572 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7587 if test -n "$ac_tool_prefix"; then
7588 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_OBJDUMP+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$OBJDUMP"; then
7596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 OBJDUMP=$ac_cv_prog_OBJDUMP
7616 if test -n "$OBJDUMP"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7618 $as_echo "$OBJDUMP" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7626 if test -z "$ac_cv_prog_OBJDUMP"; then
7627 ac_ct_OBJDUMP=$OBJDUMP
7628 # Extract the first word of "objdump", so it can be a program name with args.
7629 set dummy objdump; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7633 $as_echo_n "(cached) " >&6
7635 if test -n "$ac_ct_OBJDUMP"; then
7636 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7656 if test -n "$ac_ct_OBJDUMP"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7658 $as_echo "$ac_ct_OBJDUMP" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7664 if test "x$ac_ct_OBJDUMP" = x; then
7667 case $cross_compiling:$ac_tool_warned in
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7673 OBJDUMP=$ac_ct_OBJDUMP
7676 OBJDUMP="$ac_cv_prog_OBJDUMP"
7679 test -z "$OBJDUMP" && OBJDUMP=objdump
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7690 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7691 if ${lt_cv_deplibs_check_method+:} false; then :
7692 $as_echo_n "(cached) " >&6
7694 lt_cv_file_magic_cmd='$MAGIC_CMD'
7695 lt_cv_file_magic_test_file=
7696 lt_cv_deplibs_check_method='unknown'
7697 # Need to set the preceding variable on all platforms that support
7698 # interlibrary dependencies.
7699 # 'none' -- dependencies not supported.
7700 # `unknown' -- same as none, but documents that we really don't know.
7701 # 'pass_all' -- all dependencies passed with no checks.
7702 # 'test_compile' -- check by making test program.
7703 # 'file_magic [[regex]]' -- check by looking for files in library path
7704 # which responds to the $file_magic_cmd with a given extended regex.
7705 # If you have `file' or equivalent on your system and you're not sure
7706 # whether `pass_all' will *always* work, you probably want this one.
7710 lt_cv_deplibs_check_method=pass_all
7714 lt_cv_deplibs_check_method=pass_all
7718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7719 lt_cv_file_magic_cmd='/usr/bin/file -L'
7720 lt_cv_file_magic_test_file=/shlib/libc.so
7724 # func_win32_libid is a shell function defined in ltmain.sh
7725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7726 lt_cv_file_magic_cmd='func_win32_libid'
7730 # Base MSYS/MinGW do not provide the 'file' command needed by
7731 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7732 # unless we find 'file', for example because we are cross-compiling.
7733 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7734 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7735 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7736 lt_cv_file_magic_cmd='func_win32_libid'
7738 # Keep this pattern in sync with the one in func_win32_libid.
7739 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7740 lt_cv_file_magic_cmd='$OBJDUMP -f'
7745 # use the weaker test based on 'objdump'. See mingw*.
7746 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7747 lt_cv_file_magic_cmd='$OBJDUMP -f'
7750 darwin* | rhapsody*)
7751 lt_cv_deplibs_check_method=pass_all
7754 freebsd* | dragonfly*)
7755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7758 # Not sure whether the presence of OpenBSD here was a mistake.
7759 # Let's accept both of them until this is cleared up.
7760 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7761 lt_cv_file_magic_cmd=/usr/bin/file
7762 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7766 lt_cv_deplibs_check_method=pass_all
7771 lt_cv_deplibs_check_method=pass_all
7775 lt_cv_deplibs_check_method=pass_all
7778 hpux10.20* | hpux11*)
7779 lt_cv_file_magic_cmd=/usr/bin/file
7782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7783 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7786 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]'
7787 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7791 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7797 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7801 irix5* | irix6* | nonstopux*)
7803 *-32|*"-32 ") libmagic=32-bit;;
7804 *-n32|*"-n32 ") libmagic=N32;;
7805 *-64|*"-64 ") libmagic=64-bit;;
7806 *) libmagic=never-match;;
7808 lt_cv_deplibs_check_method=pass_all
7811 # This must be Linux ELF.
7812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7813 lt_cv_deplibs_check_method=pass_all
7817 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7825 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7826 lt_cv_file_magic_cmd=/usr/bin/file
7827 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7831 lt_cv_deplibs_check_method=pass_all
7835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7842 osf3* | osf4* | osf5*)
7843 lt_cv_deplibs_check_method=pass_all
7847 lt_cv_deplibs_check_method=pass_all
7851 lt_cv_deplibs_check_method=pass_all
7854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7855 lt_cv_deplibs_check_method=pass_all
7859 case $host_vendor in
7861 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]'
7862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7865 lt_cv_deplibs_check_method=pass_all
7868 lt_cv_file_magic_cmd='/bin/file'
7869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7872 lt_cv_file_magic_cmd='/bin/file'
7873 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7874 lt_cv_file_magic_test_file=/lib/libc.so
7877 lt_cv_deplibs_check_method=pass_all
7880 lt_cv_deplibs_check_method=pass_all
7886 lt_cv_deplibs_check_method=pass_all
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7892 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7896 if test "$build" = "$host"; then
7899 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7902 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7908 file_magic_cmd=$lt_cv_file_magic_cmd
7909 deplibs_check_method=$lt_cv_deplibs_check_method
7910 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7933 if test -n "$ac_tool_prefix"; then
7934 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if ${ac_cv_prog_DLLTOOL+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 if test -n "$DLLTOOL"; then
7942 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 DLLTOOL=$ac_cv_prog_DLLTOOL
7962 if test -n "$DLLTOOL"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7964 $as_echo "$DLLTOOL" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7972 if test -z "$ac_cv_prog_DLLTOOL"; then
7973 ac_ct_DLLTOOL=$DLLTOOL
7974 # Extract the first word of "dlltool", so it can be a program name with args.
7975 set dummy dlltool; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7979 $as_echo_n "(cached) " >&6
7981 if test -n "$ac_ct_DLLTOOL"; then
7982 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8002 if test -n "$ac_ct_DLLTOOL"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8004 $as_echo "$ac_ct_DLLTOOL" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8010 if test "x$ac_ct_DLLTOOL" = x; then
8013 case $cross_compiling:$ac_tool_warned in
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8019 DLLTOOL=$ac_ct_DLLTOOL
8022 DLLTOOL="$ac_cv_prog_DLLTOOL"
8025 test -z "$DLLTOOL" && DLLTOOL=dlltool
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8037 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8038 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8039 $as_echo_n "(cached) " >&6
8041 lt_cv_sharedlib_from_linklib_cmd='unknown'
8044 cygwin* | mingw* | pw32* | cegcc*)
8045 # two different shell functions defined in ltmain.sh
8046 # decide which to use based on capabilities of $DLLTOOL
8047 case `$DLLTOOL --help 2>&1` in
8048 *--identify-strict*)
8049 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8052 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8057 # fallback: assume linklib IS sharedlib
8058 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8064 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8065 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8066 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8074 if test -n "$ac_tool_prefix"; then
8077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_AR+:} false; then :
8082 $as_echo_n "(cached) " >&6
8084 if test -n "$AR"; then
8085 ac_cv_prog_AR="$AR" # Let the user override the test.
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 if test -n "$AR"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8107 $as_echo "$AR" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8114 test -n "$AR" && break
8117 if test -z "$AR"; then
8121 # Extract the first word of "$ac_prog", so it can be a program name with args.
8122 set dummy $ac_prog; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8126 $as_echo_n "(cached) " >&6
8128 if test -n "$ac_ct_AR"; then
8129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_ac_ct_AR="$ac_prog"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8149 if test -n "$ac_ct_AR"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8151 $as_echo "$ac_ct_AR" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 test -n "$ac_ct_AR" && break
8161 if test "x$ac_ct_AR" = x; then
8164 case $cross_compiling:$ac_tool_warned in
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8188 $as_echo_n "checking for archiver @FILE support... " >&6; }
8189 if ${lt_cv_ar_at_file+:} false; then :
8190 $as_echo_n "(cached) " >&6
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 echo conftest.$ac_objext > conftest.lst
8206 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8208 (eval $lt_ar_try) 2>&5
8210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; }
8212 if test "$ac_status" -eq 0; then
8213 # Ensure the archiver fails upon bogus file names.
8214 rm -f conftest.$ac_objext libconftest.a
8215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8216 (eval $lt_ar_try) 2>&5
8218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; }
8220 if test "$ac_status" -ne 0; then
8224 rm -f conftest.* libconftest.a
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8231 $as_echo "$lt_cv_ar_at_file" >&6; }
8233 if test "x$lt_cv_ar_at_file" = xno; then
8236 archiver_list_spec=$lt_cv_ar_at_file
8245 if test -n "$ac_tool_prefix"; then
8246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8247 set dummy ${ac_tool_prefix}strip; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if ${ac_cv_prog_STRIP+:} false; then :
8251 $as_echo_n "(cached) " >&6
8253 if test -n "$STRIP"; then
8254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 STRIP=$ac_cv_prog_STRIP
8274 if test -n "$STRIP"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8276 $as_echo "$STRIP" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8284 if test -z "$ac_cv_prog_STRIP"; then
8286 # Extract the first word of "strip", so it can be a program name with args.
8287 set dummy strip; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 if test -n "$ac_ct_STRIP"; then
8294 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_ac_ct_STRIP="strip"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8314 if test -n "$ac_ct_STRIP"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8316 $as_echo "$ac_ct_STRIP" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8322 if test "x$ac_ct_STRIP" = x; then
8325 case $cross_compiling:$ac_tool_warned in
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8329 ac_tool_warned=yes ;;
8334 STRIP="$ac_cv_prog_STRIP"
8337 test -z "$STRIP" && STRIP=:
8344 if test -n "$ac_tool_prefix"; then
8345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_RANLIB+:} false; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -n "$RANLIB"; then
8353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 RANLIB=$ac_cv_prog_RANLIB
8373 if test -n "$RANLIB"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8375 $as_echo "$RANLIB" >&6; }
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8383 if test -z "$ac_cv_prog_RANLIB"; then
8384 ac_ct_RANLIB=$RANLIB
8385 # Extract the first word of "ranlib", so it can be a program name with args.
8386 set dummy ranlib; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8390 $as_echo_n "(cached) " >&6
8392 if test -n "$ac_ct_RANLIB"; then
8393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_ac_ct_RANLIB="ranlib"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8413 if test -n "$ac_ct_RANLIB"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8415 $as_echo "$ac_ct_RANLIB" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8421 if test "x$ac_ct_RANLIB" = x; then
8424 case $cross_compiling:$ac_tool_warned in
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428 ac_tool_warned=yes ;;
8430 RANLIB=$ac_ct_RANLIB
8433 RANLIB="$ac_cv_prog_RANLIB"
8436 test -z "$RANLIB" && RANLIB=:
8443 # Determine commands to create old-style static archives.
8444 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8445 old_postinstall_cmds='chmod 644 $oldlib'
8446 old_postuninstall_cmds=
8448 if test -n "$RANLIB"; then
8451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8457 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8462 lock_old_archive_extraction=yes ;;
8464 lock_old_archive_extraction=no ;;
8505 # If no C compiler was specified, use CC.
8508 # If no C compiler flags were specified, use CFLAGS.
8509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8511 # Allow CC to be a program name with arguments.
8515 # Check for command to grab the raw symbol name followed by C symbol from nm.
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8517 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8518 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8519 $as_echo_n "(cached) " >&6
8522 # These are sane defaults that work on at least a few old systems.
8523 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8525 # Character class describing NM global symbol codes.
8526 symcode='[BCDEGRST]'
8528 # Regexp to match symbols that can be accessed directly from C.
8529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8531 # Define system-specific variables.
8536 cygwin* | mingw* | pw32* | cegcc*)
8537 symcode='[ABCDGISTW]'
8540 if test "$host_cpu" = ia64; then
8541 symcode='[ABCDEGRST]'
8545 symcode='[BCDEGRST]'
8548 symcode='[BCDEGQRST]'
8559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8567 # If we're using GNU nm, then use its standard symbol codes.
8568 case `$NM -V 2>&1` in
8569 *GNU* | *'with BFD'*)
8570 symcode='[ABCDGIRSTW]' ;;
8573 # Transform an extracted symbol line into a proper C declaration.
8574 # Some systems (esp. on ia64) link data and code symbols differently,
8575 # so use this general approach.
8576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8578 # Transform an extracted symbol line into symbol name and symbol address
8579 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8580 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'"
8582 # Handle CRLF in mingw tool chain
8586 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8590 # Try without a prefix underscore, then with it.
8591 for ac_symprfx in "" "_"; do
8593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8594 symxfrm="\\1 $ac_symprfx\\2 \\2"
8596 # Write the raw and C identifiers.
8597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8598 # Fake it for dumpbin and say T for any non-static function
8599 # and D for any global variable.
8600 # Also find C++ and __fastcall symbols from MSVC++,
8601 # which start with @ or ?.
8602 lt_cv_sys_global_symbol_pipe="$AWK '"\
8603 " {last_section=section; section=\$ 3};"\
8604 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8605 " \$ 0!~/External *\|/{next};"\
8606 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8607 " {if(hide[section]) next};"\
8608 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8609 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8610 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8611 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8612 " ' prfx=^$ac_symprfx"
8614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8616 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8618 # Check to see that the pipe works correctly.
8622 cat > conftest.$ac_ext <<_LT_EOF
8627 void nm_test_func(void);
8628 void nm_test_func(void){}
8632 int main(){nm_test_var='a';nm_test_func();return(0);}
8635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8636 (eval $ac_compile) 2>&5
8638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8639 test $ac_status = 0; }; then
8640 # Now try to grab the symbols.
8642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8643 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8646 test $ac_status = 0; } && test -s "$nlist"; then
8647 # Try sorting and uniquifying the output.
8648 if sort "$nlist" | uniq > "$nlist"T; then
8649 mv -f "$nlist"T "$nlist"
8654 # Make sure that we snagged all the symbols we need.
8655 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8656 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8657 cat <<_LT_EOF > conftest.$ac_ext
8658 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8659 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8660 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8661 relocations are performed -- see ld's documentation on pseudo-relocs. */
8662 # define LT_DLSYM_CONST
8663 #elif defined(__osf__)
8664 /* This system does not cope well with relocations in const data. */
8665 # define LT_DLSYM_CONST
8667 # define LT_DLSYM_CONST const
8675 # Now generate the symbol file.
8676 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8678 cat <<_LT_EOF >> conftest.$ac_ext
8680 /* The mapping between symbol names and symbols. */
8681 LT_DLSYM_CONST struct {
8685 lt__PROGRAM__LTX_preloaded_symbols[] =
8687 { "@PROGRAM@", (void *) 0 },
8689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8690 cat <<\_LT_EOF >> conftest.$ac_ext
8694 /* This works around a problem in FreeBSD linker */
8695 #ifdef FREEBSD_WORKAROUND
8696 static const void *lt_preloaded_setup() {
8697 return lt__PROGRAM__LTX_preloaded_symbols;
8705 # Now try linking the two files.
8706 mv conftest.$ac_objext conftstm.$ac_objext
8707 lt_globsym_save_LIBS=$LIBS
8708 lt_globsym_save_CFLAGS=$CFLAGS
8709 LIBS="conftstm.$ac_objext"
8710 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8712 (eval $ac_link) 2>&5
8714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8715 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8718 LIBS=$lt_globsym_save_LIBS
8719 CFLAGS=$lt_globsym_save_CFLAGS
8721 echo "cannot find nm_test_func in $nlist" >&5
8724 echo "cannot find nm_test_var in $nlist" >&5
8727 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8730 echo "$progname: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 rm -rf conftest* conftst*
8735 # Do not use the global_symbol_pipe unless it works.
8736 if test "$pipe_works" = yes; then
8739 lt_cv_sys_global_symbol_pipe=
8745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8746 lt_cv_sys_global_symbol_to_cdecl=
8748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8750 $as_echo "failed" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8753 $as_echo "ok" >&6; }
8756 # Response file support.
8757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8758 nm_file_list_spec='@'
8759 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8760 nm_file_list_spec='@'
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8790 $as_echo_n "checking for sysroot... " >&6; }
8792 # Check whether --with-sysroot was given.
8793 if test "${with_sysroot+set}" = set; then :
8794 withval=$with_sysroot;
8801 case ${with_sysroot} in #(
8803 if test "$GCC" = yes; then
8804 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8808 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8814 $as_echo "${with_sysroot}" >&6; }
8815 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8820 $as_echo "${lt_sysroot:-no}" >&6; }
8826 # Check whether --enable-libtool-lock was given.
8827 if test "${enable_libtool_lock+set}" = set; then :
8828 enableval=$enable_libtool_lock;
8831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8833 # Some flags need to be propagated to the compiler or linker for good
8837 # Find out which ABI we are using.
8838 echo 'int i;' > conftest.$ac_ext
8839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8840 (eval $ac_compile) 2>&5
8842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8843 test $ac_status = 0; }; then
8844 case `/usr/bin/file conftest.$ac_objext` in
8856 # Find out which ABI we are using.
8857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8859 (eval $ac_compile) 2>&5
8861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862 test $ac_status = 0; }; then
8863 if test "$lt_cv_prog_gnu_ld" = yes; then
8864 case `/usr/bin/file conftest.$ac_objext` in
8866 LD="${LD-ld} -melf32bsmip"
8869 LD="${LD-ld} -melf32bmipn32"
8872 LD="${LD-ld} -melf64bmip"
8876 case `/usr/bin/file conftest.$ac_objext` in
8892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8894 # Find out which ABI we are using.
8895 echo 'int i;' > conftest.$ac_ext
8896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8897 (eval $ac_compile) 2>&5
8899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8900 test $ac_status = 0; }; then
8901 case `/usr/bin/file conftest.o` in
8904 x86_64-*kfreebsd*-gnu)
8905 LD="${LD-ld} -m elf_i386_fbsd"
8908 LD="${LD-ld} -m elf_i386"
8910 ppc64-*linux*|powerpc64-*linux*)
8911 LD="${LD-ld} -m elf32ppclinux"
8914 LD="${LD-ld} -m elf_s390"
8917 LD="${LD-ld} -m elf32_sparc"
8923 x86_64-*kfreebsd*-gnu)
8924 LD="${LD-ld} -m elf_x86_64_fbsd"
8927 LD="${LD-ld} -m elf_x86_64"
8929 ppc*-*linux*|powerpc*-*linux*)
8930 LD="${LD-ld} -m elf64ppc"
8932 s390*-*linux*|s390*-*tpf*)
8933 LD="${LD-ld} -m elf64_s390"
8936 LD="${LD-ld} -m elf64_sparc"
8946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8947 SAVE_CFLAGS="$CFLAGS"
8948 CFLAGS="$CFLAGS -belf"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8951 if ${lt_cv_cc_needs_belf+:} false; then :
8952 $as_echo_n "(cached) " >&6
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 lt_cv_cc_needs_belf=yes
8974 lt_cv_cc_needs_belf=no
8976 rm -f core conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8979 ac_cpp='$CPP $CPPFLAGS'
8980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8989 CFLAGS="$SAVE_CFLAGS"
8993 # Find out which ABI we are using.
8994 echo 'int i;' > conftest.$ac_ext
8995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8996 (eval $ac_compile) 2>&5
8998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8999 test $ac_status = 0; }; then
9000 case `/usr/bin/file conftest.o` in
9002 case $lt_cv_prog_gnu_ld in
9003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9017 need_locks="$enable_libtool_lock"
9019 if test -n "$ac_tool_prefix"; then
9020 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9021 set dummy ${ac_tool_prefix}mt; ac_word=$2
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023 $as_echo_n "checking for $ac_word... " >&6; }
9024 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9025 $as_echo_n "(cached) " >&6
9027 if test -n "$MANIFEST_TOOL"; then
9028 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9048 if test -n "$MANIFEST_TOOL"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9050 $as_echo "$MANIFEST_TOOL" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9058 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9059 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9060 # Extract the first word of "mt", so it can be a program name with args.
9061 set dummy mt; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9065 $as_echo_n "(cached) " >&6
9067 if test -n "$ac_ct_MANIFEST_TOOL"; then
9068 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9088 if test -n "$ac_ct_MANIFEST_TOOL"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9090 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9096 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9099 case $cross_compiling:$ac_tool_warned in
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9103 ac_tool_warned=yes ;;
9105 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9108 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9111 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9113 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9114 if ${lt_cv_path_mainfest_tool+:} false; then :
9115 $as_echo_n "(cached) " >&6
9117 lt_cv_path_mainfest_tool=no
9118 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9119 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9120 cat conftest.err >&5
9121 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9122 lt_cv_path_mainfest_tool=yes
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9127 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9128 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9138 rhapsody* | darwin*)
9139 if test -n "$ac_tool_prefix"; then
9140 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9145 $as_echo_n "(cached) " >&6
9147 if test -n "$DSYMUTIL"; then
9148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9168 if test -n "$DSYMUTIL"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9170 $as_echo "$DSYMUTIL" >&6; }
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9178 if test -z "$ac_cv_prog_DSYMUTIL"; then
9179 ac_ct_DSYMUTIL=$DSYMUTIL
9180 # Extract the first word of "dsymutil", so it can be a program name with args.
9181 set dummy dsymutil; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9185 $as_echo_n "(cached) " >&6
9187 if test -n "$ac_ct_DSYMUTIL"; then
9188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9208 if test -n "$ac_ct_DSYMUTIL"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9216 if test "x$ac_ct_DSYMUTIL" = x; then
9219 case $cross_compiling:$ac_tool_warned in
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9223 ac_tool_warned=yes ;;
9225 DSYMUTIL=$ac_ct_DSYMUTIL
9228 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9231 if test -n "$ac_tool_prefix"; then
9232 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235 $as_echo_n "checking for $ac_word... " >&6; }
9236 if ${ac_cv_prog_NMEDIT+:} false; then :
9237 $as_echo_n "(cached) " >&6
9239 if test -n "$NMEDIT"; then
9240 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 test -z "$as_dir" && as_dir=.
9247 for ac_exec_ext in '' $ac_executable_extensions; do
9248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9249 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 NMEDIT=$ac_cv_prog_NMEDIT
9260 if test -n "$NMEDIT"; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9262 $as_echo "$NMEDIT" >&6; }
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9270 if test -z "$ac_cv_prog_NMEDIT"; then
9271 ac_ct_NMEDIT=$NMEDIT
9272 # Extract the first word of "nmedit", so it can be a program name with args.
9273 set dummy nmedit; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9277 $as_echo_n "(cached) " >&6
9279 if test -n "$ac_ct_NMEDIT"; then
9280 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9300 if test -n "$ac_ct_NMEDIT"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9302 $as_echo "$ac_ct_NMEDIT" >&6; }
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9308 if test "x$ac_ct_NMEDIT" = x; then
9311 case $cross_compiling:$ac_tool_warned in
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9315 ac_tool_warned=yes ;;
9317 NMEDIT=$ac_ct_NMEDIT
9320 NMEDIT="$ac_cv_prog_NMEDIT"
9323 if test -n "$ac_tool_prefix"; then
9324 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_prog_LIPO+:} false; then :
9329 $as_echo_n "(cached) " >&6
9331 if test -n "$LIPO"; then
9332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 LIPO=$ac_cv_prog_LIPO
9352 if test -n "$LIPO"; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9354 $as_echo "$LIPO" >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9362 if test -z "$ac_cv_prog_LIPO"; then
9364 # Extract the first word of "lipo", so it can be a program name with args.
9365 set dummy lipo; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9369 $as_echo_n "(cached) " >&6
9371 if test -n "$ac_ct_LIPO"; then
9372 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_prog_ac_ct_LIPO="lipo"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9392 if test -n "$ac_ct_LIPO"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9394 $as_echo "$ac_ct_LIPO" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9400 if test "x$ac_ct_LIPO" = x; then
9403 case $cross_compiling:$ac_tool_warned in
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9407 ac_tool_warned=yes ;;
9412 LIPO="$ac_cv_prog_LIPO"
9415 if test -n "$ac_tool_prefix"; then
9416 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9417 set dummy ${ac_tool_prefix}otool; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_prog_OTOOL+:} false; then :
9421 $as_echo_n "(cached) " >&6
9423 if test -n "$OTOOL"; then
9424 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 OTOOL=$ac_cv_prog_OTOOL
9444 if test -n "$OTOOL"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9446 $as_echo "$OTOOL" >&6; }
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9454 if test -z "$ac_cv_prog_OTOOL"; then
9456 # Extract the first word of "otool", so it can be a program name with args.
9457 set dummy otool; ac_word=$2
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9459 $as_echo_n "checking for $ac_word... " >&6; }
9460 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9461 $as_echo_n "(cached) " >&6
9463 if test -n "$ac_ct_OTOOL"; then
9464 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_prog_ac_ct_OTOOL="otool"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9484 if test -n "$ac_ct_OTOOL"; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9486 $as_echo "$ac_ct_OTOOL" >&6; }
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9489 $as_echo "no" >&6; }
9492 if test "x$ac_ct_OTOOL" = x; then
9495 case $cross_compiling:$ac_tool_warned in
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9499 ac_tool_warned=yes ;;
9504 OTOOL="$ac_cv_prog_OTOOL"
9507 if test -n "$ac_tool_prefix"; then
9508 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_prog_OTOOL64+:} false; then :
9513 $as_echo_n "(cached) " >&6
9515 if test -n "$OTOOL64"; then
9516 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9535 OTOOL64=$ac_cv_prog_OTOOL64
9536 if test -n "$OTOOL64"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9538 $as_echo "$OTOOL64" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9546 if test -z "$ac_cv_prog_OTOOL64"; then
9547 ac_ct_OTOOL64=$OTOOL64
9548 # Extract the first word of "otool64", so it can be a program name with args.
9549 set dummy otool64; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9553 $as_echo_n "(cached) " >&6
9555 if test -n "$ac_ct_OTOOL64"; then
9556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_prog_ac_ct_OTOOL64="otool64"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9576 if test -n "$ac_ct_OTOOL64"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9578 $as_echo "$ac_ct_OTOOL64" >&6; }
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9584 if test "x$ac_ct_OTOOL64" = x; then
9587 case $cross_compiling:$ac_tool_warned in
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9591 ac_tool_warned=yes ;;
9593 OTOOL64=$ac_ct_OTOOL64
9596 OTOOL64="$ac_cv_prog_OTOOL64"
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9626 $as_echo_n "checking for -single_module linker flag... " >&6; }
9627 if ${lt_cv_apple_cc_single_mod+:} false; then :
9628 $as_echo_n "(cached) " >&6
9630 lt_cv_apple_cc_single_mod=no
9631 if test -z "${LT_MULTI_MODULE}"; then
9632 # By default we will add the -single_module flag. You can override
9633 # by either setting the environment variable LT_MULTI_MODULE
9634 # non-empty at configure time, or by adding -multi_module to the
9636 rm -rf libconftest.dylib*
9637 echo "int foo(void){return 1;}" > conftest.c
9638 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9639 -dynamiclib -Wl,-single_module conftest.c" >&5
9640 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9641 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9643 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9644 lt_cv_apple_cc_single_mod=yes
9646 cat conftest.err >&5
9648 rm -rf libconftest.dylib*
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9653 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9655 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9656 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9657 $as_echo_n "(cached) " >&6
9659 lt_cv_ld_exported_symbols_list=no
9660 save_LDFLAGS=$LDFLAGS
9661 echo "_main" > conftest.sym
9662 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9674 if ac_fn_c_try_link "$LINENO"; then :
9675 lt_cv_ld_exported_symbols_list=yes
9677 lt_cv_ld_exported_symbols_list=no
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LDFLAGS="$save_LDFLAGS"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9685 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9687 $as_echo_n "checking for -force_load linker flag... " >&6; }
9688 if ${lt_cv_ld_force_load+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 lt_cv_ld_force_load=no
9692 cat > conftest.c << _LT_EOF
9693 int forced_loaded() { return 2;}
9695 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9696 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9697 echo "$AR cru libconftest.a conftest.o" >&5
9698 $AR cru libconftest.a conftest.o 2>&5
9699 echo "$RANLIB libconftest.a" >&5
9700 $RANLIB libconftest.a 2>&5
9701 cat > conftest.c << _LT_EOF
9702 int main() { return 0;}
9704 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9705 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9707 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9708 lt_cv_ld_force_load=yes
9710 cat conftest.err >&5
9712 rm -f conftest.err libconftest.a conftest conftest.c
9713 rm -rf conftest.dSYM
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9717 $as_echo "$lt_cv_ld_force_load" >&6; }
9719 rhapsody* | darwin1.[012])
9720 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9722 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9723 darwin*) # darwin 5.x on
9724 # if running on 10.5 or later, the deployment target defaults
9725 # to the OS version, if on x86, and 10.4, the deployment
9726 # target defaults to 10.4. Don't you love it?
9727 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9728 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9729 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9733 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9737 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9738 _lt_dar_single_mod='$single_module'
9740 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9741 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9743 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9745 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9746 _lt_dsymutil='~$DSYMUTIL $lib || :'
9753 for ac_header in dlfcn.h
9755 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9757 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9758 cat >>confdefs.h <<_ACEOF
9759 #define HAVE_DLFCN_H 1
9769 func_stripname_cnf ()
9772 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9773 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9775 } # func_stripname_cnf
9791 # Check whether --enable-shared was given.
9792 if test "${enable_shared+set}" = set; then :
9793 enableval=$enable_shared; p=${PACKAGE-default}
9795 yes) enable_shared=yes ;;
9796 no) enable_shared=no ;;
9799 # Look at the argument we got. We use all the common list separators.
9800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801 for pkg in $enableval; do
9803 if test "X$pkg" = "X$p"; then
9822 # Check whether --enable-static was given.
9823 if test "${enable_static+set}" = set; then :
9824 enableval=$enable_static; p=${PACKAGE-default}
9826 yes) enable_static=yes ;;
9827 no) enable_static=no ;;
9830 # Look at the argument we got. We use all the common list separators.
9831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9832 for pkg in $enableval; do
9834 if test "X$pkg" = "X$p"; then
9854 # Check whether --with-pic was given.
9855 if test "${with_pic+set}" = set; then :
9856 withval=$with_pic; pic_mode="$withval"
9862 test -z "$pic_mode" && pic_mode=default
9870 # Check whether --enable-fast-install was given.
9871 if test "${enable_fast_install+set}" = set; then :
9872 enableval=$enable_fast_install; p=${PACKAGE-default}
9874 yes) enable_fast_install=yes ;;
9875 no) enable_fast_install=no ;;
9877 enable_fast_install=no
9878 # Look at the argument we got. We use all the common list separators.
9879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9880 for pkg in $enableval; do
9882 if test "X$pkg" = "X$p"; then
9883 enable_fast_install=yes
9890 enable_fast_install=yes
9903 # This can be used to rebuild libtool when needed
9904 LIBTOOL_DEPS="$ltmain"
9906 # Always use our own libtool.
9907 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9934 test -z "$LN_S" && LN_S="ln -s"
9949 if test -n "${ZSH_VERSION+set}" ; then
9950 setopt NO_GLOB_SUBST
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9954 $as_echo_n "checking for objdir... " >&6; }
9955 if ${lt_cv_objdir+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 rm -f .libs 2>/dev/null
9959 mkdir .libs 2>/dev/null
9960 if test -d .libs; then
9963 # MS-DOS does not allow filenames that begin with a dot.
9966 rmdir .libs 2>/dev/null
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9969 $as_echo "$lt_cv_objdir" >&6; }
9970 objdir=$lt_cv_objdir
9976 cat >>confdefs.h <<_ACEOF
9977 #define LT_OBJDIR "$lt_cv_objdir/"
9985 # AIX sometimes has problems with the GCC collect2 program. For some
9986 # reason, if we set the COLLECT_NAMES environment variable, the problems
9987 # vanish in a puff of smoke.
9988 if test "X${COLLECT_NAMES+set}" != Xset; then
9990 export COLLECT_NAMES
9997 can_build_shared=yes
9999 # All known linkers require a `.a' archive for static linking (except MSVC,
10000 # which needs '.lib').
10003 with_gnu_ld="$lt_cv_prog_gnu_ld"
10006 old_CFLAGS="$CFLAGS"
10008 # Set sane defaults for various variables
10009 test -z "$CC" && CC=cc
10010 test -z "$LTCC" && LTCC=$CC
10011 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10012 test -z "$LD" && LD=ld
10013 test -z "$ac_objext" && ac_objext=o
10015 for cc_temp in $compiler""; do
10017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10023 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10026 # Only perform the check for file, if the check method requires it
10027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10028 case $deplibs_check_method in
10030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10033 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10034 $as_echo_n "(cached) " >&6
10038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10041 lt_save_MAGIC_CMD="$MAGIC_CMD"
10042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10044 for ac_dir in $ac_dummy; do
10046 test -z "$ac_dir" && ac_dir=.
10047 if test -f $ac_dir/${ac_tool_prefix}file; then
10048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10049 if test -n "$file_magic_test_file"; then
10050 case $deplibs_check_method in
10052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10055 $EGREP "$file_magic_regex" > /dev/null; then
10060 *** Warning: the command libtool uses to detect shared libraries,
10061 *** $file_magic_cmd, produces output that libtool cannot recognize.
10062 *** The result is that libtool may fail to recognize shared libraries
10063 *** as such. This will affect the creation of libtool libraries that
10064 *** depend on shared libraries, but programs linked with such libtool
10065 *** libraries will work regardless of this problem. Nevertheless, you
10066 *** may want to report the problem to your system manager and/or to
10067 *** bug-libtool@gnu.org
10077 MAGIC_CMD="$lt_save_MAGIC_CMD"
10082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10083 if test -n "$MAGIC_CMD"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10085 $as_echo "$MAGIC_CMD" >&6; }
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10095 if test -z "$lt_cv_path_MAGIC_CMD"; then
10096 if test -n "$ac_tool_prefix"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10098 $as_echo_n "checking for file... " >&6; }
10099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10100 $as_echo_n "(cached) " >&6
10104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10107 lt_save_MAGIC_CMD="$MAGIC_CMD"
10108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10110 for ac_dir in $ac_dummy; do
10112 test -z "$ac_dir" && ac_dir=.
10113 if test -f $ac_dir/file; then
10114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10115 if test -n "$file_magic_test_file"; then
10116 case $deplibs_check_method in
10118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10121 $EGREP "$file_magic_regex" > /dev/null; then
10126 *** Warning: the command libtool uses to detect shared libraries,
10127 *** $file_magic_cmd, produces output that libtool cannot recognize.
10128 *** The result is that libtool may fail to recognize shared libraries
10129 *** as such. This will affect the creation of libtool libraries that
10130 *** depend on shared libraries, but programs linked with such libtool
10131 *** libraries will work regardless of this problem. Nevertheless, you
10132 *** may want to report the problem to your system manager and/or to
10133 *** bug-libtool@gnu.org
10143 MAGIC_CMD="$lt_save_MAGIC_CMD"
10148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10149 if test -n "$MAGIC_CMD"; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10151 $as_echo "$MAGIC_CMD" >&6; }
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10167 # Use C for the default configuration in the libtool script
10171 ac_cpp='$CPP $CPPFLAGS'
10172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177 # Source file extension for C test sources.
10180 # Object file extension for compiled C test sources.
10184 # Code to be used in simple compile tests
10185 lt_simple_compile_test_code="int some_variable = 0;"
10187 # Code to be used in simple link tests
10188 lt_simple_link_test_code='int main(){return(0);}'
10196 # If no C compiler was specified, use CC.
10199 # If no C compiler flags were specified, use CFLAGS.
10200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10202 # Allow CC to be a program name with arguments.
10205 # Save the default compiler, since it gets overwritten when the other
10206 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10207 compiler_DEFAULT=$CC
10209 # save warnings/boilerplate of simple test code
10210 ac_outfile=conftest.$ac_objext
10211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10213 _lt_compiler_boilerplate=`cat conftest.err`
10216 ac_outfile=conftest.$ac_objext
10217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10219 _lt_linker_boilerplate=`cat conftest.err`
10224 ## There is no encapsulation within the following macros, do not change
10225 ## the running order or otherwise move them around unless you know exactly
10226 ## what you are doing...
10227 if test -n "$compiler"; then
10229 lt_prog_compiler_no_builtin_flag=
10231 if test "$GCC" = yes; then
10232 case $cc_basename in
10234 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10236 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10240 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10241 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10242 $as_echo_n "(cached) " >&6
10244 lt_cv_prog_compiler_rtti_exceptions=no
10245 ac_outfile=conftest.$ac_objext
10246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10247 lt_compiler_flag="-fno-rtti -fno-exceptions"
10248 # Insert the option either (1) after the last *FLAGS variable, or
10249 # (2) before a word containing "conftest.", or (3) at the end.
10250 # Note that $ac_compile itself does not contain backslashes and begins
10251 # with a dollar sign (not a hyphen), so the echo should work correctly.
10252 # The option is referenced via a variable to avoid confusing sed.
10253 lt_compile=`echo "$ac_compile" | $SED \
10254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10256 -e 's:$: $lt_compiler_flag:'`
10257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10258 (eval "$lt_compile" 2>conftest.err)
10260 cat conftest.err >&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 if (exit $ac_status) && test -s "$ac_outfile"; then
10263 # The compiler can only warn and ignore the option if not recognized
10264 # So say no if there are warnings other than the usual output.
10265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10268 lt_cv_prog_compiler_rtti_exceptions=yes
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10275 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10278 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10290 lt_prog_compiler_wl=
10291 lt_prog_compiler_pic=
10292 lt_prog_compiler_static=
10295 if test "$GCC" = yes; then
10296 lt_prog_compiler_wl='-Wl,'
10297 lt_prog_compiler_static='-static'
10301 # All AIX code is PIC.
10302 if test "$host_cpu" = ia64; then
10303 # AIX 5 now supports IA64 processor
10304 lt_prog_compiler_static='-Bstatic'
10311 # see comment about AmigaOS4 .so support
10312 lt_prog_compiler_pic='-fPIC'
10315 # FIXME: we need at least 68020 code to build shared libraries, but
10316 # adding the `-m68020' flag to GCC prevents building anything better,
10318 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10323 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10324 # PIC is the default for these OSes.
10327 mingw* | cygwin* | pw32* | os2* | cegcc*)
10328 # This hack is so that the source file can tell whether it is being
10329 # built for inclusion in a dll (and should export symbols for example).
10330 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10331 # (--disable-auto-import) libraries
10332 lt_prog_compiler_pic='-DDLL_EXPORT'
10335 darwin* | rhapsody*)
10336 # PIC is the default on this platform
10337 # Common symbols not allowed in MH_DYLIB files
10338 lt_prog_compiler_pic='-fno-common'
10342 # PIC is the default for Haiku.
10343 # The "-static" flag exists, but is broken.
10344 lt_prog_compiler_static=
10348 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10349 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10350 # sets the default TLS model and affects inlining.
10356 lt_prog_compiler_pic='-fPIC'
10362 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10363 # Instead, we relocate shared libraries at runtime.
10367 # Just because we use GCC doesn't mean we suddenly get shared libraries
10368 # on systems that don't support them.
10369 lt_prog_compiler_can_build_shared=no
10374 # QNX uses GNU C++, but need to define -shared option too, otherwise
10375 # it will coredump.
10376 lt_prog_compiler_pic='-fPIC -shared'
10380 if test -d /usr/nec; then
10381 lt_prog_compiler_pic=-Kconform_pic
10386 lt_prog_compiler_pic='-fPIC'
10390 case $cc_basename in
10391 nvcc*) # Cuda Compiler Driver 2.2
10392 lt_prog_compiler_wl='-Xlinker '
10393 lt_prog_compiler_pic='-Xcompiler -fPIC'
10397 # PORTME Check for flag to pass linker flags through the system compiler.
10400 lt_prog_compiler_wl='-Wl,'
10401 if test "$host_cpu" = ia64; then
10402 # AIX 5 now supports IA64 processor
10403 lt_prog_compiler_static='-Bstatic'
10405 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10409 mingw* | cygwin* | pw32* | os2* | cegcc*)
10410 # This hack is so that the source file can tell whether it is being
10411 # built for inclusion in a dll (and should export symbols for example).
10412 lt_prog_compiler_pic='-DDLL_EXPORT'
10415 hpux9* | hpux10* | hpux11*)
10416 lt_prog_compiler_wl='-Wl,'
10417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10418 # not for PA HP-UX.
10424 lt_prog_compiler_pic='+Z'
10427 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10428 lt_prog_compiler_static='${wl}-a ${wl}archive'
10431 irix5* | irix6* | nonstopux*)
10432 lt_prog_compiler_wl='-Wl,'
10433 # PIC (with -KPIC) is the default.
10434 lt_prog_compiler_static='-non_shared'
10437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10438 case $cc_basename in
10439 # old Intel for x86_64 which still supported -KPIC.
10441 lt_prog_compiler_wl='-Wl,'
10442 lt_prog_compiler_pic='-KPIC'
10443 lt_prog_compiler_static='-static'
10445 # icc used to be incompatible with GCC.
10446 # ICC 10 doesn't accept -KPIC any more.
10448 lt_prog_compiler_wl='-Wl,'
10449 lt_prog_compiler_pic='-fPIC'
10450 lt_prog_compiler_static='-static'
10452 # Lahey Fortran 8.1.
10454 lt_prog_compiler_wl='-Wl,'
10455 lt_prog_compiler_pic='--shared'
10456 lt_prog_compiler_static='--static'
10459 # NAG Fortran compiler
10460 lt_prog_compiler_wl='-Wl,-Wl,,'
10461 lt_prog_compiler_pic='-PIC'
10462 lt_prog_compiler_static='-Bstatic'
10464 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10465 # Portland Group compilers (*not* the Pentium gcc compiler,
10466 # which looks to be a dead project)
10467 lt_prog_compiler_wl='-Wl,'
10468 lt_prog_compiler_pic='-fpic'
10469 lt_prog_compiler_static='-Bstatic'
10472 lt_prog_compiler_wl='-Wl,'
10473 # All Alpha code is PIC.
10474 lt_prog_compiler_static='-non_shared'
10476 xl* | bgxl* | bgf* | mpixl*)
10477 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10478 lt_prog_compiler_wl='-Wl,'
10479 lt_prog_compiler_pic='-qpic'
10480 lt_prog_compiler_static='-qstaticlink'
10483 case `$CC -V 2>&1 | sed 5q` in
10484 *Sun\ F* | *Sun*Fortran*)
10485 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10486 lt_prog_compiler_pic='-KPIC'
10487 lt_prog_compiler_static='-Bstatic'
10488 lt_prog_compiler_wl=''
10492 lt_prog_compiler_pic='-KPIC'
10493 lt_prog_compiler_static='-Bstatic'
10494 lt_prog_compiler_wl='-Wl,'
10502 lt_prog_compiler_pic='-KPIC'
10503 lt_prog_compiler_static='-Bstatic'
10507 # QNX uses GNU C++, but need to define -shared option too, otherwise
10508 # it will coredump.
10509 lt_prog_compiler_pic='-fPIC -shared'
10512 osf3* | osf4* | osf5*)
10513 lt_prog_compiler_wl='-Wl,'
10514 # All OSF/1 code is PIC.
10515 lt_prog_compiler_static='-non_shared'
10519 lt_prog_compiler_static='-non_shared'
10523 lt_prog_compiler_pic='-KPIC'
10524 lt_prog_compiler_static='-Bstatic'
10525 case $cc_basename in
10526 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10527 lt_prog_compiler_wl='-Qoption ld ';;
10529 lt_prog_compiler_wl='-Wl,';;
10534 lt_prog_compiler_wl='-Qoption ld '
10535 lt_prog_compiler_pic='-PIC'
10536 lt_prog_compiler_static='-Bstatic'
10539 sysv4 | sysv4.2uw2* | sysv4.3*)
10540 lt_prog_compiler_wl='-Wl,'
10541 lt_prog_compiler_pic='-KPIC'
10542 lt_prog_compiler_static='-Bstatic'
10546 if test -d /usr/nec ;then
10547 lt_prog_compiler_pic='-Kconform_pic'
10548 lt_prog_compiler_static='-Bstatic'
10552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10553 lt_prog_compiler_wl='-Wl,'
10554 lt_prog_compiler_pic='-KPIC'
10555 lt_prog_compiler_static='-Bstatic'
10559 lt_prog_compiler_wl='-Wl,'
10560 lt_prog_compiler_can_build_shared=no
10564 lt_prog_compiler_pic='-pic'
10565 lt_prog_compiler_static='-Bstatic'
10569 lt_prog_compiler_can_build_shared=no
10575 # For platforms which do not support PIC, -DPIC is meaningless:
10577 lt_prog_compiler_pic=
10580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10585 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10586 if ${lt_cv_prog_compiler_pic+:} false; then :
10587 $as_echo_n "(cached) " >&6
10589 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10592 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10593 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10596 # Check to make sure the PIC flag actually works.
10598 if test -n "$lt_prog_compiler_pic"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10600 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10601 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10602 $as_echo_n "(cached) " >&6
10604 lt_cv_prog_compiler_pic_works=no
10605 ac_outfile=conftest.$ac_objext
10606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10607 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10608 # Insert the option either (1) after the last *FLAGS variable, or
10609 # (2) before a word containing "conftest.", or (3) at the end.
10610 # Note that $ac_compile itself does not contain backslashes and begins
10611 # with a dollar sign (not a hyphen), so the echo should work correctly.
10612 # The option is referenced via a variable to avoid confusing sed.
10613 lt_compile=`echo "$ac_compile" | $SED \
10614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10616 -e 's:$: $lt_compiler_flag:'`
10617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10618 (eval "$lt_compile" 2>conftest.err)
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 if (exit $ac_status) && test -s "$ac_outfile"; then
10623 # The compiler can only warn and ignore the option if not recognized
10624 # So say no if there are warnings other than the usual output.
10625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10628 lt_cv_prog_compiler_pic_works=yes
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10635 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10637 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10638 case $lt_prog_compiler_pic in
10640 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10643 lt_prog_compiler_pic=
10644 lt_prog_compiler_can_build_shared=no
10660 # Check to make sure the static flag actually works.
10662 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10664 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10665 if ${lt_cv_prog_compiler_static_works+:} false; then :
10666 $as_echo_n "(cached) " >&6
10668 lt_cv_prog_compiler_static_works=no
10669 save_LDFLAGS="$LDFLAGS"
10670 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10671 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10673 # The linker can only warn and ignore the option if not recognized
10674 # So say no if there are warnings
10675 if test -s conftest.err; then
10676 # Append any errors to the config.log.
10677 cat conftest.err 1>&5
10678 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10680 if diff conftest.exp conftest.er2 >/dev/null; then
10681 lt_cv_prog_compiler_static_works=yes
10684 lt_cv_prog_compiler_static_works=yes
10688 LDFLAGS="$save_LDFLAGS"
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10692 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10694 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10697 lt_prog_compiler_static=
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10707 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10708 if ${lt_cv_prog_compiler_c_o+:} false; then :
10709 $as_echo_n "(cached) " >&6
10711 lt_cv_prog_compiler_c_o=no
10712 $RM -r conftest 2>/dev/null
10716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10718 lt_compiler_flag="-o out/conftest2.$ac_objext"
10719 # Insert the option either (1) after the last *FLAGS variable, or
10720 # (2) before a word containing "conftest.", or (3) at the end.
10721 # Note that $ac_compile itself does not contain backslashes and begins
10722 # with a dollar sign (not a hyphen), so the echo should work correctly.
10723 lt_compile=`echo "$ac_compile" | $SED \
10724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10726 -e 's:$: $lt_compiler_flag:'`
10727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10728 (eval "$lt_compile" 2>out/conftest.err)
10730 cat out/conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10734 # The compiler can only warn and ignore the option if not recognized
10735 # So say no if there are warnings
10736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10739 lt_cv_prog_compiler_c_o=yes
10744 # SGI C++ compiler will create directory out/ii_files/ for
10745 # template instantiation
10746 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10747 $RM out/* && rmdir out
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10754 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10763 if ${lt_cv_prog_compiler_c_o+:} false; then :
10764 $as_echo_n "(cached) " >&6
10766 lt_cv_prog_compiler_c_o=no
10767 $RM -r conftest 2>/dev/null
10771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10773 lt_compiler_flag="-o out/conftest2.$ac_objext"
10774 # Insert the option either (1) after the last *FLAGS variable, or
10775 # (2) before a word containing "conftest.", or (3) at the end.
10776 # Note that $ac_compile itself does not contain backslashes and begins
10777 # with a dollar sign (not a hyphen), so the echo should work correctly.
10778 lt_compile=`echo "$ac_compile" | $SED \
10779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10781 -e 's:$: $lt_compiler_flag:'`
10782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10783 (eval "$lt_compile" 2>out/conftest.err)
10785 cat out/conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10789 # The compiler can only warn and ignore the option if not recognized
10790 # So say no if there are warnings
10791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10794 lt_cv_prog_compiler_c_o=yes
10799 # SGI C++ compiler will create directory out/ii_files/ for
10800 # template instantiation
10801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10802 $RM out/* && rmdir out
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10814 hard_links="nottested"
10815 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10816 # do not overwrite the value of need_locks provided by the user
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10818 $as_echo_n "checking if we can lock with hard links... " >&6; }
10821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10823 ln conftest.a conftest.b 2>&5 || hard_links=no
10824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10826 $as_echo "$hard_links" >&6; }
10827 if test "$hard_links" = no; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10845 allow_undefined_flag=
10846 always_export_symbols=no
10848 archive_expsym_cmds=
10849 compiler_needs_object=no
10850 enable_shared_with_static_runtimes=no
10851 export_dynamic_flag_spec=
10852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10853 hardcode_automatic=no
10855 hardcode_direct_absolute=no
10856 hardcode_libdir_flag_spec=
10857 hardcode_libdir_flag_spec_ld=
10858 hardcode_libdir_separator=
10859 hardcode_minus_L=no
10860 hardcode_shlibpath_var=unsupported
10862 link_all_deplibs=unknown
10864 module_expsym_cmds=
10865 old_archive_from_new_cmds=
10866 old_archive_from_expsyms_cmds=
10867 thread_safe_flag_spec=
10868 whole_archive_flag_spec=
10869 # include_expsyms should be a list of space-separated symbols to be *always*
10870 # included in the symbol list
10872 # exclude_expsyms can be an extended regexp of symbols to exclude
10873 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10875 # as well as any symbol that contains `d'.
10876 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10878 # platforms (ab)use it in PIC code, but their linkers get confused if
10879 # the symbol is explicitly referenced. Since portable code cannot
10880 # rely on this symbol name, it's probably fine to never include it in
10881 # preloaded symbol tables.
10882 # Exclude shared library initialization/finalization symbols.
10883 extract_expsyms_cmds=
10886 cygwin* | mingw* | pw32* | cegcc*)
10887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10888 # When not using gcc, we currently assume that we are using
10889 # Microsoft Visual C++.
10890 if test "$GCC" != yes; then
10895 # we just hope/assume this is gcc and not c89 (= MSVC++)
10905 # On some targets, GNU ld is compatible enough with the native linker
10906 # that we're better off using the native interface for both.
10907 lt_use_gnu_ld_interface=no
10908 if test "$with_gnu_ld" = yes; then
10911 # The AIX port of GNU ld has always aspired to compatibility
10912 # with the native linker. However, as the warning in the GNU ld
10913 # block says, versions before 2.19.5* couldn't really create working
10914 # shared libraries, regardless of the interface used.
10915 case `$LD -v 2>&1` in
10916 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10917 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10918 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10920 lt_use_gnu_ld_interface=yes
10925 lt_use_gnu_ld_interface=yes
10930 if test "$lt_use_gnu_ld_interface" = yes; then
10931 # If archive_cmds runs LD, not CC, wlarc should be empty
10934 # Set some defaults for GNU ld with shared library support. These
10935 # are reset later if shared libraries are not supported. Putting them
10936 # here allows them to be overridden if necessary.
10937 runpath_var=LD_RUN_PATH
10938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10939 export_dynamic_flag_spec='${wl}--export-dynamic'
10940 # ancient GNU ld didn't support --whole-archive et. al.
10941 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10942 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10944 whole_archive_flag_spec=
10946 supports_anon_versioning=no
10947 case `$LD -v 2>&1` in
10948 *GNU\ gold*) supports_anon_versioning=yes ;;
10949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10952 *\ 2.11.*) ;; # other 2.11 versions
10953 *) supports_anon_versioning=yes ;;
10956 # See if GNU ld supports shared libraries.
10959 # On AIX/PPC, the GNU linker is very broken
10960 if test "$host_cpu" != ia64; then
10964 *** Warning: the GNU linker, at least up to release 2.19, is reported
10965 *** to be unable to reliably create shared libraries on AIX.
10966 *** Therefore, libtool is disabling shared libraries support. If you
10967 *** really care for shared libraries, you may want to install binutils
10968 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10969 *** You will then need to restart the configuration process.
10978 # see comment about AmigaOS4 .so support
10979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10980 archive_expsym_cmds=''
10983 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)'
10984 hardcode_libdir_flag_spec='-L$libdir'
10985 hardcode_minus_L=yes
10991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10992 allow_undefined_flag=unsupported
10993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10994 # support --undefined. This deserves some investigation. FIXME
10995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11001 cygwin* | mingw* | pw32* | cegcc*)
11002 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11003 # as there is no search path for DLLs.
11004 hardcode_libdir_flag_spec='-L$libdir'
11005 export_dynamic_flag_spec='${wl}--export-all-symbols'
11006 allow_undefined_flag=unsupported
11007 always_export_symbols=no
11008 enable_shared_with_static_runtimes=yes
11009 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'
11010 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11012 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11014 # If the export-symbols file already is a .def file (1st line
11015 # is EXPORTS), use it as is; otherwise, prepend...
11016 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11017 cp $export_symbols $output_objdir/$soname.def;
11019 echo EXPORTS > $output_objdir/$soname.def;
11020 cat $export_symbols >> $output_objdir/$soname.def;
11022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030 link_all_deplibs=yes
11035 hardcode_shlibpath_var=no
11036 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11037 export_dynamic_flag_spec='${wl}-E'
11038 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11039 # Instead, shared libraries are loaded at an image base (0x10000000 by
11040 # default) and relocated if they conflict, which is a slow very memory
11041 # consuming and fragmenting process. To avoid this, we pick a random,
11042 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11043 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11045 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'
11048 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11050 if test "$host_os" = linux-dietlibc; then
11051 case $cc_basename in
11052 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11055 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11056 && test "$tmp_diet" = no
11058 tmp_addflag=' $pic_flag'
11059 tmp_sharedflag='-shared'
11060 case $cc_basename,$host_cpu in
11061 pgcc*) # Portland Group C compiler
11062 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'
11063 tmp_addflag=' $pic_flag'
11065 pgf77* | pgf90* | pgf95* | pgfortran*)
11066 # Portland Group f77 and f90 compilers
11067 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'
11068 tmp_addflag=' $pic_flag -Mnomain' ;;
11069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11070 tmp_addflag=' -i_dynamic' ;;
11071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11072 tmp_addflag=' -i_dynamic -nofor_main' ;;
11073 ifc* | ifort*) # Intel Fortran compiler
11074 tmp_addflag=' -nofor_main' ;;
11075 lf95*) # Lahey Fortran 8.1
11076 whole_archive_flag_spec=
11077 tmp_sharedflag='--shared' ;;
11078 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11079 tmp_sharedflag='-qmkshrobj'
11081 nvcc*) # Cuda Compiler Driver 2.2
11082 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'
11083 compiler_needs_object=yes
11086 case `$CC -V 2>&1 | sed 5q` in
11087 *Sun\ C*) # Sun C 5.9
11088 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'
11089 compiler_needs_object=yes
11090 tmp_sharedflag='-G' ;;
11091 *Sun\ F*) # Sun Fortran 8.3
11092 tmp_sharedflag='-G' ;;
11094 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11096 if test "x$supports_anon_versioning" = xyes; then
11097 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11099 echo "local: *; };" >> $output_objdir/$libname.ver~
11100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11103 case $cc_basename in
11104 xlf* | bgf* | bgxlf* | mpixlf*)
11105 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11106 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11107 hardcode_libdir_flag_spec=
11108 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11109 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11110 if test "x$supports_anon_versioning" = xyes; then
11111 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11113 echo "local: *; };" >> $output_objdir/$libname.ver~
11114 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11125 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11129 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11134 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11138 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11139 *** create shared libraries on Solaris systems. Therefore, libtool
11140 *** is disabling shared libraries support. We urge you to upgrade GNU
11141 *** binutils to release 2.9.1 or newer. Another option is to modify
11142 *** your PATH or compiler configuration so that the native linker is
11143 *** used, and then restart.
11146 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11147 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11155 case `$LD -v 2>&1` in
11156 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11160 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11161 *** reliably create shared libraries on SCO systems. Therefore, libtool
11162 *** is disabling shared libraries support. We urge you to upgrade GNU
11163 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11164 *** your PATH or compiler configuration so that the native linker is
11165 *** used, and then restart.
11170 # For security reasons, it is highly recommended that you always
11171 # use absolute paths for naming shared libraries, and exclude the
11172 # DT_RUNPATH tag from executables and libraries. But doing so
11173 # requires that you compile everything twice, which is a pain.
11174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11188 hardcode_direct=yes
11189 hardcode_shlibpath_var=no
11193 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11202 if test "$ld_shlibs" = no; then
11204 hardcode_libdir_flag_spec=
11205 export_dynamic_flag_spec=
11206 whole_archive_flag_spec=
11209 # PORTME fill in a description of your system's linker (not GNU ld)
11212 allow_undefined_flag=unsupported
11213 always_export_symbols=yes
11214 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'
11215 # Note: this linker hardcodes the directories in LIBPATH if there
11216 # are no directories specified by -L.
11217 hardcode_minus_L=yes
11218 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11219 # Neither direct hardcoding nor static linking is supported with a
11221 hardcode_direct=unsupported
11226 if test "$host_cpu" = ia64; then
11227 # On IA64, the linker does run time linking by default, so we don't
11228 # have to do anything special.
11229 aix_use_runtimelinking=no
11230 exp_sym_flag='-Bexport'
11233 # If we're using GNU nm, then we don't want the "-C" option.
11234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11235 # Also, AIX nm treats weak defined symbols like other global
11236 # defined symbols, whereas GNU nm marks them as "W".
11237 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11238 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'
11240 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'
11242 aix_use_runtimelinking=no
11244 # Test if we are trying to use run time linking or normal
11245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11246 # need to do runtime linking.
11247 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11248 for ld_flag in $LDFLAGS; do
11249 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11250 aix_use_runtimelinking=yes
11257 exp_sym_flag='-bexport'
11258 no_entry_flag='-bnoentry'
11261 # When large executables or shared objects are built, AIX ld can
11262 # have problems creating the table of contents. If linking a library
11263 # or program results in "error TOC overflow" add -mminimal-toc to
11264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11268 hardcode_direct=yes
11269 hardcode_direct_absolute=yes
11270 hardcode_libdir_separator=':'
11271 link_all_deplibs=yes
11272 file_list_spec='${wl}-f,'
11274 if test "$GCC" = yes; then
11275 case $host_os in aix4.[012]|aix4.[012].*)
11276 # We only want to do this on AIX 4.2 and lower, the check
11277 # below for broken collect2 doesn't work under 4.3+
11278 collect2name=`${CC} -print-prog-name=collect2`
11279 if test -f "$collect2name" &&
11280 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11282 # We have reworked collect2
11285 # We have old collect2
11286 hardcode_direct=unsupported
11287 # It fails to find uninstalled libraries when the uninstalled
11288 # path is not listed in the libpath. Setting hardcode_minus_L
11289 # to unsupported forces relinking
11290 hardcode_minus_L=yes
11291 hardcode_libdir_flag_spec='-L$libdir'
11292 hardcode_libdir_separator=
11296 shared_flag='-shared'
11297 if test "$aix_use_runtimelinking" = yes; then
11298 shared_flag="$shared_flag "'${wl}-G'
11302 if test "$host_cpu" = ia64; then
11303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11304 # chokes on -Wl,-G. The following line is correct:
11307 if test "$aix_use_runtimelinking" = yes; then
11308 shared_flag='${wl}-G'
11310 shared_flag='${wl}-bM:SRE'
11315 export_dynamic_flag_spec='${wl}-bexpall'
11316 # It seems that -bexpall does not export symbols beginning with
11317 # underscore (_), so it is better to generate a list of symbols to export.
11318 always_export_symbols=yes
11319 if test "$aix_use_runtimelinking" = yes; then
11320 # Warning - without using the other runtime loading flags (-brtl),
11321 # -berok will link without error, but may produce a broken library.
11322 allow_undefined_flag='-berok'
11323 # Determine the default libpath from the value encoded in an
11324 # empty executable.
11325 if test "${lt_cv_aix_libpath+set}" = set; then
11326 aix_libpath=$lt_cv_aix_libpath
11328 if ${lt_cv_aix_libpath_+:} false; then :
11329 $as_echo_n "(cached) " >&6
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11342 if ac_fn_c_try_link "$LINENO"; then :
11344 lt_aix_libpath_sed='
11345 /Import File Strings/,/^$/ {
11347 s/^0 *\([^ ]*\) *$/\1/
11351 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11352 # Check for a 64-bit object if we didn't find anything.
11353 if test -z "$lt_cv_aix_libpath_"; then
11354 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11359 if test -z "$lt_cv_aix_libpath_"; then
11360 lt_cv_aix_libpath_="/usr/lib:/lib"
11365 aix_libpath=$lt_cv_aix_libpath_
11368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11369 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"
11371 if test "$host_cpu" = ia64; then
11372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11373 allow_undefined_flag="-z nodefs"
11374 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"
11376 # Determine the default libpath from the value encoded in an
11377 # empty executable.
11378 if test "${lt_cv_aix_libpath+set}" = set; then
11379 aix_libpath=$lt_cv_aix_libpath
11381 if ${lt_cv_aix_libpath_+:} false; then :
11382 $as_echo_n "(cached) " >&6
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11395 if ac_fn_c_try_link "$LINENO"; then :
11397 lt_aix_libpath_sed='
11398 /Import File Strings/,/^$/ {
11400 s/^0 *\([^ ]*\) *$/\1/
11404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 # Check for a 64-bit object if we didn't find anything.
11406 if test -z "$lt_cv_aix_libpath_"; then
11407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412 if test -z "$lt_cv_aix_libpath_"; then
11413 lt_cv_aix_libpath_="/usr/lib:/lib"
11418 aix_libpath=$lt_cv_aix_libpath_
11421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11422 # Warning - without using the other run time loading flags,
11423 # -berok will link without error, but may produce a broken library.
11424 no_undefined_flag=' ${wl}-bernotok'
11425 allow_undefined_flag=' ${wl}-berok'
11426 if test "$with_gnu_ld" = yes; then
11427 # We only use this code for GNU lds that support --whole-archive.
11428 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11430 # Exported symbols can be pulled into shared objects from archives
11431 whole_archive_flag_spec='$convenience'
11433 archive_cmds_need_lc=yes
11434 # This is similar to how AIX traditionally builds its shared libraries.
11435 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'
11443 # see comment about AmigaOS4 .so support
11444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445 archive_expsym_cmds=''
11448 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)'
11449 hardcode_libdir_flag_spec='-L$libdir'
11450 hardcode_minus_L=yes
11456 export_dynamic_flag_spec=-rdynamic
11459 cygwin* | mingw* | pw32* | cegcc*)
11460 # When not using gcc, we currently assume that we are using
11461 # Microsoft Visual C++.
11462 # hardcode_libdir_flag_spec is actually meaningless, as there is
11463 # no search path for DLLs.
11464 case $cc_basename in
11467 hardcode_libdir_flag_spec=' '
11468 allow_undefined_flag=unsupported
11469 always_export_symbols=yes
11471 # Tell ltmain to make .lib files, not .a files.
11473 # Tell ltmain to make .dll files, not .so files.
11475 # FIXME: Setting linknames here is a bad hack.
11476 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11477 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11478 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11480 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11482 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11484 # The linker will not automatically build a static lib if we build a DLL.
11485 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11486 enable_shared_with_static_runtimes=yes
11487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11489 old_postinstall_cmds='chmod 644 $oldlib'
11490 postlink_cmds='lt_outputfile="@OUTPUT@"~
11491 lt_tool_outputfile="@TOOL_OUTPUT@"~
11492 case $lt_outputfile in
11495 lt_outputfile="$lt_outputfile.exe"
11496 lt_tool_outputfile="$lt_tool_outputfile.exe"
11499 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11500 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11501 $RM "$lt_outputfile.manifest";
11505 # Assume MSVC wrapper
11506 hardcode_libdir_flag_spec=' '
11507 allow_undefined_flag=unsupported
11508 # Tell ltmain to make .lib files, not .a files.
11510 # Tell ltmain to make .dll files, not .so files.
11512 # FIXME: Setting linknames here is a bad hack.
11513 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11514 # The linker will automatically build a .lib file if we build a DLL.
11515 old_archive_from_new_cmds='true'
11516 # FIXME: Should let the user specify the lib program.
11517 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11518 enable_shared_with_static_runtimes=yes
11523 darwin* | rhapsody*)
11526 archive_cmds_need_lc=no
11528 hardcode_automatic=yes
11529 hardcode_shlibpath_var=unsupported
11530 if test "$lt_cv_ld_force_load" = "yes"; then
11531 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\"`'
11533 whole_archive_flag_spec=''
11535 link_all_deplibs=yes
11536 allow_undefined_flag="$_lt_dar_allow_undefined"
11537 case $cc_basename in
11538 ifort*) _lt_dar_can_shared=yes ;;
11539 *) _lt_dar_can_shared=$GCC ;;
11541 if test "$_lt_dar_can_shared" = "yes"; then
11542 output_verbose_link_cmd=func_echo_all
11543 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11544 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11545 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}"
11546 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}"
11555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11556 hardcode_libdir_flag_spec='-L$libdir'
11557 hardcode_shlibpath_var=no
11564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11565 # support. Future versions do this automatically, but an explicit c++rt0.o
11566 # does not break anything, and helps significantly (at the cost of a little
11569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11570 hardcode_libdir_flag_spec='-R$libdir'
11571 hardcode_direct=yes
11572 hardcode_shlibpath_var=no
11575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578 hardcode_direct=yes
11579 hardcode_minus_L=yes
11580 hardcode_shlibpath_var=no
11583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11584 freebsd* | dragonfly*)
11585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11586 hardcode_libdir_flag_spec='-R$libdir'
11587 hardcode_direct=yes
11588 hardcode_shlibpath_var=no
11592 if test "$GCC" = yes; then
11593 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'
11595 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'
11597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11598 hardcode_libdir_separator=:
11599 hardcode_direct=yes
11601 # hardcode_minus_L: Not really in the search PATH,
11602 # but as the default location of the library.
11603 hardcode_minus_L=yes
11604 export_dynamic_flag_spec='${wl}-E'
11608 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11613 if test "$with_gnu_ld" = no; then
11614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11615 hardcode_libdir_flag_spec_ld='+b $libdir'
11616 hardcode_libdir_separator=:
11617 hardcode_direct=yes
11618 hardcode_direct_absolute=yes
11619 export_dynamic_flag_spec='${wl}-E'
11620 # hardcode_minus_L: Not really in the search PATH,
11621 # but as the default location of the library.
11622 hardcode_minus_L=yes
11627 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11636 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11642 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11649 # Older versions of the 11.00 compiler do not understand -b yet
11650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11652 $as_echo_n "checking if $CC understands -b... " >&6; }
11653 if ${lt_cv_prog_compiler__b+:} false; then :
11654 $as_echo_n "(cached) " >&6
11656 lt_cv_prog_compiler__b=no
11657 save_LDFLAGS="$LDFLAGS"
11658 LDFLAGS="$LDFLAGS -b"
11659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11661 # The linker can only warn and ignore the option if not recognized
11662 # So say no if there are warnings
11663 if test -s conftest.err; then
11664 # Append any errors to the config.log.
11665 cat conftest.err 1>&5
11666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11668 if diff conftest.exp conftest.er2 >/dev/null; then
11669 lt_cv_prog_compiler__b=yes
11672 lt_cv_prog_compiler__b=yes
11676 LDFLAGS="$save_LDFLAGS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11682 if test x"$lt_cv_prog_compiler__b" = xyes; then
11683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11691 if test "$with_gnu_ld" = no; then
11692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11693 hardcode_libdir_separator=:
11698 hardcode_shlibpath_var=no
11701 hardcode_direct=yes
11702 hardcode_direct_absolute=yes
11703 export_dynamic_flag_spec='${wl}-E'
11705 # hardcode_minus_L: Not really in the search PATH,
11706 # but as the default location of the library.
11707 hardcode_minus_L=yes
11713 irix5* | irix6* | nonstopux*)
11714 if test "$GCC" = yes; then
11715 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'
11716 # Try to use the -exported_symbol ld option, if it does not
11717 # work, assume that -exports_file does not work either and
11718 # implicitly export all symbols.
11719 # This should be the same for all languages, so no per-tag cache variable.
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11721 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11722 if ${lt_cv_irix_exported_symbol+:} false; then :
11723 $as_echo_n "(cached) " >&6
11725 save_LDFLAGS="$LDFLAGS"
11726 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 int foo (void) { return 0; }
11731 if ac_fn_c_try_link "$LINENO"; then :
11732 lt_cv_irix_exported_symbol=yes
11734 lt_cv_irix_exported_symbol=no
11736 rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LDFLAGS="$save_LDFLAGS"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11741 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11742 if test "$lt_cv_irix_exported_symbol" = yes; then
11743 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'
11746 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'
11747 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'
11749 archive_cmds_need_lc='no'
11750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11751 hardcode_libdir_separator=:
11753 link_all_deplibs=yes
11757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11762 hardcode_libdir_flag_spec='-R$libdir'
11763 hardcode_direct=yes
11764 hardcode_shlibpath_var=no
11768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769 hardcode_direct=yes
11770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator=:
11772 hardcode_shlibpath_var=no
11779 if test -f /usr/libexec/ld.so; then
11780 hardcode_direct=yes
11781 hardcode_shlibpath_var=no
11782 hardcode_direct_absolute=yes
11783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11787 export_dynamic_flag_spec='${wl}-E'
11790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11792 hardcode_libdir_flag_spec='-R$libdir'
11795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11806 hardcode_libdir_flag_spec='-L$libdir'
11807 hardcode_minus_L=yes
11808 allow_undefined_flag=unsupported
11809 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'
11810 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11814 if test "$GCC" = yes; then
11815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11816 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'
11818 allow_undefined_flag=' -expect_unresolved \*'
11819 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'
11821 archive_cmds_need_lc='no'
11822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11823 hardcode_libdir_separator=:
11826 osf4* | osf5*) # as osf3* with the addition of -msym flag
11827 if test "$GCC" = yes; then
11828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11829 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'
11830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11832 allow_undefined_flag=' -expect_unresolved \*'
11833 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'
11834 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~
11835 $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'
11837 # Both c and cxx compiler support -rpath directly
11838 hardcode_libdir_flag_spec='-rpath $libdir'
11840 archive_cmds_need_lc='no'
11841 hardcode_libdir_separator=:
11845 no_undefined_flag=' -z defs'
11846 if test "$GCC" = yes; then
11848 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11850 $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'
11852 case `$CC -V 2>&1` in
11855 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11857 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11861 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11863 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11867 hardcode_libdir_flag_spec='-R$libdir'
11868 hardcode_shlibpath_var=no
11870 solaris2.[0-5] | solaris2.[0-5].*) ;;
11872 # The compiler driver will combine and reorder linker options,
11873 # but understands `-z linker_flag'. GCC discards it without `$wl',
11874 # but is careful enough not to reorder.
11875 # Supported since Solaris 2.6 (maybe 2.5.1?)
11876 if test "$GCC" = yes; then
11877 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11883 link_all_deplibs=yes
11887 if test "x$host_vendor" = xsequent; then
11888 # Use $CC to link under sequent, because it throws in some extra .o
11889 # files that make .init and .fini sections work.
11890 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11894 hardcode_libdir_flag_spec='-L$libdir'
11895 hardcode_direct=yes
11896 hardcode_minus_L=yes
11897 hardcode_shlibpath_var=no
11901 case $host_vendor in
11903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904 hardcode_direct=yes # is this really true???
11907 ## LD is ld it makes a PLAMLIB
11908 ## CC just makes a GrossModule.
11909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11910 reload_cmds='$CC -r -o $output$reload_objs'
11914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11918 runpath_var='LD_RUN_PATH'
11919 hardcode_shlibpath_var=no
11923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924 hardcode_shlibpath_var=no
11925 export_dynamic_flag_spec='-Bexport'
11929 if test -d /usr/nec; then
11930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11931 hardcode_shlibpath_var=no
11932 runpath_var=LD_RUN_PATH
11933 hardcode_runpath_var=yes
11938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11939 no_undefined_flag='${wl}-z,text'
11940 archive_cmds_need_lc=no
11941 hardcode_shlibpath_var=no
11942 runpath_var='LD_RUN_PATH'
11944 if test "$GCC" = yes; then
11945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 sysv5* | sco3.2v5* | sco5v6*)
11954 # Note: We can NOT use -z defs as we might desire, because we do not
11955 # link with -lc, and that would cause any symbols used from libc to
11956 # always be unresolved, which means just about no library would
11957 # ever link correctly. If we're not using GNU ld we use -z text
11958 # though, which does catch some bad symbols but isn't as heavy-handed
11960 no_undefined_flag='${wl}-z,text'
11961 allow_undefined_flag='${wl}-z,nodefs'
11962 archive_cmds_need_lc=no
11963 hardcode_shlibpath_var=no
11964 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11965 hardcode_libdir_separator=':'
11966 link_all_deplibs=yes
11967 export_dynamic_flag_spec='${wl}-Bexport'
11968 runpath_var='LD_RUN_PATH'
11970 if test "$GCC" = yes; then
11971 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11972 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11981 hardcode_libdir_flag_spec='-L$libdir'
11982 hardcode_shlibpath_var=no
11990 if test x$host_vendor = xsni; then
11992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11993 export_dynamic_flag_spec='${wl}-Blargedynsym'
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12000 $as_echo "$ld_shlibs" >&6; }
12001 test "$ld_shlibs" = no && can_build_shared=no
12003 with_gnu_ld=$with_gnu_ld
12020 # Do we need to explicitly link libc?
12022 case "x$archive_cmds_need_lc" in
12024 # Assume -lc should be added
12025 archive_cmds_need_lc=yes
12027 if test "$enable_shared" = yes && test "$GCC" = yes; then
12028 case $archive_cmds in
12030 # FIXME: we may have to deal with multi-command sequences.
12033 # Test whether the compiler implicitly links with -lc since on some
12034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12035 # to ld, don't add -lc before -lgcc.
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12037 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12038 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12039 $as_echo_n "(cached) " >&6
12042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12045 (eval $ac_compile) 2>&5
12047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 test $ac_status = 0; } 2>conftest.err; then
12051 libobjs=conftest.$ac_objext
12053 wl=$lt_prog_compiler_wl
12054 pic_flag=$lt_prog_compiler_pic
12060 lt_save_allow_undefined_flag=$allow_undefined_flag
12061 allow_undefined_flag=
12062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12063 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12066 test $ac_status = 0; }
12068 lt_cv_archive_cmds_need_lc=no
12070 lt_cv_archive_cmds_need_lc=yes
12072 allow_undefined_flag=$lt_save_allow_undefined_flag
12074 cat conftest.err 1>&5
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12080 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12081 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12245 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12247 if test "$GCC" = yes; then
12249 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12250 *) lt_awk_arg="/^libraries:/" ;;
12253 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12254 *) lt_sed_strip_eq="s,=/,/,g" ;;
12256 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12257 case $lt_search_path_spec in
12259 # if the path contains ";" then we assume it to be the separator
12260 # otherwise default to the standard path separator (i.e. ":") - it is
12261 # assumed that no part of a normal pathname contains ";" but that should
12262 # okay in the real world where ";" in dirpaths is itself problematic.
12263 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12269 # Ok, now we have the path, separated by spaces, we can step through it
12270 # and add multilib dir if necessary.
12271 lt_tmp_lt_search_path_spec=
12272 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12273 for lt_sys_path in $lt_search_path_spec; do
12274 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12275 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12277 test -d "$lt_sys_path" && \
12278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12281 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12282 BEGIN {RS=" "; FS="/|\n";} {
12285 for (lt_i = NF; lt_i > 0; lt_i--) {
12286 if ($lt_i != "" && $lt_i != ".") {
12287 if ($lt_i == "..") {
12290 if (lt_count == 0) {
12291 lt_foo="/" $lt_i lt_foo;
12298 if (lt_foo != "") { lt_freq[lt_foo]++; }
12299 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12301 # AWK program above erroneously prepends '/' to C:/dos/paths
12304 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12305 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12307 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12311 library_names_spec=
12312 libname_spec='lib$name'
12316 postuninstall_cmds=
12320 shlibpath_overrides_runpath=unknown
12322 dynamic_linker="$host_os ld.so"
12323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12324 need_lib_prefix=unknown
12325 hardcode_into_libs=no
12327 # when you set need_version to no, make sure it does not cause -set_version
12328 # flags to be left without arguments
12329 need_version=unknown
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12335 shlibpath_var=LIBPATH
12337 # AIX 3 has no versioning support, so we append a major version to the name.
12338 soname_spec='${libname}${release}${shared_ext}$major'
12345 hardcode_into_libs=yes
12346 if test "$host_cpu" = ia64; then
12347 # AIX 5 supports IA64
12348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12349 shlibpath_var=LD_LIBRARY_PATH
12351 # With GCC up to 2.95.x, collect2 would create an import file
12352 # for dependence libraries. The import file would start with
12353 # the line `#! .'. This would cause the generated library to
12354 # depend on `.', always an invalid library. This was fixed in
12355 # development snapshots of GCC prior to 3.0.
12357 aix4 | aix4.[01] | aix4.[01].*)
12358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12360 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12363 can_build_shared=no
12367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12368 # soname into executable. Probably we can add versioning support to
12369 # collect2, so additional links can be useful in future.
12370 if test "$aix_use_runtimelinking" = yes; then
12371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12372 # instead of lib<name>.a to let people know that these are not
12373 # typical AIX shared libraries.
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376 # We preserve .a as extension for shared libraries through AIX4.2
12377 # and later when we are not doing run time linking.
12378 library_names_spec='${libname}${release}.a $libname.a'
12379 soname_spec='${libname}${release}${shared_ext}$major'
12381 shlibpath_var=LIBPATH
12388 # Since July 2007 AmigaOS4 officially supports .so libraries.
12389 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393 library_names_spec='$libname.ixlibrary $libname.a'
12394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12395 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'
12401 library_names_spec='${libname}${shared_ext}'
12402 dynamic_linker="$host_os ld.so"
12403 shlibpath_var=LIBRARY_PATH
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 soname_spec='${libname}${release}${shared_ext}$major'
12411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12412 shlibpath_var=LD_LIBRARY_PATH
12413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12415 # the default ld.so.conf also contains /usr/contrib/lib and
12416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12417 # libtool to hard-code these into programs
12420 cygwin* | mingw* | pw32* | cegcc*)
12421 version_type=windows
12426 case $GCC,$cc_basename in
12429 library_names_spec='$libname.dll.a'
12430 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12431 postinstall_cmds='base_file=`basename \${file}`~
12432 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12433 dldir=$destdir/`dirname \$dlpath`~
12434 test -d \$dldir || mkdir -p \$dldir~
12435 $install_prog $dir/$dlname \$dldir/$dlname~
12436 chmod a+x \$dldir/$dlname~
12437 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12438 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12441 dlpath=$dir/\$dldll~
12443 shlibpath_overrides_runpath=yes
12447 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12448 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12453 # MinGW DLLs use traditional 'lib' prefix
12454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12457 # pw32 DLLs use 'pw' prefix rather than 'lib'
12458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12461 dynamic_linker='Win32 ld.exe'
12466 libname_spec='$name'
12467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12468 library_names_spec='${libname}.dll.lib'
12472 sys_lib_search_path_spec=
12475 for lt_path in $LIB
12478 # Let DOS variable expansion print the short 8.3 style file name.
12479 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12480 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12483 # Convert to MSYS style.
12484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12487 # Convert to unix form, then to dos form, then back to unix form
12488 # but this time dos style (no spaces!) so that the unix form looks
12489 # like /cygdrive/c/PROGRA~1:/cygdr...
12490 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12491 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12492 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12495 sys_lib_search_path_spec="$LIB"
12496 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12497 # It is most probably a Windows format PATH.
12498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12502 # FIXME: find the short name or the path components, as spaces are
12503 # common. (e.g. "Program Files" -> "PROGRA~1")
12507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12508 postinstall_cmds='base_file=`basename \${file}`~
12509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12510 dldir=$destdir/`dirname \$dlpath`~
12511 test -d \$dldir || mkdir -p \$dldir~
12512 $install_prog $dir/$dlname \$dldir/$dlname'
12513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12514 dlpath=$dir/\$dldll~
12516 shlibpath_overrides_runpath=yes
12517 dynamic_linker='Win32 link.exe'
12521 # Assume MSVC wrapper
12522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12523 dynamic_linker='Win32 ld.exe'
12526 # FIXME: first we should search . and the directory the executable is in
12530 darwin* | rhapsody*)
12531 dynamic_linker="$host_os dyld"
12532 version_type=darwin
12535 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12536 soname_spec='${libname}${release}${major}$shared_ext'
12537 shlibpath_overrides_runpath=yes
12538 shlibpath_var=DYLD_LIBRARY_PATH
12539 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12541 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12542 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12550 soname_spec='${libname}${release}${shared_ext}$major'
12551 shlibpath_var=LD_LIBRARY_PATH
12558 freebsd* | dragonfly*)
12559 # DragonFly does not have aout. When/if they implement a new
12560 # versioning mechanism, adjust this.
12561 if test -x /usr/bin/objformat; then
12562 objformat=`/usr/bin/objformat`
12565 freebsd[123]*) objformat=aout ;;
12566 *) objformat=elf ;;
12569 version_type=freebsd-$objformat
12570 case $version_type in
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12581 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=yes
12586 freebsd3.[01]* | freebsdelf3.[01]*)
12587 shlibpath_overrides_runpath=yes
12588 hardcode_into_libs=yes
12590 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12591 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12592 shlibpath_overrides_runpath=no
12593 hardcode_into_libs=yes
12595 *) # from 4.6 on, and DragonFly
12596 shlibpath_overrides_runpath=yes
12597 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
12609 hardcode_into_libs=yes
12616 dynamic_linker="$host_os runtime_loader"
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12618 soname_spec='${libname}${release}${shared_ext}$major'
12619 shlibpath_var=LIBRARY_PATH
12620 shlibpath_overrides_runpath=yes
12621 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12622 hardcode_into_libs=yes
12625 hpux9* | hpux10* | hpux11*)
12626 # Give a soname corresponding to the major version so that dld.sl refuses to
12627 # link against other versions.
12634 hardcode_into_libs=yes
12635 dynamic_linker="$host_os dld.so"
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 if test "X$HPUX_IA64_MODE" = X32; then
12641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12649 hardcode_into_libs=yes
12650 dynamic_linker="$host_os dld.sl"
12651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12660 dynamic_linker="$host_os dld.sl"
12661 shlibpath_var=SHLIB_PATH
12662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664 soname_spec='${libname}${release}${shared_ext}$major'
12667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12668 postinstall_cmds='chmod 555 $lib'
12669 # or fails outright, so override atomically:
12670 install_override_mode=555
12677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12678 soname_spec='${libname}${release}${shared_ext}$major'
12679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=no
12682 hardcode_into_libs=yes
12685 irix5* | irix6* | nonstopux*)
12687 nonstopux*) version_type=nonstopux ;;
12689 if test "$lt_cv_prog_gnu_ld" = yes; then
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12700 irix5* | nonstopux*)
12701 libsuff= shlibsuff=
12704 case $LD in # libtool.m4 will add one of these switches to LD
12705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12706 libsuff= shlibsuff= libmagic=32-bit;;
12707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12708 libsuff=32 shlibsuff=N32 libmagic=N32;;
12709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12711 *) libsuff= shlibsuff= libmagic=never-match;;
12715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12716 shlibpath_overrides_runpath=no
12717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12719 hardcode_into_libs=yes
12722 # No shared lib support for Linux oldld, aout, or coff.
12723 linux*oldld* | linux*aout* | linux*coff*)
12727 # This must be Linux ELF.
12728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733 soname_spec='${libname}${release}${shared_ext}$major'
12734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 shlibpath_overrides_runpath=no
12738 # Some binutils ld are patched to set DT_RUNPATH
12739 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12740 $as_echo_n "(cached) " >&6
12742 lt_cv_shlibpath_overrides_runpath=no
12743 save_LDFLAGS=$LDFLAGS
12744 save_libdir=$libdir
12745 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12746 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12758 if ac_fn_c_try_link "$LINENO"; then :
12759 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12760 lt_cv_shlibpath_overrides_runpath=yes
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LDFLAGS=$save_LDFLAGS
12766 libdir=$save_libdir
12770 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12772 # This implies no fast_install, which is unacceptable.
12773 # Some rework will be needed to allow for fast_install
12774 # before this can be enabled.
12775 hardcode_into_libs=yes
12777 # Add ABI-specific directories to the system library path.
12778 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12780 # Append ld.so.conf contents to the search path
12781 if test -f /etc/ld.so.conf; then
12782 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' ' '`
12783 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12787 # We used to test for /lib/ld.so.1 and disable shared libraries on
12788 # powerpc, because MkLinux only supported shared libraries with the
12789 # GNU dynamic linker. Since this was broken with cross compilers,
12790 # most powerpc-linux boxes support dynamic linking these days and
12791 # people can always --disable-shared, the test was removed, and we
12792 # assume the GNU/Linux dynamic linker is in use.
12793 dynamic_linker='GNU/Linux ld.so'
12800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12803 dynamic_linker='NetBSD (a.out) ld.so'
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12806 soname_spec='${libname}${release}${shared_ext}$major'
12807 dynamic_linker='NetBSD ld.elf_so'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 shlibpath_overrides_runpath=yes
12811 hardcode_into_libs=yes
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes
12825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 shlibpath_var=LD_LIBRARY_PATH
12828 shlibpath_overrides_runpath=no
12829 hardcode_into_libs=yes
12830 dynamic_linker='ldqnx.so'
12835 sys_lib_dlsearch_path_spec="/usr/lib"
12837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12839 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12840 *) need_version=no ;;
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12847 openbsd2.[89] | openbsd2.[89].*)
12848 shlibpath_overrides_runpath=no
12851 shlibpath_overrides_runpath=yes
12855 shlibpath_overrides_runpath=yes
12860 libname_spec='$name'
12863 library_names_spec='$libname${shared_ext} $libname.a'
12864 dynamic_linker='OS/2 ld.exe'
12865 shlibpath_var=LIBPATH
12868 osf3* | osf4* | osf5*)
12872 soname_spec='${libname}${release}${shared_ext}$major'
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath=yes
12891 hardcode_into_libs=yes
12892 # ldd complains unless libraries are executable
12893 postinstall_cmds='chmod +x $lib'
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12899 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes
12902 if test "$with_gnu_ld" = yes; then
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 shlibpath_var=LD_LIBRARY_PATH
12913 case $host_vendor in
12915 shlibpath_overrides_runpath=no
12917 runpath_var=LD_RUN_PATH
12925 shlibpath_overrides_runpath=no
12926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12932 if test -d /usr/nec ;then
12934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12935 soname_spec='$libname${shared_ext}.$major'
12936 shlibpath_var=LD_LIBRARY_PATH
12940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12941 version_type=freebsd-elf
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12948 hardcode_into_libs=yes
12949 if test "$with_gnu_ld" = yes; then
12950 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12955 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12959 sys_lib_dlsearch_path_spec='/usr/lib'
12963 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 shlibpath_overrides_runpath=no
12970 hardcode_into_libs=yes
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 shlibpath_var=LD_LIBRARY_PATH
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12985 $as_echo "$dynamic_linker" >&6; }
12986 test "$dynamic_linker" = no && can_build_shared=no
12988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12989 if test "$GCC" = yes; then
12990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12993 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12994 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12996 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12997 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13092 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13094 if test -n "$hardcode_libdir_flag_spec" ||
13095 test -n "$runpath_var" ||
13096 test "X$hardcode_automatic" = "Xyes" ; then
13098 # We can hardcode non-existent directories.
13099 if test "$hardcode_direct" != no &&
13100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13101 # have to relink, otherwise we might link with an installed library
13102 # when we should be linking with a yet-to-be-installed one
13103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13104 test "$hardcode_minus_L" != no; then
13105 # Linking always hardcodes the temporary library directory.
13106 hardcode_action=relink
13108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13109 hardcode_action=immediate
13112 # We cannot hardcode anything, or else we can only hardcode existing
13114 hardcode_action=unsupported
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13117 $as_echo "$hardcode_action" >&6; }
13119 if test "$hardcode_action" = relink ||
13120 test "$inherit_rpath" = yes; then
13121 # Fast installation is not supported
13122 enable_fast_install=no
13123 elif test "$shlibpath_overrides_runpath" = yes ||
13124 test "$enable_shared" = no; then
13125 # Fast installation is not necessary
13126 enable_fast_install=needless
13134 if test "x$enable_dlopen" != xyes; then
13135 enable_dlopen=unknown
13136 enable_dlopen_self=unknown
13137 enable_dlopen_self_static=unknown
13144 lt_cv_dlopen="load_add_on"
13146 lt_cv_dlopen_self=yes
13149 mingw* | pw32* | cegcc*)
13150 lt_cv_dlopen="LoadLibrary"
13155 lt_cv_dlopen="dlopen"
13160 # if libdl is installed we need to link against it
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13163 if ${ac_cv_lib_dl_dlopen+:} false; then :
13164 $as_echo_n "(cached) " >&6
13166 ac_check_lib_save_LIBS=$LIBS
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_lib_dl_dlopen=yes
13189 ac_cv_lib_dl_dlopen=no
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13201 lt_cv_dlopen="dyld"
13203 lt_cv_dlopen_self=yes
13210 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13211 if test "x$ac_cv_func_shl_load" = xyes; then :
13212 lt_cv_dlopen="shl_load"
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13215 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13216 if ${ac_cv_lib_dld_shl_load+:} false; then :
13217 $as_echo_n "(cached) " >&6
13219 ac_check_lib_save_LIBS=$LIBS
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13234 return shl_load ();
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 ac_cv_lib_dld_shl_load=yes
13242 ac_cv_lib_dld_shl_load=no
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13249 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13250 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13251 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13253 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13254 if test "x$ac_cv_func_dlopen" = xyes; then :
13255 lt_cv_dlopen="dlopen"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13259 if ${ac_cv_lib_dl_dlopen+:} false; then :
13260 $as_echo_n "(cached) " >&6
13262 ac_check_lib_save_LIBS=$LIBS
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13267 /* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13282 if ac_fn_c_try_link "$LINENO"; then :
13283 ac_cv_lib_dl_dlopen=yes
13285 ac_cv_lib_dl_dlopen=no
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289 LIBS=$ac_check_lib_save_LIBS
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13293 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13298 if ${ac_cv_lib_svld_dlopen+:} false; then :
13299 $as_echo_n "(cached) " >&6
13301 ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lsvld $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13321 if ac_fn_c_try_link "$LINENO"; then :
13322 ac_cv_lib_svld_dlopen=yes
13324 ac_cv_lib_svld_dlopen=no
13326 rm -f core conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13331 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13332 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13336 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13337 if ${ac_cv_lib_dld_dld_link+:} false; then :
13338 $as_echo_n "(cached) " >&6
13340 ac_check_lib_save_LIBS=$LIBS
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13355 return dld_link ();
13360 if ac_fn_c_try_link "$LINENO"; then :
13361 ac_cv_lib_dld_dld_link=yes
13363 ac_cv_lib_dld_dld_link=no
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13370 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13371 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13372 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13393 if test "x$lt_cv_dlopen" != xno; then
13399 case $lt_cv_dlopen in
13401 save_CPPFLAGS="$CPPFLAGS"
13402 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13404 save_LDFLAGS="$LDFLAGS"
13405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13408 LIBS="$lt_cv_dlopen_libs $LIBS"
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13411 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13412 if ${lt_cv_dlopen_self+:} false; then :
13413 $as_echo_n "(cached) " >&6
13415 if test "$cross_compiling" = yes; then :
13416 lt_cv_dlopen_self=cross
13418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13419 lt_status=$lt_dlunknown
13420 cat > conftest.$ac_ext <<_LT_EOF
13421 #line $LINENO "configure"
13422 #include "confdefs.h"
13431 # define LT_DLGLOBAL RTLD_GLOBAL
13434 # define LT_DLGLOBAL DL_GLOBAL
13436 # define LT_DLGLOBAL 0
13440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13441 find out it does not work in some platform. */
13442 #ifndef LT_DLLAZY_OR_NOW
13444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13447 # define LT_DLLAZY_OR_NOW DL_LAZY
13450 # define LT_DLLAZY_OR_NOW RTLD_NOW
13453 # define LT_DLLAZY_OR_NOW DL_NOW
13455 # define LT_DLLAZY_OR_NOW 0
13462 /* When -fvisbility=hidden is used, assume the code has been annotated
13463 correspondingly for the symbols needed. */
13464 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13465 int fnord () __attribute__((visibility("default")));
13468 int fnord () { return 42; }
13471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13472 int status = $lt_dlunknown;
13476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13480 else puts (dlerror ());
13482 /* dlclose (self); */
13490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13491 (eval $ac_link) 2>&5
13493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13495 (./conftest; exit; ) >&5 2>/dev/null
13497 case x$lt_status in
13498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13500 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13503 # compilation failed
13504 lt_cv_dlopen_self=no
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13512 $as_echo "$lt_cv_dlopen_self" >&6; }
13514 if test "x$lt_cv_dlopen_self" = xyes; then
13515 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13517 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13518 if ${lt_cv_dlopen_self_static+:} false; then :
13519 $as_echo_n "(cached) " >&6
13521 if test "$cross_compiling" = yes; then :
13522 lt_cv_dlopen_self_static=cross
13524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13525 lt_status=$lt_dlunknown
13526 cat > conftest.$ac_ext <<_LT_EOF
13527 #line $LINENO "configure"
13528 #include "confdefs.h"
13537 # define LT_DLGLOBAL RTLD_GLOBAL
13540 # define LT_DLGLOBAL DL_GLOBAL
13542 # define LT_DLGLOBAL 0
13546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13547 find out it does not work in some platform. */
13548 #ifndef LT_DLLAZY_OR_NOW
13550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13553 # define LT_DLLAZY_OR_NOW DL_LAZY
13556 # define LT_DLLAZY_OR_NOW RTLD_NOW
13559 # define LT_DLLAZY_OR_NOW DL_NOW
13561 # define LT_DLLAZY_OR_NOW 0
13568 /* When -fvisbility=hidden is used, assume the code has been annotated
13569 correspondingly for the symbols needed. */
13570 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13571 int fnord () __attribute__((visibility("default")));
13574 int fnord () { return 42; }
13577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13578 int status = $lt_dlunknown;
13582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13585 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13586 else puts (dlerror ());
13588 /* dlclose (self); */
13596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13597 (eval $ac_link) 2>&5
13599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13600 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13601 (./conftest; exit; ) >&5 2>/dev/null
13603 case x$lt_status in
13604 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13605 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13606 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13609 # compilation failed
13610 lt_cv_dlopen_self_static=no
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13618 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13621 CPPFLAGS="$save_CPPFLAGS"
13622 LDFLAGS="$save_LDFLAGS"
13627 case $lt_cv_dlopen_self in
13628 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13629 *) enable_dlopen_self=unknown ;;
13632 case $lt_cv_dlopen_self_static in
13633 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13634 *) enable_dlopen_self_static=unknown ;;
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13657 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13658 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13659 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13660 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13662 $as_echo "yes" >&6; }
13664 # FIXME - insert some real tests, host_os isn't really good enough
13667 if test -n "$STRIP" ; then
13668 striplib="$STRIP -x"
13669 old_striplib="$STRIP -S"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13671 $as_echo "yes" >&6; }
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13695 # Report which library types will actually be built
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13697 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13699 $as_echo "$can_build_shared" >&6; }
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13702 $as_echo_n "checking whether to build shared libraries... " >&6; }
13703 test "$can_build_shared" = "no" && enable_shared=no
13705 # On AIX, shared libraries and static libraries use the same namespace, and
13706 # are all built from PIC.
13709 test "$enable_shared" = yes && enable_static=no
13710 if test -n "$RANLIB"; then
13711 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13712 postinstall_cmds='$RANLIB $lib'
13717 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13718 test "$enable_shared" = yes && enable_static=no
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13723 $as_echo "$enable_shared" >&6; }
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13726 $as_echo_n "checking whether to build static libraries... " >&6; }
13727 # Make sure either enable_shared or enable_static is yes.
13728 test "$enable_shared" = yes || enable_static=yes
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13730 $as_echo "$enable_static" >&6; }
13737 ac_cpp='$CPP $CPPFLAGS'
13738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13744 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13745 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13746 (test "X$CXX" != "Xg++"))) ; then
13748 ac_cpp='$CXXCPP $CPPFLAGS'
13749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13753 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13754 if test -z "$CXXCPP"; then
13755 if ${ac_cv_prog_CXXCPP+:} false; then :
13756 $as_echo_n "(cached) " >&6
13758 # Double quotes because CXXCPP needs to be expanded
13759 for CXXCPP in "$CXX -E" "/lib/cpp"
13761 ac_preproc_ok=false
13762 for ac_cxx_preproc_warn_flag in '' yes
13764 # Use a header file that comes with gcc, so configuring glibc
13765 # with a fresh cross-compiler works.
13766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767 # <limits.h> exists even on freestanding compilers.
13768 # On the NeXT, cc -E runs the code through the compiler's parser,
13769 # not just through cpp. "Syntax error" is here to catch this case.
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13773 # include <limits.h>
13775 # include <assert.h>
13779 if ac_fn_cxx_try_cpp "$LINENO"; then :
13782 # Broken: fails on valid input.
13785 rm -f conftest.err conftest.i conftest.$ac_ext
13787 # OK, works on sane cases. Now check whether nonexistent headers
13788 # can be detected and how.
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13791 #include <ac_nonexistent.h>
13793 if ac_fn_cxx_try_cpp "$LINENO"; then :
13794 # Broken: success on invalid input.
13797 # Passes both tests.
13801 rm -f conftest.err conftest.i conftest.$ac_ext
13804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13805 rm -f conftest.i conftest.err conftest.$ac_ext
13806 if $ac_preproc_ok; then :
13811 ac_cv_prog_CXXCPP=$CXXCPP
13814 CXXCPP=$ac_cv_prog_CXXCPP
13816 ac_cv_prog_CXXCPP=$CXXCPP
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13819 $as_echo "$CXXCPP" >&6; }
13820 ac_preproc_ok=false
13821 for ac_cxx_preproc_warn_flag in '' yes
13823 # Use a header file that comes with gcc, so configuring glibc
13824 # with a fresh cross-compiler works.
13825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826 # <limits.h> exists even on freestanding compilers.
13827 # On the NeXT, cc -E runs the code through the compiler's parser,
13828 # not just through cpp. "Syntax error" is here to catch this case.
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 # include <limits.h>
13834 # include <assert.h>
13838 if ac_fn_cxx_try_cpp "$LINENO"; then :
13841 # Broken: fails on valid input.
13844 rm -f conftest.err conftest.i conftest.$ac_ext
13846 # OK, works on sane cases. Now check whether nonexistent headers
13847 # can be detected and how.
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <ac_nonexistent.h>
13852 if ac_fn_cxx_try_cpp "$LINENO"; then :
13853 # Broken: success on invalid input.
13856 # Passes both tests.
13860 rm -f conftest.err conftest.i conftest.$ac_ext
13863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13864 rm -f conftest.i conftest.err conftest.$ac_ext
13865 if $ac_preproc_ok; then :
13868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13870 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13871 See \`config.log' for more details" "$LINENO" 5; }
13875 ac_cpp='$CPP $CPPFLAGS'
13876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13881 _lt_caught_CXX_error=yes
13885 ac_cpp='$CXXCPP $CPPFLAGS'
13886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13890 archive_cmds_need_lc_CXX=no
13891 allow_undefined_flag_CXX=
13892 always_export_symbols_CXX=no
13893 archive_expsym_cmds_CXX=
13894 compiler_needs_object_CXX=no
13895 export_dynamic_flag_spec_CXX=
13896 hardcode_direct_CXX=no
13897 hardcode_direct_absolute_CXX=no
13898 hardcode_libdir_flag_spec_CXX=
13899 hardcode_libdir_flag_spec_ld_CXX=
13900 hardcode_libdir_separator_CXX=
13901 hardcode_minus_L_CXX=no
13902 hardcode_shlibpath_var_CXX=unsupported
13903 hardcode_automatic_CXX=no
13904 inherit_rpath_CXX=no
13906 module_expsym_cmds_CXX=
13907 link_all_deplibs_CXX=unknown
13908 old_archive_cmds_CXX=$old_archive_cmds
13909 reload_flag_CXX=$reload_flag
13910 reload_cmds_CXX=$reload_cmds
13911 no_undefined_flag_CXX=
13912 whole_archive_flag_spec_CXX=
13913 enable_shared_with_static_runtimes_CXX=no
13915 # Source file extension for C++ test sources.
13918 # Object file extension for compiled C++ test sources.
13922 # No sense in running all these tests if we already determined that
13923 # the CXX compiler isn't working. Some variables (like enable_shared)
13924 # are currently assumed to apply to all compilers on this platform,
13925 # and will be corrupted by setting them based on a non-working compiler.
13926 if test "$_lt_caught_CXX_error" != yes; then
13927 # Code to be used in simple compile tests
13928 lt_simple_compile_test_code="int some_variable = 0;"
13930 # Code to be used in simple link tests
13931 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13940 # If no C compiler was specified, use CC.
13943 # If no C compiler flags were specified, use CFLAGS.
13944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13946 # Allow CC to be a program name with arguments.
13950 # save warnings/boilerplate of simple test code
13951 ac_outfile=conftest.$ac_objext
13952 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13954 _lt_compiler_boilerplate=`cat conftest.err`
13957 ac_outfile=conftest.$ac_objext
13958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13960 _lt_linker_boilerplate=`cat conftest.err`
13964 # Allow CC to be a program name with arguments.
13966 lt_save_CFLAGS=$CFLAGS
13970 lt_save_with_gnu_ld=$with_gnu_ld
13971 lt_save_path_LD=$lt_cv_path_LD
13972 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13973 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13975 $as_unset lt_cv_prog_gnu_ld
13977 if test -n "${lt_cv_path_LDCXX+set}"; then
13978 lt_cv_path_LD=$lt_cv_path_LDCXX
13980 $as_unset lt_cv_path_LD
13982 test -z "${LDCXX+set}" || LD=$LDCXX
13987 for cc_temp in $compiler""; do
13989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13995 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13998 if test -n "$compiler"; then
13999 # We don't want -fno-exception when compiling C++ code, so set the
14000 # no_builtin_flag separately
14001 if test "$GXX" = yes; then
14002 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14004 lt_prog_compiler_no_builtin_flag_CXX=
14007 if test "$GXX" = yes; then
14008 # Set up default GNU C++ configuration
14012 # Check whether --with-gnu-ld was given.
14013 if test "${with_gnu_ld+set}" = set; then :
14014 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14020 if test "$GCC" = yes; then
14021 # Check if gcc -print-prog-name=ld gives a path.
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14023 $as_echo_n "checking for ld used by $CC... " >&6; }
14026 # gcc leaves a trailing carriage return which upsets mingw
14027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14032 # Accept absolute paths.
14034 re_direlt='/[^/][^/]*/\.\./'
14035 # Canonicalize the pathname of ld
14036 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14037 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14038 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14040 test -z "$LD" && LD="$ac_prog"
14043 # If it fails, then pretend we aren't using GCC.
14047 # If it is relative, then search for the first ld in PATH.
14048 with_gnu_ld=unknown
14051 elif test "$with_gnu_ld" = yes; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14053 $as_echo_n "checking for GNU ld... " >&6; }
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14056 $as_echo_n "checking for non-GNU ld... " >&6; }
14058 if ${lt_cv_path_LD+:} false; then :
14059 $as_echo_n "(cached) " >&6
14061 if test -z "$LD"; then
14062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14063 for ac_dir in $PATH; do
14065 test -z "$ac_dir" && ac_dir=.
14066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14067 lt_cv_path_LD="$ac_dir/$ac_prog"
14068 # Check to see if the program is GNU ld. I'd rather use --version,
14069 # but apparently some variants of GNU ld only accept -v.
14070 # Break only if it was the GNU/non-GNU ld that we prefer.
14071 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14072 *GNU* | *'with BFD'*)
14073 test "$with_gnu_ld" != no && break
14076 test "$with_gnu_ld" != yes && break
14083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14087 LD="$lt_cv_path_LD"
14088 if test -n "$LD"; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14090 $as_echo "$LD" >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14095 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14097 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14098 if ${lt_cv_prog_gnu_ld+:} false; then :
14099 $as_echo_n "(cached) " >&6
14101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14102 case `$LD -v 2>&1 </dev/null` in
14103 *GNU* | *'with BFD'*)
14104 lt_cv_prog_gnu_ld=yes
14107 lt_cv_prog_gnu_ld=no
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14112 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14113 with_gnu_ld=$lt_cv_prog_gnu_ld
14121 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14122 # archiving commands below assume that GNU ld is being used.
14123 if test "$with_gnu_ld" = yes; then
14124 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14125 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'
14127 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14130 # If archive_cmds runs LD, not CC, wlarc should be empty
14131 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14132 # investigate it a little bit more. (MM)
14135 # ancient GNU ld didn't support --whole-archive et. al.
14136 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14137 $GREP 'no-whole-archive' > /dev/null; then
14138 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14140 whole_archive_flag_spec_CXX=
14146 # A generic and very simple default shared library creation
14147 # command for GNU C++ for the case where it uses the native
14148 # linker, instead of GNU ld. If possible, this setting should
14149 # overridden to take advantage of the native linker features on
14150 # the platform it is being used on.
14151 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14154 # Commands to make compiler produce verbose output that lists
14155 # what "hidden" libraries, object files and flags are used when
14156 # linking a shared library.
14157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14165 # PORTME: fill in a description of your system's C++ link characteristics
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14167 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14171 # FIXME: insert proper C++ library support
14175 if test "$host_cpu" = ia64; then
14176 # On IA64, the linker does run time linking by default, so we don't
14177 # have to do anything special.
14178 aix_use_runtimelinking=no
14179 exp_sym_flag='-Bexport'
14182 aix_use_runtimelinking=no
14184 # Test if we are trying to use run time linking or normal
14185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14186 # need to do runtime linking.
14187 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14188 for ld_flag in $LDFLAGS; do
14191 aix_use_runtimelinking=yes
14199 exp_sym_flag='-bexport'
14200 no_entry_flag='-bnoentry'
14203 # When large executables or shared objects are built, AIX ld can
14204 # have problems creating the table of contents. If linking a library
14205 # or program results in "error TOC overflow" add -mminimal-toc to
14206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14209 archive_cmds_CXX=''
14210 hardcode_direct_CXX=yes
14211 hardcode_direct_absolute_CXX=yes
14212 hardcode_libdir_separator_CXX=':'
14213 link_all_deplibs_CXX=yes
14214 file_list_spec_CXX='${wl}-f,'
14216 if test "$GXX" = yes; then
14217 case $host_os in aix4.[012]|aix4.[012].*)
14218 # We only want to do this on AIX 4.2 and lower, the check
14219 # below for broken collect2 doesn't work under 4.3+
14220 collect2name=`${CC} -print-prog-name=collect2`
14221 if test -f "$collect2name" &&
14222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14224 # We have reworked collect2
14227 # We have old collect2
14228 hardcode_direct_CXX=unsupported
14229 # It fails to find uninstalled libraries when the uninstalled
14230 # path is not listed in the libpath. Setting hardcode_minus_L
14231 # to unsupported forces relinking
14232 hardcode_minus_L_CXX=yes
14233 hardcode_libdir_flag_spec_CXX='-L$libdir'
14234 hardcode_libdir_separator_CXX=
14237 shared_flag='-shared'
14238 if test "$aix_use_runtimelinking" = yes; then
14239 shared_flag="$shared_flag "'${wl}-G'
14243 if test "$host_cpu" = ia64; then
14244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14245 # chokes on -Wl,-G. The following line is correct:
14248 if test "$aix_use_runtimelinking" = yes; then
14249 shared_flag='${wl}-G'
14251 shared_flag='${wl}-bM:SRE'
14256 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14257 # It seems that -bexpall does not export symbols beginning with
14258 # underscore (_), so it is better to generate a list of symbols to
14260 always_export_symbols_CXX=yes
14261 if test "$aix_use_runtimelinking" = yes; then
14262 # Warning - without using the other runtime loading flags (-brtl),
14263 # -berok will link without error, but may produce a broken library.
14264 allow_undefined_flag_CXX='-berok'
14265 # Determine the default libpath from the value encoded in an empty
14267 if test "${lt_cv_aix_libpath+set}" = set; then
14268 aix_libpath=$lt_cv_aix_libpath
14270 if ${lt_cv_aix_libpath__CXX+:} false; then :
14271 $as_echo_n "(cached) " >&6
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14284 if ac_fn_cxx_try_link "$LINENO"; then :
14286 lt_aix_libpath_sed='
14287 /Import File Strings/,/^$/ {
14289 s/^0 *\([^ ]*\) *$/\1/
14293 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14294 # Check for a 64-bit object if we didn't find anything.
14295 if test -z "$lt_cv_aix_libpath__CXX"; then
14296 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 if test -z "$lt_cv_aix_libpath__CXX"; then
14302 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14307 aix_libpath=$lt_cv_aix_libpath__CXX
14310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14312 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"
14314 if test "$host_cpu" = ia64; then
14315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14316 allow_undefined_flag_CXX="-z nodefs"
14317 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"
14319 # Determine the default libpath from the value encoded in an
14320 # empty executable.
14321 if test "${lt_cv_aix_libpath+set}" = set; then
14322 aix_libpath=$lt_cv_aix_libpath
14324 if ${lt_cv_aix_libpath__CXX+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14338 if ac_fn_cxx_try_link "$LINENO"; then :
14340 lt_aix_libpath_sed='
14341 /Import File Strings/,/^$/ {
14343 s/^0 *\([^ ]*\) *$/\1/
14347 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14348 # Check for a 64-bit object if we didn't find anything.
14349 if test -z "$lt_cv_aix_libpath__CXX"; then
14350 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14353 rm -f core conftest.err conftest.$ac_objext \
14354 conftest$ac_exeext conftest.$ac_ext
14355 if test -z "$lt_cv_aix_libpath__CXX"; then
14356 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14361 aix_libpath=$lt_cv_aix_libpath__CXX
14364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14365 # Warning - without using the other run time loading flags,
14366 # -berok will link without error, but may produce a broken library.
14367 no_undefined_flag_CXX=' ${wl}-bernotok'
14368 allow_undefined_flag_CXX=' ${wl}-berok'
14369 if test "$with_gnu_ld" = yes; then
14370 # We only use this code for GNU lds that support --whole-archive.
14371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14373 # Exported symbols can be pulled into shared objects from archives
14374 whole_archive_flag_spec_CXX='$convenience'
14376 archive_cmds_need_lc_CXX=yes
14377 # This is similar to how AIX traditionally builds its shared
14379 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'
14385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14386 allow_undefined_flag_CXX=unsupported
14387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14388 # support --undefined. This deserves some investigation. FIXME
14389 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14396 case $cc_basename in
14398 # FIXME: insert proper C++ library support
14404 cygwin* | mingw* | pw32* | cegcc*)
14405 case $GXX,$cc_basename in
14408 # hardcode_libdir_flag_spec is actually meaningless, as there is
14409 # no search path for DLLs.
14410 hardcode_libdir_flag_spec_CXX=' '
14411 allow_undefined_flag_CXX=unsupported
14412 always_export_symbols_CXX=yes
14413 file_list_spec_CXX='@'
14414 # Tell ltmain to make .lib files, not .a files.
14416 # Tell ltmain to make .dll files, not .so files.
14418 # FIXME: Setting linknames here is a bad hack.
14419 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14420 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14421 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14423 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14425 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14427 # The linker will not automatically build a static lib if we build a DLL.
14428 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14429 enable_shared_with_static_runtimes_CXX=yes
14431 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14432 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14433 lt_tool_outputfile="@TOOL_OUTPUT@"~
14434 case $lt_outputfile in
14437 lt_outputfile="$lt_outputfile.exe"
14438 lt_tool_outputfile="$lt_tool_outputfile.exe"
14441 func_to_tool_file "$lt_outputfile"~
14442 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14443 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14444 $RM "$lt_outputfile.manifest";
14449 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14450 # as there is no search path for DLLs.
14451 hardcode_libdir_flag_spec_CXX='-L$libdir'
14452 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14453 allow_undefined_flag_CXX=unsupported
14454 always_export_symbols_CXX=no
14455 enable_shared_with_static_runtimes_CXX=yes
14457 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14458 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'
14459 # If the export-symbols file already is a .def file (1st line
14460 # is EXPORTS), use it as is; otherwise, prepend...
14461 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14462 cp $export_symbols $output_objdir/$soname.def;
14464 echo EXPORTS > $output_objdir/$soname.def;
14465 cat $export_symbols >> $output_objdir/$soname.def;
14467 $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'
14474 darwin* | rhapsody*)
14477 archive_cmds_need_lc_CXX=no
14478 hardcode_direct_CXX=no
14479 hardcode_automatic_CXX=yes
14480 hardcode_shlibpath_var_CXX=unsupported
14481 if test "$lt_cv_ld_force_load" = "yes"; then
14482 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\"`'
14484 whole_archive_flag_spec_CXX=''
14486 link_all_deplibs_CXX=yes
14487 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14488 case $cc_basename in
14489 ifort*) _lt_dar_can_shared=yes ;;
14490 *) _lt_dar_can_shared=$GCC ;;
14492 if test "$_lt_dar_can_shared" = "yes"; then
14493 output_verbose_link_cmd=func_echo_all
14494 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}"
14495 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14496 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}"
14497 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}"
14498 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14499 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}"
14500 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}"
14510 case $cc_basename in
14512 # FIXME: insert proper C++ library support
14516 # Green Hills C++ Compiler
14517 # FIXME: insert proper C++ library support
14521 # FIXME: insert proper C++ library support
14528 # C++ shared libraries reported to be fairly broken before
14534 archive_cmds_need_lc_CXX=no
14537 freebsd* | dragonfly*)
14538 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14547 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14548 link_all_deplibs_CXX=yes
14552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14553 hardcode_libdir_separator_CXX=:
14554 export_dynamic_flag_spec_CXX='${wl}-E'
14555 hardcode_direct_CXX=yes
14556 hardcode_minus_L_CXX=yes # Not in the search PATH,
14557 # but as the default
14558 # location of the library.
14560 case $cc_basename in
14562 # FIXME: insert proper C++ library support
14566 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'
14567 # Commands to make compiler produce verbose output that lists
14568 # what "hidden" libraries, object files and flags are used when
14569 # linking a shared library.
14571 # There doesn't appear to be a way to prevent this compiler from
14572 # explicitly linking system object files so we need to strip them
14573 # from the output so that they don't get included in the library
14575 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"'
14578 if test "$GXX" = yes; then
14579 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'
14581 # FIXME: insert proper C++ library support
14589 if test $with_gnu_ld = no; then
14590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14591 hardcode_libdir_separator_CXX=:
14597 export_dynamic_flag_spec_CXX='${wl}-E'
14603 hardcode_direct_CXX=no
14604 hardcode_shlibpath_var_CXX=no
14607 hardcode_direct_CXX=yes
14608 hardcode_direct_absolute_CXX=yes
14609 hardcode_minus_L_CXX=yes # Not in the search PATH,
14610 # but as the default
14611 # location of the library.
14615 case $cc_basename in
14617 # FIXME: insert proper C++ library support
14623 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14632 # Commands to make compiler produce verbose output that lists
14633 # what "hidden" libraries, object files and flags are used when
14634 # linking a shared library.
14636 # There doesn't appear to be a way to prevent this compiler from
14637 # explicitly linking system object files so we need to strip them
14638 # from the output so that they don't get included in the library
14640 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"'
14643 if test "$GXX" = yes; then
14644 if test $with_gnu_ld = no; then
14647 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14650 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14653 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'
14658 # FIXME: insert proper C++ library support
14666 hardcode_direct_CXX=no
14667 hardcode_shlibpath_var_CXX=no
14668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14669 export_dynamic_flag_spec_CXX='${wl}-E'
14670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14671 # Instead, shared libraries are loaded at an image base (0x10000000 by
14672 # default) and relocated if they conflict, which is a slow very memory
14673 # consuming and fragmenting process. To avoid this, we pick a random,
14674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14675 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14676 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'
14677 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'
14680 case $cc_basename in
14683 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'
14685 # Archives containing C++ object files must be created using
14686 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14687 # necessary to make sure instantiated templates are included
14689 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14692 if test "$GXX" = yes; then
14693 if test "$with_gnu_ld" = no; then
14694 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'
14696 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'
14699 link_all_deplibs_CXX=yes
14702 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14703 hardcode_libdir_separator_CXX=:
14704 inherit_rpath_CXX=yes
14707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14708 case $cc_basename in
14710 # Kuck and Associates, Inc. (KAI) C++ Compiler
14712 # KCC will only create a shared library if the output file
14713 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14714 # to its proper name (with version) after linking.
14715 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'
14716 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'
14717 # Commands to make compiler produce verbose output that lists
14718 # what "hidden" libraries, object files and flags are used when
14719 # linking a shared library.
14721 # There doesn't appear to be a way to prevent this compiler from
14722 # explicitly linking system object files so we need to strip them
14723 # from the output so that they don't get included in the library
14725 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"'
14727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14730 # Archives containing C++ object files must be created using
14731 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14732 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14737 # version 8.0 and above of icpc choke on multiply defined symbols
14738 # if we add $predep_objects and $postdep_objects, however 7.1 and
14739 # earlier do not add the objects themselves.
14740 case `$CC -V 2>&1` in
14742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743 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'
14745 *) # Version 8.0 or newer
14748 ia64*) tmp_idyn=' -i_dynamic';;
14750 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14751 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'
14754 archive_cmds_need_lc_CXX=no
14755 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14757 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14760 # Portland Group C++ compiler
14762 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14763 prelink_cmds_CXX='tpldir=Template.dir~
14765 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14766 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14767 old_archive_cmds_CXX='tpldir=Template.dir~
14769 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14770 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14772 archive_cmds_CXX='tpldir=Template.dir~
14774 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14775 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14776 archive_expsym_cmds_CXX='tpldir=Template.dir~
14778 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14779 $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'
14781 *) # Version 6 and above use weak symbols
14782 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14783 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'
14787 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14789 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'
14793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 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'
14796 runpath_var=LD_RUN_PATH
14797 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14798 hardcode_libdir_separator_CXX=:
14800 # Commands to make compiler produce verbose output that lists
14801 # what "hidden" libraries, object files and flags are used when
14802 # linking a shared library.
14804 # There doesn't appear to be a way to prevent this compiler from
14805 # explicitly linking system object files so we need to strip them
14806 # from the output so that they don't get included in the library
14808 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'
14810 xl* | mpixl* | bgxl*)
14811 # IBM XL 8.0 on PPC, with GNU ld
14812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14814 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 if test "x$supports_anon_versioning" = xyes; then
14816 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14818 echo "local: *; };" >> $output_objdir/$libname.ver~
14819 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14823 case `$CC -V 2>&1 | sed 5q` in
14826 no_undefined_flag_CXX=' -zdefs'
14827 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14828 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'
14829 hardcode_libdir_flag_spec_CXX='-R$libdir'
14830 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'
14831 compiler_needs_object_CXX=yes
14833 # Not sure whether something based on
14834 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14836 output_verbose_link_cmd='func_echo_all'
14838 # Archives containing C++ object files must be created using
14839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14840 # necessary to make sure instantiated templates are included
14842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14850 # FIXME: insert proper C++ library support
14855 # FIXME: insert proper C++ library support
14860 case $cc_basename in
14862 # FIXME: insert proper C++ library support
14866 # FIXME: insert proper C++ library support
14873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14874 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14876 hardcode_libdir_flag_spec_CXX='-R$libdir'
14877 hardcode_direct_CXX=yes
14878 hardcode_shlibpath_var_CXX=no
14880 # Workaround some broken pre-1.5 toolchains
14881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14889 # C++ shared libraries are fairly broken
14894 if test -f /usr/libexec/ld.so; then
14895 hardcode_direct_CXX=yes
14896 hardcode_shlibpath_var_CXX=no
14897 hardcode_direct_absolute_CXX=yes
14898 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14902 export_dynamic_flag_spec_CXX='${wl}-E'
14903 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14905 output_verbose_link_cmd=func_echo_all
14911 osf3* | osf4* | osf5*)
14912 case $cc_basename in
14914 # Kuck and Associates, Inc. (KAI) C++ Compiler
14916 # KCC will only create a shared library if the output file
14917 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14918 # to its proper name (with version) after linking.
14919 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'
14921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14922 hardcode_libdir_separator_CXX=:
14924 # Archives containing C++ object files must be created using
14925 # the KAI C++ compiler.
14927 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14928 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14932 # Rational C++ 2.4.1
14933 # FIXME: insert proper C++ library support
14939 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14940 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'
14941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14944 allow_undefined_flag_CXX=' -expect_unresolved \*'
14945 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'
14946 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14947 echo "-hidden">> $lib.exp~
14948 $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~
14950 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14954 hardcode_libdir_separator_CXX=:
14956 # Commands to make compiler produce verbose output that lists
14957 # what "hidden" libraries, object files and flags are used when
14958 # linking a shared library.
14960 # There doesn't appear to be a way to prevent this compiler from
14961 # explicitly linking system object files so we need to strip them
14962 # from the output so that they don't get included in the library
14964 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"'
14967 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14968 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14971 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'
14974 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'
14978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14979 hardcode_libdir_separator_CXX=:
14981 # Commands to make compiler produce verbose output that lists
14982 # what "hidden" libraries, object files and flags are used when
14983 # linking a shared library.
14984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14987 # FIXME: insert proper C++ library support
14995 # FIXME: insert proper C++ library support
15000 case $cc_basename in
15003 # FIXME: insert proper C++ library support
15008 # FIXME: insert proper C++ library support
15012 # FIXME: insert proper C++ library support
15019 case $cc_basename in
15021 # Sun C++ 4.2, 5.x and Centerline C++
15022 archive_cmds_need_lc_CXX=yes
15023 no_undefined_flag_CXX=' -zdefs'
15024 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15026 $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'
15028 hardcode_libdir_flag_spec_CXX='-R$libdir'
15029 hardcode_shlibpath_var_CXX=no
15031 solaris2.[0-5] | solaris2.[0-5].*) ;;
15033 # The compiler driver will combine and reorder linker options,
15034 # but understands `-z linker_flag'.
15035 # Supported since Solaris 2.6 (maybe 2.5.1?)
15036 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15039 link_all_deplibs_CXX=yes
15041 output_verbose_link_cmd='func_echo_all'
15043 # Archives containing C++ object files must be created using
15044 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15045 # necessary to make sure instantiated templates are included
15047 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15050 # Green Hills C++ Compiler
15051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15053 # The C++ compiler must be used to create the archive.
15054 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15057 # GNU C++ compiler with Solaris linker
15058 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15059 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15060 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15061 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15062 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15063 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15065 # Commands to make compiler produce verbose output that lists
15066 # what "hidden" libraries, object files and flags are used when
15067 # linking a shared library.
15068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15070 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15072 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15073 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15074 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15076 # Commands to make compiler produce verbose output that lists
15077 # what "hidden" libraries, object files and flags are used when
15078 # linking a shared library.
15079 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15082 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15084 solaris2.[0-5] | solaris2.[0-5].*) ;;
15086 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15095 no_undefined_flag_CXX='${wl}-z,text'
15096 archive_cmds_need_lc_CXX=no
15097 hardcode_shlibpath_var_CXX=no
15098 runpath_var='LD_RUN_PATH'
15100 case $cc_basename in
15102 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15106 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15112 sysv5* | sco3.2v5* | sco5v6*)
15113 # Note: We can NOT use -z defs as we might desire, because we do not
15114 # link with -lc, and that would cause any symbols used from libc to
15115 # always be unresolved, which means just about no library would
15116 # ever link correctly. If we're not using GNU ld we use -z text
15117 # though, which does catch some bad symbols but isn't as heavy-handed
15119 no_undefined_flag_CXX='${wl}-z,text'
15120 allow_undefined_flag_CXX='${wl}-z,nodefs'
15121 archive_cmds_need_lc_CXX=no
15122 hardcode_shlibpath_var_CXX=no
15123 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15124 hardcode_libdir_separator_CXX=':'
15125 link_all_deplibs_CXX=yes
15126 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15127 runpath_var='LD_RUN_PATH'
15129 case $cc_basename in
15131 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15134 '"$old_archive_cmds_CXX"
15135 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15136 '"$reload_cmds_CXX"
15139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15146 case $cc_basename in
15148 # NonStop-UX NCC 3.20
15149 # FIXME: insert proper C++ library support
15153 # FIXME: insert proper C++ library support
15160 # FIXME: insert proper C++ library support
15165 # FIXME: insert proper C++ library support
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15171 $as_echo "$ld_shlibs_CXX" >&6; }
15172 test "$ld_shlibs_CXX" = no && can_build_shared=no
15178 ## There is no encapsulation within the following macros, do not change
15179 ## the running order or otherwise move them around unless you know exactly
15180 ## what you are doing...
15181 # Dependencies to place before and after the object being linked:
15182 predep_objects_CXX=
15183 postdep_objects_CXX=
15186 compiler_lib_search_path_CXX=
15188 cat > conftest.$ac_ext <<_LT_EOF
15192 Foo (void) { a = 0; }
15199 _lt_libdeps_save_CFLAGS=$CFLAGS
15200 case "$CC $CFLAGS " in #(
15201 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15202 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15206 (eval $ac_compile) 2>&5
15208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 test $ac_status = 0; }; then
15210 # Parse the compiler output and extract the necessary
15211 # objects, libraries and library flags.
15213 # Sentinel used to keep track of whether or not we are before
15214 # the conftest object file.
15215 pre_test_object_deps_done=no
15217 for p in `eval "$output_verbose_link_cmd"`; do
15218 case ${prev}${p} in
15221 # Some compilers place space between "-{L,R}" and the path.
15222 # Remove the space.
15223 if test $p = "-L" ||
15224 test $p = "-R"; then
15229 # Expand the sysroot to ease extracting the directories later.
15230 if test -z "$prev"; then
15232 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15233 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15234 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15238 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15240 if test "$pre_test_object_deps_done" = no; then
15243 # Internal compiler library paths should come after those
15244 # provided the user. The postdeps already come after the
15245 # user supplied libs so there is no need to process them.
15246 if test -z "$compiler_lib_search_path_CXX"; then
15247 compiler_lib_search_path_CXX="${prev}${p}"
15249 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15252 # The "-l" case would never come before the object being
15253 # linked, so don't bother handling this case.
15256 if test -z "$postdeps_CXX"; then
15257 postdeps_CXX="${prev}${p}"
15259 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15265 *.lto.$objext) ;; # Ignore GCC LTO objects
15267 # This assumes that the test object file only shows up
15268 # once in the compiler output.
15269 if test "$p" = "conftest.$objext"; then
15270 pre_test_object_deps_done=yes
15274 if test "$pre_test_object_deps_done" = no; then
15275 if test -z "$predep_objects_CXX"; then
15276 predep_objects_CXX="$p"
15278 predep_objects_CXX="$predep_objects_CXX $p"
15281 if test -z "$postdep_objects_CXX"; then
15282 postdep_objects_CXX="$p"
15284 postdep_objects_CXX="$postdep_objects_CXX $p"
15289 *) ;; # Ignore the rest.
15297 echo "libtool.m4: error: problem compiling CXX test program"
15300 $RM -f confest.$objext
15301 CFLAGS=$_lt_libdeps_save_CFLAGS
15303 # PORTME: override above test on systems where it is broken
15306 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15307 # hack all around it, let's just trust "g++" to DTRT.
15308 predep_objects_CXX=
15309 postdep_objects_CXX=
15314 case `$CC -V 2>&1 | sed 5q` in
15318 # The more standards-conforming stlport4 library is
15319 # incompatible with the Cstd library. Avoid specifying
15320 # it if it's in CXXFLAGS. Ignore libCrun as
15321 # -library=stlport4 depends on it.
15322 case " $CXX $CXXFLAGS " in
15323 *" -library=stlport4 "*)
15324 solaris_use_stlport4=yes
15328 if test "$solaris_use_stlport4" != yes; then
15329 postdeps_CXX='-library=Cstd -library=Crun'
15336 case $cc_basename in
15338 # The more standards-conforming stlport4 library is
15339 # incompatible with the Cstd library. Avoid specifying
15340 # it if it's in CXXFLAGS. Ignore libCrun as
15341 # -library=stlport4 depends on it.
15342 case " $CXX $CXXFLAGS " in
15343 *" -library=stlport4 "*)
15344 solaris_use_stlport4=yes
15348 # Adding this requires a known-good setup of shared libraries for
15349 # Sun compiler versions before 5.6, else PIC objects from an old
15350 # archive will be linked into the output, leading to subtle bugs.
15351 if test "$solaris_use_stlport4" != yes; then
15352 postdeps_CXX='-library=Cstd -library=Crun'
15360 case " $postdeps_CXX " in
15361 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15363 compiler_lib_search_dirs_CXX=
15364 if test -n "${compiler_lib_search_path_CXX}"; then
15365 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15398 lt_prog_compiler_wl_CXX=
15399 lt_prog_compiler_pic_CXX=
15400 lt_prog_compiler_static_CXX=
15403 # C++ specific cases for pic, static, wl, etc.
15404 if test "$GXX" = yes; then
15405 lt_prog_compiler_wl_CXX='-Wl,'
15406 lt_prog_compiler_static_CXX='-static'
15410 # All AIX code is PIC.
15411 if test "$host_cpu" = ia64; then
15412 # AIX 5 now supports IA64 processor
15413 lt_prog_compiler_static_CXX='-Bstatic'
15420 # see comment about AmigaOS4 .so support
15421 lt_prog_compiler_pic_CXX='-fPIC'
15424 # FIXME: we need at least 68020 code to build shared libraries, but
15425 # adding the `-m68020' flag to GCC prevents building anything better,
15427 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15432 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15433 # PIC is the default for these OSes.
15435 mingw* | cygwin* | os2* | pw32* | cegcc*)
15436 # This hack is so that the source file can tell whether it is being
15437 # built for inclusion in a dll (and should export symbols for example).
15438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15439 # (--disable-auto-import) libraries
15440 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15442 darwin* | rhapsody*)
15443 # PIC is the default on this platform
15444 # Common symbols not allowed in MH_DYLIB files
15445 lt_prog_compiler_pic_CXX='-fno-common'
15448 # DJGPP does not support shared libraries at all
15449 lt_prog_compiler_pic_CXX=
15452 # PIC is the default for Haiku.
15453 # The "-static" flag exists, but is broken.
15454 lt_prog_compiler_static_CXX=
15457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15458 # Instead, we relocate shared libraries at runtime.
15461 if test -d /usr/nec; then
15462 lt_prog_compiler_pic_CXX=-Kconform_pic
15466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15468 # sets the default TLS model and affects inlining.
15473 lt_prog_compiler_pic_CXX='-fPIC'
15478 # QNX uses GNU C++, but need to define -shared option too, otherwise
15479 # it will coredump.
15480 lt_prog_compiler_pic_CXX='-fPIC -shared'
15483 lt_prog_compiler_pic_CXX='-fPIC'
15489 # All AIX code is PIC.
15490 if test "$host_cpu" = ia64; then
15491 # AIX 5 now supports IA64 processor
15492 lt_prog_compiler_static_CXX='-Bstatic'
15494 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15498 case $cc_basename in
15500 # Green Hills C++ Compiler
15501 # _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"
15505 mingw* | cygwin* | os2* | pw32* | cegcc*)
15506 # This hack is so that the source file can tell whether it is being
15507 # built for inclusion in a dll (and should export symbols for example).
15508 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15511 case $cc_basename in
15513 lt_prog_compiler_pic_CXX='-KPIC'
15516 # Green Hills C++ Compiler
15517 lt_prog_compiler_pic_CXX='-pic'
15523 freebsd* | dragonfly*)
15524 # FreeBSD uses GNU C++
15526 hpux9* | hpux10* | hpux11*)
15527 case $cc_basename in
15529 lt_prog_compiler_wl_CXX='-Wl,'
15530 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15531 if test "$host_cpu" != ia64; then
15532 lt_prog_compiler_pic_CXX='+Z'
15536 lt_prog_compiler_wl_CXX='-Wl,'
15537 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15543 lt_prog_compiler_pic_CXX='+Z'
15552 # This is c89, which is MS Visual C++ (no shared libs)
15553 # Anyone wants to do a port?
15555 irix5* | irix6* | nonstopux*)
15556 case $cc_basename in
15558 lt_prog_compiler_wl_CXX='-Wl,'
15559 lt_prog_compiler_static_CXX='-non_shared'
15560 # CC pic flag -KPIC is the default.
15566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15567 case $cc_basename in
15570 lt_prog_compiler_wl_CXX='--backend -Wl,'
15571 lt_prog_compiler_pic_CXX='-fPIC'
15574 # old Intel C++ for x86_64 which still supported -KPIC.
15575 lt_prog_compiler_wl_CXX='-Wl,'
15576 lt_prog_compiler_pic_CXX='-KPIC'
15577 lt_prog_compiler_static_CXX='-static'
15580 # Intel C++, used to be incompatible with GCC.
15581 # ICC 10 doesn't accept -KPIC any more.
15582 lt_prog_compiler_wl_CXX='-Wl,'
15583 lt_prog_compiler_pic_CXX='-fPIC'
15584 lt_prog_compiler_static_CXX='-static'
15587 # Portland Group C++ compiler
15588 lt_prog_compiler_wl_CXX='-Wl,'
15589 lt_prog_compiler_pic_CXX='-fpic'
15590 lt_prog_compiler_static_CXX='-Bstatic'
15594 # Make sure the PIC flag is empty. It appears that all Alpha
15595 # Linux and Compaq Tru64 Unix objects are PIC.
15596 lt_prog_compiler_pic_CXX=
15597 lt_prog_compiler_static_CXX='-non_shared'
15599 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15600 # IBM XL 8.0, 9.0 on PPC and BlueGene
15601 lt_prog_compiler_wl_CXX='-Wl,'
15602 lt_prog_compiler_pic_CXX='-qpic'
15603 lt_prog_compiler_static_CXX='-qstaticlink'
15606 case `$CC -V 2>&1 | sed 5q` in
15609 lt_prog_compiler_pic_CXX='-KPIC'
15610 lt_prog_compiler_static_CXX='-Bstatic'
15611 lt_prog_compiler_wl_CXX='-Qoption ld '
15622 case $cc_basename in
15624 lt_prog_compiler_pic_CXX='-W c,exportall'
15633 # QNX uses GNU C++, but need to define -shared option too, otherwise
15634 # it will coredump.
15635 lt_prog_compiler_pic_CXX='-fPIC -shared'
15637 osf3* | osf4* | osf5*)
15638 case $cc_basename in
15640 lt_prog_compiler_wl_CXX='--backend -Wl,'
15643 # Rational C++ 2.4.1
15644 lt_prog_compiler_pic_CXX='-pic'
15647 # Digital/Compaq C++
15648 lt_prog_compiler_wl_CXX='-Wl,'
15649 # Make sure the PIC flag is empty. It appears that all Alpha
15650 # Linux and Compaq Tru64 Unix objects are PIC.
15651 lt_prog_compiler_pic_CXX=
15652 lt_prog_compiler_static_CXX='-non_shared'
15661 case $cc_basename in
15663 # Sun C++ 4.2, 5.x and Centerline C++
15664 lt_prog_compiler_pic_CXX='-KPIC'
15665 lt_prog_compiler_static_CXX='-Bstatic'
15666 lt_prog_compiler_wl_CXX='-Qoption ld '
15669 # Green Hills C++ Compiler
15670 lt_prog_compiler_pic_CXX='-PIC'
15677 case $cc_basename in
15680 lt_prog_compiler_pic_CXX='-pic'
15681 lt_prog_compiler_static_CXX='-Bstatic'
15685 lt_prog_compiler_pic_CXX='-pic'
15691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15692 case $cc_basename in
15694 lt_prog_compiler_wl_CXX='-Wl,'
15695 lt_prog_compiler_pic_CXX='-KPIC'
15696 lt_prog_compiler_static_CXX='-Bstatic'
15701 case $cc_basename in
15703 # NonStop-UX NCC 3.20
15704 lt_prog_compiler_pic_CXX='-KPIC'
15713 lt_prog_compiler_can_build_shared_CXX=no
15719 # For platforms which do not support PIC, -DPIC is meaningless:
15721 lt_prog_compiler_pic_CXX=
15724 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15729 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15730 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15731 $as_echo_n "(cached) " >&6
15733 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15736 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15740 # Check to make sure the PIC flag actually works.
15742 if test -n "$lt_prog_compiler_pic_CXX"; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15745 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15746 $as_echo_n "(cached) " >&6
15748 lt_cv_prog_compiler_pic_works_CXX=no
15749 ac_outfile=conftest.$ac_objext
15750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15752 # Insert the option either (1) after the last *FLAGS variable, or
15753 # (2) before a word containing "conftest.", or (3) at the end.
15754 # Note that $ac_compile itself does not contain backslashes and begins
15755 # with a dollar sign (not a hyphen), so the echo should work correctly.
15756 # The option is referenced via a variable to avoid confusing sed.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>conftest.err)
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s "$ac_outfile"; then
15767 # The compiler can only warn and ignore the option if not recognized
15768 # So say no if there are warnings other than the usual output.
15769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772 lt_cv_prog_compiler_pic_works_CXX=yes
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15779 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15781 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15782 case $lt_prog_compiler_pic_CXX in
15784 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15787 lt_prog_compiler_pic_CXX=
15788 lt_prog_compiler_can_build_shared_CXX=no
15798 # Check to make sure the static flag actually works.
15800 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15802 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15803 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15804 $as_echo_n "(cached) " >&6
15806 lt_cv_prog_compiler_static_works_CXX=no
15807 save_LDFLAGS="$LDFLAGS"
15808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15809 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15811 # The linker can only warn and ignore the option if not recognized
15812 # So say no if there are warnings
15813 if test -s conftest.err; then
15814 # Append any errors to the config.log.
15815 cat conftest.err 1>&5
15816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818 if diff conftest.exp conftest.er2 >/dev/null; then
15819 lt_cv_prog_compiler_static_works_CXX=yes
15822 lt_cv_prog_compiler_static_works_CXX=yes
15826 LDFLAGS="$save_LDFLAGS"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15830 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15832 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15835 lt_prog_compiler_static_CXX=
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15843 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15844 $as_echo_n "(cached) " >&6
15846 lt_cv_prog_compiler_c_o_CXX=no
15847 $RM -r conftest 2>/dev/null
15851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15853 lt_compiler_flag="-o out/conftest2.$ac_objext"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 lt_compile=`echo "$ac_compile" | $SED \
15859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15861 -e 's:$: $lt_compiler_flag:'`
15862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15863 (eval "$lt_compile" 2>out/conftest.err)
15865 cat out/conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_c_o_CXX=yes
15879 # SGI C++ compiler will create directory out/ii_files/ for
15880 # template instantiation
15881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15882 $RM out/* && rmdir out
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15889 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15895 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15896 $as_echo_n "(cached) " >&6
15898 lt_cv_prog_compiler_c_o_CXX=no
15899 $RM -r conftest 2>/dev/null
15903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15905 lt_compiler_flag="-o out/conftest2.$ac_objext"
15906 # Insert the option either (1) after the last *FLAGS variable, or
15907 # (2) before a word containing "conftest.", or (3) at the end.
15908 # Note that $ac_compile itself does not contain backslashes and begins
15909 # with a dollar sign (not a hyphen), so the echo should work correctly.
15910 lt_compile=`echo "$ac_compile" | $SED \
15911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913 -e 's:$: $lt_compiler_flag:'`
15914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15915 (eval "$lt_compile" 2>out/conftest.err)
15917 cat out/conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15921 # The compiler can only warn and ignore the option if not recognized
15922 # So say no if there are warnings
15923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15926 lt_cv_prog_compiler_c_o_CXX=yes
15931 # SGI C++ compiler will create directory out/ii_files/ for
15932 # template instantiation
15933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15934 $RM out/* && rmdir out
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15941 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15946 hard_links="nottested"
15947 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15948 # do not overwrite the value of need_locks provided by the user
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15950 $as_echo_n "checking if we can lock with hard links... " >&6; }
15953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15955 ln conftest.a conftest.b 2>&5 || hard_links=no
15956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15958 $as_echo "$hard_links" >&6; }
15959 if test "$hard_links" = no; then
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15961 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15974 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15977 # If we're using GNU nm, then we don't want the "-C" option.
15978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15979 # Also, AIX nm treats weak defined symbols like other global defined
15980 # symbols, whereas GNU nm marks them as "W".
15981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15982 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'
15984 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'
15988 export_symbols_cmds_CXX="$ltdll_cmds"
15990 cygwin* | mingw* | cegcc*)
15991 case $cc_basename in
15994 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'
15995 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16000 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16005 $as_echo "$ld_shlibs_CXX" >&6; }
16006 test "$ld_shlibs_CXX" = no && can_build_shared=no
16008 with_gnu_ld_CXX=$with_gnu_ld
16016 # Do we need to explicitly link libc?
16018 case "x$archive_cmds_need_lc_CXX" in
16020 # Assume -lc should be added
16021 archive_cmds_need_lc_CXX=yes
16023 if test "$enable_shared" = yes && test "$GCC" = yes; then
16024 case $archive_cmds_CXX in
16026 # FIXME: we may have to deal with multi-command sequences.
16029 # Test whether the compiler implicitly links with -lc since on some
16030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16031 # to ld, don't add -lc before -lgcc.
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16033 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16034 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16035 $as_echo_n "(cached) " >&6
16038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16041 (eval $ac_compile) 2>&5
16043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16044 test $ac_status = 0; } 2>conftest.err; then
16047 libobjs=conftest.$ac_objext
16049 wl=$lt_prog_compiler_wl_CXX
16050 pic_flag=$lt_prog_compiler_pic_CXX
16056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16057 allow_undefined_flag_CXX=
16058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16059 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16062 test $ac_status = 0; }
16064 lt_cv_archive_cmds_need_lc_CXX=no
16066 lt_cv_archive_cmds_need_lc_CXX=yes
16068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16070 cat conftest.err 1>&5
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16076 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16077 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16150 library_names_spec=
16151 libname_spec='lib$name'
16155 postuninstall_cmds=
16159 shlibpath_overrides_runpath=unknown
16161 dynamic_linker="$host_os ld.so"
16162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16163 need_lib_prefix=unknown
16164 hardcode_into_libs=no
16166 # when you set need_version to no, make sure it does not cause -set_version
16167 # flags to be left without arguments
16168 need_version=unknown
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16174 shlibpath_var=LIBPATH
16176 # AIX 3 has no versioning support, so we append a major version to the name.
16177 soname_spec='${libname}${release}${shared_ext}$major'
16184 hardcode_into_libs=yes
16185 if test "$host_cpu" = ia64; then
16186 # AIX 5 supports IA64
16187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16188 shlibpath_var=LD_LIBRARY_PATH
16190 # With GCC up to 2.95.x, collect2 would create an import file
16191 # for dependence libraries. The import file would start with
16192 # the line `#! .'. This would cause the generated library to
16193 # depend on `.', always an invalid library. This was fixed in
16194 # development snapshots of GCC prior to 3.0.
16196 aix4 | aix4.[01] | aix4.[01].*)
16197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16199 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16202 can_build_shared=no
16206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16207 # soname into executable. Probably we can add versioning support to
16208 # collect2, so additional links can be useful in future.
16209 if test "$aix_use_runtimelinking" = yes; then
16210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16211 # instead of lib<name>.a to let people know that these are not
16212 # typical AIX shared libraries.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 # We preserve .a as extension for shared libraries through AIX4.2
16216 # and later when we are not doing run time linking.
16217 library_names_spec='${libname}${release}.a $libname.a'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LIBPATH
16227 # Since July 2007 AmigaOS4 officially supports .so libraries.
16228 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 library_names_spec='$libname.ixlibrary $libname.a'
16233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16234 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'
16240 library_names_spec='${libname}${shared_ext}'
16241 dynamic_linker="$host_os ld.so"
16242 shlibpath_var=LIBRARY_PATH
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16254 # the default ld.so.conf also contains /usr/contrib/lib and
16255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16256 # libtool to hard-code these into programs
16259 cygwin* | mingw* | pw32* | cegcc*)
16260 version_type=windows
16265 case $GCC,$cc_basename in
16268 library_names_spec='$libname.dll.a'
16269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16270 postinstall_cmds='base_file=`basename \${file}`~
16271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16272 dldir=$destdir/`dirname \$dlpath`~
16273 test -d \$dldir || mkdir -p \$dldir~
16274 $install_prog $dir/$dlname \$dldir/$dlname~
16275 chmod a+x \$dldir/$dlname~
16276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16280 dlpath=$dir/\$dldll~
16282 shlibpath_overrides_runpath=yes
16286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16291 # MinGW DLLs use traditional 'lib' prefix
16292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16295 # pw32 DLLs use 'pw' prefix rather than 'lib'
16296 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16299 dynamic_linker='Win32 ld.exe'
16304 libname_spec='$name'
16305 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16306 library_names_spec='${libname}.dll.lib'
16310 sys_lib_search_path_spec=
16313 for lt_path in $LIB
16316 # Let DOS variable expansion print the short 8.3 style file name.
16317 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16318 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16321 # Convert to MSYS style.
16322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16325 # Convert to unix form, then to dos form, then back to unix form
16326 # but this time dos style (no spaces!) so that the unix form looks
16327 # like /cygdrive/c/PROGRA~1:/cygdr...
16328 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16329 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16330 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16333 sys_lib_search_path_spec="$LIB"
16334 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16335 # It is most probably a Windows format PATH.
16336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16340 # FIXME: find the short name or the path components, as spaces are
16341 # common. (e.g. "Program Files" -> "PROGRA~1")
16345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16346 postinstall_cmds='base_file=`basename \${file}`~
16347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16348 dldir=$destdir/`dirname \$dlpath`~
16349 test -d \$dldir || mkdir -p \$dldir~
16350 $install_prog $dir/$dlname \$dldir/$dlname'
16351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16352 dlpath=$dir/\$dldll~
16354 shlibpath_overrides_runpath=yes
16355 dynamic_linker='Win32 link.exe'
16359 # Assume MSVC wrapper
16360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16361 dynamic_linker='Win32 ld.exe'
16364 # FIXME: first we should search . and the directory the executable is in
16368 darwin* | rhapsody*)
16369 dynamic_linker="$host_os dyld"
16370 version_type=darwin
16373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16374 soname_spec='${libname}${release}${major}$shared_ext'
16375 shlibpath_overrides_runpath=yes
16376 shlibpath_var=DYLD_LIBRARY_PATH
16377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16395 freebsd* | dragonfly*)
16396 # DragonFly does not have aout. When/if they implement a new
16397 # versioning mechanism, adjust this.
16398 if test -x /usr/bin/objformat; then
16399 objformat=`/usr/bin/objformat`
16402 freebsd[123]*) objformat=aout ;;
16403 *) objformat=elf ;;
16406 version_type=freebsd-$objformat
16407 case $version_type in
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16418 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16423 freebsd3.[01]* | freebsdelf3.[01]*)
16424 shlibpath_overrides_runpath=yes
16425 hardcode_into_libs=yes
16427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16429 shlibpath_overrides_runpath=no
16430 hardcode_into_libs=yes
16432 *) # from 4.6 on, and DragonFly
16433 shlibpath_overrides_runpath=yes
16434 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
16446 hardcode_into_libs=yes
16453 dynamic_linker="$host_os runtime_loader"
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LIBRARY_PATH
16457 shlibpath_overrides_runpath=yes
16458 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16459 hardcode_into_libs=yes
16462 hpux9* | hpux10* | hpux11*)
16463 # Give a soname corresponding to the major version so that dld.sl refuses to
16464 # link against other versions.
16471 hardcode_into_libs=yes
16472 dynamic_linker="$host_os dld.so"
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 if test "X$HPUX_IA64_MODE" = X32; then
16478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16486 hardcode_into_libs=yes
16487 dynamic_linker="$host_os dld.sl"
16488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16497 dynamic_linker="$host_os dld.sl"
16498 shlibpath_var=SHLIB_PATH
16499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16504 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16505 postinstall_cmds='chmod 555 $lib'
16506 # or fails outright, so override atomically:
16507 install_override_mode=555
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 shlibpath_overrides_runpath=no
16519 hardcode_into_libs=yes
16522 irix5* | irix6* | nonstopux*)
16524 nonstopux*) version_type=nonstopux ;;
16526 if test "$lt_cv_prog_gnu_ld" = yes; then
16534 soname_spec='${libname}${release}${shared_ext}$major'
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 irix5* | nonstopux*)
16538 libsuff= shlibsuff=
16541 case $LD in # libtool.m4 will add one of these switches to LD
16542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16543 libsuff= shlibsuff= libmagic=32-bit;;
16544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16545 libsuff=32 shlibsuff=N32 libmagic=N32;;
16546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16548 *) libsuff= shlibsuff= libmagic=never-match;;
16552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16553 shlibpath_overrides_runpath=no
16554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16556 hardcode_into_libs=yes
16559 # No shared lib support for Linux oldld, aout, or coff.
16560 linux*oldld* | linux*aout* | linux*coff*)
16564 # This must be Linux ELF.
16565 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=no
16575 # Some binutils ld are patched to set DT_RUNPATH
16576 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16577 $as_echo_n "(cached) " >&6
16579 lt_cv_shlibpath_overrides_runpath=no
16580 save_LDFLAGS=$LDFLAGS
16581 save_libdir=$libdir
16582 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16583 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16595 if ac_fn_cxx_try_link "$LINENO"; then :
16596 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16597 lt_cv_shlibpath_overrides_runpath=yes
16600 rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602 LDFLAGS=$save_LDFLAGS
16603 libdir=$save_libdir
16607 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16609 # This implies no fast_install, which is unacceptable.
16610 # Some rework will be needed to allow for fast_install
16611 # before this can be enabled.
16612 hardcode_into_libs=yes
16614 # Add ABI-specific directories to the system library path.
16615 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16617 # Append ld.so.conf contents to the search path
16618 if test -f /etc/ld.so.conf; then
16619 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' ' '`
16620 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16624 # We used to test for /lib/ld.so.1 and disable shared libraries on
16625 # powerpc, because MkLinux only supported shared libraries with the
16626 # GNU dynamic linker. Since this was broken with cross compilers,
16627 # most powerpc-linux boxes support dynamic linking these days and
16628 # people can always --disable-shared, the test was removed, and we
16629 # assume the GNU/Linux dynamic linker is in use.
16630 dynamic_linker='GNU/Linux ld.so'
16637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16640 dynamic_linker='NetBSD (a.out) ld.so'
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 dynamic_linker='NetBSD ld.elf_so'
16646 shlibpath_var=LD_LIBRARY_PATH
16647 shlibpath_overrides_runpath=yes
16648 hardcode_into_libs=yes
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=yes
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16667 dynamic_linker='ldqnx.so'
16672 sys_lib_dlsearch_path_spec="/usr/lib"
16674 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16676 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16677 *) need_version=no ;;
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16681 shlibpath_var=LD_LIBRARY_PATH
16682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16684 openbsd2.[89] | openbsd2.[89].*)
16685 shlibpath_overrides_runpath=no
16688 shlibpath_overrides_runpath=yes
16692 shlibpath_overrides_runpath=yes
16697 libname_spec='$name'
16700 library_names_spec='$libname${shared_ext} $libname.a'
16701 dynamic_linker='OS/2 ld.exe'
16702 shlibpath_var=LIBPATH
16705 osf3* | osf4* | osf5*)
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16713 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=yes
16728 hardcode_into_libs=yes
16729 # ldd complains unless libraries are executable
16730 postinstall_cmds='chmod +x $lib'
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16736 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 shlibpath_overrides_runpath=yes
16739 if test "$with_gnu_ld" = yes; then
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 soname_spec='${libname}${release}${shared_ext}$major'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 case $host_vendor in
16752 shlibpath_overrides_runpath=no
16754 runpath_var=LD_RUN_PATH
16762 shlibpath_overrides_runpath=no
16763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16769 if test -d /usr/nec ;then
16771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16772 soname_spec='$libname${shared_ext}.$major'
16773 shlibpath_var=LD_LIBRARY_PATH
16777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16778 version_type=freebsd-elf
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 shlibpath_var=LD_LIBRARY_PATH
16784 shlibpath_overrides_runpath=yes
16785 hardcode_into_libs=yes
16786 if test "$with_gnu_ld" = yes; then
16787 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16789 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16796 sys_lib_dlsearch_path_spec='/usr/lib'
16800 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 hardcode_into_libs=yes
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16822 $as_echo "$dynamic_linker" >&6; }
16823 test "$dynamic_linker" = no && can_build_shared=no
16825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16826 if test "$GCC" = yes; then
16827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16830 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16831 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16833 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16834 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16875 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16876 hardcode_action_CXX=
16877 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16878 test -n "$runpath_var_CXX" ||
16879 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16881 # We can hardcode non-existent directories.
16882 if test "$hardcode_direct_CXX" != no &&
16883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16884 # have to relink, otherwise we might link with an installed library
16885 # when we should be linking with a yet-to-be-installed one
16886 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16887 test "$hardcode_minus_L_CXX" != no; then
16888 # Linking always hardcodes the temporary library directory.
16889 hardcode_action_CXX=relink
16891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16892 hardcode_action_CXX=immediate
16895 # We cannot hardcode anything, or else we can only hardcode existing
16897 hardcode_action_CXX=unsupported
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16900 $as_echo "$hardcode_action_CXX" >&6; }
16902 if test "$hardcode_action_CXX" = relink ||
16903 test "$inherit_rpath_CXX" = yes; then
16904 # Fast installation is not supported
16905 enable_fast_install=no
16906 elif test "$shlibpath_overrides_runpath" = yes ||
16907 test "$enable_shared" = no; then
16908 # Fast installation is not necessary
16909 enable_fast_install=needless
16918 fi # test -n "$compiler"
16921 CFLAGS=$lt_save_CFLAGS
16925 with_gnu_ld=$lt_save_with_gnu_ld
16926 lt_cv_path_LDCXX=$lt_cv_path_LD
16927 lt_cv_path_LD=$lt_save_path_LD
16928 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16929 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16930 fi # test "$_lt_caught_CXX_error" != yes
16933 ac_cpp='$CPP $CPPFLAGS'
16934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16950 ac_config_commands="$ac_config_commands libtool"
16955 # Only expand once:
16958 if test "x$CC" != xcc; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16960 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16963 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16965 set dummy $CC; ac_cc=`$as_echo "$2" |
16966 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16967 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16968 $as_echo_n "(cached) " >&6
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16981 # Make sure it works both with $CC and with simple cc.
16982 # We do the test twice because some compilers refuse to overwrite an
16983 # existing .o file with -o, though they will create one.
16984 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16986 if { { case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16991 $as_echo "$ac_try_echo"; } >&5
16992 (eval "$ac_try") 2>&5
16994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16995 test $ac_status = 0; } &&
16996 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17001 $as_echo "$ac_try_echo"; } >&5
17002 (eval "$ac_try") 2>&5
17004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17005 test $ac_status = 0; };
17007 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17008 if test "x$CC" != xcc; then
17009 # Test first that cc exists at all.
17010 if { ac_try='cc -c conftest.$ac_ext >&5'
17011 { { case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17016 $as_echo "$ac_try_echo"; } >&5
17017 (eval "$ac_try") 2>&5
17019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17020 test $ac_status = 0; }; }; then
17021 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17023 if { { case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17028 $as_echo "$ac_try_echo"; } >&5
17029 (eval "$ac_try") 2>&5
17031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17032 test $ac_status = 0; } &&
17033 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17038 $as_echo "$ac_try_echo"; } >&5
17039 (eval "$ac_try") 2>&5
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; };
17047 # cc exists but doesn't like -o.
17048 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17053 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17055 rm -f core conftest*
17058 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17060 $as_echo "yes" >&6; }
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17065 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17069 # FIXME: we rely on the cache variable name because
17070 # there is no other way.
17072 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17073 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17074 if test "$am_t" != yes; then
17075 # Losing compiler, so override with the script.
17076 # FIXME: It is wrong to rewrite CC.
17077 # But if we don't then we get into trouble of one sort or another.
17078 # A longer-term fix would be to have automake use am__CC in this case,
17079 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17080 CC="$am_aux_dir/compile $CC"
17085 if test "x$cross_compiling" = "xno"; then
17086 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17088 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17093 if test -n "$ac_tool_prefix"; then
17094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17095 set dummy ${ac_tool_prefix}ar; ac_word=$2
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17097 $as_echo_n "checking for $ac_word... " >&6; }
17098 if ${ac_cv_prog_AR+:} false; then :
17099 $as_echo_n "(cached) " >&6
17101 if test -n "$AR"; then
17102 ac_cv_prog_AR="$AR" # Let the user override the test.
17104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17105 for as_dir in $PATH
17108 test -z "$as_dir" && as_dir=.
17109 for ac_exec_ext in '' $ac_executable_extensions; do
17110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17111 ac_cv_prog_AR="${ac_tool_prefix}ar"
17112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17122 if test -n "$AR"; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17124 $as_echo "$AR" >&6; }
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17127 $as_echo "no" >&6; }
17132 if test -z "$ac_cv_prog_AR"; then
17134 # Extract the first word of "ar", so it can be a program name with args.
17135 set dummy ar; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17139 $as_echo_n "(cached) " >&6
17141 if test -n "$ac_ct_AR"; then
17142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17148 test -z "$as_dir" && as_dir=.
17149 for ac_exec_ext in '' $ac_executable_extensions; do
17150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17151 ac_cv_prog_ac_ct_AR="ar"
17152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17162 if test -n "$ac_ct_AR"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17164 $as_echo "$ac_ct_AR" >&6; }
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17170 if test "x$ac_ct_AR" = x; then
17173 case $cross_compiling:$ac_tool_warned in
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17177 ac_tool_warned=yes ;;
17182 AR="$ac_cv_prog_AR"
17185 if test -n "$ac_tool_prefix"; then
17186 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17187 set dummy ${ac_tool_prefix}ld; ac_word=$2
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17189 $as_echo_n "checking for $ac_word... " >&6; }
17190 if ${ac_cv_prog_LD+:} false; then :
17191 $as_echo_n "(cached) " >&6
17193 if test -n "$LD"; then
17194 ac_cv_prog_LD="$LD" # Let the user override the test.
17196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197 for as_dir in $PATH
17200 test -z "$as_dir" && as_dir=.
17201 for ac_exec_ext in '' $ac_executable_extensions; do
17202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17203 ac_cv_prog_LD="${ac_tool_prefix}ld"
17204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17214 if test -n "$LD"; then
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17216 $as_echo "$LD" >&6; }
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219 $as_echo "no" >&6; }
17224 if test -z "$ac_cv_prog_LD"; then
17226 # Extract the first word of "ld", so it can be a program name with args.
17227 set dummy ld; ac_word=$2
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17229 $as_echo_n "checking for $ac_word... " >&6; }
17230 if ${ac_cv_prog_ac_ct_LD+:} false; then :
17231 $as_echo_n "(cached) " >&6
17233 if test -n "$ac_ct_LD"; then
17234 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17237 for as_dir in $PATH
17240 test -z "$as_dir" && as_dir=.
17241 for ac_exec_ext in '' $ac_executable_extensions; do
17242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17243 ac_cv_prog_ac_ct_LD="ld"
17244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17253 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17254 if test -n "$ac_ct_LD"; then
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
17256 $as_echo "$ac_ct_LD" >&6; }
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17262 if test "x$ac_ct_LD" = x; then
17265 case $cross_compiling:$ac_tool_warned in
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17269 ac_tool_warned=yes ;;
17274 LD="$ac_cv_prog_LD"
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17279 $as_echo_n "checking for ANSI C header files... " >&6; }
17280 if ${ac_cv_header_stdc+:} false; then :
17281 $as_echo_n "(cached) " >&6
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285 #include <stdlib.h>
17286 #include <stdarg.h>
17287 #include <string.h>
17298 if ac_fn_c_try_compile "$LINENO"; then :
17299 ac_cv_header_stdc=yes
17301 ac_cv_header_stdc=no
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305 if test $ac_cv_header_stdc = yes; then
17306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309 #include <string.h>
17312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17313 $EGREP "memchr" >/dev/null 2>&1; then :
17316 ac_cv_header_stdc=no
17322 if test $ac_cv_header_stdc = yes; then
17323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h. */
17326 #include <stdlib.h>
17329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17330 $EGREP "free" >/dev/null 2>&1; then :
17333 ac_cv_header_stdc=no
17339 if test $ac_cv_header_stdc = yes; then
17340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17341 if test "$cross_compiling" = yes; then :
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17347 #include <stdlib.h>
17348 #if ((' ' & 0x0FF) == 0x020)
17349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17352 # define ISLOWER(c) \
17353 (('a' <= (c) && (c) <= 'i') \
17354 || ('j' <= (c) && (c) <= 'r') \
17355 || ('s' <= (c) && (c) <= 'z'))
17356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17364 for (i = 0; i < 256; i++)
17365 if (XOR (islower (i), ISLOWER (i))
17366 || toupper (i) != TOUPPER (i))
17371 if ac_fn_c_try_run "$LINENO"; then :
17374 ac_cv_header_stdc=no
17376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17377 conftest.$ac_objext conftest.beam conftest.$ac_ext
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17383 $as_echo "$ac_cv_header_stdc" >&6; }
17384 if test $ac_cv_header_stdc = yes; then
17386 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
17392 $as_echo_n "checking for GNU libc2... " >&6; }
17393 if ${knfsd_cv_glibc2+:} false; then :
17394 $as_echo_n "(cached) " >&6
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17399 #include <features.h>
17400 #if !defined(__GLIBC__)
17405 if ac_fn_c_try_cpp "$LINENO"; then :
17406 knfsd_cv_glibc2=yes
17410 rm -f conftest.err conftest.i conftest.$ac_ext
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
17414 $as_echo "$knfsd_cv_glibc2" >&6; }
17415 if test $knfsd_cv_glibc2 = yes; then
17416 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17417 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
17422 $as_echo_n "checking for BSD signal semantics... " >&6; }
17423 if ${knfsd_cv_bsd_signals+:} false; then :
17424 $as_echo_n "(cached) " >&6
17426 if test "$cross_compiling" = yes; then :
17429 *linux*) knfsd_cv_bsd_signals=no;;
17430 *bsd*) knfsd_cv_bsd_signals=yes;;
17431 *) as_fn_error $? "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17438 #include <signal.h>
17439 #include <unistd.h>
17440 #include <sys/wait.h>
17442 static int counter = 0;
17443 static RETSIGTYPE handler(int num) { counter++; }
17448 if ((s = fork()) < 0) return 1;
17450 if (wait(&s) < 0) return 1;
17451 return WIFSIGNALED(s)? 1 : 0;
17454 signal(SIGHUP, handler);
17455 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
17456 return (counter == 2)? 0 : 1;
17460 if ac_fn_c_try_run "$LINENO"; then :
17461 knfsd_cv_bsd_signals=yes
17463 knfsd_cv_bsd_signals=no
17465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17466 conftest.$ac_objext conftest.beam conftest.$ac_ext
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
17471 $as_echo "$knfsd_cv_bsd_signals" >&6; }
17472 test $knfsd_cv_bsd_signals = yes &&
17473 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17478 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17479 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17483 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17484 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17485 $as_echo_n "(cached) " >&6
17487 ac_check_lib_save_LIBS=$LIBS
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h. */
17492 /* Override any GCC internal prototype to avoid an error.
17493 Use char because int might match the return type of a GCC
17494 builtin and then its argument prototype would still apply. */
17498 char gethostbyname ();
17502 return gethostbyname ();
17507 if ac_fn_c_try_link "$LINENO"; then :
17508 ac_cv_lib_nsl_gethostbyname=yes
17510 ac_cv_lib_nsl_gethostbyname=no
17512 rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17514 LIBS=$ac_check_lib_save_LIBS
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17517 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17518 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17526 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17527 if test "x$ac_cv_func_connect" = xyes; then :
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17531 $as_echo_n "checking for connect in -lsocket... " >&6; }
17532 if ${ac_cv_lib_socket_connect+:} false; then :
17533 $as_echo_n "(cached) " >&6
17535 ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-lsocket $LIBNSL $LIBS"
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17555 if ac_fn_c_try_link "$LINENO"; then :
17556 ac_cv_lib_socket_connect=yes
17558 ac_cv_lib_socket_connect=no
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562 LIBS=$ac_check_lib_save_LIBS
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17565 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17566 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17567 LIBSOCKET="-lsocket"
17569 as_fn_error $? "Function 'socket' not found." "$LINENO" 5
17575 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17576 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17579 as_fn_error $? "Function 'getaddrinfo' not found." "$LINENO" 5
17583 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
17584 if test "x$ac_cv_func_getrpcbynumber" = xyes; then :
17587 as_fn_error $? "Function 'getrpcbynumber' not found." "$LINENO" 5
17591 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17592 if test "x$ac_cv_func_getservbyname" = xyes; then :
17595 as_fn_error $? "Function 'getservbyname' not found." "$LINENO" 5
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17600 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17601 if ${ac_cv_lib_crypt_crypt+:} false; then :
17602 $as_echo_n "(cached) " >&6
17604 ac_check_lib_save_LIBS=$LIBS
17605 LIBS="-lcrypt $LIBS"
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17609 /* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17624 if ac_fn_c_try_link "$LINENO"; then :
17625 ac_cv_lib_crypt_crypt=yes
17627 ac_cv_lib_crypt_crypt=no
17629 rm -f core conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 LIBS=$ac_check_lib_save_LIBS
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17634 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17635 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17640 if test "$enable_nfsv4" = yes; then
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
17644 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
17645 if ${ac_cv_lib_event_event_dispatch+:} false; then :
17646 $as_echo_n "(cached) " >&6
17648 ac_check_lib_save_LIBS=$LIBS
17649 LIBS="-levent $LIBS"
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17653 /* Override any GCC internal prototype to avoid an error.
17654 Use char because int might match the return type of a GCC
17655 builtin and then its argument prototype would still apply. */
17659 char event_dispatch ();
17663 return event_dispatch ();
17668 if ac_fn_c_try_link "$LINENO"; then :
17669 ac_cv_lib_event_event_dispatch=yes
17671 ac_cv_lib_event_event_dispatch=no
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17678 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17679 if test "x$ac_cv_lib_event_event_dispatch" = xyes; then :
17682 as_fn_error $? "libevent not found." "$LINENO" 5
17686 for ac_header in event.h
17688 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17689 if test "x$ac_cv_header_event_h" = xyes; then :
17690 cat >>confdefs.h <<_ACEOF
17691 #define HAVE_EVENT_H 1
17695 as_fn_error $? "libevent headers not found." "$LINENO" 5
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17706 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17707 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
17708 $as_echo_n "(cached) " >&6
17710 ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-lnfsidmap $LIBS"
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17721 char nfs4_init_name_mapping ();
17725 return nfs4_init_name_mapping ();
17730 if ac_fn_c_try_link "$LINENO"; then :
17731 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17733 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17735 rm -f core conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17740 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17741 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
17744 as_fn_error $? "libnfsidmap not found." "$LINENO" 5
17748 for ac_header in nfsidmap.h
17750 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17751 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_NFSIDMAP_H 1
17757 as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17764 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17765 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
17766 $as_echo_n "(cached) " >&6
17768 ac_check_lib_save_LIBS=$LIBS
17769 LIBS="-lnfsidmap $LIBS"
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17773 /* Override any GCC internal prototype to avoid an error.
17774 Use char because int might match the return type of a GCC
17775 builtin and then its argument prototype would still apply. */
17779 char nfs4_set_debug ();
17783 return nfs4_set_debug ();
17788 if ac_fn_c_try_link "$LINENO"; then :
17789 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17791 ac_cv_lib_nfsidmap_nfs4_set_debug=no
17793 rm -f core conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795 LIBS=$ac_check_lib_save_LIBS
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17798 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17799 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
17801 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
17807 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
17808 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
17809 $as_echo_n "(cached) " >&6
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lnfsidmap $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17822 char nfs4_owner_to_uid ();
17826 return nfs4_owner_to_uid ();
17831 if ac_fn_c_try_link "$LINENO"; then :
17832 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
17834 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
17841 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
17842 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
17843 enable_nfsidmap=yes
17851 if test "$enable_nfsidmap" = "yes"; then
17852 CONFIG_NFSIDMAP_TRUE=
17853 CONFIG_NFSIDMAP_FALSE='#'
17855 CONFIG_NFSIDMAP_TRUE='#'
17856 CONFIG_NFSIDMAP_FALSE=
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_instantiate in -lkeyutils" >&5
17863 $as_echo_n "checking for keyctl_instantiate in -lkeyutils... " >&6; }
17864 if ${ac_cv_lib_keyutils_keyctl_instantiate+:} false; then :
17865 $as_echo_n "(cached) " >&6
17867 ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-lkeyutils $LIBS"
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17878 char keyctl_instantiate ();
17882 return keyctl_instantiate ();
17887 if ac_fn_c_try_link "$LINENO"; then :
17888 ac_cv_lib_keyutils_keyctl_instantiate=yes
17890 ac_cv_lib_keyutils_keyctl_instantiate=no
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_instantiate" >&5
17897 $as_echo "$ac_cv_lib_keyutils_keyctl_instantiate" >&6; }
17898 if test "x$ac_cv_lib_keyutils_keyctl_instantiate" = xyes; then :
17899 LIBKEYUTILS=-lkeyutils
17904 for ac_header in keyutils.h
17906 ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
17907 if test "x$ac_cv_header_keyutils_h" = xyes; then :
17908 cat >>confdefs.h <<_ACEOF
17909 #define HAVE_KEYUTILS_H 1
17913 as_fn_error $? "keyutils.h header not found." "$LINENO" 5
17920 if test "$enable_gss" = yes; then
17927 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17928 if test -n "$ac_tool_prefix"; then
17929 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17932 $as_echo_n "checking for $ac_word... " >&6; }
17933 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17934 $as_echo_n "(cached) " >&6
17936 case $PKG_CONFIG in
17938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17942 for as_dir in $PATH
17945 test -z "$as_dir" && as_dir=.
17946 for ac_exec_ext in '' $ac_executable_extensions; do
17947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17960 if test -n "$PKG_CONFIG"; then
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17962 $as_echo "$PKG_CONFIG" >&6; }
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17970 if test -z "$ac_cv_path_PKG_CONFIG"; then
17971 ac_pt_PKG_CONFIG=$PKG_CONFIG
17972 # Extract the first word of "pkg-config", so it can be a program name with args.
17973 set dummy pkg-config; ac_word=$2
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17975 $as_echo_n "checking for $ac_word... " >&6; }
17976 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17977 $as_echo_n "(cached) " >&6
17979 case $ac_pt_PKG_CONFIG in
17981 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17985 for as_dir in $PATH
17988 test -z "$as_dir" && as_dir=.
17989 for ac_exec_ext in '' $ac_executable_extensions; do
17990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17991 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18002 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18003 if test -n "$ac_pt_PKG_CONFIG"; then
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18005 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18011 if test "x$ac_pt_PKG_CONFIG" = x; then
18014 case $cross_compiling:$ac_tool_warned in
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18018 ac_tool_warned=yes ;;
18020 PKG_CONFIG=$ac_pt_PKG_CONFIG
18023 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18027 if test -n "$PKG_CONFIG"; then
18028 _pkg_min_version=0.9.0
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18030 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18031 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18033 $as_echo "yes" >&6; }
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18036 $as_echo "no" >&6; }
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
18045 $as_echo_n "checking for GSSGLUE... " >&6; }
18047 if test -n "$GSSGLUE_CFLAGS"; then
18048 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
18049 elif test -n "$PKG_CONFIG"; then
18050 if test -n "$PKG_CONFIG" && \
18051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
18052 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
18054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18055 test $ac_status = 0; }; then
18056 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
18063 if test -n "$GSSGLUE_LIBS"; then
18064 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
18065 elif test -n "$PKG_CONFIG"; then
18066 if test -n "$PKG_CONFIG" && \
18067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
18068 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
18070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18071 test $ac_status = 0; }; then
18072 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
18082 if test $pkg_failed = yes; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18087 _pkg_short_errors_supported=yes
18089 _pkg_short_errors_supported=no
18091 if test $_pkg_short_errors_supported = yes; then
18092 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
18094 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
18096 # Put the nasty error message in config.log where it belongs
18097 echo "$GSSGLUE_PKG_ERRORS" >&5
18099 as_fn_error $? "Package requirements (libgssglue >= 0.1) were not met:
18101 $GSSGLUE_PKG_ERRORS
18103 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18104 installed software in a non-standard prefix.
18106 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18107 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18108 See the pkg-config man page for more details." "$LINENO" 5
18110 elif test $pkg_failed = untried; then
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112 $as_echo "no" >&6; }
18113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18115 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18116 is in your PATH or set the PKG_CONFIG environment variable to the full
18117 path to pkg-config.
18119 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18120 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18121 See the pkg-config man page for more details.
18123 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18124 See \`config.log' for more details" "$LINENO" 5; }
18127 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
18128 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130 $as_echo "yes" >&6; }
18134 if test "$enable_tirpc" = no; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
18138 $as_echo_n "checking for RPCSECGSS... " >&6; }
18140 if test -n "$RPCSECGSS_CFLAGS"; then
18141 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
18142 elif test -n "$PKG_CONFIG"; then
18143 if test -n "$PKG_CONFIG" && \
18144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18145 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18148 test $ac_status = 0; }; then
18149 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
18156 if test -n "$RPCSECGSS_LIBS"; then
18157 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
18158 elif test -n "$PKG_CONFIG"; then
18159 if test -n "$PKG_CONFIG" && \
18160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18161 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18164 test $ac_status = 0; }; then
18165 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
18175 if test $pkg_failed = yes; then
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18180 _pkg_short_errors_supported=yes
18182 _pkg_short_errors_supported=no
18184 if test $_pkg_short_errors_supported = yes; then
18185 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
18187 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
18189 # Put the nasty error message in config.log where it belongs
18190 echo "$RPCSECGSS_PKG_ERRORS" >&5
18192 as_fn_error $? "Package requirements (librpcsecgss >= 0.16) were not met:
18194 $RPCSECGSS_PKG_ERRORS
18196 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18197 installed software in a non-standard prefix.
18199 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18200 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18201 See the pkg-config man page for more details." "$LINENO" 5
18203 elif test $pkg_failed = untried; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205 $as_echo "no" >&6; }
18206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18208 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18209 is in your PATH or set the PKG_CONFIG environment variable to the full
18210 path to pkg-config.
18212 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18213 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18214 See the pkg-config man page for more details.
18216 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18217 See \`config.log' for more details" "$LINENO" 5; }
18220 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
18221 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18223 $as_echo "yes" >&6; }
18232 if test "$knfsd_cv_glibc2" = no; then
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
18234 $as_echo_n "checking for daemon in -lbsd... " >&6; }
18235 if ${ac_cv_lib_bsd_daemon+:} false; then :
18236 $as_echo_n "(cached) " >&6
18238 ac_check_lib_save_LIBS=$LIBS
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18258 if ac_fn_c_try_link "$LINENO"; then :
18259 ac_cv_lib_bsd_daemon=yes
18261 ac_cv_lib_bsd_daemon=no
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
18268 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
18269 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
18275 if test "$choose_blkid" != no; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
18277 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
18278 if ${ac_cv_lib_blkid_blkid_get_library_version+:} false; then :
18279 $as_echo_n "(cached) " >&6
18281 ac_check_lib_save_LIBS=$LIBS
18282 LIBS="-lblkid $LIBS"
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18286 /* Override any GCC internal prototype to avoid an error.
18287 Use char because int might match the return type of a GCC
18288 builtin and then its argument prototype would still apply. */
18292 char blkid_get_library_version ();
18296 return blkid_get_library_version ();
18301 if ac_fn_c_try_link "$LINENO"; then :
18302 ac_cv_lib_blkid_blkid_get_library_version=yes
18304 ac_cv_lib_blkid_blkid_get_library_version=no
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308 LIBS=$ac_check_lib_save_LIBS
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
18311 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
18312 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = xyes; then :
18315 as_fn_error $? "libblkid needed" "$LINENO" 5
18318 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
18319 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
18322 as_fn_error $? "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
18328 $as_echo_n "checking for suitable libblkid version... " >&6; }
18329 if ${libblkid_cv_is_recent+:} false; then :
18330 $as_echo_n "(cached) " >&6
18335 if test "$cross_compiling" = yes; then :
18336 libblkid_cv_is_recent=unknown
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 #include <blkid/blkid.h>
18344 int vers = blkid_get_library_version(0, 0);
18345 return vers >= 140 ? 0 : 1;
18349 if ac_fn_c_try_run "$LINENO"; then :
18350 libblkid_cv_is_recent=yes
18352 libblkid_cv_is_recent=no
18354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18355 conftest.$ac_objext conftest.beam conftest.$ac_ext
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
18362 $as_echo "$libblkid_cv_is_recent" >&6; }
18364 if test $choose_blkid = yes; then
18366 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
18367 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
18369 if test $libblkid_cv_is_recent = yes
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
18373 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
18377 cat >>confdefs.h <<_ACEOF
18378 #define USE_BLKID $use_blkid
18387 if test "$enable_libmount" != no; then
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_context_do_mount in -lmount" >&5
18389 $as_echo_n "checking for mnt_context_do_mount in -lmount... " >&6; }
18390 if ${ac_cv_lib_mount_mnt_context_do_mount+:} false; then :
18391 $as_echo_n "(cached) " >&6
18393 ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lmount $LIBS"
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18404 char mnt_context_do_mount ();
18408 return mnt_context_do_mount ();
18413 if ac_fn_c_try_link "$LINENO"; then :
18414 ac_cv_lib_mount_mnt_context_do_mount=yes
18416 ac_cv_lib_mount_mnt_context_do_mount=no
18418 rm -f core conftest.err conftest.$ac_objext \
18419 conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
18423 $as_echo "$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
18424 if test "x$ac_cv_lib_mount_mnt_context_do_mount" = xyes; then :
18427 as_fn_error $? "libmount needed" "$LINENO" 5
18430 ac_fn_c_check_header_mongrel "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
18431 if test "x$ac_cv_header_libmount_libmount_h" = xyes; then :
18434 as_fn_error $? "Cannot find libmount header file libmount/libmount.h" "$LINENO" 5
18439 if test "$enable_libmount" = "yes"; then
18440 CONFIG_LIBMOUNT_TRUE=
18441 CONFIG_LIBMOUNT_FALSE='#'
18443 CONFIG_LIBMOUNT_TRUE='#'
18444 CONFIG_LIBMOUNT_FALSE=
18449 if test "$enable_gss" = yes; then
18450 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18451 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18454 as_fn_error $? "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
18461 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
18462 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
18463 $as_echo_n "(cached) " >&6
18465 ac_check_lib_save_LIBS=$LIBS
18466 LIBS="-lnfsidmap $LIBS"
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18470 /* Override any GCC internal prototype to avoid an error.
18471 Use char because int might match the return type of a GCC
18472 builtin and then its argument prototype would still apply. */
18476 char nfs4_init_name_mapping ();
18480 return nfs4_init_name_mapping ();
18485 if ac_fn_c_try_link "$LINENO"; then :
18486 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
18488 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
18490 rm -f core conftest.err conftest.$ac_objext \
18491 conftest$ac_exeext conftest.$ac_ext
18492 LIBS=$ac_check_lib_save_LIBS
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
18495 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
18496 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
18499 as_fn_error $? "libnfsidmap not found." "$LINENO" 5
18503 for ac_header in nfsidmap.h
18505 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
18506 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
18507 cat >>confdefs.h <<_ACEOF
18508 #define HAVE_NFSIDMAP_H 1
18512 as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
18519 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
18520 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
18521 $as_echo_n "(cached) " >&6
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lnfsidmap $LIBS"
18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526 /* end confdefs.h. */
18528 /* Override any GCC internal prototype to avoid an error.
18529 Use char because int might match the return type of a GCC
18530 builtin and then its argument prototype would still apply. */
18534 char nfs4_set_debug ();
18538 return nfs4_set_debug ();
18543 if ac_fn_c_try_link "$LINENO"; then :
18544 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
18546 ac_cv_lib_nfsidmap_nfs4_set_debug=no
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18550 LIBS=$ac_check_lib_save_LIBS
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
18553 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
18554 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
18556 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
18562 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
18563 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
18564 $as_echo_n "(cached) " >&6
18566 ac_check_lib_save_LIBS=$LIBS
18567 LIBS="-lnfsidmap $LIBS"
18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h. */
18571 /* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18577 char nfs4_owner_to_uid ();
18581 return nfs4_owner_to_uid ();
18586 if ac_fn_c_try_link "$LINENO"; then :
18587 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18589 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18591 rm -f core conftest.err conftest.$ac_objext \
18592 conftest$ac_exeext conftest.$ac_ext
18593 LIBS=$ac_check_lib_save_LIBS
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18596 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18597 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18598 enable_nfsidmap=yes
18606 for ac_header in spkm3.h
18608 ac_fn_c_check_header_mongrel "$LINENO" "spkm3.h" "ac_cv_header_spkm3_h" "$ac_includes_default"
18609 if test "x$ac_cv_header_spkm3_h" = xyes; then :
18610 cat >>confdefs.h <<_ACEOF
18611 #define HAVE_SPKM3_H 1
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
18616 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
18624 $as_echo_n "checking for Kerberos v5... " >&6; }
18626 # Check whether --with-krb5 was given.
18627 if test "${with_krb5+set}" = set; then :
18628 withval=$with_krb5; case "$withval" in
18633 krb5_with="$withval"
18640 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
18641 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
18643 if test -f $dir/bin/krb5-config; then
18644 K5CONFIG=$dir/bin/krb5-config
18645 elif test -f "/usr/kerberos/bin/krb5-config"; then
18646 K5CONFIG="/usr/kerberos/bin/krb5-config"
18647 elif test -f "/usr/lib/mit/bin/krb5-config"; then
18648 K5CONFIG="/usr/lib/mit/bin/krb5-config"
18650 if test "$K5CONFIG" != ""; then
18651 KRBCFLAGS=`$K5CONFIG --cflags`
18652 KRBLIBS=`$K5CONFIG --libs gssapi`
18653 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
18655 cat >>confdefs.h <<_ACEOF
18656 #define KRB5_VERSION $K5VERS
18659 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
18660 \( -f $dir/lib/libgssapi_krb5.a -o \
18661 -f $dir/lib64/libgssapi_krb5.a -o \
18662 -f $dir/lib64/libgssapi_krb5.so -o \
18663 -f $dir/lib/libgssapi_krb5.so \) ; then
18665 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18668 if test $K5VERS -le 131; then
18670 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18673 gssapi_lib=gssapi_krb5
18675 elif test \( -f $dir/include/heim_err.h -o\
18676 -f $dir/include/heimdal/heim_err.h \) -a \
18677 -f $dir/lib/libroken.a; then
18679 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18687 if test "x$KRBDIR" = "x"; then
18688 if test "x$krb5_with" = "x"; then
18689 as_fn_error $? "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
18691 as_fn_error $? "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
18695 $as_echo "$KRBDIR" >&6; }
18697 echo "The current KRBDIR is $KRBDIR"
18698 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
18699 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
18701 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
18704 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
18707 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
18709 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
18710 if eval \${$as_ac_Lib+:} false; then :
18711 $as_echo_n "(cached) " >&6
18713 ac_check_lib_save_LIBS=$LIBS
18714 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18718 /* Override any GCC internal prototype to avoid an error.
18719 Use char because int might match the return type of a GCC
18720 builtin and then its argument prototype would still apply. */
18724 char gss_krb5_export_lucid_sec_context ();
18728 return gss_krb5_export_lucid_sec_context ();
18733 if ac_fn_c_try_link "$LINENO"; then :
18734 eval "$as_ac_Lib=yes"
18736 eval "$as_ac_Lib=no"
18738 rm -f core conftest.err conftest.$ac_objext \
18739 conftest$ac_exeext conftest.$ac_ext
18740 LIBS=$ac_check_lib_save_LIBS
18742 eval ac_res=\$$as_ac_Lib
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18747 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
18751 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
18753 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
18754 if eval \${$as_ac_Lib+:} false; then :
18755 $as_echo_n "(cached) " >&6
18757 ac_check_lib_save_LIBS=$LIBS
18758 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18768 char gss_krb5_set_allowable_enctypes ();
18772 return gss_krb5_set_allowable_enctypes ();
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 eval "$as_ac_Lib=yes"
18780 eval "$as_ac_Lib=no"
18782 rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18784 LIBS=$ac_check_lib_save_LIBS
18786 eval ac_res=\$$as_ac_Lib
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18788 $as_echo "$ac_res" >&6; }
18789 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18791 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
18795 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
18797 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
18798 if eval \${$as_ac_Lib+:} false; then :
18799 $as_echo_n "(cached) " >&6
18801 ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 /* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18812 char gss_krb5_ccache_name ();
18816 return gss_krb5_ccache_name ();
18821 if ac_fn_c_try_link "$LINENO"; then :
18822 eval "$as_ac_Lib=yes"
18824 eval "$as_ac_Lib=no"
18826 rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_check_lib_save_LIBS
18830 eval ac_res=\$$as_ac_Lib
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18832 $as_echo "$ac_res" >&6; }
18833 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18835 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18840 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
18842 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
18843 if eval \${$as_ac_Lib+:} false; then :
18844 $as_echo_n "(cached) " >&6
18846 ac_check_lib_save_LIBS=$LIBS
18847 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h. */
18851 /* Override any GCC internal prototype to avoid an error.
18852 Use char because int might match the return type of a GCC
18853 builtin and then its argument prototype would still apply. */
18857 char krb5_get_error_message ();
18861 return krb5_get_error_message ();
18866 if ac_fn_c_try_link "$LINENO"; then :
18867 eval "$as_ac_Lib=yes"
18869 eval "$as_ac_Lib=no"
18871 rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18873 LIBS=$ac_check_lib_save_LIBS
18875 eval ac_res=\$$as_ac_Lib
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18877 $as_echo "$ac_res" >&6; }
18878 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18880 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18885 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
18887 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
18888 if eval \${$as_ac_Lib+:} false; then :
18889 $as_echo_n "(cached) " >&6
18891 ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18896 /* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18902 char krb5_get_init_creds_opt_set_addressless ();
18906 return krb5_get_init_creds_opt_set_addressless ();
18911 if ac_fn_c_try_link "$LINENO"; then :
18912 eval "$as_ac_Lib=yes"
18914 eval "$as_ac_Lib=no"
18916 rm -f core conftest.err conftest.$ac_objext \
18917 conftest$ac_exeext conftest.$ac_ext
18918 LIBS=$ac_check_lib_save_LIBS
18920 eval ac_res=\$$as_ac_Lib
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18922 $as_echo "$ac_res" >&6; }
18923 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18925 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
18930 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
18932 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
18945 if test "$enable_tirpc" = no; then
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
18948 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
18949 if ${ac_cv_lib_rpcsecgss_authgss_create_default+:} false; then :
18950 $as_echo_n "(cached) " >&6
18952 ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-lrpcsecgss $LIBS"
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18963 char authgss_create_default ();
18967 return authgss_create_default ();
18972 if ac_fn_c_try_link "$LINENO"; then :
18973 ac_cv_lib_rpcsecgss_authgss_create_default=yes
18975 ac_cv_lib_rpcsecgss_authgss_create_default=no
18977 rm -f core conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
18982 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
18983 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = xyes; then :
18986 as_fn_error $? "librpcsecgss not found." "$LINENO" 5
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
18991 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
18992 if ${ac_cv_lib_rpcsecgss_authgss_set_debug_level+:} false; then :
18993 $as_echo_n "(cached) " >&6
18995 ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lrpcsecgss $LIBS"
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19006 char authgss_set_debug_level ();
19010 return authgss_set_debug_level ();
19015 if ac_fn_c_try_link "$LINENO"; then :
19016 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
19018 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
19020 rm -f core conftest.err conftest.$ac_objext \
19021 conftest$ac_exeext conftest.$ac_ext
19022 LIBS=$ac_check_lib_save_LIBS
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
19025 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
19026 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = xyes; then :
19028 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
19041 ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
19043 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
19045 $as_echo "#define HAVE_DECL_AI_ADDRCONFIG 1" >>confdefs.h
19050 if test "$enable_ipv6" = yes; then
19052 if test "$enable_tirpc" = no; then
19053 as_fn_error $? "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
19056 for ac_func in getifaddrs getnameinfo bindresvport_sa
19058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19059 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19060 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19061 cat >>confdefs.h <<_ACEOF
19062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19066 as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19071 ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
19073 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
19076 as_fn_error $? "full getaddrinfo(3) implementation needed for IPv6 support" "$LINENO" 5
19084 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
19085 malloc.h memory.h netdb.h netinet/in.h paths.h \
19086 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
19087 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
19088 syslog.h unistd.h com_err.h et/com_err.h \
19091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19094 cat >>confdefs.h <<_ACEOF
19095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19104 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19105 if ${ac_cv_c_const+:} false; then :
19106 $as_echo_n "(cached) " >&6
19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19114 /* FIXME: Include the comments suggested by Paul. */
19115 #ifndef __cplusplus
19116 /* Ultrix mips cc rejects this. */
19117 typedef int charset[2];
19119 /* SunOS 4.1.1 cc rejects this. */
19120 char const *const *pcpcc;
19122 /* NEC SVR4.0.2 mips cc rejects this. */
19123 struct point {int x, y;};
19124 static struct point const zero = {0,0};
19125 /* AIX XL C 1.02.0.0 rejects this.
19126 It does not let you subtract one const X* pointer from another in
19127 an arm of an if-expression whose if-part is not a constant
19129 const char *g = "string";
19130 pcpcc = &g + (g ? g-g : 0);
19131 /* HPUX 7.0 cc rejects these. */
19133 ppc = (char**) pcpcc;
19134 pcpcc = (char const *const *) ppc;
19135 { /* SCO 3.2v4 cc rejects this. */
19137 char const *s = 0 ? (char *) 0 : (char const *) 0;
19142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19143 int x[] = {25, 17};
19144 const int *foo = &x[0];
19147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19148 typedef const int *iptr;
19152 { /* AIX XL C 1.02.0.0 rejects this saying
19153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19154 struct s { int j; const int *ap[3]; };
19155 struct s *b; b->j = 5;
19157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19158 const int foo = 10;
19159 if (!foo) return 0;
19161 return !cs[0] && !zero.x;
19168 if ac_fn_c_try_compile "$LINENO"; then :
19173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19176 $as_echo "$ac_cv_c_const" >&6; }
19177 if test $ac_cv_c_const = no; then
19179 $as_echo "#define const /**/" >>confdefs.h
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19184 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19185 if ${ac_cv_type_uid_t+:} false; then :
19186 $as_echo_n "(cached) " >&6
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19190 #include <sys/types.h>
19193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19194 $EGREP "uid_t" >/dev/null 2>&1; then :
19195 ac_cv_type_uid_t=yes
19197 ac_cv_type_uid_t=no
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19203 $as_echo "$ac_cv_type_uid_t" >&6; }
19204 if test $ac_cv_type_uid_t = no; then
19206 $as_echo "#define uid_t int" >>confdefs.h
19209 $as_echo "#define gid_t int" >>confdefs.h
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19214 $as_echo_n "checking for inline... " >&6; }
19215 if ${ac_cv_c_inline+:} false; then :
19216 $as_echo_n "(cached) " >&6
19219 for ac_kw in inline __inline__ __inline; do
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19222 #ifndef __cplusplus
19224 static $ac_kw foo_t static_foo () {return 0; }
19225 $ac_kw foo_t foo () {return 0; }
19229 if ac_fn_c_try_compile "$LINENO"; then :
19230 ac_cv_c_inline=$ac_kw
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 test "$ac_cv_c_inline" != no && break
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19238 $as_echo "$ac_cv_c_inline" >&6; }
19240 case $ac_cv_c_inline in
19243 case $ac_cv_c_inline in
19245 *) ac_val=$ac_cv_c_inline;;
19247 cat >>confdefs.h <<_ACEOF
19248 #ifndef __cplusplus
19249 #define inline $ac_val
19255 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19256 if test "x$ac_cv_type_off_t" = xyes; then :
19260 cat >>confdefs.h <<_ACEOF
19261 #define off_t long int
19266 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19267 if test "x$ac_cv_type_pid_t" = xyes; then :
19271 cat >>confdefs.h <<_ACEOF
19277 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19278 if test "x$ac_cv_type_size_t" = xyes; then :
19282 cat >>confdefs.h <<_ACEOF
19283 #define size_t unsigned int
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19289 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19290 if ${ac_cv_header_time+:} false; then :
19291 $as_echo_n "(cached) " >&6
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19295 #include <sys/types.h>
19296 #include <sys/time.h>
19302 if ((struct tm *) 0)
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309 ac_cv_header_time=yes
19311 ac_cv_header_time=no
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19316 $as_echo "$ac_cv_header_time" >&6; }
19317 if test $ac_cv_header_time = yes; then
19319 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19324 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19325 if ${ac_cv_struct_tm+:} false; then :
19326 $as_echo_n "(cached) " >&6
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 #include <sys/types.h>
19337 int *p = &tm.tm_sec;
19343 if ac_fn_c_try_compile "$LINENO"; then :
19344 ac_cv_struct_tm=time.h
19346 ac_cv_struct_tm=sys/time.h
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19351 $as_echo "$ac_cv_struct_tm" >&6; }
19352 if test $ac_cv_struct_tm = sys/time.h; then
19354 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19359 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19360 # for constant arguments. Useless!
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19362 $as_echo_n "checking for working alloca.h... " >&6; }
19363 if ${ac_cv_working_alloca_h+:} false; then :
19364 $as_echo_n "(cached) " >&6
19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19368 #include <alloca.h>
19372 char *p = (char *) alloca (2 * sizeof (int));
19378 if ac_fn_c_try_link "$LINENO"; then :
19379 ac_cv_working_alloca_h=yes
19381 ac_cv_working_alloca_h=no
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19387 $as_echo "$ac_cv_working_alloca_h" >&6; }
19388 if test $ac_cv_working_alloca_h = yes; then
19390 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19395 $as_echo_n "checking for alloca... " >&6; }
19396 if ${ac_cv_func_alloca_works+:} false; then :
19397 $as_echo_n "(cached) " >&6
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19402 # define alloca __builtin_alloca
19405 # include <malloc.h>
19406 # define alloca _alloca
19408 # ifdef HAVE_ALLOCA_H
19409 # include <alloca.h>
19414 # ifndef alloca /* predefined by HP cc +Olibcalls */
19415 void *alloca (size_t);
19425 char *p = (char *) alloca (1);
19431 if ac_fn_c_try_link "$LINENO"; then :
19432 ac_cv_func_alloca_works=yes
19434 ac_cv_func_alloca_works=no
19436 rm -f core conftest.err conftest.$ac_objext \
19437 conftest$ac_exeext conftest.$ac_ext
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19440 $as_echo "$ac_cv_func_alloca_works" >&6; }
19442 if test $ac_cv_func_alloca_works = yes; then
19444 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19447 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19448 # that cause trouble. Some versions do not even contain alloca or
19449 # contain a buggy version. If you still want to use their alloca,
19450 # use ar to extract alloca.o from them instead of compiling alloca.c.
19452 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19454 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19458 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19459 if ${ac_cv_os_cray+:} false; then :
19460 $as_echo_n "(cached) " >&6
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464 #if defined CRAY && ! defined CRAY2
19471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472 $EGREP "webecray" >/dev/null 2>&1; then :
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19481 $as_echo "$ac_cv_os_cray" >&6; }
19482 if test $ac_cv_os_cray = yes; then
19483 for ac_func in _getb67 GETB67 getb67; do
19484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19488 cat >>confdefs.h <<_ACEOF
19489 #define CRAY_STACKSEG_END $ac_func
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19499 $as_echo_n "checking stack direction for C alloca... " >&6; }
19500 if ${ac_cv_c_stack_direction+:} false; then :
19501 $as_echo_n "(cached) " >&6
19503 if test "$cross_compiling" = yes; then :
19504 ac_cv_c_stack_direction=0
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 $ac_includes_default
19510 find_stack_direction ()
19512 static char *addr = 0;
19517 return find_stack_direction ();
19520 return (&dummy > addr) ? 1 : -1;
19526 return find_stack_direction () < 0;
19529 if ac_fn_c_try_run "$LINENO"; then :
19530 ac_cv_c_stack_direction=1
19532 ac_cv_c_stack_direction=-1
19534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19535 conftest.$ac_objext conftest.beam conftest.$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19540 $as_echo "$ac_cv_c_stack_direction" >&6; }
19541 cat >>confdefs.h <<_ACEOF
19542 #define STACK_DIRECTION $ac_cv_c_stack_direction
19548 ac_header_dirent=no
19549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19550 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19552 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19553 if eval \${$as_ac_Header+:} false; then :
19554 $as_echo_n "(cached) " >&6
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558 #include <sys/types.h>
19570 if ac_fn_c_try_compile "$LINENO"; then :
19571 eval "$as_ac_Header=yes"
19573 eval "$as_ac_Header=no"
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 eval ac_res=\$$as_ac_Header
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19579 $as_echo "$ac_res" >&6; }
19580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19581 cat >>confdefs.h <<_ACEOF
19582 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19585 ac_header_dirent=$ac_hdr; break
19589 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19590 if test $ac_header_dirent = dirent.h; then
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19592 $as_echo_n "checking for library containing opendir... " >&6; }
19593 if ${ac_cv_search_opendir+:} false; then :
19594 $as_echo_n "(cached) " >&6
19596 ac_func_search_save_LIBS=$LIBS
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19615 for ac_lib in '' dir; do
19616 if test -z "$ac_lib"; then
19617 ac_res="none required"
19620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19622 if ac_fn_c_try_link "$LINENO"; then :
19623 ac_cv_search_opendir=$ac_res
19625 rm -f core conftest.err conftest.$ac_objext \
19627 if ${ac_cv_search_opendir+:} false; then :
19631 if ${ac_cv_search_opendir+:} false; then :
19634 ac_cv_search_opendir=no
19636 rm conftest.$ac_ext
19637 LIBS=$ac_func_search_save_LIBS
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19640 $as_echo "$ac_cv_search_opendir" >&6; }
19641 ac_res=$ac_cv_search_opendir
19642 if test "$ac_res" != no; then :
19643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19649 $as_echo_n "checking for library containing opendir... " >&6; }
19650 if ${ac_cv_search_opendir+:} false; then :
19651 $as_echo_n "(cached) " >&6
19653 ac_func_search_save_LIBS=$LIBS
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19657 /* Override any GCC internal prototype to avoid an error.
19658 Use char because int might match the return type of a GCC
19659 builtin and then its argument prototype would still apply. */
19672 for ac_lib in '' x; do
19673 if test -z "$ac_lib"; then
19674 ac_res="none required"
19677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19679 if ac_fn_c_try_link "$LINENO"; then :
19680 ac_cv_search_opendir=$ac_res
19682 rm -f core conftest.err conftest.$ac_objext \
19684 if ${ac_cv_search_opendir+:} false; then :
19688 if ${ac_cv_search_opendir+:} false; then :
19691 ac_cv_search_opendir=no
19693 rm conftest.$ac_ext
19694 LIBS=$ac_func_search_save_LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19697 $as_echo "$ac_cv_search_opendir" >&6; }
19698 ac_res=$ac_cv_search_opendir
19699 if test "$ac_res" != no; then :
19700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
19707 $as_echo_n "checking whether closedir returns void... " >&6; }
19708 if ${ac_cv_func_closedir_void+:} false; then :
19709 $as_echo_n "(cached) " >&6
19711 if test "$cross_compiling" = yes; then :
19712 ac_cv_func_closedir_void=yes
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 $ac_includes_default
19717 #include <$ac_header_dirent>
19718 #ifndef __cplusplus
19725 return closedir (opendir (".")) != 0;
19730 if ac_fn_c_try_run "$LINENO"; then :
19731 ac_cv_func_closedir_void=no
19733 ac_cv_func_closedir_void=yes
19735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19736 conftest.$ac_objext conftest.beam conftest.$ac_ext
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
19741 $as_echo "$ac_cv_func_closedir_void" >&6; }
19742 if test $ac_cv_func_closedir_void = yes; then
19744 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19749 $as_echo_n "checking for error_at_line... " >&6; }
19750 if ${ac_cv_lib_error_at_line+:} false; then :
19751 $as_echo_n "(cached) " >&6
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19759 error_at_line (0, 0, "", 0, "an error occurred");
19764 if ac_fn_c_try_link "$LINENO"; then :
19765 ac_cv_lib_error_at_line=yes
19767 ac_cv_lib_error_at_line=no
19769 rm -f core conftest.err conftest.$ac_objext \
19770 conftest$ac_exeext conftest.$ac_ext
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19773 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19774 if test $ac_cv_lib_error_at_line = no; then
19775 case " $LIBOBJS " in
19776 *" error.$ac_objext "* ) ;;
19777 *) LIBOBJS="$LIBOBJS error.$ac_objext"
19783 for ac_header in vfork.h
19785 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19786 if test "x$ac_cv_header_vfork_h" = xyes; then :
19787 cat >>confdefs.h <<_ACEOF
19788 #define HAVE_VFORK_H 1
19795 for ac_func in fork vfork
19797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19799 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19800 cat >>confdefs.h <<_ACEOF
19801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19807 if test "x$ac_cv_func_fork" = xyes; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19809 $as_echo_n "checking for working fork... " >&6; }
19810 if ${ac_cv_func_fork_works+:} false; then :
19811 $as_echo_n "(cached) " >&6
19813 if test "$cross_compiling" = yes; then :
19814 ac_cv_func_fork_works=cross
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818 $ac_includes_default
19823 /* By Ruediger Kuhlmann. */
19824 return fork () < 0;
19830 if ac_fn_c_try_run "$LINENO"; then :
19831 ac_cv_func_fork_works=yes
19833 ac_cv_func_fork_works=no
19835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19836 conftest.$ac_objext conftest.beam conftest.$ac_ext
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19841 $as_echo "$ac_cv_func_fork_works" >&6; }
19844 ac_cv_func_fork_works=$ac_cv_func_fork
19846 if test "x$ac_cv_func_fork_works" = xcross; then
19848 *-*-amigaos* | *-*-msdosdjgpp*)
19849 # Override, as these systems have only a dummy fork() stub
19850 ac_cv_func_fork_works=no
19853 ac_cv_func_fork_works=yes
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19857 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19859 ac_cv_func_vfork_works=$ac_cv_func_vfork
19860 if test "x$ac_cv_func_vfork" = xyes; then
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19862 $as_echo_n "checking for working vfork... " >&6; }
19863 if ${ac_cv_func_vfork_works+:} false; then :
19864 $as_echo_n "(cached) " >&6
19866 if test "$cross_compiling" = yes; then :
19867 ac_cv_func_vfork_works=cross
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19871 /* Thanks to Paul Eggert for this test. */
19872 $ac_includes_default
19873 #include <sys/wait.h>
19874 #ifdef HAVE_VFORK_H
19875 # include <vfork.h>
19877 /* On some sparc systems, changes by the child to local and incoming
19878 argument registers are propagated back to the parent. The compiler
19879 is told about this with #include <vfork.h>, but some compilers
19880 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19881 static variable whose address is put into a register that is
19882 clobbered by the vfork. */
19885 sparc_address_test (int arg)
19887 sparc_address_test (arg) int arg;
19890 static pid_t child;
19908 pid_t parent = getpid ();
19911 sparc_address_test (0);
19916 /* Here is another test for sparc vfork register problems. This
19917 test uses lots of local variables, at least as many local
19918 variables as main has allocated so far including compiler
19919 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19920 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19921 reuse the register of parent for one of the local variables,
19922 since it will think that parent can't possibly be used any more
19923 in this routine. Assigning to the local variable will thus
19924 munge parent in the parent process. */
19926 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19927 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19928 /* Convince the compiler that p..p7 are live; otherwise, it might
19929 use the same hardware register for all 8 local variables. */
19930 if (p != p1 || p != p2 || p != p3 || p != p4
19931 || p != p5 || p != p6 || p != p7)
19934 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19935 from child file descriptors. If the child closes a descriptor
19936 before it execs or exits, this munges the parent's descriptor
19937 as well. Test for this by closing stdout in the child. */
19938 _exit(close(fileno(stdout)) != 0);
19943 while (wait(&status) != child)
19946 /* Was there some problem with vforking? */
19949 /* Did the child fail? (This shouldn't happen.) */
19952 /* Did the vfork/compiler bug occur? */
19953 || parent != getpid()
19955 /* Did the file descriptor bug occur? */
19956 || fstat(fileno(stdout), &st) != 0
19961 if ac_fn_c_try_run "$LINENO"; then :
19962 ac_cv_func_vfork_works=yes
19964 ac_cv_func_vfork_works=no
19966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19967 conftest.$ac_objext conftest.beam conftest.$ac_ext
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19972 $as_echo "$ac_cv_func_vfork_works" >&6; }
19975 if test "x$ac_cv_func_fork_works" = xcross; then
19976 ac_cv_func_vfork_works=$ac_cv_func_vfork
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19978 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19981 if test "x$ac_cv_func_vfork_works" = xyes; then
19983 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19987 $as_echo "#define vfork fork" >>confdefs.h
19990 if test "x$ac_cv_func_fork_works" = xyes; then
19992 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
19997 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19998 if ${ac_cv_type_getgroups+:} false; then :
19999 $as_echo_n "(cached) " >&6
20001 if test "$cross_compiling" = yes; then :
20002 ac_cv_type_getgroups=cross
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20006 /* Thanks to Mike Rendell for this test. */
20007 $ac_includes_default
20010 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20015 gid_t gidset[NGID];
20017 union { gid_t gval; long int lval; } val;
20020 for (i = 0; i < NGID; i++)
20021 gidset[i] = val.gval;
20022 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20024 /* Exit non-zero if getgroups seems to require an array of ints. This
20025 happens when gid_t is short int but getgroups modifies an array
20027 return n > 0 && gidset[n] != val.gval;
20030 if ac_fn_c_try_run "$LINENO"; then :
20031 ac_cv_type_getgroups=gid_t
20033 ac_cv_type_getgroups=int
20035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20036 conftest.$ac_objext conftest.beam conftest.$ac_ext
20039 if test $ac_cv_type_getgroups = cross; then
20040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20042 #include <unistd.h>
20045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20046 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20047 ac_cv_type_getgroups=gid_t
20049 ac_cv_type_getgroups=int
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20056 $as_echo "$ac_cv_type_getgroups" >&6; }
20058 cat >>confdefs.h <<_ACEOF
20059 #define GETGROUPS_T $ac_cv_type_getgroups
20063 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20064 if test "x$ac_cv_func_getgroups" = xyes; then :
20069 # If we don't yet have getgroups, see if it's in -lbsd.
20070 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
20072 if test $ac_cv_func_getgroups = no; then
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
20074 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
20075 if ${ac_cv_lib_bsd_getgroups+:} false; then :
20076 $as_echo_n "(cached) " >&6
20078 ac_check_lib_save_LIBS=$LIBS
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h. */
20083 /* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20093 return getgroups ();
20098 if ac_fn_c_try_link "$LINENO"; then :
20099 ac_cv_lib_bsd_getgroups=yes
20101 ac_cv_lib_bsd_getgroups=no
20103 rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
20108 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
20109 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
20110 GETGROUPS_LIB=-lbsd
20115 # Run the program to test the functionality of the system-supplied
20116 # getgroups function only if there is such a function.
20117 if test $ac_cv_func_getgroups = yes; then
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
20119 $as_echo_n "checking for working getgroups... " >&6; }
20120 if ${ac_cv_func_getgroups_works+:} false; then :
20121 $as_echo_n "(cached) " >&6
20123 if test "$cross_compiling" = yes; then :
20124 ac_cv_func_getgroups_works=no
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20128 $ac_includes_default
20132 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
20133 return getgroups (0, 0) == -1;
20138 if ac_fn_c_try_run "$LINENO"; then :
20139 ac_cv_func_getgroups_works=yes
20141 ac_cv_func_getgroups_works=no
20143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20144 conftest.$ac_objext conftest.beam conftest.$ac_ext
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
20150 $as_echo "$ac_cv_func_getgroups_works" >&6; }
20152 ac_cv_func_getgroups_works=no
20154 if test $ac_cv_func_getgroups_works = yes; then
20156 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
20161 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
20162 # -lseq on Dynix/PTX, -lgen on Unixware.
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
20164 $as_echo_n "checking for library containing getmntent... " >&6; }
20165 if ${ac_cv_search_getmntent+:} false; then :
20166 $as_echo_n "(cached) " >&6
20168 ac_func_search_save_LIBS=$LIBS
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h. */
20172 /* Override any GCC internal prototype to avoid an error.
20173 Use char because int might match the return type of a GCC
20174 builtin and then its argument prototype would still apply. */
20182 return getmntent ();
20187 for ac_lib in '' sun seq gen; do
20188 if test -z "$ac_lib"; then
20189 ac_res="none required"
20192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20194 if ac_fn_c_try_link "$LINENO"; then :
20195 ac_cv_search_getmntent=$ac_res
20197 rm -f core conftest.err conftest.$ac_objext \
20199 if ${ac_cv_search_getmntent+:} false; then :
20203 if ${ac_cv_search_getmntent+:} false; then :
20206 ac_cv_search_getmntent=no
20208 rm conftest.$ac_ext
20209 LIBS=$ac_func_search_save_LIBS
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
20212 $as_echo "$ac_cv_search_getmntent" >&6; }
20213 ac_res=$ac_cv_search_getmntent
20214 if test "$ac_res" != no; then :
20215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20216 ac_cv_func_getmntent=yes
20218 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
20221 ac_cv_func_getmntent=no
20225 if test $ac_cv_c_compiler_gnu = yes; then
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20227 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20228 if ${ac_cv_prog_gcc_traditional+:} false; then :
20229 $as_echo_n "(cached) " >&6
20231 ac_pattern="Autoconf.*'x'"
20232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20233 /* end confdefs.h. */
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20239 ac_cv_prog_gcc_traditional=yes
20241 ac_cv_prog_gcc_traditional=no
20246 if test $ac_cv_prog_gcc_traditional = no; then
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249 #include <termio.h>
20252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20254 ac_cv_prog_gcc_traditional=yes
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20261 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20262 if test $ac_cv_prog_gcc_traditional = yes; then
20263 CC="$CC -traditional"
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20268 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20269 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20270 $as_echo_n "(cached) " >&6
20272 rm -f conftest.sym conftest.file
20273 echo >conftest.file
20274 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20275 if test "$cross_compiling" = yes; then :
20276 ac_cv_func_lstat_dereferences_slashed_symlink=no
20278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h. */
20280 $ac_includes_default
20285 /* Linux will dereference the symlink and fail, as required by POSIX.
20286 That is better in the sense that it means we will not
20287 have to compile and use the lstat wrapper. */
20288 return lstat ("conftest.sym/", &sbuf) == 0;
20293 if ac_fn_c_try_run "$LINENO"; then :
20294 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20296 ac_cv_func_lstat_dereferences_slashed_symlink=no
20298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20299 conftest.$ac_objext conftest.beam conftest.$ac_ext
20303 # If the `ln -s' command failed, then we probably don't even
20304 # have an lstat function.
20305 ac_cv_func_lstat_dereferences_slashed_symlink=no
20307 rm -f conftest.sym conftest.file
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20311 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20313 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20315 cat >>confdefs.h <<_ACEOF
20316 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20320 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20321 case " $LIBOBJS " in
20322 *" lstat.$ac_objext "* ) ;;
20323 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
20330 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
20331 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
20332 $as_echo_n "(cached) " >&6
20334 if test "$cross_compiling" = yes; then :
20335 ac_cv_func_lstat_empty_string_bug=yes
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339 $ac_includes_default
20344 return lstat ("", &sbuf) == 0;
20349 if ac_fn_c_try_run "$LINENO"; then :
20350 ac_cv_func_lstat_empty_string_bug=no
20352 ac_cv_func_lstat_empty_string_bug=yes
20354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20355 conftest.$ac_objext conftest.beam conftest.$ac_ext
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
20360 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
20361 if test $ac_cv_func_lstat_empty_string_bug = yes; then
20362 case " $LIBOBJS " in
20363 *" lstat.$ac_objext "* ) ;;
20364 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20376 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20377 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20378 $as_echo_n "(cached) " >&6
20380 rm -f conftest.sym conftest.file
20381 echo >conftest.file
20382 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20383 if test "$cross_compiling" = yes; then :
20384 ac_cv_func_lstat_dereferences_slashed_symlink=no
20386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h. */
20388 $ac_includes_default
20393 /* Linux will dereference the symlink and fail, as required by POSIX.
20394 That is better in the sense that it means we will not
20395 have to compile and use the lstat wrapper. */
20396 return lstat ("conftest.sym/", &sbuf) == 0;
20401 if ac_fn_c_try_run "$LINENO"; then :
20402 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20404 ac_cv_func_lstat_dereferences_slashed_symlink=no
20406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20407 conftest.$ac_objext conftest.beam conftest.$ac_ext
20411 # If the `ln -s' command failed, then we probably don't even
20412 # have an lstat function.
20413 ac_cv_func_lstat_dereferences_slashed_symlink=no
20415 rm -f conftest.sym conftest.file
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20419 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20421 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20423 cat >>confdefs.h <<_ACEOF
20424 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20428 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20429 case " $LIBOBJS " in
20430 *" lstat.$ac_objext "* ) ;;
20431 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
20438 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
20439 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
20440 $as_echo_n "(cached) " >&6
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20444 #include <sys/types.h>
20448 return makedev(0, 0);
20453 if ac_fn_c_try_link "$LINENO"; then :
20454 ac_cv_header_sys_types_h_makedev=yes
20456 ac_cv_header_sys_types_h_makedev=no
20458 rm -f core conftest.err conftest.$ac_objext \
20459 conftest$ac_exeext conftest.$ac_ext
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
20463 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
20465 if test $ac_cv_header_sys_types_h_makedev = no; then
20466 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20467 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
20469 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20475 if test $ac_cv_header_sys_mkdev_h = no; then
20476 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20477 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
20479 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20489 $as_echo_n "checking for working memcmp... " >&6; }
20490 if ${ac_cv_func_memcmp_working+:} false; then :
20491 $as_echo_n "(cached) " >&6
20493 if test "$cross_compiling" = yes; then :
20494 ac_cv_func_memcmp_working=no
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20498 $ac_includes_default
20503 /* Some versions of memcmp are not 8-bit clean. */
20504 char c0 = '\100', c1 = '\200', c2 = '\201';
20505 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20508 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20509 or more and with at least one buffer not starting on a 4-byte boundary.
20510 William Lewis provided this test program. */
20515 for (i = 0; i < 4; i++)
20519 strcpy (a, "--------01111111");
20520 strcpy (b, "--------10000000");
20521 if (memcmp (a, b, 16) >= 0)
20531 if ac_fn_c_try_run "$LINENO"; then :
20532 ac_cv_func_memcmp_working=yes
20534 ac_cv_func_memcmp_working=no
20536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20537 conftest.$ac_objext conftest.beam conftest.$ac_ext
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20542 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20543 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20544 *" memcmp.$ac_objext "* ) ;;
20545 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20551 for ac_header in sys/select.h sys/socket.h
20553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20556 cat >>confdefs.h <<_ACEOF
20557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20565 $as_echo_n "checking types of arguments for select... " >&6; }
20566 if ${ac_cv_func_select_args+:} false; then :
20567 $as_echo_n "(cached) " >&6
20569 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20570 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20571 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574 $ac_includes_default
20575 #ifdef HAVE_SYS_SELECT_H
20576 # include <sys/select.h>
20578 #ifdef HAVE_SYS_SOCKET_H
20579 # include <sys/socket.h>
20585 extern int select ($ac_arg1,
20586 $ac_arg234, $ac_arg234, $ac_arg234,
20592 if ac_fn_c_try_compile "$LINENO"; then :
20593 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 # Provide a safe default value.
20600 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20604 $as_echo "$ac_cv_func_select_args" >&6; }
20605 ac_save_IFS=$IFS; IFS=','
20606 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20610 cat >>confdefs.h <<_ACEOF
20611 #define SELECT_TYPE_ARG1 $1
20615 cat >>confdefs.h <<_ACEOF
20616 #define SELECT_TYPE_ARG234 ($2)
20620 cat >>confdefs.h <<_ACEOF
20621 #define SELECT_TYPE_ARG5 ($3)
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20627 $as_echo_n "checking return type of signal handlers... " >&6; }
20628 if ${ac_cv_type_signal+:} false; then :
20629 $as_echo_n "(cached) " >&6
20631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20632 /* end confdefs.h. */
20633 #include <sys/types.h>
20634 #include <signal.h>
20639 return *(signal (0, 0)) (0) == 1;
20644 if ac_fn_c_try_compile "$LINENO"; then :
20645 ac_cv_type_signal=int
20647 ac_cv_type_signal=void
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20652 $as_echo "$ac_cv_type_signal" >&6; }
20654 cat >>confdefs.h <<_ACEOF
20655 #define RETSIGTYPE $ac_cv_type_signal
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
20660 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
20661 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
20662 $as_echo_n "(cached) " >&6
20664 if test "$cross_compiling" = yes; then :
20665 ac_cv_func_stat_empty_string_bug=yes
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20669 $ac_includes_default
20674 return stat ("", &sbuf) == 0;
20679 if ac_fn_c_try_run "$LINENO"; then :
20680 ac_cv_func_stat_empty_string_bug=no
20682 ac_cv_func_stat_empty_string_bug=yes
20684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20685 conftest.$ac_objext conftest.beam conftest.$ac_ext
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
20690 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20691 if test $ac_cv_func_stat_empty_string_bug = yes; then
20692 case " $LIBOBJS " in
20693 *" stat.$ac_objext "* ) ;;
20694 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_STAT_EMPTY_STRING_BUG 1
20705 for ac_func in vprintf
20707 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20708 if test "x$ac_cv_func_vprintf" = xyes; then :
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_VPRINTF 1
20713 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20714 if test "x$ac_cv_func__doprnt" = xyes; then :
20716 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20724 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
20725 gethostbyaddr gethostbyname gethostname getmntent \
20726 getnameinfo getrpcbyname getifaddrs \
20727 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
20728 realpath rmdir select socket strcasecmp strchr strdup \
20729 strerror strrchr strtol strtoul sigprocmask
20731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20734 cat >>confdefs.h <<_ACEOF
20735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20743 # The cast to long int works around a bug in the HP C Compiler
20744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20746 # This bug is HP SR number 8606223364.
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20748 $as_echo_n "checking size of short... " >&6; }
20749 if ${ac_cv_sizeof_short+:} false; then :
20750 $as_echo_n "(cached) " >&6
20752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
20755 if test "$ac_cv_type_short" = yes; then
20756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20758 as_fn_error 77 "cannot compute sizeof (short)
20759 See \`config.log' for more details" "$LINENO" 5; }
20761 ac_cv_sizeof_short=0
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20767 $as_echo "$ac_cv_sizeof_short" >&6; }
20771 cat >>confdefs.h <<_ACEOF
20772 #define SIZEOF_SHORT $ac_cv_sizeof_short
20776 # The cast to long int works around a bug in the HP C Compiler
20777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20779 # This bug is HP SR number 8606223364.
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20781 $as_echo_n "checking size of int... " >&6; }
20782 if ${ac_cv_sizeof_int+:} false; then :
20783 $as_echo_n "(cached) " >&6
20785 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20788 if test "$ac_cv_type_int" = yes; then
20789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20791 as_fn_error 77 "cannot compute sizeof (int)
20792 See \`config.log' for more details" "$LINENO" 5; }
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20800 $as_echo "$ac_cv_sizeof_int" >&6; }
20804 cat >>confdefs.h <<_ACEOF
20805 #define SIZEOF_INT $ac_cv_sizeof_int
20809 # The cast to long int works around a bug in the HP C Compiler
20810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20812 # This bug is HP SR number 8606223364.
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20814 $as_echo_n "checking size of long... " >&6; }
20815 if ${ac_cv_sizeof_long+:} false; then :
20816 $as_echo_n "(cached) " >&6
20818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
20821 if test "$ac_cv_type_long" = yes; then
20822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20824 as_fn_error 77 "cannot compute sizeof (long)
20825 See \`config.log' for more details" "$LINENO" 5; }
20827 ac_cv_sizeof_long=0
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20833 $as_echo "$ac_cv_sizeof_long" >&6; }
20837 cat >>confdefs.h <<_ACEOF
20838 #define SIZEOF_LONG $ac_cv_sizeof_long
20842 # The cast to long int works around a bug in the HP C Compiler
20843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20845 # This bug is HP SR number 8606223364.
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20847 $as_echo_n "checking size of size_t... " >&6; }
20848 if ${ac_cv_sizeof_size_t+:} false; then :
20849 $as_echo_n "(cached) " >&6
20851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
20854 if test "$ac_cv_type_size_t" = yes; then
20855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20857 as_fn_error 77 "cannot compute sizeof (size_t)
20858 See \`config.log' for more details" "$LINENO" 5; }
20860 ac_cv_sizeof_size_t=0
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20866 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20870 cat >>confdefs.h <<_ACEOF
20871 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20875 # The cast to long int works around a bug in the HP C Compiler
20876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20878 # This bug is HP SR number 8606223364.
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
20880 $as_echo_n "checking size of socklen_t... " >&6; }
20881 if ${ac_cv_sizeof_socklen_t+:} false; then :
20882 $as_echo_n "(cached) " >&6
20884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t" "$ac_includes_default"; then :
20887 if test "$ac_cv_type_socklen_t" = yes; then
20888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20890 as_fn_error 77 "cannot compute sizeof (socklen_t)
20891 See \`config.log' for more details" "$LINENO" 5; }
20893 ac_cv_sizeof_socklen_t=0
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
20899 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
20903 cat >>confdefs.h <<_ACEOF
20904 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
20911 cat >>confdefs.h <<_ACEOF
20912 #define NFS_STATEDIR "$statedir"
20916 if test "x$cross_compiling" = "xno"; then
20917 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
20918 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
20919 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
20920 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
20922 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
20923 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
20924 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
20925 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
20943 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
20945 AM_CFLAGS="$my_am_cflags"
20948 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
20949 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
20952 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/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 tests/Makefile tests/nsm_client/Makefile"
20954 cat >confcache <<\_ACEOF
20955 # This file is a shell script that caches the results of configure
20956 # tests run on this system so they can be shared between configure
20957 # scripts and configure runs, see configure's option --config-cache.
20958 # It is not useful on other systems. If it contains results you don't
20959 # want to keep, you may remove or edit it.
20961 # config.status only pays attention to the cache file if you give it
20962 # the --recheck option to rerun configure.
20964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20966 # following values.
20970 # The following way of writing the cache mishandles newlines in values,
20971 # but we know of no workaround that is simple, portable, and efficient.
20972 # So, we kill variables containing newlines.
20973 # Ultrix sh set writes to stderr and can't be redirected directly,
20974 # and sets the high bit in the cache file unless we assign to the vars.
20976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20977 eval ac_val=\$$ac_var
20981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20985 _ | IFS | as_nl) ;; #(
20986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20987 *) { eval $ac_var=; unset $ac_var;} ;;
20993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20994 *${as_nl}ac_space=\ *)
20995 # `set' does not quote correctly, so add quotes: double-quote
20996 # substitution turns \\\\ into \\, and sed turns \\ into \.
20999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21002 # `set' quotes correctly as required by POSIX, so do not add quotes.
21003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21017 if test -w "$cache_file"; then
21018 if test "x$cache_file" != "x/dev/null"; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21020 $as_echo "$as_me: updating cache $cache_file" >&6;}
21021 if test ! -f "$cache_file" || test -h "$cache_file"; then
21022 cat confcache >"$cache_file"
21024 case $cache_file in #(
21026 mv -f confcache "$cache_file"$$ &&
21027 mv -f "$cache_file"$$ "$cache_file" ;; #(
21029 mv -f confcache "$cache_file" ;;
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21041 # Let make expand exec_prefix.
21042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21044 DEFS=-DHAVE_CONFIG_H
21049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21050 # 1. Remove the extension, and $U if already installed.
21051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21054 # will be set to the directory where LIBOBJS objects are built.
21055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21058 LIBOBJS=$ac_libobjs
21060 LTLIBOBJS=$ac_ltlibobjs
21063 if test -n "$EXEEXT"; then
21065 am__EXEEXT_FALSE='#'
21067 am__EXEEXT_TRUE='#'
21071 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21072 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21075 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
21076 as_fn_error $? "conditional \"CONFIG_NFSV4\" was never defined.
21077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21079 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
21080 as_fn_error $? "conditional \"CONFIG_NFSV41\" was never defined.
21081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21083 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
21084 as_fn_error $? "conditional \"CONFIG_GSS\" was never defined.
21085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21087 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
21088 as_fn_error $? "conditional \"CONFIG_RPCGEN\" was never defined.
21089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21091 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
21092 as_fn_error $? "conditional \"CONFIG_MOUNT\" was never defined.
21093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21095 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
21096 as_fn_error $? "conditional \"CONFIG_IPV6\" was never defined.
21097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21099 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21100 as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21103 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21104 as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21108 as_fn_error $? "conditional \"AMDEP\" was never defined.
21109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21112 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21115 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21116 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21120 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21123 if test -z "${CONFIG_NFSIDMAP_TRUE}" && test -z "${CONFIG_NFSIDMAP_FALSE}"; then
21124 as_fn_error $? "conditional \"CONFIG_NFSIDMAP\" was never defined.
21125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21127 if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
21128 as_fn_error $? "conditional \"CONFIG_LIBMOUNT\" was never defined.
21129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21132 : "${CONFIG_STATUS=./config.status}"
21134 ac_clean_files_save=$ac_clean_files
21135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21141 # Generated by $as_me.
21142 # Run this file to recreate the current configuration.
21143 # Compiler output produced by configure, useful for debugging
21144 # configure, is in config.log if it exists.
21147 ac_cs_recheck=false
21150 SHELL=\${CONFIG_SHELL-$SHELL}
21153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21154 ## -------------------- ##
21155 ## M4sh Initialization. ##
21156 ## -------------------- ##
21158 # Be more Bourne compatible
21159 DUALCASE=1; export DUALCASE # for MKS sh
21160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21164 # is contrary to our usage. Disable this feature.
21165 alias -g '${1+"$@"}'='"$@"'
21166 setopt NO_GLOB_SUBST
21168 case `(set -o) 2>/dev/null` in #(
21180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21184 # Prefer a ksh shell builtin over an external printf program on Solaris,
21185 # but without wasting forks for bash or zsh.
21186 if test -z "$BASH_VERSION$ZSH_VERSION" \
21187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21188 as_echo='print -r --'
21189 as_echo_n='print -rn --'
21190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21191 as_echo='printf %s\n'
21192 as_echo_n='printf %s'
21194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21196 as_echo_n='/usr/ucb/echo -n'
21198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21199 as_echo_n_body='eval
21203 expr "X$arg" : "X\\(.*\\)$as_nl";
21204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21208 export as_echo_n_body
21209 as_echo_n='sh -c $as_echo_n_body as_echo'
21211 export as_echo_body
21212 as_echo='sh -c $as_echo_body as_echo'
21215 # The user is always right.
21216 if test "${PATH_SEPARATOR+set}" != set; then
21218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21226 # We need space, tab and new line, in precisely that order. Quoting is
21227 # there to prevent editors from complaining about space-tab.
21228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21229 # splitting by setting IFS to empty value.)
21232 # Find who we are. Look in the path if we contain no directory separator.
21235 *[\\/]* ) as_myself=$0 ;;
21236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21240 test -z "$as_dir" && as_dir=.
21241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21247 # We did not find ourselves, most probably we were run as `sh COMMAND'
21248 # in which case we are not to be found in the path.
21249 if test "x$as_myself" = x; then
21252 if test ! -f "$as_myself"; then
21253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21257 # Unset variables that we do not need and which cause bugs (e.g. in
21258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21259 # suppresses any "Segmentation fault" message there. '((' could
21260 # trigger a bug in pdksh 5.2.14.
21261 for as_var in BASH_ENV ENV MAIL MAILPATH
21262 do eval test x\${$as_var+set} = xset \
21263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21280 # ----------------------------------------
21281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21283 # script with STATUS, using 1 if that was 0.
21286 as_status=$1; test $as_status -eq 0 && as_status=1
21288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21291 $as_echo "$as_me: error: $2" >&2
21292 as_fn_exit $as_status
21296 # as_fn_set_status STATUS
21297 # -----------------------
21298 # Set $? to STATUS, without forking.
21299 as_fn_set_status ()
21302 } # as_fn_set_status
21304 # as_fn_exit STATUS
21305 # -----------------
21306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21310 as_fn_set_status $1
21316 # Portably unset VAR.
21319 { eval $1=; unset $1;}
21321 as_unset=as_fn_unset
21322 # as_fn_append VAR VALUE
21323 # ----------------------
21324 # Append the text in VALUE to the end of the definition contained in VAR. Take
21325 # advantage of any shell optimizations that allow amortized linear growth over
21326 # repeated appends, instead of the typical quadratic growth present in naive
21328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21329 eval 'as_fn_append ()
21340 # as_fn_arith ARG...
21341 # ------------------
21342 # Perform arithmetic evaluation on the ARGs, and store the result in the
21343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21344 # must be portable across $(()) and expr.
21345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21346 eval 'as_fn_arith ()
21353 as_val=`expr "$@" || test $? -eq 1`
21358 if expr a : '\(a\)' >/dev/null 2>&1 &&
21359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21366 as_basename=basename
21371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21377 as_me=`$as_basename -- "$0" ||
21378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21379 X"$0" : 'X\(//\)$' \| \
21380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21382 sed '/^.*\/\([^/][^/]*\)\/*$/{
21396 # Avoid depending upon Character Ranges.
21397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21400 as_cr_digits='0123456789'
21401 as_cr_alnum=$as_cr_Letters$as_cr_digits
21403 ECHO_C= ECHO_N= ECHO_T=
21404 case `echo -n x` in #(((((
21406 case `echo 'xy\c'` in
21407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21416 rm -f conf$$ conf$$.exe conf$$.file
21417 if test -d conf$$.dir; then
21418 rm -f conf$$.dir/conf$$.file
21421 mkdir conf$$.dir 2>/dev/null
21423 if (echo >conf$$.file) 2>/dev/null; then
21424 if ln -s conf$$.file conf$$ 2>/dev/null; then
21426 # ... but there are two gotchas:
21427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21429 # In both cases, we have to default to `cp -p'.
21430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21432 elif ln conf$$.file conf$$ 2>/dev/null; then
21440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21441 rmdir conf$$.dir 2>/dev/null
21446 # Create "$as_dir" as a directory, including parents if necessary.
21451 -*) as_dir=./$as_dir;;
21453 test -d "$as_dir" || eval $as_mkdir_p || {
21457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21458 *) as_qdir=$as_dir;;
21460 as_dirs="'$as_qdir' $as_dirs"
21461 as_dir=`$as_dirname -- "$as_dir" ||
21462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$as_dir" : 'X\(//\)[^/]' \| \
21464 X"$as_dir" : 'X\(//\)$' \| \
21465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$as_dir" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21471 /^X\(\/\/\)[^/].*/{
21484 test -d "$as_dir" && break
21486 test -z "$as_dirs" || eval "mkdir $as_dirs"
21487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21491 if mkdir -p . 2>/dev/null; then
21492 as_mkdir_p='mkdir -p "$as_dir"'
21494 test -d ./-p && rmdir ./-p
21498 if test -x / >/dev/null 2>&1; then
21499 as_test_x='test -x'
21501 if ls -dL / >/dev/null 2>&1; then
21508 if test -d "$1"; then
21514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21515 ???[sx]*):;;*)false;;esac;fi
21519 as_executable_p=$as_test_x
21521 # Sed expression to map a string onto a valid CPP name.
21522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21524 # Sed expression to map a string onto a valid variable name.
21525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21529 ## ----------------------------------- ##
21530 ## Main body of $CONFIG_STATUS script. ##
21531 ## ----------------------------------- ##
21533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21536 # Save the log message, to keep $0 and so on meaningful, and to
21537 # report actual input values of CONFIG_FILES etc. instead of their
21538 # values after options handling.
21540 This file was extended by linux nfs-utils $as_me 1.2.4, which was
21541 generated by GNU Autoconf 2.68. Invocation command line was
21543 CONFIG_FILES = $CONFIG_FILES
21544 CONFIG_HEADERS = $CONFIG_HEADERS
21545 CONFIG_LINKS = $CONFIG_LINKS
21546 CONFIG_COMMANDS = $CONFIG_COMMANDS
21549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21554 case $ac_config_files in *"
21555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21558 case $ac_config_headers in *"
21559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21564 # Files that config.status was made for.
21565 config_files="$ac_config_files"
21566 config_headers="$ac_config_headers"
21567 config_commands="$ac_config_commands"
21571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21573 \`$as_me' instantiates files and other configuration actions
21574 from templates according to the current configuration. Unless the files
21575 and actions are specified as TAGs, all are instantiated by default.
21577 Usage: $0 [OPTION]... [TAG]...
21579 -h, --help print this help, then exit
21580 -V, --version print version number and configuration settings, then exit
21581 --config print configuration, then exit
21582 -q, --quiet, --silent
21583 do not print progress messages
21584 -d, --debug don't remove temporary files
21585 --recheck update $as_me by reconfiguring in the same conditions
21586 --file=FILE[:TEMPLATE]
21587 instantiate the configuration file FILE
21588 --header=FILE[:TEMPLATE]
21589 instantiate the configuration header FILE
21591 Configuration files:
21594 Configuration headers:
21597 Configuration commands:
21600 Report bugs to <linux-nfs@vger.kernel.org>."
21603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21606 linux nfs-utils config.status 1.2.4
21607 configured by $0, generated by GNU Autoconf 2.68,
21608 with options \\"\$ac_cs_config\\"
21610 Copyright (C) 2010 Free Software Foundation, Inc.
21611 This config.status script is free software; the Free Software Foundation
21612 gives unlimited permission to copy, distribute and modify it."
21619 test -n "\$AWK" || AWK=awk
21622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21623 # The default lists apply if the user does not specify any file.
21629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21646 # Handling of the options.
21647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21650 $as_echo "$ac_cs_version"; exit ;;
21651 --config | --confi | --conf | --con | --co | --c )
21652 $as_echo "$ac_cs_config"; exit ;;
21653 --debug | --debu | --deb | --de | --d | -d )
21655 --file | --fil | --fi | --f )
21658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21659 '') as_fn_error $? "missing file argument" ;;
21661 as_fn_append CONFIG_FILES " '$ac_optarg'"
21662 ac_need_defaults=false;;
21663 --header | --heade | --head | --hea )
21666 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21668 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21669 ac_need_defaults=false;;
21671 # Conflict between --help and --header
21672 as_fn_error $? "ambiguous option: \`$1'
21673 Try \`$0 --help' for more information.";;
21674 --help | --hel | -h )
21675 $as_echo "$ac_cs_usage"; exit ;;
21676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21677 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21680 # This is an error.
21681 -*) as_fn_error $? "unrecognized option: \`$1'
21682 Try \`$0 --help' for more information." ;;
21684 *) as_fn_append ac_config_targets " $1"
21685 ac_need_defaults=false ;;
21691 ac_configure_extra_args=
21693 if $ac_cs_silent; then
21695 ac_configure_extra_args="$ac_configure_extra_args --silent"
21699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21700 if \$ac_cs_recheck; then
21701 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21703 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21704 CONFIG_SHELL='$SHELL'
21705 export CONFIG_SHELL
21710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21714 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21715 ## Running $as_me. ##
21721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21725 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21728 # The HP-UX ksh and POSIX shell print the target directory to stdout
21729 # if CDPATH is set.
21730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21732 sed_quote_subst='$sed_quote_subst'
21733 double_quote_subst='$double_quote_subst'
21734 delay_variable_subst='$delay_variable_subst'
21735 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21736 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21737 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21739 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21740 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21741 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21742 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21743 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21744 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21745 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21746 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21747 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21748 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21749 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21750 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21751 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21752 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21753 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21754 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21755 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21756 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21757 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21758 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21759 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21760 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21761 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21762 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21763 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21767 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21768 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21769 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21770 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21771 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21772 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21789 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21790 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"`'
21791 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21792 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21793 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21794 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21795 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21796 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21798 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21799 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21800 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21801 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21825 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21826 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21827 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21828 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21829 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21830 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21831 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21832 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21833 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21834 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21835 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21836 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21837 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21838 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21839 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21840 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21841 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21842 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21843 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21844 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21845 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21846 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21847 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21848 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21849 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21850 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21851 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21852 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21853 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21854 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21855 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21856 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21857 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21858 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21859 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21860 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21861 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21862 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21863 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21864 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21865 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21866 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21867 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21868 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21869 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21870 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21871 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21872 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21873 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21874 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21875 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21876 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21877 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21878 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21879 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21880 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21881 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21882 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21883 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21884 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21885 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21886 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21887 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21888 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21889 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21890 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21891 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21892 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21893 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21894 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21895 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21896 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21897 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21898 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21899 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21900 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21901 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21902 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21903 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21904 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21905 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21906 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21907 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21908 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21909 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21910 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21911 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21912 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21913 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21914 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21915 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21916 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21917 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21918 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21919 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21922 LTCFLAGS='$LTCFLAGS'
21923 compiler='$compiler_DEFAULT'
21925 # A function that is used when there is no print builtin or printf.
21926 func_fallback_echo ()
21928 eval 'cat <<_LTECHO_EOF
21933 # Quote evaled strings.
21947 deplibs_check_method \
21952 sharedlib_from_linklib_cmd \
21955 archiver_list_spec \
21961 lt_cv_sys_global_symbol_pipe \
21962 lt_cv_sys_global_symbol_to_cdecl \
21963 lt_cv_sys_global_symbol_to_c_name_address \
21964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21965 nm_file_list_spec \
21966 lt_prog_compiler_no_builtin_flag \
21967 lt_prog_compiler_pic \
21968 lt_prog_compiler_wl \
21969 lt_prog_compiler_static \
21970 lt_cv_prog_compiler_c_o \
21979 export_dynamic_flag_spec \
21980 whole_archive_flag_spec \
21981 compiler_needs_object \
21983 allow_undefined_flag \
21984 no_undefined_flag \
21985 hardcode_libdir_flag_spec \
21986 hardcode_libdir_flag_spec_ld \
21987 hardcode_libdir_separator \
21991 variables_saved_for_relink \
21993 library_names_spec \
21995 install_override_mode \
21999 compiler_lib_search_dirs \
22004 compiler_lib_search_path \
22008 lt_prog_compiler_no_builtin_flag_CXX \
22009 lt_prog_compiler_pic_CXX \
22010 lt_prog_compiler_wl_CXX \
22011 lt_prog_compiler_static_CXX \
22012 lt_cv_prog_compiler_c_o_CXX \
22013 export_dynamic_flag_spec_CXX \
22014 whole_archive_flag_spec_CXX \
22015 compiler_needs_object_CXX \
22017 allow_undefined_flag_CXX \
22018 no_undefined_flag_CXX \
22019 hardcode_libdir_flag_spec_CXX \
22020 hardcode_libdir_flag_spec_ld_CXX \
22021 hardcode_libdir_separator_CXX \
22022 exclude_expsyms_CXX \
22023 include_expsyms_CXX \
22024 file_list_spec_CXX \
22025 compiler_lib_search_dirs_CXX \
22026 predep_objects_CXX \
22027 postdep_objects_CXX \
22030 compiler_lib_search_path_CXX; do
22031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22032 *[\\\\\\\`\\"\\\$]*)
22033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22041 # Double-quote double-evaled strings.
22042 for var in reload_cmds \
22043 old_postinstall_cmds \
22044 old_postuninstall_cmds \
22046 extract_expsyms_cmds \
22047 old_archive_from_new_cmds \
22048 old_archive_from_expsyms_cmds \
22050 archive_expsym_cmds \
22052 module_expsym_cmds \
22053 export_symbols_cmds \
22057 postuninstall_cmds \
22059 sys_lib_search_path_spec \
22060 sys_lib_dlsearch_path_spec \
22062 old_archive_cmds_CXX \
22063 old_archive_from_new_cmds_CXX \
22064 old_archive_from_expsyms_cmds_CXX \
22066 archive_expsym_cmds_CXX \
22068 module_expsym_cmds_CXX \
22069 export_symbols_cmds_CXX \
22071 postlink_cmds_CXX; do
22072 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22073 *[\\\\\\\`\\"\\\$]*)
22074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22082 ac_aux_dir='$ac_aux_dir'
22083 xsi_shell='$xsi_shell'
22084 lt_shell_append='$lt_shell_append'
22086 # See if we are running on zsh, and set the options which allow our
22087 # commands through without removal of \ escapes INIT.
22088 if test -n "\${ZSH_VERSION+set}" ; then
22089 setopt NO_GLOB_SUBST
22095 TIMESTAMP='$TIMESTAMP'
22106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22108 # Handling of arguments.
22109 for ac_config_target in $ac_config_targets
22111 case $ac_config_target in
22112 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22113 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
22114 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22115 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22116 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
22117 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22118 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
22119 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
22120 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
22121 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
22122 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
22123 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
22124 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
22125 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
22126 "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
22127 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22128 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
22129 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
22130 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
22131 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
22132 "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
22133 "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
22134 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22135 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
22136 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
22137 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
22138 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
22139 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
22140 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
22141 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
22142 "utils/nfsidmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsidmap/Makefile" ;;
22143 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
22144 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
22145 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22146 "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
22148 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22153 # If the user did not use the arguments to specify the items to instantiate,
22154 # then the envvar interface is used. Set only those that are not.
22155 # We use the long form for the default assignment because of an extremely
22156 # bizarre bug on SunOS 4.1.3.
22157 if $ac_need_defaults; then
22158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22163 # Have a temporary directory for convenience. Make it in the build tree
22164 # simply because there is no reason against having it here, and in addition,
22165 # creating and moving files from /tmp can sometimes cause problems.
22166 # Hook for its removal unless debugging.
22167 # Note that there is a small window in which the directory will not be cleaned:
22168 # after its creation but before its name has been assigned to `$tmp'.
22172 trap 'exit_status=$?
22173 : "${ac_tmp:=$tmp}"
22174 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22176 trap 'as_fn_exit 1' 1 2 13 15
22178 # Create a (secure) tmp directory for tmp files.
22181 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22185 tmp=./conf$$-$RANDOM
22186 (umask 077 && mkdir "$tmp")
22187 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22190 # Set up the scripts for CONFIG_FILES section.
22191 # No need to generate them if there are no CONFIG_FILES.
22192 # This happens for instance with `./config.status config.h'.
22193 if test -n "$CONFIG_FILES"; then
22196 ac_cr=`echo X | tr X '\015'`
22197 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22198 # But we know of no other shell where ac_cr would be empty at this
22199 # point, so we can use a bashism as a fallback.
22200 if test "x$ac_cr" = x; then
22201 eval ac_cr=\$\'\\r\'
22203 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22204 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22207 ac_cs_awk_cr=$ac_cr
22210 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22215 echo "cat >conf$$subs.awk <<_ACEOF" &&
22216 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22218 } >conf$$subs.sh ||
22219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22220 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22222 for ac_last_try in false false false false false :; do
22223 . ./conf$$subs.sh ||
22224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22226 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22227 if test $ac_delim_n = $ac_delim_num; then
22229 elif $ac_last_try; then
22230 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22235 rm -f conf$$subs.sh
22237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22238 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22242 s/^/S["/; s/!.*/"]=/
22252 s/\(.\{148\}\)..*/\1/
22254 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22259 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22266 s/\(.\{148\}\)..*/\1/
22268 s/["\\]/\\&/g; s/^/"/; s/$/"/
22272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22277 ' <conf$$subs.awk | sed '
22282 ' >>$CONFIG_STATUS || ac_write_fail=1
22283 rm -f conf$$subs.awk
22284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22286 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22287 for (key in S) S_is_set[key] = 1
22293 nfields = split(line, field, "@")
22295 len = length(field[1])
22296 for (i = 2; i < nfields; i++) {
22298 keylen = length(key)
22299 if (S_is_set[key]) {
22301 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22302 len += length(value) + length(field[++i])
22313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22314 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22315 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22318 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22319 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22322 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22323 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22324 # trailing colons and then remove the whole line if VPATH becomes empty
22325 # (actually we leave an empty line to preserve line numbers).
22326 if test "x$srcdir" = x.; then
22327 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22346 fi # test -n "$CONFIG_FILES"
22348 # Set up the scripts for CONFIG_HEADERS section.
22349 # No need to generate them if there are no CONFIG_HEADERS.
22350 # This happens for instance with `./config.status Makefile'.
22351 if test -n "$CONFIG_HEADERS"; then
22352 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22356 # Transform confdefs.h into an awk script `defines.awk', embedded as
22357 # here-document in config.status, that substitutes the proper values into
22358 # config.h.in to produce config.h.
22360 # Create a delimiter string that does not exist in confdefs.h, to ease
22361 # handling of long lines.
22363 for ac_last_try in false false :; do
22364 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22365 if test -z "$ac_tt"; then
22367 elif $ac_last_try; then
22368 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22374 # For the awk script, D is an array of macro values keyed by name,
22375 # likewise P contains macro parameters if any. Preserve backslash
22376 # newline sequences.
22378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22380 s/.\{148\}/&'"$ac_delim"'/g
22383 s/^[ ]*#[ ]*define[ ][ ]*/ /
22390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22392 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22397 D["\1"]=" \3\\\\\\n"\\/p
22399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22404 s/.\{148\}/&'"$ac_delim"'/g
22409 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22412 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22414 ' <confdefs.h | sed '
22415 s/'"$ac_delim"'/"\\\
22416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22419 for (key in D) D_is_set[key] = 1
22422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22424 split(line, arg, " ")
22425 if (arg[1] == "#") {
22429 defundef = substr(arg[1], 2)
22432 split(mac1, mac2, "(") #)
22434 prefix = substr(line, 1, index(line, defundef) - 1)
22435 if (D_is_set[macro]) {
22436 # Preserve the white space surrounding the "#".
22437 print prefix "define", macro P[macro] D[macro]
22440 # Replace #undef with comments. This is necessary, for example,
22441 # in the case of _POSIX_SOURCE, which is predefined and required
22442 # on some systems where configure will not decide to define it.
22443 if (defundef == "undef") {
22444 print "/*", prefix defundef, macro, "*/"
22452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22453 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22454 fi # test -n "$CONFIG_HEADERS"
22457 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22462 :[FHLC]) ac_mode=$ac_tag; continue;;
22464 case $ac_mode$ac_tag in
22466 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22467 :[FH]-) ac_tag=-:-;;
22468 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22485 -) ac_f="$ac_tmp/stdin";;
22486 *) # Look for the file first in the build tree, then in the source tree
22487 # (if the path is not absolute). The absolute path cannot be DOS-style,
22488 # because $ac_f cannot contain `:'.
22492 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22494 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22496 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22497 as_fn_append ac_file_inputs " '$ac_f'"
22500 # Let's still pretend it is `configure' which instantiates (i.e., don't
22501 # use $as_me), people would be surprised to read:
22502 # /* config.h. Generated by config.status. */
22503 configure_input='Generated from '`
22504 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22506 if test x"$ac_file" != x-; then
22507 configure_input="$ac_file. $configure_input"
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22509 $as_echo "$as_me: creating $ac_file" >&6;}
22511 # Neutralize special characters interpreted by sed in replacement strings.
22512 case $configure_input in #(
22513 *\&* | *\|* | *\\* )
22514 ac_sed_conf_input=`$as_echo "$configure_input" |
22515 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22516 *) ac_sed_conf_input=$configure_input;;
22520 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22526 ac_dir=`$as_dirname -- "$ac_file" ||
22527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22528 X"$ac_file" : 'X\(//\)[^/]' \| \
22529 X"$ac_file" : 'X\(//\)$' \| \
22530 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22531 $as_echo X"$ac_file" |
22532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22536 /^X\(\/\/\)[^/].*/{
22549 as_dir="$ac_dir"; as_fn_mkdir_p
22553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22556 # A ".." for each directory in $ac_dir_suffix.
22557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22558 case $ac_top_builddir_sub in
22559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22563 ac_abs_top_builddir=$ac_pwd
22564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22565 # for backward compatibility:
22566 ac_top_builddir=$ac_top_build_prefix
22569 .) # We are building in place.
22571 ac_top_srcdir=$ac_top_builddir_sub
22572 ac_abs_top_srcdir=$ac_pwd ;;
22573 [\\/]* | ?:[\\/]* ) # Absolute name.
22574 ac_srcdir=$srcdir$ac_dir_suffix;
22575 ac_top_srcdir=$srcdir
22576 ac_abs_top_srcdir=$srcdir ;;
22577 *) # Relative name.
22578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22579 ac_top_srcdir=$ac_top_build_prefix$srcdir
22580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22592 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22593 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22595 ac_MKDIR_P=$MKDIR_P
22597 [\\/$]* | ?:[\\/]* ) ;;
22598 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22603 # If the template does not know about datarootdir, expand it.
22604 # FIXME: This hack should be removed a few years after 2.60.
22605 ac_datarootdir_hack=; ac_datarootdir_seen=
22616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22617 *datarootdir*) ac_datarootdir_seen=yes;;
22618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22623 ac_datarootdir_hack='
22624 s&@datadir@&$datadir&g
22625 s&@docdir@&$docdir&g
22626 s&@infodir@&$infodir&g
22627 s&@localedir@&$localedir&g
22628 s&@mandir@&$mandir&g
22629 s&\\\${datarootdir}&$datarootdir&g' ;;
22633 # Neutralize VPATH when `$srcdir' = `.'.
22634 # Shell code in configure.ac might set extrasub.
22635 # FIXME: do we really want to maintain this feature?
22636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22637 ac_sed_extra="$ac_vpsub
22640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22643 s|@configure_input@|$ac_sed_conf_input|;t t
22644 s&@top_builddir@&$ac_top_builddir_sub&;t t
22645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22646 s&@srcdir@&$ac_srcdir&;t t
22647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22648 s&@top_srcdir@&$ac_top_srcdir&;t t
22649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22650 s&@builddir@&$ac_builddir&;t t
22651 s&@abs_builddir@&$ac_abs_builddir&;t t
22652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22653 s&@INSTALL@&$ac_INSTALL&;t t
22654 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22655 $ac_datarootdir_hack
22657 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22658 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22660 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22661 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22662 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22663 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22665 which seems to be undefined. Please make sure it is defined" >&5
22666 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22667 which seems to be undefined. Please make sure it is defined" >&2;}
22669 rm -f "$ac_tmp/stdin"
22671 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22672 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22680 if test x"$ac_file" != x-; then
22682 $as_echo "/* $configure_input */" \
22683 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22684 } >"$ac_tmp/config.h" \
22685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22686 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22688 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22691 mv "$ac_tmp/config.h" "$ac_file" \
22692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22695 $as_echo "/* $configure_input */" \
22696 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22697 || as_fn_error $? "could not create -" "$LINENO" 5
22699 # Compute "$ac_file"'s index in $config_headers.
22702 for _am_header in $config_headers :; do
22703 case $_am_header in
22704 $_am_arg | $_am_arg:* )
22707 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22710 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22711 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22712 X"$_am_arg" : 'X\(//\)[^/]' \| \
22713 X"$_am_arg" : 'X\(//\)$' \| \
22714 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22715 $as_echo X"$_am_arg" |
22716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22720 /^X\(\/\/\)[^/].*/{
22732 s/.*/./; q'`/stamp-h$_am_stamp_count
22735 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22736 $as_echo "$as_me: executing $ac_file commands" >&6;}
22741 case $ac_file$ac_mode in
22742 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22743 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22744 # are listed without --file. Let's play safe and only enable the eval
22745 # if we detect the quoting.
22746 case $CONFIG_FILES in
22747 *\'*) eval set x "$CONFIG_FILES" ;;
22748 *) set x $CONFIG_FILES ;;
22753 # Strip MF so we end up with the name of the file.
22754 mf=`echo "$mf" | sed -e 's/:.*$//'`
22755 # Check whether this is an Automake generated Makefile or not.
22756 # We used to match only the files named `Makefile.in', but
22757 # some people rename them; so instead we look at the file content.
22758 # Grep'ing the first line is not enough: some people post-process
22759 # each Makefile.in and add a new line on top of each file to say so.
22760 # Grep'ing the whole file is not good either: AIX grep has a line
22761 # limit of 2048, but all sed's we know have understand at least 4000.
22762 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22763 dirpart=`$as_dirname -- "$mf" ||
22764 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22765 X"$mf" : 'X\(//\)[^/]' \| \
22766 X"$mf" : 'X\(//\)$' \| \
22767 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22773 /^X\(\/\/\)[^/].*/{
22789 # Extract the definition of DEPDIR, am__include, and am__quote
22790 # from the Makefile without running `make'.
22791 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22792 test -z "$DEPDIR" && continue
22793 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22794 test -z "am__include" && continue
22795 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22796 # When using ansi2knr, U may be empty or an underscore; expand it
22797 U=`sed -n 's/^U = //p' < "$mf"`
22798 # Find all dependency output files, they are included files with
22799 # $(DEPDIR) in their names. We invoke sed twice because it is the
22800 # simplest approach to changing $(DEPDIR) to its actual value in the
22802 for file in `sed -n "
22803 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22804 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22805 # Make sure the directory exists.
22806 test -f "$dirpart/$file" && continue
22807 fdir=`$as_dirname -- "$file" ||
22808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22809 X"$file" : 'X\(//\)[^/]' \| \
22810 X"$file" : 'X\(//\)$' \| \
22811 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22812 $as_echo X"$file" |
22813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22817 /^X\(\/\/\)[^/].*/{
22830 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22831 # echo "creating $dirpart/$file"
22832 echo '# dummy' > "$dirpart/$file"
22839 # See if we are running on zsh, and set the options which allow our
22840 # commands through without removal of \ escapes.
22841 if test -n "${ZSH_VERSION+set}" ; then
22842 setopt NO_GLOB_SUBST
22845 cfgfile="${ofile}T"
22846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22849 cat <<_LT_EOF >> "$cfgfile"
22852 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22857 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22858 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
22860 # Written by Gordon Matzigkeit, 1996
22862 # This file is part of GNU Libtool.
22864 # GNU Libtool is free software; you can redistribute it and/or
22865 # modify it under the terms of the GNU General Public License as
22866 # published by the Free Software Foundation; either version 2 of
22867 # the License, or (at your option) any later version.
22869 # As a special exception to the GNU General Public License,
22870 # if you distribute this file as part of a program or library that
22871 # is built using GNU Libtool, you may include this file under the
22872 # same distribution terms that you use for the rest of that program.
22874 # GNU Libtool is distributed in the hope that it will be useful,
22875 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22877 # GNU General Public License for more details.
22879 # You should have received a copy of the GNU General Public License
22880 # along with GNU Libtool; see the file COPYING. If not, a copy
22881 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22882 # obtained by writing to the Free Software Foundation, Inc.,
22883 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22886 # The names of the tagged configurations supported by this script.
22887 available_tags="CXX "
22889 # ### BEGIN LIBTOOL CONFIG
22891 # Which release of libtool.m4 was used?
22892 macro_version=$macro_version
22893 macro_revision=$macro_revision
22895 # Whether or not to build shared libraries.
22896 build_libtool_libs=$enable_shared
22898 # Whether or not to build static libraries.
22899 build_old_libs=$enable_static
22901 # What type of objects to build.
22904 # Whether or not to optimize for fast installation.
22905 fast_install=$enable_fast_install
22907 # Shell to use when invoking shell scripts.
22910 # An echo program that protects backslashes.
22914 host_alias=$host_alias
22918 # The build system.
22919 build_alias=$build_alias
22923 # A sed program that does not truncate output.
22926 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22927 Xsed="\$SED -e 1s/^X//"
22929 # A grep program that handles long lines.
22935 # A literal string matcher.
22938 # A BSD- or MS-compatible name lister.
22941 # Whether we need soft or hard links.
22944 # What is the maximum length of a command?
22945 max_cmd_len=$max_cmd_len
22947 # Object file suffix (normally "o").
22950 # Executable file suffix (normally "").
22953 # whether the shell understands "unset".
22956 # turn spaces into newlines.
22959 # turn newlines into spaces.
22962 # convert \$build file names to \$host format.
22963 to_host_file_cmd=$lt_cv_to_host_file_cmd
22965 # convert \$build files to toolchain format.
22966 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22968 # An object symbol dumper.
22969 OBJDUMP=$lt_OBJDUMP
22971 # Method to check whether dependent libraries are shared objects.
22972 deplibs_check_method=$lt_deplibs_check_method
22974 # Command to use when deplibs_check_method = "file_magic".
22975 file_magic_cmd=$lt_file_magic_cmd
22977 # How to find potential files when deplibs_check_method = "file_magic".
22978 file_magic_glob=$lt_file_magic_glob
22980 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22981 want_nocaseglob=$lt_want_nocaseglob
22983 # DLL creation program.
22984 DLLTOOL=$lt_DLLTOOL
22986 # Command to associate shared and link libraries.
22987 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22992 # Flags to create an archive.
22993 AR_FLAGS=$lt_AR_FLAGS
22995 # How to feed a file listing to the archiver.
22996 archiver_list_spec=$lt_archiver_list_spec
22998 # A symbol stripping program.
23001 # Commands used to install an old-style archive.
23003 old_postinstall_cmds=$lt_old_postinstall_cmds
23004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23006 # Whether to use a lock for old archive extraction.
23007 lock_old_archive_extraction=$lock_old_archive_extraction
23012 # LTCC compiler flags.
23013 LTCFLAGS=$lt_CFLAGS
23015 # Take the output of nm and produce a listing of raw symbols and C names.
23016 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23018 # Transform the output of nm in a proper C declaration.
23019 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23021 # Transform the output of nm in a C name address pair.
23022 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23024 # Transform the output of nm in a C name address pair when lib prefix is needed.
23025 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23027 # Specify filename containing input files for \$NM.
23028 nm_file_list_spec=$lt_nm_file_list_spec
23030 # The root where to search for dependent libraries,and in which our libraries should be installed.
23031 lt_sysroot=$lt_sysroot
23033 # The name of the directory that contains temporary libtool files.
23036 # Used to examine libraries when file_magic_cmd begins with "file".
23037 MAGIC_CMD=$MAGIC_CMD
23039 # Must we lock files when doing compilation?
23040 need_locks=$lt_need_locks
23043 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23045 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23046 DSYMUTIL=$lt_DSYMUTIL
23048 # Tool to change global to local symbols on Mac OS X.
23051 # Tool to manipulate fat objects and archives on Mac OS X.
23054 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23057 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23058 OTOOL64=$lt_OTOOL64
23060 # Old archive suffix (normally "a").
23063 # Shared library suffix (normally ".so").
23064 shrext_cmds=$lt_shrext_cmds
23066 # The commands to extract the exported symbol list from a shared archive.
23067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23069 # Variables whose values should be saved in libtool wrapper scripts and
23070 # restored at link time.
23071 variables_saved_for_relink=$lt_variables_saved_for_relink
23073 # Do we need the "lib" prefix for modules?
23074 need_lib_prefix=$need_lib_prefix
23076 # Do we need a version for libraries?
23077 need_version=$need_version
23079 # Library versioning type.
23080 version_type=$version_type
23082 # Shared library runtime path variable.
23083 runpath_var=$runpath_var
23085 # Shared library path variable.
23086 shlibpath_var=$shlibpath_var
23088 # Is shlibpath searched before the hard-coded library search path?
23089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23091 # Format of library name prefix.
23092 libname_spec=$lt_libname_spec
23094 # List of archive names. First name is the real one, the rest are links.
23095 # The last name is the one that the linker finds with -lNAME
23096 library_names_spec=$lt_library_names_spec
23098 # The coded name of the library, if different from the real name.
23099 soname_spec=$lt_soname_spec
23101 # Permission mode override for installation of shared libraries.
23102 install_override_mode=$lt_install_override_mode
23104 # Command to use after installation of a shared archive.
23105 postinstall_cmds=$lt_postinstall_cmds
23107 # Command to use after uninstallation of a shared archive.
23108 postuninstall_cmds=$lt_postuninstall_cmds
23110 # Commands used to finish a libtool library installation in a directory.
23111 finish_cmds=$lt_finish_cmds
23113 # As "finish_cmds", except a single script fragment to be evaled but
23115 finish_eval=$lt_finish_eval
23117 # Whether we should hardcode library paths into libraries.
23118 hardcode_into_libs=$hardcode_into_libs
23120 # Compile-time system search path for libraries.
23121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23123 # Run-time system search path for libraries.
23124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23126 # Whether dlopen is supported.
23127 dlopen_support=$enable_dlopen
23129 # Whether dlopen of programs is supported.
23130 dlopen_self=$enable_dlopen_self
23132 # Whether dlopen of statically linked programs is supported.
23133 dlopen_self_static=$enable_dlopen_self_static
23135 # Commands to strip libraries.
23136 old_striplib=$lt_old_striplib
23137 striplib=$lt_striplib
23140 # The linker used to build libraries.
23143 # How to create reloadable object files.
23144 reload_flag=$lt_reload_flag
23145 reload_cmds=$lt_reload_cmds
23147 # Commands used to build an old-style archive.
23148 old_archive_cmds=$lt_old_archive_cmds
23150 # A language specific compiler.
23153 # Is the compiler the GNU compiler?
23156 # Compiler flag to turn off builtin functions.
23157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23159 # Additional compiler flags for building library objects.
23160 pic_flag=$lt_lt_prog_compiler_pic
23162 # How to pass a linker flag through the compiler.
23163 wl=$lt_lt_prog_compiler_wl
23165 # Compiler flag to prevent dynamic linking.
23166 link_static_flag=$lt_lt_prog_compiler_static
23168 # Does compiler simultaneously support -c and -o options?
23169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23171 # Whether or not to add -lc for building shared libraries.
23172 build_libtool_need_lc=$archive_cmds_need_lc
23174 # Whether or not to disallow shared libs when runtime libs are static.
23175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23177 # Compiler flag to allow reflexive dlopens.
23178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23180 # Compiler flag to generate shared objects directly from archives.
23181 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23183 # Whether the compiler copes with passing no objects directly.
23184 compiler_needs_object=$lt_compiler_needs_object
23186 # Create an old-style archive from a shared archive.
23187 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23189 # Create a temporary old-style archive to link instead of a shared archive.
23190 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23192 # Commands used to build a shared archive.
23193 archive_cmds=$lt_archive_cmds
23194 archive_expsym_cmds=$lt_archive_expsym_cmds
23196 # Commands used to build a loadable module if different from building
23197 # a shared archive.
23198 module_cmds=$lt_module_cmds
23199 module_expsym_cmds=$lt_module_expsym_cmds
23201 # Whether we are building with GNU ld or not.
23202 with_gnu_ld=$lt_with_gnu_ld
23204 # Flag that allows shared libraries with undefined symbols to be built.
23205 allow_undefined_flag=$lt_allow_undefined_flag
23207 # Flag that enforces no undefined symbols.
23208 no_undefined_flag=$lt_no_undefined_flag
23210 # Flag to hardcode \$libdir into a binary during linking.
23211 # This must work even if \$libdir does not exist
23212 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23214 # If ld is used when linking, flag to hardcode \$libdir into a binary
23215 # during linking. This must work even if \$libdir does not exist.
23216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23218 # Whether we need a single "-rpath" flag with a separated argument.
23219 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23221 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23222 # DIR into the resulting binary.
23223 hardcode_direct=$hardcode_direct
23225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23226 # DIR into the resulting binary and the resulting library dependency is
23227 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23228 # library is relocated.
23229 hardcode_direct_absolute=$hardcode_direct_absolute
23231 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23232 # into the resulting binary.
23233 hardcode_minus_L=$hardcode_minus_L
23235 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23236 # into the resulting binary.
23237 hardcode_shlibpath_var=$hardcode_shlibpath_var
23239 # Set to "yes" if building a shared library automatically hardcodes DIR
23240 # into the library and all subsequent libraries and executables linked
23242 hardcode_automatic=$hardcode_automatic
23244 # Set to yes if linker adds runtime paths of dependent libraries
23245 # to runtime path list.
23246 inherit_rpath=$inherit_rpath
23248 # Whether libtool must link a program against all its dependency libraries.
23249 link_all_deplibs=$link_all_deplibs
23251 # Set to "yes" if exported symbols are required.
23252 always_export_symbols=$always_export_symbols
23254 # The commands to list exported symbols.
23255 export_symbols_cmds=$lt_export_symbols_cmds
23257 # Symbols that should not be listed in the preloaded symbols.
23258 exclude_expsyms=$lt_exclude_expsyms
23260 # Symbols that must always be exported.
23261 include_expsyms=$lt_include_expsyms
23263 # Commands necessary for linking programs (against libraries) with templates.
23264 prelink_cmds=$lt_prelink_cmds
23266 # Commands necessary for finishing linking programs.
23267 postlink_cmds=$lt_postlink_cmds
23269 # Specify filename containing input files.
23270 file_list_spec=$lt_file_list_spec
23272 # How to hardcode a shared library path into an executable.
23273 hardcode_action=$hardcode_action
23275 # The directories searched by this compiler when creating a shared library.
23276 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23278 # Dependencies to place before and after the objects being linked to
23279 # create a shared library.
23280 predep_objects=$lt_predep_objects
23281 postdep_objects=$lt_postdep_objects
23282 predeps=$lt_predeps
23283 postdeps=$lt_postdeps
23285 # The library search path used internally by the compiler when linking
23286 # a shared library.
23287 compiler_lib_search_path=$lt_compiler_lib_search_path
23289 # ### END LIBTOOL CONFIG
23295 cat <<\_LT_EOF >> "$cfgfile"
23296 # AIX sometimes has problems with the GCC collect2 program. For some
23297 # reason, if we set the COLLECT_NAMES environment variable, the problems
23298 # vanish in a puff of smoke.
23299 if test "X${COLLECT_NAMES+set}" != Xset; then
23301 export COLLECT_NAMES
23308 ltmain="$ac_aux_dir/ltmain.sh"
23311 # We use sed instead of cat because bash on DJGPP gets confused if
23312 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23313 # text mode, it properly converts lines to CR/LF. This bash problem
23314 # is reportedly fixed, but why not run on old versions too?
23315 sed '$q' "$ltmain" >> "$cfgfile" \
23316 || (rm -f "$cfgfile"; exit 1)
23318 if test x"$xsi_shell" = xyes; then
23319 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23323 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23324 \ * ) func_dirname_result="${3}" ;;\
23326 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23327 && mv -f "$cfgfile.tmp" "$cfgfile" \
23328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23329 test 0 -eq $? || _lt_function_replace_fail=:
23332 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23335 \ func_basename_result="${1##*/}"\
23336 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23337 && mv -f "$cfgfile.tmp" "$cfgfile" \
23338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23339 test 0 -eq $? || _lt_function_replace_fail=:
23342 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23343 func_dirname_and_basename ()\
23346 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23347 \ * ) func_dirname_result="${3}" ;;\
23349 \ func_basename_result="${1##*/}"\
23350 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23351 && mv -f "$cfgfile.tmp" "$cfgfile" \
23352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23353 test 0 -eq $? || _lt_function_replace_fail=:
23356 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23359 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23360 \ # positional parameters, so assign one to ordinary parameter first.\
23361 \ func_stripname_result=${3}\
23362 \ func_stripname_result=${func_stripname_result#"${1}"}\
23363 \ func_stripname_result=${func_stripname_result%"${2}"}\
23364 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23365 && mv -f "$cfgfile.tmp" "$cfgfile" \
23366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23367 test 0 -eq $? || _lt_function_replace_fail=:
23370 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23371 func_split_long_opt ()\
23373 \ func_split_long_opt_name=${1%%=*}\
23374 \ func_split_long_opt_arg=${1#*=}\
23375 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23376 && mv -f "$cfgfile.tmp" "$cfgfile" \
23377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23378 test 0 -eq $? || _lt_function_replace_fail=:
23381 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23382 func_split_short_opt ()\
23384 \ func_split_short_opt_arg=${1#??}\
23385 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23386 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23387 && mv -f "$cfgfile.tmp" "$cfgfile" \
23388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23389 test 0 -eq $? || _lt_function_replace_fail=:
23392 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23396 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23397 \ *) func_lo2o_result=${1} ;;\
23399 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23400 && mv -f "$cfgfile.tmp" "$cfgfile" \
23401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23402 test 0 -eq $? || _lt_function_replace_fail=:
23405 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23408 func_xform_result=${1%.*}.lo\
23409 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23410 && mv -f "$cfgfile.tmp" "$cfgfile" \
23411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23412 test 0 -eq $? || _lt_function_replace_fail=:
23415 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23418 func_arith_result=$(( $* ))\
23419 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23420 && mv -f "$cfgfile.tmp" "$cfgfile" \
23421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23422 test 0 -eq $? || _lt_function_replace_fail=:
23425 sed -e '/^func_len ()$/,/^} # func_len /c\
23428 func_len_result=${#1}\
23429 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23430 && mv -f "$cfgfile.tmp" "$cfgfile" \
23431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23432 test 0 -eq $? || _lt_function_replace_fail=:
23436 if test x"$lt_shell_append" = xyes; then
23437 sed -e '/^func_append ()$/,/^} # func_append /c\
23440 eval "${1}+=\\${2}"\
23441 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23442 && mv -f "$cfgfile.tmp" "$cfgfile" \
23443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23444 test 0 -eq $? || _lt_function_replace_fail=:
23447 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23448 func_append_quoted ()\
23450 \ func_quote_for_eval "${2}"\
23451 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23452 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23453 && mv -f "$cfgfile.tmp" "$cfgfile" \
23454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23455 test 0 -eq $? || _lt_function_replace_fail=:
23458 # Save a `func_append' function call where possible by direct use of '+='
23459 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23460 && mv -f "$cfgfile.tmp" "$cfgfile" \
23461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23462 test 0 -eq $? || _lt_function_replace_fail=:
23464 # Save a `func_append' function call even when '+=' is not available
23465 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23466 && mv -f "$cfgfile.tmp" "$cfgfile" \
23467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23468 test 0 -eq $? || _lt_function_replace_fail=:
23471 if test x"$_lt_function_replace_fail" = x":"; then
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23473 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23477 mv -f "$cfgfile" "$ofile" ||
23478 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23482 cat <<_LT_EOF >> "$ofile"
23484 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23486 # The linker used to build libraries.
23489 # How to create reloadable object files.
23490 reload_flag=$lt_reload_flag_CXX
23491 reload_cmds=$lt_reload_cmds_CXX
23493 # Commands used to build an old-style archive.
23494 old_archive_cmds=$lt_old_archive_cmds_CXX
23496 # A language specific compiler.
23497 CC=$lt_compiler_CXX
23499 # Is the compiler the GNU compiler?
23502 # Compiler flag to turn off builtin functions.
23503 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23505 # Additional compiler flags for building library objects.
23506 pic_flag=$lt_lt_prog_compiler_pic_CXX
23508 # How to pass a linker flag through the compiler.
23509 wl=$lt_lt_prog_compiler_wl_CXX
23511 # Compiler flag to prevent dynamic linking.
23512 link_static_flag=$lt_lt_prog_compiler_static_CXX
23514 # Does compiler simultaneously support -c and -o options?
23515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23517 # Whether or not to add -lc for building shared libraries.
23518 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23520 # Whether or not to disallow shared libs when runtime libs are static.
23521 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23523 # Compiler flag to allow reflexive dlopens.
23524 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23526 # Compiler flag to generate shared objects directly from archives.
23527 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23529 # Whether the compiler copes with passing no objects directly.
23530 compiler_needs_object=$lt_compiler_needs_object_CXX
23532 # Create an old-style archive from a shared archive.
23533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23535 # Create a temporary old-style archive to link instead of a shared archive.
23536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23538 # Commands used to build a shared archive.
23539 archive_cmds=$lt_archive_cmds_CXX
23540 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23542 # Commands used to build a loadable module if different from building
23543 # a shared archive.
23544 module_cmds=$lt_module_cmds_CXX
23545 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23547 # Whether we are building with GNU ld or not.
23548 with_gnu_ld=$lt_with_gnu_ld_CXX
23550 # Flag that allows shared libraries with undefined symbols to be built.
23551 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23553 # Flag that enforces no undefined symbols.
23554 no_undefined_flag=$lt_no_undefined_flag_CXX
23556 # Flag to hardcode \$libdir into a binary during linking.
23557 # This must work even if \$libdir does not exist
23558 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23560 # If ld is used when linking, flag to hardcode \$libdir into a binary
23561 # during linking. This must work even if \$libdir does not exist.
23562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23564 # Whether we need a single "-rpath" flag with a separated argument.
23565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23568 # DIR into the resulting binary.
23569 hardcode_direct=$hardcode_direct_CXX
23571 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23572 # DIR into the resulting binary and the resulting library dependency is
23573 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23574 # library is relocated.
23575 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23577 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23578 # into the resulting binary.
23579 hardcode_minus_L=$hardcode_minus_L_CXX
23581 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23582 # into the resulting binary.
23583 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23585 # Set to "yes" if building a shared library automatically hardcodes DIR
23586 # into the library and all subsequent libraries and executables linked
23588 hardcode_automatic=$hardcode_automatic_CXX
23590 # Set to yes if linker adds runtime paths of dependent libraries
23591 # to runtime path list.
23592 inherit_rpath=$inherit_rpath_CXX
23594 # Whether libtool must link a program against all its dependency libraries.
23595 link_all_deplibs=$link_all_deplibs_CXX
23597 # Set to "yes" if exported symbols are required.
23598 always_export_symbols=$always_export_symbols_CXX
23600 # The commands to list exported symbols.
23601 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23603 # Symbols that should not be listed in the preloaded symbols.
23604 exclude_expsyms=$lt_exclude_expsyms_CXX
23606 # Symbols that must always be exported.
23607 include_expsyms=$lt_include_expsyms_CXX
23609 # Commands necessary for linking programs (against libraries) with templates.
23610 prelink_cmds=$lt_prelink_cmds_CXX
23612 # Commands necessary for finishing linking programs.
23613 postlink_cmds=$lt_postlink_cmds_CXX
23615 # Specify filename containing input files.
23616 file_list_spec=$lt_file_list_spec_CXX
23618 # How to hardcode a shared library path into an executable.
23619 hardcode_action=$hardcode_action_CXX
23621 # The directories searched by this compiler when creating a shared library.
23622 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23624 # Dependencies to place before and after the objects being linked to
23625 # create a shared library.
23626 predep_objects=$lt_predep_objects_CXX
23627 postdep_objects=$lt_postdep_objects_CXX
23628 predeps=$lt_predeps_CXX
23629 postdeps=$lt_postdeps_CXX
23631 # The library search path used internally by the compiler when linking
23632 # a shared library.
23633 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23635 # ### END LIBTOOL TAG CONFIG: CXX
23646 ac_clean_files=$ac_clean_files_save
23648 test $ac_write_fail = 0 ||
23649 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23652 # configure is writing to config.log, and then calls config.status.
23653 # config.status does its own redirection, appending to config.log.
23654 # Unfortunately, on DOS this fails, as config.log is still kept open
23655 # by configure, so config.status won't be able to write to it; its
23656 # output is simply discarded. So we exec the FD to /dev/null,
23657 # effectively closing config.log, so it can be properly (re)opened and
23658 # appended to by config.status. When coming back to configure, we
23659 # need to make the FD available again.
23660 if test "$no_create" != yes; then
23662 ac_config_status_args=
23663 test "$silent" = yes &&
23664 ac_config_status_args="$ac_config_status_args --quiet"
23666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23669 # would make configure fail if this is the last instruction.
23670 $ac_cs_success || as_fn_exit 1
23672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}