2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for linux nfs-utils 1.2.8.
5 # Report bugs to <linux-nfs@vger.kernel.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: linux-nfs@vger.kernel.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='linux nfs-utils'
592 PACKAGE_TARNAME='nfs-utils'
593 PACKAGE_VERSION='1.2.8'
594 PACKAGE_STRING='linux nfs-utils 1.2.8'
595 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
598 ac_default_prefix=/usr
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_unique_file="support/include/config.h.in"
636 ac_subst_vars='am__EXEEXT_FALSE
664 CONFIG_LIBMOUNT_FALSE
671 CONFIG_NFSIDMAP_FALSE
673 CONFIG_NFSDCLTRACK_FALSE
674 CONFIG_NFSDCLTRACK_TRUE
764 MAINTAINER_MODE_FALSE
774 INSTALL_STRIP_PROGRAM
824 program_transform_name
837 enable_option_checking
838 enable_maintainer_mode
851 enable_libmount_mount
858 enable_dependency_tracking
872 ac_precious_vars='build_alias
894 # Initialize some variables set by options.
896 ac_init_version=false
897 ac_unrecognized_opts=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name=s,x,x,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1201 -site=* | --site=* | --sit=*)
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=no ;;
1260 # Obsolete; use --with-x.
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1328 # Be sure to have absolute directory names.
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures linux nfs-utils 1.2.8 to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of linux nfs-utils 1.2.8:";;
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-nfsv4 enable support for NFSv4 [default=yes]
1514 --enable-nfsv41 enable support for NFSv41 [default=yes]
1515 --enable-gss enable support for rpcsec_gss [default=yes]
1516 --enable-kprefix install progs as rpc.knfsd etc
1517 --disable-uuid Exclude uuid support to avoid buggy libblkid
1518 --enable-mount Create mount.nfs and do not use the util-linux
1519 mount(8) functionality. [default=yes]
1520 --enable-libmount-mount Link mount.nfs with libmount (EXPERIMENTAL)
1521 --enable-tirpc enable use of TI-RPC [default=yes]
1522 --enable-ipv6 enable support for IPv6 [default=no]
1523 --enable-mountconfig enable mount to use a configuration file
1524 --enable-nfsdcltrack enable NFSv4 clientid tracking programs
1526 --enable-dependency-tracking
1527 do not reject slow dependency extractors
1528 --disable-dependency-tracking
1529 speeds up one-time build
1530 --disable-caps Disable capabilities support
1531 --disable-largefile omit support for large files
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-release=XXX set release to XXX [1]
1542 --with-statedir=/foo use state dir /foo [default=/var/lib/nfs]
1543 --with-statdpath=/foo define the statd state dir as /foo instead of the
1544 NFS statedir [default=/var/lib/nfs]
1545 --with-statduser=rpcuser
1546 statd to run under [rpcuser or nobody]
1547 --with-start-statd=scriptname
1548 When an nfs filesystems is mounted with locking, run
1550 --with-rpcgen=internal use internal rpcgen instead of system one
1551 --with-mountfile=filename
1552 Using filename as the NFS mount options file
1553 [/etc/nfsmounts.conf]
1554 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1555 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1556 (optionally in PATH)
1557 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-sysroot=DIR Search for dependent libraries within DIR
1561 (or the compiler's sysroot if not specified).
1562 --with-krb5=DIR use Kerberos v5 installation in DIR
1563 --with-gssglue Use libgssglue for GSS support
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
1576 CXXCPP C++ preprocessor
1577 PKG_CONFIG path to pkg-config utility
1579 directories to add to pkg-config's search path
1581 path overriding pkg-config's built-in search path
1583 C compiler flags for GSSGLUE, overriding pkg-config
1585 linker flags for GSSGLUE, overriding pkg-config
1587 C compiler flags for RPCSECGSS, overriding pkg-config
1589 linker flags for RPCSECGSS, overriding pkg-config
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to <linux-nfs@vger.kernel.org>.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1624 .) # We are building in place.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1657 linux nfs-utils configure 1.2.8
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 test -x conftest$ac_exeext
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_link
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1797 ac_fn_c_check_header_mongrel ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if eval \${$3+:} false; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1821 ac_header_compiler=no
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1837 ac_header_preproc=no
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ( $as_echo "## ---------------------------------------- ##
1863 ## Report this to linux-nfs@vger.kernel.org ##
1864 ## ---------------------------------------- ##"
1865 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 eval "$3=\$ac_header_compiler"
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_mongrel
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }; then :
1913 $as_echo "$as_me: program exited with status $ac_status" >&5
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=$ac_status
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_compile
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971 #define $2 innocuous_$2
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below.
1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976 <limits.h> exists even on freestanding compilers. */
1979 # include <limits.h>
1981 # include <assert.h>
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
2008 if ac_fn_c_try_link "$LINENO"; then :
2013 rm -f core conftest.err conftest.$ac_objext \
2014 conftest$ac_exeext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_func
2023 # ac_fn_cxx_try_compile LINENO
2024 # ----------------------------
2025 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2026 ac_fn_cxx_try_compile ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 rm -f conftest.$ac_objext
2030 if { { ac_try="$ac_compile"
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_compile") 2>conftest.err
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && {
2046 test -z "$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2048 } && test -s conftest.$ac_objext; then :
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2059 } # ac_fn_cxx_try_compile
2061 # ac_fn_cxx_try_cpp LINENO
2062 # ------------------------
2063 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_cxx_try_cpp ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if { { ac_try="$ac_cpp conftest.$ac_ext"
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2076 if test -s conftest.err; then
2077 grep -v '^ *+' conftest.err >conftest.er1
2078 cat conftest.er1 >&5
2079 mv -f conftest.er1 conftest.err
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; } > conftest.i && {
2083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2084 test ! -s conftest.err
2088 $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 as_fn_set_status $ac_retval
2096 } # ac_fn_cxx_try_cpp
2098 # ac_fn_cxx_try_link LINENO
2099 # -------------------------
2100 # Try to link conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_link ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 rm -f conftest.$ac_objext conftest$ac_exeext
2105 if { { ac_try="$ac_link"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_link") 2>conftest.err
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_cxx_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest$ac_exeext && {
2124 test "$cross_compiling" = yes ||
2125 test -x conftest$ac_exeext
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2134 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2135 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2136 # interfere with the next link command; also delete a directory that is
2137 # left behind by Apple's compiler. We do this before executing the actions.
2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 as_fn_set_status $ac_retval
2142 } # ac_fn_cxx_try_link
2144 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2145 # -------------------------------------------
2146 # Tests whether TYPE exists after having included INCLUDES, setting cache
2147 # variable VAR accordingly.
2148 ac_fn_c_check_type ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2182 if ac_fn_c_try_compile "$LINENO"; then :
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196 } # ac_fn_c_check_type
2198 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2199 # --------------------------------------------
2200 # Tries to find the compile-time value of EXPR in a program that includes
2201 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2203 ac_fn_c_compute_int ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if test "$cross_compiling" = yes; then
2207 # Depending upon the size, compute the lo and hi bounds.
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) >= 0)];
2216 return test_array [0];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2233 return test_array [0];
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_hi=$ac_mid; break
2242 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2243 if test $ac_lo -le $ac_mid; then
2247 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) < 0)];
2260 return test_array [0];
2266 if ac_fn_c_try_compile "$LINENO"; then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 ac_lo=$ac_mid; break
2286 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2287 if test $ac_mid -le $ac_hi; then
2291 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 # Binary search between lo and hi bounds.
2302 while test "x$ac_lo" != "x$ac_hi"; do
2303 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2310 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2312 return test_array [0];
2318 if ac_fn_c_try_compile "$LINENO"; then :
2321 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2333 static long int longval () { return $2; }
2334 static unsigned long int ulongval () { return $2; }
2341 FILE *f = fopen ("conftest.val", "w");
2346 long int i = longval ();
2349 fprintf (f, "%ld", i);
2353 unsigned long int i = ulongval ();
2356 fprintf (f, "%lu", i);
2358 /* Do not output a trailing newline, as this causes \r\n confusion
2359 on some platforms. */
2360 return ferror (f) || fclose (f) != 0;
2366 if ac_fn_c_try_run "$LINENO"; then :
2367 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2372 conftest.$ac_objext conftest.beam conftest.$ac_ext
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377 as_fn_set_status $ac_retval
2379 } # ac_fn_c_compute_int
2380 cat >config.log <<_ACEOF
2381 This file contains any messages produced by compilers while
2382 running configure, to aid debugging if configure makes a mistake.
2384 It was created by linux nfs-utils $as_me 1.2.8, which was
2385 generated by GNU Autoconf 2.69. Invocation command line was
2397 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2398 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2399 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2400 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2401 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2403 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2404 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2406 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2407 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2408 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2409 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2410 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2411 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2412 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 $as_echo "PATH: $as_dir"
2437 # Keep a trace of the command line.
2438 # Strip out --no-create and --no-recursion so they do not pile up.
2439 # Strip out --silent because we don't want to record it for future runs.
2440 # Also quote any args containing shell meta-characters.
2441 # Make two passes to allow for proper duplicate-argument suppression.
2445 ac_must_keep_next=false
2451 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2453 | -silent | --silent | --silen | --sile | --sil)
2456 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2459 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2461 as_fn_append ac_configure_args1 " '$ac_arg'"
2462 if test $ac_must_keep_next = true; then
2463 ac_must_keep_next=false # Got value, back to normal.
2466 *=* | --config-cache | -C | -disable-* | --disable-* \
2467 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2468 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2469 | -with-* | --with-* | -without-* | --without-* | --x)
2470 case "$ac_configure_args0 " in
2471 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2474 -* ) ac_must_keep_next=true ;;
2477 as_fn_append ac_configure_args " '$ac_arg'"
2482 { ac_configure_args0=; unset ac_configure_args0;}
2483 { ac_configure_args1=; unset ac_configure_args1;}
2485 # When interrupted or exit'd, cleanup temporary files, and complete
2486 # config.log. We remove comments because anyway the quotes in there
2487 # would cause problems or look ugly.
2488 # WARNING: Use '\'' to represent an apostrophe within the trap.
2489 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2490 trap 'exit_status=$?
2491 # Save into config.log some information that might help in debugging.
2495 $as_echo "## ---------------- ##
2496 ## Cache variables. ##
2497 ## ---------------- ##"
2499 # The following way of writing the cache mishandles newlines in values,
2501 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2502 eval ac_val=\$$ac_var
2506 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2507 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2510 _ | IFS | as_nl) ;; #(
2511 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2512 *) { eval $ac_var=; unset $ac_var;} ;;
2517 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2518 *${as_nl}ac_space=\ *)
2520 "s/'\''/'\''\\\\'\'''\''/g;
2521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531 $as_echo "## ----------------- ##
2532 ## Output variables. ##
2533 ## ----------------- ##"
2535 for ac_var in $ac_subst_vars
2537 eval ac_val=\$$ac_var
2539 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541 $as_echo "$ac_var='\''$ac_val'\''"
2545 if test -n "$ac_subst_files"; then
2546 $as_echo "## ------------------- ##
2547 ## File substitutions. ##
2548 ## ------------------- ##"
2550 for ac_var in $ac_subst_files
2552 eval ac_val=\$$ac_var
2554 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 $as_echo "$ac_var='\''$ac_val'\''"
2561 if test -s confdefs.h; then
2562 $as_echo "## ----------- ##
2569 test "$ac_signal" != 0 &&
2570 $as_echo "$as_me: caught signal $ac_signal"
2571 $as_echo "$as_me: exit $exit_status"
2573 rm -f core *.core core.conftest.* &&
2574 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2577 for ac_signal in 1 2 13 15; do
2578 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2583 rm -f -r conftest* confdefs.h
2585 $as_echo "/* confdefs.h */" > confdefs.h
2587 # Predefined preprocessor variables.
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_NAME "$PACKAGE_NAME"
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_STRING "$PACKAGE_STRING"
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_URL "$PACKAGE_URL"
2614 # Let the site file select an alternate cache file if it wants to.
2615 # Prefer an explicitly selected file to automatically selected ones.
2618 if test -n "$CONFIG_SITE"; then
2619 # We do not want a PATH search for config.site.
2620 case $CONFIG_SITE in #((
2621 -*) ac_site_file1=./$CONFIG_SITE;;
2622 */*) ac_site_file1=$CONFIG_SITE;;
2623 *) ac_site_file1=./$CONFIG_SITE;;
2625 elif test "x$prefix" != xNONE; then
2626 ac_site_file1=$prefix/share/config.site
2627 ac_site_file2=$prefix/etc/config.site
2629 ac_site_file1=$ac_default_prefix/share/config.site
2630 ac_site_file2=$ac_default_prefix/etc/config.site
2632 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2634 test "x$ac_site_file" = xNONE && continue
2635 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2637 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2638 sed 's/^/| /' "$ac_site_file" >&5
2640 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 as_fn_error $? "failed to load site script $ac_site_file
2643 See \`config.log' for more details" "$LINENO" 5; }
2647 if test -r "$cache_file"; then
2648 # Some versions of bash will fail to source /dev/null (special files
2649 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2650 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2652 $as_echo "$as_me: loading cache $cache_file" >&6;}
2654 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2655 *) . "./$cache_file";;
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2660 $as_echo "$as_me: creating cache $cache_file" >&6;}
2664 # Check that the precious variables saved in the cache have kept the same
2666 ac_cache_corrupted=false
2667 for ac_var in $ac_precious_vars; do
2668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669 eval ac_new_set=\$ac_env_${ac_var}_set
2670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671 eval ac_new_val=\$ac_env_${ac_var}_value
2672 case $ac_old_set,$ac_new_set in
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2683 if test "x$ac_old_val" != "x$ac_new_val"; then
2684 # differences in whitespace do not lead to failure.
2685 ac_old_val_w=`echo x $ac_old_val`
2686 ac_new_val_w=`echo x $ac_new_val`
2687 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690 ac_cache_corrupted=:
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694 eval $ac_var=\$ac_old_val
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2697 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2699 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2702 # Pass precious variables to config.status.
2703 if test "$ac_new_set" = set; then
2705 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 *) ac_arg=$ac_var=$ac_new_val ;;
2708 case " $ac_configure_args " in
2709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2710 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2714 if $ac_cache_corrupted; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2719 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2721 ## -------------------- ##
2722 ## Main body of script. ##
2723 ## -------------------- ##
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2734 if test -f "$ac_dir/install-sh"; then
2736 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 elif test -f "$ac_dir/install.sh"; then
2740 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 elif test -f "$ac_dir/shtool"; then
2744 ac_install_sh="$ac_aux_dir/shtool install -c"
2748 if test -z "$ac_aux_dir"; then
2749 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2752 # These three variables are undocumented and unsupported,
2753 # and are intended to be withdrawn in a future Autoconf release.
2754 # They can cause serious problems if a builder's source tree is in a directory
2755 # whose full name contains unusual characters.
2756 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2757 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2758 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2761 # Make sure we can run config.sub.
2762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 $as_echo_n "checking build system type... " >&6; }
2767 if ${ac_cv_build+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 ac_build_alias=$build_alias
2771 test "x$ac_build_alias" = x &&
2772 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773 test "x$ac_build_alias" = x &&
2774 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 $as_echo "$ac_cv_build" >&6; }
2781 case $ac_cv_build in
2783 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2786 ac_save_IFS=$IFS; IFS='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 $as_echo_n "checking host system type... " >&6; }
2801 if ${ac_cv_host+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 if test "x$host_alias" = x; then
2805 ac_cv_host=$ac_cv_build
2807 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 $as_echo "$ac_cv_host" >&6; }
2816 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2819 ac_save_IFS=$IFS; IFS='-'
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2833 am__api_version='1.12'
2835 # Find a good install program. We prefer a C program (faster),
2836 # so one script is as good as another. But avoid the broken or
2837 # incompatible versions:
2838 # SysV /etc/install, /usr/sbin/install
2839 # SunOS /usr/etc/install
2840 # IRIX /sbin/install
2842 # AmigaOS /C/install, which installs bootblocks on floppy discs
2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 # OS/2's system install, which has a completely different semantic
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 # Reject install programs that cannot install multiple files.
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2850 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2851 if test -z "$INSTALL"; then
2852 if ${ac_cv_path_install+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 # Account for people who put trailing slashes in PATH elements.
2861 case $as_dir/ in #((
2862 ./ | .// | /[cC]/* | \
2863 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2864 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2867 # OSF1 and SCO ODT 3.0 have their own names for install.
2868 # Don't use installbsd from OSF since it installs stuff as root
2870 for ac_prog in ginstall scoinst install; do
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2873 if test $ac_prog = install &&
2874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875 # AIX install. It has an incompatible calling convention.
2877 elif test $ac_prog = install &&
2878 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879 # program-specific install script used by HP pwplus--don't use.
2882 rm -rf conftest.one conftest.two conftest.dir
2883 echo one > conftest.one
2884 echo two > conftest.two
2886 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2887 test -s conftest.one && test -s conftest.two &&
2888 test -s conftest.dir/conftest.one &&
2889 test -s conftest.dir/conftest.two
2891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2904 rm -rf conftest.one conftest.two conftest.dir
2907 if test "${ac_cv_path_install+set}" = set; then
2908 INSTALL=$ac_cv_path_install
2910 # As a last resort, use the slow shell script. Don't cache a
2911 # value for INSTALL within a source directory, because that will
2912 # break other packages using the cache if that directory is
2913 # removed, or if the value is a relative name.
2914 INSTALL=$ac_install_sh
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2918 $as_echo "$INSTALL" >&6; }
2920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2921 # It thinks the first close brace ends the variable substitution.
2922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2929 $as_echo_n "checking whether build environment is sane... " >&6; }
2930 # Reject unsafe characters in $srcdir or the absolute working directory
2931 # name. Accept space and tab only in the latter.
2935 *[\\\"\#\$\&\'\`$am_lf]*)
2936 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2939 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2940 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2943 # Do 'set' in a subshell so we don't clobber the current shell's
2944 # arguments. Must try -L first in case configure is actually a
2945 # symlink; some systems play weird games with the mod time of symlinks
2946 # (eg FreeBSD returns the mod time of the symlink's containing
2950 for am_try in 1 2; do
2951 echo "timestamp, slept: $am_has_slept" > conftest.file
2952 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2953 if test "$*" = "X"; then
2955 set X `ls -t "$srcdir/configure" conftest.file`
2957 if test "$*" != "X $srcdir/configure conftest.file" \
2958 && test "$*" != "X conftest.file $srcdir/configure"; then
2960 # If neither matched, then we have a broken ls. This can happen
2961 # if, for instance, CONFIG_SHELL is bash and it inherits a
2962 # broken ls alias from the environment. This has actually
2963 # happened. Such a system could not be considered "sane".
2964 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2965 alias in your environment" "$LINENO" 5
2967 if test "$2" = conftest.file || test $am_try -eq 2; then
2974 test "$2" = conftest.file
2980 as_fn_error $? "newly created file is older than distributed files!
2981 Check your system clock" "$LINENO" 5
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984 $as_echo "yes" >&6; }
2985 # If we didn't sleep, we still need to ensure time stamps of config.status and
2986 # generated files are strictly newer.
2988 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2995 test "$program_prefix" != NONE &&
2996 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2997 # Use a double $ so make ignores it.
2998 test "$program_suffix" != NONE &&
2999 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3000 # Double any \ or $.
3001 # By default was `s,x,x', remove it if useless.
3002 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3003 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3005 # expand $ac_aux_dir to an absolute path
3006 am_aux_dir=`cd $ac_aux_dir && pwd`
3008 if test x"${MISSING+set}" != xset; then
3011 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3013 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --run true"; then
3018 am_missing_run="$MISSING --run "
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3022 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3025 if test x"${install_sh}" != xset; then
3028 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3030 install_sh="\${SHELL} $am_aux_dir/install-sh"
3034 # Installed binaries are usually stripped using 'strip' when the user
3035 # run "make install-strip". However 'strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the 'STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}strip; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_STRIP+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$STRIP"; then
3048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 STRIP=$ac_cv_prog_STRIP
3068 if test -n "$STRIP"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3070 $as_echo "$STRIP" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_STRIP"; then
3080 # Extract the first word of "strip", so it can be a program name with args.
3081 set dummy strip; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$ac_ct_STRIP"; then
3088 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_STRIP="strip"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3108 if test -n "$ac_ct_STRIP"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3110 $as_echo "$ac_ct_STRIP" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_STRIP" = x; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3128 STRIP="$ac_cv_prog_STRIP"
3132 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3136 if test -z "$MKDIR_P"; then
3137 if ${ac_cv_path_mkdir+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3144 test -z "$as_dir" && as_dir=.
3145 for ac_prog in mkdir gmkdir; do
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3149 'mkdir (GNU coreutils) '* | \
3150 'mkdir (coreutils) '* | \
3151 'mkdir (fileutils) '4.1*)
3152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3162 test -d ./--version && rmdir ./--version
3163 if test "${ac_cv_path_mkdir+set}" = set; then
3164 MKDIR_P="$ac_cv_path_mkdir -p"
3166 # As a last resort, use the slow shell script. Don't cache a
3167 # value for MKDIR_P within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the value is a relative name.
3170 MKDIR_P="$ac_install_sh -d"
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3174 $as_echo "$MKDIR_P" >&6; }
3176 for ac_prog in gawk mawk nawk awk
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_AWK+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$AWK"; then
3186 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_AWK="$ac_prog"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 if test -n "$AWK"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3208 $as_echo "$AWK" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3215 test -n "$AWK" && break
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3221 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3222 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3223 $as_echo_n "(cached) " >&6
3225 cat >conftest.make <<\_ACEOF
3228 @echo '@@@%%%=$(MAKE)=@@@%%%'
3230 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3233 eval ac_cv_prog_make_${ac_make}_set=yes;;
3235 eval ac_cv_prog_make_${ac_make}_set=no;;
3239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 SET_MAKE="MAKE=${MAKE-make}"
3249 rm -rf .tst 2>/dev/null
3250 mkdir .tst 2>/dev/null
3251 if test -d .tst; then
3256 rmdir .tst 2>/dev/null
3258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3260 # is not polluted with repeated "-I."
3261 am__isrc=' -I$(srcdir)'
3262 # test to see if srcdir already configured
3263 if test -f $srcdir/config.status; then
3264 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3268 # test whether we have cygpath
3269 if test -z "$CYGPATH_W"; then
3270 if (cygpath --version) >/dev/null 2>/dev/null; then
3271 CYGPATH_W='cygpath -w'
3278 # Define the identity of the package.
3283 cat >>confdefs.h <<_ACEOF
3284 #define PACKAGE "$PACKAGE"
3288 cat >>confdefs.h <<_ACEOF
3289 #define VERSION "$VERSION"
3292 # Some tools Automake needs.
3294 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3297 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3300 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3303 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3306 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3308 # For better backward compatibility. To be removed once Automake 1.9.x
3309 # dies out for good. For more background, see:
3310 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3311 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3312 mkdir_p='$(MKDIR_P)'
3314 # We need awk for the "check" target. The system "awk" is bad on
3316 # Always define AMTAR for backward compatibility. Yes, it's still used
3317 # in the wild :-( We should find a proper way to deprecate it ...
3320 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3330 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3331 # Check whether --enable-maintainer-mode was given.
3332 if test "${enable_maintainer_mode+set}" = set; then :
3333 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3335 USE_MAINTAINER_MODE=no
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3339 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3340 if test $USE_MAINTAINER_MODE = yes; then
3341 MAINTAINER_MODE_TRUE=
3342 MAINTAINER_MODE_FALSE='#'
3344 MAINTAINER_MODE_TRUE='#'
3345 MAINTAINER_MODE_FALSE=
3348 MAINT=$MAINTAINER_MODE_TRUE
3353 # Check whether --with-release was given.
3354 if test "${with_release+set}" = set; then :
3355 withval=$with_release; RELEASE=$withval
3362 # Check whether --with-statedir was given.
3363 if test "${with_statedir+set}" = set; then :
3364 withval=$with_statedir; statedir=$withval
3366 statedir=/var/lib/nfs
3371 # Check whether --with-statdpath was given.
3372 if test "${with_statdpath+set}" = set; then :
3373 withval=$with_statdpath; statdpath=$withval
3381 # Check whether --with-statduser was given.
3382 if test "${with_statduser+set}" = set; then :
3383 withval=$with_statduser; statduser=$withval
3385 if test "x$cross_compiling" = "xno"; then
3386 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3398 # Check whether --with-start-statd was given.
3399 if test "${with_start_statd+set}" = set; then :
3400 withval=$with_start_statd; startstatd=$withval
3402 startstatd=/usr/sbin/start-statd
3408 cat >>confdefs.h <<_ACEOF
3409 #define START_STATD "$startstatd"
3412 # Check whether --enable-nfsv4 was given.
3413 if test "${enable_nfsv4+set}" = set; then :
3414 enableval=$enable_nfsv4; enable_nfsv4=$enableval
3419 if test "$enable_nfsv4" = yes; then
3427 if test "$enable_nfsv4" = "yes"; then
3429 CONFIG_NFSV4_FALSE='#'
3431 CONFIG_NFSV4_TRUE='#'
3436 # Check whether --enable-nfsv41 was given.
3437 if test "${enable_nfsv41+set}" = set; then :
3438 enableval=$enable_nfsv41; enable_nfsv41=$enableval
3443 if test "$enable_nfsv41" = yes; then
3444 if test "$enable_nfsv4" != yes; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NFS v4 is not enabled. Disabling NFS v4.1" >&5
3446 $as_echo "$as_me: WARNING: NFS v4 is not enabled. Disabling NFS v4.1" >&2;}
3455 if test "$enable_nfsv41" = "yes"; then
3457 CONFIG_NFSV41_FALSE='#'
3459 CONFIG_NFSV41_TRUE='#'
3460 CONFIG_NFSV41_FALSE=
3464 # Check whether --enable-gss was given.
3465 if test "${enable_gss+set}" = set; then :
3466 enableval=$enable_gss; enable_gss=$enableval
3471 if test "$enable_gss" = yes; then
3482 if test "$enable_gss" = "yes"; then
3484 CONFIG_GSS_FALSE='#'
3490 # Check whether --enable-kprefix was given.
3491 if test "${enable_kprefix+set}" = set; then :
3492 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3499 # Check whether --with-rpcgen was given.
3500 if test "${with_rpcgen+set}" = set; then :
3501 withval=$with_rpcgen; rpcgen_path=$withval
3507 if test "$rpcgen_path" = "yes"; then
3508 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3509 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3510 elif test "$rpcgen_path" != "internal"; then
3511 RPCGEN_PATH=$rpcgen_path
3514 if test "$RPCGEN_PATH" = ""; then
3516 CONFIG_RPCGEN_FALSE='#'
3518 CONFIG_RPCGEN_TRUE='#'
3519 CONFIG_RPCGEN_FALSE=
3522 # Check whether --enable-uuid was given.
3523 if test "${enable_uuid+set}" = set; then :
3524 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3526 choose_blkid=default
3529 # Check whether --enable-mount was given.
3530 if test "${enable_mount+set}" = set; then :
3531 enableval=$enable_mount; enable_mount=$enableval
3536 if test "$enable_mount" = "yes"; then
3538 CONFIG_MOUNT_FALSE='#'
3540 CONFIG_MOUNT_TRUE='#'
3545 if test "$enable_mount" = yes; then
3546 # Check whether --enable-libmount-mount was given.
3547 if test "${enable_libmount_mount+set}" = set; then :
3548 enableval=$enable_libmount_mount; enable_libmount=$enableval
3555 # Check whether --enable-tirpc was given.
3556 if test "${enable_tirpc+set}" = set; then :
3557 enableval=$enable_tirpc; enable_tirpc=$enableval
3562 # Check whether --enable-ipv6 was given.
3563 if test "${enable_ipv6+set}" = set; then :
3564 enableval=$enable_ipv6; enable_ipv6=$enableval
3569 if test "$enable_ipv6" = yes; then
3571 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3577 if test "$enable_ipv6" = "yes"; then
3579 CONFIG_IPV6_FALSE='#'
3581 CONFIG_IPV6_TRUE='#'
3586 if test "$enable_mount" = yes; then
3587 # Check whether --enable-mountconfig was given.
3588 if test "${enable_mountconfig+set}" = set; then :
3589 enableval=$enable_mountconfig; mountconfig=$enableval
3594 if test "$enable_mountconfig" = yes; then
3596 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3599 # Check whether --with-mountfile was given.
3600 if test "${with_mountfile+set}" = set; then :
3601 withval=$with_mountfile; mountfile=$withval
3603 mountfile=/etc/nfsmount.conf
3608 cat >>confdefs.h <<_ACEOF
3609 #define MOUNTOPTS_CONFFILE "$mountfile"
3616 if test "$enable_mountconfig" = "yes"; then
3618 MOUNT_CONFIG_FALSE='#'
3620 MOUNT_CONFIG_TRUE='#'
3625 if test "$enable_mount" = "yes"; then
3627 MOUNT_CONFIG_FALSE='#'
3629 MOUNT_CONFIG_TRUE='#'
3635 # Check whether --enable-nfsdcltrack was given.
3636 if test "${enable_nfsdcltrack+set}" = set; then :
3637 enableval=$enable_nfsdcltrack; enable_nfsdctrack=$enableval
3639 enable_nfsdcltrack="yes"
3643 DEPDIR="${am__leading_dot}deps"
3645 ac_config_commands="$ac_config_commands depfiles"
3648 am_make=${MAKE-make}
3649 cat > confinc << 'END'
3651 @echo this is the am__doit target
3654 # If we don't find an include directive, just comment out the code.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3656 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3660 # First try GNU make style include.
3661 echo "include confinc" > confmf
3662 # Ignore all kinds of additional output from 'make'.
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3670 # Now try BSD make style include.
3671 if test "$am__include" = "#"; then
3672 echo '.include "confinc"' > confmf
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3675 am__include=.include
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3684 $as_echo "$_am_result" >&6; }
3685 rm -f confinc confmf
3687 # Check whether --enable-dependency-tracking was given.
3688 if test "${enable_dependency_tracking+set}" = set; then :
3689 enableval=$enable_dependency_tracking;
3692 if test "x$enable_dependency_tracking" != xno; then
3693 am_depcomp="$ac_aux_dir/depcomp"
3697 if test "x$enable_dependency_tracking" != xno; then
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_CC+:} false; then :
3717 $as_echo_n "(cached) " >&6
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 if test -n "$CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 $as_echo "$CC" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3750 if test -z "$ac_cv_prog_CC"; then
3752 # Extract the first word of "gcc", so it can be a program name with args.
3753 set dummy gcc; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3757 $as_echo_n "(cached) " >&6
3759 if test -n "$ac_ct_CC"; then
3760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_ac_ct_CC="gcc"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3780 if test -n "$ac_ct_CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3782 $as_echo "$ac_ct_CC" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3788 if test "x$ac_ct_CC" = x; then
3791 case $cross_compiling:$ac_tool_warned in
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3803 if test -z "$CC"; then
3804 if test -n "$ac_tool_prefix"; then
3805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3806 set dummy ${ac_tool_prefix}cc; ac_word=$2
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 $as_echo_n "checking for $ac_word... " >&6; }
3809 if ${ac_cv_prog_CC+:} false; then :
3810 $as_echo_n "(cached) " >&6
3812 if test -n "$CC"; then
3813 ac_cv_prog_CC="$CC" # Let the user override the test.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_CC="${ac_tool_prefix}cc"
3823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 if test -n "$CC"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3844 if test -z "$CC"; then
3845 # Extract the first word of "cc", so it can be a program name with args.
3846 set dummy cc; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_prog_CC+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 if test -n "$CC"; then
3853 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3864 ac_prog_rejected=yes
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 if test $ac_prog_rejected = yes; then
3876 # We found a bogon in the path, so make sure we never use it.
3877 set dummy $ac_cv_prog_CC
3879 if test $# != 0; then
3880 # We chose a different compiler from the bogus one.
3881 # However, it has the same basename, so the bogon will be chosen
3882 # first if we set CC to just the basename; use the full file name.
3884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890 if test -n "$CC"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892 $as_echo "$CC" >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3900 if test -z "$CC"; then
3901 if test -n "$ac_tool_prefix"; then
3902 for ac_prog in cl.exe
3904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_CC+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3941 test -n "$CC" && break
3944 if test -z "$CC"; then
3946 for ac_prog in cl.exe
3948 # Extract the first word of "$ac_prog", so it can be a program name with args.
3949 set dummy $ac_prog; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3953 $as_echo_n "(cached) " >&6
3955 if test -n "$ac_ct_CC"; then
3956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_ac_ct_CC="$ac_prog"
3966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3976 if test -n "$ac_ct_CC"; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3978 $as_echo "$ac_ct_CC" >&6; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3985 test -n "$ac_ct_CC" && break
3988 if test "x$ac_ct_CC" = x; then
3991 case $cross_compiling:$ac_tool_warned in
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995 ac_tool_warned=yes ;;
4004 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error $? "no acceptable C compiler found in \$PATH
4007 See \`config.log' for more details" "$LINENO" 5; }
4009 # Provide some information about the compiler.
4010 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4013 for ac_option in --version -v -V -qversion; do
4014 { { ac_try="$ac_compiler $ac_option >&5"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4023 if test -s conftest.err; then
4025 ... rest of stderr output deleted ...
4026 10q' conftest.err >conftest.er1
4027 cat conftest.er1 >&5
4029 rm -f conftest.er1 conftest.err
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4045 ac_clean_files_save=$ac_clean_files
4046 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4047 # Try to create an executable without -o first, disregard a.out.
4048 # It will help us diagnose broken compilers, and finding out an intuition
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4051 $as_echo_n "checking whether the C compiler works... " >&6; }
4052 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4054 # The possible output files:
4055 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4058 for ac_file in $ac_files
4061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4067 if { { ac_try="$ac_link_default"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link_default") 2>&5
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4079 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4080 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4081 # so that the user can short-circuit this test for compilers unknown to
4083 for ac_file in $ac_files ''
4085 test -f "$ac_file" || continue
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4090 # We found the default executable, but exeext='' is most
4094 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4098 # We set ac_cv_exeext here because the later test for it is not
4099 # safe: cross compilers may not add the suffix if given an `-o'
4100 # argument, so we may need to know it at that point already.
4101 # Even if this section looks crufty: it has the advantage of
4108 test "$ac_cv_exeext" = no && ac_cv_exeext=
4113 if test -z "$ac_file"; then :
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 $as_echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error 77 "C compiler cannot create executables
4122 See \`config.log' for more details" "$LINENO" 5; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125 $as_echo "yes" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4128 $as_echo_n "checking for C compiler default output file name... " >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4130 $as_echo "$ac_file" >&6; }
4131 ac_exeext=$ac_cv_exeext
4133 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4134 ac_clean_files=$ac_clean_files_save
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4136 $as_echo_n "checking for suffix of executables... " >&6; }
4137 if { { ac_try="$ac_link"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_link") 2>&5
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; then :
4148 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4149 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4150 # work properly (i.e., refer to `conftest.exe'), while it won't with
4152 for ac_file in conftest.exe conftest conftest.*; do
4153 test -f "$ac_file" || continue
4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4156 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4165 See \`config.log' for more details" "$LINENO" 5; }
4167 rm -f conftest conftest$ac_cv_exeext
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4169 $as_echo "$ac_cv_exeext" >&6; }
4171 rm -f conftest.$ac_ext
4172 EXEEXT=$ac_cv_exeext
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4180 FILE *f = fopen ("conftest.out", "w");
4181 return ferror (f) || fclose (f) != 0;
4187 ac_clean_files="$ac_clean_files conftest.out"
4188 # Check that the compiler produces executables we can run. If not, either
4189 # the compiler is broken, or we cross compile.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4191 $as_echo_n "checking whether we are cross compiling... " >&6; }
4192 if test "$cross_compiling" != yes; then
4193 { { ac_try="$ac_link"
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_link") 2>&5
4202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203 test $ac_status = 0; }
4204 if { ac_try='./conftest$ac_cv_exeext'
4205 { { case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 $as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_try") 2>&5
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }; }; then
4217 if test "$cross_compiling" = maybe; then
4220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222 as_fn_error $? "cannot run C compiled programs.
4223 If you meant to cross compile, use \`--host'.
4224 See \`config.log' for more details" "$LINENO" 5; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4229 $as_echo "$cross_compiling" >&6; }
4231 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4232 ac_clean_files=$ac_clean_files_save
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4234 $as_echo_n "checking for suffix of object files... " >&6; }
4235 if ${ac_cv_objext+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 rm -f conftest.o conftest.obj
4250 if { { ac_try="$ac_compile"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_compile") 2>&5
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }; then :
4261 for ac_file in conftest.o conftest.obj conftest.*; do
4262 test -f "$ac_file" || continue;
4264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4270 $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275 as_fn_error $? "cannot compute suffix of object files: cannot compile
4276 See \`config.log' for more details" "$LINENO" 5; }
4278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4281 $as_echo "$ac_cv_objext" >&6; }
4282 OBJEXT=$ac_cv_objext
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4285 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4286 if ${ac_cv_c_compiler_gnu+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4303 if ac_fn_c_try_compile "$LINENO"; then :
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4313 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4314 if test $ac_compiler_gnu = yes; then
4319 ac_test_CFLAGS=${CFLAGS+set}
4320 ac_save_CFLAGS=$CFLAGS
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4322 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4323 if ${ac_cv_prog_cc_g+:} false; then :
4324 $as_echo_n "(cached) " >&6
4326 ac_save_c_werror_flag=$ac_c_werror_flag
4327 ac_c_werror_flag=yes
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 if ac_fn_c_try_compile "$LINENO"; then :
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4356 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_c_werror_flag=$ac_save_c_werror_flag
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4372 if ac_fn_c_try_compile "$LINENO"; then :
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 ac_c_werror_flag=$ac_save_c_werror_flag
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4383 $as_echo "$ac_cv_prog_cc_g" >&6; }
4384 if test "$ac_test_CFLAGS" = set; then
4385 CFLAGS=$ac_save_CFLAGS
4386 elif test $ac_cv_prog_cc_g = yes; then
4387 if test "$GCC" = yes; then
4393 if test "$GCC" = yes; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4401 if ${ac_cv_prog_cc_c89+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 ac_cv_prog_cc_c89=no
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4412 struct buf { int x; };
4413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4414 static char *e (p, i)
4420 static char *f (char * (*g) (char **, int), char **p, ...)
4425 s = g (p, va_arg (v,int));
4430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4431 function prototypes and stuff, but not '\xHH' hex character constants.
4432 These don't provoke an error unfortunately, instead are silently treated
4433 as 'x'. The following induces an error, until -std is added to get
4434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4435 array size at least. It's necessary to write '\x00'==0 to get something
4436 that's true only with -std. */
4437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4439 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4440 inside strings and character constants. */
4442 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4444 int test (int i, double x);
4445 struct s1 {int (*f) (int a);};
4446 struct s2 {int (*f) (double a);};
4447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4459 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4461 CC="$ac_save_CC $ac_arg"
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_prog_cc_c89=$ac_arg
4465 rm -f core conftest.err conftest.$ac_objext
4466 test "x$ac_cv_prog_cc_c89" != "xno" && break
4468 rm -f conftest.$ac_ext
4473 case "x$ac_cv_prog_cc_c89" in
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4476 $as_echo "none needed" >&6; } ;;
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4479 $as_echo "unsupported" >&6; } ;;
4481 CC="$CC $ac_cv_prog_cc_c89"
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4485 if test "x$ac_cv_prog_cc_c89" != xno; then :
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 depcc="$CC" am_compiler_list=
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498 $as_echo_n "checking dependency style of $depcc... " >&6; }
4499 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4503 # We make a subdir and do the tests there. Otherwise we can end up
4504 # making bogus files that we don't know about and never remove. For
4505 # instance it was reported that on HP-UX the gcc test will end up
4506 # making a dummy file named 'D' -- because '-MD' means "put the output
4510 # Copy depcomp to subdir because otherwise we won't find it if we're
4511 # using a relative directory.
4512 cp "$am_depcomp" conftest.dir
4514 # We will build objects and dependencies in a subdirectory because
4515 # it helps to detect inapplicable dependency modes. For instance
4516 # both Tru64's cc and ICC support -MD to output dependencies as a
4517 # side effect of compilation, but ICC will put the dependencies in
4518 # the current directory while Tru64 will put them in the object
4522 am_cv_CC_dependencies_compiler_type=none
4523 if test "$am_compiler_list" = ""; then
4524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4527 case " $depcc " in #(
4528 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4531 for depmode in $am_compiler_list; do
4532 # Setup a source with many dependencies, because some compilers
4533 # like to wrap large dependency lists on column 80 (with \), and
4534 # we should not choose a depcomp mode which is confused by this.
4536 # We need to recreate these files for each test, as the compiler may
4537 # overwrite some of them when testing with obscure command lines.
4538 # This happens at least with the AIX C compiler.
4540 for i in 1 2 3 4 5 6; do
4541 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4542 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4543 # Solaris 10 /bin/sh.
4544 echo '/* dummy */' > sub/conftst$i.h
4546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4548 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4549 # mode. It turns out that the SunPro C++ compiler does not properly
4550 # handle '-M -o', and we need to detect this. Also, some Intel
4551 # versions had trouble with output in subdirs.
4552 am__obj=sub/conftest.${OBJEXT-o}
4553 am__minus_obj="-o $am__obj"
4556 # This depmode causes a compiler race in universal mode.
4557 test "$am__universal" = false || continue
4560 # After this tag, mechanisms are not by side-effect, so they'll
4561 # only be used when explicitly requested.
4562 if test "x$enable_dependency_tracking" = xyes; then
4568 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4569 # This compiler won't grok '-c -o', but also, the minuso test has
4570 # not run yet. These depmodes are late enough in the game, and
4571 # so weak that their functioning should not be impacted.
4572 am__obj=conftest.${OBJEXT-o}
4577 if depmode=$depmode \
4578 source=sub/conftest.c object=$am__obj \
4579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4581 >/dev/null 2>conftest.err &&
4582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4586 # icc doesn't choke on unknown options, it will just issue warnings
4587 # or remarks (even with -Werror). So we grep stderr for any message
4588 # that says an option was ignored or not supported.
4589 # When given -MP, icc 7.0 and 7.1 complain thusly:
4590 # icc: Command line warning: ignoring option '-M'; no argument required
4591 # The diagnosis changed in icc 8.0:
4592 # icc: Command line remark: option '-MP' not supported
4593 if (grep 'ignoring option' conftest.err ||
4594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4595 am_cv_CC_dependencies_compiler_type=$depmode
4604 am_cv_CC_dependencies_compiler_type=none
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4609 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4610 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4613 test "x$enable_dependency_tracking" != xno \
4614 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4616 am__fastdepCC_FALSE='#'
4618 am__fastdepCC_TRUE='#'
4619 am__fastdepCC_FALSE=
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4631 # On Suns, sometimes $CPP names a directory.
4632 if test -n "$CPP" && test -d "$CPP"; then
4635 if test -z "$CPP"; then
4636 if ${ac_cv_prog_CPP+:} false; then :
4637 $as_echo_n "(cached) " >&6
4639 # Double quotes because CPP needs to be expanded
4640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4643 for ac_c_preproc_warn_flag in '' yes
4645 # Use a header file that comes with gcc, so configuring glibc
4646 # with a fresh cross-compiler works.
4647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 # <limits.h> exists even on freestanding compilers.
4649 # On the NeXT, cc -E runs the code through the compiler's parser,
4650 # not just through cpp. "Syntax error" is here to catch this case.
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4654 # include <limits.h>
4656 # include <assert.h>
4660 if ac_fn_c_try_cpp "$LINENO"; then :
4663 # Broken: fails on valid input.
4666 rm -f conftest.err conftest.i conftest.$ac_ext
4668 # OK, works on sane cases. Now check whether nonexistent headers
4669 # can be detected and how.
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 #include <ac_nonexistent.h>
4674 if ac_fn_c_try_cpp "$LINENO"; then :
4675 # Broken: success on invalid input.
4678 # Passes both tests.
4682 rm -f conftest.err conftest.i conftest.$ac_ext
4685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686 rm -f conftest.i conftest.err conftest.$ac_ext
4687 if $ac_preproc_ok; then :
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4700 $as_echo "$CPP" >&6; }
4702 for ac_c_preproc_warn_flag in '' yes
4704 # Use a header file that comes with gcc, so configuring glibc
4705 # with a fresh cross-compiler works.
4706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707 # <limits.h> exists even on freestanding compilers.
4708 # On the NeXT, cc -E runs the code through the compiler's parser,
4709 # not just through cpp. "Syntax error" is here to catch this case.
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4713 # include <limits.h>
4715 # include <assert.h>
4719 if ac_fn_c_try_cpp "$LINENO"; then :
4722 # Broken: fails on valid input.
4725 rm -f conftest.err conftest.i conftest.$ac_ext
4727 # OK, works on sane cases. Now check whether nonexistent headers
4728 # can be detected and how.
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #include <ac_nonexistent.h>
4733 if ac_fn_c_try_cpp "$LINENO"; then :
4734 # Broken: success on invalid input.
4737 # Passes both tests.
4741 rm -f conftest.err conftest.i conftest.$ac_ext
4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745 rm -f conftest.i conftest.err conftest.$ac_ext
4746 if $ac_preproc_ok; then :
4749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4752 See \`config.log' for more details" "$LINENO" 5; }
4756 ac_cpp='$CPP $CPPFLAGS'
4757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4764 if ${ac_cv_path_GREP+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 if test -z "$GREP"; then
4768 ac_path_GREP_found=false
4769 # Loop through the user's path and test for each of PROGNAME-LIST
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774 test -z "$as_dir" && as_dir=.
4775 for ac_prog in grep ggrep; do
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4778 as_fn_executable_p "$ac_path_GREP" || continue
4779 # Check for GNU ac_path_GREP and select it if it is found.
4780 # Check for GNU $ac_path_GREP
4781 case `"$ac_path_GREP" --version 2>&1` in
4783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4786 $as_echo_n 0123456789 >"conftest.in"
4789 cat "conftest.in" "conftest.in" >"conftest.tmp"
4790 mv "conftest.tmp" "conftest.in"
4791 cp "conftest.in" "conftest.nl"
4792 $as_echo 'GREP' >> "conftest.nl"
4793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795 as_fn_arith $ac_count + 1 && ac_count=$as_val
4796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4797 # Best one so far, save it but keep looking for a better one
4798 ac_cv_path_GREP="$ac_path_GREP"
4799 ac_path_GREP_max=$ac_count
4801 # 10*(2^10) chars as input seems more than enough
4802 test $ac_count -gt 10 && break
4804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807 $ac_path_GREP_found && break 3
4812 if test -z "$ac_cv_path_GREP"; then
4813 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816 ac_cv_path_GREP=$GREP
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4821 $as_echo "$ac_cv_path_GREP" >&6; }
4822 GREP="$ac_cv_path_GREP"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4826 $as_echo_n "checking for egrep... " >&6; }
4827 if ${ac_cv_path_EGREP+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831 then ac_cv_path_EGREP="$GREP -E"
4833 if test -z "$EGREP"; then
4834 ac_path_EGREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 test -z "$as_dir" && as_dir=.
4841 for ac_prog in egrep; do
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4844 as_fn_executable_p "$ac_path_EGREP" || continue
4845 # Check for GNU ac_path_EGREP and select it if it is found.
4846 # Check for GNU $ac_path_EGREP
4847 case `"$ac_path_EGREP" --version 2>&1` in
4849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4852 $as_echo_n 0123456789 >"conftest.in"
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo 'EGREP' >> "conftest.nl"
4859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_EGREP="$ac_path_EGREP"
4865 ac_path_EGREP_max=$ac_count
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 $ac_path_EGREP_found && break 3
4878 if test -z "$ac_cv_path_EGREP"; then
4879 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882 ac_cv_path_EGREP=$EGREP
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4888 $as_echo "$ac_cv_path_EGREP" >&6; }
4889 EGREP="$ac_cv_path_EGREP"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4893 $as_echo_n "checking for ANSI C header files... " >&6; }
4894 if ${ac_cv_header_stdc+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_header_stdc=yes
4915 ac_cv_header_stdc=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 if test $ac_cv_header_stdc = yes; then
4920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927 $EGREP "memchr" >/dev/null 2>&1; then :
4930 ac_cv_header_stdc=no
4936 if test $ac_cv_header_stdc = yes; then
4937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "free" >/dev/null 2>&1; then :
4947 ac_cv_header_stdc=no
4953 if test $ac_cv_header_stdc = yes; then
4954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955 if test "$cross_compiling" = yes; then :
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4962 #if ((' ' & 0x0FF) == 0x020)
4963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4966 # define ISLOWER(c) \
4967 (('a' <= (c) && (c) <= 'i') \
4968 || ('j' <= (c) && (c) <= 'r') \
4969 || ('s' <= (c) && (c) <= 'z'))
4970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4978 for (i = 0; i < 256; i++)
4979 if (XOR (islower (i), ISLOWER (i))
4980 || toupper (i) != TOUPPER (i))
4985 if ac_fn_c_try_run "$LINENO"; then :
4988 ac_cv_header_stdc=no
4990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4991 conftest.$ac_objext conftest.beam conftest.$ac_ext
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4997 $as_echo "$ac_cv_header_stdc" >&6; }
4998 if test $ac_cv_header_stdc = yes; then
5000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5006 inttypes.h stdint.h unistd.h
5008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5012 cat >>confdefs.h <<_ACEOF
5013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5024 # Check whether --with-tirpcinclude was given.
5025 if test "${with_tirpcinclude+set}" = set; then :
5026 withval=$with_tirpcinclude; tirpc_header_dir=$withval
5028 tirpc_header_dir=/usr/include/tirpc
5033 if test "$enable_tirpc" != "no"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
5036 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
5037 if ${ac_cv_lib_tirpc_clnt_tli_create+:} false; then :
5038 $as_echo_n "(cached) " >&6
5040 ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-ltirpc $LIBS"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5045 /* Override any GCC internal prototype to avoid an error.
5046 Use char because int might match the return type of a GCC
5047 builtin and then its argument prototype would still apply. */
5051 char clnt_tli_create ();
5055 return clnt_tli_create ();
5060 if ac_fn_c_try_link "$LINENO"; then :
5061 ac_cv_lib_tirpc_clnt_tli_create=yes
5063 ac_cv_lib_tirpc_clnt_tli_create=no
5065 rm -f core conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
5067 LIBS=$ac_check_lib_save_LIBS
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5070 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5071 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = xyes; then :
5074 if test "$enable_tirpc" = "yes"; then
5075 as_fn_error $? "libtirpc not found." "$LINENO" 5
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5078 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5085 if test "$enable_tirpc" != "no"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_free_private_data in -ltirpc" >&5
5088 $as_echo_n "checking for authgss_free_private_data in -ltirpc... " >&6; }
5089 if ${ac_cv_lib_tirpc_authgss_free_private_data+:} false; then :
5090 $as_echo_n "(cached) " >&6
5092 ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-ltirpc $LIBS"
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5097 /* Override any GCC internal prototype to avoid an error.
5098 Use char because int might match the return type of a GCC
5099 builtin and then its argument prototype would still apply. */
5103 char authgss_free_private_data ();
5107 return authgss_free_private_data ();
5112 if ac_fn_c_try_link "$LINENO"; then :
5113 ac_cv_lib_tirpc_authgss_free_private_data=yes
5115 ac_cv_lib_tirpc_authgss_free_private_data=no
5117 rm -f core conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_authgss_free_private_data" >&5
5122 $as_echo "$ac_cv_lib_tirpc_authgss_free_private_data" >&6; }
5123 if test "x$ac_cv_lib_tirpc_authgss_free_private_data" = xyes; then :
5124 have_free_private_data=yes
5126 have_free_private_data=no
5131 if test "$enable_tirpc" != "no"; then
5132 for ac_header in ${tirpc_header_dir}/netconfig.h
5134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5137 cat >>confdefs.h <<_ACEOF
5138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5140 AM_CPPFLAGS="-I${tirpc_header_dir}"
5143 if test "$enable_tirpc" = "yes"; then
5144 as_fn_error $? "libtirpc headers not found." "$LINENO" 5
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5147 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5157 if test "$enable_tirpc" != "no"; then
5159 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
5162 if test "$have_free_private_data" = "yes"; then
5164 $as_echo "#define HAVE_AUTHGSS_FREE_PRIVATE_DATA 1" >>confdefs.h
5177 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5178 if test "x$ac_cv_func_prctl" = xyes; then :
5181 as_fn_error $? "prctl syscall is not available" "$LINENO" 5
5185 # Check whether --enable-caps was given.
5186 if test "${enable_caps+set}" = set; then :
5187 enableval=$enable_caps;
5193 if test "x$enable_caps" != "xno" ; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5195 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5196 if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 ac_check_lib_save_LIBS=$LIBS
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5204 /* Override any GCC internal prototype to avoid an error.
5205 Use char because int might match the return type of a GCC
5206 builtin and then its argument prototype would still apply. */
5210 char cap_get_proc ();
5214 return cap_get_proc ();
5219 if ac_fn_c_try_link "$LINENO"; then :
5220 ac_cv_lib_cap_cap_get_proc=yes
5222 ac_cv_lib_cap_cap_get_proc=no
5224 rm -f core conftest.err conftest.$ac_objext \
5225 conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5229 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5230 if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
5235 for ac_header in sys/capability.h
5237 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
5239 cat >>confdefs.h <<_ACEOF
5240 #define HAVE_SYS_CAPABILITY_H 1
5244 test "x$enable_caps" = "xyes" && as_fn_error $? "libcap headers not found." "$LINENO" 5
5255 # Check whether user wants TCP wrappers support
5259 # Check whether --with-tcp-wrappers was given.
5260 if test "${with_tcp_wrappers+set}" = set; then :
5261 withval=$with_tcp_wrappers; with_tcpw=$withval
5266 if test "x$with_tcpw" != "xno" ; then
5268 saved_LDFLAGS="$LDFLAGS"
5269 saved_CPPFLAGS="$CPPFLAGS"
5270 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5271 if test -d "${with_tcpw}/lib"; then
5272 if test -n "${need_dash_r}"; then
5273 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5275 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5278 if test -n "${need_dash_r}"; then
5279 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5281 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5284 if test -d "${with_tcpw}/include"; then
5285 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5287 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5291 LIBS="$LIBWRAP $LIBS"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5293 $as_echo_n "checking for libwrap... " >&6; }
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5298 int deny_severity = 0, allow_severity = 0;
5308 if ac_fn_c_try_link "$LINENO"; then :
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5314 $as_echo "#define LIBWRAP 1" >>confdefs.h
5317 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5320 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5326 as_fn_error $? "*** libwrap missing" "$LINENO" 5
5330 rm -f core conftest.err conftest.$ac_objext \
5331 conftest$ac_exeext conftest.$ac_ext
5339 # Arrange for large-file support
5340 # Check whether --enable-largefile was given.
5341 if test "${enable_largefile+set}" = set; then :
5342 enableval=$enable_largefile;
5345 if test "$enable_largefile" != no; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5348 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5349 if ${ac_cv_sys_largefile_CC+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 ac_cv_sys_largefile_CC=no
5353 if test "$GCC" != yes; then
5356 # IRIX 6.2 and later do not support large files by default,
5357 # so use the C compiler's -n32 option if that helps.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 #include <sys/types.h>
5361 /* Check that off_t can represent 2**63 - 1 correctly.
5362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5363 since some C++ compilers masquerading as C compilers
5364 incorrectly reject 9223372036854775807. */
5365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5367 && LARGE_OFF_T % 2147483647 == 1)
5377 if ac_fn_c_try_compile "$LINENO"; then :
5380 rm -f core conftest.err conftest.$ac_objext
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383 ac_cv_sys_largefile_CC=' -n32'; break
5385 rm -f core conftest.err conftest.$ac_objext
5389 rm -f conftest.$ac_ext
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5393 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5394 if test "$ac_cv_sys_largefile_CC" != no; then
5395 CC=$CC$ac_cv_sys_largefile_CC
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5399 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5400 if ${ac_cv_sys_file_offset_bits+:} false; then :
5401 $as_echo_n "(cached) " >&6
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #include <sys/types.h>
5407 /* Check that off_t can represent 2**63 - 1 correctly.
5408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5409 since some C++ compilers masquerading as C compilers
5410 incorrectly reject 9223372036854775807. */
5411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5413 && LARGE_OFF_T % 2147483647 == 1)
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 ac_cv_sys_file_offset_bits=no; break
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #define _FILE_OFFSET_BITS 64
5430 #include <sys/types.h>
5431 /* Check that off_t can represent 2**63 - 1 correctly.
5432 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5433 since some C++ compilers masquerading as C compilers
5434 incorrectly reject 9223372036854775807. */
5435 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5436 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5437 && LARGE_OFF_T % 2147483647 == 1)
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_sys_file_offset_bits=64; break
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_sys_file_offset_bits=unknown
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5456 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5457 case $ac_cv_sys_file_offset_bits in #(
5460 cat >>confdefs.h <<_ACEOF
5461 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5466 if test $ac_cv_sys_file_offset_bits = unknown; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5468 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5469 if ${ac_cv_sys_large_files+:} false; then :
5470 $as_echo_n "(cached) " >&6
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <sys/types.h>
5476 /* Check that off_t can represent 2**63 - 1 correctly.
5477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5478 since some C++ compilers masquerading as C compilers
5479 incorrectly reject 9223372036854775807. */
5480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5482 && LARGE_OFF_T % 2147483647 == 1)
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 ac_cv_sys_large_files=no; break
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #define _LARGE_FILES 1
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 ac_cv_sys_large_files=1; break
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_cv_sys_large_files=unknown
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5525 $as_echo "$ac_cv_sys_large_files" >&6; }
5526 case $ac_cv_sys_large_files in #(
5529 cat >>confdefs.h <<_ACEOF
5530 #define _LARGE_FILES $ac_cv_sys_large_files
5542 ac_config_headers="$ac_config_headers support/include/config.h"
5545 # Checks for programs.
5547 ac_cpp='$CXXCPP $CPPFLAGS'
5548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5551 if test -z "$CXX"; then
5552 if test -n "$CCC"; then
5555 if test -n "$ac_tool_prefix"; then
5556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_CXX+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$CXX"; then
5566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 if test -n "$CXX"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5588 $as_echo "$CXX" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 test -n "$CXX" && break
5598 if test -z "$CXX"; then
5600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$ac_ct_CXX"; then
5610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_ac_ct_CXX="$ac_prog"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5630 if test -n "$ac_ct_CXX"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5632 $as_echo "$ac_ct_CXX" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5639 test -n "$ac_ct_CXX" && break
5642 if test "x$ac_ct_CXX" = x; then
5645 case $cross_compiling:$ac_tool_warned in
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649 ac_tool_warned=yes ;;
5657 # Provide some information about the compiler.
5658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5661 for ac_option in --version -v -V -qversion; do
5662 { { ac_try="$ac_compiler $ac_option >&5"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5671 if test -s conftest.err; then
5673 ... rest of stderr output deleted ...
5674 10q' conftest.err >conftest.er1
5675 cat conftest.er1 >&5
5677 rm -f conftest.er1 conftest.err
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5683 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5684 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5701 if ac_fn_cxx_try_compile "$LINENO"; then :
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5711 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5712 if test $ac_compiler_gnu = yes; then
5717 ac_test_CXXFLAGS=${CXXFLAGS+set}
5718 ac_save_CXXFLAGS=$CXXFLAGS
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5720 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5721 if ${ac_cv_prog_cxx_g+:} false; then :
5722 $as_echo_n "(cached) " >&6
5724 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5725 ac_cxx_werror_flag=yes
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5739 if ac_fn_cxx_try_compile "$LINENO"; then :
5740 ac_cv_prog_cxx_g=yes
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5754 if ac_fn_cxx_try_compile "$LINENO"; then :
5757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 ac_cv_prog_cxx_g=yes
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5781 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5782 if test "$ac_test_CXXFLAGS" = set; then
5783 CXXFLAGS=$ac_save_CXXFLAGS
5784 elif test $ac_cv_prog_cxx_g = yes; then
5785 if test "$GXX" = yes; then
5791 if test "$GXX" = yes; then
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 depcc="$CXX" am_compiler_list=
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5806 $as_echo_n "checking dependency style of $depcc... " >&6; }
5807 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5808 $as_echo_n "(cached) " >&6
5810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5811 # We make a subdir and do the tests there. Otherwise we can end up
5812 # making bogus files that we don't know about and never remove. For
5813 # instance it was reported that on HP-UX the gcc test will end up
5814 # making a dummy file named 'D' -- because '-MD' means "put the output
5818 # Copy depcomp to subdir because otherwise we won't find it if we're
5819 # using a relative directory.
5820 cp "$am_depcomp" conftest.dir
5822 # We will build objects and dependencies in a subdirectory because
5823 # it helps to detect inapplicable dependency modes. For instance
5824 # both Tru64's cc and ICC support -MD to output dependencies as a
5825 # side effect of compilation, but ICC will put the dependencies in
5826 # the current directory while Tru64 will put them in the object
5830 am_cv_CXX_dependencies_compiler_type=none
5831 if test "$am_compiler_list" = ""; then
5832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5835 case " $depcc " in #(
5836 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5839 for depmode in $am_compiler_list; do
5840 # Setup a source with many dependencies, because some compilers
5841 # like to wrap large dependency lists on column 80 (with \), and
5842 # we should not choose a depcomp mode which is confused by this.
5844 # We need to recreate these files for each test, as the compiler may
5845 # overwrite some of them when testing with obscure command lines.
5846 # This happens at least with the AIX C compiler.
5848 for i in 1 2 3 4 5 6; do
5849 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5850 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5851 # Solaris 10 /bin/sh.
5852 echo '/* dummy */' > sub/conftst$i.h
5854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5856 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5857 # mode. It turns out that the SunPro C++ compiler does not properly
5858 # handle '-M -o', and we need to detect this. Also, some Intel
5859 # versions had trouble with output in subdirs.
5860 am__obj=sub/conftest.${OBJEXT-o}
5861 am__minus_obj="-o $am__obj"
5864 # This depmode causes a compiler race in universal mode.
5865 test "$am__universal" = false || continue
5868 # After this tag, mechanisms are not by side-effect, so they'll
5869 # only be used when explicitly requested.
5870 if test "x$enable_dependency_tracking" = xyes; then
5876 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5877 # This compiler won't grok '-c -o', but also, the minuso test has
5878 # not run yet. These depmodes are late enough in the game, and
5879 # so weak that their functioning should not be impacted.
5880 am__obj=conftest.${OBJEXT-o}
5885 if depmode=$depmode \
5886 source=sub/conftest.c object=$am__obj \
5887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5888 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5889 >/dev/null 2>conftest.err &&
5890 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5891 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5892 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5894 # icc doesn't choke on unknown options, it will just issue warnings
5895 # or remarks (even with -Werror). So we grep stderr for any message
5896 # that says an option was ignored or not supported.
5897 # When given -MP, icc 7.0 and 7.1 complain thusly:
5898 # icc: Command line warning: ignoring option '-M'; no argument required
5899 # The diagnosis changed in icc 8.0:
5900 # icc: Command line remark: option '-MP' not supported
5901 if (grep 'ignoring option' conftest.err ||
5902 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5903 am_cv_CXX_dependencies_compiler_type=$depmode
5912 am_cv_CXX_dependencies_compiler_type=none
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5917 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5918 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5921 test "x$enable_dependency_tracking" != xno \
5922 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5923 am__fastdepCXX_TRUE=
5924 am__fastdepCXX_FALSE='#'
5926 am__fastdepCXX_TRUE='#'
5927 am__fastdepCXX_FALSE=
5932 ac_cpp='$CPP $CPPFLAGS'
5933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_CC+:} false; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$CC"; then
5945 ac_cv_prog_CC="$CC" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 if test -n "$CC"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5967 $as_echo "$CC" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5975 if test -z "$ac_cv_prog_CC"; then
5977 # Extract the first word of "gcc", so it can be a program name with args.
5978 set dummy gcc; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5982 $as_echo_n "(cached) " >&6
5984 if test -n "$ac_ct_CC"; then
5985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_ac_ct_CC="gcc"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6005 if test -n "$ac_ct_CC"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6007 $as_echo "$ac_ct_CC" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6013 if test "x$ac_ct_CC" = x; then
6016 case $cross_compiling:$ac_tool_warned in
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6028 if test -z "$CC"; then
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}cc; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_CC+:} false; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$CC"; then
6038 ac_cv_prog_CC="$CC" # Let the user override the test.
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047 ac_cv_prog_CC="${ac_tool_prefix}cc"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 if test -n "$CC"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6060 $as_echo "$CC" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6069 if test -z "$CC"; then
6070 # Extract the first word of "cc", so it can be a program name with args.
6071 set dummy cc; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_CC+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -n "$CC"; then
6078 ac_cv_prog_CC="$CC" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6089 ac_prog_rejected=yes
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 if test $ac_prog_rejected = yes; then
6101 # We found a bogon in the path, so make sure we never use it.
6102 set dummy $ac_cv_prog_CC
6104 if test $# != 0; then
6105 # We chose a different compiler from the bogus one.
6106 # However, it has the same basename, so the bogon will be chosen
6107 # first if we set CC to just the basename; use the full file name.
6109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6115 if test -n "$CC"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6117 $as_echo "$CC" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6125 if test -z "$CC"; then
6126 if test -n "$ac_tool_prefix"; then
6127 for ac_prog in cl.exe
6129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_CC+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$CC"; then
6137 ac_cv_prog_CC="$CC" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 if test -n "$CC"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6159 $as_echo "$CC" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6166 test -n "$CC" && break
6169 if test -z "$CC"; then
6171 for ac_prog in cl.exe
6173 # Extract the first word of "$ac_prog", so it can be a program name with args.
6174 set dummy $ac_prog; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$ac_ct_CC"; then
6181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_CC="$ac_prog"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6201 if test -n "$ac_ct_CC"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6203 $as_echo "$ac_ct_CC" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6210 test -n "$ac_ct_CC" && break
6213 if test "x$ac_ct_CC" = x; then
6216 case $cross_compiling:$ac_tool_warned in
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6231 as_fn_error $? "no acceptable C compiler found in \$PATH
6232 See \`config.log' for more details" "$LINENO" 5; }
6234 # Provide some information about the compiler.
6235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6238 for ac_option in --version -v -V -qversion; do
6239 { { ac_try="$ac_compiler $ac_option >&5"
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6245 $as_echo "$ac_try_echo"; } >&5
6246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6248 if test -s conftest.err; then
6250 ... rest of stderr output deleted ...
6251 10q' conftest.err >conftest.er1
6252 cat conftest.er1 >&5
6254 rm -f conftest.er1 conftest.err
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6260 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6261 if ${ac_cv_c_compiler_gnu+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6278 if ac_fn_c_try_compile "$LINENO"; then :
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6288 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6289 if test $ac_compiler_gnu = yes; then
6294 ac_test_CFLAGS=${CFLAGS+set}
6295 ac_save_CFLAGS=$CFLAGS
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6297 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6298 if ${ac_cv_prog_cc_g+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 ac_save_c_werror_flag=$ac_c_werror_flag
6302 ac_c_werror_flag=yes
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6316 if ac_fn_c_try_compile "$LINENO"; then :
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6331 if ac_fn_c_try_compile "$LINENO"; then :
6334 ac_c_werror_flag=$ac_save_c_werror_flag
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6347 if ac_fn_c_try_compile "$LINENO"; then :
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 ac_c_werror_flag=$ac_save_c_werror_flag
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6358 $as_echo "$ac_cv_prog_cc_g" >&6; }
6359 if test "$ac_test_CFLAGS" = set; then
6360 CFLAGS=$ac_save_CFLAGS
6361 elif test $ac_cv_prog_cc_g = yes; then
6362 if test "$GCC" = yes; then
6368 if test "$GCC" = yes; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6375 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6376 if ${ac_cv_prog_cc_c89+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 ac_cv_prog_cc_c89=no
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6387 struct buf { int x; };
6388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6389 static char *e (p, i)
6395 static char *f (char * (*g) (char **, int), char **p, ...)
6400 s = g (p, va_arg (v,int));
6405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6406 function prototypes and stuff, but not '\xHH' hex character constants.
6407 These don't provoke an error unfortunately, instead are silently treated
6408 as 'x'. The following induces an error, until -std is added to get
6409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6410 array size at least. It's necessary to write '\x00'==0 to get something
6411 that's true only with -std. */
6412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6414 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6415 inside strings and character constants. */
6417 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6419 int test (int i, double x);
6420 struct s1 {int (*f) (int a);};
6421 struct s2 {int (*f) (double a);};
6422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6433 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6434 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6436 CC="$ac_save_CC $ac_arg"
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_prog_cc_c89=$ac_arg
6440 rm -f core conftest.err conftest.$ac_objext
6441 test "x$ac_cv_prog_cc_c89" != "xno" && break
6443 rm -f conftest.$ac_ext
6448 case "x$ac_cv_prog_cc_c89" in
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6451 $as_echo "none needed" >&6; } ;;
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6454 $as_echo "unsupported" >&6; } ;;
6456 CC="$CC $ac_cv_prog_cc_c89"
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6458 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6460 if test "x$ac_cv_prog_cc_c89" != xno; then :
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470 depcc="$CC" am_compiler_list=
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6473 $as_echo_n "checking dependency style of $depcc... " >&6; }
6474 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6475 $as_echo_n "(cached) " >&6
6477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6478 # We make a subdir and do the tests there. Otherwise we can end up
6479 # making bogus files that we don't know about and never remove. For
6480 # instance it was reported that on HP-UX the gcc test will end up
6481 # making a dummy file named 'D' -- because '-MD' means "put the output
6485 # Copy depcomp to subdir because otherwise we won't find it if we're
6486 # using a relative directory.
6487 cp "$am_depcomp" conftest.dir
6489 # We will build objects and dependencies in a subdirectory because
6490 # it helps to detect inapplicable dependency modes. For instance
6491 # both Tru64's cc and ICC support -MD to output dependencies as a
6492 # side effect of compilation, but ICC will put the dependencies in
6493 # the current directory while Tru64 will put them in the object
6497 am_cv_CC_dependencies_compiler_type=none
6498 if test "$am_compiler_list" = ""; then
6499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6502 case " $depcc " in #(
6503 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6506 for depmode in $am_compiler_list; do
6507 # Setup a source with many dependencies, because some compilers
6508 # like to wrap large dependency lists on column 80 (with \), and
6509 # we should not choose a depcomp mode which is confused by this.
6511 # We need to recreate these files for each test, as the compiler may
6512 # overwrite some of them when testing with obscure command lines.
6513 # This happens at least with the AIX C compiler.
6515 for i in 1 2 3 4 5 6; do
6516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6517 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6518 # Solaris 10 /bin/sh.
6519 echo '/* dummy */' > sub/conftst$i.h
6521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6523 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6524 # mode. It turns out that the SunPro C++ compiler does not properly
6525 # handle '-M -o', and we need to detect this. Also, some Intel
6526 # versions had trouble with output in subdirs.
6527 am__obj=sub/conftest.${OBJEXT-o}
6528 am__minus_obj="-o $am__obj"
6531 # This depmode causes a compiler race in universal mode.
6532 test "$am__universal" = false || continue
6535 # After this tag, mechanisms are not by side-effect, so they'll
6536 # only be used when explicitly requested.
6537 if test "x$enable_dependency_tracking" = xyes; then
6543 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6544 # This compiler won't grok '-c -o', but also, the minuso test has
6545 # not run yet. These depmodes are late enough in the game, and
6546 # so weak that their functioning should not be impacted.
6547 am__obj=conftest.${OBJEXT-o}
6552 if depmode=$depmode \
6553 source=sub/conftest.c object=$am__obj \
6554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6555 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6556 >/dev/null 2>conftest.err &&
6557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6559 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6561 # icc doesn't choke on unknown options, it will just issue warnings
6562 # or remarks (even with -Werror). So we grep stderr for any message
6563 # that says an option was ignored or not supported.
6564 # When given -MP, icc 7.0 and 7.1 complain thusly:
6565 # icc: Command line warning: ignoring option '-M'; no argument required
6566 # The diagnosis changed in icc 8.0:
6567 # icc: Command line remark: option '-MP' not supported
6568 if (grep 'ignoring option' conftest.err ||
6569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6570 am_cv_CC_dependencies_compiler_type=$depmode
6579 am_cv_CC_dependencies_compiler_type=none
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6584 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6588 test "x$enable_dependency_tracking" != xno \
6589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6591 am__fastdepCC_FALSE='#'
6593 am__fastdepCC_TRUE='#'
6594 am__fastdepCC_FALSE=
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6604 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6605 # On Suns, sometimes $CPP names a directory.
6606 if test -n "$CPP" && test -d "$CPP"; then
6609 if test -z "$CPP"; then
6610 if ${ac_cv_prog_CPP+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 # Double quotes because CPP needs to be expanded
6614 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6617 for ac_c_preproc_warn_flag in '' yes
6619 # Use a header file that comes with gcc, so configuring glibc
6620 # with a fresh cross-compiler works.
6621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622 # <limits.h> exists even on freestanding compilers.
6623 # On the NeXT, cc -E runs the code through the compiler's parser,
6624 # not just through cpp. "Syntax error" is here to catch this case.
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 # include <limits.h>
6630 # include <assert.h>
6634 if ac_fn_c_try_cpp "$LINENO"; then :
6637 # Broken: fails on valid input.
6640 rm -f conftest.err conftest.i conftest.$ac_ext
6642 # OK, works on sane cases. Now check whether nonexistent headers
6643 # can be detected and how.
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 #include <ac_nonexistent.h>
6648 if ac_fn_c_try_cpp "$LINENO"; then :
6649 # Broken: success on invalid input.
6652 # Passes both tests.
6656 rm -f conftest.err conftest.i conftest.$ac_ext
6659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660 rm -f conftest.i conftest.err conftest.$ac_ext
6661 if $ac_preproc_ok; then :
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6674 $as_echo "$CPP" >&6; }
6676 for ac_c_preproc_warn_flag in '' yes
6678 # Use a header file that comes with gcc, so configuring glibc
6679 # with a fresh cross-compiler works.
6680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681 # <limits.h> exists even on freestanding compilers.
6682 # On the NeXT, cc -E runs the code through the compiler's parser,
6683 # not just through cpp. "Syntax error" is here to catch this case.
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6687 # include <limits.h>
6689 # include <assert.h>
6693 if ac_fn_c_try_cpp "$LINENO"; then :
6696 # Broken: fails on valid input.
6699 rm -f conftest.err conftest.i conftest.$ac_ext
6701 # OK, works on sane cases. Now check whether nonexistent headers
6702 # can be detected and how.
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 #include <ac_nonexistent.h>
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708 # Broken: success on invalid input.
6711 # Passes both tests.
6715 rm -f conftest.err conftest.i conftest.$ac_ext
6718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6719 rm -f conftest.i conftest.err conftest.$ac_ext
6720 if $ac_preproc_ok; then :
6723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6725 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6726 See \`config.log' for more details" "$LINENO" 5; }
6730 ac_cpp='$CPP $CPPFLAGS'
6731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6737 $as_echo_n "checking whether ln -s works... " >&6; }
6739 if test "$LN_S" = "ln -s"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6741 $as_echo "yes" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6744 $as_echo "no, using $LN_S" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6748 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6750 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6751 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 cat >conftest.make <<\_ACEOF
6757 @echo '@@@%%%=$(MAKE)=@@@%%%'
6759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6760 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6762 eval ac_cv_prog_make_${ac_make}_set=yes;;
6764 eval ac_cv_prog_make_${ac_make}_set=no;;
6768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6770 $as_echo "yes" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 SET_MAKE="MAKE=${MAKE-make}"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6786 macro_version='2.4.2'
6787 macro_revision='1.3337'
6801 ltmain="$ac_aux_dir/ltmain.sh"
6803 # Backslashify metacharacters that are still active within
6804 # double-quoted strings.
6805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6807 # Same as above, but do not quote variable references.
6808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6810 # Sed substitution to delay expansion of an escaped shell variable in a
6811 # double_quote_subst'ed string.
6812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6814 # Sed substitution to delay expansion of an escaped single quote.
6815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6817 # Sed substitution to avoid accidental globbing in evaled expressions
6818 no_glob_subst='s/\*/\\\*/g'
6820 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6825 $as_echo_n "checking how to print strings... " >&6; }
6826 # Test print first, because it will be a builtin if present.
6827 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6833 # Use this function as a fallback that always works.
6834 func_fallback_echo ()
6836 eval 'cat <<_LTECHO_EOF
6840 ECHO='func_fallback_echo'
6843 # func_echo_all arg...
6844 # Invoke $ECHO with all args, space-separated.
6851 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6852 $as_echo "printf" >&6; } ;;
6853 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6854 $as_echo "print -r" >&6; } ;;
6855 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6856 $as_echo "cat" >&6; } ;;
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6874 if ${ac_cv_path_SED+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6878 for ac_i in 1 2 3 4 5 6 7; do
6879 ac_script="$ac_script$as_nl$ac_script"
6881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6882 { ac_script=; unset ac_script;}
6883 if test -z "$SED"; then
6884 ac_path_SED_found=false
6885 # Loop through the user's path and test for each of PROGNAME-LIST
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_prog in sed gsed; do
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6894 as_fn_executable_p "$ac_path_SED" || continue
6895 # Check for GNU ac_path_SED and select it if it is found.
6896 # Check for GNU $ac_path_SED
6897 case `"$ac_path_SED" --version 2>&1` in
6899 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6902 $as_echo_n 0123456789 >"conftest.in"
6905 cat "conftest.in" "conftest.in" >"conftest.tmp"
6906 mv "conftest.tmp" "conftest.in"
6907 cp "conftest.in" "conftest.nl"
6908 $as_echo '' >> "conftest.nl"
6909 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6911 as_fn_arith $ac_count + 1 && ac_count=$as_val
6912 if test $ac_count -gt ${ac_path_SED_max-0}; then
6913 # Best one so far, save it but keep looking for a better one
6914 ac_cv_path_SED="$ac_path_SED"
6915 ac_path_SED_max=$ac_count
6917 # 10*(2^10) chars as input seems more than enough
6918 test $ac_count -gt 10 && break
6920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6923 $ac_path_SED_found && break 3
6928 if test -z "$ac_cv_path_SED"; then
6929 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6937 $as_echo "$ac_cv_path_SED" >&6; }
6938 SED="$ac_cv_path_SED"
6941 test -z "$SED" && SED=sed
6942 Xsed="$SED -e 1s/^X//"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6955 $as_echo_n "checking for fgrep... " >&6; }
6956 if ${ac_cv_path_FGREP+:} false; then :
6957 $as_echo_n "(cached) " >&6
6959 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6960 then ac_cv_path_FGREP="$GREP -F"
6962 if test -z "$FGREP"; then
6963 ac_path_FGREP_found=false
6964 # Loop through the user's path and test for each of PROGNAME-LIST
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6969 test -z "$as_dir" && as_dir=.
6970 for ac_prog in fgrep; do
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6973 as_fn_executable_p "$ac_path_FGREP" || continue
6974 # Check for GNU ac_path_FGREP and select it if it is found.
6975 # Check for GNU $ac_path_FGREP
6976 case `"$ac_path_FGREP" --version 2>&1` in
6978 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6981 $as_echo_n 0123456789 >"conftest.in"
6984 cat "conftest.in" "conftest.in" >"conftest.tmp"
6985 mv "conftest.tmp" "conftest.in"
6986 cp "conftest.in" "conftest.nl"
6987 $as_echo 'FGREP' >> "conftest.nl"
6988 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6990 as_fn_arith $ac_count + 1 && ac_count=$as_val
6991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6992 # Best one so far, save it but keep looking for a better one
6993 ac_cv_path_FGREP="$ac_path_FGREP"
6994 ac_path_FGREP_max=$ac_count
6996 # 10*(2^10) chars as input seems more than enough
6997 test $ac_count -gt 10 && break
6999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7002 $ac_path_FGREP_found && break 3
7007 if test -z "$ac_cv_path_FGREP"; then
7008 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7011 ac_cv_path_FGREP=$FGREP
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7017 $as_echo "$ac_cv_path_FGREP" >&6; }
7018 FGREP="$ac_cv_path_FGREP"
7021 test -z "$GREP" && GREP=grep
7041 # Check whether --with-gnu-ld was given.
7042 if test "${with_gnu_ld+set}" = set; then :
7043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7049 if test "$GCC" = yes; then
7050 # Check if gcc -print-prog-name=ld gives a path.
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7052 $as_echo_n "checking for ld used by $CC... " >&6; }
7055 # gcc leaves a trailing carriage return which upsets mingw
7056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7061 # Accept absolute paths.
7063 re_direlt='/[^/][^/]*/\.\./'
7064 # Canonicalize the pathname of ld
7065 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7066 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7067 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7069 test -z "$LD" && LD="$ac_prog"
7072 # If it fails, then pretend we aren't using GCC.
7076 # If it is relative, then search for the first ld in PATH.
7080 elif test "$with_gnu_ld" = yes; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7082 $as_echo_n "checking for GNU ld... " >&6; }
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7085 $as_echo_n "checking for non-GNU ld... " >&6; }
7087 if ${lt_cv_path_LD+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -z "$LD"; then
7091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092 for ac_dir in $PATH; do
7094 test -z "$ac_dir" && ac_dir=.
7095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7096 lt_cv_path_LD="$ac_dir/$ac_prog"
7097 # Check to see if the program is GNU ld. I'd rather use --version,
7098 # but apparently some variants of GNU ld only accept -v.
7099 # Break only if it was the GNU/non-GNU ld that we prefer.
7100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7101 *GNU* | *'with BFD'*)
7102 test "$with_gnu_ld" != no && break
7105 test "$with_gnu_ld" != yes && break
7112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7117 if test -n "$LD"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7119 $as_echo "$LD" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7124 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7127 if ${lt_cv_prog_gnu_ld+:} false; then :
7128 $as_echo_n "(cached) " >&6
7130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7131 case `$LD -v 2>&1 </dev/null` in
7132 *GNU* | *'with BFD'*)
7133 lt_cv_prog_gnu_ld=yes
7136 lt_cv_prog_gnu_ld=no
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7142 with_gnu_ld=$lt_cv_prog_gnu_ld
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7154 if ${lt_cv_path_NM+:} false; then :
7155 $as_echo_n "(cached) " >&6
7157 if test -n "$NM"; then
7158 # Let the user override the test.
7161 lt_nm_to_check="${ac_tool_prefix}nm"
7162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7163 lt_nm_to_check="$lt_nm_to_check nm"
7165 for lt_tmp_nm in $lt_nm_to_check; do
7166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7167 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7169 test -z "$ac_dir" && ac_dir=.
7170 tmp_nm="$ac_dir/$lt_tmp_nm"
7171 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7172 # Check to see if the nm accepts a BSD-compat flag.
7173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7174 # nm: unknown option "B" ignored
7175 # Tru64's nm complains that /dev/null is an invalid object file
7176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7177 */dev/null* | *'Invalid file or object type'*)
7178 lt_cv_path_NM="$tmp_nm -B"
7182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7184 lt_cv_path_NM="$tmp_nm -p"
7188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7189 continue # so that we can try to find one that supports BSD flags
7198 : ${lt_cv_path_NM=no}
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7202 $as_echo "$lt_cv_path_NM" >&6; }
7203 if test "$lt_cv_path_NM" != "no"; then
7206 # Didn't find any BSD compatible name lister, look for dumpbin.
7207 if test -n "$DUMPBIN"; then :
7208 # Let the user override the test.
7210 if test -n "$ac_tool_prefix"; then
7211 for ac_prog in dumpbin "link -dump"
7213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_DUMPBIN+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$DUMPBIN"; then
7221 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 DUMPBIN=$ac_cv_prog_DUMPBIN
7241 if test -n "$DUMPBIN"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7243 $as_echo "$DUMPBIN" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7250 test -n "$DUMPBIN" && break
7253 if test -z "$DUMPBIN"; then
7254 ac_ct_DUMPBIN=$DUMPBIN
7255 for ac_prog in dumpbin "link -dump"
7257 # Extract the first word of "$ac_prog", so it can be a program name with args.
7258 set dummy $ac_prog; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$ac_ct_DUMPBIN"; then
7265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7285 if test -n "$ac_ct_DUMPBIN"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7287 $as_echo "$ac_ct_DUMPBIN" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7294 test -n "$ac_ct_DUMPBIN" && break
7297 if test "x$ac_ct_DUMPBIN" = x; then
7300 case $cross_compiling:$ac_tool_warned in
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304 ac_tool_warned=yes ;;
7306 DUMPBIN=$ac_ct_DUMPBIN
7310 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7312 DUMPBIN="$DUMPBIN -symbols"
7320 if test "$DUMPBIN" != ":"; then
7324 test -z "$NM" && NM=nm
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7333 if ${lt_cv_nm_interface+:} false; then :
7334 $as_echo_n "(cached) " >&6
7336 lt_cv_nm_interface="BSD nm"
7337 echo "int some_variable = 0;" > conftest.$ac_ext
7338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7339 (eval "$ac_compile" 2>conftest.err)
7340 cat conftest.err >&5
7341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7343 cat conftest.err >&5
7344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7345 cat conftest.out >&5
7346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7347 lt_cv_nm_interface="MS dumpbin"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7352 $as_echo "$lt_cv_nm_interface" >&6; }
7354 # find the maximum length of command line arguments
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7356 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7357 if ${lt_cv_sys_max_cmd_len+:} false; then :
7358 $as_echo_n "(cached) " >&6
7365 # On DJGPP, this test can blow up pretty badly due to problems in libc
7366 # (any single argument exceeding 2000 bytes causes a buffer overrun
7367 # during glob expansion). Even if it were fixed, the result of this
7368 # check would be larger than it should be.
7369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7373 # Under GNU Hurd, this test is not required because there is
7374 # no limit to the length of command line arguments.
7375 # Libtool will interpret -1 as no limit whatsoever
7376 lt_cv_sys_max_cmd_len=-1;
7379 cygwin* | mingw* | cegcc*)
7380 # On Win9x/ME, this test blows up -- it succeeds, but takes
7381 # about 5 minutes as the teststring grows exponentially.
7382 # Worse, since 9x/ME are not pre-emptively multitasking,
7383 # you end up with a "frozen" computer, even though with patience
7384 # the test eventually succeeds (with a max line length of 256k).
7385 # Instead, let's just punt: use the minimum linelength reported by
7386 # all of the supported platforms: 8192 (on NT/2K/XP).
7387 lt_cv_sys_max_cmd_len=8192;
7391 # On MiNT this can take a long time and run out of memory.
7392 lt_cv_sys_max_cmd_len=8192;
7396 # On AmigaOS with pdksh, this test takes hours, literally.
7397 # So we just punt and use a minimum line length of 8192.
7398 lt_cv_sys_max_cmd_len=8192;
7401 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7402 # This has been around since 386BSD, at least. Likely further.
7403 if test -x /sbin/sysctl; then
7404 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7405 elif test -x /usr/sbin/sysctl; then
7406 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7408 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7410 # And add a safety zone
7411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7416 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7417 lt_cv_sys_max_cmd_len=196608
7421 # The test takes a long time on OS/2.
7422 lt_cv_sys_max_cmd_len=8192
7426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7428 # nice to cause kernel panics so lets avoid the loop below.
7429 # First set a reasonable default.
7430 lt_cv_sys_max_cmd_len=16384
7432 if test -x /sbin/sysconfig; then
7433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7434 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7439 lt_cv_sys_max_cmd_len=102400
7441 sysv5* | sco5v6* | sysv4.2uw2*)
7442 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7443 if test -n "$kargmax"; then
7444 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7446 lt_cv_sys_max_cmd_len=32768
7450 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7451 if test -n "$lt_cv_sys_max_cmd_len"; then
7452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7455 # Make teststring a little bigger before we do anything with it.
7456 # a 1K string should be a reasonable start.
7457 for i in 1 2 3 4 5 6 7 8 ; do
7458 teststring=$teststring$teststring
7460 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7461 # If test is not a shell built-in, we'll probably end up computing a
7462 # maximum length that is only half of the actual maximum length, but
7464 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7465 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7466 test $i != 17 # 1/2 MB should be enough
7469 teststring=$teststring$teststring
7471 # Only check the string length outside the loop.
7472 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7474 # Add a significant safety factor because C++ compilers can tack on
7475 # massive amounts of additional arguments before passing them to the
7476 # linker. It appears as though 1/2 is a usable value.
7477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7484 if test -n $lt_cv_sys_max_cmd_len ; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7486 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7489 $as_echo "none" >&6; }
7491 max_cmd_len=$lt_cv_sys_max_cmd_len
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7503 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7504 # Try some XSI features
7507 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7509 && eval 'test $(( 1 + 1 )) -eq 2 \
7510 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7513 $as_echo "$xsi_shell" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7517 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7519 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7521 && lt_shell_append=yes
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7523 $as_echo "$lt_shell_append" >&6; }
7526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7536 # test EBCDIC or ASCII
7537 case `echo X|tr X '\101'` in
7538 A) # ASCII based system
7539 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7540 lt_SP2NL='tr \040 \012'
7541 lt_NL2SP='tr \015\012 \040\040'
7543 *) # EBCDIC based system
7544 lt_SP2NL='tr \100 \n'
7545 lt_NL2SP='tr \r\n \100\100'
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7558 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7559 if ${lt_cv_to_host_file_cmd+:} false; then :
7560 $as_echo_n "(cached) " >&6
7565 *-*-mingw* ) # actually msys
7566 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7569 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7571 * ) # otherwise, assume *nix
7572 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7578 *-*-mingw* ) # actually msys
7579 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7582 lt_cv_to_host_file_cmd=func_convert_file_noop
7584 * ) # otherwise, assume *nix
7585 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7589 * ) # unhandled hosts (and "normal" native builds)
7590 lt_cv_to_host_file_cmd=func_convert_file_noop
7596 to_host_file_cmd=$lt_cv_to_host_file_cmd
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7598 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7605 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7606 if ${lt_cv_to_tool_file_cmd+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 #assume ordinary cross tools, or native build.
7610 lt_cv_to_tool_file_cmd=func_convert_file_noop
7614 *-*-mingw* ) # actually msys
7615 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7623 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7625 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7632 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7633 if ${lt_cv_ld_reload_flag+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 lt_cv_ld_reload_flag='-r'
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7639 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7640 reload_flag=$lt_cv_ld_reload_flag
7641 case $reload_flag in
7643 *) reload_flag=" $reload_flag" ;;
7645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7647 cygwin* | mingw* | pw32* | cegcc*)
7648 if test "$GCC" != yes; then
7653 if test "$GCC" = yes; then
7654 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7656 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7669 if test -n "$ac_tool_prefix"; then
7670 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_OBJDUMP+:} false; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$OBJDUMP"; then
7678 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 OBJDUMP=$ac_cv_prog_OBJDUMP
7698 if test -n "$OBJDUMP"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7700 $as_echo "$OBJDUMP" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7708 if test -z "$ac_cv_prog_OBJDUMP"; then
7709 ac_ct_OBJDUMP=$OBJDUMP
7710 # Extract the first word of "objdump", so it can be a program name with args.
7711 set dummy objdump; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$ac_ct_OBJDUMP"; then
7718 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7738 if test -n "$ac_ct_OBJDUMP"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7740 $as_echo "$ac_ct_OBJDUMP" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7746 if test "x$ac_ct_OBJDUMP" = x; then
7749 case $cross_compiling:$ac_tool_warned in
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7755 OBJDUMP=$ac_ct_OBJDUMP
7758 OBJDUMP="$ac_cv_prog_OBJDUMP"
7761 test -z "$OBJDUMP" && OBJDUMP=objdump
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7772 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7773 if ${lt_cv_deplibs_check_method+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 lt_cv_file_magic_cmd='$MAGIC_CMD'
7777 lt_cv_file_magic_test_file=
7778 lt_cv_deplibs_check_method='unknown'
7779 # Need to set the preceding variable on all platforms that support
7780 # interlibrary dependencies.
7781 # 'none' -- dependencies not supported.
7782 # `unknown' -- same as none, but documents that we really don't know.
7783 # 'pass_all' -- all dependencies passed with no checks.
7784 # 'test_compile' -- check by making test program.
7785 # 'file_magic [[regex]]' -- check by looking for files in library path
7786 # which responds to the $file_magic_cmd with a given extended regex.
7787 # If you have `file' or equivalent on your system and you're not sure
7788 # whether `pass_all' will *always* work, you probably want this one.
7792 lt_cv_deplibs_check_method=pass_all
7796 lt_cv_deplibs_check_method=pass_all
7800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7801 lt_cv_file_magic_cmd='/usr/bin/file -L'
7802 lt_cv_file_magic_test_file=/shlib/libc.so
7806 # func_win32_libid is a shell function defined in ltmain.sh
7807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7808 lt_cv_file_magic_cmd='func_win32_libid'
7812 # Base MSYS/MinGW do not provide the 'file' command needed by
7813 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7814 # unless we find 'file', for example because we are cross-compiling.
7815 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7816 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7817 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7818 lt_cv_file_magic_cmd='func_win32_libid'
7820 # Keep this pattern in sync with the one in func_win32_libid.
7821 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7822 lt_cv_file_magic_cmd='$OBJDUMP -f'
7827 # use the weaker test based on 'objdump'. See mingw*.
7828 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7829 lt_cv_file_magic_cmd='$OBJDUMP -f'
7832 darwin* | rhapsody*)
7833 lt_cv_deplibs_check_method=pass_all
7836 freebsd* | dragonfly*)
7837 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7840 # Not sure whether the presence of OpenBSD here was a mistake.
7841 # Let's accept both of them until this is cleared up.
7842 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7843 lt_cv_file_magic_cmd=/usr/bin/file
7844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7848 lt_cv_deplibs_check_method=pass_all
7853 lt_cv_deplibs_check_method=pass_all
7857 lt_cv_deplibs_check_method=pass_all
7860 hpux10.20* | hpux11*)
7861 lt_cv_file_magic_cmd=/usr/bin/file
7864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7865 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7868 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]'
7869 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7873 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7879 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7883 irix5* | irix6* | nonstopux*)
7885 *-32|*"-32 ") libmagic=32-bit;;
7886 *-n32|*"-n32 ") libmagic=N32;;
7887 *-64|*"-64 ") libmagic=64-bit;;
7888 *) libmagic=never-match;;
7890 lt_cv_deplibs_check_method=pass_all
7893 # This must be glibc/ELF.
7894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7895 lt_cv_deplibs_check_method=pass_all
7899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7908 lt_cv_file_magic_cmd=/usr/bin/file
7909 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7913 lt_cv_deplibs_check_method=pass_all
7917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7924 osf3* | osf4* | osf5*)
7925 lt_cv_deplibs_check_method=pass_all
7929 lt_cv_deplibs_check_method=pass_all
7933 lt_cv_deplibs_check_method=pass_all
7936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7937 lt_cv_deplibs_check_method=pass_all
7941 case $host_vendor in
7943 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]'
7944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7947 lt_cv_deplibs_check_method=pass_all
7950 lt_cv_file_magic_cmd='/bin/file'
7951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7954 lt_cv_file_magic_cmd='/bin/file'
7955 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7956 lt_cv_file_magic_test_file=/lib/libc.so
7959 lt_cv_deplibs_check_method=pass_all
7962 lt_cv_deplibs_check_method=pass_all
7968 lt_cv_deplibs_check_method=pass_all
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7974 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7978 if test "$build" = "$host"; then
7981 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7984 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7990 file_magic_cmd=$lt_cv_file_magic_cmd
7991 deplibs_check_method=$lt_cv_deplibs_check_method
7992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8015 if test -n "$ac_tool_prefix"; then
8016 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_prog_DLLTOOL+:} false; then :
8021 $as_echo_n "(cached) " >&6
8023 if test -n "$DLLTOOL"; then
8024 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 DLLTOOL=$ac_cv_prog_DLLTOOL
8044 if test -n "$DLLTOOL"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8046 $as_echo "$DLLTOOL" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8054 if test -z "$ac_cv_prog_DLLTOOL"; then
8055 ac_ct_DLLTOOL=$DLLTOOL
8056 # Extract the first word of "dlltool", so it can be a program name with args.
8057 set dummy dlltool; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8061 $as_echo_n "(cached) " >&6
8063 if test -n "$ac_ct_DLLTOOL"; then
8064 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8084 if test -n "$ac_ct_DLLTOOL"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8086 $as_echo "$ac_ct_DLLTOOL" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8092 if test "x$ac_ct_DLLTOOL" = x; then
8095 case $cross_compiling:$ac_tool_warned in
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099 ac_tool_warned=yes ;;
8101 DLLTOOL=$ac_ct_DLLTOOL
8104 DLLTOOL="$ac_cv_prog_DLLTOOL"
8107 test -z "$DLLTOOL" && DLLTOOL=dlltool
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8119 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8120 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8121 $as_echo_n "(cached) " >&6
8123 lt_cv_sharedlib_from_linklib_cmd='unknown'
8126 cygwin* | mingw* | pw32* | cegcc*)
8127 # two different shell functions defined in ltmain.sh
8128 # decide which to use based on capabilities of $DLLTOOL
8129 case `$DLLTOOL --help 2>&1` in
8130 *--identify-strict*)
8131 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8134 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8139 # fallback: assume linklib IS sharedlib
8140 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8146 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8147 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8148 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8156 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_prog_AR+:} false; then :
8164 $as_echo_n "(cached) " >&6
8166 if test -n "$AR"; then
8167 ac_cv_prog_AR="$AR" # Let the user override the test.
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 if test -n "$AR"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8189 $as_echo "$AR" >&6; }
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8196 test -n "$AR" && break
8199 if test -z "$AR"; then
8203 # Extract the first word of "$ac_prog", so it can be a program name with args.
8204 set dummy $ac_prog; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8208 $as_echo_n "(cached) " >&6
8210 if test -n "$ac_ct_AR"; then
8211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_ac_ct_AR="$ac_prog"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8231 if test -n "$ac_ct_AR"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8233 $as_echo "$ac_ct_AR" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8240 test -n "$ac_ct_AR" && break
8243 if test "x$ac_ct_AR" = x; then
8246 case $cross_compiling:$ac_tool_warned in
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250 ac_tool_warned=yes ;;
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8270 $as_echo_n "checking for archiver @FILE support... " >&6; }
8271 if ${lt_cv_ar_at_file+:} false; then :
8272 $as_echo_n "(cached) " >&6
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 echo conftest.$ac_objext > conftest.lst
8288 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8290 (eval $lt_ar_try) 2>&5
8292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8293 test $ac_status = 0; }
8294 if test "$ac_status" -eq 0; then
8295 # Ensure the archiver fails upon bogus file names.
8296 rm -f conftest.$ac_objext libconftest.a
8297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8298 (eval $lt_ar_try) 2>&5
8300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8301 test $ac_status = 0; }
8302 if test "$ac_status" -ne 0; then
8306 rm -f conftest.* libconftest.a
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8313 $as_echo "$lt_cv_ar_at_file" >&6; }
8315 if test "x$lt_cv_ar_at_file" = xno; then
8318 archiver_list_spec=$lt_cv_ar_at_file
8327 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}strip; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_STRIP+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 if test -n "$STRIP"; then
8336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 STRIP=$ac_cv_prog_STRIP
8356 if test -n "$STRIP"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8358 $as_echo "$STRIP" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8366 if test -z "$ac_cv_prog_STRIP"; then
8368 # Extract the first word of "strip", so it can be a program name with args.
8369 set dummy strip; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8373 $as_echo_n "(cached) " >&6
8375 if test -n "$ac_ct_STRIP"; then
8376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ac_ct_STRIP="strip"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8396 if test -n "$ac_ct_STRIP"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8398 $as_echo "$ac_ct_STRIP" >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8404 if test "x$ac_ct_STRIP" = x; then
8407 case $cross_compiling:$ac_tool_warned in
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411 ac_tool_warned=yes ;;
8416 STRIP="$ac_cv_prog_STRIP"
8419 test -z "$STRIP" && STRIP=:
8426 if test -n "$ac_tool_prefix"; then
8427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_RANLIB+:} false; then :
8432 $as_echo_n "(cached) " >&6
8434 if test -n "$RANLIB"; then
8435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 RANLIB=$ac_cv_prog_RANLIB
8455 if test -n "$RANLIB"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8457 $as_echo "$RANLIB" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8465 if test -z "$ac_cv_prog_RANLIB"; then
8466 ac_ct_RANLIB=$RANLIB
8467 # Extract the first word of "ranlib", so it can be a program name with args.
8468 set dummy ranlib; ac_word=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8472 $as_echo_n "(cached) " >&6
8474 if test -n "$ac_ct_RANLIB"; then
8475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_ac_ct_RANLIB="ranlib"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8495 if test -n "$ac_ct_RANLIB"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8497 $as_echo "$ac_ct_RANLIB" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8503 if test "x$ac_ct_RANLIB" = x; then
8506 case $cross_compiling:$ac_tool_warned in
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510 ac_tool_warned=yes ;;
8512 RANLIB=$ac_ct_RANLIB
8515 RANLIB="$ac_cv_prog_RANLIB"
8518 test -z "$RANLIB" && RANLIB=:
8525 # Determine commands to create old-style static archives.
8526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8527 old_postinstall_cmds='chmod 644 $oldlib'
8528 old_postuninstall_cmds=
8530 if test -n "$RANLIB"; then
8533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8544 lock_old_archive_extraction=yes ;;
8546 lock_old_archive_extraction=no ;;
8587 # If no C compiler was specified, use CC.
8590 # If no C compiler flags were specified, use CFLAGS.
8591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8593 # Allow CC to be a program name with arguments.
8597 # Check for command to grab the raw symbol name followed by C symbol from nm.
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8600 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8601 $as_echo_n "(cached) " >&6
8604 # These are sane defaults that work on at least a few old systems.
8605 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8607 # Character class describing NM global symbol codes.
8608 symcode='[BCDEGRST]'
8610 # Regexp to match symbols that can be accessed directly from C.
8611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8613 # Define system-specific variables.
8618 cygwin* | mingw* | pw32* | cegcc*)
8619 symcode='[ABCDGISTW]'
8622 if test "$host_cpu" = ia64; then
8623 symcode='[ABCDEGRST]'
8627 symcode='[BCDEGRST]'
8630 symcode='[BCDEGQRST]'
8641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8649 # If we're using GNU nm, then use its standard symbol codes.
8650 case `$NM -V 2>&1` in
8651 *GNU* | *'with BFD'*)
8652 symcode='[ABCDGIRSTW]' ;;
8655 # Transform an extracted symbol line into a proper C declaration.
8656 # Some systems (esp. on ia64) link data and code symbols differently,
8657 # so use this general approach.
8658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8660 # Transform an extracted symbol line into symbol name and symbol address
8661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8662 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'"
8664 # Handle CRLF in mingw tool chain
8668 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8672 # Try without a prefix underscore, then with it.
8673 for ac_symprfx in "" "_"; do
8675 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8676 symxfrm="\\1 $ac_symprfx\\2 \\2"
8678 # Write the raw and C identifiers.
8679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8680 # Fake it for dumpbin and say T for any non-static function
8681 # and D for any global variable.
8682 # Also find C++ and __fastcall symbols from MSVC++,
8683 # which start with @ or ?.
8684 lt_cv_sys_global_symbol_pipe="$AWK '"\
8685 " {last_section=section; section=\$ 3};"\
8686 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8687 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8688 " \$ 0!~/External *\|/{next};"\
8689 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8690 " {if(hide[section]) next};"\
8691 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8692 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8693 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8694 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8695 " ' prfx=^$ac_symprfx"
8697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8699 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8701 # Check to see that the pipe works correctly.
8705 cat > conftest.$ac_ext <<_LT_EOF
8710 void nm_test_func(void);
8711 void nm_test_func(void){}
8715 int main(){nm_test_var='a';nm_test_func();return(0);}
8718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8719 (eval $ac_compile) 2>&5
8721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8722 test $ac_status = 0; }; then
8723 # Now try to grab the symbols.
8725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8726 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8729 test $ac_status = 0; } && test -s "$nlist"; then
8730 # Try sorting and uniquifying the output.
8731 if sort "$nlist" | uniq > "$nlist"T; then
8732 mv -f "$nlist"T "$nlist"
8737 # Make sure that we snagged all the symbols we need.
8738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8740 cat <<_LT_EOF > conftest.$ac_ext
8741 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8742 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8743 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8744 relocations are performed -- see ld's documentation on pseudo-relocs. */
8745 # define LT_DLSYM_CONST
8746 #elif defined(__osf__)
8747 /* This system does not cope well with relocations in const data. */
8748 # define LT_DLSYM_CONST
8750 # define LT_DLSYM_CONST const
8758 # Now generate the symbol file.
8759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8761 cat <<_LT_EOF >> conftest.$ac_ext
8763 /* The mapping between symbol names and symbols. */
8764 LT_DLSYM_CONST struct {
8768 lt__PROGRAM__LTX_preloaded_symbols[] =
8770 { "@PROGRAM@", (void *) 0 },
8772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8773 cat <<\_LT_EOF >> conftest.$ac_ext
8777 /* This works around a problem in FreeBSD linker */
8778 #ifdef FREEBSD_WORKAROUND
8779 static const void *lt_preloaded_setup() {
8780 return lt__PROGRAM__LTX_preloaded_symbols;
8788 # Now try linking the two files.
8789 mv conftest.$ac_objext conftstm.$ac_objext
8790 lt_globsym_save_LIBS=$LIBS
8791 lt_globsym_save_CFLAGS=$CFLAGS
8792 LIBS="conftstm.$ac_objext"
8793 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8795 (eval $ac_link) 2>&5
8797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8798 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8801 LIBS=$lt_globsym_save_LIBS
8802 CFLAGS=$lt_globsym_save_CFLAGS
8804 echo "cannot find nm_test_func in $nlist" >&5
8807 echo "cannot find nm_test_var in $nlist" >&5
8810 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8813 echo "$progname: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8816 rm -rf conftest* conftst*
8818 # Do not use the global_symbol_pipe unless it works.
8819 if test "$pipe_works" = yes; then
8822 lt_cv_sys_global_symbol_pipe=
8828 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8829 lt_cv_sys_global_symbol_to_cdecl=
8831 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8833 $as_echo "failed" >&6; }
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8836 $as_echo "ok" >&6; }
8839 # Response file support.
8840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8841 nm_file_list_spec='@'
8842 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8843 nm_file_list_spec='@'
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8873 $as_echo_n "checking for sysroot... " >&6; }
8875 # Check whether --with-sysroot was given.
8876 if test "${with_sysroot+set}" = set; then :
8877 withval=$with_sysroot;
8884 case ${with_sysroot} in #(
8886 if test "$GCC" = yes; then
8887 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8891 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8897 $as_echo "${with_sysroot}" >&6; }
8898 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8903 $as_echo "${lt_sysroot:-no}" >&6; }
8909 # Check whether --enable-libtool-lock was given.
8910 if test "${enable_libtool_lock+set}" = set; then :
8911 enableval=$enable_libtool_lock;
8914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8916 # Some flags need to be propagated to the compiler or linker for good
8920 # Find out which ABI we are using.
8921 echo 'int i;' > conftest.$ac_ext
8922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8923 (eval $ac_compile) 2>&5
8925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926 test $ac_status = 0; }; then
8927 case `/usr/bin/file conftest.$ac_objext` in
8939 # Find out which ABI we are using.
8940 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8942 (eval $ac_compile) 2>&5
8944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945 test $ac_status = 0; }; then
8946 if test "$lt_cv_prog_gnu_ld" = yes; then
8947 case `/usr/bin/file conftest.$ac_objext` in
8949 LD="${LD-ld} -melf32bsmip"
8952 LD="${LD-ld} -melf32bmipn32"
8955 LD="${LD-ld} -melf64bmip"
8959 case `/usr/bin/file conftest.$ac_objext` in
8975 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8976 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8977 # Find out which ABI we are using.
8978 echo 'int i;' > conftest.$ac_ext
8979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8980 (eval $ac_compile) 2>&5
8982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8983 test $ac_status = 0; }; then
8984 case `/usr/bin/file conftest.o` in
8987 x86_64-*kfreebsd*-gnu)
8988 LD="${LD-ld} -m elf_i386_fbsd"
8991 LD="${LD-ld} -m elf_i386"
8993 ppc64-*linux*|powerpc64-*linux*)
8994 LD="${LD-ld} -m elf32ppclinux"
8997 LD="${LD-ld} -m elf_s390"
9000 LD="${LD-ld} -m elf32_sparc"
9006 x86_64-*kfreebsd*-gnu)
9007 LD="${LD-ld} -m elf_x86_64_fbsd"
9010 LD="${LD-ld} -m elf_x86_64"
9012 ppc*-*linux*|powerpc*-*linux*)
9013 LD="${LD-ld} -m elf64ppc"
9015 s390*-*linux*|s390*-*tpf*)
9016 LD="${LD-ld} -m elf64_s390"
9019 LD="${LD-ld} -m elf64_sparc"
9029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9030 SAVE_CFLAGS="$CFLAGS"
9031 CFLAGS="$CFLAGS -belf"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9033 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9034 if ${lt_cv_cc_needs_belf+:} false; then :
9035 $as_echo_n "(cached) " >&6
9038 ac_cpp='$CPP $CPPFLAGS'
9039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9054 if ac_fn_c_try_link "$LINENO"; then :
9055 lt_cv_cc_needs_belf=yes
9057 lt_cv_cc_needs_belf=no
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9062 ac_cpp='$CPP $CPPFLAGS'
9063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9069 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9070 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9071 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9072 CFLAGS="$SAVE_CFLAGS"
9076 # Find out which ABI we are using.
9077 echo 'int i;' > conftest.$ac_ext
9078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9079 (eval $ac_compile) 2>&5
9081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9082 test $ac_status = 0; }; then
9083 case `/usr/bin/file conftest.o` in
9085 case $lt_cv_prog_gnu_ld in
9089 LD="${LD-ld} -m elf_x86_64"
9092 LD="${LD-ld} -m elf64_sparc"
9095 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9096 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9101 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9113 need_locks="$enable_libtool_lock"
9115 if test -n "$ac_tool_prefix"; then
9116 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9117 set dummy ${ac_tool_prefix}mt; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9121 $as_echo_n "(cached) " >&6
9123 if test -n "$MANIFEST_TOOL"; then
9124 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9144 if test -n "$MANIFEST_TOOL"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9146 $as_echo "$MANIFEST_TOOL" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9154 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9155 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9156 # Extract the first word of "mt", so it can be a program name with args.
9157 set dummy mt; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 if test -n "$ac_ct_MANIFEST_TOOL"; then
9164 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9184 if test -n "$ac_ct_MANIFEST_TOOL"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9186 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9192 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9195 case $cross_compiling:$ac_tool_warned in
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9199 ac_tool_warned=yes ;;
9201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9207 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9209 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9210 if ${lt_cv_path_mainfest_tool+:} false; then :
9211 $as_echo_n "(cached) " >&6
9213 lt_cv_path_mainfest_tool=no
9214 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9215 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9216 cat conftest.err >&5
9217 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9218 lt_cv_path_mainfest_tool=yes
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9223 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9224 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9234 rhapsody* | darwin*)
9235 if test -n "$ac_tool_prefix"; then
9236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9237 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 if test -n "$DSYMUTIL"; then
9244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9264 if test -n "$DSYMUTIL"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9266 $as_echo "$DSYMUTIL" >&6; }
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9274 if test -z "$ac_cv_prog_DSYMUTIL"; then
9275 ac_ct_DSYMUTIL=$DSYMUTIL
9276 # Extract the first word of "dsymutil", so it can be a program name with args.
9277 set dummy dsymutil; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9281 $as_echo_n "(cached) " >&6
9283 if test -n "$ac_ct_DSYMUTIL"; then
9284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9304 if test -n "$ac_ct_DSYMUTIL"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9306 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9312 if test "x$ac_ct_DSYMUTIL" = x; then
9315 case $cross_compiling:$ac_tool_warned in
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9319 ac_tool_warned=yes ;;
9321 DSYMUTIL=$ac_ct_DSYMUTIL
9324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9327 if test -n "$ac_tool_prefix"; then
9328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 $as_echo_n "checking for $ac_word... " >&6; }
9332 if ${ac_cv_prog_NMEDIT+:} false; then :
9333 $as_echo_n "(cached) " >&6
9335 if test -n "$NMEDIT"; then
9336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 test -z "$as_dir" && as_dir=.
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 NMEDIT=$ac_cv_prog_NMEDIT
9356 if test -n "$NMEDIT"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9358 $as_echo "$NMEDIT" >&6; }
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9366 if test -z "$ac_cv_prog_NMEDIT"; then
9367 ac_ct_NMEDIT=$NMEDIT
9368 # Extract the first word of "nmedit", so it can be a program name with args.
9369 set dummy nmedit; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9373 $as_echo_n "(cached) " >&6
9375 if test -n "$ac_ct_NMEDIT"; then
9376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9396 if test -n "$ac_ct_NMEDIT"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9398 $as_echo "$ac_ct_NMEDIT" >&6; }
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9404 if test "x$ac_ct_NMEDIT" = x; then
9407 case $cross_compiling:$ac_tool_warned in
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9411 ac_tool_warned=yes ;;
9413 NMEDIT=$ac_ct_NMEDIT
9416 NMEDIT="$ac_cv_prog_NMEDIT"
9419 if test -n "$ac_tool_prefix"; then
9420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if ${ac_cv_prog_LIPO+:} false; then :
9425 $as_echo_n "(cached) " >&6
9427 if test -n "$LIPO"; then
9428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 LIPO=$ac_cv_prog_LIPO
9448 if test -n "$LIPO"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9450 $as_echo "$LIPO" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9458 if test -z "$ac_cv_prog_LIPO"; then
9460 # Extract the first word of "lipo", so it can be a program name with args.
9461 set dummy lipo; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9465 $as_echo_n "(cached) " >&6
9467 if test -n "$ac_ct_LIPO"; then
9468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477 ac_cv_prog_ac_ct_LIPO="lipo"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9488 if test -n "$ac_ct_LIPO"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9490 $as_echo "$ac_ct_LIPO" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9496 if test "x$ac_ct_LIPO" = x; then
9499 case $cross_compiling:$ac_tool_warned in
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9503 ac_tool_warned=yes ;;
9508 LIPO="$ac_cv_prog_LIPO"
9511 if test -n "$ac_tool_prefix"; then
9512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9513 set dummy ${ac_tool_prefix}otool; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_prog_OTOOL+:} false; then :
9517 $as_echo_n "(cached) " >&6
9519 if test -n "$OTOOL"; then
9520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 OTOOL=$ac_cv_prog_OTOOL
9540 if test -n "$OTOOL"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9542 $as_echo "$OTOOL" >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9550 if test -z "$ac_cv_prog_OTOOL"; then
9552 # Extract the first word of "otool", so it can be a program name with args.
9553 set dummy otool; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9557 $as_echo_n "(cached) " >&6
9559 if test -n "$ac_ct_OTOOL"; then
9560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569 ac_cv_prog_ac_ct_OTOOL="otool"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9580 if test -n "$ac_ct_OTOOL"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9582 $as_echo "$ac_ct_OTOOL" >&6; }
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9588 if test "x$ac_ct_OTOOL" = x; then
9591 case $cross_compiling:$ac_tool_warned in
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9595 ac_tool_warned=yes ;;
9600 OTOOL="$ac_cv_prog_OTOOL"
9603 if test -n "$ac_tool_prefix"; then
9604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9605 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if ${ac_cv_prog_OTOOL64+:} false; then :
9609 $as_echo_n "(cached) " >&6
9611 if test -n "$OTOOL64"; then
9612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 OTOOL64=$ac_cv_prog_OTOOL64
9632 if test -n "$OTOOL64"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9634 $as_echo "$OTOOL64" >&6; }
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9642 if test -z "$ac_cv_prog_OTOOL64"; then
9643 ac_ct_OTOOL64=$OTOOL64
9644 # Extract the first word of "otool64", so it can be a program name with args.
9645 set dummy otool64; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9649 $as_echo_n "(cached) " >&6
9651 if test -n "$ac_ct_OTOOL64"; then
9652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661 ac_cv_prog_ac_ct_OTOOL64="otool64"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9672 if test -n "$ac_ct_OTOOL64"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9674 $as_echo "$ac_ct_OTOOL64" >&6; }
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9680 if test "x$ac_ct_OTOOL64" = x; then
9683 case $cross_compiling:$ac_tool_warned in
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9687 ac_tool_warned=yes ;;
9689 OTOOL64=$ac_ct_OTOOL64
9692 OTOOL64="$ac_cv_prog_OTOOL64"
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9722 $as_echo_n "checking for -single_module linker flag... " >&6; }
9723 if ${lt_cv_apple_cc_single_mod+:} false; then :
9724 $as_echo_n "(cached) " >&6
9726 lt_cv_apple_cc_single_mod=no
9727 if test -z "${LT_MULTI_MODULE}"; then
9728 # By default we will add the -single_module flag. You can override
9729 # by either setting the environment variable LT_MULTI_MODULE
9730 # non-empty at configure time, or by adding -multi_module to the
9732 rm -rf libconftest.dylib*
9733 echo "int foo(void){return 1;}" > conftest.c
9734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9735 -dynamiclib -Wl,-single_module conftest.c" >&5
9736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9739 # If there is a non-empty error log, and "single_module"
9740 # appears in it, assume the flag caused a linker warning
9741 if test -s conftest.err && $GREP single_module conftest.err; then
9742 cat conftest.err >&5
9743 # Otherwise, if the output was created with a 0 exit code from
9744 # the compiler, it worked.
9745 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9746 lt_cv_apple_cc_single_mod=yes
9748 cat conftest.err >&5
9750 rm -rf libconftest.dylib*
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9755 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9758 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9759 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9760 $as_echo_n "(cached) " >&6
9762 lt_cv_ld_exported_symbols_list=no
9763 save_LDFLAGS=$LDFLAGS
9764 echo "_main" > conftest.sym
9765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9777 if ac_fn_c_try_link "$LINENO"; then :
9778 lt_cv_ld_exported_symbols_list=yes
9780 lt_cv_ld_exported_symbols_list=no
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LDFLAGS="$save_LDFLAGS"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9788 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9791 $as_echo_n "checking for -force_load linker flag... " >&6; }
9792 if ${lt_cv_ld_force_load+:} false; then :
9793 $as_echo_n "(cached) " >&6
9795 lt_cv_ld_force_load=no
9796 cat > conftest.c << _LT_EOF
9797 int forced_loaded() { return 2;}
9799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9801 echo "$AR cru libconftest.a conftest.o" >&5
9802 $AR cru libconftest.a conftest.o 2>&5
9803 echo "$RANLIB libconftest.a" >&5
9804 $RANLIB libconftest.a 2>&5
9805 cat > conftest.c << _LT_EOF
9806 int main() { return 0;}
9808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9811 if test -s conftest.err && $GREP force_load conftest.err; then
9812 cat conftest.err >&5
9813 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9814 lt_cv_ld_force_load=yes
9816 cat conftest.err >&5
9818 rm -f conftest.err libconftest.a conftest conftest.c
9819 rm -rf conftest.dSYM
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9823 $as_echo "$lt_cv_ld_force_load" >&6; }
9825 rhapsody* | darwin1.[012])
9826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9829 darwin*) # darwin 5.x on
9830 # if running on 10.5 or later, the deployment target defaults
9831 # to the OS version, if on x86, and 10.4, the deployment
9832 # target defaults to 10.4. Don't you love it?
9833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9844 _lt_dar_single_mod='$single_module'
9846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9851 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9852 _lt_dsymutil='~$DSYMUTIL $lib || :'
9859 for ac_header in dlfcn.h
9861 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9863 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9864 cat >>confdefs.h <<_ACEOF
9865 #define HAVE_DLFCN_H 1
9875 func_stripname_cnf ()
9878 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9879 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9881 } # func_stripname_cnf
9897 # Check whether --enable-shared was given.
9898 if test "${enable_shared+set}" = set; then :
9899 enableval=$enable_shared; p=${PACKAGE-default}
9901 yes) enable_shared=yes ;;
9902 no) enable_shared=no ;;
9905 # Look at the argument we got. We use all the common list separators.
9906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9907 for pkg in $enableval; do
9909 if test "X$pkg" = "X$p"; then
9928 # Check whether --enable-static was given.
9929 if test "${enable_static+set}" = set; then :
9930 enableval=$enable_static; p=${PACKAGE-default}
9932 yes) enable_static=yes ;;
9933 no) enable_static=no ;;
9936 # Look at the argument we got. We use all the common list separators.
9937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9938 for pkg in $enableval; do
9940 if test "X$pkg" = "X$p"; then
9960 # Check whether --with-pic was given.
9961 if test "${with_pic+set}" = set; then :
9962 withval=$with_pic; lt_p=${PACKAGE-default}
9964 yes|no) pic_mode=$withval ;;
9967 # Look at the argument we got. We use all the common list separators.
9968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9969 for lt_pkg in $withval; do
9971 if test "X$lt_pkg" = "X$lt_p"; then
9983 test -z "$pic_mode" && pic_mode=default
9991 # Check whether --enable-fast-install was given.
9992 if test "${enable_fast_install+set}" = set; then :
9993 enableval=$enable_fast_install; p=${PACKAGE-default}
9995 yes) enable_fast_install=yes ;;
9996 no) enable_fast_install=no ;;
9998 enable_fast_install=no
9999 # Look at the argument we got. We use all the common list separators.
10000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10001 for pkg in $enableval; do
10003 if test "X$pkg" = "X$p"; then
10004 enable_fast_install=yes
10011 enable_fast_install=yes
10024 # This can be used to rebuild libtool when needed
10025 LIBTOOL_DEPS="$ltmain"
10027 # Always use our own libtool.
10028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10059 test -z "$LN_S" && LN_S="ln -s"
10074 if test -n "${ZSH_VERSION+set}" ; then
10075 setopt NO_GLOB_SUBST
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10079 $as_echo_n "checking for objdir... " >&6; }
10080 if ${lt_cv_objdir+:} false; then :
10081 $as_echo_n "(cached) " >&6
10083 rm -f .libs 2>/dev/null
10084 mkdir .libs 2>/dev/null
10085 if test -d .libs; then
10088 # MS-DOS does not allow filenames that begin with a dot.
10091 rmdir .libs 2>/dev/null
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10094 $as_echo "$lt_cv_objdir" >&6; }
10095 objdir=$lt_cv_objdir
10101 cat >>confdefs.h <<_ACEOF
10102 #define LT_OBJDIR "$lt_cv_objdir/"
10110 # AIX sometimes has problems with the GCC collect2 program. For some
10111 # reason, if we set the COLLECT_NAMES environment variable, the problems
10112 # vanish in a puff of smoke.
10113 if test "X${COLLECT_NAMES+set}" != Xset; then
10115 export COLLECT_NAMES
10120 # Global variables:
10122 can_build_shared=yes
10124 # All known linkers require a `.a' archive for static linking (except MSVC,
10125 # which needs '.lib').
10128 with_gnu_ld="$lt_cv_prog_gnu_ld"
10131 old_CFLAGS="$CFLAGS"
10133 # Set sane defaults for various variables
10134 test -z "$CC" && CC=cc
10135 test -z "$LTCC" && LTCC=$CC
10136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10137 test -z "$LD" && LD=ld
10138 test -z "$ac_objext" && ac_objext=o
10140 for cc_temp in $compiler""; do
10142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10151 # Only perform the check for file, if the check method requires it
10152 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10153 case $deplibs_check_method in
10155 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10157 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10159 $as_echo_n "(cached) " >&6
10163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10166 lt_save_MAGIC_CMD="$MAGIC_CMD"
10167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10169 for ac_dir in $ac_dummy; do
10171 test -z "$ac_dir" && ac_dir=.
10172 if test -f $ac_dir/${ac_tool_prefix}file; then
10173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10174 if test -n "$file_magic_test_file"; then
10175 case $deplibs_check_method in
10177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10180 $EGREP "$file_magic_regex" > /dev/null; then
10185 *** Warning: the command libtool uses to detect shared libraries,
10186 *** $file_magic_cmd, produces output that libtool cannot recognize.
10187 *** The result is that libtool may fail to recognize shared libraries
10188 *** as such. This will affect the creation of libtool libraries that
10189 *** depend on shared libraries, but programs linked with such libtool
10190 *** libraries will work regardless of this problem. Nevertheless, you
10191 *** may want to report the problem to your system manager and/or to
10192 *** bug-libtool@gnu.org
10202 MAGIC_CMD="$lt_save_MAGIC_CMD"
10207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10208 if test -n "$MAGIC_CMD"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10210 $as_echo "$MAGIC_CMD" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10220 if test -z "$lt_cv_path_MAGIC_CMD"; then
10221 if test -n "$ac_tool_prefix"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10223 $as_echo_n "checking for file... " >&6; }
10224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10225 $as_echo_n "(cached) " >&6
10229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10232 lt_save_MAGIC_CMD="$MAGIC_CMD"
10233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10235 for ac_dir in $ac_dummy; do
10237 test -z "$ac_dir" && ac_dir=.
10238 if test -f $ac_dir/file; then
10239 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10240 if test -n "$file_magic_test_file"; then
10241 case $deplibs_check_method in
10243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10246 $EGREP "$file_magic_regex" > /dev/null; then
10251 *** Warning: the command libtool uses to detect shared libraries,
10252 *** $file_magic_cmd, produces output that libtool cannot recognize.
10253 *** The result is that libtool may fail to recognize shared libraries
10254 *** as such. This will affect the creation of libtool libraries that
10255 *** depend on shared libraries, but programs linked with such libtool
10256 *** libraries will work regardless of this problem. Nevertheless, you
10257 *** may want to report the problem to your system manager and/or to
10258 *** bug-libtool@gnu.org
10268 MAGIC_CMD="$lt_save_MAGIC_CMD"
10273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10274 if test -n "$MAGIC_CMD"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10276 $as_echo "$MAGIC_CMD" >&6; }
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10292 # Use C for the default configuration in the libtool script
10296 ac_cpp='$CPP $CPPFLAGS'
10297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302 # Source file extension for C test sources.
10305 # Object file extension for compiled C test sources.
10309 # Code to be used in simple compile tests
10310 lt_simple_compile_test_code="int some_variable = 0;"
10312 # Code to be used in simple link tests
10313 lt_simple_link_test_code='int main(){return(0);}'
10321 # If no C compiler was specified, use CC.
10324 # If no C compiler flags were specified, use CFLAGS.
10325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10327 # Allow CC to be a program name with arguments.
10330 # Save the default compiler, since it gets overwritten when the other
10331 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10332 compiler_DEFAULT=$CC
10334 # save warnings/boilerplate of simple test code
10335 ac_outfile=conftest.$ac_objext
10336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10338 _lt_compiler_boilerplate=`cat conftest.err`
10341 ac_outfile=conftest.$ac_objext
10342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10344 _lt_linker_boilerplate=`cat conftest.err`
10349 ## There is no encapsulation within the following macros, do not change
10350 ## the running order or otherwise move them around unless you know exactly
10351 ## what you are doing...
10352 if test -n "$compiler"; then
10354 lt_prog_compiler_no_builtin_flag=
10356 if test "$GCC" = yes; then
10357 case $cc_basename in
10359 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10361 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10365 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10366 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10367 $as_echo_n "(cached) " >&6
10369 lt_cv_prog_compiler_rtti_exceptions=no
10370 ac_outfile=conftest.$ac_objext
10371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10372 lt_compiler_flag="-fno-rtti -fno-exceptions"
10373 # Insert the option either (1) after the last *FLAGS variable, or
10374 # (2) before a word containing "conftest.", or (3) at the end.
10375 # Note that $ac_compile itself does not contain backslashes and begins
10376 # with a dollar sign (not a hyphen), so the echo should work correctly.
10377 # The option is referenced via a variable to avoid confusing sed.
10378 lt_compile=`echo "$ac_compile" | $SED \
10379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10381 -e 's:$: $lt_compiler_flag:'`
10382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10383 (eval "$lt_compile" 2>conftest.err)
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 if (exit $ac_status) && test -s "$ac_outfile"; then
10388 # The compiler can only warn and ignore the option if not recognized
10389 # So say no if there are warnings other than the usual output.
10390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10393 lt_cv_prog_compiler_rtti_exceptions=yes
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10400 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10402 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10403 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10415 lt_prog_compiler_wl=
10416 lt_prog_compiler_pic=
10417 lt_prog_compiler_static=
10420 if test "$GCC" = yes; then
10421 lt_prog_compiler_wl='-Wl,'
10422 lt_prog_compiler_static='-static'
10426 # All AIX code is PIC.
10427 if test "$host_cpu" = ia64; then
10428 # AIX 5 now supports IA64 processor
10429 lt_prog_compiler_static='-Bstatic'
10436 # see comment about AmigaOS4 .so support
10437 lt_prog_compiler_pic='-fPIC'
10440 # FIXME: we need at least 68020 code to build shared libraries, but
10441 # adding the `-m68020' flag to GCC prevents building anything better,
10443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10448 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10449 # PIC is the default for these OSes.
10452 mingw* | cygwin* | pw32* | os2* | cegcc*)
10453 # This hack is so that the source file can tell whether it is being
10454 # built for inclusion in a dll (and should export symbols for example).
10455 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10456 # (--disable-auto-import) libraries
10457 lt_prog_compiler_pic='-DDLL_EXPORT'
10460 darwin* | rhapsody*)
10461 # PIC is the default on this platform
10462 # Common symbols not allowed in MH_DYLIB files
10463 lt_prog_compiler_pic='-fno-common'
10467 # PIC is the default for Haiku.
10468 # The "-static" flag exists, but is broken.
10469 lt_prog_compiler_static=
10473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10475 # sets the default TLS model and affects inlining.
10481 lt_prog_compiler_pic='-fPIC'
10487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10488 # Instead, we relocate shared libraries at runtime.
10492 # Just because we use GCC doesn't mean we suddenly get shared libraries
10493 # on systems that don't support them.
10494 lt_prog_compiler_can_build_shared=no
10499 # QNX uses GNU C++, but need to define -shared option too, otherwise
10500 # it will coredump.
10501 lt_prog_compiler_pic='-fPIC -shared'
10505 if test -d /usr/nec; then
10506 lt_prog_compiler_pic=-Kconform_pic
10511 lt_prog_compiler_pic='-fPIC'
10515 case $cc_basename in
10516 nvcc*) # Cuda Compiler Driver 2.2
10517 lt_prog_compiler_wl='-Xlinker '
10518 if test -n "$lt_prog_compiler_pic"; then
10519 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10524 # PORTME Check for flag to pass linker flags through the system compiler.
10527 lt_prog_compiler_wl='-Wl,'
10528 if test "$host_cpu" = ia64; then
10529 # AIX 5 now supports IA64 processor
10530 lt_prog_compiler_static='-Bstatic'
10532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10536 mingw* | cygwin* | pw32* | os2* | cegcc*)
10537 # This hack is so that the source file can tell whether it is being
10538 # built for inclusion in a dll (and should export symbols for example).
10539 lt_prog_compiler_pic='-DDLL_EXPORT'
10542 hpux9* | hpux10* | hpux11*)
10543 lt_prog_compiler_wl='-Wl,'
10544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545 # not for PA HP-UX.
10551 lt_prog_compiler_pic='+Z'
10554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555 lt_prog_compiler_static='${wl}-a ${wl}archive'
10558 irix5* | irix6* | nonstopux*)
10559 lt_prog_compiler_wl='-Wl,'
10560 # PIC (with -KPIC) is the default.
10561 lt_prog_compiler_static='-non_shared'
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565 case $cc_basename in
10566 # old Intel for x86_64 which still supported -KPIC.
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-KPIC'
10570 lt_prog_compiler_static='-static'
10572 # icc used to be incompatible with GCC.
10573 # ICC 10 doesn't accept -KPIC any more.
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-fPIC'
10577 lt_prog_compiler_static='-static'
10579 # Lahey Fortran 8.1.
10581 lt_prog_compiler_wl='-Wl,'
10582 lt_prog_compiler_pic='--shared'
10583 lt_prog_compiler_static='--static'
10586 # NAG Fortran compiler
10587 lt_prog_compiler_wl='-Wl,-Wl,,'
10588 lt_prog_compiler_pic='-PIC'
10589 lt_prog_compiler_static='-Bstatic'
10591 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10592 # Portland Group compilers (*not* the Pentium gcc compiler,
10593 # which looks to be a dead project)
10594 lt_prog_compiler_wl='-Wl,'
10595 lt_prog_compiler_pic='-fpic'
10596 lt_prog_compiler_static='-Bstatic'
10599 lt_prog_compiler_wl='-Wl,'
10600 # All Alpha code is PIC.
10601 lt_prog_compiler_static='-non_shared'
10603 xl* | bgxl* | bgf* | mpixl*)
10604 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10605 lt_prog_compiler_wl='-Wl,'
10606 lt_prog_compiler_pic='-qpic'
10607 lt_prog_compiler_static='-qstaticlink'
10610 case `$CC -V 2>&1 | sed 5q` in
10611 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10612 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10613 lt_prog_compiler_pic='-KPIC'
10614 lt_prog_compiler_static='-Bstatic'
10615 lt_prog_compiler_wl=''
10617 *Sun\ F* | *Sun*Fortran*)
10618 lt_prog_compiler_pic='-KPIC'
10619 lt_prog_compiler_static='-Bstatic'
10620 lt_prog_compiler_wl='-Qoption ld '
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 lt_prog_compiler_wl='-Wl,'
10628 *Intel*\ [CF]*Compiler*)
10629 lt_prog_compiler_wl='-Wl,'
10630 lt_prog_compiler_pic='-fPIC'
10631 lt_prog_compiler_static='-static'
10634 lt_prog_compiler_wl='-Wl,'
10635 lt_prog_compiler_pic='-fpic'
10636 lt_prog_compiler_static='-Bstatic'
10644 lt_prog_compiler_pic='-KPIC'
10645 lt_prog_compiler_static='-Bstatic'
10649 # QNX uses GNU C++, but need to define -shared option too, otherwise
10650 # it will coredump.
10651 lt_prog_compiler_pic='-fPIC -shared'
10654 osf3* | osf4* | osf5*)
10655 lt_prog_compiler_wl='-Wl,'
10656 # All OSF/1 code is PIC.
10657 lt_prog_compiler_static='-non_shared'
10661 lt_prog_compiler_static='-non_shared'
10665 lt_prog_compiler_pic='-KPIC'
10666 lt_prog_compiler_static='-Bstatic'
10667 case $cc_basename in
10668 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10669 lt_prog_compiler_wl='-Qoption ld ';;
10671 lt_prog_compiler_wl='-Wl,';;
10676 lt_prog_compiler_wl='-Qoption ld '
10677 lt_prog_compiler_pic='-PIC'
10678 lt_prog_compiler_static='-Bstatic'
10681 sysv4 | sysv4.2uw2* | sysv4.3*)
10682 lt_prog_compiler_wl='-Wl,'
10683 lt_prog_compiler_pic='-KPIC'
10684 lt_prog_compiler_static='-Bstatic'
10688 if test -d /usr/nec ;then
10689 lt_prog_compiler_pic='-Kconform_pic'
10690 lt_prog_compiler_static='-Bstatic'
10694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10695 lt_prog_compiler_wl='-Wl,'
10696 lt_prog_compiler_pic='-KPIC'
10697 lt_prog_compiler_static='-Bstatic'
10701 lt_prog_compiler_wl='-Wl,'
10702 lt_prog_compiler_can_build_shared=no
10706 lt_prog_compiler_pic='-pic'
10707 lt_prog_compiler_static='-Bstatic'
10711 lt_prog_compiler_can_build_shared=no
10717 # For platforms which do not support PIC, -DPIC is meaningless:
10719 lt_prog_compiler_pic=
10722 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10727 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10728 if ${lt_cv_prog_compiler_pic+:} false; then :
10729 $as_echo_n "(cached) " >&6
10731 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10734 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10735 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10738 # Check to make sure the PIC flag actually works.
10740 if test -n "$lt_prog_compiler_pic"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10742 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10743 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10744 $as_echo_n "(cached) " >&6
10746 lt_cv_prog_compiler_pic_works=no
10747 ac_outfile=conftest.$ac_objext
10748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10749 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10750 # Insert the option either (1) after the last *FLAGS variable, or
10751 # (2) before a word containing "conftest.", or (3) at the end.
10752 # Note that $ac_compile itself does not contain backslashes and begins
10753 # with a dollar sign (not a hyphen), so the echo should work correctly.
10754 # The option is referenced via a variable to avoid confusing sed.
10755 lt_compile=`echo "$ac_compile" | $SED \
10756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10758 -e 's:$: $lt_compiler_flag:'`
10759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10760 (eval "$lt_compile" 2>conftest.err)
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 if (exit $ac_status) && test -s "$ac_outfile"; then
10765 # The compiler can only warn and ignore the option if not recognized
10766 # So say no if there are warnings other than the usual output.
10767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10769 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10770 lt_cv_prog_compiler_pic_works=yes
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10777 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10779 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10780 case $lt_prog_compiler_pic in
10782 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10785 lt_prog_compiler_pic=
10786 lt_prog_compiler_can_build_shared=no
10802 # Check to make sure the static flag actually works.
10804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10807 if ${lt_cv_prog_compiler_static_works+:} false; then :
10808 $as_echo_n "(cached) " >&6
10810 lt_cv_prog_compiler_static_works=no
10811 save_LDFLAGS="$LDFLAGS"
10812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10815 # The linker can only warn and ignore the option if not recognized
10816 # So say no if there are warnings
10817 if test -s conftest.err; then
10818 # Append any errors to the config.log.
10819 cat conftest.err 1>&5
10820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822 if diff conftest.exp conftest.er2 >/dev/null; then
10823 lt_cv_prog_compiler_static_works=yes
10826 lt_cv_prog_compiler_static_works=yes
10830 LDFLAGS="$save_LDFLAGS"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10834 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10839 lt_prog_compiler_static=
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10850 if ${lt_cv_prog_compiler_c_o+:} false; then :
10851 $as_echo_n "(cached) " >&6
10853 lt_cv_prog_compiler_c_o=no
10854 $RM -r conftest 2>/dev/null
10858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10860 lt_compiler_flag="-o out/conftest2.$ac_objext"
10861 # Insert the option either (1) after the last *FLAGS variable, or
10862 # (2) before a word containing "conftest.", or (3) at the end.
10863 # Note that $ac_compile itself does not contain backslashes and begins
10864 # with a dollar sign (not a hyphen), so the echo should work correctly.
10865 lt_compile=`echo "$ac_compile" | $SED \
10866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868 -e 's:$: $lt_compiler_flag:'`
10869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10870 (eval "$lt_compile" 2>out/conftest.err)
10872 cat out/conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10876 # The compiler can only warn and ignore the option if not recognized
10877 # So say no if there are warnings
10878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10881 lt_cv_prog_compiler_c_o=yes
10886 # SGI C++ compiler will create directory out/ii_files/ for
10887 # template instantiation
10888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10889 $RM out/* && rmdir out
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10896 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906 $as_echo_n "(cached) " >&6
10908 lt_cv_prog_compiler_c_o=no
10909 $RM -r conftest 2>/dev/null
10913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10915 lt_compiler_flag="-o out/conftest2.$ac_objext"
10916 # Insert the option either (1) after the last *FLAGS variable, or
10917 # (2) before a word containing "conftest.", or (3) at the end.
10918 # Note that $ac_compile itself does not contain backslashes and begins
10919 # with a dollar sign (not a hyphen), so the echo should work correctly.
10920 lt_compile=`echo "$ac_compile" | $SED \
10921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923 -e 's:$: $lt_compiler_flag:'`
10924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925 (eval "$lt_compile" 2>out/conftest.err)
10927 cat out/conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10931 # The compiler can only warn and ignore the option if not recognized
10932 # So say no if there are warnings
10933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936 lt_cv_prog_compiler_c_o=yes
10941 # SGI C++ compiler will create directory out/ii_files/ for
10942 # template instantiation
10943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944 $RM out/* && rmdir out
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10956 hard_links="nottested"
10957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10958 # do not overwrite the value of need_locks provided by the user
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10960 $as_echo_n "checking if we can lock with hard links... " >&6; }
10963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10965 ln conftest.a conftest.b 2>&5 || hard_links=no
10966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10968 $as_echo "$hard_links" >&6; }
10969 if test "$hard_links" = no; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10971 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10987 allow_undefined_flag=
10988 always_export_symbols=no
10990 archive_expsym_cmds=
10991 compiler_needs_object=no
10992 enable_shared_with_static_runtimes=no
10993 export_dynamic_flag_spec=
10994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995 hardcode_automatic=no
10997 hardcode_direct_absolute=no
10998 hardcode_libdir_flag_spec=
10999 hardcode_libdir_separator=
11000 hardcode_minus_L=no
11001 hardcode_shlibpath_var=unsupported
11003 link_all_deplibs=unknown
11005 module_expsym_cmds=
11006 old_archive_from_new_cmds=
11007 old_archive_from_expsyms_cmds=
11008 thread_safe_flag_spec=
11009 whole_archive_flag_spec=
11010 # include_expsyms should be a list of space-separated symbols to be *always*
11011 # included in the symbol list
11013 # exclude_expsyms can be an extended regexp of symbols to exclude
11014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11016 # as well as any symbol that contains `d'.
11017 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11019 # platforms (ab)use it in PIC code, but their linkers get confused if
11020 # the symbol is explicitly referenced. Since portable code cannot
11021 # rely on this symbol name, it's probably fine to never include it in
11022 # preloaded symbol tables.
11023 # Exclude shared library initialization/finalization symbols.
11024 extract_expsyms_cmds=
11027 cygwin* | mingw* | pw32* | cegcc*)
11028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11029 # When not using gcc, we currently assume that we are using
11030 # Microsoft Visual C++.
11031 if test "$GCC" != yes; then
11036 # we just hope/assume this is gcc and not c89 (= MSVC++)
11046 # On some targets, GNU ld is compatible enough with the native linker
11047 # that we're better off using the native interface for both.
11048 lt_use_gnu_ld_interface=no
11049 if test "$with_gnu_ld" = yes; then
11052 # The AIX port of GNU ld has always aspired to compatibility
11053 # with the native linker. However, as the warning in the GNU ld
11054 # block says, versions before 2.19.5* couldn't really create working
11055 # shared libraries, regardless of the interface used.
11056 case `$LD -v 2>&1` in
11057 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11058 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11059 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11061 lt_use_gnu_ld_interface=yes
11066 lt_use_gnu_ld_interface=yes
11071 if test "$lt_use_gnu_ld_interface" = yes; then
11072 # If archive_cmds runs LD, not CC, wlarc should be empty
11075 # Set some defaults for GNU ld with shared library support. These
11076 # are reset later if shared libraries are not supported. Putting them
11077 # here allows them to be overridden if necessary.
11078 runpath_var=LD_RUN_PATH
11079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11080 export_dynamic_flag_spec='${wl}--export-dynamic'
11081 # ancient GNU ld didn't support --whole-archive et. al.
11082 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11083 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11085 whole_archive_flag_spec=
11087 supports_anon_versioning=no
11088 case `$LD -v 2>&1` in
11089 *GNU\ gold*) supports_anon_versioning=yes ;;
11090 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11093 *\ 2.11.*) ;; # other 2.11 versions
11094 *) supports_anon_versioning=yes ;;
11097 # See if GNU ld supports shared libraries.
11100 # On AIX/PPC, the GNU linker is very broken
11101 if test "$host_cpu" != ia64; then
11105 *** Warning: the GNU linker, at least up to release 2.19, is reported
11106 *** to be unable to reliably create shared libraries on AIX.
11107 *** Therefore, libtool is disabling shared libraries support. If you
11108 *** really care for shared libraries, you may want to install binutils
11109 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11110 *** You will then need to restart the configuration process.
11119 # see comment about AmigaOS4 .so support
11120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11121 archive_expsym_cmds=''
11124 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)'
11125 hardcode_libdir_flag_spec='-L$libdir'
11126 hardcode_minus_L=yes
11132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133 allow_undefined_flag=unsupported
11134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11135 # support --undefined. This deserves some investigation. FIXME
11136 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11142 cygwin* | mingw* | pw32* | cegcc*)
11143 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11144 # as there is no search path for DLLs.
11145 hardcode_libdir_flag_spec='-L$libdir'
11146 export_dynamic_flag_spec='${wl}--export-all-symbols'
11147 allow_undefined_flag=unsupported
11148 always_export_symbols=no
11149 enable_shared_with_static_runtimes=yes
11150 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'
11151 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11155 # If the export-symbols file already is a .def file (1st line
11156 # is EXPORTS), use it as is; otherwise, prepend...
11157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11158 cp $export_symbols $output_objdir/$soname.def;
11160 echo EXPORTS > $output_objdir/$soname.def;
11161 cat $export_symbols >> $output_objdir/$soname.def;
11163 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11171 link_all_deplibs=yes
11176 hardcode_shlibpath_var=no
11177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11178 export_dynamic_flag_spec='${wl}-E'
11179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11180 # Instead, shared libraries are loaded at an image base (0x10000000 by
11181 # default) and relocated if they conflict, which is a slow very memory
11182 # consuming and fragmenting process. To avoid this, we pick a random,
11183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11186 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'
11189 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11191 if test "$host_os" = linux-dietlibc; then
11192 case $cc_basename in
11193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11197 && test "$tmp_diet" = no
11199 tmp_addflag=' $pic_flag'
11200 tmp_sharedflag='-shared'
11201 case $cc_basename,$host_cpu in
11202 pgcc*) # Portland Group C compiler
11203 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'
11204 tmp_addflag=' $pic_flag'
11206 pgf77* | pgf90* | pgf95* | pgfortran*)
11207 # Portland Group f77 and f90 compilers
11208 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'
11209 tmp_addflag=' $pic_flag -Mnomain' ;;
11210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11211 tmp_addflag=' -i_dynamic' ;;
11212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11213 tmp_addflag=' -i_dynamic -nofor_main' ;;
11214 ifc* | ifort*) # Intel Fortran compiler
11215 tmp_addflag=' -nofor_main' ;;
11216 lf95*) # Lahey Fortran 8.1
11217 whole_archive_flag_spec=
11218 tmp_sharedflag='--shared' ;;
11219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11220 tmp_sharedflag='-qmkshrobj'
11222 nvcc*) # Cuda Compiler Driver 2.2
11223 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'
11224 compiler_needs_object=yes
11227 case `$CC -V 2>&1 | sed 5q` in
11228 *Sun\ C*) # Sun C 5.9
11229 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'
11230 compiler_needs_object=yes
11231 tmp_sharedflag='-G' ;;
11232 *Sun\ F*) # Sun Fortran 8.3
11233 tmp_sharedflag='-G' ;;
11235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11237 if test "x$supports_anon_versioning" = xyes; then
11238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11240 echo "local: *; };" >> $output_objdir/$libname.ver~
11241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11244 case $cc_basename in
11245 xlf* | bgf* | bgxlf* | mpixlf*)
11246 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11247 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11250 if test "x$supports_anon_versioning" = xyes; then
11251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11253 echo "local: *; };" >> $output_objdir/$libname.ver~
11254 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11265 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11269 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11274 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11279 *** create shared libraries on Solaris systems. Therefore, libtool
11280 *** is disabling shared libraries support. We urge you to upgrade GNU
11281 *** binutils to release 2.9.1 or newer. Another option is to modify
11282 *** your PATH or compiler configuration so that the native linker is
11283 *** used, and then restart.
11286 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11295 case `$LD -v 2>&1` in
11296 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11301 *** reliably create shared libraries on SCO systems. Therefore, libtool
11302 *** is disabling shared libraries support. We urge you to upgrade GNU
11303 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11304 *** your PATH or compiler configuration so that the native linker is
11305 *** used, and then restart.
11310 # For security reasons, it is highly recommended that you always
11311 # use absolute paths for naming shared libraries, and exclude the
11312 # DT_RUNPATH tag from executables and libraries. But doing so
11313 # requires that you compile everything twice, which is a pain.
11314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11326 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11328 hardcode_direct=yes
11329 hardcode_shlibpath_var=no
11333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11334 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11342 if test "$ld_shlibs" = no; then
11344 hardcode_libdir_flag_spec=
11345 export_dynamic_flag_spec=
11346 whole_archive_flag_spec=
11349 # PORTME fill in a description of your system's linker (not GNU ld)
11352 allow_undefined_flag=unsupported
11353 always_export_symbols=yes
11354 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'
11355 # Note: this linker hardcodes the directories in LIBPATH if there
11356 # are no directories specified by -L.
11357 hardcode_minus_L=yes
11358 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11359 # Neither direct hardcoding nor static linking is supported with a
11361 hardcode_direct=unsupported
11366 if test "$host_cpu" = ia64; then
11367 # On IA64, the linker does run time linking by default, so we don't
11368 # have to do anything special.
11369 aix_use_runtimelinking=no
11370 exp_sym_flag='-Bexport'
11373 # If we're using GNU nm, then we don't want the "-C" option.
11374 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11375 # Also, AIX nm treats weak defined symbols like other global
11376 # defined symbols, whereas GNU nm marks them as "W".
11377 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11378 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'
11380 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'
11382 aix_use_runtimelinking=no
11384 # Test if we are trying to use run time linking or normal
11385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11386 # need to do runtime linking.
11387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11388 for ld_flag in $LDFLAGS; do
11389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11390 aix_use_runtimelinking=yes
11397 exp_sym_flag='-bexport'
11398 no_entry_flag='-bnoentry'
11401 # When large executables or shared objects are built, AIX ld can
11402 # have problems creating the table of contents. If linking a library
11403 # or program results in "error TOC overflow" add -mminimal-toc to
11404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11408 hardcode_direct=yes
11409 hardcode_direct_absolute=yes
11410 hardcode_libdir_separator=':'
11411 link_all_deplibs=yes
11412 file_list_spec='${wl}-f,'
11414 if test "$GCC" = yes; then
11415 case $host_os in aix4.[012]|aix4.[012].*)
11416 # We only want to do this on AIX 4.2 and lower, the check
11417 # below for broken collect2 doesn't work under 4.3+
11418 collect2name=`${CC} -print-prog-name=collect2`
11419 if test -f "$collect2name" &&
11420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11422 # We have reworked collect2
11425 # We have old collect2
11426 hardcode_direct=unsupported
11427 # It fails to find uninstalled libraries when the uninstalled
11428 # path is not listed in the libpath. Setting hardcode_minus_L
11429 # to unsupported forces relinking
11430 hardcode_minus_L=yes
11431 hardcode_libdir_flag_spec='-L$libdir'
11432 hardcode_libdir_separator=
11436 shared_flag='-shared'
11437 if test "$aix_use_runtimelinking" = yes; then
11438 shared_flag="$shared_flag "'${wl}-G'
11442 if test "$host_cpu" = ia64; then
11443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11444 # chokes on -Wl,-G. The following line is correct:
11447 if test "$aix_use_runtimelinking" = yes; then
11448 shared_flag='${wl}-G'
11450 shared_flag='${wl}-bM:SRE'
11455 export_dynamic_flag_spec='${wl}-bexpall'
11456 # It seems that -bexpall does not export symbols beginning with
11457 # underscore (_), so it is better to generate a list of symbols to export.
11458 always_export_symbols=yes
11459 if test "$aix_use_runtimelinking" = yes; then
11460 # Warning - without using the other runtime loading flags (-brtl),
11461 # -berok will link without error, but may produce a broken library.
11462 allow_undefined_flag='-berok'
11463 # Determine the default libpath from the value encoded in an
11464 # empty executable.
11465 if test "${lt_cv_aix_libpath+set}" = set; then
11466 aix_libpath=$lt_cv_aix_libpath
11468 if ${lt_cv_aix_libpath_+:} false; then :
11469 $as_echo_n "(cached) " >&6
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11482 if ac_fn_c_try_link "$LINENO"; then :
11484 lt_aix_libpath_sed='
11485 /Import File Strings/,/^$/ {
11487 s/^0 *\([^ ]*\) *$/\1/
11491 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11492 # Check for a 64-bit object if we didn't find anything.
11493 if test -z "$lt_cv_aix_libpath_"; then
11494 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 if test -z "$lt_cv_aix_libpath_"; then
11500 lt_cv_aix_libpath_="/usr/lib:/lib"
11505 aix_libpath=$lt_cv_aix_libpath_
11508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11509 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"
11511 if test "$host_cpu" = ia64; then
11512 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11513 allow_undefined_flag="-z nodefs"
11514 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"
11516 # Determine the default libpath from the value encoded in an
11517 # empty executable.
11518 if test "${lt_cv_aix_libpath+set}" = set; then
11519 aix_libpath=$lt_cv_aix_libpath
11521 if ${lt_cv_aix_libpath_+:} false; then :
11522 $as_echo_n "(cached) " >&6
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11535 if ac_fn_c_try_link "$LINENO"; then :
11537 lt_aix_libpath_sed='
11538 /Import File Strings/,/^$/ {
11540 s/^0 *\([^ ]*\) *$/\1/
11544 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11545 # Check for a 64-bit object if we didn't find anything.
11546 if test -z "$lt_cv_aix_libpath_"; then
11547 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 if test -z "$lt_cv_aix_libpath_"; then
11553 lt_cv_aix_libpath_="/usr/lib:/lib"
11558 aix_libpath=$lt_cv_aix_libpath_
11561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11562 # Warning - without using the other run time loading flags,
11563 # -berok will link without error, but may produce a broken library.
11564 no_undefined_flag=' ${wl}-bernotok'
11565 allow_undefined_flag=' ${wl}-berok'
11566 if test "$with_gnu_ld" = yes; then
11567 # We only use this code for GNU lds that support --whole-archive.
11568 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11570 # Exported symbols can be pulled into shared objects from archives
11571 whole_archive_flag_spec='$convenience'
11573 archive_cmds_need_lc=yes
11574 # This is similar to how AIX traditionally builds its shared libraries.
11575 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'
11583 # see comment about AmigaOS4 .so support
11584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 archive_expsym_cmds=''
11588 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)'
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 hardcode_minus_L=yes
11596 export_dynamic_flag_spec=-rdynamic
11599 cygwin* | mingw* | pw32* | cegcc*)
11600 # When not using gcc, we currently assume that we are using
11601 # Microsoft Visual C++.
11602 # hardcode_libdir_flag_spec is actually meaningless, as there is
11603 # no search path for DLLs.
11604 case $cc_basename in
11607 hardcode_libdir_flag_spec=' '
11608 allow_undefined_flag=unsupported
11609 always_export_symbols=yes
11611 # Tell ltmain to make .lib files, not .a files.
11613 # Tell ltmain to make .dll files, not .so files.
11615 # FIXME: Setting linknames here is a bad hack.
11616 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11618 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11620 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11622 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11624 # The linker will not automatically build a static lib if we build a DLL.
11625 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11626 enable_shared_with_static_runtimes=yes
11627 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11630 old_postinstall_cmds='chmod 644 $oldlib'
11631 postlink_cmds='lt_outputfile="@OUTPUT@"~
11632 lt_tool_outputfile="@TOOL_OUTPUT@"~
11633 case $lt_outputfile in
11636 lt_outputfile="$lt_outputfile.exe"
11637 lt_tool_outputfile="$lt_tool_outputfile.exe"
11640 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11641 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11642 $RM "$lt_outputfile.manifest";
11646 # Assume MSVC wrapper
11647 hardcode_libdir_flag_spec=' '
11648 allow_undefined_flag=unsupported
11649 # Tell ltmain to make .lib files, not .a files.
11651 # Tell ltmain to make .dll files, not .so files.
11653 # FIXME: Setting linknames here is a bad hack.
11654 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11655 # The linker will automatically build a .lib file if we build a DLL.
11656 old_archive_from_new_cmds='true'
11657 # FIXME: Should let the user specify the lib program.
11658 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11659 enable_shared_with_static_runtimes=yes
11664 darwin* | rhapsody*)
11667 archive_cmds_need_lc=no
11669 hardcode_automatic=yes
11670 hardcode_shlibpath_var=unsupported
11671 if test "$lt_cv_ld_force_load" = "yes"; then
11672 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\"`'
11675 whole_archive_flag_spec=''
11677 link_all_deplibs=yes
11678 allow_undefined_flag="$_lt_dar_allow_undefined"
11679 case $cc_basename in
11680 ifort*) _lt_dar_can_shared=yes ;;
11681 *) _lt_dar_can_shared=$GCC ;;
11683 if test "$_lt_dar_can_shared" = "yes"; then
11684 output_verbose_link_cmd=func_echo_all
11685 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11686 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11687 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}"
11688 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}"
11697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11698 hardcode_libdir_flag_spec='-L$libdir'
11699 hardcode_shlibpath_var=no
11702 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11703 # support. Future versions do this automatically, but an explicit c++rt0.o
11704 # does not break anything, and helps significantly (at the cost of a little
11707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11708 hardcode_libdir_flag_spec='-R$libdir'
11709 hardcode_direct=yes
11710 hardcode_shlibpath_var=no
11713 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11716 hardcode_direct=yes
11717 hardcode_minus_L=yes
11718 hardcode_shlibpath_var=no
11721 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11722 freebsd* | dragonfly*)
11723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11724 hardcode_libdir_flag_spec='-R$libdir'
11725 hardcode_direct=yes
11726 hardcode_shlibpath_var=no
11730 if test "$GCC" = yes; then
11731 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'
11733 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'
11735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11736 hardcode_libdir_separator=:
11737 hardcode_direct=yes
11739 # hardcode_minus_L: Not really in the search PATH,
11740 # but as the default location of the library.
11741 hardcode_minus_L=yes
11742 export_dynamic_flag_spec='${wl}-E'
11746 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11747 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11751 if test "$with_gnu_ld" = no; then
11752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11753 hardcode_libdir_separator=:
11754 hardcode_direct=yes
11755 hardcode_direct_absolute=yes
11756 export_dynamic_flag_spec='${wl}-E'
11757 # hardcode_minus_L: Not really in the search PATH,
11758 # but as the default location of the library.
11759 hardcode_minus_L=yes
11764 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11770 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11773 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11786 # Older versions of the 11.00 compiler do not understand -b yet
11787 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11789 $as_echo_n "checking if $CC understands -b... " >&6; }
11790 if ${lt_cv_prog_compiler__b+:} false; then :
11791 $as_echo_n "(cached) " >&6
11793 lt_cv_prog_compiler__b=no
11794 save_LDFLAGS="$LDFLAGS"
11795 LDFLAGS="$LDFLAGS -b"
11796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11798 # The linker can only warn and ignore the option if not recognized
11799 # So say no if there are warnings
11800 if test -s conftest.err; then
11801 # Append any errors to the config.log.
11802 cat conftest.err 1>&5
11803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11805 if diff conftest.exp conftest.er2 >/dev/null; then
11806 lt_cv_prog_compiler__b=yes
11809 lt_cv_prog_compiler__b=yes
11813 LDFLAGS="$save_LDFLAGS"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11819 if test x"$lt_cv_prog_compiler__b" = xyes; then
11820 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11828 if test "$with_gnu_ld" = no; then
11829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator=:
11835 hardcode_shlibpath_var=no
11838 hardcode_direct=yes
11839 hardcode_direct_absolute=yes
11840 export_dynamic_flag_spec='${wl}-E'
11842 # hardcode_minus_L: Not really in the search PATH,
11843 # but as the default location of the library.
11844 hardcode_minus_L=yes
11850 irix5* | irix6* | nonstopux*)
11851 if test "$GCC" = yes; then
11852 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'
11853 # Try to use the -exported_symbol ld option, if it does not
11854 # work, assume that -exports_file does not work either and
11855 # implicitly export all symbols.
11856 # This should be the same for all languages, so no per-tag cache variable.
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11858 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11859 if ${lt_cv_irix_exported_symbol+:} false; then :
11860 $as_echo_n "(cached) " >&6
11862 save_LDFLAGS="$LDFLAGS"
11863 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 int foo (void) { return 0; }
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 lt_cv_irix_exported_symbol=yes
11871 lt_cv_irix_exported_symbol=no
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LDFLAGS="$save_LDFLAGS"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11878 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11879 if test "$lt_cv_irix_exported_symbol" = yes; then
11880 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'
11883 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'
11884 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'
11886 archive_cmds_need_lc='no'
11887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11888 hardcode_libdir_separator=:
11890 link_all_deplibs=yes
11894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11897 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11899 hardcode_libdir_flag_spec='-R$libdir'
11900 hardcode_direct=yes
11901 hardcode_shlibpath_var=no
11905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906 hardcode_direct=yes
11907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11908 hardcode_libdir_separator=:
11909 hardcode_shlibpath_var=no
11916 if test -f /usr/libexec/ld.so; then
11917 hardcode_direct=yes
11918 hardcode_shlibpath_var=no
11919 hardcode_direct_absolute=yes
11920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11922 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11924 export_dynamic_flag_spec='${wl}-E'
11927 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11929 hardcode_libdir_flag_spec='-R$libdir'
11932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11943 hardcode_libdir_flag_spec='-L$libdir'
11944 hardcode_minus_L=yes
11945 allow_undefined_flag=unsupported
11946 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'
11947 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11951 if test "$GCC" = yes; then
11952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11953 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'
11955 allow_undefined_flag=' -expect_unresolved \*'
11956 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'
11958 archive_cmds_need_lc='no'
11959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11960 hardcode_libdir_separator=:
11963 osf4* | osf5*) # as osf3* with the addition of -msym flag
11964 if test "$GCC" = yes; then
11965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11966 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'
11967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11969 allow_undefined_flag=' -expect_unresolved \*'
11970 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'
11971 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~
11972 $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'
11974 # Both c and cxx compiler support -rpath directly
11975 hardcode_libdir_flag_spec='-rpath $libdir'
11977 archive_cmds_need_lc='no'
11978 hardcode_libdir_separator=:
11982 no_undefined_flag=' -z defs'
11983 if test "$GCC" = yes; then
11985 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11987 $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'
11989 case `$CC -V 2>&1` in
11992 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11994 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11998 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12000 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12004 hardcode_libdir_flag_spec='-R$libdir'
12005 hardcode_shlibpath_var=no
12007 solaris2.[0-5] | solaris2.[0-5].*) ;;
12009 # The compiler driver will combine and reorder linker options,
12010 # but understands `-z linker_flag'. GCC discards it without `$wl',
12011 # but is careful enough not to reorder.
12012 # Supported since Solaris 2.6 (maybe 2.5.1?)
12013 if test "$GCC" = yes; then
12014 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12016 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12020 link_all_deplibs=yes
12024 if test "x$host_vendor" = xsequent; then
12025 # Use $CC to link under sequent, because it throws in some extra .o
12026 # files that make .init and .fini sections work.
12027 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12029 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12031 hardcode_libdir_flag_spec='-L$libdir'
12032 hardcode_direct=yes
12033 hardcode_minus_L=yes
12034 hardcode_shlibpath_var=no
12038 case $host_vendor in
12040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12041 hardcode_direct=yes # is this really true???
12044 ## LD is ld it makes a PLAMLIB
12045 ## CC just makes a GrossModule.
12046 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12047 reload_cmds='$CC -r -o $output$reload_objs'
12051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12055 runpath_var='LD_RUN_PATH'
12056 hardcode_shlibpath_var=no
12060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12061 hardcode_shlibpath_var=no
12062 export_dynamic_flag_spec='-Bexport'
12066 if test -d /usr/nec; then
12067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12068 hardcode_shlibpath_var=no
12069 runpath_var=LD_RUN_PATH
12070 hardcode_runpath_var=yes
12075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12076 no_undefined_flag='${wl}-z,text'
12077 archive_cmds_need_lc=no
12078 hardcode_shlibpath_var=no
12079 runpath_var='LD_RUN_PATH'
12081 if test "$GCC" = yes; then
12082 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12090 sysv5* | sco3.2v5* | sco5v6*)
12091 # Note: We can NOT use -z defs as we might desire, because we do not
12092 # link with -lc, and that would cause any symbols used from libc to
12093 # always be unresolved, which means just about no library would
12094 # ever link correctly. If we're not using GNU ld we use -z text
12095 # though, which does catch some bad symbols but isn't as heavy-handed
12097 no_undefined_flag='${wl}-z,text'
12098 allow_undefined_flag='${wl}-z,nodefs'
12099 archive_cmds_need_lc=no
12100 hardcode_shlibpath_var=no
12101 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12102 hardcode_libdir_separator=':'
12103 link_all_deplibs=yes
12104 export_dynamic_flag_spec='${wl}-Bexport'
12105 runpath_var='LD_RUN_PATH'
12107 if test "$GCC" = yes; then
12108 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12112 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12118 hardcode_libdir_flag_spec='-L$libdir'
12119 hardcode_shlibpath_var=no
12127 if test x$host_vendor = xsni; then
12129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12130 export_dynamic_flag_spec='${wl}-Blargedynsym'
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12137 $as_echo "$ld_shlibs" >&6; }
12138 test "$ld_shlibs" = no && can_build_shared=no
12140 with_gnu_ld=$with_gnu_ld
12157 # Do we need to explicitly link libc?
12159 case "x$archive_cmds_need_lc" in
12161 # Assume -lc should be added
12162 archive_cmds_need_lc=yes
12164 if test "$enable_shared" = yes && test "$GCC" = yes; then
12165 case $archive_cmds in
12167 # FIXME: we may have to deal with multi-command sequences.
12170 # Test whether the compiler implicitly links with -lc since on some
12171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12172 # to ld, don't add -lc before -lgcc.
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12174 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12175 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12176 $as_echo_n "(cached) " >&6
12179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12182 (eval $ac_compile) 2>&5
12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185 test $ac_status = 0; } 2>conftest.err; then
12188 libobjs=conftest.$ac_objext
12190 wl=$lt_prog_compiler_wl
12191 pic_flag=$lt_prog_compiler_pic
12197 lt_save_allow_undefined_flag=$allow_undefined_flag
12198 allow_undefined_flag=
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12200 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; }
12205 lt_cv_archive_cmds_need_lc=no
12207 lt_cv_archive_cmds_need_lc=yes
12209 allow_undefined_flag=$lt_save_allow_undefined_flag
12211 cat conftest.err 1>&5
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12217 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12218 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12379 if test "$GCC" = yes; then
12381 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12382 *) lt_awk_arg="/^libraries:/" ;;
12385 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12386 *) lt_sed_strip_eq="s,=/,/,g" ;;
12388 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12389 case $lt_search_path_spec in
12391 # if the path contains ";" then we assume it to be the separator
12392 # otherwise default to the standard path separator (i.e. ":") - it is
12393 # assumed that no part of a normal pathname contains ";" but that should
12394 # okay in the real world where ";" in dirpaths is itself problematic.
12395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12401 # Ok, now we have the path, separated by spaces, we can step through it
12402 # and add multilib dir if necessary.
12403 lt_tmp_lt_search_path_spec=
12404 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12405 for lt_sys_path in $lt_search_path_spec; do
12406 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12409 test -d "$lt_sys_path" && \
12410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12413 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12414 BEGIN {RS=" "; FS="/|\n";} {
12417 for (lt_i = NF; lt_i > 0; lt_i--) {
12418 if ($lt_i != "" && $lt_i != ".") {
12419 if ($lt_i == "..") {
12422 if (lt_count == 0) {
12423 lt_foo="/" $lt_i lt_foo;
12430 if (lt_foo != "") { lt_freq[lt_foo]++; }
12431 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12433 # AWK program above erroneously prepends '/' to C:/dos/paths
12436 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12437 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12439 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12443 library_names_spec=
12444 libname_spec='lib$name'
12448 postuninstall_cmds=
12452 shlibpath_overrides_runpath=unknown
12454 dynamic_linker="$host_os ld.so"
12455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12456 need_lib_prefix=unknown
12457 hardcode_into_libs=no
12459 # when you set need_version to no, make sure it does not cause -set_version
12460 # flags to be left without arguments
12461 need_version=unknown
12465 version_type=linux # correct to gnu/linux during the next big refactor
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12467 shlibpath_var=LIBPATH
12469 # AIX 3 has no versioning support, so we append a major version to the name.
12470 soname_spec='${libname}${release}${shared_ext}$major'
12474 version_type=linux # correct to gnu/linux during the next big refactor
12477 hardcode_into_libs=yes
12478 if test "$host_cpu" = ia64; then
12479 # AIX 5 supports IA64
12480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12481 shlibpath_var=LD_LIBRARY_PATH
12483 # With GCC up to 2.95.x, collect2 would create an import file
12484 # for dependence libraries. The import file would start with
12485 # the line `#! .'. This would cause the generated library to
12486 # depend on `.', always an invalid library. This was fixed in
12487 # development snapshots of GCC prior to 3.0.
12489 aix4 | aix4.[01] | aix4.[01].*)
12490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12492 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12495 can_build_shared=no
12499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12500 # soname into executable. Probably we can add versioning support to
12501 # collect2, so additional links can be useful in future.
12502 if test "$aix_use_runtimelinking" = yes; then
12503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12504 # instead of lib<name>.a to let people know that these are not
12505 # typical AIX shared libraries.
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508 # We preserve .a as extension for shared libraries through AIX4.2
12509 # and later when we are not doing run time linking.
12510 library_names_spec='${libname}${release}.a $libname.a'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LIBPATH
12520 # Since July 2007 AmigaOS4 officially supports .so libraries.
12521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525 library_names_spec='$libname.ixlibrary $libname.a'
12526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12527 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'
12533 library_names_spec='${libname}${shared_ext}'
12534 dynamic_linker="$host_os ld.so"
12535 shlibpath_var=LIBRARY_PATH
12539 version_type=linux # correct to gnu/linux during the next big refactor
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542 soname_spec='${libname}${release}${shared_ext}$major'
12543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12547 # the default ld.so.conf also contains /usr/contrib/lib and
12548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12549 # libtool to hard-code these into programs
12552 cygwin* | mingw* | pw32* | cegcc*)
12553 version_type=windows
12558 case $GCC,$cc_basename in
12561 library_names_spec='$libname.dll.a'
12562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12563 postinstall_cmds='base_file=`basename \${file}`~
12564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12565 dldir=$destdir/`dirname \$dlpath`~
12566 test -d \$dldir || mkdir -p \$dldir~
12567 $install_prog $dir/$dlname \$dldir/$dlname~
12568 chmod a+x \$dldir/$dlname~
12569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12573 dlpath=$dir/\$dldll~
12575 shlibpath_overrides_runpath=yes
12579 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12580 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12582 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12585 # MinGW DLLs use traditional 'lib' prefix
12586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12589 # pw32 DLLs use 'pw' prefix rather than 'lib'
12590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12593 dynamic_linker='Win32 ld.exe'
12598 libname_spec='$name'
12599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600 library_names_spec='${libname}.dll.lib'
12604 sys_lib_search_path_spec=
12607 for lt_path in $LIB
12610 # Let DOS variable expansion print the short 8.3 style file name.
12611 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12612 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12615 # Convert to MSYS style.
12616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12619 # Convert to unix form, then to dos form, then back to unix form
12620 # but this time dos style (no spaces!) so that the unix form looks
12621 # like /cygdrive/c/PROGRA~1:/cygdr...
12622 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12623 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12624 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12627 sys_lib_search_path_spec="$LIB"
12628 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12629 # It is most probably a Windows format PATH.
12630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12634 # FIXME: find the short name or the path components, as spaces are
12635 # common. (e.g. "Program Files" -> "PROGRA~1")
12639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12640 postinstall_cmds='base_file=`basename \${file}`~
12641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12642 dldir=$destdir/`dirname \$dlpath`~
12643 test -d \$dldir || mkdir -p \$dldir~
12644 $install_prog $dir/$dlname \$dldir/$dlname'
12645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12646 dlpath=$dir/\$dldll~
12648 shlibpath_overrides_runpath=yes
12649 dynamic_linker='Win32 link.exe'
12653 # Assume MSVC wrapper
12654 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12655 dynamic_linker='Win32 ld.exe'
12658 # FIXME: first we should search . and the directory the executable is in
12662 darwin* | rhapsody*)
12663 dynamic_linker="$host_os dyld"
12664 version_type=darwin
12667 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12668 soname_spec='${libname}${release}${major}$shared_ext'
12669 shlibpath_overrides_runpath=yes
12670 shlibpath_var=DYLD_LIBRARY_PATH
12671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12678 version_type=linux # correct to gnu/linux during the next big refactor
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 shlibpath_var=LD_LIBRARY_PATH
12686 freebsd* | dragonfly*)
12687 # DragonFly does not have aout. When/if they implement a new
12688 # versioning mechanism, adjust this.
12689 if test -x /usr/bin/objformat; then
12690 objformat=`/usr/bin/objformat`
12693 freebsd[23].*) objformat=aout ;;
12694 *) objformat=elf ;;
12697 version_type=freebsd-$objformat
12698 case $version_type in
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12709 shlibpath_var=LD_LIBRARY_PATH
12712 shlibpath_overrides_runpath=yes
12714 freebsd3.[01]* | freebsdelf3.[01]*)
12715 shlibpath_overrides_runpath=yes
12716 hardcode_into_libs=yes
12718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12720 shlibpath_overrides_runpath=no
12721 hardcode_into_libs=yes
12723 *) # from 4.6 on, and DragonFly
12724 shlibpath_overrides_runpath=yes
12725 hardcode_into_libs=yes
12731 version_type=linux # correct to gnu/linux during the next big refactor
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12735 soname_spec='${libname}${release}${shared_ext}$major'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12742 version_type=linux # correct to gnu/linux during the next big refactor
12745 dynamic_linker="$host_os runtime_loader"
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 shlibpath_var=LIBRARY_PATH
12749 shlibpath_overrides_runpath=yes
12750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12751 hardcode_into_libs=yes
12754 hpux9* | hpux10* | hpux11*)
12755 # Give a soname corresponding to the major version so that dld.sl refuses to
12756 # link against other versions.
12763 hardcode_into_libs=yes
12764 dynamic_linker="$host_os dld.so"
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12768 soname_spec='${libname}${release}${shared_ext}$major'
12769 if test "X$HPUX_IA64_MODE" = X32; then
12770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12778 hardcode_into_libs=yes
12779 dynamic_linker="$host_os dld.sl"
12780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783 soname_spec='${libname}${release}${shared_ext}$major'
12784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12789 dynamic_linker="$host_os dld.sl"
12790 shlibpath_var=SHLIB_PATH
12791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12796 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12797 postinstall_cmds='chmod 555 $lib'
12798 # or fails outright, so override atomically:
12799 install_override_mode=555
12803 version_type=linux # correct to gnu/linux during the next big refactor
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 shlibpath_overrides_runpath=no
12811 hardcode_into_libs=yes
12814 irix5* | irix6* | nonstopux*)
12816 nonstopux*) version_type=nonstopux ;;
12818 if test "$lt_cv_prog_gnu_ld" = yes; then
12819 version_type=linux # correct to gnu/linux during the next big refactor
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12829 irix5* | nonstopux*)
12830 libsuff= shlibsuff=
12833 case $LD in # libtool.m4 will add one of these switches to LD
12834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12835 libsuff= shlibsuff= libmagic=32-bit;;
12836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12837 libsuff=32 shlibsuff=N32 libmagic=N32;;
12838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12840 *) libsuff= shlibsuff= libmagic=never-match;;
12844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12845 shlibpath_overrides_runpath=no
12846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12848 hardcode_into_libs=yes
12851 # No shared lib support for Linux oldld, aout, or coff.
12852 linux*oldld* | linux*aout* | linux*coff*)
12856 # This must be glibc/ELF.
12857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12858 version_type=linux # correct to gnu/linux during the next big refactor
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 soname_spec='${libname}${release}${shared_ext}$major'
12863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12864 shlibpath_var=LD_LIBRARY_PATH
12865 shlibpath_overrides_runpath=no
12867 # Some binutils ld are patched to set DT_RUNPATH
12868 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12869 $as_echo_n "(cached) " >&6
12871 lt_cv_shlibpath_overrides_runpath=no
12872 save_LDFLAGS=$LDFLAGS
12873 save_libdir=$libdir
12874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12887 if ac_fn_c_try_link "$LINENO"; then :
12888 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12889 lt_cv_shlibpath_overrides_runpath=yes
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LDFLAGS=$save_LDFLAGS
12895 libdir=$save_libdir
12899 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12901 # This implies no fast_install, which is unacceptable.
12902 # Some rework will be needed to allow for fast_install
12903 # before this can be enabled.
12904 hardcode_into_libs=yes
12906 # Add ABI-specific directories to the system library path.
12907 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12909 # Append ld.so.conf contents to the search path
12910 if test -f /etc/ld.so.conf; then
12911 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' ' '`
12912 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12916 # We used to test for /lib/ld.so.1 and disable shared libraries on
12917 # powerpc, because MkLinux only supported shared libraries with the
12918 # GNU dynamic linker. Since this was broken with cross compilers,
12919 # most powerpc-linux boxes support dynamic linking these days and
12920 # people can always --disable-shared, the test was removed, and we
12921 # assume the GNU/Linux dynamic linker is in use.
12922 dynamic_linker='GNU/Linux ld.so'
12929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932 dynamic_linker='NetBSD (a.out) ld.so'
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 dynamic_linker='NetBSD ld.elf_so'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=yes
12940 hardcode_into_libs=yes
12944 version_type=linux # correct to gnu/linux during the next big refactor
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 shlibpath_overrides_runpath=no
12958 hardcode_into_libs=yes
12959 dynamic_linker='ldqnx.so'
12964 sys_lib_dlsearch_path_spec="/usr/lib"
12966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12968 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12969 *) need_version=no ;;
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12976 openbsd2.[89] | openbsd2.[89].*)
12977 shlibpath_overrides_runpath=no
12980 shlibpath_overrides_runpath=yes
12984 shlibpath_overrides_runpath=yes
12989 libname_spec='$name'
12992 library_names_spec='$libname${shared_ext} $libname.a'
12993 dynamic_linker='OS/2 ld.exe'
12994 shlibpath_var=LIBPATH
12997 osf3* | osf4* | osf5*)
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13013 version_type=linux # correct to gnu/linux during the next big refactor
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017 soname_spec='${libname}${release}${shared_ext}$major'
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13021 # ldd complains unless libraries are executable
13022 postinstall_cmds='chmod +x $lib'
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 shlibpath_overrides_runpath=yes
13031 if test "$with_gnu_ld" = yes; then
13038 version_type=linux # correct to gnu/linux during the next big refactor
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 soname_spec='${libname}${release}${shared_ext}$major'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 case $host_vendor in
13044 shlibpath_overrides_runpath=no
13046 runpath_var=LD_RUN_PATH
13054 shlibpath_overrides_runpath=no
13055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13061 if test -d /usr/nec ;then
13062 version_type=linux # correct to gnu/linux during the next big refactor
13063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13064 soname_spec='$libname${shared_ext}.$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13070 version_type=freebsd-elf
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=yes
13077 hardcode_into_libs=yes
13078 if test "$with_gnu_ld" = yes; then
13079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13088 sys_lib_dlsearch_path_spec='/usr/lib'
13092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13093 version_type=linux # correct to gnu/linux during the next big refactor
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=no
13099 hardcode_into_libs=yes
13103 version_type=linux # correct to gnu/linux during the next big refactor
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13114 $as_echo "$dynamic_linker" >&6; }
13115 test "$dynamic_linker" = no && can_build_shared=no
13117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13118 if test "$GCC" = yes; then
13119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13126 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13223 if test -n "$hardcode_libdir_flag_spec" ||
13224 test -n "$runpath_var" ||
13225 test "X$hardcode_automatic" = "Xyes" ; then
13227 # We can hardcode non-existent directories.
13228 if test "$hardcode_direct" != no &&
13229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230 # have to relink, otherwise we might link with an installed library
13231 # when we should be linking with a yet-to-be-installed one
13232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13233 test "$hardcode_minus_L" != no; then
13234 # Linking always hardcodes the temporary library directory.
13235 hardcode_action=relink
13237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238 hardcode_action=immediate
13241 # We cannot hardcode anything, or else we can only hardcode existing
13243 hardcode_action=unsupported
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13246 $as_echo "$hardcode_action" >&6; }
13248 if test "$hardcode_action" = relink ||
13249 test "$inherit_rpath" = yes; then
13250 # Fast installation is not supported
13251 enable_fast_install=no
13252 elif test "$shlibpath_overrides_runpath" = yes ||
13253 test "$enable_shared" = no; then
13254 # Fast installation is not necessary
13255 enable_fast_install=needless
13263 if test "x$enable_dlopen" != xyes; then
13264 enable_dlopen=unknown
13265 enable_dlopen_self=unknown
13266 enable_dlopen_self_static=unknown
13273 lt_cv_dlopen="load_add_on"
13275 lt_cv_dlopen_self=yes
13278 mingw* | pw32* | cegcc*)
13279 lt_cv_dlopen="LoadLibrary"
13284 lt_cv_dlopen="dlopen"
13289 # if libdl is installed we need to link against it
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13292 if ${ac_cv_lib_dl_dlopen+:} false; then :
13293 $as_echo_n "(cached) " >&6
13295 ac_check_lib_save_LIBS=$LIBS
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13315 if ac_fn_c_try_link "$LINENO"; then :
13316 ac_cv_lib_dl_dlopen=yes
13318 ac_cv_lib_dl_dlopen=no
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13330 lt_cv_dlopen="dyld"
13332 lt_cv_dlopen_self=yes
13339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13340 if test "x$ac_cv_func_shl_load" = xyes; then :
13341 lt_cv_dlopen="shl_load"
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13344 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13345 if ${ac_cv_lib_dld_shl_load+:} false; then :
13346 $as_echo_n "(cached) " >&6
13348 ac_check_lib_save_LIBS=$LIBS
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13363 return shl_load ();
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 ac_cv_lib_dld_shl_load=yes
13371 ac_cv_lib_dld_shl_load=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13378 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13379 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13382 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13383 if test "x$ac_cv_func_dlopen" = xyes; then :
13384 lt_cv_dlopen="dlopen"
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13387 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13388 if ${ac_cv_lib_dl_dlopen+:} false; then :
13389 $as_echo_n "(cached) " >&6
13391 ac_check_lib_save_LIBS=$LIBS
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 ac_cv_lib_dl_dlopen=yes
13414 ac_cv_lib_dl_dlopen=no
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13422 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13426 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13427 if ${ac_cv_lib_svld_dlopen+:} false; then :
13428 $as_echo_n "(cached) " >&6
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lsvld $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 ac_cv_lib_svld_dlopen=yes
13453 ac_cv_lib_svld_dlopen=no
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13460 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13461 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13465 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13466 if ${ac_cv_lib_dld_dld_link+:} false; then :
13467 $as_echo_n "(cached) " >&6
13469 ac_check_lib_save_LIBS=$LIBS
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13484 return dld_link ();
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 ac_cv_lib_dld_dld_link=yes
13492 ac_cv_lib_dld_dld_link=no
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 LIBS=$ac_check_lib_save_LIBS
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13500 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13522 if test "x$lt_cv_dlopen" != xno; then
13528 case $lt_cv_dlopen in
13530 save_CPPFLAGS="$CPPFLAGS"
13531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13533 save_LDFLAGS="$LDFLAGS"
13534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13537 LIBS="$lt_cv_dlopen_libs $LIBS"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13541 if ${lt_cv_dlopen_self+:} false; then :
13542 $as_echo_n "(cached) " >&6
13544 if test "$cross_compiling" = yes; then :
13545 lt_cv_dlopen_self=cross
13547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13548 lt_status=$lt_dlunknown
13549 cat > conftest.$ac_ext <<_LT_EOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13560 # define LT_DLGLOBAL RTLD_GLOBAL
13563 # define LT_DLGLOBAL DL_GLOBAL
13565 # define LT_DLGLOBAL 0
13569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13570 find out it does not work in some platform. */
13571 #ifndef LT_DLLAZY_OR_NOW
13573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13576 # define LT_DLLAZY_OR_NOW DL_LAZY
13579 # define LT_DLLAZY_OR_NOW RTLD_NOW
13582 # define LT_DLLAZY_OR_NOW DL_NOW
13584 # define LT_DLLAZY_OR_NOW 0
13591 /* When -fvisbility=hidden is used, assume the code has been annotated
13592 correspondingly for the symbols needed. */
13593 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13594 int fnord () __attribute__((visibility("default")));
13597 int fnord () { return 42; }
13600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13601 int status = $lt_dlunknown;
13605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13609 else puts (dlerror ());
13611 /* dlclose (self); */
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13620 (eval $ac_link) 2>&5
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13624 (./conftest; exit; ) >&5 2>/dev/null
13626 case x$lt_status in
13627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13632 # compilation failed
13633 lt_cv_dlopen_self=no
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13641 $as_echo "$lt_cv_dlopen_self" >&6; }
13643 if test "x$lt_cv_dlopen_self" = xyes; then
13644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13646 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13647 if ${lt_cv_dlopen_self_static+:} false; then :
13648 $as_echo_n "(cached) " >&6
13650 if test "$cross_compiling" = yes; then :
13651 lt_cv_dlopen_self_static=cross
13653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13654 lt_status=$lt_dlunknown
13655 cat > conftest.$ac_ext <<_LT_EOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13666 # define LT_DLGLOBAL RTLD_GLOBAL
13669 # define LT_DLGLOBAL DL_GLOBAL
13671 # define LT_DLGLOBAL 0
13675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13676 find out it does not work in some platform. */
13677 #ifndef LT_DLLAZY_OR_NOW
13679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13682 # define LT_DLLAZY_OR_NOW DL_LAZY
13685 # define LT_DLLAZY_OR_NOW RTLD_NOW
13688 # define LT_DLLAZY_OR_NOW DL_NOW
13690 # define LT_DLLAZY_OR_NOW 0
13697 /* When -fvisbility=hidden is used, assume the code has been annotated
13698 correspondingly for the symbols needed. */
13699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13700 int fnord () __attribute__((visibility("default")));
13703 int fnord () { return 42; }
13706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13707 int status = $lt_dlunknown;
13711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13715 else puts (dlerror ());
13717 /* dlclose (self); */
13725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13726 (eval $ac_link) 2>&5
13728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13730 (./conftest; exit; ) >&5 2>/dev/null
13732 case x$lt_status in
13733 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13734 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13735 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13738 # compilation failed
13739 lt_cv_dlopen_self_static=no
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13747 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13750 CPPFLAGS="$save_CPPFLAGS"
13751 LDFLAGS="$save_LDFLAGS"
13756 case $lt_cv_dlopen_self in
13757 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13758 *) enable_dlopen_self=unknown ;;
13761 case $lt_cv_dlopen_self_static in
13762 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13763 *) enable_dlopen_self_static=unknown ;;
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13786 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13787 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13789 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 $as_echo "yes" >&6; }
13793 # FIXME - insert some real tests, host_os isn't really good enough
13796 if test -n "$STRIP" ; then
13797 striplib="$STRIP -x"
13798 old_striplib="$STRIP -S"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13824 # Report which library types will actually be built
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13826 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13828 $as_echo "$can_build_shared" >&6; }
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13831 $as_echo_n "checking whether to build shared libraries... " >&6; }
13832 test "$can_build_shared" = "no" && enable_shared=no
13834 # On AIX, shared libraries and static libraries use the same namespace, and
13835 # are all built from PIC.
13838 test "$enable_shared" = yes && enable_static=no
13839 if test -n "$RANLIB"; then
13840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13841 postinstall_cmds='$RANLIB $lib'
13846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13847 test "$enable_shared" = yes && enable_static=no
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13852 $as_echo "$enable_shared" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13855 $as_echo_n "checking whether to build static libraries... " >&6; }
13856 # Make sure either enable_shared or enable_static is yes.
13857 test "$enable_shared" = yes || enable_static=yes
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13859 $as_echo "$enable_static" >&6; }
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13874 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13875 (test "X$CXX" != "Xg++"))) ; then
13877 ac_cpp='$CXXCPP $CPPFLAGS'
13878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13882 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13883 if test -z "$CXXCPP"; then
13884 if ${ac_cv_prog_CXXCPP+:} false; then :
13885 $as_echo_n "(cached) " >&6
13887 # Double quotes because CXXCPP needs to be expanded
13888 for CXXCPP in "$CXX -E" "/lib/cpp"
13890 ac_preproc_ok=false
13891 for ac_cxx_preproc_warn_flag in '' yes
13893 # Use a header file that comes with gcc, so configuring glibc
13894 # with a fresh cross-compiler works.
13895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13896 # <limits.h> exists even on freestanding compilers.
13897 # On the NeXT, cc -E runs the code through the compiler's parser,
13898 # not just through cpp. "Syntax error" is here to catch this case.
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 # include <limits.h>
13904 # include <assert.h>
13908 if ac_fn_cxx_try_cpp "$LINENO"; then :
13911 # Broken: fails on valid input.
13914 rm -f conftest.err conftest.i conftest.$ac_ext
13916 # OK, works on sane cases. Now check whether nonexistent headers
13917 # can be detected and how.
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 #include <ac_nonexistent.h>
13922 if ac_fn_cxx_try_cpp "$LINENO"; then :
13923 # Broken: success on invalid input.
13926 # Passes both tests.
13930 rm -f conftest.err conftest.i conftest.$ac_ext
13933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13934 rm -f conftest.i conftest.err conftest.$ac_ext
13935 if $ac_preproc_ok; then :
13940 ac_cv_prog_CXXCPP=$CXXCPP
13943 CXXCPP=$ac_cv_prog_CXXCPP
13945 ac_cv_prog_CXXCPP=$CXXCPP
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13948 $as_echo "$CXXCPP" >&6; }
13949 ac_preproc_ok=false
13950 for ac_cxx_preproc_warn_flag in '' yes
13952 # Use a header file that comes with gcc, so configuring glibc
13953 # with a fresh cross-compiler works.
13954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 # <limits.h> exists even on freestanding compilers.
13956 # On the NeXT, cc -E runs the code through the compiler's parser,
13957 # not just through cpp. "Syntax error" is here to catch this case.
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13961 # include <limits.h>
13963 # include <assert.h>
13967 if ac_fn_cxx_try_cpp "$LINENO"; then :
13970 # Broken: fails on valid input.
13973 rm -f conftest.err conftest.i conftest.$ac_ext
13975 # OK, works on sane cases. Now check whether nonexistent headers
13976 # can be detected and how.
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 #include <ac_nonexistent.h>
13981 if ac_fn_cxx_try_cpp "$LINENO"; then :
13982 # Broken: success on invalid input.
13985 # Passes both tests.
13989 rm -f conftest.err conftest.i conftest.$ac_ext
13992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13993 rm -f conftest.i conftest.err conftest.$ac_ext
13994 if $ac_preproc_ok; then :
13997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13999 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14000 See \`config.log' for more details" "$LINENO" 5; }
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010 _lt_caught_CXX_error=yes
14014 ac_cpp='$CXXCPP $CPPFLAGS'
14015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14019 archive_cmds_need_lc_CXX=no
14020 allow_undefined_flag_CXX=
14021 always_export_symbols_CXX=no
14022 archive_expsym_cmds_CXX=
14023 compiler_needs_object_CXX=no
14024 export_dynamic_flag_spec_CXX=
14025 hardcode_direct_CXX=no
14026 hardcode_direct_absolute_CXX=no
14027 hardcode_libdir_flag_spec_CXX=
14028 hardcode_libdir_separator_CXX=
14029 hardcode_minus_L_CXX=no
14030 hardcode_shlibpath_var_CXX=unsupported
14031 hardcode_automatic_CXX=no
14032 inherit_rpath_CXX=no
14034 module_expsym_cmds_CXX=
14035 link_all_deplibs_CXX=unknown
14036 old_archive_cmds_CXX=$old_archive_cmds
14037 reload_flag_CXX=$reload_flag
14038 reload_cmds_CXX=$reload_cmds
14039 no_undefined_flag_CXX=
14040 whole_archive_flag_spec_CXX=
14041 enable_shared_with_static_runtimes_CXX=no
14043 # Source file extension for C++ test sources.
14046 # Object file extension for compiled C++ test sources.
14050 # No sense in running all these tests if we already determined that
14051 # the CXX compiler isn't working. Some variables (like enable_shared)
14052 # are currently assumed to apply to all compilers on this platform,
14053 # and will be corrupted by setting them based on a non-working compiler.
14054 if test "$_lt_caught_CXX_error" != yes; then
14055 # Code to be used in simple compile tests
14056 lt_simple_compile_test_code="int some_variable = 0;"
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14068 # If no C compiler was specified, use CC.
14071 # If no C compiler flags were specified, use CFLAGS.
14072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14074 # Allow CC to be a program name with arguments.
14078 # save warnings/boilerplate of simple test code
14079 ac_outfile=conftest.$ac_objext
14080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14082 _lt_compiler_boilerplate=`cat conftest.err`
14085 ac_outfile=conftest.$ac_objext
14086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14088 _lt_linker_boilerplate=`cat conftest.err`
14092 # Allow CC to be a program name with arguments.
14094 lt_save_CFLAGS=$CFLAGS
14098 lt_save_with_gnu_ld=$with_gnu_ld
14099 lt_save_path_LD=$lt_cv_path_LD
14100 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14101 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14103 $as_unset lt_cv_prog_gnu_ld
14105 if test -n "${lt_cv_path_LDCXX+set}"; then
14106 lt_cv_path_LD=$lt_cv_path_LDCXX
14108 $as_unset lt_cv_path_LD
14110 test -z "${LDCXX+set}" || LD=$LDCXX
14115 for cc_temp in $compiler""; do
14117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14123 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14126 if test -n "$compiler"; then
14127 # We don't want -fno-exception when compiling C++ code, so set the
14128 # no_builtin_flag separately
14129 if test "$GXX" = yes; then
14130 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14132 lt_prog_compiler_no_builtin_flag_CXX=
14135 if test "$GXX" = yes; then
14136 # Set up default GNU C++ configuration
14140 # Check whether --with-gnu-ld was given.
14141 if test "${with_gnu_ld+set}" = set; then :
14142 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14148 if test "$GCC" = yes; then
14149 # Check if gcc -print-prog-name=ld gives a path.
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14151 $as_echo_n "checking for ld used by $CC... " >&6; }
14154 # gcc leaves a trailing carriage return which upsets mingw
14155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14160 # Accept absolute paths.
14162 re_direlt='/[^/][^/]*/\.\./'
14163 # Canonicalize the pathname of ld
14164 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14165 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14166 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14168 test -z "$LD" && LD="$ac_prog"
14171 # If it fails, then pretend we aren't using GCC.
14175 # If it is relative, then search for the first ld in PATH.
14176 with_gnu_ld=unknown
14179 elif test "$with_gnu_ld" = yes; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14181 $as_echo_n "checking for GNU ld... " >&6; }
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14184 $as_echo_n "checking for non-GNU ld... " >&6; }
14186 if ${lt_cv_path_LD+:} false; then :
14187 $as_echo_n "(cached) " >&6
14189 if test -z "$LD"; then
14190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14191 for ac_dir in $PATH; do
14193 test -z "$ac_dir" && ac_dir=.
14194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14195 lt_cv_path_LD="$ac_dir/$ac_prog"
14196 # Check to see if the program is GNU ld. I'd rather use --version,
14197 # but apparently some variants of GNU ld only accept -v.
14198 # Break only if it was the GNU/non-GNU ld that we prefer.
14199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14200 *GNU* | *'with BFD'*)
14201 test "$with_gnu_ld" != no && break
14204 test "$with_gnu_ld" != yes && break
14211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14215 LD="$lt_cv_path_LD"
14216 if test -n "$LD"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14218 $as_echo "$LD" >&6; }
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14223 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14225 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14226 if ${lt_cv_prog_gnu_ld+:} false; then :
14227 $as_echo_n "(cached) " >&6
14229 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14230 case `$LD -v 2>&1 </dev/null` in
14231 *GNU* | *'with BFD'*)
14232 lt_cv_prog_gnu_ld=yes
14235 lt_cv_prog_gnu_ld=no
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14240 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14241 with_gnu_ld=$lt_cv_prog_gnu_ld
14249 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14250 # archiving commands below assume that GNU ld is being used.
14251 if test "$with_gnu_ld" = yes; then
14252 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253 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'
14255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14258 # If archive_cmds runs LD, not CC, wlarc should be empty
14259 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14260 # investigate it a little bit more. (MM)
14263 # ancient GNU ld didn't support --whole-archive et. al.
14264 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14265 $GREP 'no-whole-archive' > /dev/null; then
14266 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14268 whole_archive_flag_spec_CXX=
14274 # A generic and very simple default shared library creation
14275 # command for GNU C++ for the case where it uses the native
14276 # linker, instead of GNU ld. If possible, this setting should
14277 # overridden to take advantage of the native linker features on
14278 # the platform it is being used on.
14279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14282 # Commands to make compiler produce verbose output that lists
14283 # what "hidden" libraries, object files and flags are used when
14284 # linking a shared library.
14285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14293 # PORTME: fill in a description of your system's C++ link characteristics
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14299 # FIXME: insert proper C++ library support
14303 if test "$host_cpu" = ia64; then
14304 # On IA64, the linker does run time linking by default, so we don't
14305 # have to do anything special.
14306 aix_use_runtimelinking=no
14307 exp_sym_flag='-Bexport'
14310 aix_use_runtimelinking=no
14312 # Test if we are trying to use run time linking or normal
14313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14314 # need to do runtime linking.
14315 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14316 for ld_flag in $LDFLAGS; do
14319 aix_use_runtimelinking=yes
14327 exp_sym_flag='-bexport'
14328 no_entry_flag='-bnoentry'
14331 # When large executables or shared objects are built, AIX ld can
14332 # have problems creating the table of contents. If linking a library
14333 # or program results in "error TOC overflow" add -mminimal-toc to
14334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14337 archive_cmds_CXX=''
14338 hardcode_direct_CXX=yes
14339 hardcode_direct_absolute_CXX=yes
14340 hardcode_libdir_separator_CXX=':'
14341 link_all_deplibs_CXX=yes
14342 file_list_spec_CXX='${wl}-f,'
14344 if test "$GXX" = yes; then
14345 case $host_os in aix4.[012]|aix4.[012].*)
14346 # We only want to do this on AIX 4.2 and lower, the check
14347 # below for broken collect2 doesn't work under 4.3+
14348 collect2name=`${CC} -print-prog-name=collect2`
14349 if test -f "$collect2name" &&
14350 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14352 # We have reworked collect2
14355 # We have old collect2
14356 hardcode_direct_CXX=unsupported
14357 # It fails to find uninstalled libraries when the uninstalled
14358 # path is not listed in the libpath. Setting hardcode_minus_L
14359 # to unsupported forces relinking
14360 hardcode_minus_L_CXX=yes
14361 hardcode_libdir_flag_spec_CXX='-L$libdir'
14362 hardcode_libdir_separator_CXX=
14365 shared_flag='-shared'
14366 if test "$aix_use_runtimelinking" = yes; then
14367 shared_flag="$shared_flag "'${wl}-G'
14371 if test "$host_cpu" = ia64; then
14372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14373 # chokes on -Wl,-G. The following line is correct:
14376 if test "$aix_use_runtimelinking" = yes; then
14377 shared_flag='${wl}-G'
14379 shared_flag='${wl}-bM:SRE'
14384 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14385 # It seems that -bexpall does not export symbols beginning with
14386 # underscore (_), so it is better to generate a list of symbols to
14388 always_export_symbols_CXX=yes
14389 if test "$aix_use_runtimelinking" = yes; then
14390 # Warning - without using the other runtime loading flags (-brtl),
14391 # -berok will link without error, but may produce a broken library.
14392 allow_undefined_flag_CXX='-berok'
14393 # Determine the default libpath from the value encoded in an empty
14395 if test "${lt_cv_aix_libpath+set}" = set; then
14396 aix_libpath=$lt_cv_aix_libpath
14398 if ${lt_cv_aix_libpath__CXX+:} false; then :
14399 $as_echo_n "(cached) " >&6
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14412 if ac_fn_cxx_try_link "$LINENO"; then :
14414 lt_aix_libpath_sed='
14415 /Import File Strings/,/^$/ {
14417 s/^0 *\([^ ]*\) *$/\1/
14421 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14422 # Check for a 64-bit object if we didn't find anything.
14423 if test -z "$lt_cv_aix_libpath__CXX"; then
14424 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 if test -z "$lt_cv_aix_libpath__CXX"; then
14430 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14435 aix_libpath=$lt_cv_aix_libpath__CXX
14438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14440 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"
14442 if test "$host_cpu" = ia64; then
14443 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14444 allow_undefined_flag_CXX="-z nodefs"
14445 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"
14447 # Determine the default libpath from the value encoded in an
14448 # empty executable.
14449 if test "${lt_cv_aix_libpath+set}" = set; then
14450 aix_libpath=$lt_cv_aix_libpath
14452 if ${lt_cv_aix_libpath__CXX+:} false; then :
14453 $as_echo_n "(cached) " >&6
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14466 if ac_fn_cxx_try_link "$LINENO"; then :
14468 lt_aix_libpath_sed='
14469 /Import File Strings/,/^$/ {
14471 s/^0 *\([^ ]*\) *$/\1/
14475 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14476 # Check for a 64-bit object if we didn't find anything.
14477 if test -z "$lt_cv_aix_libpath__CXX"; then
14478 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14481 rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
14483 if test -z "$lt_cv_aix_libpath__CXX"; then
14484 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14489 aix_libpath=$lt_cv_aix_libpath__CXX
14492 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14493 # Warning - without using the other run time loading flags,
14494 # -berok will link without error, but may produce a broken library.
14495 no_undefined_flag_CXX=' ${wl}-bernotok'
14496 allow_undefined_flag_CXX=' ${wl}-berok'
14497 if test "$with_gnu_ld" = yes; then
14498 # We only use this code for GNU lds that support --whole-archive.
14499 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14501 # Exported symbols can be pulled into shared objects from archives
14502 whole_archive_flag_spec_CXX='$convenience'
14504 archive_cmds_need_lc_CXX=yes
14505 # This is similar to how AIX traditionally builds its shared
14507 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'
14513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14514 allow_undefined_flag_CXX=unsupported
14515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14516 # support --undefined. This deserves some investigation. FIXME
14517 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14524 case $cc_basename in
14526 # FIXME: insert proper C++ library support
14532 cygwin* | mingw* | pw32* | cegcc*)
14533 case $GXX,$cc_basename in
14536 # hardcode_libdir_flag_spec is actually meaningless, as there is
14537 # no search path for DLLs.
14538 hardcode_libdir_flag_spec_CXX=' '
14539 allow_undefined_flag_CXX=unsupported
14540 always_export_symbols_CXX=yes
14541 file_list_spec_CXX='@'
14542 # Tell ltmain to make .lib files, not .a files.
14544 # Tell ltmain to make .dll files, not .so files.
14546 # FIXME: Setting linknames here is a bad hack.
14547 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14548 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14549 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14551 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14553 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14555 # The linker will not automatically build a static lib if we build a DLL.
14556 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14557 enable_shared_with_static_runtimes_CXX=yes
14559 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14560 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14561 lt_tool_outputfile="@TOOL_OUTPUT@"~
14562 case $lt_outputfile in
14565 lt_outputfile="$lt_outputfile.exe"
14566 lt_tool_outputfile="$lt_tool_outputfile.exe"
14569 func_to_tool_file "$lt_outputfile"~
14570 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14571 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14572 $RM "$lt_outputfile.manifest";
14577 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14578 # as there is no search path for DLLs.
14579 hardcode_libdir_flag_spec_CXX='-L$libdir'
14580 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14581 allow_undefined_flag_CXX=unsupported
14582 always_export_symbols_CXX=no
14583 enable_shared_with_static_runtimes_CXX=yes
14585 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14586 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'
14587 # If the export-symbols file already is a .def file (1st line
14588 # is EXPORTS), use it as is; otherwise, prepend...
14589 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14590 cp $export_symbols $output_objdir/$soname.def;
14592 echo EXPORTS > $output_objdir/$soname.def;
14593 cat $export_symbols >> $output_objdir/$soname.def;
14595 $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'
14602 darwin* | rhapsody*)
14605 archive_cmds_need_lc_CXX=no
14606 hardcode_direct_CXX=no
14607 hardcode_automatic_CXX=yes
14608 hardcode_shlibpath_var_CXX=unsupported
14609 if test "$lt_cv_ld_force_load" = "yes"; then
14610 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\"`'
14613 whole_archive_flag_spec_CXX=''
14615 link_all_deplibs_CXX=yes
14616 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14617 case $cc_basename in
14618 ifort*) _lt_dar_can_shared=yes ;;
14619 *) _lt_dar_can_shared=$GCC ;;
14621 if test "$_lt_dar_can_shared" = "yes"; then
14622 output_verbose_link_cmd=func_echo_all
14623 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}"
14624 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14625 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}"
14626 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}"
14627 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14628 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}"
14629 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}"
14639 case $cc_basename in
14641 # FIXME: insert proper C++ library support
14645 # Green Hills C++ Compiler
14646 # FIXME: insert proper C++ library support
14650 # FIXME: insert proper C++ library support
14657 # C++ shared libraries reported to be fairly broken before
14663 archive_cmds_need_lc_CXX=no
14666 freebsd* | dragonfly*)
14667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14676 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677 link_all_deplibs_CXX=yes
14681 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14682 hardcode_libdir_separator_CXX=:
14683 export_dynamic_flag_spec_CXX='${wl}-E'
14684 hardcode_direct_CXX=yes
14685 hardcode_minus_L_CXX=yes # Not in the search PATH,
14686 # but as the default
14687 # location of the library.
14689 case $cc_basename in
14691 # FIXME: insert proper C++ library support
14695 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'
14696 # Commands to make compiler produce verbose output that lists
14697 # what "hidden" libraries, object files and flags are used when
14698 # linking a shared library.
14700 # There doesn't appear to be a way to prevent this compiler from
14701 # explicitly linking system object files so we need to strip them
14702 # from the output so that they don't get included in the library
14704 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"'
14707 if test "$GXX" = yes; then
14708 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'
14710 # FIXME: insert proper C++ library support
14718 if test $with_gnu_ld = no; then
14719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14720 hardcode_libdir_separator_CXX=:
14726 export_dynamic_flag_spec_CXX='${wl}-E'
14732 hardcode_direct_CXX=no
14733 hardcode_shlibpath_var_CXX=no
14736 hardcode_direct_CXX=yes
14737 hardcode_direct_absolute_CXX=yes
14738 hardcode_minus_L_CXX=yes # Not in the search PATH,
14739 # but as the default
14740 # location of the library.
14744 case $cc_basename in
14746 # FIXME: insert proper C++ library support
14752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14761 # Commands to make compiler produce verbose output that lists
14762 # what "hidden" libraries, object files and flags are used when
14763 # linking a shared library.
14765 # There doesn't appear to be a way to prevent this compiler from
14766 # explicitly linking system object files so we need to strip them
14767 # from the output so that they don't get included in the library
14769 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"'
14772 if test "$GXX" = yes; then
14773 if test $with_gnu_ld = no; then
14776 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14779 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14782 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'
14787 # FIXME: insert proper C++ library support
14795 hardcode_direct_CXX=no
14796 hardcode_shlibpath_var_CXX=no
14797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14798 export_dynamic_flag_spec_CXX='${wl}-E'
14799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14800 # Instead, shared libraries are loaded at an image base (0x10000000 by
14801 # default) and relocated if they conflict, which is a slow very memory
14802 # consuming and fragmenting process. To avoid this, we pick a random,
14803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14805 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'
14806 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'
14809 case $cc_basename in
14812 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'
14814 # Archives containing C++ object files must be created using
14815 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14816 # necessary to make sure instantiated templates are included
14818 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14821 if test "$GXX" = yes; then
14822 if test "$with_gnu_ld" = no; then
14823 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'
14825 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'
14828 link_all_deplibs_CXX=yes
14831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14832 hardcode_libdir_separator_CXX=:
14833 inherit_rpath_CXX=yes
14836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14837 case $cc_basename in
14839 # Kuck and Associates, Inc. (KAI) C++ Compiler
14841 # KCC will only create a shared library if the output file
14842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14843 # to its proper name (with version) after linking.
14844 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'
14845 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'
14846 # Commands to make compiler produce verbose output that lists
14847 # what "hidden" libraries, object files and flags are used when
14848 # linking a shared library.
14850 # There doesn't appear to be a way to prevent this compiler from
14851 # explicitly linking system object files so we need to strip them
14852 # from the output so that they don't get included in the library
14854 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"'
14856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14859 # Archives containing C++ object files must be created using
14860 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14866 # version 8.0 and above of icpc choke on multiply defined symbols
14867 # if we add $predep_objects and $postdep_objects, however 7.1 and
14868 # earlier do not add the objects themselves.
14869 case `$CC -V 2>&1` in
14871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 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'
14874 *) # Version 8.0 or newer
14877 ia64*) tmp_idyn=' -i_dynamic';;
14879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14880 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'
14883 archive_cmds_need_lc_CXX=no
14884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14886 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14889 # Portland Group C++ compiler
14891 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14892 prelink_cmds_CXX='tpldir=Template.dir~
14894 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14895 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14896 old_archive_cmds_CXX='tpldir=Template.dir~
14898 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14899 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14901 archive_cmds_CXX='tpldir=Template.dir~
14903 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14904 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14905 archive_expsym_cmds_CXX='tpldir=Template.dir~
14907 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14908 $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'
14910 *) # Version 6 and above use weak symbols
14911 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14912 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'
14916 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14918 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'
14922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923 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'
14925 runpath_var=LD_RUN_PATH
14926 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14927 hardcode_libdir_separator_CXX=:
14929 # Commands to make compiler produce verbose output that lists
14930 # what "hidden" libraries, object files and flags are used when
14931 # linking a shared library.
14933 # There doesn't appear to be a way to prevent this compiler from
14934 # explicitly linking system object files so we need to strip them
14935 # from the output so that they don't get included in the library
14937 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'
14939 xl* | mpixl* | bgxl*)
14940 # IBM XL 8.0 on PPC, with GNU ld
14941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14943 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 if test "x$supports_anon_versioning" = xyes; then
14945 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14952 case `$CC -V 2>&1 | sed 5q` in
14955 no_undefined_flag_CXX=' -zdefs'
14956 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14957 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'
14958 hardcode_libdir_flag_spec_CXX='-R$libdir'
14959 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'
14960 compiler_needs_object_CXX=yes
14962 # Not sure whether something based on
14963 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14965 output_verbose_link_cmd='func_echo_all'
14967 # Archives containing C++ object files must be created using
14968 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14969 # necessary to make sure instantiated templates are included
14971 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14979 # FIXME: insert proper C++ library support
14984 # FIXME: insert proper C++ library support
14989 case $cc_basename in
14991 # FIXME: insert proper C++ library support
14995 # FIXME: insert proper C++ library support
15002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15003 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15005 hardcode_libdir_flag_spec_CXX='-R$libdir'
15006 hardcode_direct_CXX=yes
15007 hardcode_shlibpath_var_CXX=no
15009 # Workaround some broken pre-1.5 toolchains
15010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15018 # C++ shared libraries are fairly broken
15023 if test -f /usr/libexec/ld.so; then
15024 hardcode_direct_CXX=yes
15025 hardcode_shlibpath_var_CXX=no
15026 hardcode_direct_absolute_CXX=yes
15027 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15030 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15031 export_dynamic_flag_spec_CXX='${wl}-E'
15032 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15034 output_verbose_link_cmd=func_echo_all
15040 osf3* | osf4* | osf5*)
15041 case $cc_basename in
15043 # Kuck and Associates, Inc. (KAI) C++ Compiler
15045 # KCC will only create a shared library if the output file
15046 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15047 # to its proper name (with version) after linking.
15048 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'
15050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15051 hardcode_libdir_separator_CXX=:
15053 # Archives containing C++ object files must be created using
15054 # the KAI C++ compiler.
15056 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15057 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15061 # Rational C++ 2.4.1
15062 # FIXME: insert proper C++ library support
15068 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15069 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'
15070 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15073 allow_undefined_flag_CXX=' -expect_unresolved \*'
15074 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'
15075 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15076 echo "-hidden">> $lib.exp~
15077 $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~
15079 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15083 hardcode_libdir_separator_CXX=:
15085 # Commands to make compiler produce verbose output that lists
15086 # what "hidden" libraries, object files and flags are used when
15087 # linking a shared library.
15089 # There doesn't appear to be a way to prevent this compiler from
15090 # explicitly linking system object files so we need to strip them
15091 # from the output so that they don't get included in the library
15093 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"'
15096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15100 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'
15103 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'
15107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15108 hardcode_libdir_separator_CXX=:
15110 # Commands to make compiler produce verbose output that lists
15111 # what "hidden" libraries, object files and flags are used when
15112 # linking a shared library.
15113 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15116 # FIXME: insert proper C++ library support
15124 # FIXME: insert proper C++ library support
15129 case $cc_basename in
15132 # FIXME: insert proper C++ library support
15137 # FIXME: insert proper C++ library support
15141 # FIXME: insert proper C++ library support
15148 case $cc_basename in
15150 # Sun C++ 4.2, 5.x and Centerline C++
15151 archive_cmds_need_lc_CXX=yes
15152 no_undefined_flag_CXX=' -zdefs'
15153 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15154 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15155 $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'
15157 hardcode_libdir_flag_spec_CXX='-R$libdir'
15158 hardcode_shlibpath_var_CXX=no
15160 solaris2.[0-5] | solaris2.[0-5].*) ;;
15162 # The compiler driver will combine and reorder linker options,
15163 # but understands `-z linker_flag'.
15164 # Supported since Solaris 2.6 (maybe 2.5.1?)
15165 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15168 link_all_deplibs_CXX=yes
15170 output_verbose_link_cmd='func_echo_all'
15172 # Archives containing C++ object files must be created using
15173 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15174 # necessary to make sure instantiated templates are included
15176 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15179 # Green Hills C++ Compiler
15180 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15182 # The C++ compiler must be used to create the archive.
15183 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15186 # GNU C++ compiler with Solaris linker
15187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15188 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15189 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15190 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15191 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15192 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15194 # Commands to make compiler produce verbose output that lists
15195 # what "hidden" libraries, object files and flags are used when
15196 # linking a shared library.
15197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15199 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15201 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15202 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15203 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15205 # Commands to make compiler produce verbose output that lists
15206 # what "hidden" libraries, object files and flags are used when
15207 # linking a shared library.
15208 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15211 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15213 solaris2.[0-5] | solaris2.[0-5].*) ;;
15215 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15224 no_undefined_flag_CXX='${wl}-z,text'
15225 archive_cmds_need_lc_CXX=no
15226 hardcode_shlibpath_var_CXX=no
15227 runpath_var='LD_RUN_PATH'
15229 case $cc_basename in
15231 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15235 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 sysv5* | sco3.2v5* | sco5v6*)
15242 # Note: We can NOT use -z defs as we might desire, because we do not
15243 # link with -lc, and that would cause any symbols used from libc to
15244 # always be unresolved, which means just about no library would
15245 # ever link correctly. If we're not using GNU ld we use -z text
15246 # though, which does catch some bad symbols but isn't as heavy-handed
15248 no_undefined_flag_CXX='${wl}-z,text'
15249 allow_undefined_flag_CXX='${wl}-z,nodefs'
15250 archive_cmds_need_lc_CXX=no
15251 hardcode_shlibpath_var_CXX=no
15252 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15253 hardcode_libdir_separator_CXX=':'
15254 link_all_deplibs_CXX=yes
15255 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15256 runpath_var='LD_RUN_PATH'
15258 case $cc_basename in
15260 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15262 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15263 '"$old_archive_cmds_CXX"
15264 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15265 '"$reload_cmds_CXX"
15268 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15275 case $cc_basename in
15277 # NonStop-UX NCC 3.20
15278 # FIXME: insert proper C++ library support
15282 # FIXME: insert proper C++ library support
15289 # FIXME: insert proper C++ library support
15294 # FIXME: insert proper C++ library support
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15300 $as_echo "$ld_shlibs_CXX" >&6; }
15301 test "$ld_shlibs_CXX" = no && can_build_shared=no
15307 ## There is no encapsulation within the following macros, do not change
15308 ## the running order or otherwise move them around unless you know exactly
15309 ## what you are doing...
15310 # Dependencies to place before and after the object being linked:
15311 predep_objects_CXX=
15312 postdep_objects_CXX=
15315 compiler_lib_search_path_CXX=
15317 cat > conftest.$ac_ext <<_LT_EOF
15321 Foo (void) { a = 0; }
15328 _lt_libdeps_save_CFLAGS=$CFLAGS
15329 case "$CC $CFLAGS " in #(
15330 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15331 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15332 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15336 (eval $ac_compile) 2>&5
15338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15339 test $ac_status = 0; }; then
15340 # Parse the compiler output and extract the necessary
15341 # objects, libraries and library flags.
15343 # Sentinel used to keep track of whether or not we are before
15344 # the conftest object file.
15345 pre_test_object_deps_done=no
15347 for p in `eval "$output_verbose_link_cmd"`; do
15348 case ${prev}${p} in
15351 # Some compilers place space between "-{L,R}" and the path.
15352 # Remove the space.
15353 if test $p = "-L" ||
15354 test $p = "-R"; then
15359 # Expand the sysroot to ease extracting the directories later.
15360 if test -z "$prev"; then
15362 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15363 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15364 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15368 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15370 if test "$pre_test_object_deps_done" = no; then
15373 # Internal compiler library paths should come after those
15374 # provided the user. The postdeps already come after the
15375 # user supplied libs so there is no need to process them.
15376 if test -z "$compiler_lib_search_path_CXX"; then
15377 compiler_lib_search_path_CXX="${prev}${p}"
15379 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15382 # The "-l" case would never come before the object being
15383 # linked, so don't bother handling this case.
15386 if test -z "$postdeps_CXX"; then
15387 postdeps_CXX="${prev}${p}"
15389 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15395 *.lto.$objext) ;; # Ignore GCC LTO objects
15397 # This assumes that the test object file only shows up
15398 # once in the compiler output.
15399 if test "$p" = "conftest.$objext"; then
15400 pre_test_object_deps_done=yes
15404 if test "$pre_test_object_deps_done" = no; then
15405 if test -z "$predep_objects_CXX"; then
15406 predep_objects_CXX="$p"
15408 predep_objects_CXX="$predep_objects_CXX $p"
15411 if test -z "$postdep_objects_CXX"; then
15412 postdep_objects_CXX="$p"
15414 postdep_objects_CXX="$postdep_objects_CXX $p"
15419 *) ;; # Ignore the rest.
15427 echo "libtool.m4: error: problem compiling CXX test program"
15430 $RM -f confest.$objext
15431 CFLAGS=$_lt_libdeps_save_CFLAGS
15433 # PORTME: override above test on systems where it is broken
15436 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15437 # hack all around it, let's just trust "g++" to DTRT.
15438 predep_objects_CXX=
15439 postdep_objects_CXX=
15444 case `$CC -V 2>&1 | sed 5q` in
15448 # The more standards-conforming stlport4 library is
15449 # incompatible with the Cstd library. Avoid specifying
15450 # it if it's in CXXFLAGS. Ignore libCrun as
15451 # -library=stlport4 depends on it.
15452 case " $CXX $CXXFLAGS " in
15453 *" -library=stlport4 "*)
15454 solaris_use_stlport4=yes
15458 if test "$solaris_use_stlport4" != yes; then
15459 postdeps_CXX='-library=Cstd -library=Crun'
15466 case $cc_basename in
15468 # The more standards-conforming stlport4 library is
15469 # incompatible with the Cstd library. Avoid specifying
15470 # it if it's in CXXFLAGS. Ignore libCrun as
15471 # -library=stlport4 depends on it.
15472 case " $CXX $CXXFLAGS " in
15473 *" -library=stlport4 "*)
15474 solaris_use_stlport4=yes
15478 # Adding this requires a known-good setup of shared libraries for
15479 # Sun compiler versions before 5.6, else PIC objects from an old
15480 # archive will be linked into the output, leading to subtle bugs.
15481 if test "$solaris_use_stlport4" != yes; then
15482 postdeps_CXX='-library=Cstd -library=Crun'
15490 case " $postdeps_CXX " in
15491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15493 compiler_lib_search_dirs_CXX=
15494 if test -n "${compiler_lib_search_path_CXX}"; then
15495 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15528 lt_prog_compiler_wl_CXX=
15529 lt_prog_compiler_pic_CXX=
15530 lt_prog_compiler_static_CXX=
15533 # C++ specific cases for pic, static, wl, etc.
15534 if test "$GXX" = yes; then
15535 lt_prog_compiler_wl_CXX='-Wl,'
15536 lt_prog_compiler_static_CXX='-static'
15540 # All AIX code is PIC.
15541 if test "$host_cpu" = ia64; then
15542 # AIX 5 now supports IA64 processor
15543 lt_prog_compiler_static_CXX='-Bstatic'
15550 # see comment about AmigaOS4 .so support
15551 lt_prog_compiler_pic_CXX='-fPIC'
15554 # FIXME: we need at least 68020 code to build shared libraries, but
15555 # adding the `-m68020' flag to GCC prevents building anything better,
15557 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15563 # PIC is the default for these OSes.
15565 mingw* | cygwin* | os2* | pw32* | cegcc*)
15566 # This hack is so that the source file can tell whether it is being
15567 # built for inclusion in a dll (and should export symbols for example).
15568 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15569 # (--disable-auto-import) libraries
15570 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15572 darwin* | rhapsody*)
15573 # PIC is the default on this platform
15574 # Common symbols not allowed in MH_DYLIB files
15575 lt_prog_compiler_pic_CXX='-fno-common'
15578 # DJGPP does not support shared libraries at all
15579 lt_prog_compiler_pic_CXX=
15582 # PIC is the default for Haiku.
15583 # The "-static" flag exists, but is broken.
15584 lt_prog_compiler_static_CXX=
15587 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15588 # Instead, we relocate shared libraries at runtime.
15591 if test -d /usr/nec; then
15592 lt_prog_compiler_pic_CXX=-Kconform_pic
15596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15598 # sets the default TLS model and affects inlining.
15603 lt_prog_compiler_pic_CXX='-fPIC'
15608 # QNX uses GNU C++, but need to define -shared option too, otherwise
15609 # it will coredump.
15610 lt_prog_compiler_pic_CXX='-fPIC -shared'
15613 lt_prog_compiler_pic_CXX='-fPIC'
15619 # All AIX code is PIC.
15620 if test "$host_cpu" = ia64; then
15621 # AIX 5 now supports IA64 processor
15622 lt_prog_compiler_static_CXX='-Bstatic'
15624 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15628 case $cc_basename in
15630 # Green Hills C++ Compiler
15631 # _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"
15635 mingw* | cygwin* | os2* | pw32* | cegcc*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15641 case $cc_basename in
15643 lt_prog_compiler_pic_CXX='-KPIC'
15646 # Green Hills C++ Compiler
15647 lt_prog_compiler_pic_CXX='-pic'
15653 freebsd* | dragonfly*)
15654 # FreeBSD uses GNU C++
15656 hpux9* | hpux10* | hpux11*)
15657 case $cc_basename in
15659 lt_prog_compiler_wl_CXX='-Wl,'
15660 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15661 if test "$host_cpu" != ia64; then
15662 lt_prog_compiler_pic_CXX='+Z'
15666 lt_prog_compiler_wl_CXX='-Wl,'
15667 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15673 lt_prog_compiler_pic_CXX='+Z'
15682 # This is c89, which is MS Visual C++ (no shared libs)
15683 # Anyone wants to do a port?
15685 irix5* | irix6* | nonstopux*)
15686 case $cc_basename in
15688 lt_prog_compiler_wl_CXX='-Wl,'
15689 lt_prog_compiler_static_CXX='-non_shared'
15690 # CC pic flag -KPIC is the default.
15696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15697 case $cc_basename in
15700 lt_prog_compiler_wl_CXX='--backend -Wl,'
15701 lt_prog_compiler_pic_CXX='-fPIC'
15704 # old Intel C++ for x86_64 which still supported -KPIC.
15705 lt_prog_compiler_wl_CXX='-Wl,'
15706 lt_prog_compiler_pic_CXX='-KPIC'
15707 lt_prog_compiler_static_CXX='-static'
15710 # Intel C++, used to be incompatible with GCC.
15711 # ICC 10 doesn't accept -KPIC any more.
15712 lt_prog_compiler_wl_CXX='-Wl,'
15713 lt_prog_compiler_pic_CXX='-fPIC'
15714 lt_prog_compiler_static_CXX='-static'
15717 # Portland Group C++ compiler
15718 lt_prog_compiler_wl_CXX='-Wl,'
15719 lt_prog_compiler_pic_CXX='-fpic'
15720 lt_prog_compiler_static_CXX='-Bstatic'
15724 # Make sure the PIC flag is empty. It appears that all Alpha
15725 # Linux and Compaq Tru64 Unix objects are PIC.
15726 lt_prog_compiler_pic_CXX=
15727 lt_prog_compiler_static_CXX='-non_shared'
15729 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15730 # IBM XL 8.0, 9.0 on PPC and BlueGene
15731 lt_prog_compiler_wl_CXX='-Wl,'
15732 lt_prog_compiler_pic_CXX='-qpic'
15733 lt_prog_compiler_static_CXX='-qstaticlink'
15736 case `$CC -V 2>&1 | sed 5q` in
15739 lt_prog_compiler_pic_CXX='-KPIC'
15740 lt_prog_compiler_static_CXX='-Bstatic'
15741 lt_prog_compiler_wl_CXX='-Qoption ld '
15752 case $cc_basename in
15754 lt_prog_compiler_pic_CXX='-W c,exportall'
15763 # QNX uses GNU C++, but need to define -shared option too, otherwise
15764 # it will coredump.
15765 lt_prog_compiler_pic_CXX='-fPIC -shared'
15767 osf3* | osf4* | osf5*)
15768 case $cc_basename in
15770 lt_prog_compiler_wl_CXX='--backend -Wl,'
15773 # Rational C++ 2.4.1
15774 lt_prog_compiler_pic_CXX='-pic'
15777 # Digital/Compaq C++
15778 lt_prog_compiler_wl_CXX='-Wl,'
15779 # Make sure the PIC flag is empty. It appears that all Alpha
15780 # Linux and Compaq Tru64 Unix objects are PIC.
15781 lt_prog_compiler_pic_CXX=
15782 lt_prog_compiler_static_CXX='-non_shared'
15791 case $cc_basename in
15793 # Sun C++ 4.2, 5.x and Centerline C++
15794 lt_prog_compiler_pic_CXX='-KPIC'
15795 lt_prog_compiler_static_CXX='-Bstatic'
15796 lt_prog_compiler_wl_CXX='-Qoption ld '
15799 # Green Hills C++ Compiler
15800 lt_prog_compiler_pic_CXX='-PIC'
15807 case $cc_basename in
15810 lt_prog_compiler_pic_CXX='-pic'
15811 lt_prog_compiler_static_CXX='-Bstatic'
15815 lt_prog_compiler_pic_CXX='-pic'
15821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15822 case $cc_basename in
15824 lt_prog_compiler_wl_CXX='-Wl,'
15825 lt_prog_compiler_pic_CXX='-KPIC'
15826 lt_prog_compiler_static_CXX='-Bstatic'
15831 case $cc_basename in
15833 # NonStop-UX NCC 3.20
15834 lt_prog_compiler_pic_CXX='-KPIC'
15843 lt_prog_compiler_can_build_shared_CXX=no
15849 # For platforms which do not support PIC, -DPIC is meaningless:
15851 lt_prog_compiler_pic_CXX=
15854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15860 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15861 $as_echo_n "(cached) " >&6
15863 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15866 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15867 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15870 # Check to make sure the PIC flag actually works.
15872 if test -n "$lt_prog_compiler_pic_CXX"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15875 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15876 $as_echo_n "(cached) " >&6
15878 lt_cv_prog_compiler_pic_works_CXX=no
15879 ac_outfile=conftest.$ac_objext
15880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15881 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15882 # Insert the option either (1) after the last *FLAGS variable, or
15883 # (2) before a word containing "conftest.", or (3) at the end.
15884 # Note that $ac_compile itself does not contain backslashes and begins
15885 # with a dollar sign (not a hyphen), so the echo should work correctly.
15886 # The option is referenced via a variable to avoid confusing sed.
15887 lt_compile=`echo "$ac_compile" | $SED \
15888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15890 -e 's:$: $lt_compiler_flag:'`
15891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15892 (eval "$lt_compile" 2>conftest.err)
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 if (exit $ac_status) && test -s "$ac_outfile"; then
15897 # The compiler can only warn and ignore the option if not recognized
15898 # So say no if there are warnings other than the usual output.
15899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15902 lt_cv_prog_compiler_pic_works_CXX=yes
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15909 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15911 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15912 case $lt_prog_compiler_pic_CXX in
15914 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15917 lt_prog_compiler_pic_CXX=
15918 lt_prog_compiler_can_build_shared_CXX=no
15928 # Check to make sure the static flag actually works.
15930 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15933 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15934 $as_echo_n "(cached) " >&6
15936 lt_cv_prog_compiler_static_works_CXX=no
15937 save_LDFLAGS="$LDFLAGS"
15938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15941 # The linker can only warn and ignore the option if not recognized
15942 # So say no if there are warnings
15943 if test -s conftest.err; then
15944 # Append any errors to the config.log.
15945 cat conftest.err 1>&5
15946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15948 if diff conftest.exp conftest.er2 >/dev/null; then
15949 lt_cv_prog_compiler_static_works_CXX=yes
15952 lt_cv_prog_compiler_static_works_CXX=yes
15956 LDFLAGS="$save_LDFLAGS"
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15960 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15962 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15965 lt_prog_compiler_static_CXX=
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15973 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15974 $as_echo_n "(cached) " >&6
15976 lt_cv_prog_compiler_c_o_CXX=no
15977 $RM -r conftest 2>/dev/null
15981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983 lt_compiler_flag="-o out/conftest2.$ac_objext"
15984 # Insert the option either (1) after the last *FLAGS variable, or
15985 # (2) before a word containing "conftest.", or (3) at the end.
15986 # Note that $ac_compile itself does not contain backslashes and begins
15987 # with a dollar sign (not a hyphen), so the echo should work correctly.
15988 lt_compile=`echo "$ac_compile" | $SED \
15989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991 -e 's:$: $lt_compiler_flag:'`
15992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15993 (eval "$lt_compile" 2>out/conftest.err)
15995 cat out/conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15999 # The compiler can only warn and ignore the option if not recognized
16000 # So say no if there are warnings
16001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16004 lt_cv_prog_compiler_c_o_CXX=yes
16009 # SGI C++ compiler will create directory out/ii_files/ for
16010 # template instantiation
16011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16012 $RM out/* && rmdir out
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16019 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16025 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16026 $as_echo_n "(cached) " >&6
16028 lt_cv_prog_compiler_c_o_CXX=no
16029 $RM -r conftest 2>/dev/null
16033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035 lt_compiler_flag="-o out/conftest2.$ac_objext"
16036 # Insert the option either (1) after the last *FLAGS variable, or
16037 # (2) before a word containing "conftest.", or (3) at the end.
16038 # Note that $ac_compile itself does not contain backslashes and begins
16039 # with a dollar sign (not a hyphen), so the echo should work correctly.
16040 lt_compile=`echo "$ac_compile" | $SED \
16041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16043 -e 's:$: $lt_compiler_flag:'`
16044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16045 (eval "$lt_compile" 2>out/conftest.err)
16047 cat out/conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16051 # The compiler can only warn and ignore the option if not recognized
16052 # So say no if there are warnings
16053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16056 lt_cv_prog_compiler_c_o_CXX=yes
16061 # SGI C++ compiler will create directory out/ii_files/ for
16062 # template instantiation
16063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16064 $RM out/* && rmdir out
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16071 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16076 hard_links="nottested"
16077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16078 # do not overwrite the value of need_locks provided by the user
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16080 $as_echo_n "checking if we can lock with hard links... " >&6; }
16083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16085 ln conftest.a conftest.b 2>&5 || hard_links=no
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16088 $as_echo "$hard_links" >&6; }
16089 if test "$hard_links" = no; then
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16091 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16107 # If we're using GNU nm, then we don't want the "-C" option.
16108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16109 # Also, AIX nm treats weak defined symbols like other global defined
16110 # symbols, whereas GNU nm marks them as "W".
16111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16112 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'
16114 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'
16118 export_symbols_cmds_CXX="$ltdll_cmds"
16120 cygwin* | mingw* | cegcc*)
16121 case $cc_basename in
16123 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16126 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'
16127 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16137 $as_echo "$ld_shlibs_CXX" >&6; }
16138 test "$ld_shlibs_CXX" = no && can_build_shared=no
16140 with_gnu_ld_CXX=$with_gnu_ld
16148 # Do we need to explicitly link libc?
16150 case "x$archive_cmds_need_lc_CXX" in
16152 # Assume -lc should be added
16153 archive_cmds_need_lc_CXX=yes
16155 if test "$enable_shared" = yes && test "$GCC" = yes; then
16156 case $archive_cmds_CXX in
16158 # FIXME: we may have to deal with multi-command sequences.
16161 # Test whether the compiler implicitly links with -lc since on some
16162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16163 # to ld, don't add -lc before -lgcc.
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16166 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16167 $as_echo_n "(cached) " >&6
16170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16173 (eval $ac_compile) 2>&5
16175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16176 test $ac_status = 0; } 2>conftest.err; then
16179 libobjs=conftest.$ac_objext
16181 wl=$lt_prog_compiler_wl_CXX
16182 pic_flag=$lt_prog_compiler_pic_CXX
16188 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16189 allow_undefined_flag_CXX=
16190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16191 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16194 test $ac_status = 0; }
16196 lt_cv_archive_cmds_need_lc_CXX=no
16198 lt_cv_archive_cmds_need_lc_CXX=yes
16200 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16202 cat conftest.err 1>&5
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16208 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16209 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16280 library_names_spec=
16281 libname_spec='lib$name'
16285 postuninstall_cmds=
16289 shlibpath_overrides_runpath=unknown
16291 dynamic_linker="$host_os ld.so"
16292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16293 need_lib_prefix=unknown
16294 hardcode_into_libs=no
16296 # when you set need_version to no, make sure it does not cause -set_version
16297 # flags to be left without arguments
16298 need_version=unknown
16302 version_type=linux # correct to gnu/linux during the next big refactor
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16304 shlibpath_var=LIBPATH
16306 # AIX 3 has no versioning support, so we append a major version to the name.
16307 soname_spec='${libname}${release}${shared_ext}$major'
16311 version_type=linux # correct to gnu/linux during the next big refactor
16314 hardcode_into_libs=yes
16315 if test "$host_cpu" = ia64; then
16316 # AIX 5 supports IA64
16317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16318 shlibpath_var=LD_LIBRARY_PATH
16320 # With GCC up to 2.95.x, collect2 would create an import file
16321 # for dependence libraries. The import file would start with
16322 # the line `#! .'. This would cause the generated library to
16323 # depend on `.', always an invalid library. This was fixed in
16324 # development snapshots of GCC prior to 3.0.
16326 aix4 | aix4.[01] | aix4.[01].*)
16327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16329 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16332 can_build_shared=no
16336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16337 # soname into executable. Probably we can add versioning support to
16338 # collect2, so additional links can be useful in future.
16339 if test "$aix_use_runtimelinking" = yes; then
16340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16341 # instead of lib<name>.a to let people know that these are not
16342 # typical AIX shared libraries.
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 # We preserve .a as extension for shared libraries through AIX4.2
16346 # and later when we are not doing run time linking.
16347 library_names_spec='${libname}${release}.a $libname.a'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16350 shlibpath_var=LIBPATH
16357 # Since July 2007 AmigaOS4 officially supports .so libraries.
16358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 library_names_spec='$libname.ixlibrary $libname.a'
16363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16364 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'
16370 library_names_spec='${libname}${shared_ext}'
16371 dynamic_linker="$host_os ld.so"
16372 shlibpath_var=LIBRARY_PATH
16376 version_type=linux # correct to gnu/linux during the next big refactor
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16384 # the default ld.so.conf also contains /usr/contrib/lib and
16385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16386 # libtool to hard-code these into programs
16389 cygwin* | mingw* | pw32* | cegcc*)
16390 version_type=windows
16395 case $GCC,$cc_basename in
16398 library_names_spec='$libname.dll.a'
16399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16400 postinstall_cmds='base_file=`basename \${file}`~
16401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16402 dldir=$destdir/`dirname \$dlpath`~
16403 test -d \$dldir || mkdir -p \$dldir~
16404 $install_prog $dir/$dlname \$dldir/$dlname~
16405 chmod a+x \$dldir/$dlname~
16406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16410 dlpath=$dir/\$dldll~
16412 shlibpath_overrides_runpath=yes
16416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16421 # MinGW DLLs use traditional 'lib' prefix
16422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16425 # pw32 DLLs use 'pw' prefix rather than 'lib'
16426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16429 dynamic_linker='Win32 ld.exe'
16434 libname_spec='$name'
16435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436 library_names_spec='${libname}.dll.lib'
16440 sys_lib_search_path_spec=
16443 for lt_path in $LIB
16446 # Let DOS variable expansion print the short 8.3 style file name.
16447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16451 # Convert to MSYS style.
16452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16455 # Convert to unix form, then to dos form, then back to unix form
16456 # but this time dos style (no spaces!) so that the unix form looks
16457 # like /cygdrive/c/PROGRA~1:/cygdr...
16458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16463 sys_lib_search_path_spec="$LIB"
16464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16465 # It is most probably a Windows format PATH.
16466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470 # FIXME: find the short name or the path components, as spaces are
16471 # common. (e.g. "Program Files" -> "PROGRA~1")
16475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16476 postinstall_cmds='base_file=`basename \${file}`~
16477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16478 dldir=$destdir/`dirname \$dlpath`~
16479 test -d \$dldir || mkdir -p \$dldir~
16480 $install_prog $dir/$dlname \$dldir/$dlname'
16481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482 dlpath=$dir/\$dldll~
16484 shlibpath_overrides_runpath=yes
16485 dynamic_linker='Win32 link.exe'
16489 # Assume MSVC wrapper
16490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491 dynamic_linker='Win32 ld.exe'
16494 # FIXME: first we should search . and the directory the executable is in
16498 darwin* | rhapsody*)
16499 dynamic_linker="$host_os dyld"
16500 version_type=darwin
16503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16504 soname_spec='${libname}${release}${major}$shared_ext'
16505 shlibpath_overrides_runpath=yes
16506 shlibpath_var=DYLD_LIBRARY_PATH
16507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16513 version_type=linux # correct to gnu/linux during the next big refactor
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
16521 freebsd* | dragonfly*)
16522 # DragonFly does not have aout. When/if they implement a new
16523 # versioning mechanism, adjust this.
16524 if test -x /usr/bin/objformat; then
16525 objformat=`/usr/bin/objformat`
16528 freebsd[23].*) objformat=aout ;;
16529 *) objformat=elf ;;
16532 version_type=freebsd-$objformat
16533 case $version_type in
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16544 shlibpath_var=LD_LIBRARY_PATH
16547 shlibpath_overrides_runpath=yes
16549 freebsd3.[01]* | freebsdelf3.[01]*)
16550 shlibpath_overrides_runpath=yes
16551 hardcode_into_libs=yes
16553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16555 shlibpath_overrides_runpath=no
16556 hardcode_into_libs=yes
16558 *) # from 4.6 on, and DragonFly
16559 shlibpath_overrides_runpath=yes
16560 hardcode_into_libs=yes
16566 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
16572 shlibpath_overrides_runpath=no
16573 hardcode_into_libs=yes
16577 version_type=linux # correct to gnu/linux during the next big refactor
16580 dynamic_linker="$host_os runtime_loader"
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LIBRARY_PATH
16584 shlibpath_overrides_runpath=yes
16585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16586 hardcode_into_libs=yes
16589 hpux9* | hpux10* | hpux11*)
16590 # Give a soname corresponding to the major version so that dld.sl refuses to
16591 # link against other versions.
16598 hardcode_into_libs=yes
16599 dynamic_linker="$host_os dld.so"
16600 shlibpath_var=LD_LIBRARY_PATH
16601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 if test "X$HPUX_IA64_MODE" = X32; then
16605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16613 hardcode_into_libs=yes
16614 dynamic_linker="$host_os dld.sl"
16615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624 dynamic_linker="$host_os dld.sl"
16625 shlibpath_var=SHLIB_PATH
16626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
16631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16632 postinstall_cmds='chmod 555 $lib'
16633 # or fails outright, so override atomically:
16634 install_override_mode=555
16638 version_type=linux # correct to gnu/linux during the next big refactor
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16649 irix5* | irix6* | nonstopux*)
16651 nonstopux*) version_type=nonstopux ;;
16653 if test "$lt_cv_prog_gnu_ld" = yes; then
16654 version_type=linux # correct to gnu/linux during the next big refactor
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16664 irix5* | nonstopux*)
16665 libsuff= shlibsuff=
16668 case $LD in # libtool.m4 will add one of these switches to LD
16669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670 libsuff= shlibsuff= libmagic=32-bit;;
16671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672 libsuff=32 shlibsuff=N32 libmagic=N32;;
16673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675 *) libsuff= shlibsuff= libmagic=never-match;;
16679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680 shlibpath_overrides_runpath=no
16681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16683 hardcode_into_libs=yes
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16691 # This must be glibc/ELF.
16692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16693 version_type=linux # correct to gnu/linux during the next big refactor
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=no
16702 # Some binutils ld are patched to set DT_RUNPATH
16703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16704 $as_echo_n "(cached) " >&6
16706 lt_cv_shlibpath_overrides_runpath=no
16707 save_LDFLAGS=$LDFLAGS
16708 save_libdir=$libdir
16709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16722 if ac_fn_cxx_try_link "$LINENO"; then :
16723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16724 lt_cv_shlibpath_overrides_runpath=yes
16727 rm -f core conftest.err conftest.$ac_objext \
16728 conftest$ac_exeext conftest.$ac_ext
16729 LDFLAGS=$save_LDFLAGS
16730 libdir=$save_libdir
16734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16736 # This implies no fast_install, which is unacceptable.
16737 # Some rework will be needed to allow for fast_install
16738 # before this can be enabled.
16739 hardcode_into_libs=yes
16741 # Add ABI-specific directories to the system library path.
16742 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16744 # Append ld.so.conf contents to the search path
16745 if test -f /etc/ld.so.conf; then
16746 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' ' '`
16747 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16751 # We used to test for /lib/ld.so.1 and disable shared libraries on
16752 # powerpc, because MkLinux only supported shared libraries with the
16753 # GNU dynamic linker. Since this was broken with cross compilers,
16754 # most powerpc-linux boxes support dynamic linking these days and
16755 # people can always --disable-shared, the test was removed, and we
16756 # assume the GNU/Linux dynamic linker is in use.
16757 dynamic_linker='GNU/Linux ld.so'
16764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16767 dynamic_linker='NetBSD (a.out) ld.so'
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 dynamic_linker='NetBSD ld.elf_so'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=yes
16775 hardcode_into_libs=yes
16779 version_type=linux # correct to gnu/linux during the next big refactor
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 shlibpath_overrides_runpath=yes
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=no
16793 hardcode_into_libs=yes
16794 dynamic_linker='ldqnx.so'
16799 sys_lib_dlsearch_path_spec="/usr/lib"
16801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16804 *) need_version=no ;;
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16808 shlibpath_var=LD_LIBRARY_PATH
16809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16811 openbsd2.[89] | openbsd2.[89].*)
16812 shlibpath_overrides_runpath=no
16815 shlibpath_overrides_runpath=yes
16819 shlibpath_overrides_runpath=yes
16824 libname_spec='$name'
16827 library_names_spec='$libname${shared_ext} $libname.a'
16828 dynamic_linker='OS/2 ld.exe'
16829 shlibpath_var=LIBPATH
16832 osf3* | osf4* | osf5*)
16836 soname_spec='${libname}${release}${shared_ext}$major'
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16848 version_type=linux # correct to gnu/linux during the next big refactor
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16855 hardcode_into_libs=yes
16856 # ldd complains unless libraries are executable
16857 postinstall_cmds='chmod +x $lib'
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 shlibpath_overrides_runpath=yes
16866 if test "$with_gnu_ld" = yes; then
16873 version_type=linux # correct to gnu/linux during the next big refactor
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 case $host_vendor in
16879 shlibpath_overrides_runpath=no
16881 runpath_var=LD_RUN_PATH
16889 shlibpath_overrides_runpath=no
16890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16896 if test -d /usr/nec ;then
16897 version_type=linux # correct to gnu/linux during the next big refactor
16898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16899 soname_spec='$libname${shared_ext}.$major'
16900 shlibpath_var=LD_LIBRARY_PATH
16904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16905 version_type=freebsd-elf
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 shlibpath_overrides_runpath=yes
16912 hardcode_into_libs=yes
16913 if test "$with_gnu_ld" = yes; then
16914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16923 sys_lib_dlsearch_path_spec='/usr/lib'
16927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16928 version_type=linux # correct to gnu/linux during the next big refactor
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 shlibpath_overrides_runpath=no
16934 hardcode_into_libs=yes
16938 version_type=linux # correct to gnu/linux during the next big refactor
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 shlibpath_var=LD_LIBRARY_PATH
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16949 $as_echo "$dynamic_linker" >&6; }
16950 test "$dynamic_linker" = no && can_build_shared=no
16952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16953 if test "$GCC" = yes; then
16954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17003 hardcode_action_CXX=
17004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17005 test -n "$runpath_var_CXX" ||
17006 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17008 # We can hardcode non-existent directories.
17009 if test "$hardcode_direct_CXX" != no &&
17010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17011 # have to relink, otherwise we might link with an installed library
17012 # when we should be linking with a yet-to-be-installed one
17013 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17014 test "$hardcode_minus_L_CXX" != no; then
17015 # Linking always hardcodes the temporary library directory.
17016 hardcode_action_CXX=relink
17018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17019 hardcode_action_CXX=immediate
17022 # We cannot hardcode anything, or else we can only hardcode existing
17024 hardcode_action_CXX=unsupported
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17027 $as_echo "$hardcode_action_CXX" >&6; }
17029 if test "$hardcode_action_CXX" = relink ||
17030 test "$inherit_rpath_CXX" = yes; then
17031 # Fast installation is not supported
17032 enable_fast_install=no
17033 elif test "$shlibpath_overrides_runpath" = yes ||
17034 test "$enable_shared" = no; then
17035 # Fast installation is not necessary
17036 enable_fast_install=needless
17045 fi # test -n "$compiler"
17048 CFLAGS=$lt_save_CFLAGS
17052 with_gnu_ld=$lt_save_with_gnu_ld
17053 lt_cv_path_LDCXX=$lt_cv_path_LD
17054 lt_cv_path_LD=$lt_save_path_LD
17055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17057 fi # test "$_lt_caught_CXX_error" != yes
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17079 ac_config_commands="$ac_config_commands libtool"
17084 # Only expand once:
17087 if test "x$CC" != xcc; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17089 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17092 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17094 set dummy $CC; ac_cc=`$as_echo "$2" |
17095 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17096 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17097 $as_echo_n "(cached) " >&6
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17110 # Make sure it works both with $CC and with simple cc.
17111 # We do the test twice because some compilers refuse to overwrite an
17112 # existing .o file with -o, though they will create one.
17113 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17115 if { { case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17120 $as_echo "$ac_try_echo"; } >&5
17121 (eval "$ac_try") 2>&5
17123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124 test $ac_status = 0; } &&
17125 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17130 $as_echo "$ac_try_echo"; } >&5
17131 (eval "$ac_try") 2>&5
17133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17134 test $ac_status = 0; };
17136 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17137 if test "x$CC" != xcc; then
17138 # Test first that cc exists at all.
17139 if { ac_try='cc -c conftest.$ac_ext >&5'
17140 { { case "(($ac_try" in
17141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142 *) ac_try_echo=$ac_try;;
17144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17145 $as_echo "$ac_try_echo"; } >&5
17146 (eval "$ac_try") 2>&5
17148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17149 test $ac_status = 0; }; }; then
17150 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17152 if { { case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17157 $as_echo "$ac_try_echo"; } >&5
17158 (eval "$ac_try") 2>&5
17160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17161 test $ac_status = 0; } &&
17162 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17167 $as_echo "$ac_try_echo"; } >&5
17168 (eval "$ac_try") 2>&5
17170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17171 test $ac_status = 0; };
17176 # cc exists but doesn't like -o.
17177 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17182 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17184 rm -f core conftest*
17187 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17189 $as_echo "yes" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192 $as_echo "no" >&6; }
17194 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17198 # FIXME: we rely on the cache variable name because
17199 # there is no other way.
17201 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17202 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17203 if test "$am_t" != yes; then
17204 # Losing compiler, so override with the script.
17205 # FIXME: It is wrong to rewrite CC.
17206 # But if we don't then we get into trouble of one sort or another.
17207 # A longer-term fix would be to have automake use am__CC in this case,
17208 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17209 CC="$am_aux_dir/compile $CC"
17214 if test "x$cross_compiling" = "xno"; then
17215 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17217 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17222 if test -n "$ac_tool_prefix"; then
17223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17224 set dummy ${ac_tool_prefix}ar; ac_word=$2
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17226 $as_echo_n "checking for $ac_word... " >&6; }
17227 if ${ac_cv_prog_AR+:} false; then :
17228 $as_echo_n "(cached) " >&6
17230 if test -n "$AR"; then
17231 ac_cv_prog_AR="$AR" # Let the user override the test.
17233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17234 for as_dir in $PATH
17237 test -z "$as_dir" && as_dir=.
17238 for ac_exec_ext in '' $ac_executable_extensions; do
17239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17240 ac_cv_prog_AR="${ac_tool_prefix}ar"
17241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17251 if test -n "$AR"; then
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17253 $as_echo "$AR" >&6; }
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17256 $as_echo "no" >&6; }
17261 if test -z "$ac_cv_prog_AR"; then
17263 # Extract the first word of "ar", so it can be a program name with args.
17264 set dummy ar; ac_word=$2
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17266 $as_echo_n "checking for $ac_word... " >&6; }
17267 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17268 $as_echo_n "(cached) " >&6
17270 if test -n "$ac_ct_AR"; then
17271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17274 for as_dir in $PATH
17277 test -z "$as_dir" && as_dir=.
17278 for ac_exec_ext in '' $ac_executable_extensions; do
17279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17280 ac_cv_prog_ac_ct_AR="ar"
17281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17291 if test -n "$ac_ct_AR"; then
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17293 $as_echo "$ac_ct_AR" >&6; }
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296 $as_echo "no" >&6; }
17299 if test "x$ac_ct_AR" = x; then
17302 case $cross_compiling:$ac_tool_warned in
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17306 ac_tool_warned=yes ;;
17311 AR="$ac_cv_prog_AR"
17314 if test -n "$ac_tool_prefix"; then
17315 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17316 set dummy ${ac_tool_prefix}ld; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_prog_LD+:} false; then :
17320 $as_echo_n "(cached) " >&6
17322 if test -n "$LD"; then
17323 ac_cv_prog_LD="$LD" # Let the user override the test.
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $PATH
17329 test -z "$as_dir" && as_dir=.
17330 for ac_exec_ext in '' $ac_executable_extensions; do
17331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332 ac_cv_prog_LD="${ac_tool_prefix}ld"
17333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17343 if test -n "$LD"; then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17345 $as_echo "$LD" >&6; }
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17353 if test -z "$ac_cv_prog_LD"; then
17355 # Extract the first word of "ld", so it can be a program name with args.
17356 set dummy ld; ac_word=$2
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17358 $as_echo_n "checking for $ac_word... " >&6; }
17359 if ${ac_cv_prog_ac_ct_LD+:} false; then :
17360 $as_echo_n "(cached) " >&6
17362 if test -n "$ac_ct_LD"; then
17363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17366 for as_dir in $PATH
17369 test -z "$as_dir" && as_dir=.
17370 for ac_exec_ext in '' $ac_executable_extensions; do
17371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17372 ac_cv_prog_ac_ct_LD="ld"
17373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17382 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17383 if test -n "$ac_ct_LD"; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
17385 $as_echo "$ac_ct_LD" >&6; }
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388 $as_echo "no" >&6; }
17391 if test "x$ac_ct_LD" = x; then
17394 case $cross_compiling:$ac_tool_warned in
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17398 ac_tool_warned=yes ;;
17403 LD="$ac_cv_prog_LD"
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17408 $as_echo_n "checking for ANSI C header files... " >&6; }
17409 if ${ac_cv_header_stdc+:} false; then :
17410 $as_echo_n "(cached) " >&6
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 #include <stdlib.h>
17415 #include <stdarg.h>
17416 #include <string.h>
17427 if ac_fn_c_try_compile "$LINENO"; then :
17428 ac_cv_header_stdc=yes
17430 ac_cv_header_stdc=no
17432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17434 if test $ac_cv_header_stdc = yes; then
17435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 #include <string.h>
17441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17442 $EGREP "memchr" >/dev/null 2>&1; then :
17445 ac_cv_header_stdc=no
17451 if test $ac_cv_header_stdc = yes; then
17452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17455 #include <stdlib.h>
17458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17459 $EGREP "free" >/dev/null 2>&1; then :
17462 ac_cv_header_stdc=no
17468 if test $ac_cv_header_stdc = yes; then
17469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17470 if test "$cross_compiling" = yes; then :
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17476 #include <stdlib.h>
17477 #if ((' ' & 0x0FF) == 0x020)
17478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17481 # define ISLOWER(c) \
17482 (('a' <= (c) && (c) <= 'i') \
17483 || ('j' <= (c) && (c) <= 'r') \
17484 || ('s' <= (c) && (c) <= 'z'))
17485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17493 for (i = 0; i < 256; i++)
17494 if (XOR (islower (i), ISLOWER (i))
17495 || toupper (i) != TOUPPER (i))
17500 if ac_fn_c_try_run "$LINENO"; then :
17503 ac_cv_header_stdc=no
17505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17506 conftest.$ac_objext conftest.beam conftest.$ac_ext
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17512 $as_echo "$ac_cv_header_stdc" >&6; }
17513 if test $ac_cv_header_stdc = yes; then
17515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
17521 $as_echo_n "checking for GNU libc2... " >&6; }
17522 if ${knfsd_cv_glibc2+:} false; then :
17523 $as_echo_n "(cached) " >&6
17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h. */
17528 #include <features.h>
17529 #if !defined(__GLIBC__)
17534 if ac_fn_c_try_cpp "$LINENO"; then :
17535 knfsd_cv_glibc2=yes
17539 rm -f conftest.err conftest.i conftest.$ac_ext
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
17543 $as_echo "$knfsd_cv_glibc2" >&6; }
17544 if test $knfsd_cv_glibc2 = yes; then
17545 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17546 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
17551 $as_echo_n "checking for BSD signal semantics... " >&6; }
17552 if ${knfsd_cv_bsd_signals+:} false; then :
17553 $as_echo_n "(cached) " >&6
17555 if test "$cross_compiling" = yes; then :
17558 *linux*) knfsd_cv_bsd_signals=no;;
17559 *bsd*) knfsd_cv_bsd_signals=yes;;
17560 *) as_fn_error $? "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 #include <signal.h>
17568 #include <unistd.h>
17569 #include <sys/wait.h>
17571 static int counter = 0;
17572 static RETSIGTYPE handler(int num) { counter++; }
17577 if ((s = fork()) < 0) return 1;
17579 if (wait(&s) < 0) return 1;
17580 return WIFSIGNALED(s)? 1 : 0;
17583 signal(SIGHUP, handler);
17584 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
17585 return (counter == 2)? 0 : 1;
17589 if ac_fn_c_try_run "$LINENO"; then :
17590 knfsd_cv_bsd_signals=yes
17592 knfsd_cv_bsd_signals=no
17594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17595 conftest.$ac_objext conftest.beam conftest.$ac_ext
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
17600 $as_echo "$knfsd_cv_bsd_signals" >&6; }
17601 test $knfsd_cv_bsd_signals = yes &&
17602 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17607 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17608 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17612 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17613 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17614 $as_echo_n "(cached) " >&6
17616 ac_check_lib_save_LIBS=$LIBS
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17621 /* Override any GCC internal prototype to avoid an error.
17622 Use char because int might match the return type of a GCC
17623 builtin and then its argument prototype would still apply. */
17627 char gethostbyname ();
17631 return gethostbyname ();
17636 if ac_fn_c_try_link "$LINENO"; then :
17637 ac_cv_lib_nsl_gethostbyname=yes
17639 ac_cv_lib_nsl_gethostbyname=no
17641 rm -f core conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17646 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17647 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17655 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17656 if test "x$ac_cv_func_connect" = xyes; then :
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17660 $as_echo_n "checking for connect in -lsocket... " >&6; }
17661 if ${ac_cv_lib_socket_connect+:} false; then :
17662 $as_echo_n "(cached) " >&6
17664 ac_check_lib_save_LIBS=$LIBS
17665 LIBS="-lsocket $LIBNSL $LIBS"
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17684 if ac_fn_c_try_link "$LINENO"; then :
17685 ac_cv_lib_socket_connect=yes
17687 ac_cv_lib_socket_connect=no
17689 rm -f core conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17694 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17695 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17696 LIBSOCKET="-lsocket"
17698 as_fn_error $? "Function 'socket' not found." "$LINENO" 5
17704 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17705 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17708 as_fn_error $? "Function 'getaddrinfo' not found." "$LINENO" 5
17712 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
17713 if test "x$ac_cv_func_getrpcbynumber" = xyes; then :
17716 as_fn_error $? "Function 'getrpcbynumber' not found." "$LINENO" 5
17720 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17721 if test "x$ac_cv_func_getservbyname" = xyes; then :
17724 as_fn_error $? "Function 'getservbyname' not found." "$LINENO" 5
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17729 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17730 if ${ac_cv_lib_crypt_crypt+:} false; then :
17731 $as_echo_n "(cached) " >&6
17733 ac_check_lib_save_LIBS=$LIBS
17734 LIBS="-lcrypt $LIBS"
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17753 if ac_fn_c_try_link "$LINENO"; then :
17754 ac_cv_lib_crypt_crypt=yes
17756 ac_cv_lib_crypt_crypt=no
17758 rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760 LIBS=$ac_check_lib_save_LIBS
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17763 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17764 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
17770 $as_echo_n "checking for dlclose in -ldl... " >&6; }
17771 if ${ac_cv_lib_dl_dlclose+:} false; then :
17772 $as_echo_n "(cached) " >&6
17774 ac_check_lib_save_LIBS=$LIBS
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17794 if ac_fn_c_try_link "$LINENO"; then :
17795 ac_cv_lib_dl_dlclose=yes
17797 ac_cv_lib_dl_dlclose=no
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
17804 $as_echo "$ac_cv_lib_dl_dlclose" >&6; }
17805 if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
17810 if test "$enable_nfsv4" = yes; then
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
17814 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
17815 if ${ac_cv_lib_event_event_dispatch+:} false; then :
17816 $as_echo_n "(cached) " >&6
17818 ac_check_lib_save_LIBS=$LIBS
17819 LIBS="-levent $LIBS"
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17823 /* Override any GCC internal prototype to avoid an error.
17824 Use char because int might match the return type of a GCC
17825 builtin and then its argument prototype would still apply. */
17829 char event_dispatch ();
17833 return event_dispatch ();
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 ac_cv_lib_event_event_dispatch=yes
17841 ac_cv_lib_event_event_dispatch=no
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17845 LIBS=$ac_check_lib_save_LIBS
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17848 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17849 if test "x$ac_cv_lib_event_event_dispatch" = xyes; then :
17852 as_fn_error $? "libevent not found." "$LINENO" 5
17857 for ac_header in event.h
17859 ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17860 if test "x$ac_cv_header_event_h" = xyes; then :
17861 cat >>confdefs.h <<_ACEOF
17862 #define HAVE_EVENT_H 1
17866 as_fn_error $? "libevent headers not found." "$LINENO" 5
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17877 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17878 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
17879 $as_echo_n "(cached) " >&6
17881 ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lnfsidmap $LIBS"
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17886 /* Override any GCC internal prototype to avoid an error.
17887 Use char because int might match the return type of a GCC
17888 builtin and then its argument prototype would still apply. */
17892 char nfs4_init_name_mapping ();
17896 return nfs4_init_name_mapping ();
17901 if ac_fn_c_try_link "$LINENO"; then :
17902 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17904 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17906 rm -f core conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17911 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17912 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
17913 LIBNFSIDMAP=-lnfsidmap
17915 as_fn_error $? "libnfsidmap not found." "$LINENO" 5
17919 for ac_header in nfsidmap.h
17921 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17922 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
17923 cat >>confdefs.h <<_ACEOF
17924 #define HAVE_NFSIDMAP_H 1
17928 as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17935 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17936 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
17937 $as_echo_n "(cached) " >&6
17939 ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-lnfsidmap $LIBS"
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17944 /* Override any GCC internal prototype to avoid an error.
17945 Use char because int might match the return type of a GCC
17946 builtin and then its argument prototype would still apply. */
17950 char nfs4_set_debug ();
17954 return nfs4_set_debug ();
17959 if ac_fn_c_try_link "$LINENO"; then :
17960 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17962 ac_cv_lib_nfsidmap_nfs4_set_debug=no
17964 rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17969 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17970 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
17972 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
17978 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
17979 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
17980 $as_echo_n "(cached) " >&6
17982 ac_check_lib_save_LIBS=$LIBS
17983 LIBS="-lnfsidmap $LIBS"
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h. */
17987 /* Override any GCC internal prototype to avoid an error.
17988 Use char because int might match the return type of a GCC
17989 builtin and then its argument prototype would still apply. */
17993 char nfs4_owner_to_uid ();
17997 return nfs4_owner_to_uid ();
18002 if ac_fn_c_try_link "$LINENO"; then :
18003 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18005 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18007 rm -f core conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
18009 LIBS=$ac_check_lib_save_LIBS
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18012 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18013 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_instantiate in -lkeyutils" >&5
18025 $as_echo_n "checking for keyctl_instantiate in -lkeyutils... " >&6; }
18026 if ${ac_cv_lib_keyutils_keyctl_instantiate+:} false; then :
18027 $as_echo_n "(cached) " >&6
18029 ac_check_lib_save_LIBS=$LIBS
18030 LIBS="-lkeyutils $LIBS"
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18040 char keyctl_instantiate ();
18044 return keyctl_instantiate ();
18049 if ac_fn_c_try_link "$LINENO"; then :
18050 ac_cv_lib_keyutils_keyctl_instantiate=yes
18052 ac_cv_lib_keyutils_keyctl_instantiate=no
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_instantiate" >&5
18059 $as_echo "$ac_cv_lib_keyutils_keyctl_instantiate" >&6; }
18060 if test "x$ac_cv_lib_keyutils_keyctl_instantiate" = xyes; then :
18061 LIBKEYUTILS=-lkeyutils
18066 for ac_header in keyutils.h
18068 ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
18069 if test "x$ac_cv_header_keyutils_h" = xyes; then :
18070 cat >>confdefs.h <<_ACEOF
18071 #define HAVE_KEYUTILS_H 1
18082 for ac_header in sqlite3.h
18084 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
18085 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_SQLITE3_H 1
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion_number in -lsqlite3" >&5
18096 $as_echo_n "checking for sqlite3_libversion_number in -lsqlite3... " >&6; }
18097 if ${ac_cv_lib_sqlite3_sqlite3_libversion_number+:} false; then :
18098 $as_echo_n "(cached) " >&6
18100 ac_check_lib_save_LIBS=$LIBS
18101 LIBS="-lsqlite3 $LIBS"
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply. */
18111 char sqlite3_libversion_number ();
18115 return sqlite3_libversion_number ();
18120 if ac_fn_c_try_link "$LINENO"; then :
18121 ac_cv_lib_sqlite3_sqlite3_libversion_number=yes
18123 ac_cv_lib_sqlite3_sqlite3_libversion_number=no
18125 rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libversion_number" >&5
18130 $as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion_number" >&6; }
18131 if test "x$ac_cv_lib_sqlite3_sqlite3_libversion_number" = xyes; then :
18132 LIBSQLITE=-lsqlite3
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sqlite3 version" >&5
18138 $as_echo_n "checking for suitable sqlite3 version... " >&6; }
18140 if ${libsqlite3_cv_is_recent+:} false; then :
18141 $as_echo_n "(cached) " >&6
18146 if test "$cross_compiling" = yes; then :
18147 libsqlite3_cv_is_recent=unknown
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18153 #include <sqlite3.h>
18156 int vers = sqlite3_libversion_number();
18158 return vers != SQLITE_VERSION_NUMBER ||
18163 if ac_fn_c_try_run "$LINENO"; then :
18164 libsqlite3_cv_is_recent=yes
18166 libsqlite3_cv_is_recent=no
18168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18169 conftest.$ac_objext conftest.beam conftest.$ac_ext
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsqlite3_cv_is_recent" >&5
18177 $as_echo "$libsqlite3_cv_is_recent" >&6; }
18180 if test "$enable_nfsdcltrack" = "yes"; then
18181 for ac_header in libgen.h sys/inotify.h
18183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18186 cat >>confdefs.h <<_ACEOF
18187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18191 as_fn_error $? "Cannot find header needed for nfsdcltrack" "$LINENO" 5
18197 case $libsqlite3_cv_is_recent in
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assuming sqlite is at least v3.3" >&5
18201 $as_echo "$as_me: WARNING: assuming sqlite is at least v3.3" >&2;} ;;
18203 as_fn_error $? "nfsdcltrack requires sqlite-devel" "$LINENO" 5 ;;
18208 enable_nfsdcltrack="no"
18211 if test "$enable_nfsv41" = yes; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
18213 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
18214 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
18215 $as_echo_n "(cached) " >&6
18217 ac_check_lib_save_LIBS=$LIBS
18218 LIBS="-ldevmapper $LIBS"
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18228 char dm_task_create ();
18232 return dm_task_create ();
18237 if ac_fn_c_try_link "$LINENO"; then :
18238 ac_cv_lib_devmapper_dm_task_create=yes
18240 ac_cv_lib_devmapper_dm_task_create=no
18242 rm -f core conftest.err conftest.$ac_objext \
18243 conftest$ac_exeext conftest.$ac_ext
18244 LIBS=$ac_check_lib_save_LIBS
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
18247 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
18248 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
18249 LIBDEVMAPPER="-ldevmapper"
18251 as_fn_error $? "libdevmapper needed" "$LINENO" 5
18254 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
18255 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
18258 as_fn_error $? "Cannot find devmapper header file libdevmapper.h" "$LINENO" 5
18262 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
18263 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
18266 as_fn_error $? "Cannot find header file sys/inotify.h" "$LINENO" 5
18272 if test "$enable_nfsdcltrack" = "yes" ; then
18273 CONFIG_NFSDCLTRACK_TRUE=
18274 CONFIG_NFSDCLTRACK_FALSE='#'
18276 CONFIG_NFSDCLTRACK_TRUE='#'
18277 CONFIG_NFSDCLTRACK_FALSE=
18280 if test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"; then
18281 CONFIG_NFSIDMAP_TRUE=
18282 CONFIG_NFSIDMAP_FALSE='#'
18284 CONFIG_NFSIDMAP_TRUE='#'
18285 CONFIG_NFSIDMAP_FALSE=
18290 if test "$knfsd_cv_glibc2" = no; then
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
18292 $as_echo_n "checking for daemon in -lbsd... " >&6; }
18293 if ${ac_cv_lib_bsd_daemon+:} false; then :
18294 $as_echo_n "(cached) " >&6
18296 ac_check_lib_save_LIBS=$LIBS
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18316 if ac_fn_c_try_link "$LINENO"; then :
18317 ac_cv_lib_bsd_daemon=yes
18319 ac_cv_lib_bsd_daemon=no
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
18326 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
18327 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
18333 if test "$choose_blkid" != no; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
18335 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
18336 if ${ac_cv_lib_blkid_blkid_get_library_version+:} false; then :
18337 $as_echo_n "(cached) " >&6
18339 ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-lblkid $LIBS"
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18350 char blkid_get_library_version ();
18354 return blkid_get_library_version ();
18359 if ac_fn_c_try_link "$LINENO"; then :
18360 ac_cv_lib_blkid_blkid_get_library_version=yes
18362 ac_cv_lib_blkid_blkid_get_library_version=no
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
18369 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
18370 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = xyes; then :
18373 as_fn_error $? "libblkid needed" "$LINENO" 5
18376 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
18377 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
18380 as_fn_error $? "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
18386 $as_echo_n "checking for suitable libblkid version... " >&6; }
18387 if ${libblkid_cv_is_recent+:} false; then :
18388 $as_echo_n "(cached) " >&6
18393 if test "$cross_compiling" = yes; then :
18394 libblkid_cv_is_recent=unknown
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18399 #include <blkid/blkid.h>
18402 int vers = blkid_get_library_version(0, 0);
18403 return vers >= 140 ? 0 : 1;
18407 if ac_fn_c_try_run "$LINENO"; then :
18408 libblkid_cv_is_recent=yes
18410 libblkid_cv_is_recent=no
18412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18413 conftest.$ac_objext conftest.beam conftest.$ac_ext
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
18420 $as_echo "$libblkid_cv_is_recent" >&6; }
18422 if test $choose_blkid = yes; then
18424 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
18425 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
18427 if test $libblkid_cv_is_recent = yes
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
18431 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
18435 cat >>confdefs.h <<_ACEOF
18436 #define USE_BLKID $use_blkid
18446 if test "$enable_libmount" != no; then
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_context_do_mount in -lmount" >&5
18448 $as_echo_n "checking for mnt_context_do_mount in -lmount... " >&6; }
18449 if ${ac_cv_lib_mount_mnt_context_do_mount+:} false; then :
18450 $as_echo_n "(cached) " >&6
18452 ac_check_lib_save_LIBS=$LIBS
18453 LIBS="-lmount $LIBS"
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18457 /* Override any GCC internal prototype to avoid an error.
18458 Use char because int might match the return type of a GCC
18459 builtin and then its argument prototype would still apply. */
18463 char mnt_context_do_mount ();
18467 return mnt_context_do_mount ();
18472 if ac_fn_c_try_link "$LINENO"; then :
18473 ac_cv_lib_mount_mnt_context_do_mount=yes
18475 ac_cv_lib_mount_mnt_context_do_mount=no
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
18482 $as_echo "$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
18483 if test "x$ac_cv_lib_mount_mnt_context_do_mount" = xyes; then :
18486 as_fn_error $? "libmount needed" "$LINENO" 5
18489 ac_fn_c_check_header_mongrel "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
18490 if test "x$ac_cv_header_libmount_libmount_h" = xyes; then :
18493 as_fn_error $? "Cannot find libmount header file libmount/libmount.h" "$LINENO" 5
18498 if test "$enable_libmount" = "yes"; then
18499 CONFIG_LIBMOUNT_TRUE=
18500 CONFIG_LIBMOUNT_FALSE='#'
18502 CONFIG_LIBMOUNT_TRUE='#'
18503 CONFIG_LIBMOUNT_FALSE=
18508 if test "$enable_gss" = yes; then
18509 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18510 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18513 as_fn_error $? "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
18520 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
18521 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
18522 $as_echo_n "(cached) " >&6
18524 ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lnfsidmap $LIBS"
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18535 char nfs4_init_name_mapping ();
18539 return nfs4_init_name_mapping ();
18544 if ac_fn_c_try_link "$LINENO"; then :
18545 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
18547 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
18554 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
18555 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
18556 LIBNFSIDMAP=-lnfsidmap
18558 as_fn_error $? "libnfsidmap not found." "$LINENO" 5
18562 for ac_header in nfsidmap.h
18564 ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
18565 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
18566 cat >>confdefs.h <<_ACEOF
18567 #define HAVE_NFSIDMAP_H 1
18571 as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
18578 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
18579 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
18580 $as_echo_n "(cached) " >&6
18582 ac_check_lib_save_LIBS=$LIBS
18583 LIBS="-lnfsidmap $LIBS"
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18593 char nfs4_set_debug ();
18597 return nfs4_set_debug ();
18602 if ac_fn_c_try_link "$LINENO"; then :
18603 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
18605 ac_cv_lib_nfsidmap_nfs4_set_debug=no
18607 rm -f core conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
18612 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
18613 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
18615 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
18621 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
18622 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
18623 $as_echo_n "(cached) " >&6
18625 ac_check_lib_save_LIBS=$LIBS
18626 LIBS="-lnfsidmap $LIBS"
18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18636 char nfs4_owner_to_uid ();
18640 return nfs4_owner_to_uid ();
18645 if ac_fn_c_try_link "$LINENO"; then :
18646 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18648 ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18655 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18656 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
18667 $as_echo_n "checking for Kerberos v5... " >&6; }
18669 # Check whether --with-krb5 was given.
18670 if test "${with_krb5+set}" = set; then :
18671 withval=$with_krb5; case "$withval" in
18676 krb5_with="$withval"
18683 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
18684 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
18686 if test -f $dir/bin/krb5-config; then
18687 K5CONFIG=$dir/bin/krb5-config
18688 elif test -f "/usr/kerberos/bin/krb5-config"; then
18689 K5CONFIG="/usr/kerberos/bin/krb5-config"
18690 elif test -f "/usr/lib/mit/bin/krb5-config"; then
18691 K5CONFIG="/usr/lib/mit/bin/krb5-config"
18693 if test "$K5CONFIG" != ""; then
18694 KRBCFLAGS=`$K5CONFIG --cflags`
18695 KRBLIBS=`$K5CONFIG --libs`
18696 GSSKRB_CFLAGS=`$K5CONFIG --cflags gssapi`
18697 GSSKRB_LIBS=`$K5CONFIG --libs gssapi`
18698 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
18700 cat >>confdefs.h <<_ACEOF
18701 #define KRB5_VERSION $K5VERS
18704 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
18705 \( -f $dir/lib/libgssapi_krb5.a -o \
18706 -f $dir/lib64/libgssapi_krb5.a -o \
18707 -f $dir/lib64/libgssapi_krb5.so -o \
18708 -f $dir/lib/libgssapi_krb5.so \) ; then
18710 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18713 if test $K5VERS -le 131; then
18715 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18718 gssapi_lib=gssapi_krb5
18720 elif test \( -f $dir/include/heim_err.h -o\
18721 -f $dir/include/heimdal/heim_err.h \) -a \
18722 -f $dir/lib/libroken.a; then
18724 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18732 if test "x$KRBDIR" = "x"; then
18733 if test "x$krb5_with" = "x"; then
18734 as_fn_error $? "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
18736 as_fn_error $? "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
18740 $as_echo "$KRBDIR" >&6; }
18742 echo "The current KRBDIR is $KRBDIR"
18743 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
18744 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
18746 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
18749 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
18752 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
18754 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
18755 if eval \${$as_ac_Lib+:} false; then :
18756 $as_echo_n "(cached) " >&6
18758 ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18769 char gss_krb5_export_lucid_sec_context ();
18773 return gss_krb5_export_lucid_sec_context ();
18778 if ac_fn_c_try_link "$LINENO"; then :
18779 eval "$as_ac_Lib=yes"
18781 eval "$as_ac_Lib=no"
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18787 eval ac_res=\$$as_ac_Lib
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18789 $as_echo "$ac_res" >&6; }
18790 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18792 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
18796 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
18798 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
18799 if eval \${$as_ac_Lib+:} false; then :
18800 $as_echo_n "(cached) " >&6
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18813 char gss_krb5_set_allowable_enctypes ();
18817 return gss_krb5_set_allowable_enctypes ();
18822 if ac_fn_c_try_link "$LINENO"; then :
18823 eval "$as_ac_Lib=yes"
18825 eval "$as_ac_Lib=no"
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 eval ac_res=\$$as_ac_Lib
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18833 $as_echo "$ac_res" >&6; }
18834 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18836 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
18840 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
18842 $as_echo_n "checking for gss_krb5_ccache_name 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 gss_krb5_ccache_name ();
18861 return gss_krb5_ccache_name ();
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_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18884 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_free_lucid_sec_context" | $as_tr_sh`
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_free_lucid_sec_context in -l$gssapi_lib" >&5
18886 $as_echo_n "checking for gss_krb5_free_lucid_sec_context in -l$gssapi_lib... " >&6; }
18887 if eval \${$as_ac_Lib+:} false; then :
18888 $as_echo_n "(cached) " >&6
18890 ac_check_lib_save_LIBS=$LIBS
18891 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18895 /* Override any GCC internal prototype to avoid an error.
18896 Use char because int might match the return type of a GCC
18897 builtin and then its argument prototype would still apply. */
18901 char gss_krb5_free_lucid_sec_context ();
18905 return gss_krb5_free_lucid_sec_context ();
18910 if ac_fn_c_try_link "$LINENO"; then :
18911 eval "$as_ac_Lib=yes"
18913 eval "$as_ac_Lib=no"
18915 rm -f core conftest.err conftest.$ac_objext \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 eval ac_res=\$$as_ac_Lib
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18921 $as_echo "$ac_res" >&6; }
18922 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18924 $as_echo "#define HAVE_GSS_KRB5_FREE_LUCID_SEC_CONTEXT 1" >>confdefs.h
18929 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
18931 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
18932 if eval \${$as_ac_Lib+:} false; then :
18933 $as_echo_n "(cached) " >&6
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18940 /* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18946 char krb5_get_error_message ();
18950 return krb5_get_error_message ();
18955 if ac_fn_c_try_link "$LINENO"; then :
18956 eval "$as_ac_Lib=yes"
18958 eval "$as_ac_Lib=no"
18960 rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18964 eval ac_res=\$$as_ac_Lib
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18966 $as_echo "$ac_res" >&6; }
18967 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18969 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18974 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
18976 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
18977 if eval \${$as_ac_Lib+:} false; then :
18978 $as_echo_n "(cached) " >&6
18980 ac_check_lib_save_LIBS=$LIBS
18981 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18985 /* Override any GCC internal prototype to avoid an error.
18986 Use char because int might match the return type of a GCC
18987 builtin and then its argument prototype would still apply. */
18991 char krb5_get_init_creds_opt_set_addressless ();
18995 return krb5_get_init_creds_opt_set_addressless ();
19000 if ac_fn_c_try_link "$LINENO"; then :
19001 eval "$as_ac_Lib=yes"
19003 eval "$as_ac_Lib=no"
19005 rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext conftest.$ac_ext
19007 LIBS=$ac_check_lib_save_LIBS
19009 eval ac_res=\$$as_ac_Lib
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19011 $as_echo "$ac_res" >&6; }
19012 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19014 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
19019 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
19021 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
19036 if test "$enable_tirpc" = no; then
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
19039 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
19040 if ${ac_cv_lib_rpcsecgss_authgss_create_default+:} false; then :
19041 $as_echo_n "(cached) " >&6
19043 ac_check_lib_save_LIBS=$LIBS
19044 LIBS="-lrpcsecgss $LIBS"
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19048 /* Override any GCC internal prototype to avoid an error.
19049 Use char because int might match the return type of a GCC
19050 builtin and then its argument prototype would still apply. */
19054 char authgss_create_default ();
19058 return authgss_create_default ();
19063 if ac_fn_c_try_link "$LINENO"; then :
19064 ac_cv_lib_rpcsecgss_authgss_create_default=yes
19066 ac_cv_lib_rpcsecgss_authgss_create_default=no
19068 rm -f core conftest.err conftest.$ac_objext \
19069 conftest$ac_exeext conftest.$ac_ext
19070 LIBS=$ac_check_lib_save_LIBS
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
19073 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
19074 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = xyes; then :
19077 as_fn_error $? "librpcsecgss not found." "$LINENO" 5
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
19082 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
19083 if ${ac_cv_lib_rpcsecgss_authgss_set_debug_level+:} false; then :
19084 $as_echo_n "(cached) " >&6
19086 ac_check_lib_save_LIBS=$LIBS
19087 LIBS="-lrpcsecgss $LIBS"
19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h. */
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19097 char authgss_set_debug_level ();
19101 return authgss_set_debug_level ();
19106 if ac_fn_c_try_link "$LINENO"; then :
19107 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
19109 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
19111 rm -f core conftest.err conftest.$ac_objext \
19112 conftest$ac_exeext conftest.$ac_ext
19113 LIBS=$ac_check_lib_save_LIBS
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
19116 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
19117 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = xyes; then :
19119 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
19125 $as_echo "#define HAVE_AUTHGSS_FREE_PRIVATE_DATA 1" >>confdefs.h
19131 if test "$enable_gss" = yes; then
19139 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19140 if test -n "$ac_tool_prefix"; then
19141 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19142 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19144 $as_echo_n "checking for $ac_word... " >&6; }
19145 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19146 $as_echo_n "(cached) " >&6
19148 case $PKG_CONFIG in
19150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19154 for as_dir in $PATH
19157 test -z "$as_dir" && as_dir=.
19158 for ac_exec_ext in '' $ac_executable_extensions; do
19159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19172 if test -n "$PKG_CONFIG"; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19174 $as_echo "$PKG_CONFIG" >&6; }
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19182 if test -z "$ac_cv_path_PKG_CONFIG"; then
19183 ac_pt_PKG_CONFIG=$PKG_CONFIG
19184 # Extract the first word of "pkg-config", so it can be a program name with args.
19185 set dummy pkg-config; ac_word=$2
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19187 $as_echo_n "checking for $ac_word... " >&6; }
19188 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19189 $as_echo_n "(cached) " >&6
19191 case $ac_pt_PKG_CONFIG in
19193 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19197 for as_dir in $PATH
19200 test -z "$as_dir" && as_dir=.
19201 for ac_exec_ext in '' $ac_executable_extensions; do
19202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19203 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19214 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19215 if test -n "$ac_pt_PKG_CONFIG"; then
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19217 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220 $as_echo "no" >&6; }
19223 if test "x$ac_pt_PKG_CONFIG" = x; then
19226 case $cross_compiling:$ac_tool_warned in
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19230 ac_tool_warned=yes ;;
19232 PKG_CONFIG=$ac_pt_PKG_CONFIG
19235 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19239 if test -n "$PKG_CONFIG"; then
19240 _pkg_min_version=0.9.0
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19242 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19243 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245 $as_echo "yes" >&6; }
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248 $as_echo "no" >&6; }
19255 # Check whether --with-gssglue was given.
19256 if test "${with_gssglue+set}" = set; then :
19257 withval=$with_gssglue;
19260 if test x"$with_gssglue" = x"yes"; then
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
19264 $as_echo_n "checking for GSSGLUE... " >&6; }
19266 if test -n "$GSSGLUE_CFLAGS"; then
19267 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
19268 elif test -n "$PKG_CONFIG"; then
19269 if test -n "$PKG_CONFIG" && \
19270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
19271 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
19273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274 test $ac_status = 0; }; then
19275 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.3" 2>/dev/null`
19276 test "x$?" != "x0" && pkg_failed=yes
19283 if test -n "$GSSGLUE_LIBS"; then
19284 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
19285 elif test -n "$PKG_CONFIG"; then
19286 if test -n "$PKG_CONFIG" && \
19287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
19288 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
19290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291 test $ac_status = 0; }; then
19292 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.3" 2>/dev/null`
19293 test "x$?" != "x0" && pkg_failed=yes
19303 if test $pkg_failed = yes; then
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19308 _pkg_short_errors_supported=yes
19310 _pkg_short_errors_supported=no
19312 if test $_pkg_short_errors_supported = yes; then
19313 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgssglue >= 0.3" 2>&1`
19315 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgssglue >= 0.3" 2>&1`
19317 # Put the nasty error message in config.log where it belongs
19318 echo "$GSSGLUE_PKG_ERRORS" >&5
19320 as_fn_error $? "Package requirements (libgssglue >= 0.3) were not met:
19322 $GSSGLUE_PKG_ERRORS
19324 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19325 installed software in a non-standard prefix.
19327 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19328 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19329 See the pkg-config man page for more details." "$LINENO" 5
19330 elif test $pkg_failed = untried; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19335 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19336 is in your PATH or set the PKG_CONFIG environment variable to the full
19337 path to pkg-config.
19339 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19340 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19341 See the pkg-config man page for more details.
19343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19344 See \`config.log' for more details" "$LINENO" 5; }
19346 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
19347 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19349 $as_echo "yes" >&6; }
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_set_allowable_enctypes in -lgssglue" >&5
19353 $as_echo_n "checking for gss_set_allowable_enctypes in -lgssglue... " >&6; }
19354 if ${ac_cv_lib_gssglue_gss_set_allowable_enctypes+:} false; then :
19355 $as_echo_n "(cached) " >&6
19357 ac_check_lib_save_LIBS=$LIBS
19358 LIBS="-lgssglue $LIBS"
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19362 /* Override any GCC internal prototype to avoid an error.
19363 Use char because int might match the return type of a GCC
19364 builtin and then its argument prototype would still apply. */
19368 char gss_set_allowable_enctypes ();
19372 return gss_set_allowable_enctypes ();
19377 if ac_fn_c_try_link "$LINENO"; then :
19378 ac_cv_lib_gssglue_gss_set_allowable_enctypes=yes
19380 ac_cv_lib_gssglue_gss_set_allowable_enctypes=no
19382 rm -f core conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssglue_gss_set_allowable_enctypes" >&5
19387 $as_echo "$ac_cv_lib_gssglue_gss_set_allowable_enctypes" >&6; }
19388 if test "x$ac_cv_lib_gssglue_gss_set_allowable_enctypes" = xyes; then :
19389 cat >>confdefs.h <<_ACEOF
19390 #define HAVE_LIBGSSGLUE 1
19393 LIBS="-lgssglue $LIBS"
19399 if test "$enable_tirpc" = no; then
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
19403 $as_echo_n "checking for RPCSECGSS... " >&6; }
19405 if test -n "$RPCSECGSS_CFLAGS"; then
19406 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
19407 elif test -n "$PKG_CONFIG"; then
19408 if test -n "$PKG_CONFIG" && \
19409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
19410 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19413 test $ac_status = 0; }; then
19414 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
19415 test "x$?" != "x0" && pkg_failed=yes
19422 if test -n "$RPCSECGSS_LIBS"; then
19423 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
19424 elif test -n "$PKG_CONFIG"; then
19425 if test -n "$PKG_CONFIG" && \
19426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
19427 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430 test $ac_status = 0; }; then
19431 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
19432 test "x$?" != "x0" && pkg_failed=yes
19442 if test $pkg_failed = yes; then
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19446 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19447 _pkg_short_errors_supported=yes
19449 _pkg_short_errors_supported=no
19451 if test $_pkg_short_errors_supported = yes; then
19452 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librpcsecgss >= 0.16" 2>&1`
19454 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librpcsecgss >= 0.16" 2>&1`
19456 # Put the nasty error message in config.log where it belongs
19457 echo "$RPCSECGSS_PKG_ERRORS" >&5
19459 as_fn_error $? "Package requirements (librpcsecgss >= 0.16) were not met:
19461 $RPCSECGSS_PKG_ERRORS
19463 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19464 installed software in a non-standard prefix.
19466 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19467 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19468 See the pkg-config man page for more details." "$LINENO" 5
19469 elif test $pkg_failed = untried; then
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19474 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19475 is in your PATH or set the PKG_CONFIG environment variable to the full
19476 path to pkg-config.
19478 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19479 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19480 See the pkg-config man page for more details.
19482 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19483 See \`config.log' for more details" "$LINENO" 5; }
19485 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
19486 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19488 $as_echo "yes" >&6; }
19494 if test x"$GSSGLUE_LIBS" != x""; then
19495 GSSAPI_CFLAGS=$GSSGLUE_CFLAGS
19496 GSSAPI_LIBS=$GSSGLUE_LIBS
19498 GSSAPI_CFLAGS=$GSSKRB_CFLAGS
19499 GSSAPI_LIBS=$GSSKRB_LIBS
19508 if test "$enable_ipv6" = yes; then
19510 if test "$enable_tirpc" = no; then
19511 as_fn_error $? "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
19514 for ac_func in getifaddrs getnameinfo
19516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19519 cat >>confdefs.h <<_ACEOF
19520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19524 as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindresvport_sa in -ltirpc" >&5
19530 $as_echo_n "checking for bindresvport_sa in -ltirpc... " >&6; }
19531 if ${ac_cv_lib_tirpc_bindresvport_sa+:} false; then :
19532 $as_echo_n "(cached) " >&6
19534 ac_check_lib_save_LIBS=$LIBS
19535 LIBS="-ltirpc $LIBS"
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19539 /* Override any GCC internal prototype to avoid an error.
19540 Use char because int might match the return type of a GCC
19541 builtin and then its argument prototype would still apply. */
19545 char bindresvport_sa ();
19549 return bindresvport_sa ();
19554 if ac_fn_c_try_link "$LINENO"; then :
19555 ac_cv_lib_tirpc_bindresvport_sa=yes
19557 ac_cv_lib_tirpc_bindresvport_sa=no
19559 rm -f core conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19561 LIBS=$ac_check_lib_save_LIBS
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_bindresvport_sa" >&5
19564 $as_echo "$ac_cv_lib_tirpc_bindresvport_sa" >&6; }
19565 if test "x$ac_cv_lib_tirpc_bindresvport_sa" = xyes; then :
19568 as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19575 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
19576 malloc.h memory.h netdb.h netinet/in.h paths.h \
19577 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
19578 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
19579 syslog.h unistd.h com_err.h et/com_err.h \
19580 ifaddrs.h nfs-plugin.h libio.h
19582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19585 cat >>confdefs.h <<_ACEOF
19586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19595 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19596 if ${ac_cv_c_const+:} false; then :
19597 $as_echo_n "(cached) " >&6
19599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600 /* end confdefs.h. */
19606 #ifndef __cplusplus
19607 /* Ultrix mips cc rejects this sort of thing. */
19608 typedef int charset[2];
19609 const charset cs = { 0, 0 };
19610 /* SunOS 4.1.1 cc rejects this. */
19611 char const *const *pcpcc;
19613 /* NEC SVR4.0.2 mips cc rejects this. */
19614 struct point {int x, y;};
19615 static struct point const zero = {0,0};
19616 /* AIX XL C 1.02.0.0 rejects this.
19617 It does not let you subtract one const X* pointer from another in
19618 an arm of an if-expression whose if-part is not a constant
19620 const char *g = "string";
19621 pcpcc = &g + (g ? g-g : 0);
19622 /* HPUX 7.0 cc rejects these. */
19624 ppc = (char**) pcpcc;
19625 pcpcc = (char const *const *) ppc;
19626 { /* SCO 3.2v4 cc rejects this sort of thing. */
19629 char const *s = 0 ? (char *) 0 : (char const *) 0;
19634 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19635 int x[] = {25, 17};
19636 const int *foo = &x[0];
19639 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19640 typedef const int *iptr;
19644 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19645 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19646 struct s { int j; const int *ap[3]; } bx;
19647 struct s *b = &bx; b->j = 5;
19649 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19650 const int foo = 10;
19651 if (!foo) return 0;
19653 return !cs[0] && !zero.x;
19660 if ac_fn_c_try_compile "$LINENO"; then :
19665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19668 $as_echo "$ac_cv_c_const" >&6; }
19669 if test $ac_cv_c_const = no; then
19671 $as_echo "#define const /**/" >>confdefs.h
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19676 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19677 if ${ac_cv_type_uid_t+:} false; then :
19678 $as_echo_n "(cached) " >&6
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19686 $EGREP "uid_t" >/dev/null 2>&1; then :
19687 ac_cv_type_uid_t=yes
19689 ac_cv_type_uid_t=no
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19695 $as_echo "$ac_cv_type_uid_t" >&6; }
19696 if test $ac_cv_type_uid_t = no; then
19698 $as_echo "#define uid_t int" >>confdefs.h
19701 $as_echo "#define gid_t int" >>confdefs.h
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19706 $as_echo_n "checking for inline... " >&6; }
19707 if ${ac_cv_c_inline+:} false; then :
19708 $as_echo_n "(cached) " >&6
19711 for ac_kw in inline __inline__ __inline; do
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19714 #ifndef __cplusplus
19716 static $ac_kw foo_t static_foo () {return 0; }
19717 $ac_kw foo_t foo () {return 0; }
19721 if ac_fn_c_try_compile "$LINENO"; then :
19722 ac_cv_c_inline=$ac_kw
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 test "$ac_cv_c_inline" != no && break
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19730 $as_echo "$ac_cv_c_inline" >&6; }
19732 case $ac_cv_c_inline in
19735 case $ac_cv_c_inline in
19737 *) ac_val=$ac_cv_c_inline;;
19739 cat >>confdefs.h <<_ACEOF
19740 #ifndef __cplusplus
19741 #define inline $ac_val
19747 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19748 if test "x$ac_cv_type_off_t" = xyes; then :
19752 cat >>confdefs.h <<_ACEOF
19753 #define off_t long int
19758 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19759 if test "x$ac_cv_type_pid_t" = xyes; then :
19763 cat >>confdefs.h <<_ACEOF
19769 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19770 if test "x$ac_cv_type_size_t" = xyes; then :
19774 cat >>confdefs.h <<_ACEOF
19775 #define size_t unsigned int
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19781 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19782 if ${ac_cv_header_time+:} false; then :
19783 $as_echo_n "(cached) " >&6
19785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19787 #include <sys/types.h>
19788 #include <sys/time.h>
19794 if ((struct tm *) 0)
19800 if ac_fn_c_try_compile "$LINENO"; then :
19801 ac_cv_header_time=yes
19803 ac_cv_header_time=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19808 $as_echo "$ac_cv_header_time" >&6; }
19809 if test $ac_cv_header_time = yes; then
19811 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19816 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19817 if ${ac_cv_struct_tm+:} false; then :
19818 $as_echo_n "(cached) " >&6
19820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19822 #include <sys/types.h>
19829 int *p = &tm.tm_sec;
19835 if ac_fn_c_try_compile "$LINENO"; then :
19836 ac_cv_struct_tm=time.h
19838 ac_cv_struct_tm=sys/time.h
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19843 $as_echo "$ac_cv_struct_tm" >&6; }
19844 if test $ac_cv_struct_tm = sys/time.h; then
19846 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19851 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19852 # for constant arguments. Useless!
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19854 $as_echo_n "checking for working alloca.h... " >&6; }
19855 if ${ac_cv_working_alloca_h+:} false; then :
19856 $as_echo_n "(cached) " >&6
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19860 #include <alloca.h>
19864 char *p = (char *) alloca (2 * sizeof (int));
19870 if ac_fn_c_try_link "$LINENO"; then :
19871 ac_cv_working_alloca_h=yes
19873 ac_cv_working_alloca_h=no
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19879 $as_echo "$ac_cv_working_alloca_h" >&6; }
19880 if test $ac_cv_working_alloca_h = yes; then
19882 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19887 $as_echo_n "checking for alloca... " >&6; }
19888 if ${ac_cv_func_alloca_works+:} false; then :
19889 $as_echo_n "(cached) " >&6
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19894 # define alloca __builtin_alloca
19897 # include <malloc.h>
19898 # define alloca _alloca
19900 # ifdef HAVE_ALLOCA_H
19901 # include <alloca.h>
19906 # ifndef alloca /* predefined by HP cc +Olibcalls */
19907 void *alloca (size_t);
19917 char *p = (char *) alloca (1);
19923 if ac_fn_c_try_link "$LINENO"; then :
19924 ac_cv_func_alloca_works=yes
19926 ac_cv_func_alloca_works=no
19928 rm -f core conftest.err conftest.$ac_objext \
19929 conftest$ac_exeext conftest.$ac_ext
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19932 $as_echo "$ac_cv_func_alloca_works" >&6; }
19934 if test $ac_cv_func_alloca_works = yes; then
19936 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19939 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19940 # that cause trouble. Some versions do not even contain alloca or
19941 # contain a buggy version. If you still want to use their alloca,
19942 # use ar to extract alloca.o from them instead of compiling alloca.c.
19944 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19946 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19950 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19951 if ${ac_cv_os_cray+:} false; then :
19952 $as_echo_n "(cached) " >&6
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19956 #if defined CRAY && ! defined CRAY2
19963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19964 $EGREP "webecray" >/dev/null 2>&1; then :
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19973 $as_echo "$ac_cv_os_cray" >&6; }
19974 if test $ac_cv_os_cray = yes; then
19975 for ac_func in _getb67 GETB67 getb67; do
19976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19980 cat >>confdefs.h <<_ACEOF
19981 #define CRAY_STACKSEG_END $ac_func
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19991 $as_echo_n "checking stack direction for C alloca... " >&6; }
19992 if ${ac_cv_c_stack_direction+:} false; then :
19993 $as_echo_n "(cached) " >&6
19995 if test "$cross_compiling" = yes; then :
19996 ac_cv_c_stack_direction=0
19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h. */
20000 $ac_includes_default
20002 find_stack_direction (int *addr, int depth)
20004 int dir, dummy = 0;
20007 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
20008 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
20009 return dir + dummy;
20013 main (int argc, char **argv)
20015 return find_stack_direction (0, argc + !argv + 20) < 0;
20018 if ac_fn_c_try_run "$LINENO"; then :
20019 ac_cv_c_stack_direction=1
20021 ac_cv_c_stack_direction=-1
20023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20024 conftest.$ac_objext conftest.beam conftest.$ac_ext
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20029 $as_echo "$ac_cv_c_stack_direction" >&6; }
20030 cat >>confdefs.h <<_ACEOF
20031 #define STACK_DIRECTION $ac_cv_c_stack_direction
20037 ac_header_dirent=no
20038 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20039 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20041 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20042 if eval \${$as_ac_Header+:} false; then :
20043 $as_echo_n "(cached) " >&6
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20047 #include <sys/types.h>
20059 if ac_fn_c_try_compile "$LINENO"; then :
20060 eval "$as_ac_Header=yes"
20062 eval "$as_ac_Header=no"
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066 eval ac_res=\$$as_ac_Header
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20068 $as_echo "$ac_res" >&6; }
20069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20070 cat >>confdefs.h <<_ACEOF
20071 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20074 ac_header_dirent=$ac_hdr; break
20078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20079 if test $ac_header_dirent = dirent.h; then
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20081 $as_echo_n "checking for library containing opendir... " >&6; }
20082 if ${ac_cv_search_opendir+:} false; then :
20083 $as_echo_n "(cached) " >&6
20085 ac_func_search_save_LIBS=$LIBS
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h. */
20089 /* Override any GCC internal prototype to avoid an error.
20090 Use char because int might match the return type of a GCC
20091 builtin and then its argument prototype would still apply. */
20104 for ac_lib in '' dir; do
20105 if test -z "$ac_lib"; then
20106 ac_res="none required"
20109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20111 if ac_fn_c_try_link "$LINENO"; then :
20112 ac_cv_search_opendir=$ac_res
20114 rm -f core conftest.err conftest.$ac_objext \
20116 if ${ac_cv_search_opendir+:} false; then :
20120 if ${ac_cv_search_opendir+:} false; then :
20123 ac_cv_search_opendir=no
20125 rm conftest.$ac_ext
20126 LIBS=$ac_func_search_save_LIBS
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20129 $as_echo "$ac_cv_search_opendir" >&6; }
20130 ac_res=$ac_cv_search_opendir
20131 if test "$ac_res" != no; then :
20132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20138 $as_echo_n "checking for library containing opendir... " >&6; }
20139 if ${ac_cv_search_opendir+:} false; then :
20140 $as_echo_n "(cached) " >&6
20142 ac_func_search_save_LIBS=$LIBS
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20161 for ac_lib in '' x; do
20162 if test -z "$ac_lib"; then
20163 ac_res="none required"
20166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20168 if ac_fn_c_try_link "$LINENO"; then :
20169 ac_cv_search_opendir=$ac_res
20171 rm -f core conftest.err conftest.$ac_objext \
20173 if ${ac_cv_search_opendir+:} false; then :
20177 if ${ac_cv_search_opendir+:} false; then :
20180 ac_cv_search_opendir=no
20182 rm conftest.$ac_ext
20183 LIBS=$ac_func_search_save_LIBS
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20186 $as_echo "$ac_cv_search_opendir" >&6; }
20187 ac_res=$ac_cv_search_opendir
20188 if test "$ac_res" != no; then :
20189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
20196 $as_echo_n "checking whether closedir returns void... " >&6; }
20197 if ${ac_cv_func_closedir_void+:} false; then :
20198 $as_echo_n "(cached) " >&6
20200 if test "$cross_compiling" = yes; then :
20201 ac_cv_func_closedir_void=yes
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20205 $ac_includes_default
20206 #include <$ac_header_dirent>
20207 #ifndef __cplusplus
20214 return closedir (opendir (".")) != 0;
20219 if ac_fn_c_try_run "$LINENO"; then :
20220 ac_cv_func_closedir_void=no
20222 ac_cv_func_closedir_void=yes
20224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20225 conftest.$ac_objext conftest.beam conftest.$ac_ext
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
20230 $as_echo "$ac_cv_func_closedir_void" >&6; }
20231 if test $ac_cv_func_closedir_void = yes; then
20233 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20238 $as_echo_n "checking for error_at_line... " >&6; }
20239 if ${ac_cv_lib_error_at_line+:} false; then :
20240 $as_echo_n "(cached) " >&6
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20248 error_at_line (0, 0, "", 0, "an error occurred");
20253 if ac_fn_c_try_link "$LINENO"; then :
20254 ac_cv_lib_error_at_line=yes
20256 ac_cv_lib_error_at_line=no
20258 rm -f core conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext conftest.$ac_ext
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20262 $as_echo "$ac_cv_lib_error_at_line" >&6; }
20263 if test $ac_cv_lib_error_at_line = no; then
20264 case " $LIBOBJS " in
20265 *" error.$ac_objext "* ) ;;
20266 *) LIBOBJS="$LIBOBJS error.$ac_objext"
20272 for ac_header in vfork.h
20274 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20275 if test "x$ac_cv_header_vfork_h" = xyes; then :
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_VFORK_H 1
20284 for ac_func in fork vfork
20286 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20287 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20288 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20289 cat >>confdefs.h <<_ACEOF
20290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20296 if test "x$ac_cv_func_fork" = xyes; then
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20298 $as_echo_n "checking for working fork... " >&6; }
20299 if ${ac_cv_func_fork_works+:} false; then :
20300 $as_echo_n "(cached) " >&6
20302 if test "$cross_compiling" = yes; then :
20303 ac_cv_func_fork_works=cross
20305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h. */
20307 $ac_includes_default
20312 /* By Ruediger Kuhlmann. */
20313 return fork () < 0;
20319 if ac_fn_c_try_run "$LINENO"; then :
20320 ac_cv_func_fork_works=yes
20322 ac_cv_func_fork_works=no
20324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20325 conftest.$ac_objext conftest.beam conftest.$ac_ext
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20330 $as_echo "$ac_cv_func_fork_works" >&6; }
20333 ac_cv_func_fork_works=$ac_cv_func_fork
20335 if test "x$ac_cv_func_fork_works" = xcross; then
20337 *-*-amigaos* | *-*-msdosdjgpp*)
20338 # Override, as these systems have only a dummy fork() stub
20339 ac_cv_func_fork_works=no
20342 ac_cv_func_fork_works=yes
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20346 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20348 ac_cv_func_vfork_works=$ac_cv_func_vfork
20349 if test "x$ac_cv_func_vfork" = xyes; then
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20351 $as_echo_n "checking for working vfork... " >&6; }
20352 if ${ac_cv_func_vfork_works+:} false; then :
20353 $as_echo_n "(cached) " >&6
20355 if test "$cross_compiling" = yes; then :
20356 ac_cv_func_vfork_works=cross
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h. */
20360 /* Thanks to Paul Eggert for this test. */
20361 $ac_includes_default
20362 #include <sys/wait.h>
20363 #ifdef HAVE_VFORK_H
20364 # include <vfork.h>
20366 /* On some sparc systems, changes by the child to local and incoming
20367 argument registers are propagated back to the parent. The compiler
20368 is told about this with #include <vfork.h>, but some compilers
20369 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20370 static variable whose address is put into a register that is
20371 clobbered by the vfork. */
20374 sparc_address_test (int arg)
20376 sparc_address_test (arg) int arg;
20379 static pid_t child;
20397 pid_t parent = getpid ();
20400 sparc_address_test (0);
20405 /* Here is another test for sparc vfork register problems. This
20406 test uses lots of local variables, at least as many local
20407 variables as main has allocated so far including compiler
20408 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20409 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20410 reuse the register of parent for one of the local variables,
20411 since it will think that parent can't possibly be used any more
20412 in this routine. Assigning to the local variable will thus
20413 munge parent in the parent process. */
20415 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20416 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20417 /* Convince the compiler that p..p7 are live; otherwise, it might
20418 use the same hardware register for all 8 local variables. */
20419 if (p != p1 || p != p2 || p != p3 || p != p4
20420 || p != p5 || p != p6 || p != p7)
20423 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20424 from child file descriptors. If the child closes a descriptor
20425 before it execs or exits, this munges the parent's descriptor
20426 as well. Test for this by closing stdout in the child. */
20427 _exit(close(fileno(stdout)) != 0);
20432 while (wait(&status) != child)
20435 /* Was there some problem with vforking? */
20438 /* Did the child fail? (This shouldn't happen.) */
20441 /* Did the vfork/compiler bug occur? */
20442 || parent != getpid()
20444 /* Did the file descriptor bug occur? */
20445 || fstat(fileno(stdout), &st) != 0
20450 if ac_fn_c_try_run "$LINENO"; then :
20451 ac_cv_func_vfork_works=yes
20453 ac_cv_func_vfork_works=no
20455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20456 conftest.$ac_objext conftest.beam conftest.$ac_ext
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20461 $as_echo "$ac_cv_func_vfork_works" >&6; }
20464 if test "x$ac_cv_func_fork_works" = xcross; then
20465 ac_cv_func_vfork_works=$ac_cv_func_vfork
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20467 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20470 if test "x$ac_cv_func_vfork_works" = xyes; then
20472 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20476 $as_echo "#define vfork fork" >>confdefs.h
20479 if test "x$ac_cv_func_fork_works" = xyes; then
20481 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20486 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20487 if ${ac_cv_type_getgroups+:} false; then :
20488 $as_echo_n "(cached) " >&6
20490 if test "$cross_compiling" = yes; then :
20491 ac_cv_type_getgroups=cross
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20495 /* Thanks to Mike Rendell for this test. */
20496 $ac_includes_default
20499 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20504 gid_t gidset[NGID];
20506 union { gid_t gval; long int lval; } val;
20509 for (i = 0; i < NGID; i++)
20510 gidset[i] = val.gval;
20511 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20513 /* Exit non-zero if getgroups seems to require an array of ints. This
20514 happens when gid_t is short int but getgroups modifies an array
20516 return n > 0 && gidset[n] != val.gval;
20519 if ac_fn_c_try_run "$LINENO"; then :
20520 ac_cv_type_getgroups=gid_t
20522 ac_cv_type_getgroups=int
20524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20525 conftest.$ac_objext conftest.beam conftest.$ac_ext
20528 if test $ac_cv_type_getgroups = cross; then
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531 #include <unistd.h>
20534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20535 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20536 ac_cv_type_getgroups=gid_t
20538 ac_cv_type_getgroups=int
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20545 $as_echo "$ac_cv_type_getgroups" >&6; }
20547 cat >>confdefs.h <<_ACEOF
20548 #define GETGROUPS_T $ac_cv_type_getgroups
20552 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20553 if test "x$ac_cv_func_getgroups" = xyes; then :
20558 # If we don't yet have getgroups, see if it's in -lbsd.
20559 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
20561 if test $ac_cv_func_getgroups = no; then
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
20563 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
20564 if ${ac_cv_lib_bsd_getgroups+:} false; then :
20565 $as_echo_n "(cached) " >&6
20567 ac_check_lib_save_LIBS=$LIBS
20569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h. */
20572 /* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20582 return getgroups ();
20587 if ac_fn_c_try_link "$LINENO"; then :
20588 ac_cv_lib_bsd_getgroups=yes
20590 ac_cv_lib_bsd_getgroups=no
20592 rm -f core conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
20597 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
20598 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
20599 GETGROUPS_LIB=-lbsd
20604 # Run the program to test the functionality of the system-supplied
20605 # getgroups function only if there is such a function.
20606 if test $ac_cv_func_getgroups = yes; then
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
20608 $as_echo_n "checking for working getgroups... " >&6; }
20609 if ${ac_cv_func_getgroups_works+:} false; then :
20610 $as_echo_n "(cached) " >&6
20612 if test "$cross_compiling" = yes; then :
20613 ac_cv_func_getgroups_works=no
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20617 $ac_includes_default
20621 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
20622 return getgroups (0, 0) == -1;
20627 if ac_fn_c_try_run "$LINENO"; then :
20628 ac_cv_func_getgroups_works=yes
20630 ac_cv_func_getgroups_works=no
20632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20633 conftest.$ac_objext conftest.beam conftest.$ac_ext
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
20639 $as_echo "$ac_cv_func_getgroups_works" >&6; }
20641 ac_cv_func_getgroups_works=no
20643 if test $ac_cv_func_getgroups_works = yes; then
20645 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
20650 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
20651 # -lseq on Dynix/PTX, -lgen on Unixware.
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
20653 $as_echo_n "checking for library containing getmntent... " >&6; }
20654 if ${ac_cv_search_getmntent+:} false; then :
20655 $as_echo_n "(cached) " >&6
20657 ac_func_search_save_LIBS=$LIBS
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20661 /* Override any GCC internal prototype to avoid an error.
20662 Use char because int might match the return type of a GCC
20663 builtin and then its argument prototype would still apply. */
20671 return getmntent ();
20676 for ac_lib in '' sun seq gen; do
20677 if test -z "$ac_lib"; then
20678 ac_res="none required"
20681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20683 if ac_fn_c_try_link "$LINENO"; then :
20684 ac_cv_search_getmntent=$ac_res
20686 rm -f core conftest.err conftest.$ac_objext \
20688 if ${ac_cv_search_getmntent+:} false; then :
20692 if ${ac_cv_search_getmntent+:} false; then :
20695 ac_cv_search_getmntent=no
20697 rm conftest.$ac_ext
20698 LIBS=$ac_func_search_save_LIBS
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
20701 $as_echo "$ac_cv_search_getmntent" >&6; }
20702 ac_res=$ac_cv_search_getmntent
20703 if test "$ac_res" != no; then :
20704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20705 ac_cv_func_getmntent=yes
20707 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
20710 ac_cv_func_getmntent=no
20714 if test $ac_cv_c_compiler_gnu = yes; then
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20716 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20717 if ${ac_cv_prog_gcc_traditional+:} false; then :
20718 $as_echo_n "(cached) " >&6
20720 ac_pattern="Autoconf.*'x'"
20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20727 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20728 ac_cv_prog_gcc_traditional=yes
20730 ac_cv_prog_gcc_traditional=no
20735 if test $ac_cv_prog_gcc_traditional = no; then
20736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20738 #include <termio.h>
20741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20742 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20743 ac_cv_prog_gcc_traditional=yes
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20750 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20751 if test $ac_cv_prog_gcc_traditional = yes; then
20752 CC="$CC -traditional"
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20757 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20758 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20759 $as_echo_n "(cached) " >&6
20761 rm -f conftest.sym conftest.file
20762 echo >conftest.file
20763 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20764 if test "$cross_compiling" = yes; then :
20765 ac_cv_func_lstat_dereferences_slashed_symlink=no
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h. */
20769 $ac_includes_default
20774 /* Linux will dereference the symlink and fail, as required by POSIX.
20775 That is better in the sense that it means we will not
20776 have to compile and use the lstat wrapper. */
20777 return lstat ("conftest.sym/", &sbuf) == 0;
20782 if ac_fn_c_try_run "$LINENO"; then :
20783 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20785 ac_cv_func_lstat_dereferences_slashed_symlink=no
20787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20788 conftest.$ac_objext conftest.beam conftest.$ac_ext
20792 # If the `ln -s' command failed, then we probably don't even
20793 # have an lstat function.
20794 ac_cv_func_lstat_dereferences_slashed_symlink=no
20796 rm -f conftest.sym conftest.file
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20800 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20802 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20804 cat >>confdefs.h <<_ACEOF
20805 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20809 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20810 case " $LIBOBJS " in
20811 *" lstat.$ac_objext "* ) ;;
20812 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
20819 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
20820 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
20821 $as_echo_n "(cached) " >&6
20823 if test "$cross_compiling" = yes; then :
20824 ac_cv_func_lstat_empty_string_bug=yes
20826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h. */
20828 $ac_includes_default
20833 return lstat ("", &sbuf) == 0;
20838 if ac_fn_c_try_run "$LINENO"; then :
20839 ac_cv_func_lstat_empty_string_bug=no
20841 ac_cv_func_lstat_empty_string_bug=yes
20843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20844 conftest.$ac_objext conftest.beam conftest.$ac_ext
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
20849 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
20850 if test $ac_cv_func_lstat_empty_string_bug = yes; then
20851 case " $LIBOBJS " in
20852 *" lstat.$ac_objext "* ) ;;
20853 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20858 cat >>confdefs.h <<_ACEOF
20859 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20865 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20866 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20867 $as_echo_n "(cached) " >&6
20869 rm -f conftest.sym conftest.file
20870 echo >conftest.file
20871 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20872 if test "$cross_compiling" = yes; then :
20873 ac_cv_func_lstat_dereferences_slashed_symlink=no
20875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h. */
20877 $ac_includes_default
20882 /* Linux will dereference the symlink and fail, as required by POSIX.
20883 That is better in the sense that it means we will not
20884 have to compile and use the lstat wrapper. */
20885 return lstat ("conftest.sym/", &sbuf) == 0;
20890 if ac_fn_c_try_run "$LINENO"; then :
20891 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20893 ac_cv_func_lstat_dereferences_slashed_symlink=no
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20896 conftest.$ac_objext conftest.beam conftest.$ac_ext
20900 # If the `ln -s' command failed, then we probably don't even
20901 # have an lstat function.
20902 ac_cv_func_lstat_dereferences_slashed_symlink=no
20904 rm -f conftest.sym conftest.file
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20908 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20910 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20912 cat >>confdefs.h <<_ACEOF
20913 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20917 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20918 case " $LIBOBJS " in
20919 *" lstat.$ac_objext "* ) ;;
20920 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
20927 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
20928 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
20929 $as_echo_n "(cached) " >&6
20931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932 /* end confdefs.h. */
20933 #include <sys/types.h>
20937 return makedev(0, 0);
20942 if ac_fn_c_try_link "$LINENO"; then :
20943 ac_cv_header_sys_types_h_makedev=yes
20945 ac_cv_header_sys_types_h_makedev=no
20947 rm -f core conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext conftest.$ac_ext
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
20952 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
20954 if test $ac_cv_header_sys_types_h_makedev = no; then
20955 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20956 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
20958 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20964 if test $ac_cv_header_sys_mkdev_h = no; then
20965 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20966 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
20968 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20978 $as_echo_n "checking for working memcmp... " >&6; }
20979 if ${ac_cv_func_memcmp_working+:} false; then :
20980 $as_echo_n "(cached) " >&6
20982 if test "$cross_compiling" = yes; then :
20983 ac_cv_func_memcmp_working=no
20985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986 /* end confdefs.h. */
20987 $ac_includes_default
20992 /* Some versions of memcmp are not 8-bit clean. */
20993 char c0 = '\100', c1 = '\200', c2 = '\201';
20994 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20997 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20998 or more and with at least one buffer not starting on a 4-byte boundary.
20999 William Lewis provided this test program. */
21004 for (i = 0; i < 4; i++)
21008 strcpy (a, "--------01111111");
21009 strcpy (b, "--------10000000");
21010 if (memcmp (a, b, 16) >= 0)
21020 if ac_fn_c_try_run "$LINENO"; then :
21021 ac_cv_func_memcmp_working=yes
21023 ac_cv_func_memcmp_working=no
21025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21026 conftest.$ac_objext conftest.beam conftest.$ac_ext
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21031 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21032 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21033 *" memcmp.$ac_objext "* ) ;;
21034 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21040 for ac_header in sys/select.h sys/socket.h
21042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21045 cat >>confdefs.h <<_ACEOF
21046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21054 $as_echo_n "checking types of arguments for select... " >&6; }
21055 if ${ac_cv_func_select_args+:} false; then :
21056 $as_echo_n "(cached) " >&6
21058 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21059 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21060 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h. */
21063 $ac_includes_default
21064 #ifdef HAVE_SYS_SELECT_H
21065 # include <sys/select.h>
21067 #ifdef HAVE_SYS_SOCKET_H
21068 # include <sys/socket.h>
21074 extern int select ($ac_arg1,
21075 $ac_arg234, $ac_arg234, $ac_arg234,
21081 if ac_fn_c_try_compile "$LINENO"; then :
21082 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 # Provide a safe default value.
21089 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21093 $as_echo "$ac_cv_func_select_args" >&6; }
21094 ac_save_IFS=$IFS; IFS=','
21095 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21099 cat >>confdefs.h <<_ACEOF
21100 #define SELECT_TYPE_ARG1 $1
21104 cat >>confdefs.h <<_ACEOF
21105 #define SELECT_TYPE_ARG234 ($2)
21109 cat >>confdefs.h <<_ACEOF
21110 #define SELECT_TYPE_ARG5 ($3)
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21116 $as_echo_n "checking return type of signal handlers... " >&6; }
21117 if ${ac_cv_type_signal+:} false; then :
21118 $as_echo_n "(cached) " >&6
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21122 #include <sys/types.h>
21123 #include <signal.h>
21128 return *(signal (0, 0)) (0) == 1;
21133 if ac_fn_c_try_compile "$LINENO"; then :
21134 ac_cv_type_signal=int
21136 ac_cv_type_signal=void
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21141 $as_echo "$ac_cv_type_signal" >&6; }
21143 cat >>confdefs.h <<_ACEOF
21144 #define RETSIGTYPE $ac_cv_type_signal
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
21149 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
21150 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
21151 $as_echo_n "(cached) " >&6
21153 if test "$cross_compiling" = yes; then :
21154 ac_cv_func_stat_empty_string_bug=yes
21156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h. */
21158 $ac_includes_default
21163 return stat ("", &sbuf) == 0;
21168 if ac_fn_c_try_run "$LINENO"; then :
21169 ac_cv_func_stat_empty_string_bug=no
21171 ac_cv_func_stat_empty_string_bug=yes
21173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21174 conftest.$ac_objext conftest.beam conftest.$ac_ext
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
21179 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
21180 if test $ac_cv_func_stat_empty_string_bug = yes; then
21181 case " $LIBOBJS " in
21182 *" stat.$ac_objext "* ) ;;
21183 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21188 cat >>confdefs.h <<_ACEOF
21189 #define HAVE_STAT_EMPTY_STRING_BUG 1
21194 for ac_func in vprintf
21196 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21197 if test "x$ac_cv_func_vprintf" = xyes; then :
21198 cat >>confdefs.h <<_ACEOF
21199 #define HAVE_VPRINTF 1
21202 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21203 if test "x$ac_cv_func__doprnt" = xyes; then :
21205 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21213 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
21214 gethostbyaddr gethostbyname gethostname getmntent \
21215 getnameinfo getrpcbyname getifaddrs \
21216 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
21217 ppoll realpath rmdir select socket strcasecmp strchr strdup \
21218 strerror strrchr strtol strtoul sigprocmask
21220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21221 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21222 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21223 cat >>confdefs.h <<_ACEOF
21224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21232 # The cast to long int works around a bug in the HP C Compiler
21233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21235 # This bug is HP SR number 8606223364.
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21237 $as_echo_n "checking size of short... " >&6; }
21238 if ${ac_cv_sizeof_short+:} false; then :
21239 $as_echo_n "(cached) " >&6
21241 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21244 if test "$ac_cv_type_short" = yes; then
21245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21247 as_fn_error 77 "cannot compute sizeof (short)
21248 See \`config.log' for more details" "$LINENO" 5; }
21250 ac_cv_sizeof_short=0
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21256 $as_echo "$ac_cv_sizeof_short" >&6; }
21260 cat >>confdefs.h <<_ACEOF
21261 #define SIZEOF_SHORT $ac_cv_sizeof_short
21265 # The cast to long int works around a bug in the HP C Compiler
21266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21268 # This bug is HP SR number 8606223364.
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21270 $as_echo_n "checking size of int... " >&6; }
21271 if ${ac_cv_sizeof_int+:} false; then :
21272 $as_echo_n "(cached) " >&6
21274 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21277 if test "$ac_cv_type_int" = yes; then
21278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21280 as_fn_error 77 "cannot compute sizeof (int)
21281 See \`config.log' for more details" "$LINENO" 5; }
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21289 $as_echo "$ac_cv_sizeof_int" >&6; }
21293 cat >>confdefs.h <<_ACEOF
21294 #define SIZEOF_INT $ac_cv_sizeof_int
21298 # The cast to long int works around a bug in the HP C Compiler
21299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21301 # This bug is HP SR number 8606223364.
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21303 $as_echo_n "checking size of long... " >&6; }
21304 if ${ac_cv_sizeof_long+:} false; then :
21305 $as_echo_n "(cached) " >&6
21307 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21310 if test "$ac_cv_type_long" = yes; then
21311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21313 as_fn_error 77 "cannot compute sizeof (long)
21314 See \`config.log' for more details" "$LINENO" 5; }
21316 ac_cv_sizeof_long=0
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21322 $as_echo "$ac_cv_sizeof_long" >&6; }
21326 cat >>confdefs.h <<_ACEOF
21327 #define SIZEOF_LONG $ac_cv_sizeof_long
21331 # The cast to long int works around a bug in the HP C Compiler
21332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21334 # This bug is HP SR number 8606223364.
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21336 $as_echo_n "checking size of size_t... " >&6; }
21337 if ${ac_cv_sizeof_size_t+:} false; then :
21338 $as_echo_n "(cached) " >&6
21340 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
21343 if test "$ac_cv_type_size_t" = yes; then
21344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21346 as_fn_error 77 "cannot compute sizeof (size_t)
21347 See \`config.log' for more details" "$LINENO" 5; }
21349 ac_cv_sizeof_size_t=0
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21355 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21359 cat >>confdefs.h <<_ACEOF
21360 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21364 # The cast to long int works around a bug in the HP C Compiler
21365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21367 # This bug is HP SR number 8606223364.
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
21369 $as_echo_n "checking size of socklen_t... " >&6; }
21370 if ${ac_cv_sizeof_socklen_t+:} false; then :
21371 $as_echo_n "(cached) " >&6
21373 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t" "$ac_includes_default"; then :
21376 if test "$ac_cv_type_socklen_t" = yes; then
21377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21379 as_fn_error 77 "cannot compute sizeof (socklen_t)
21380 See \`config.log' for more details" "$LINENO" 5; }
21382 ac_cv_sizeof_socklen_t=0
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
21388 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
21392 cat >>confdefs.h <<_ACEOF
21393 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
21400 cat >>confdefs.h <<_ACEOF
21401 #define NFS_STATEDIR "$statedir"
21405 cat >>confdefs.h <<_ACEOF
21406 #define NSM_DEFAULT_STATEDIR "$statdpath"
21410 if test "x$cross_compiling" = "xno"; then
21411 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
21412 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
21413 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
21414 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
21416 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
21417 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
21418 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
21419 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
21437 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
21439 AM_CFLAGS="$my_am_cflags"
21442 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
21443 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
21446 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile support/nsm/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile tools/mountstats/Makefile tools/nfs-iostat/Makefile utils/Makefile utils/blkmapd/Makefile utils/nfsdcltrack/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nfsidmap/Makefile utils/showmount/Makefile utils/statd/Makefile utils/osd_login/Makefile tests/Makefile tests/nsm_client/Makefile"
21448 cat >confcache <<\_ACEOF
21449 # This file is a shell script that caches the results of configure
21450 # tests run on this system so they can be shared between configure
21451 # scripts and configure runs, see configure's option --config-cache.
21452 # It is not useful on other systems. If it contains results you don't
21453 # want to keep, you may remove or edit it.
21455 # config.status only pays attention to the cache file if you give it
21456 # the --recheck option to rerun configure.
21458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21460 # following values.
21464 # The following way of writing the cache mishandles newlines in values,
21465 # but we know of no workaround that is simple, portable, and efficient.
21466 # So, we kill variables containing newlines.
21467 # Ultrix sh set writes to stderr and can't be redirected directly,
21468 # and sets the high bit in the cache file unless we assign to the vars.
21470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21471 eval ac_val=\$$ac_var
21475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21479 _ | IFS | as_nl) ;; #(
21480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21481 *) { eval $ac_var=; unset $ac_var;} ;;
21487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21488 *${as_nl}ac_space=\ *)
21489 # `set' does not quote correctly, so add quotes: double-quote
21490 # substitution turns \\\\ into \\, and sed turns \\ into \.
21493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21496 # `set' quotes correctly as required by POSIX, so do not add quotes.
21497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21511 if test -w "$cache_file"; then
21512 if test "x$cache_file" != "x/dev/null"; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21514 $as_echo "$as_me: updating cache $cache_file" >&6;}
21515 if test ! -f "$cache_file" || test -h "$cache_file"; then
21516 cat confcache >"$cache_file"
21518 case $cache_file in #(
21520 mv -f confcache "$cache_file"$$ &&
21521 mv -f "$cache_file"$$ "$cache_file" ;; #(
21523 mv -f confcache "$cache_file" ;;
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21529 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21535 # Let make expand exec_prefix.
21536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21538 DEFS=-DHAVE_CONFIG_H
21543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21544 # 1. Remove the extension, and $U if already installed.
21545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21548 # will be set to the directory where LIBOBJS objects are built.
21549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21552 LIBOBJS=$ac_libobjs
21554 LTLIBOBJS=$ac_ltlibobjs
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21558 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21559 if test -n "$am_sleep_pid"; then
21560 # Hide warnings about reused PIDs.
21561 wait $am_sleep_pid 2>/dev/null
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21564 $as_echo "done" >&6; }
21565 if test -n "$EXEEXT"; then
21567 am__EXEEXT_FALSE='#'
21569 am__EXEEXT_TRUE='#'
21573 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21574 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21577 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
21578 as_fn_error $? "conditional \"CONFIG_NFSV4\" was never defined.
21579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21581 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
21582 as_fn_error $? "conditional \"CONFIG_NFSV41\" was never defined.
21583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21585 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
21586 as_fn_error $? "conditional \"CONFIG_GSS\" was never defined.
21587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21589 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
21590 as_fn_error $? "conditional \"CONFIG_RPCGEN\" was never defined.
21591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21593 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
21594 as_fn_error $? "conditional \"CONFIG_MOUNT\" was never defined.
21595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21597 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
21598 as_fn_error $? "conditional \"CONFIG_IPV6\" was never defined.
21599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21601 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21602 as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21605 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21606 as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21609 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21610 as_fn_error $? "conditional \"AMDEP\" was never defined.
21611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21614 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21617 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21618 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21622 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21625 if test -z "${CONFIG_NFSDCLTRACK_TRUE}" && test -z "${CONFIG_NFSDCLTRACK_FALSE}"; then
21626 as_fn_error $? "conditional \"CONFIG_NFSDCLTRACK\" was never defined.
21627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21629 if test -z "${CONFIG_NFSIDMAP_TRUE}" && test -z "${CONFIG_NFSIDMAP_FALSE}"; then
21630 as_fn_error $? "conditional \"CONFIG_NFSIDMAP\" was never defined.
21631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21633 if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
21634 as_fn_error $? "conditional \"CONFIG_LIBMOUNT\" was never defined.
21635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21638 : "${CONFIG_STATUS=./config.status}"
21640 ac_clean_files_save=$ac_clean_files
21641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21647 # Generated by $as_me.
21648 # Run this file to recreate the current configuration.
21649 # Compiler output produced by configure, useful for debugging
21650 # configure, is in config.log if it exists.
21653 ac_cs_recheck=false
21656 SHELL=\${CONFIG_SHELL-$SHELL}
21659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21660 ## -------------------- ##
21661 ## M4sh Initialization. ##
21662 ## -------------------- ##
21664 # Be more Bourne compatible
21665 DUALCASE=1; export DUALCASE # for MKS sh
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21670 # is contrary to our usage. Disable this feature.
21671 alias -g '${1+"$@"}'='"$@"'
21672 setopt NO_GLOB_SUBST
21674 case `(set -o) 2>/dev/null` in #(
21686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21690 # Prefer a ksh shell builtin over an external printf program on Solaris,
21691 # but without wasting forks for bash or zsh.
21692 if test -z "$BASH_VERSION$ZSH_VERSION" \
21693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21694 as_echo='print -r --'
21695 as_echo_n='print -rn --'
21696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21697 as_echo='printf %s\n'
21698 as_echo_n='printf %s'
21700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21702 as_echo_n='/usr/ucb/echo -n'
21704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21705 as_echo_n_body='eval
21709 expr "X$arg" : "X\\(.*\\)$as_nl";
21710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21714 export as_echo_n_body
21715 as_echo_n='sh -c $as_echo_n_body as_echo'
21717 export as_echo_body
21718 as_echo='sh -c $as_echo_body as_echo'
21721 # The user is always right.
21722 if test "${PATH_SEPARATOR+set}" != set; then
21724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21732 # We need space, tab and new line, in precisely that order. Quoting is
21733 # there to prevent editors from complaining about space-tab.
21734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21735 # splitting by setting IFS to empty value.)
21738 # Find who we are. Look in the path if we contain no directory separator.
21741 *[\\/]* ) as_myself=$0 ;;
21742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21743 for as_dir in $PATH
21746 test -z "$as_dir" && as_dir=.
21747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21753 # We did not find ourselves, most probably we were run as `sh COMMAND'
21754 # in which case we are not to be found in the path.
21755 if test "x$as_myself" = x; then
21758 if test ! -f "$as_myself"; then
21759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21763 # Unset variables that we do not need and which cause bugs (e.g. in
21764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21765 # suppresses any "Segmentation fault" message there. '((' could
21766 # trigger a bug in pdksh 5.2.14.
21767 for as_var in BASH_ENV ENV MAIL MAILPATH
21768 do eval test x\${$as_var+set} = xset \
21769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21786 # ----------------------------------------
21787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21789 # script with STATUS, using 1 if that was 0.
21792 as_status=$1; test $as_status -eq 0 && as_status=1
21794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21797 $as_echo "$as_me: error: $2" >&2
21798 as_fn_exit $as_status
21802 # as_fn_set_status STATUS
21803 # -----------------------
21804 # Set $? to STATUS, without forking.
21805 as_fn_set_status ()
21808 } # as_fn_set_status
21810 # as_fn_exit STATUS
21811 # -----------------
21812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21816 as_fn_set_status $1
21822 # Portably unset VAR.
21825 { eval $1=; unset $1;}
21827 as_unset=as_fn_unset
21828 # as_fn_append VAR VALUE
21829 # ----------------------
21830 # Append the text in VALUE to the end of the definition contained in VAR. Take
21831 # advantage of any shell optimizations that allow amortized linear growth over
21832 # repeated appends, instead of the typical quadratic growth present in naive
21834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21835 eval 'as_fn_append ()
21846 # as_fn_arith ARG...
21847 # ------------------
21848 # Perform arithmetic evaluation on the ARGs, and store the result in the
21849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21850 # must be portable across $(()) and expr.
21851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21852 eval 'as_fn_arith ()
21859 as_val=`expr "$@" || test $? -eq 1`
21864 if expr a : '\(a\)' >/dev/null 2>&1 &&
21865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21872 as_basename=basename
21877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21883 as_me=`$as_basename -- "$0" ||
21884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21885 X"$0" : 'X\(//\)$' \| \
21886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21888 sed '/^.*\/\([^/][^/]*\)\/*$/{
21902 # Avoid depending upon Character Ranges.
21903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21906 as_cr_digits='0123456789'
21907 as_cr_alnum=$as_cr_Letters$as_cr_digits
21909 ECHO_C= ECHO_N= ECHO_T=
21910 case `echo -n x` in #(((((
21912 case `echo 'xy\c'` in
21913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21922 rm -f conf$$ conf$$.exe conf$$.file
21923 if test -d conf$$.dir; then
21924 rm -f conf$$.dir/conf$$.file
21927 mkdir conf$$.dir 2>/dev/null
21929 if (echo >conf$$.file) 2>/dev/null; then
21930 if ln -s conf$$.file conf$$ 2>/dev/null; then
21932 # ... but there are two gotchas:
21933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21935 # In both cases, we have to default to `cp -pR'.
21936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21938 elif ln conf$$.file conf$$ 2>/dev/null; then
21946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21947 rmdir conf$$.dir 2>/dev/null
21952 # Create "$as_dir" as a directory, including parents if necessary.
21957 -*) as_dir=./$as_dir;;
21959 test -d "$as_dir" || eval $as_mkdir_p || {
21963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21964 *) as_qdir=$as_dir;;
21966 as_dirs="'$as_qdir' $as_dirs"
21967 as_dir=`$as_dirname -- "$as_dir" ||
21968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969 X"$as_dir" : 'X\(//\)[^/]' \| \
21970 X"$as_dir" : 'X\(//\)$' \| \
21971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21972 $as_echo X"$as_dir" |
21973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21977 /^X\(\/\/\)[^/].*/{
21990 test -d "$as_dir" && break
21992 test -z "$as_dirs" || eval "mkdir $as_dirs"
21993 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21997 if mkdir -p . 2>/dev/null; then
21998 as_mkdir_p='mkdir -p "$as_dir"'
22000 test -d ./-p && rmdir ./-p
22005 # as_fn_executable_p FILE
22006 # -----------------------
22007 # Test if FILE is an executable regular file.
22008 as_fn_executable_p ()
22010 test -f "$1" && test -x "$1"
22011 } # as_fn_executable_p
22012 as_test_x='test -x'
22013 as_executable_p=as_fn_executable_p
22015 # Sed expression to map a string onto a valid CPP name.
22016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22018 # Sed expression to map a string onto a valid variable name.
22019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22023 ## ----------------------------------- ##
22024 ## Main body of $CONFIG_STATUS script. ##
22025 ## ----------------------------------- ##
22027 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22030 # Save the log message, to keep $0 and so on meaningful, and to
22031 # report actual input values of CONFIG_FILES etc. instead of their
22032 # values after options handling.
22034 This file was extended by linux nfs-utils $as_me 1.2.8, which was
22035 generated by GNU Autoconf 2.69. Invocation command line was
22037 CONFIG_FILES = $CONFIG_FILES
22038 CONFIG_HEADERS = $CONFIG_HEADERS
22039 CONFIG_LINKS = $CONFIG_LINKS
22040 CONFIG_COMMANDS = $CONFIG_COMMANDS
22043 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22048 case $ac_config_files in *"
22049 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22052 case $ac_config_headers in *"
22053 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22058 # Files that config.status was made for.
22059 config_files="$ac_config_files"
22060 config_headers="$ac_config_headers"
22061 config_commands="$ac_config_commands"
22065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22067 \`$as_me' instantiates files and other configuration actions
22068 from templates according to the current configuration. Unless the files
22069 and actions are specified as TAGs, all are instantiated by default.
22071 Usage: $0 [OPTION]... [TAG]...
22073 -h, --help print this help, then exit
22074 -V, --version print version number and configuration settings, then exit
22075 --config print configuration, then exit
22076 -q, --quiet, --silent
22077 do not print progress messages
22078 -d, --debug don't remove temporary files
22079 --recheck update $as_me by reconfiguring in the same conditions
22080 --file=FILE[:TEMPLATE]
22081 instantiate the configuration file FILE
22082 --header=FILE[:TEMPLATE]
22083 instantiate the configuration header FILE
22085 Configuration files:
22088 Configuration headers:
22091 Configuration commands:
22094 Report bugs to <linux-nfs@vger.kernel.org>."
22097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22098 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22100 linux nfs-utils config.status 1.2.8
22101 configured by $0, generated by GNU Autoconf 2.69,
22102 with options \\"\$ac_cs_config\\"
22104 Copyright (C) 2012 Free Software Foundation, Inc.
22105 This config.status script is free software; the Free Software Foundation
22106 gives unlimited permission to copy, distribute and modify it."
22113 test -n "\$AWK" || AWK=awk
22116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22117 # The default lists apply if the user does not specify any file.
22123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22140 # Handling of the options.
22141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22144 $as_echo "$ac_cs_version"; exit ;;
22145 --config | --confi | --conf | --con | --co | --c )
22146 $as_echo "$ac_cs_config"; exit ;;
22147 --debug | --debu | --deb | --de | --d | -d )
22149 --file | --fil | --fi | --f )
22152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22153 '') as_fn_error $? "missing file argument" ;;
22155 as_fn_append CONFIG_FILES " '$ac_optarg'"
22156 ac_need_defaults=false;;
22157 --header | --heade | --head | --hea )
22160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22162 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22163 ac_need_defaults=false;;
22165 # Conflict between --help and --header
22166 as_fn_error $? "ambiguous option: \`$1'
22167 Try \`$0 --help' for more information.";;
22168 --help | --hel | -h )
22169 $as_echo "$ac_cs_usage"; exit ;;
22170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22171 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22174 # This is an error.
22175 -*) as_fn_error $? "unrecognized option: \`$1'
22176 Try \`$0 --help' for more information." ;;
22178 *) as_fn_append ac_config_targets " $1"
22179 ac_need_defaults=false ;;
22185 ac_configure_extra_args=
22187 if $ac_cs_silent; then
22189 ac_configure_extra_args="$ac_configure_extra_args --silent"
22193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22194 if \$ac_cs_recheck; then
22195 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22198 CONFIG_SHELL='$SHELL'
22199 export CONFIG_SHELL
22204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22209 ## Running $as_me. ##
22215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22219 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22222 # The HP-UX ksh and POSIX shell print the target directory to stdout
22223 # if CDPATH is set.
22224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22226 sed_quote_subst='$sed_quote_subst'
22227 double_quote_subst='$double_quote_subst'
22228 delay_variable_subst='$delay_variable_subst'
22229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22237 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22238 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22239 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22240 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22241 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22242 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22243 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22244 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22245 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22246 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22247 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22248 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22249 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22250 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22251 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22252 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22253 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22254 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22255 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22256 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22257 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22258 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22259 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22265 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22266 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22267 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22268 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22269 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22270 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22271 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22272 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22273 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22274 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22275 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22276 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22277 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22278 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22279 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22280 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22281 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22282 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22283 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22284 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22285 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"`'
22286 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22287 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22288 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22289 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22290 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22291 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22292 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22293 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22294 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22295 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22296 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22297 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22298 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22299 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22300 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22301 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22302 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22303 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22304 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22305 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22306 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22307 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22308 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22309 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22310 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22311 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22312 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22313 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22314 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22315 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22316 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22317 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22318 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22319 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22352 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22353 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22354 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22355 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22356 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22357 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22358 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22359 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22360 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22361 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22362 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22363 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22364 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22365 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22366 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22367 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22368 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22369 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22370 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22371 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22372 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22373 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22374 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22375 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22376 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22377 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22378 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22379 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22380 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22381 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22382 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22383 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22384 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22385 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22386 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22387 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22388 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22389 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22390 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22391 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22392 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22393 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22394 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22395 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22396 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22397 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22398 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22399 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22400 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22401 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22402 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22403 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22404 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22405 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22406 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22407 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22408 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22409 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22410 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22411 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22412 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22415 LTCFLAGS='$LTCFLAGS'
22416 compiler='$compiler_DEFAULT'
22418 # A function that is used when there is no print builtin or printf.
22419 func_fallback_echo ()
22421 eval 'cat <<_LTECHO_EOF
22426 # Quote evaled strings.
22441 deplibs_check_method \
22446 sharedlib_from_linklib_cmd \
22449 archiver_list_spec \
22455 lt_cv_sys_global_symbol_pipe \
22456 lt_cv_sys_global_symbol_to_cdecl \
22457 lt_cv_sys_global_symbol_to_c_name_address \
22458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22459 nm_file_list_spec \
22460 lt_prog_compiler_no_builtin_flag \
22461 lt_prog_compiler_pic \
22462 lt_prog_compiler_wl \
22463 lt_prog_compiler_static \
22464 lt_cv_prog_compiler_c_o \
22473 export_dynamic_flag_spec \
22474 whole_archive_flag_spec \
22475 compiler_needs_object \
22477 allow_undefined_flag \
22478 no_undefined_flag \
22479 hardcode_libdir_flag_spec \
22480 hardcode_libdir_separator \
22484 variables_saved_for_relink \
22486 library_names_spec \
22488 install_override_mode \
22492 compiler_lib_search_dirs \
22497 compiler_lib_search_path \
22501 lt_prog_compiler_no_builtin_flag_CXX \
22502 lt_prog_compiler_pic_CXX \
22503 lt_prog_compiler_wl_CXX \
22504 lt_prog_compiler_static_CXX \
22505 lt_cv_prog_compiler_c_o_CXX \
22506 export_dynamic_flag_spec_CXX \
22507 whole_archive_flag_spec_CXX \
22508 compiler_needs_object_CXX \
22510 allow_undefined_flag_CXX \
22511 no_undefined_flag_CXX \
22512 hardcode_libdir_flag_spec_CXX \
22513 hardcode_libdir_separator_CXX \
22514 exclude_expsyms_CXX \
22515 include_expsyms_CXX \
22516 file_list_spec_CXX \
22517 compiler_lib_search_dirs_CXX \
22518 predep_objects_CXX \
22519 postdep_objects_CXX \
22522 compiler_lib_search_path_CXX; do
22523 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22524 *[\\\\\\\`\\"\\\$]*)
22525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22528 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22533 # Double-quote double-evaled strings.
22534 for var in reload_cmds \
22535 old_postinstall_cmds \
22536 old_postuninstall_cmds \
22538 extract_expsyms_cmds \
22539 old_archive_from_new_cmds \
22540 old_archive_from_expsyms_cmds \
22542 archive_expsym_cmds \
22544 module_expsym_cmds \
22545 export_symbols_cmds \
22549 postuninstall_cmds \
22551 sys_lib_search_path_spec \
22552 sys_lib_dlsearch_path_spec \
22554 old_archive_cmds_CXX \
22555 old_archive_from_new_cmds_CXX \
22556 old_archive_from_expsyms_cmds_CXX \
22558 archive_expsym_cmds_CXX \
22560 module_expsym_cmds_CXX \
22561 export_symbols_cmds_CXX \
22563 postlink_cmds_CXX; do
22564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22565 *[\\\\\\\`\\"\\\$]*)
22566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22574 ac_aux_dir='$ac_aux_dir'
22575 xsi_shell='$xsi_shell'
22576 lt_shell_append='$lt_shell_append'
22578 # See if we are running on zsh, and set the options which allow our
22579 # commands through without removal of \ escapes INIT.
22580 if test -n "\${ZSH_VERSION+set}" ; then
22581 setopt NO_GLOB_SUBST
22587 TIMESTAMP='$TIMESTAMP'
22598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22600 # Handling of arguments.
22601 for ac_config_target in $ac_config_targets
22603 case $ac_config_target in
22604 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22605 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
22606 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22607 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22608 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
22609 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22610 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
22611 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
22612 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
22613 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
22614 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
22615 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
22616 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
22617 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
22618 "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
22619 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22620 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
22621 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
22622 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
22623 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
22624 "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
22625 "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
22626 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22627 "utils/blkmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/blkmapd/Makefile" ;;
22628 "utils/nfsdcltrack/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsdcltrack/Makefile" ;;
22629 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
22630 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
22631 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
22632 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
22633 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
22634 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
22635 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
22636 "utils/nfsidmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsidmap/Makefile" ;;
22637 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
22638 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
22639 "utils/osd_login/Makefile") CONFIG_FILES="$CONFIG_FILES utils/osd_login/Makefile" ;;
22640 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22641 "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
22643 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22648 # If the user did not use the arguments to specify the items to instantiate,
22649 # then the envvar interface is used. Set only those that are not.
22650 # We use the long form for the default assignment because of an extremely
22651 # bizarre bug on SunOS 4.1.3.
22652 if $ac_need_defaults; then
22653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22658 # Have a temporary directory for convenience. Make it in the build tree
22659 # simply because there is no reason against having it here, and in addition,
22660 # creating and moving files from /tmp can sometimes cause problems.
22661 # Hook for its removal unless debugging.
22662 # Note that there is a small window in which the directory will not be cleaned:
22663 # after its creation but before its name has been assigned to `$tmp'.
22667 trap 'exit_status=$?
22668 : "${ac_tmp:=$tmp}"
22669 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22671 trap 'as_fn_exit 1' 1 2 13 15
22673 # Create a (secure) tmp directory for tmp files.
22676 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22680 tmp=./conf$$-$RANDOM
22681 (umask 077 && mkdir "$tmp")
22682 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22685 # Set up the scripts for CONFIG_FILES section.
22686 # No need to generate them if there are no CONFIG_FILES.
22687 # This happens for instance with `./config.status config.h'.
22688 if test -n "$CONFIG_FILES"; then
22691 ac_cr=`echo X | tr X '\015'`
22692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22693 # But we know of no other shell where ac_cr would be empty at this
22694 # point, so we can use a bashism as a fallback.
22695 if test "x$ac_cr" = x; then
22696 eval ac_cr=\$\'\\r\'
22698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22702 ac_cs_awk_cr=$ac_cr
22705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22710 echo "cat >conf$$subs.awk <<_ACEOF" &&
22711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22713 } >conf$$subs.sh ||
22714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22717 for ac_last_try in false false false false false :; do
22718 . ./conf$$subs.sh ||
22719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22722 if test $ac_delim_n = $ac_delim_num; then
22724 elif $ac_last_try; then
22725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22730 rm -f conf$$subs.sh
22732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22733 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22737 s/^/S["/; s/!.*/"]=/
22747 s/\(.\{148\}\)..*/\1/
22749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22761 s/\(.\{148\}\)..*/\1/
22763 s/["\\]/\\&/g; s/^/"/; s/$/"/
22767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22772 ' <conf$$subs.awk | sed '
22777 ' >>$CONFIG_STATUS || ac_write_fail=1
22778 rm -f conf$$subs.awk
22779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22781 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22782 for (key in S) S_is_set[key] = 1
22788 nfields = split(line, field, "@")
22790 len = length(field[1])
22791 for (i = 2; i < nfields; i++) {
22793 keylen = length(key)
22794 if (S_is_set[key]) {
22796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22797 len += length(value) + length(field[++i])
22808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22813 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22814 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22817 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22818 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22819 # trailing colons and then remove the whole line if VPATH becomes empty
22820 # (actually we leave an empty line to preserve line numbers).
22821 if test "x$srcdir" = x.; then
22822 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22841 fi # test -n "$CONFIG_FILES"
22843 # Set up the scripts for CONFIG_HEADERS section.
22844 # No need to generate them if there are no CONFIG_HEADERS.
22845 # This happens for instance with `./config.status Makefile'.
22846 if test -n "$CONFIG_HEADERS"; then
22847 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22851 # Transform confdefs.h into an awk script `defines.awk', embedded as
22852 # here-document in config.status, that substitutes the proper values into
22853 # config.h.in to produce config.h.
22855 # Create a delimiter string that does not exist in confdefs.h, to ease
22856 # handling of long lines.
22858 for ac_last_try in false false :; do
22859 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22860 if test -z "$ac_tt"; then
22862 elif $ac_last_try; then
22863 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22869 # For the awk script, D is an array of macro values keyed by name,
22870 # likewise P contains macro parameters if any. Preserve backslash
22871 # newline sequences.
22873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22875 s/.\{148\}/&'"$ac_delim"'/g
22878 s/^[ ]*#[ ]*define[ ][ ]*/ /
22885 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22892 D["\1"]=" \3\\\\\\n"\\/p
22894 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22899 s/.\{148\}/&'"$ac_delim"'/g
22904 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22907 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22909 ' <confdefs.h | sed '
22910 s/'"$ac_delim"'/"\\\
22911 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22914 for (key in D) D_is_set[key] = 1
22917 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22919 split(line, arg, " ")
22920 if (arg[1] == "#") {
22924 defundef = substr(arg[1], 2)
22927 split(mac1, mac2, "(") #)
22929 prefix = substr(line, 1, index(line, defundef) - 1)
22930 if (D_is_set[macro]) {
22931 # Preserve the white space surrounding the "#".
22932 print prefix "define", macro P[macro] D[macro]
22935 # Replace #undef with comments. This is necessary, for example,
22936 # in the case of _POSIX_SOURCE, which is predefined and required
22937 # on some systems where configure will not decide to define it.
22938 if (defundef == "undef") {
22939 print "/*", prefix defundef, macro, "*/"
22947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22948 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22949 fi # test -n "$CONFIG_HEADERS"
22952 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22957 :[FHLC]) ac_mode=$ac_tag; continue;;
22959 case $ac_mode$ac_tag in
22961 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22962 :[FH]-) ac_tag=-:-;;
22963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22980 -) ac_f="$ac_tmp/stdin";;
22981 *) # Look for the file first in the build tree, then in the source tree
22982 # (if the path is not absolute). The absolute path cannot be DOS-style,
22983 # because $ac_f cannot contain `:'.
22987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22989 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22991 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22992 as_fn_append ac_file_inputs " '$ac_f'"
22995 # Let's still pretend it is `configure' which instantiates (i.e., don't
22996 # use $as_me), people would be surprised to read:
22997 # /* config.h. Generated by config.status. */
22998 configure_input='Generated from '`
22999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23001 if test x"$ac_file" != x-; then
23002 configure_input="$ac_file. $configure_input"
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23004 $as_echo "$as_me: creating $ac_file" >&6;}
23006 # Neutralize special characters interpreted by sed in replacement strings.
23007 case $configure_input in #(
23008 *\&* | *\|* | *\\* )
23009 ac_sed_conf_input=`$as_echo "$configure_input" |
23010 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23011 *) ac_sed_conf_input=$configure_input;;
23015 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23021 ac_dir=`$as_dirname -- "$ac_file" ||
23022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23023 X"$ac_file" : 'X\(//\)[^/]' \| \
23024 X"$ac_file" : 'X\(//\)$' \| \
23025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23026 $as_echo X"$ac_file" |
23027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23031 /^X\(\/\/\)[^/].*/{
23044 as_dir="$ac_dir"; as_fn_mkdir_p
23048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23051 # A ".." for each directory in $ac_dir_suffix.
23052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23053 case $ac_top_builddir_sub in
23054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23058 ac_abs_top_builddir=$ac_pwd
23059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23060 # for backward compatibility:
23061 ac_top_builddir=$ac_top_build_prefix
23064 .) # We are building in place.
23066 ac_top_srcdir=$ac_top_builddir_sub
23067 ac_abs_top_srcdir=$ac_pwd ;;
23068 [\\/]* | ?:[\\/]* ) # Absolute name.
23069 ac_srcdir=$srcdir$ac_dir_suffix;
23070 ac_top_srcdir=$srcdir
23071 ac_abs_top_srcdir=$srcdir ;;
23072 *) # Relative name.
23073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23074 ac_top_srcdir=$ac_top_build_prefix$srcdir
23075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23090 ac_MKDIR_P=$MKDIR_P
23092 [\\/$]* | ?:[\\/]* ) ;;
23093 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23098 # If the template does not know about datarootdir, expand it.
23099 # FIXME: This hack should be removed a few years after 2.60.
23100 ac_datarootdir_hack=; ac_datarootdir_seen=
23111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23112 *datarootdir*) ac_datarootdir_seen=yes;;
23113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23118 ac_datarootdir_hack='
23119 s&@datadir@&$datadir&g
23120 s&@docdir@&$docdir&g
23121 s&@infodir@&$infodir&g
23122 s&@localedir@&$localedir&g
23123 s&@mandir@&$mandir&g
23124 s&\\\${datarootdir}&$datarootdir&g' ;;
23128 # Neutralize VPATH when `$srcdir' = `.'.
23129 # Shell code in configure.ac might set extrasub.
23130 # FIXME: do we really want to maintain this feature?
23131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23132 ac_sed_extra="$ac_vpsub
23135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23138 s|@configure_input@|$ac_sed_conf_input|;t t
23139 s&@top_builddir@&$ac_top_builddir_sub&;t t
23140 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23141 s&@srcdir@&$ac_srcdir&;t t
23142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23143 s&@top_srcdir@&$ac_top_srcdir&;t t
23144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23145 s&@builddir@&$ac_builddir&;t t
23146 s&@abs_builddir@&$ac_abs_builddir&;t t
23147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23148 s&@INSTALL@&$ac_INSTALL&;t t
23149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23150 $ac_datarootdir_hack
23152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23153 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23158 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23160 which seems to be undefined. Please make sure it is defined" >&5
23161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23162 which seems to be undefined. Please make sure it is defined" >&2;}
23164 rm -f "$ac_tmp/stdin"
23166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23175 if test x"$ac_file" != x-; then
23177 $as_echo "/* $configure_input */" \
23178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23179 } >"$ac_tmp/config.h" \
23180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23181 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23183 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23186 mv "$ac_tmp/config.h" "$ac_file" \
23187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23190 $as_echo "/* $configure_input */" \
23191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23192 || as_fn_error $? "could not create -" "$LINENO" 5
23194 # Compute "$ac_file"'s index in $config_headers.
23197 for _am_header in $config_headers :; do
23198 case $_am_header in
23199 $_am_arg | $_am_arg:* )
23202 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23205 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23206 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207 X"$_am_arg" : 'X\(//\)[^/]' \| \
23208 X"$_am_arg" : 'X\(//\)$' \| \
23209 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23210 $as_echo X"$_am_arg" |
23211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23215 /^X\(\/\/\)[^/].*/{
23227 s/.*/./; q'`/stamp-h$_am_stamp_count
23230 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23231 $as_echo "$as_me: executing $ac_file commands" >&6;}
23236 case $ac_file$ac_mode in
23237 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23238 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23239 # are listed without --file. Let's play safe and only enable the eval
23240 # if we detect the quoting.
23241 case $CONFIG_FILES in
23242 *\'*) eval set x "$CONFIG_FILES" ;;
23243 *) set x $CONFIG_FILES ;;
23248 # Strip MF so we end up with the name of the file.
23249 mf=`echo "$mf" | sed -e 's/:.*$//'`
23250 # Check whether this is an Automake generated Makefile or not.
23251 # We used to match only the files named 'Makefile.in', but
23252 # some people rename them; so instead we look at the file content.
23253 # Grep'ing the first line is not enough: some people post-process
23254 # each Makefile.in and add a new line on top of each file to say so.
23255 # Grep'ing the whole file is not good either: AIX grep has a line
23256 # limit of 2048, but all sed's we know have understand at least 4000.
23257 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23258 dirpart=`$as_dirname -- "$mf" ||
23259 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23260 X"$mf" : 'X\(//\)[^/]' \| \
23261 X"$mf" : 'X\(//\)$' \| \
23262 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23268 /^X\(\/\/\)[^/].*/{
23284 # Extract the definition of DEPDIR, am__include, and am__quote
23285 # from the Makefile without running 'make'.
23286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23287 test -z "$DEPDIR" && continue
23288 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23289 test -z "am__include" && continue
23290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23291 # Find all dependency output files, they are included files with
23292 # $(DEPDIR) in their names. We invoke sed twice because it is the
23293 # simplest approach to changing $(DEPDIR) to its actual value in the
23295 for file in `sed -n "
23296 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23297 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23298 # Make sure the directory exists.
23299 test -f "$dirpart/$file" && continue
23300 fdir=`$as_dirname -- "$file" ||
23301 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23302 X"$file" : 'X\(//\)[^/]' \| \
23303 X"$file" : 'X\(//\)$' \| \
23304 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23305 $as_echo X"$file" |
23306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23310 /^X\(\/\/\)[^/].*/{
23323 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23324 # echo "creating $dirpart/$file"
23325 echo '# dummy' > "$dirpart/$file"
23332 # See if we are running on zsh, and set the options which allow our
23333 # commands through without removal of \ escapes.
23334 if test -n "${ZSH_VERSION+set}" ; then
23335 setopt NO_GLOB_SUBST
23338 cfgfile="${ofile}T"
23339 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23342 cat <<_LT_EOF >> "$cfgfile"
23345 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23346 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23350 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23351 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23353 # Written by Gordon Matzigkeit, 1996
23355 # This file is part of GNU Libtool.
23357 # GNU Libtool is free software; you can redistribute it and/or
23358 # modify it under the terms of the GNU General Public License as
23359 # published by the Free Software Foundation; either version 2 of
23360 # the License, or (at your option) any later version.
23362 # As a special exception to the GNU General Public License,
23363 # if you distribute this file as part of a program or library that
23364 # is built using GNU Libtool, you may include this file under the
23365 # same distribution terms that you use for the rest of that program.
23367 # GNU Libtool is distributed in the hope that it will be useful,
23368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23370 # GNU General Public License for more details.
23372 # You should have received a copy of the GNU General Public License
23373 # along with GNU Libtool; see the file COPYING. If not, a copy
23374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23375 # obtained by writing to the Free Software Foundation, Inc.,
23376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23379 # The names of the tagged configurations supported by this script.
23380 available_tags="CXX "
23382 # ### BEGIN LIBTOOL CONFIG
23384 # Which release of libtool.m4 was used?
23385 macro_version=$macro_version
23386 macro_revision=$macro_revision
23388 # Whether or not to build shared libraries.
23389 build_libtool_libs=$enable_shared
23391 # Whether or not to build static libraries.
23392 build_old_libs=$enable_static
23394 # What type of objects to build.
23397 # Whether or not to optimize for fast installation.
23398 fast_install=$enable_fast_install
23400 # Shell to use when invoking shell scripts.
23403 # An echo program that protects backslashes.
23406 # The PATH separator for the build system.
23407 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23410 host_alias=$host_alias
23414 # The build system.
23415 build_alias=$build_alias
23419 # A sed program that does not truncate output.
23422 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23423 Xsed="\$SED -e 1s/^X//"
23425 # A grep program that handles long lines.
23431 # A literal string matcher.
23434 # A BSD- or MS-compatible name lister.
23437 # Whether we need soft or hard links.
23440 # What is the maximum length of a command?
23441 max_cmd_len=$max_cmd_len
23443 # Object file suffix (normally "o").
23446 # Executable file suffix (normally "").
23449 # whether the shell understands "unset".
23452 # turn spaces into newlines.
23455 # turn newlines into spaces.
23458 # convert \$build file names to \$host format.
23459 to_host_file_cmd=$lt_cv_to_host_file_cmd
23461 # convert \$build files to toolchain format.
23462 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23464 # An object symbol dumper.
23465 OBJDUMP=$lt_OBJDUMP
23467 # Method to check whether dependent libraries are shared objects.
23468 deplibs_check_method=$lt_deplibs_check_method
23470 # Command to use when deplibs_check_method = "file_magic".
23471 file_magic_cmd=$lt_file_magic_cmd
23473 # How to find potential files when deplibs_check_method = "file_magic".
23474 file_magic_glob=$lt_file_magic_glob
23476 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23477 want_nocaseglob=$lt_want_nocaseglob
23479 # DLL creation program.
23480 DLLTOOL=$lt_DLLTOOL
23482 # Command to associate shared and link libraries.
23483 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23488 # Flags to create an archive.
23489 AR_FLAGS=$lt_AR_FLAGS
23491 # How to feed a file listing to the archiver.
23492 archiver_list_spec=$lt_archiver_list_spec
23494 # A symbol stripping program.
23497 # Commands used to install an old-style archive.
23499 old_postinstall_cmds=$lt_old_postinstall_cmds
23500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23502 # Whether to use a lock for old archive extraction.
23503 lock_old_archive_extraction=$lock_old_archive_extraction
23508 # LTCC compiler flags.
23509 LTCFLAGS=$lt_CFLAGS
23511 # Take the output of nm and produce a listing of raw symbols and C names.
23512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23514 # Transform the output of nm in a proper C declaration.
23515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23517 # Transform the output of nm in a C name address pair.
23518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23520 # Transform the output of nm in a C name address pair when lib prefix is needed.
23521 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23523 # Specify filename containing input files for \$NM.
23524 nm_file_list_spec=$lt_nm_file_list_spec
23526 # The root where to search for dependent libraries,and in which our libraries should be installed.
23527 lt_sysroot=$lt_sysroot
23529 # The name of the directory that contains temporary libtool files.
23532 # Used to examine libraries when file_magic_cmd begins with "file".
23533 MAGIC_CMD=$MAGIC_CMD
23535 # Must we lock files when doing compilation?
23536 need_locks=$lt_need_locks
23539 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23541 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23542 DSYMUTIL=$lt_DSYMUTIL
23544 # Tool to change global to local symbols on Mac OS X.
23547 # Tool to manipulate fat objects and archives on Mac OS X.
23550 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23553 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23554 OTOOL64=$lt_OTOOL64
23556 # Old archive suffix (normally "a").
23559 # Shared library suffix (normally ".so").
23560 shrext_cmds=$lt_shrext_cmds
23562 # The commands to extract the exported symbol list from a shared archive.
23563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23565 # Variables whose values should be saved in libtool wrapper scripts and
23566 # restored at link time.
23567 variables_saved_for_relink=$lt_variables_saved_for_relink
23569 # Do we need the "lib" prefix for modules?
23570 need_lib_prefix=$need_lib_prefix
23572 # Do we need a version for libraries?
23573 need_version=$need_version
23575 # Library versioning type.
23576 version_type=$version_type
23578 # Shared library runtime path variable.
23579 runpath_var=$runpath_var
23581 # Shared library path variable.
23582 shlibpath_var=$shlibpath_var
23584 # Is shlibpath searched before the hard-coded library search path?
23585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23587 # Format of library name prefix.
23588 libname_spec=$lt_libname_spec
23590 # List of archive names. First name is the real one, the rest are links.
23591 # The last name is the one that the linker finds with -lNAME
23592 library_names_spec=$lt_library_names_spec
23594 # The coded name of the library, if different from the real name.
23595 soname_spec=$lt_soname_spec
23597 # Permission mode override for installation of shared libraries.
23598 install_override_mode=$lt_install_override_mode
23600 # Command to use after installation of a shared archive.
23601 postinstall_cmds=$lt_postinstall_cmds
23603 # Command to use after uninstallation of a shared archive.
23604 postuninstall_cmds=$lt_postuninstall_cmds
23606 # Commands used to finish a libtool library installation in a directory.
23607 finish_cmds=$lt_finish_cmds
23609 # As "finish_cmds", except a single script fragment to be evaled but
23611 finish_eval=$lt_finish_eval
23613 # Whether we should hardcode library paths into libraries.
23614 hardcode_into_libs=$hardcode_into_libs
23616 # Compile-time system search path for libraries.
23617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23619 # Run-time system search path for libraries.
23620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23622 # Whether dlopen is supported.
23623 dlopen_support=$enable_dlopen
23625 # Whether dlopen of programs is supported.
23626 dlopen_self=$enable_dlopen_self
23628 # Whether dlopen of statically linked programs is supported.
23629 dlopen_self_static=$enable_dlopen_self_static
23631 # Commands to strip libraries.
23632 old_striplib=$lt_old_striplib
23633 striplib=$lt_striplib
23636 # The linker used to build libraries.
23639 # How to create reloadable object files.
23640 reload_flag=$lt_reload_flag
23641 reload_cmds=$lt_reload_cmds
23643 # Commands used to build an old-style archive.
23644 old_archive_cmds=$lt_old_archive_cmds
23646 # A language specific compiler.
23649 # Is the compiler the GNU compiler?
23652 # Compiler flag to turn off builtin functions.
23653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23655 # Additional compiler flags for building library objects.
23656 pic_flag=$lt_lt_prog_compiler_pic
23658 # How to pass a linker flag through the compiler.
23659 wl=$lt_lt_prog_compiler_wl
23661 # Compiler flag to prevent dynamic linking.
23662 link_static_flag=$lt_lt_prog_compiler_static
23664 # Does compiler simultaneously support -c and -o options?
23665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23667 # Whether or not to add -lc for building shared libraries.
23668 build_libtool_need_lc=$archive_cmds_need_lc
23670 # Whether or not to disallow shared libs when runtime libs are static.
23671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23673 # Compiler flag to allow reflexive dlopens.
23674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23676 # Compiler flag to generate shared objects directly from archives.
23677 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23679 # Whether the compiler copes with passing no objects directly.
23680 compiler_needs_object=$lt_compiler_needs_object
23682 # Create an old-style archive from a shared archive.
23683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23685 # Create a temporary old-style archive to link instead of a shared archive.
23686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23688 # Commands used to build a shared archive.
23689 archive_cmds=$lt_archive_cmds
23690 archive_expsym_cmds=$lt_archive_expsym_cmds
23692 # Commands used to build a loadable module if different from building
23693 # a shared archive.
23694 module_cmds=$lt_module_cmds
23695 module_expsym_cmds=$lt_module_expsym_cmds
23697 # Whether we are building with GNU ld or not.
23698 with_gnu_ld=$lt_with_gnu_ld
23700 # Flag that allows shared libraries with undefined symbols to be built.
23701 allow_undefined_flag=$lt_allow_undefined_flag
23703 # Flag that enforces no undefined symbols.
23704 no_undefined_flag=$lt_no_undefined_flag
23706 # Flag to hardcode \$libdir into a binary during linking.
23707 # This must work even if \$libdir does not exist
23708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23710 # Whether we need a single "-rpath" flag with a separated argument.
23711 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23714 # DIR into the resulting binary.
23715 hardcode_direct=$hardcode_direct
23717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23718 # DIR into the resulting binary and the resulting library dependency is
23719 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23720 # library is relocated.
23721 hardcode_direct_absolute=$hardcode_direct_absolute
23723 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23724 # into the resulting binary.
23725 hardcode_minus_L=$hardcode_minus_L
23727 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23728 # into the resulting binary.
23729 hardcode_shlibpath_var=$hardcode_shlibpath_var
23731 # Set to "yes" if building a shared library automatically hardcodes DIR
23732 # into the library and all subsequent libraries and executables linked
23734 hardcode_automatic=$hardcode_automatic
23736 # Set to yes if linker adds runtime paths of dependent libraries
23737 # to runtime path list.
23738 inherit_rpath=$inherit_rpath
23740 # Whether libtool must link a program against all its dependency libraries.
23741 link_all_deplibs=$link_all_deplibs
23743 # Set to "yes" if exported symbols are required.
23744 always_export_symbols=$always_export_symbols
23746 # The commands to list exported symbols.
23747 export_symbols_cmds=$lt_export_symbols_cmds
23749 # Symbols that should not be listed in the preloaded symbols.
23750 exclude_expsyms=$lt_exclude_expsyms
23752 # Symbols that must always be exported.
23753 include_expsyms=$lt_include_expsyms
23755 # Commands necessary for linking programs (against libraries) with templates.
23756 prelink_cmds=$lt_prelink_cmds
23758 # Commands necessary for finishing linking programs.
23759 postlink_cmds=$lt_postlink_cmds
23761 # Specify filename containing input files.
23762 file_list_spec=$lt_file_list_spec
23764 # How to hardcode a shared library path into an executable.
23765 hardcode_action=$hardcode_action
23767 # The directories searched by this compiler when creating a shared library.
23768 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23770 # Dependencies to place before and after the objects being linked to
23771 # create a shared library.
23772 predep_objects=$lt_predep_objects
23773 postdep_objects=$lt_postdep_objects
23774 predeps=$lt_predeps
23775 postdeps=$lt_postdeps
23777 # The library search path used internally by the compiler when linking
23778 # a shared library.
23779 compiler_lib_search_path=$lt_compiler_lib_search_path
23781 # ### END LIBTOOL CONFIG
23787 cat <<\_LT_EOF >> "$cfgfile"
23788 # AIX sometimes has problems with the GCC collect2 program. For some
23789 # reason, if we set the COLLECT_NAMES environment variable, the problems
23790 # vanish in a puff of smoke.
23791 if test "X${COLLECT_NAMES+set}" != Xset; then
23793 export COLLECT_NAMES
23800 ltmain="$ac_aux_dir/ltmain.sh"
23803 # We use sed instead of cat because bash on DJGPP gets confused if
23804 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23805 # text mode, it properly converts lines to CR/LF. This bash problem
23806 # is reportedly fixed, but why not run on old versions too?
23807 sed '$q' "$ltmain" >> "$cfgfile" \
23808 || (rm -f "$cfgfile"; exit 1)
23810 if test x"$xsi_shell" = xyes; then
23811 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23815 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23816 \ * ) func_dirname_result="${3}" ;;\
23818 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23819 && mv -f "$cfgfile.tmp" "$cfgfile" \
23820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23821 test 0 -eq $? || _lt_function_replace_fail=:
23824 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23827 \ func_basename_result="${1##*/}"\
23828 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23829 && mv -f "$cfgfile.tmp" "$cfgfile" \
23830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23831 test 0 -eq $? || _lt_function_replace_fail=:
23834 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23835 func_dirname_and_basename ()\
23838 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23839 \ * ) func_dirname_result="${3}" ;;\
23841 \ func_basename_result="${1##*/}"\
23842 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23843 && mv -f "$cfgfile.tmp" "$cfgfile" \
23844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23845 test 0 -eq $? || _lt_function_replace_fail=:
23848 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23851 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23852 \ # positional parameters, so assign one to ordinary parameter first.\
23853 \ func_stripname_result=${3}\
23854 \ func_stripname_result=${func_stripname_result#"${1}"}\
23855 \ func_stripname_result=${func_stripname_result%"${2}"}\
23856 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23857 && mv -f "$cfgfile.tmp" "$cfgfile" \
23858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23859 test 0 -eq $? || _lt_function_replace_fail=:
23862 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23863 func_split_long_opt ()\
23865 \ func_split_long_opt_name=${1%%=*}\
23866 \ func_split_long_opt_arg=${1#*=}\
23867 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23868 && mv -f "$cfgfile.tmp" "$cfgfile" \
23869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23870 test 0 -eq $? || _lt_function_replace_fail=:
23873 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23874 func_split_short_opt ()\
23876 \ func_split_short_opt_arg=${1#??}\
23877 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23878 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23879 && mv -f "$cfgfile.tmp" "$cfgfile" \
23880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23881 test 0 -eq $? || _lt_function_replace_fail=:
23884 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23888 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23889 \ *) func_lo2o_result=${1} ;;\
23891 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23892 && mv -f "$cfgfile.tmp" "$cfgfile" \
23893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23894 test 0 -eq $? || _lt_function_replace_fail=:
23897 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23900 func_xform_result=${1%.*}.lo\
23901 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23902 && mv -f "$cfgfile.tmp" "$cfgfile" \
23903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23904 test 0 -eq $? || _lt_function_replace_fail=:
23907 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23910 func_arith_result=$(( $* ))\
23911 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23912 && mv -f "$cfgfile.tmp" "$cfgfile" \
23913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23914 test 0 -eq $? || _lt_function_replace_fail=:
23917 sed -e '/^func_len ()$/,/^} # func_len /c\
23920 func_len_result=${#1}\
23921 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23922 && mv -f "$cfgfile.tmp" "$cfgfile" \
23923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23924 test 0 -eq $? || _lt_function_replace_fail=:
23928 if test x"$lt_shell_append" = xyes; then
23929 sed -e '/^func_append ()$/,/^} # func_append /c\
23932 eval "${1}+=\\${2}"\
23933 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23934 && mv -f "$cfgfile.tmp" "$cfgfile" \
23935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23936 test 0 -eq $? || _lt_function_replace_fail=:
23939 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23940 func_append_quoted ()\
23942 \ func_quote_for_eval "${2}"\
23943 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23944 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23945 && mv -f "$cfgfile.tmp" "$cfgfile" \
23946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23947 test 0 -eq $? || _lt_function_replace_fail=:
23950 # Save a `func_append' function call where possible by direct use of '+='
23951 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23952 && mv -f "$cfgfile.tmp" "$cfgfile" \
23953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23954 test 0 -eq $? || _lt_function_replace_fail=:
23956 # Save a `func_append' function call even when '+=' is not available
23957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23958 && mv -f "$cfgfile.tmp" "$cfgfile" \
23959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23960 test 0 -eq $? || _lt_function_replace_fail=:
23963 if test x"$_lt_function_replace_fail" = x":"; then
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23965 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23969 mv -f "$cfgfile" "$ofile" ||
23970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23974 cat <<_LT_EOF >> "$ofile"
23976 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23978 # The linker used to build libraries.
23981 # How to create reloadable object files.
23982 reload_flag=$lt_reload_flag_CXX
23983 reload_cmds=$lt_reload_cmds_CXX
23985 # Commands used to build an old-style archive.
23986 old_archive_cmds=$lt_old_archive_cmds_CXX
23988 # A language specific compiler.
23989 CC=$lt_compiler_CXX
23991 # Is the compiler the GNU compiler?
23994 # Compiler flag to turn off builtin functions.
23995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23997 # Additional compiler flags for building library objects.
23998 pic_flag=$lt_lt_prog_compiler_pic_CXX
24000 # How to pass a linker flag through the compiler.
24001 wl=$lt_lt_prog_compiler_wl_CXX
24003 # Compiler flag to prevent dynamic linking.
24004 link_static_flag=$lt_lt_prog_compiler_static_CXX
24006 # Does compiler simultaneously support -c and -o options?
24007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24009 # Whether or not to add -lc for building shared libraries.
24010 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24012 # Whether or not to disallow shared libs when runtime libs are static.
24013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24015 # Compiler flag to allow reflexive dlopens.
24016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24018 # Compiler flag to generate shared objects directly from archives.
24019 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24021 # Whether the compiler copes with passing no objects directly.
24022 compiler_needs_object=$lt_compiler_needs_object_CXX
24024 # Create an old-style archive from a shared archive.
24025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24027 # Create a temporary old-style archive to link instead of a shared archive.
24028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24030 # Commands used to build a shared archive.
24031 archive_cmds=$lt_archive_cmds_CXX
24032 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24034 # Commands used to build a loadable module if different from building
24035 # a shared archive.
24036 module_cmds=$lt_module_cmds_CXX
24037 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24039 # Whether we are building with GNU ld or not.
24040 with_gnu_ld=$lt_with_gnu_ld_CXX
24042 # Flag that allows shared libraries with undefined symbols to be built.
24043 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24045 # Flag that enforces no undefined symbols.
24046 no_undefined_flag=$lt_no_undefined_flag_CXX
24048 # Flag to hardcode \$libdir into a binary during linking.
24049 # This must work even if \$libdir does not exist
24050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24052 # Whether we need a single "-rpath" flag with a separated argument.
24053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24056 # DIR into the resulting binary.
24057 hardcode_direct=$hardcode_direct_CXX
24059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24060 # DIR into the resulting binary and the resulting library dependency is
24061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24062 # library is relocated.
24063 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24066 # into the resulting binary.
24067 hardcode_minus_L=$hardcode_minus_L_CXX
24069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24070 # into the resulting binary.
24071 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24073 # Set to "yes" if building a shared library automatically hardcodes DIR
24074 # into the library and all subsequent libraries and executables linked
24076 hardcode_automatic=$hardcode_automatic_CXX
24078 # Set to yes if linker adds runtime paths of dependent libraries
24079 # to runtime path list.
24080 inherit_rpath=$inherit_rpath_CXX
24082 # Whether libtool must link a program against all its dependency libraries.
24083 link_all_deplibs=$link_all_deplibs_CXX
24085 # Set to "yes" if exported symbols are required.
24086 always_export_symbols=$always_export_symbols_CXX
24088 # The commands to list exported symbols.
24089 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24091 # Symbols that should not be listed in the preloaded symbols.
24092 exclude_expsyms=$lt_exclude_expsyms_CXX
24094 # Symbols that must always be exported.
24095 include_expsyms=$lt_include_expsyms_CXX
24097 # Commands necessary for linking programs (against libraries) with templates.
24098 prelink_cmds=$lt_prelink_cmds_CXX
24100 # Commands necessary for finishing linking programs.
24101 postlink_cmds=$lt_postlink_cmds_CXX
24103 # Specify filename containing input files.
24104 file_list_spec=$lt_file_list_spec_CXX
24106 # How to hardcode a shared library path into an executable.
24107 hardcode_action=$hardcode_action_CXX
24109 # The directories searched by this compiler when creating a shared library.
24110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24112 # Dependencies to place before and after the objects being linked to
24113 # create a shared library.
24114 predep_objects=$lt_predep_objects_CXX
24115 postdep_objects=$lt_postdep_objects_CXX
24116 predeps=$lt_predeps_CXX
24117 postdeps=$lt_postdeps_CXX
24119 # The library search path used internally by the compiler when linking
24120 # a shared library.
24121 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24123 # ### END LIBTOOL TAG CONFIG: CXX
24134 ac_clean_files=$ac_clean_files_save
24136 test $ac_write_fail = 0 ||
24137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24140 # configure is writing to config.log, and then calls config.status.
24141 # config.status does its own redirection, appending to config.log.
24142 # Unfortunately, on DOS this fails, as config.log is still kept open
24143 # by configure, so config.status won't be able to write to it; its
24144 # output is simply discarded. So we exec the FD to /dev/null,
24145 # effectively closing config.log, so it can be properly (re)opened and
24146 # appended to by config.status. When coming back to configure, we
24147 # need to make the FD available again.
24148 if test "$no_create" != yes; then
24150 ac_config_status_args=
24151 test "$silent" = yes &&
24152 ac_config_status_args="$ac_config_status_args --quiet"
24154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24157 # would make configure fail if this is the last instruction.
24158 $ac_cs_success || as_fn_exit 1
24160 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24162 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}