2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for spl 0.6.5.11.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL
=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec
; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo
; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo
; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset
; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
638 for dir
in $PATH /usr
/ucb
; do
640 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho
; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL
=/bin
/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
679 SHELL
="$CONFIG_SHELL"
681 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string
=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev
/null
6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix
=/usr
/local
735 ac_config_libobj_dir
=.
741 SHELL
=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
745 PACKAGE_TARNAME
='spl'
746 PACKAGE_VERSION
='0.6.5.11'
747 PACKAGE_STRING
='spl 0.6.5.11'
750 # Factoring default headers for most tests.
751 ac_includes_default
="\
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
763 # ifdef HAVE_STDLIB_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
786 ac_subst_vars
='am__EXEEXT_FALSE
874 INSTALL_STRIP_PROGRAM
892 MAINTAINER_MODE_FALSE
945 program_transform_name
957 enable_option_checking
958 enable_maintainer_mode
960 enable_dependency_tracking
974 enable_debug_kmem_tracking
975 enable_atomic_spinlocks
977 ac_precious_vars
='build_alias
988 # Initialize some variables set by options.
990 ac_init_version
=false
991 ac_unrecognized_opts
=
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
1002 program_transform_name
=s
,x
,x
,
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir
='${exec_prefix}/bin'
1017 sbindir
='${exec_prefix}/sbin'
1018 libexecdir
='${exec_prefix}/libexec'
1019 datarootdir
='${prefix}/share'
1020 datadir
='${datarootdir}'
1021 sysconfdir
='${prefix}/etc'
1022 sharedstatedir
='${prefix}/com'
1023 localstatedir
='${prefix}/var'
1024 includedir
='${prefix}/include'
1025 oldincludedir
='/usr/include'
1026 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027 infodir
='${datarootdir}/info'
1032 libdir
='${exec_prefix}/lib'
1033 localedir
='${datarootdir}/locale'
1034 mandir
='${datarootdir}/man'
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\
$ac_option
1048 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1054 case $ac_dashdash$ac_option in
1058 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1060 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1061 bindir
=$ac_optarg ;;
1063 -build |
--build |
--buil |
--bui |
--bu)
1064 ac_prev
=build_alias
;;
1065 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1066 build_alias
=$ac_optarg ;;
1068 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1069 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1070 ac_prev
=cache_file
;;
1071 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1072 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1073 cache_file
=$ac_optarg ;;
1075 --config-cache |
-C)
1076 cache_file
=config.cache
;;
1078 -datadir |
--datadir |
--datadi |
--datad)
1080 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1081 datadir
=$ac_optarg ;;
1083 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1084 |
--dataroo |
--dataro |
--datar)
1085 ac_prev
=datarootdir
;;
1086 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1087 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1088 datarootdir
=$ac_optarg ;;
1090 -disable-* |
--disable-*)
1091 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_
$ac_useropt"
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval enable_
$ac_useropt=no
;;
1107 -docdir |
--docdir |
--docdi |
--doc |
--do)
1109 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1110 docdir
=$ac_optarg ;;
1112 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1114 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1115 dvidir
=$ac_optarg ;;
1117 -enable-* |
--enable-*)
1118 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1121 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_
$ac_useropt"
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval enable_
$ac_useropt=\
$ac_optarg ;;
1134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1136 |
--exec |
--exe |
--ex)
1137 ac_prev
=exec_prefix
;;
1138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1140 |
--exec=* |
--exe=* |
--ex=*)
1141 exec_prefix
=$ac_optarg ;;
1143 -gas |
--gas |
--ga |
--g)
1144 # Obsolete; use --with-gas.
1147 -help |
--help |
--hel |
--he |
-h)
1148 ac_init_help
=long
;;
1149 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1150 ac_init_help
=recursive
;;
1151 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1152 ac_init_help
=short
;;
1154 -host |
--host |
--hos |
--ho)
1155 ac_prev
=host_alias
;;
1156 -host=* |
--host=* |
--hos=* |
--ho=*)
1157 host_alias
=$ac_optarg ;;
1159 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1161 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1163 htmldir
=$ac_optarg ;;
1165 -includedir |
--includedir |
--includedi |
--included |
--include \
1166 |
--includ |
--inclu |
--incl |
--inc)
1167 ac_prev
=includedir
;;
1168 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1169 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1170 includedir
=$ac_optarg ;;
1172 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1174 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1175 infodir
=$ac_optarg ;;
1177 -libdir |
--libdir |
--libdi |
--libd)
1179 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1180 libdir
=$ac_optarg ;;
1182 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1183 |
--libexe |
--libex |
--libe)
1184 ac_prev
=libexecdir
;;
1185 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1186 |
--libexe=* |
--libex=* |
--libe=*)
1187 libexecdir
=$ac_optarg ;;
1189 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1190 ac_prev
=localedir
;;
1191 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1192 localedir
=$ac_optarg ;;
1194 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1195 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1196 ac_prev
=localstatedir
;;
1197 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1198 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1199 localstatedir
=$ac_optarg ;;
1201 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1203 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1204 mandir
=$ac_optarg ;;
1206 -nfp |
--nfp |
--nf)
1207 # Obsolete; use --without-fp.
1210 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1211 |
--no-cr |
--no-c |
-n)
1214 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1215 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1218 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1219 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1220 |
--oldin |
--oldi |
--old |
--ol |
--o)
1221 ac_prev
=oldincludedir
;;
1222 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1223 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1224 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1225 oldincludedir
=$ac_optarg ;;
1227 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1229 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1230 prefix
=$ac_optarg ;;
1232 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1233 |
--program-pre |
--program-pr |
--program-p)
1234 ac_prev
=program_prefix
;;
1235 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1236 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1237 program_prefix
=$ac_optarg ;;
1239 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1240 |
--program-suf |
--program-su |
--program-s)
1241 ac_prev
=program_suffix
;;
1242 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1243 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1244 program_suffix
=$ac_optarg ;;
1246 -program-transform-name |
--program-transform-name \
1247 |
--program-transform-nam |
--program-transform-na \
1248 |
--program-transform-n |
--program-transform- \
1249 |
--program-transform |
--program-transfor \
1250 |
--program-transfo |
--program-transf \
1251 |
--program-trans |
--program-tran \
1252 |
--progr-tra |
--program-tr |
--program-t)
1253 ac_prev
=program_transform_name
;;
1254 -program-transform-name=* |
--program-transform-name=* \
1255 |
--program-transform-nam=* |
--program-transform-na=* \
1256 |
--program-transform-n=* |
--program-transform-=* \
1257 |
--program-transform=* |
--program-transfor=* \
1258 |
--program-transfo=* |
--program-transf=* \
1259 |
--program-trans=* |
--program-tran=* \
1260 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1261 program_transform_name
=$ac_optarg ;;
1263 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1265 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1266 pdfdir
=$ac_optarg ;;
1268 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1270 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1273 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1274 |
-silent |
--silent |
--silen |
--sile |
--sil)
1277 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1279 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1281 sbindir
=$ac_optarg ;;
1283 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1284 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1285 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1287 ac_prev
=sharedstatedir
;;
1288 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1289 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1290 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1292 sharedstatedir
=$ac_optarg ;;
1294 -site |
--site |
--sit)
1296 -site=* |
--site=* |
--sit=*)
1299 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1301 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1302 srcdir
=$ac_optarg ;;
1304 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1305 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1306 ac_prev
=sysconfdir
;;
1307 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1308 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1309 sysconfdir
=$ac_optarg ;;
1311 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1312 ac_prev
=target_alias
;;
1313 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1314 target_alias
=$ac_optarg ;;
1316 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1319 -version |
--version |
--versio |
--versi |
--vers |
-V)
1320 ac_init_version
=: ;;
1323 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1326 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1327 { (exit 1); exit 1; }; }
1328 ac_useropt_orig
=$ac_useropt
1329 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1334 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep
=', ';;
1337 eval with_
$ac_useropt=\
$ac_optarg ;;
1339 -without-* |
--without-*)
1340 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
1345 ac_useropt_orig
=$ac_useropt
1346 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1351 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep
=', ';;
1354 eval with_
$ac_useropt=no
;;
1357 # Obsolete; use --with-x.
1360 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1361 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1362 ac_prev
=x_includes
;;
1363 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1364 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1365 x_includes
=$ac_optarg ;;
1367 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1368 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1369 ac_prev
=x_libraries
;;
1370 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1371 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1372 x_libraries
=$ac_optarg ;;
1374 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1375 Try \`$0 --help' for more information." >&2
1376 { (exit 1); exit 1; }; }
1380 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1383 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1384 { (exit 1); exit 1; }; }
1385 eval $ac_envvar=\
$ac_optarg
1386 export $ac_envvar ;;
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1399 if test -n "$ac_prev"; then
1400 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1401 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1402 { (exit 1); exit 1; }; }
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1408 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1409 { (exit 1); exit 1; }; } ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 # Check all directory arguments for consistency.
1415 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1420 eval ac_val
=\$
$ac_var
1421 # Remove trailing slashes.
1424 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\
$ac_val;;
1427 # Be sure to have absolute directory names.
1429 [\\/$
]* | ?
:[\\/]* ) continue;;
1430 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1432 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1433 { (exit 1); exit 1; }; }
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1441 target
=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x
; then
1445 if test "x$build_alias" = x
; then
1446 cross_compiling
=maybe
1447 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used." >&2
1449 elif test "x$build_alias" != "x$host_alias"; then
1455 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1457 test "$silent" = yes && exec 6>/dev
/null
1460 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di
=`ls -di .` &&
1462 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1463 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1464 { (exit 1); exit 1; }; }
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1467 { (exit 1); exit 1; }; }
1470 # Find the source files, if location was not specified.
1471 if test -z "$srcdir"; then
1472 ac_srcdir_defaulted
=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir
=`$as_dirname -- "$as_myself" ||
1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479 $as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1502 ac_srcdir_defaulted
=no
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1506 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1507 { (exit 1); exit 1; }; }
1509 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1511 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1512 { (exit 1); exit 1; }; }
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1522 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 for ac_var
in $ac_precious_vars; do
1525 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1527 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1532 # Report the --help message.
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1538 \`configure' configures spl 0.6.5.11 to adapt to many kinds of systems.
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1545 Defaults for the options are specified in brackets.
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1569 For better control, use the options below.
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1601 --build=BUILD configure
for building on BUILD
[guessed
]
1602 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1603 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1607 if test -n "$ac_init_help"; then
1608 case $ac_init_help in
1609 short | recursive
) echo "Configuration of spl 0.6.5.11:";;
1614 --disable-option-checking ignore unrecognized
--enable/--with options
1615 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1616 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing
) to the casual installer
1619 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1620 --disable-silent-rules verbose build output (undo: `make V
=0')
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
1623 --enable-shared[=PKGS] build shared libraries [default=yes]
1624 --enable-static[=PKGS] build static libraries [default=yes]
1625 --enable-fast-install[=PKGS]
1626 optimize for fast installation [default=yes]
1627 --disable-libtool-lock avoid locking (might break parallel builds)
1628 --enable-linux-builtin Configure for builtin in-tree kernel modules
1630 --enable-debug Enable generic debug support [default=no]
1631 --enable-debug-kmem Enable basic kmem accounting [default=no]
1632 --enable-debug-kmem-tracking
1633 Enable detailed kmem tracking [default=no]
1634 --enable-atomic-spinlocks
1635 Atomic types use spinlocks [default=check]
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-pic try to use only PIC/non-PIC objects [default=use
1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1643 --with-spec=SPEC Spec files 'generic|redhat
'
1644 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1645 --with-linux=PATH Path to kernel source
1646 --with-linux-obj=PATH Path to kernel build objects
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1658 Use these variables to override the choices made by `configure' or to
help
1659 it to
find libraries and programs with nonstandard names
/locations.
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1674 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1676 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1681 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1684 ac_abs_top_builddir
=$ac_pwd
1685 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir
=$ac_top_build_prefix
1690 .
) # We are building in place.
1692 ac_top_srcdir
=$ac_top_builddir_sub
1693 ac_abs_top_srcdir
=$ac_pwd ;;
1694 [\\/]* | ?
:[\\/]* ) # Absolute name.
1695 ac_srcdir
=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir
=$srcdir
1697 ac_abs_top_srcdir
=$srcdir ;;
1699 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1703 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1723 spl configure
0.6.5.11
1724 generated by GNU Autoconf
2.63
1726 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1728 This configure
script is free software
; the Free Software Foundation
1729 gives unlimited permission to copy
, distribute and modify it.
1733 cat >config.log
<<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by spl $as_me 0.6.5.11, which was
1738 generated by GNU Autoconf 2.63. Invocation command line was
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir
=.
1774 $as_echo "PATH: $as_dir"
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_must_keep_next
=false
1804 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1805 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1806 |
-silent |
--silent |
--silen |
--sile |
--sil)
1809 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1814 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true
; then
1816 ac_must_keep_next
=false
# Got value, back to normal.
1819 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1820 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1821 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1822 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 -* ) ac_must_keep_next
=true
;;
1830 ac_configure_args
="$ac_configure_args '$ac_arg'"
1835 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1836 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1854 # The following way of writing the cache mishandles newlines in values,
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) $as_unset $ac_var ;;
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1892 for ac_var in $ac_subst_vars
1894 eval ac_val=\$$ac_var
1896 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 $as_echo "$ac_var='\''$ac_val'\''"
1902 if test -n "$ac_subst_files"; then
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1909 for ac_var
in $ac_subst_files
1911 eval ac_val
=\$
$ac_var
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 $as_echo "$ac_var='\''$ac_val'\''"
1920 if test -s confdefs.h; then
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938 for ac_signal
in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest
* confdefs.h
1946 # Predefined preprocessor variables.
1948 cat >>confdefs.h
<<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 cat >>confdefs.h
<<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 cat >>confdefs.h
<<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 cat >>confdefs.h
<<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 cat >>confdefs.h
<<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1977 if test -n "$CONFIG_SITE"; then
1978 ac_site_file1
=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE
; then
1980 ac_site_file1
=$prefix/share
/config.site
1981 ac_site_file2
=$prefix/etc
/config.site
1983 ac_site_file1
=$ac_default_prefix/share
/config.site
1984 ac_site_file2
=$ac_default_prefix/etc
/config.site
1986 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1988 test "x$ac_site_file" = xNONE
&& continue
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2005 *) .
"./$cache_file";;
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2014 # Check that the precious variables saved in the cache have kept the same
2016 ac_cache_corrupted
=false
2017 for ac_var
in $ac_precious_vars; do
2018 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2019 eval ac_new_set
=\
$ac_env_${ac_var}_set
2020 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2021 eval ac_new_val
=\
$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted
=: ;;
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted
=: ;;
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w
=`echo x $ac_old_val`
2036 ac_new_val_w
=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted
=:
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\
$ac_old_val
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2055 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg
=$ac_var=$ac_new_val ;;
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2064 if $ac_cache_corrupted; then
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
2099 ac_cpp
='$CPP $CPPFLAGS'
2100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2106 ac_cpp
='$CPP $CPPFLAGS'
2107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2112 for ac_prog
in gawk mawk nawk
awk
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115 set dummy
$ac_prog; ac_word
=$2
2116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 $as_echo_n "checking for $ac_word... " >&6; }
2118 if test "${ac_cv_prog_AWK+set}" = set; then
2119 $as_echo_n "(cached) " >&6
2121 if test -n "$AWK"; then
2122 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir
=.
2129 for ac_exec_ext
in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_AWK
="$ac_prog"
2132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test -n "$AWK"; then
2143 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2144 $as_echo "$AWK" >&6; }
2146 { $as_echo "$as_me:$LINENO: result: no" >&5
2147 $as_echo "no" >&6; }
2151 test -n "$AWK" && break
2154 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2155 $as_echo_n "checking metadata... " >&6; }
2158 _spl_ac_meta_type
="none"
2159 if test -f "$META"; then
2160 _spl_ac_meta_type
="META file"
2162 SPL_META_NAME
=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2163 if test -n "$SPL_META_NAME"; then
2165 cat >>confdefs.h
<<_ACEOF
2166 #define SPL_META_NAME "$SPL_META_NAME"
2172 SPL_META_VERSION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2173 if test -n "$SPL_META_VERSION"; then
2175 cat >>confdefs.h
<<_ACEOF
2176 #define SPL_META_VERSION "$SPL_META_VERSION"
2182 SPL_META_RELEASE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2183 if test ! -f ".nogitrelease" && git rev-parse
--git-dir > /dev
/null
2>&1; then
2184 _match
="${SPL_META_NAME}-${SPL_META_VERSION}"
2185 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2186 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2187 if test -n "${_release}"; then
2188 SPL_META_RELEASE
=${_release}
2189 _spl_ac_meta_type
="git describe"
2193 if test -n "$SPL_META_RELEASE"; then
2195 cat >>confdefs.h
<<_ACEOF
2196 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2201 RELEASE
="$SPL_META_RELEASE"
2205 SPL_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2206 if test -n "$SPL_META_LICENSE"; then
2208 cat >>confdefs.h
<<_ACEOF
2209 #define SPL_META_LICENSE "$SPL_META_LICENSE"
2215 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2216 SPL_META_ALIAS
="$SPL_META_NAME-$SPL_META_VERSION"
2217 test -n "$SPL_META_RELEASE" &&
2218 SPL_META_ALIAS
="$SPL_META_ALIAS-$SPL_META_RELEASE"
2220 cat >>confdefs.h
<<_ACEOF
2221 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2227 SPL_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2228 if test -n "$SPL_META_DATA"; then
2230 cat >>confdefs.h
<<_ACEOF
2231 #define SPL_META_DATA "$SPL_META_DATA"
2237 SPL_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2238 if test -n "$SPL_META_AUTHOR"; then
2240 cat >>confdefs.h
<<_ACEOF
2241 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2248 SPL_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2249 SPL_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2250 SPL_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2251 if test -n "$SPL_META_LT_CURRENT" \
2252 -o -n "$SPL_META_LT_REVISION" \
2253 -o -n "$SPL_META_LT_AGE"; then
2254 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT
="0"
2255 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION
="0"
2256 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE
="0"
2258 cat >>confdefs.h
<<_ACEOF
2259 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2263 cat >>confdefs.h
<<_ACEOF
2264 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2268 cat >>confdefs.h
<<_ACEOF
2269 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2278 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_type" >&5
2279 $as_echo "$_spl_ac_meta_type" >&6; }
2283 for ac_dir
in config
"$srcdir"/config
; do
2284 if test -f "$ac_dir/install-sh"; then
2286 ac_install_sh
="$ac_aux_dir/install-sh -c"
2288 elif test -f "$ac_dir/install.sh"; then
2290 ac_install_sh
="$ac_aux_dir/install.sh -c"
2292 elif test -f "$ac_dir/shtool"; then
2294 ac_install_sh
="$ac_aux_dir/shtool install -c"
2298 if test -z "$ac_aux_dir"; then
2299 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2300 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2301 { (exit 1); exit 1; }; }
2304 # These three variables are undocumented and unsupported,
2305 # and are intended to be withdrawn in a future Autoconf release.
2306 # They can cause serious problems if a builder's source tree is in a directory
2307 # whose full name contains unusual characters.
2308 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314 # Make sure we can run config.sub.
2315 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2316 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2317 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2318 { (exit 1); exit 1; }; }
2320 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2321 $as_echo_n "checking build system type... " >&6; }
2322 if test "${ac_cv_build+set}" = set; then
2323 $as_echo_n "(cached) " >&6
2325 ac_build_alias
=$build_alias
2326 test "x$ac_build_alias" = x
&&
2327 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2328 test "x$ac_build_alias" = x
&&
2329 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2330 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2331 { (exit 1); exit 1; }; }
2332 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2333 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2334 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2335 { (exit 1); exit 1; }; }
2338 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2339 $as_echo "$ac_cv_build" >&6; }
2340 case $ac_cv_build in
2342 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2343 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2344 { (exit 1); exit 1; }; };;
2347 ac_save_IFS
=$IFS; IFS
='-'
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2357 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2360 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2361 $as_echo_n "checking host system type... " >&6; }
2362 if test "${ac_cv_host+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2365 if test "x$host_alias" = x
; then
2366 ac_cv_host
=$ac_cv_build
2368 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2369 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2370 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2371 { (exit 1); exit 1; }; }
2375 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2376 $as_echo "$ac_cv_host" >&6; }
2379 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2380 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2381 { (exit 1); exit 1; }; };;
2384 ac_save_IFS
=$IFS; IFS
='-'
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2394 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2397 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2398 $as_echo_n "checking target system type... " >&6; }
2399 if test "${ac_cv_target+set}" = set; then
2400 $as_echo_n "(cached) " >&6
2402 if test "x$target_alias" = x
; then
2403 ac_cv_target
=$ac_cv_host
2405 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2406 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2408 { (exit 1); exit 1; }; }
2412 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2413 $as_echo "$ac_cv_target" >&6; }
2414 case $ac_cv_target in
2416 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2417 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2418 { (exit 1); exit 1; }; };;
2420 target
=$ac_cv_target
2421 ac_save_IFS
=$IFS; IFS
='-'
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2431 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434 # The aliases save the names the user supplied, while $host etc.
2435 # will get canonicalized.
2436 test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2439 program_prefix
=${target_alias}-
2441 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2442 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2443 # Check whether --enable-maintainer-mode was given.
2444 if test "${enable_maintainer_mode+set}" = set; then
2445 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2447 USE_MAINTAINER_MODE
=no
2450 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2451 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2452 if test $USE_MAINTAINER_MODE = yes; then
2453 MAINTAINER_MODE_TRUE
=
2454 MAINTAINER_MODE_FALSE
='#'
2456 MAINTAINER_MODE_TRUE
='#'
2457 MAINTAINER_MODE_FALSE
=
2460 MAINT
=$MAINTAINER_MODE_TRUE
2463 # Check whether --enable-silent-rules was given.
2464 if test "${enable_silent_rules+set}" = set; then
2465 enableval
=$enable_silent_rules;
2468 case $enable_silent_rules in
2469 yes) AM_DEFAULT_VERBOSITY
=0;;
2470 no
) AM_DEFAULT_VERBOSITY
=1;;
2471 *) AM_DEFAULT_VERBOSITY
=0;;
2475 am__api_version='1.11'
2477 # Find a good install program. We prefer a C program (faster),
2478 # so one script is as good as another. But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if test "${ac_cv_path_install+set}" = set; then
2495 $as_echo_n "(cached) " >&6
2497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir
=.
2502 # Account for people who put trailing slashes in PATH elements.
2504 .
/ | .
// |
/cC
/* | \
2505 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2506 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2509 # OSF1 and SCO ODT 3.0 have their own names for install.
2510 # Don't use installbsd from OSF since it installs stuff as root
2512 for ac_prog
in ginstall scoinst
install; do
2513 for ac_exec_ext
in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2515 if test $ac_prog = install &&
2516 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2517 # AIX install. It has an incompatible calling convention.
2519 elif test $ac_prog = install &&
2520 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2521 # program-specific install script used by HP pwplus--don't use.
2524 rm -rf conftest.one conftest.two conftest.dir
2525 echo one
> conftest.one
2526 echo two
> conftest.two
2528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2529 test -s conftest.one
&& test -s conftest.two
&&
2530 test -s conftest.dir
/conftest.one
&&
2531 test -s conftest.dir
/conftest.two
2533 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2546 rm -rf conftest.one conftest.two conftest.dir
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL
=$ac_cv_path_install
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 INSTALL
=$ac_install_sh
2559 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2568 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2570 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2574 echo timestamp
> conftest.
file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name. Accept space and tab only in the latter.
2580 *[\\\"\
#\$\&\'\`$am_lf]*)
2581 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2582 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2583 { (exit 1); exit 1; }; };;
2586 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2587 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2588 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2589 { (exit 1); exit 1; }; };;
2592 # Do `set' in a subshell so we don't clobber the current shell's
2593 # arguments. Must try -L first in case configure is actually a
2594 # symlink; some systems play weird games with the mod time of symlinks
2595 # (eg FreeBSD returns the mod time of the symlink's containing
2598 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599 if test "$*" = "X"; then
2601 set X
`ls -t "$srcdir/configure" conftest.file`
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
2611 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2612 alias in your environment" >&5
2613 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2614 alias in your environment" >&2;}
2615 { (exit 1); exit 1; }; }
2618 test "$2" = conftest.
file
2624 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2625 Check your system clock" >&5
2626 $as_echo "$as_me: error: newly created file is older than distributed files!
2627 Check your system clock" >&2;}
2628 { (exit 1); exit 1; }; }
2630 { $as_echo "$as_me:$LINENO: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632 test "$program_prefix" != NONE
&&
2633 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2634 # Use a double $ so make ignores it.
2635 test "$program_suffix" != NONE
&&
2636 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2637 # Double any \ or $.
2638 # By default was `s,x,x', remove it if useless.
2639 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2640 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2642 # expand $ac_aux_dir to an absolute path
2643 am_aux_dir
=`cd $ac_aux_dir && pwd`
2645 if test x
"${MISSING+set}" != xset
; then
2648 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2650 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2653 # Use eval to expand $SHELL
2654 if eval "$MISSING --run true"; then
2655 am_missing_run
="$MISSING --run "
2658 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2659 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2662 if test x
"${install_sh}" != xset
; then
2665 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2667 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2671 # Installed binaries are usually stripped using `strip' when the user
2672 # run `make install-strip'. However `strip' might not be the right
2673 # tool to use in cross-compilation environments, therefore Automake
2674 # will honor the `STRIP' environment variable to overrule this program.
2675 if test "$cross_compiling" != no
; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_STRIP+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$STRIP"; then
2685 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir
=.
2692 for ac_exec_ext
in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 STRIP
=$ac_cv_prog_STRIP
2705 if test -n "$STRIP"; then
2706 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2707 $as_echo "$STRIP" >&6; }
2709 { $as_echo "$as_me:$LINENO: result: no" >&5
2710 $as_echo "no" >&6; }
2715 if test -z "$ac_cv_prog_STRIP"; then
2717 # Extract the first word of "strip", so it can be a program name with args.
2718 set dummy strip
; ac_word
=$2
2719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$ac_ct_STRIP"; then
2725 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_STRIP
="strip"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2745 if test -n "$ac_ct_STRIP"; then
2746 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2747 $as_echo "$ac_ct_STRIP" >&6; }
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2753 if test "x$ac_ct_STRIP" = x
; then
2756 case $cross_compiling:$ac_tool_warned in
2758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned
=yes ;;
2765 STRIP
="$ac_cv_prog_STRIP"
2769 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2771 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773 if test -z "$MKDIR_P"; then
2774 if test "${ac_cv_path_mkdir+set}" = set; then
2775 $as_echo_n "(cached) " >&6
2777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2778 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2781 test -z "$as_dir" && as_dir
=.
2782 for ac_prog
in mkdir gmkdir
; do
2783 for ac_exec_ext
in '' $ac_executable_extensions; do
2784 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786 'mkdir (GNU coreutils) '* | \
2787 'mkdir (coreutils) '* | \
2788 'mkdir (fileutils) '4.1*)
2789 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2799 if test "${ac_cv_path_mkdir+set}" = set; then
2800 MKDIR_P
="$ac_cv_path_mkdir -p"
2802 # As a last resort, use the slow shell script. Don't cache a
2803 # value for MKDIR_P within a source directory, because that will
2804 # break other packages using the cache if that directory is
2805 # removed, or if the value is a relative name.
2806 test -d .
/--version && rmdir .
/--version
2807 MKDIR_P
="$ac_install_sh -d"
2810 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2811 $as_echo "$MKDIR_P" >&6; }
2815 [\\/$
]* | ?
:[\\/]*) ;;
2816 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2819 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2820 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2822 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2823 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2824 $as_echo_n "(cached) " >&6
2826 cat >conftest.
make <<\_ACEOF
2829 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2832 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2834 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2836 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2840 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2841 { $as_echo "$as_me:$LINENO: result: yes" >&5
2842 $as_echo "yes" >&6; }
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2847 SET_MAKE
="MAKE=${MAKE-make}"
2850 rm -rf .tst
2>/dev
/null
2851 mkdir .tst
2>/dev
/null
2852 if test -d .tst
; then
2857 rmdir .tst
2>/dev
/null
2859 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2861 # is not polluted with repeated "-I."
2862 am__isrc
=' -I$(srcdir)'
2863 # test to see if srcdir already configured
2864 if test -f $srcdir/config.status
; then
2865 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2866 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2867 { (exit 1); exit 1; }; }
2871 # test whether we have cygpath
2872 if test -z "$CYGPATH_W"; then
2873 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2874 CYGPATH_W
='cygpath -w'
2881 # Define the identity of the package.
2886 cat >>confdefs.h
<<_ACEOF
2887 #define PACKAGE "$PACKAGE"
2891 cat >>confdefs.h
<<_ACEOF
2892 #define VERSION "$VERSION"
2895 # Some tools Automake needs.
2897 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2900 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2903 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2906 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2909 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2911 # We need awk for the "check" target. The system "awk" is bad on
2913 # Always define AMTAR for backward compatibility.
2915 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2917 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2923 ac_config_headers
="$ac_config_headers spl_config.h"
2926 # Find a good install program. We prefer a C program (faster),
2927 # so one script is as good as another. But avoid the broken or
2928 # incompatible versions:
2929 # SysV /etc/install, /usr/sbin/install
2930 # SunOS /usr/etc/install
2931 # IRIX /sbin/install
2933 # AmigaOS /C/install, which installs bootblocks on floppy discs
2934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2937 # OS/2's system install, which has a completely different semantic
2938 # ./install, which can be erroneously created by make from ./install.sh.
2939 # Reject install programs that cannot install multiple files.
2940 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2942 if test -z "$INSTALL"; then
2943 if test "${ac_cv_path_install+set}" = set; then
2944 $as_echo_n "(cached) " >&6
2946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir
=.
2951 # Account for people who put trailing slashes in PATH elements.
2953 .
/ | .
// |
/cC
/* | \
2954 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2955 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2961 for ac_prog
in ginstall scoinst
install; do
2962 for ac_exec_ext
in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2964 if test $ac_prog = install &&
2965 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2966 # AIX install. It has an incompatible calling convention.
2968 elif test $ac_prog = install &&
2969 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2970 # program-specific install script used by HP pwplus--don't use.
2973 rm -rf conftest.one conftest.two conftest.dir
2974 echo one
> conftest.one
2975 echo two
> conftest.two
2977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2978 test -s conftest.one
&& test -s conftest.two
&&
2979 test -s conftest.dir
/conftest.one
&&
2980 test -s conftest.dir
/conftest.two
2982 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2995 rm -rf conftest.one conftest.two conftest.dir
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL
=$ac_cv_path_install
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the value is a relative name.
3005 INSTALL
=$ac_install_sh
3008 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3009 $as_echo "$INSTALL" >&6; }
3011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3012 # It thinks the first close brace ends the variable substitution.
3013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3017 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3020 ac_cpp
='$CPP $CPPFLAGS'
3021 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC
="$CC" # Let the user override the test.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:$LINENO: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_CC"; then
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc
; ac_word
=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 for ac_exec_ext
in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC
="gcc"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_CC" = x
; then
3104 case $cross_compiling:$ac_tool_warned in
3106 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned
=yes ;;
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_CC+set}" = set; then
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC
="$CC" # Let the user override the test.
3128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir
=.
3133 for ac_exec_ext
in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3150 { $as_echo "$as_me:$LINENO: result: no" >&5
3151 $as_echo "no" >&6; }
3157 if test -z "$CC"; then
3158 # Extract the first word of "cc", so it can be a program name with args.
3159 set dummy cc
; ac_word
=$2
3160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then
3163 $as_echo_n "(cached) " >&6
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC
="$CC" # Let the user override the test.
3169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir
=.
3174 for ac_exec_ext
in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177 ac_prog_rejected
=yes
3181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test $ac_prog_rejected = yes; then
3189 # We found a bogon in the path, so make sure we never use it.
3190 set dummy
$ac_cv_prog_CC
3192 if test $# != 0; then
3193 # We chose a different compiler from the bogus one.
3194 # However, it has the same basename, so the bogon will be chosen
3195 # first if we set CC to just the basename; use the full file name.
3197 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3207 { $as_echo "$as_me:$LINENO: result: no" >&5
3208 $as_echo "no" >&6; }
3213 if test -z "$CC"; then
3214 if test -n "$ac_tool_prefix"; then
3215 for ac_prog
in cl.exe
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_CC+set}" = set; then
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC
="$CC" # Let the user override the test.
3227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir
=.
3232 for ac_exec_ext
in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3249 { $as_echo "$as_me:$LINENO: result: no" >&5
3250 $as_echo "no" >&6; }
3254 test -n "$CC" && break
3257 if test -z "$CC"; then
3259 for ac_prog
in cl.exe
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy
$ac_prog; ac_word
=$2
3263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$ac_ct_CC"; then
3269 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir
=.
3276 for ac_exec_ext
in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_ac_ct_CC
="$ac_prog"
3279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3289 if test -n "$ac_ct_CC"; then
3290 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3291 $as_echo "$ac_ct_CC" >&6; }
3293 { $as_echo "$as_me:$LINENO: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$ac_ct_CC" && break
3301 if test "x$ac_ct_CC" = x
; then
3304 case $cross_compiling:$ac_tool_warned in
3306 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned
=yes ;;
3317 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3320 See \`config.log' for more details." >&5
3321 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3322 See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }; }
3325 # Provide some information about the compiler.
3326 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3329 { (ac_try
="$ac_compiler --version >&5"
3331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335 $as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler --version >&5") 2>&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3340 { (ac_try="$ac_compiler -v >&5"
3342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3343 *) ac_try_echo
=$ac_try;;
3345 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler -v >&5") 2>&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try
="$ac_compiler -V >&5"
3353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -V >&5") 2>&5
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3378 ac_clean_files_save=$ac_clean_files
3379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3380 # Try to create an executable without -o first, disregard a.out.
3381 # It will help us diagnose broken compilers, and finding out an intuition
3383 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3384 $as_echo_n "checking for C compiler default output file name... " >&6; }
3385 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3387 # The possible output files:
3388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3391 for ac_file in $ac_files
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400 if { (ac_try="$ac_link_default"
3402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3403 *) ac_try_echo
=$ac_try;;
3405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_link_default") 2>&5
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3412 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3413 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3414 # so that the user can short-circuit this test for compilers unknown to
3416 for ac_file
in $ac_files ''
3418 test -f "$ac_file" ||
continue
3420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3423 # We found the default executable, but exeext='' is most
3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3429 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431 # We set ac_cv_exeext here because the later test for it is not
3432 # safe: cross compilers may not add the suffix if given an `-o'
3433 # argument, so we may need to know it at that point already.
3434 # Even if this section looks crufty: it has the advantage of
3441 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3447 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3448 $as_echo "$ac_file" >&6; }
3449 if test -z "$ac_file"; then
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3456 See \`config.log' for more details." >&5
3457 $as_echo "$as_me: error: C compiler cannot create executables
3458 See \`config.log' for more details." >&2;}
3459 { (exit 77); exit 77; }; }; }
3462 ac_exeext
=$ac_cv_exeext
3464 # Check that the compiler produces executables we can run. If not, either
3465 # the compiler is broken, or we cross compile.
3466 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3467 $as_echo_n "checking whether the C compiler works... " >&6; }
3468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3469 # If not cross compiling, check that we can run a simple program.
3470 if test "$cross_compiling" != yes; then
3471 if { ac_try
='./$ac_file'
3472 { (case "(($ac_try" in
3473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477 $as_echo "$ac_try_echo") >&5
3478 (eval "$ac_try") 2>&5
3480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3484 if test "$cross_compiling" = maybe; then
3487 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3490 If you meant to cross compile
, use \
`--host'.
3491 See \`config.log
' for more details." >&5
3492 $as_echo "$as_me: error: cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \
`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }; }
3499 { $as_echo "$as_me:$LINENO: result: yes" >&5
3500 $as_echo "yes" >&6; }
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 # Check that the compiler produces executables we can run. If not, either
3505 # the compiler is broken, or we cross compile.
3506 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3507 $as_echo_n "checking whether we are cross compiling... " >&6; }
3508 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3509 $as_echo "$cross_compiling" >&6; }
3511 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3512 $as_echo_n "checking for suffix of executables... " >&6; }
3513 if { (ac_try="$ac_link"
3515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3516 *) ac_try_echo
=$ac_try;;
3518 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_link") 2>&5
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; then
3524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3526 # work properly (i.e., refer to `conftest.exe'), while it won't with
3528 for ac_file
in conftest.exe conftest conftest.
*; do
3529 test -f "$ac_file" ||
continue
3531 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3532 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }; }
3547 rm -f conftest
$ac_cv_exeext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3549 $as_echo "$ac_cv_exeext" >&6; }
3551 rm -f conftest.
$ac_ext
3552 EXEEXT
=$ac_cv_exeext
3554 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if test "${ac_cv_objext+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3574 rm -f conftest.o conftest.obj
3575 if { (ac_try
="$ac_compile"
3577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_compile") 2>&5
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3601 See \
`config.log' for more details." >&5
3602 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3603 See \`config.log
' for more details." >&2;}
3604 { (exit 1); exit 1; }; }; }
3607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3609 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3610 $as_echo "$ac_cv_objext" >&6; }
3611 OBJEXT=$ac_cv_objext
3613 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3616 $as_echo_n "(cached) " >&6
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3636 rm -f conftest.$ac_objext
3637 if { (ac_try="$ac_compile"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643 $as_echo "$ac_try_echo") >&5
3644 (eval "$ac_compile") 2>conftest.er1
3646 grep -v '^
*+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && {
3651 test -z "$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 } && test -s conftest.$ac_objext; then
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's
/^
/|
/' conftest.$ac_ext >&5
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3666 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3668 if test $ac_compiler_gnu = yes; then
3673 ac_test_CFLAGS=${CFLAGS+set}
3674 ac_save_CFLAGS=$CFLAGS
3675 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3677 if test "${ac_cv_prog_cc_g+set}" = set; then
3678 $as_echo_n "(cached) " >&6
3680 ac_save_c_werror_flag=$ac_c_werror_flag
3681 ac_c_werror_flag=yes
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3709 grep -v '^
*+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's
/^
/|
/' conftest.$ac_ext >&5
3723 cat >conftest.$ac_ext <<_ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745 $as_echo "$ac_try_echo") >&5
3746 (eval "$ac_compile") 2>conftest.er1
3748 grep -v '^
*+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && {
3753 test -z "$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 } && test -s conftest.$ac_objext; then
3758 $as_echo "$as_me: failed program was:" >&5
3759 sed 's
/^
/|
/' conftest.$ac_ext >&5
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785 $as_echo "$ac_try_echo") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3788 grep -v '^
*+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's
/^
/|
/' conftest.$ac_ext >&5
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3813 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3814 $as_echo "$ac_cv_prog_cc_g" >&6; }
3815 if test "$ac_test_CFLAGS" = set; then
3816 CFLAGS=$ac_save_CFLAGS
3817 elif test $ac_cv_prog_cc_g = yes; then
3818 if test "$GCC" = yes; then
3824 if test "$GCC" = yes; then
3830 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3832 if test "${ac_cv_prog_cc_c89+set}" = set; then
3833 $as_echo_n "(cached) " >&6
3835 ac_cv_prog_cc_c89=no
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3845 #include <sys/types.h>
3846 #include <sys/stat.h>
3847 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3848 struct buf
{ int x
; };
3849 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3850 static char
*e
(p
, i
)
3856 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3861 s
= g
(p
, va_arg
(v
,int
));
3866 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3867 function prototypes and stuff
, but not
'\xHH' hex character constants.
3868 These don
't provoke an error unfortunately, instead are silently treated
3869 as 'x
'. The following induces an error, until -std is added to get
3870 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3871 array size at least. It's necessary to
write '\x00'==0 to get something
3872 that
's true only with -std. */
3873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876 inside strings and character constants. */
3878 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3880 int test (int i, double x);
3881 struct s1 {int (*f) (int a);};
3882 struct s2 {int (*f) (double a);};
3883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3897 CC="$ac_save_CC $ac_arg"
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905 $as_echo "$ac_try_echo") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3908 grep -v '^
*+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 ac_cv_prog_cc_c89=$ac_arg
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's
/^
/|
/' conftest.$ac_ext >&5
3924 rm -f core conftest.err conftest.$ac_objext
3925 test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 rm -f conftest.$ac_ext
3932 case "x$ac_cv_prog_cc_c89" in
3934 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3935 $as_echo "none needed" >&6; } ;;
3937 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3938 $as_echo "unsupported" >&6; } ;;
3940 CC="$CC $ac_cv_prog_cc_c89"
3941 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3949 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 DEPDIR="${am__leading_dot}deps"
3953 ac_config_commands="$ac_config_commands depfiles"
3956 am_make=${MAKE-make}
3957 cat > confinc << 'END
'
3959 @echo this is the am__doit target
3962 # If we don't
find an include directive
, just comment out the code.
3963 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3964 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3968 # First try GNU make style include.
3969 echo "include confinc" > confmf
3970 # Ignore all kinds of additional output from `make'.
3971 case `$am_make -s -f confmf 2> /dev/null` in #(
3972 *the\ am__doit\ target
*)
3978 # Now try BSD make style include.
3979 if test "$am__include" = "#"; then
3980 echo '.include "confinc"' > confmf
3981 case `$am_make -s -f confmf 2> /dev/null` in #(
3982 *the\ am__doit\ target
*)
3983 am__include
=.include
3991 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3992 $as_echo "$_am_result" >&6; }
3993 rm -f confinc confmf
3995 # Check whether --enable-dependency-tracking was given.
3996 if test "${enable_dependency_tracking+set}" = set; then
3997 enableval
=$enable_dependency_tracking;
4000 if test "x$enable_dependency_tracking" != xno
; then
4001 am_depcomp
="$ac_aux_dir/depcomp"
4004 if test "x$enable_dependency_tracking" != xno; then
4014 depcc
="$CC" am_compiler_list
=
4016 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4017 $as_echo_n "checking dependency style of $depcc... " >&6; }
4018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4019 $as_echo_n "(cached) " >&6
4021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4022 # We make a subdir and do the tests there. Otherwise we can end up
4023 # making bogus files that we don't know about and never remove. For
4024 # instance it was reported that on HP-UX the gcc test will end up
4025 # making a dummy file named `D' -- because `-MD' means `put the output
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4040 am_cv_CC_dependencies_compiler_type
=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4045 case " $depcc " in #(
4046 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4049 for depmode
in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4058 for i
in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4061 # Solaris 8's {/usr,}/bin/sh.
4062 touch sub
/conftst
$i.h
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4067 # mode. It turns out that the SunPro C++ compiler does not properly
4068 # handle `-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs
4070 am__obj
=sub
/conftest.
${OBJEXT-o}
4071 am__minus_obj
="-o $am__obj"
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false ||
continue
4078 # after this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested
4080 if test "x$enable_dependency_tracking" = xyes
; then
4086 msvisualcpp | msvcmsys
)
4087 # This compiler won't grok `-c -o', but also, the minuso test has
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj
=conftest.
${OBJEXT-o}
4095 if depmode
=$depmode \
4096 source=sub
/conftest.c object
=$am__obj \
4097 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4098 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4099 >/dev
/null
2>conftest.err
&&
4100 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4101 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4102 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4103 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type
=$depmode
4122 am_cv_CC_dependencies_compiler_type
=none
4126 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4134 am__fastdepCC_FALSE
='#'
4136 am__fastdepCC_TRUE
='#'
4137 am__fastdepCC_FALSE
=
4143 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4149 macro_version
='2.2.6b'
4150 macro_revision
='1.3017'
4164 ltmain
="$ac_aux_dir/ltmain.sh"
4166 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4168 if test "${ac_cv_path_SED+set}" = set; then
4169 $as_echo_n "(cached) " >&6
4171 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4172 for ac_i
in 1 2 3 4 5 6 7; do
4173 ac_script
="$ac_script$as_nl$ac_script"
4175 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4176 $as_unset ac_script || ac_script
=
4177 if test -z "$SED"; then
4178 ac_path_SED_found
=false
4179 # Loop through the user's path and test for each of PROGNAME-LIST
4180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir
=.
4185 for ac_prog
in sed gsed
; do
4186 for ac_exec_ext
in '' $ac_executable_extensions; do
4187 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4188 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4189 # Check for GNU ac_path_SED and select it if it is found.
4190 # Check for GNU $ac_path_SED
4191 case `"$ac_path_SED" --version 2>&1` in
4193 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4196 $as_echo_n 0123456789 >"conftest.in"
4199 cat "conftest.in" "conftest.in" >"conftest.tmp"
4200 mv "conftest.tmp" "conftest.in"
4201 cp "conftest.in" "conftest.nl"
4202 $as_echo '' >> "conftest.nl"
4203 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4205 ac_count
=`expr $ac_count + 1`
4206 if test $ac_count -gt ${ac_path_SED_max-0}; then
4207 # Best one so far, save it but keep looking for a better one
4208 ac_cv_path_SED
="$ac_path_SED"
4209 ac_path_SED_max
=$ac_count
4211 # 10*(2^10) chars as input seems more than enough
4212 test $ac_count -gt 10 && break
4214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4217 $ac_path_SED_found && break 3
4222 if test -z "$ac_cv_path_SED"; then
4223 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4224 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4225 { (exit 1); exit 1; }; }
4232 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4233 $as_echo "$ac_cv_path_SED" >&6; }
4234 SED
="$ac_cv_path_SED"
4237 test -z "$SED" && SED
=sed
4238 Xsed
="$SED -e 1s/^X//"
4250 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4252 if test "${ac_cv_path_GREP+set}" = set; then
4253 $as_echo_n "(cached) " >&6
4255 if test -z "$GREP"; then
4256 ac_path_GREP_found
=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4259 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4262 test -z "$as_dir" && as_dir
=.
4263 for ac_prog
in grep ggrep
; do
4264 for ac_exec_ext
in '' $ac_executable_extensions; do
4265 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4267 # Check for GNU ac_path_GREP and select it if it is found.
4268 # Check for GNU $ac_path_GREP
4269 case `"$ac_path_GREP" --version 2>&1` in
4271 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4274 $as_echo_n 0123456789 >"conftest.in"
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'GREP' >> "conftest.nl"
4281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4282 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4283 ac_count
=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_GREP
="$ac_path_GREP"
4287 ac_path_GREP_max
=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4292 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4295 $ac_path_GREP_found && break 3
4300 if test -z "$ac_cv_path_GREP"; then
4301 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4302 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4303 { (exit 1); exit 1; }; }
4306 ac_cv_path_GREP
=$GREP
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4311 $as_echo "$ac_cv_path_GREP" >&6; }
4312 GREP
="$ac_cv_path_GREP"
4315 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4316 $as_echo_n "checking for egrep... " >&6; }
4317 if test "${ac_cv_path_EGREP+set}" = set; then
4318 $as_echo_n "(cached) " >&6
4320 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4321 then ac_cv_path_EGREP
="$GREP -E"
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found
=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4327 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_prog
in egrep; do
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4335 # Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337 case `"$ac_path_EGREP" --version 2>&1` in
4339 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4342 $as_echo_n 0123456789 >"conftest.in"
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4350 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4351 ac_count
=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP
="$ac_path_EGREP"
4355 ac_path_EGREP_max
=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4360 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4363 $ac_path_EGREP_found && break 3
4368 if test -z "$ac_cv_path_EGREP"; then
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
4374 ac_cv_path_EGREP
=$EGREP
4379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4380 $as_echo "$ac_cv_path_EGREP" >&6; }
4381 EGREP
="$ac_cv_path_EGREP"
4384 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4385 $as_echo_n "checking for fgrep... " >&6; }
4386 if test "${ac_cv_path_FGREP+set}" = set; then
4387 $as_echo_n "(cached) " >&6
4389 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4390 then ac_cv_path_FGREP
="$GREP -F"
4392 if test -z "$FGREP"; then
4393 ac_path_FGREP_found
=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4396 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4399 test -z "$as_dir" && as_dir
=.
4400 for ac_prog
in fgrep
; do
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4403 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4404 # Check for GNU ac_path_FGREP and select it if it is found.
4405 # Check for GNU $ac_path_FGREP
4406 case `"$ac_path_FGREP" --version 2>&1` in
4408 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4411 $as_echo_n 0123456789 >"conftest.in"
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'FGREP' >> "conftest.nl"
4418 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4419 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4420 ac_count
=`expr $ac_count + 1`
4421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_FGREP
="$ac_path_FGREP"
4424 ac_path_FGREP_max
=$ac_count
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4429 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4432 $ac_path_FGREP_found && break 3
4437 if test -z "$ac_cv_path_FGREP"; then
4438 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
4443 ac_cv_path_FGREP
=$FGREP
4448 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4449 $as_echo "$ac_cv_path_FGREP" >&6; }
4450 FGREP
="$ac_cv_path_FGREP"
4453 test -z "$GREP" && GREP
=grep
4473 # Check whether --with-gnu-ld was given.
4474 if test "${with_gnu_ld+set}" = set; then
4475 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4481 if test "$GCC" = yes; then
4482 # Check if gcc -print-prog-name=ld gives a path.
4483 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4484 $as_echo_n "checking for ld used by $CC... " >&6; }
4487 # gcc leaves a trailing carriage return which upsets mingw
4488 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4490 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4493 # Accept absolute paths.
4495 re_direlt
='/[^/][^/]*/\.\./'
4496 # Canonicalize the pathname of ld
4497 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4498 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4499 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4501 test -z "$LD" && LD
="$ac_prog"
4504 # If it fails, then pretend we aren't using GCC.
4508 # If it is relative, then search for the first ld in PATH.
4512 elif test "$with_gnu_ld" = yes; then
4513 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4514 $as_echo_n "checking for GNU ld... " >&6; }
4516 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4517 $as_echo_n "checking for non-GNU ld... " >&6; }
4519 if test "${lt_cv_path_LD+set}" = set; then
4520 $as_echo_n "(cached) " >&6
4522 if test -z "$LD"; then
4523 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4524 for ac_dir
in $PATH; do
4526 test -z "$ac_dir" && ac_dir
=.
4527 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 lt_cv_path_LD
="$ac_dir/$ac_prog"
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some variants of GNU ld only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533 *GNU
* |
*'with BFD'*)
4534 test "$with_gnu_ld" != no
&& break
4537 test "$with_gnu_ld" != yes && break
4544 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4549 if test -n "$LD"; then
4550 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4551 $as_echo "$LD" >&6; }
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4556 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4557 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4562 $as_echo_n "(cached) " >&6
4564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565 case `$LD -v 2>&1 </dev/null` in
4566 *GNU
* |
*'with BFD'*)
4567 lt_cv_prog_gnu_ld
=yes
4570 lt_cv_prog_gnu_ld
=no
4574 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576 with_gnu_ld
=$lt_cv_prog_gnu_ld
4586 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4587 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4588 if test "${lt_cv_path_NM+set}" = set; then
4589 $as_echo_n "(cached) " >&6
4591 if test -n "$NM"; then
4592 # Let the user override the test.
4595 lt_nm_to_check
="${ac_tool_prefix}nm"
4596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597 lt_nm_to_check
="$lt_nm_to_check nm"
4599 for lt_tmp_nm
in $lt_nm_to_check; do
4600 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4601 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4603 test -z "$ac_dir" && ac_dir
=.
4604 tmp_nm
="$ac_dir/$lt_tmp_nm"
4605 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4606 # Check to see if the nm accepts a BSD-compat flag.
4607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4608 # nm: unknown option "B" ignored
4609 # Tru64's nm complains that /dev/null is an invalid object file
4610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4611 */dev
/null
* |
*'Invalid file or object type'*)
4612 lt_cv_path_NM
="$tmp_nm -B"
4616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4618 lt_cv_path_NM
="$tmp_nm -p"
4622 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623 continue # so that we can try to find one that supports BSD flags
4632 : ${lt_cv_path_NM=no}
4635 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4636 $as_echo "$lt_cv_path_NM" >&6; }
4637 if test "$lt_cv_path_NM" != "no"; then
4640 # Didn't find any BSD compatible name lister, look for dumpbin.
4641 if test -n "$ac_tool_prefix"; then
4642 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4645 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$DUMPBIN"; then
4652 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir
=.
4659 for ac_exec_ext
in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 DUMPBIN
=$ac_cv_prog_DUMPBIN
4672 if test -n "$DUMPBIN"; then
4673 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4674 $as_echo "$DUMPBIN" >&6; }
4676 { $as_echo "$as_me:$LINENO: result: no" >&5
4677 $as_echo "no" >&6; }
4681 test -n "$DUMPBIN" && break
4684 if test -z "$DUMPBIN"; then
4685 ac_ct_DUMPBIN
=$DUMPBIN
4686 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy
$ac_prog; ac_word
=$2
4690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4693 $as_echo_n "(cached) " >&6
4695 if test -n "$ac_ct_DUMPBIN"; then
4696 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir
=.
4703 for ac_exec_ext
in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4716 if test -n "$ac_ct_DUMPBIN"; then
4717 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4718 $as_echo "$ac_ct_DUMPBIN" >&6; }
4720 { $as_echo "$as_me:$LINENO: result: no" >&5
4721 $as_echo "no" >&6; }
4725 test -n "$ac_ct_DUMPBIN" && break
4728 if test "x$ac_ct_DUMPBIN" = x
; then
4731 case $cross_compiling:$ac_tool_warned in
4733 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned
=yes ;;
4737 DUMPBIN
=$ac_ct_DUMPBIN
4742 if test "$DUMPBIN" != ":"; then
4746 test -z "$NM" && NM
=nm
4753 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4755 if test "${lt_cv_nm_interface+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4758 lt_cv_nm_interface
="BSD nm"
4759 echo "int some_variable = 0;" > conftest.
$ac_ext
4760 (eval echo "\"\$as_me:4760: $ac_compile\"" >&5)
4761 (eval "$ac_compile" 2>conftest.err
)
4762 cat conftest.err
>&5
4763 (eval echo "\"\$as_me:4763: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4765 cat conftest.err
>&5
4766 (eval echo "\"\$as_me:4766: output\"" >&5)
4767 cat conftest.out
>&5
4768 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4769 lt_cv_nm_interface
="MS dumpbin"
4773 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4774 $as_echo "$lt_cv_nm_interface" >&6; }
4776 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4777 $as_echo_n "checking whether ln -s works... " >&6; }
4779 if test "$LN_S" = "ln -s"; then
4780 { $as_echo "$as_me:$LINENO: result: yes" >&5
4781 $as_echo "yes" >&6; }
4783 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4784 $as_echo "no, using $LN_S" >&6; }
4787 # find the maximum length of command line arguments
4788 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4790 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4798 # On DJGPP, this test can blow up pretty badly due to problems in libc
4799 # (any single argument exceeding 2000 bytes causes a buffer overrun
4800 # during glob expansion). Even if it were fixed, the result of this
4801 # check would be larger than it should be.
4802 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4806 # Under GNU Hurd, this test is not required because there is
4807 # no limit to the length of command line arguments.
4808 # Libtool will interpret -1 as no limit whatsoever
4809 lt_cv_sys_max_cmd_len
=-1;
4812 cygwin
* | mingw
* | cegcc
*)
4813 # On Win9x/ME, this test blows up -- it succeeds, but takes
4814 # about 5 minutes as the teststring grows exponentially.
4815 # Worse, since 9x/ME are not pre-emptively multitasking,
4816 # you end up with a "frozen" computer, even though with patience
4817 # the test eventually succeeds (with a max line length of 256k).
4818 # Instead, let's just punt: use the minimum linelength reported by
4819 # all of the supported platforms: 8192 (on NT/2K/XP).
4820 lt_cv_sys_max_cmd_len
=8192;
4824 # On AmigaOS with pdksh, this test takes hours, literally.
4825 # So we just punt and use a minimum line length of 8192.
4826 lt_cv_sys_max_cmd_len
=8192;
4829 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4830 # This has been around since 386BSD, at least. Likely further.
4831 if test -x /sbin
/sysctl
; then
4832 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4833 elif test -x /usr
/sbin
/sysctl
; then
4834 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4836 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4838 # And add a safety zone
4839 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4840 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4845 lt_cv_sys_max_cmd_len
=196608
4849 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4850 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4851 # nice to cause kernel panics so lets avoid the loop below.
4852 # First set a reasonable default.
4853 lt_cv_sys_max_cmd_len
=16384
4855 if test -x /sbin
/sysconfig
; then
4856 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4857 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4862 lt_cv_sys_max_cmd_len
=102400
4864 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4865 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4866 if test -n "$kargmax"; then
4867 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4869 lt_cv_sys_max_cmd_len
=32768
4873 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4874 if test -n "$lt_cv_sys_max_cmd_len"; then
4875 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4876 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4878 # Make teststring a little bigger before we do anything with it.
4879 # a 1K string should be a reasonable start.
4880 for i
in 1 2 3 4 5 6 7 8 ; do
4881 teststring
=$teststring$teststring
4883 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4884 # If test is not a shell built-in, we'll probably end up computing a
4885 # maximum length that is only half of the actual maximum length, but
4887 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4888 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4889 test $i != 17 # 1/2 MB should be enough
4892 teststring
=$teststring$teststring
4894 # Only check the string length outside the loop.
4895 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4897 # Add a significant safety factor because C++ compilers can tack on
4898 # massive amounts of additional arguments before passing them to the
4899 # linker. It appears as though 1/2 is a usable value.
4900 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4907 if test -n $lt_cv_sys_max_cmd_len ; then
4908 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4909 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4911 { $as_echo "$as_me:$LINENO: result: none" >&5
4912 $as_echo "none" >&6; }
4914 max_cmd_len
=$lt_cv_sys_max_cmd_len
4925 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4926 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4927 # Try some XSI features
4930 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4932 && eval 'test $(( 1 + 1 )) -eq 2 \
4933 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4935 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
4936 $as_echo "$xsi_shell" >&6; }
4939 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
4940 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
4942 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4944 && lt_shell_append=yes
4945 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
4946 $as_echo "$lt_shell_append" >&6; }
4949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4959 # test EBCDIC or ASCII
4960 case `echo X|tr X '\101'` in
4961 A) # ASCII based system
4962 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4963 lt_SP2NL='tr \040 \012'
4964 lt_NL2SP='tr \015\012 \040\040'
4966 *) # EBCDIC based system
4967 lt_SP2NL='tr \100 \n'
4968 lt_NL2SP='tr \r\n \100\100'
4980 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4981 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
4982 if test "${lt_cv_ld_reload_flag+set}" = set; then
4983 $as_echo_n "(cached
) " >&6
4985 lt_cv_ld_reload_flag='-r'
4987 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4988 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4989 reload_flag=$lt_cv_ld_reload_flag
4990 case $reload_flag in
4992 *) reload_flag=" $reload_flag" ;;
4994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4997 if test "$GCC" = yes; then
4998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5013 if test -n "$ac_tool_prefix"; then
5014 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5015 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5016 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5017 $as_echo_n "checking
for $ac_word...
" >&6; }
5018 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5019 $as_echo_n "(cached
) " >&6
5021 if test -n "$OBJDUMP"; then
5022 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5032 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5041 OBJDUMP=$ac_cv_prog_OBJDUMP
5042 if test -n "$OBJDUMP"; then
5043 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5044 $as_echo "$OBJDUMP" >&6; }
5046 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5047 $as_echo "no
" >&6; }
5052 if test -z "$ac_cv_prog_OBJDUMP"; then
5053 ac_ct_OBJDUMP=$OBJDUMP
5054 # Extract the first word of "objdump
", so it can be a program name with args.
5055 set dummy objdump; ac_word=$2
5056 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5057 $as_echo_n "checking
for $ac_word...
" >&6; }
5058 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5059 $as_echo_n "(cached
) " >&6
5061 if test -n "$ac_ct_OBJDUMP"; then
5062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5072 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5081 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5082 if test -n "$ac_ct_OBJDUMP"; then
5083 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5084 $as_echo "$ac_ct_OBJDUMP" >&6; }
5086 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5087 $as_echo "no
" >&6; }
5090 if test "x
$ac_ct_OBJDUMP" = x; then
5093 case $cross_compiling:$ac_tool_warned in
5095 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5096 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5097 ac_tool_warned=yes ;;
5099 OBJDUMP=$ac_ct_OBJDUMP
5102 OBJDUMP="$ac_cv_prog_OBJDUMP"
5105 test -z "$OBJDUMP" && OBJDUMP=objdump
5115 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5116 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5117 if test "${lt_cv_deplibs_check_method+set}" = set; then
5118 $as_echo_n "(cached
) " >&6
5120 lt_cv_file_magic_cmd='$MAGIC_CMD'
5121 lt_cv_file_magic_test_file=
5122 lt_cv_deplibs_check_method='unknown'
5123 # Need to set the preceding variable on all platforms that support
5124 # interlibrary dependencies.
5125 # 'none' -- dependencies not supported.
5126 # `unknown' -- same as none, but documents that we really don't know.
5127 # 'pass_all' -- all dependencies passed with no checks.
5128 # 'test_compile' -- check by making test program.
5129 # 'file_magic [[regex]]' -- check by looking for files in library path
5130 # which responds to the $file_magic_cmd with a given extended regex.
5131 # If you have `file' or equivalent on your system and you're not sure
5132 # whether `pass_all' will *always* work, you probably want this one.
5136 lt_cv_deplibs_check_method=pass_all
5140 lt_cv_deplibs_check_method=pass_all
5144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5145 lt_cv_file_magic_cmd='/usr/bin/file -L'
5146 lt_cv_file_magic_test_file=/shlib/libc.so
5150 # func_win32_libid is a shell function defined in ltmain.sh
5151 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5152 lt_cv_file_magic_cmd='func_win32_libid'
5156 # Base MSYS/MinGW do not provide the 'file' command needed by
5157 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5158 # unless we find 'file', for example because we are cross-compiling.
5159 if ( file / ) >/dev/null 2>&1; then
5160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5161 lt_cv_file_magic_cmd='func_win32_libid'
5163 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5164 lt_cv_file_magic_cmd='$OBJDUMP -f'
5169 # use the weaker test based on 'objdump'. See mingw*.
5170 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5171 lt_cv_file_magic_cmd='$OBJDUMP -f'
5174 darwin* | rhapsody*)
5175 lt_cv_deplibs_check_method=pass_all
5178 freebsd* | dragonfly*)
5179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5182 # Not sure whether the presence of OpenBSD here was a mistake.
5183 # Let's accept both of them until this is cleared up.
5184 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5185 lt_cv_file_magic_cmd=/usr/bin/file
5186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5190 lt_cv_deplibs_check_method=pass_all
5195 lt_cv_deplibs_check_method=pass_all
5198 hpux10.20* | hpux11*)
5199 lt_cv_file_magic_cmd=/usr/bin/file
5202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5211 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5221 irix5* | irix6* | nonstopux*)
5223 *-32|*"-32 ") libmagic=32-bit;;
5224 *-n32|*"-n32 ") libmagic=N32;;
5225 *-64|*"-64 ") libmagic=64-bit;;
5226 *) libmagic=never-match;;
5228 lt_cv_deplibs_check_method=pass_all
5231 # This must be Linux ELF.
5232 linux* | k*bsd*-gnu)
5233 lt_cv_deplibs_check_method=pass_all
5237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5246 lt_cv_file_magic_cmd=/usr/bin/file
5247 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5251 lt_cv_deplibs_check_method=pass_all
5255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5262 osf3* | osf4* | osf5*)
5263 lt_cv_deplibs_check_method=pass_all
5267 lt_cv_deplibs_check_method=pass_all
5271 lt_cv_deplibs_check_method=pass_all
5274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5275 lt_cv_deplibs_check_method=pass_all
5279 case $host_vendor in
5281 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]'
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5285 lt_cv_deplibs_check_method=pass_all
5288 lt_cv_file_magic_cmd='/bin/file'
5289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5292 lt_cv_file_magic_cmd='/bin/file'
5293 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5294 lt_cv_file_magic_test_file=/lib/libc.so
5297 lt_cv_deplibs_check_method=pass_all
5300 lt_cv_deplibs_check_method=pass_all
5306 lt_cv_deplibs_check_method=pass_all
5311 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5312 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5313 file_magic_cmd=$lt_cv_file_magic_cmd
5314 deplibs_check_method=$lt_cv_deplibs_check_method
5315 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5328 if test -n "$ac_tool_prefix"; then
5329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5330 set dummy ${ac_tool_prefix}ar; ac_word=$2
5331 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5332 $as_echo_n "checking
for $ac_word...
" >&6; }
5333 if test "${ac_cv_prog_AR+set}" = set; then
5334 $as_echo_n "(cached
) " >&6
5336 if test -n "$AR"; then
5337 ac_cv_prog_AR="$AR" # Let the user override the test.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_prog_AR="${ac_tool_prefix}ar"
5347 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5357 if test -n "$AR"; then
5358 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5359 $as_echo "$AR" >&6; }
5361 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5362 $as_echo "no
" >&6; }
5367 if test -z "$ac_cv_prog_AR"; then
5369 # Extract the first word of "ar", so it can be a program name with args.
5370 set dummy ar; ac_word=$2
5371 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5372 $as_echo_n "checking
for $ac_word...
" >&6; }
5373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5374 $as_echo_n "(cached
) " >&6
5376 if test -n "$ac_ct_AR"; then
5377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_prog_ac_ct_AR="ar"
5387 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5397 if test -n "$ac_ct_AR"; then
5398 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5399 $as_echo "$ac_ct_AR" >&6; }
5401 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5402 $as_echo "no
" >&6; }
5405 if test "x
$ac_ct_AR" = x; then
5408 case $cross_compiling:$ac_tool_warned in
5410 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5411 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5412 ac_tool_warned=yes ;;
5420 test -z "$AR" && AR=ar
5421 test -z "$AR_FLAGS" && AR_FLAGS=cru
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}strip; ac_word=$2
5436 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5437 $as_echo_n "checking
for $ac_word...
" >&6; }
5438 if test "${ac_cv_prog_STRIP+set}" = set; then
5439 $as_echo_n "(cached
) " >&6
5441 if test -n "$STRIP"; then
5442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5452 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5461 STRIP=$ac_cv_prog_STRIP
5462 if test -n "$STRIP"; then
5463 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5464 $as_echo "$STRIP" >&6; }
5466 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5467 $as_echo "no
" >&6; }
5472 if test -z "$ac_cv_prog_STRIP"; then
5474 # Extract the first word of "strip
", so it can be a program name with args.
5475 set dummy strip; ac_word=$2
5476 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5477 $as_echo_n "checking
for $ac_word...
" >&6; }
5478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5479 $as_echo_n "(cached
) " >&6
5481 if test -n "$ac_ct_STRIP"; then
5482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_prog_ac_ct_STRIP="strip
"
5492 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5502 if test -n "$ac_ct_STRIP"; then
5503 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5504 $as_echo "$ac_ct_STRIP" >&6; }
5506 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5507 $as_echo "no
" >&6; }
5510 if test "x
$ac_ct_STRIP" = x; then
5513 case $cross_compiling:$ac_tool_warned in
5515 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5516 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5517 ac_tool_warned=yes ;;
5522 STRIP="$ac_cv_prog_STRIP"
5525 test -z "$STRIP" && STRIP=:
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5535 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5536 $as_echo_n "checking
for $ac_word...
" >&6; }
5537 if test "${ac_cv_prog_RANLIB+set}" = set; then
5538 $as_echo_n "(cached
) " >&6
5540 if test -n "$RANLIB"; then
5541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5551 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5560 RANLIB=$ac_cv_prog_RANLIB
5561 if test -n "$RANLIB"; then
5562 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5563 $as_echo "$RANLIB" >&6; }
5565 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5566 $as_echo "no
" >&6; }
5571 if test -z "$ac_cv_prog_RANLIB"; then
5572 ac_ct_RANLIB=$RANLIB
5573 # Extract the first word of "ranlib
", so it can be a program name with args.
5574 set dummy ranlib; ac_word=$2
5575 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5576 $as_echo_n "checking
for $ac_word...
" >&6; }
5577 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5578 $as_echo_n "(cached
) " >&6
5580 if test -n "$ac_ct_RANLIB"; then
5581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5591 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5601 if test -n "$ac_ct_RANLIB"; then
5602 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5603 $as_echo "$ac_ct_RANLIB" >&6; }
5605 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5606 $as_echo "no
" >&6; }
5609 if test "x
$ac_ct_RANLIB" = x; then
5612 case $cross_compiling:$ac_tool_warned in
5614 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5615 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5616 ac_tool_warned=yes ;;
5618 RANLIB=$ac_ct_RANLIB
5621 RANLIB="$ac_cv_prog_RANLIB"
5624 test -z "$RANLIB" && RANLIB=:
5631 # Determine commands to create old-style static archives.
5632 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5633 old_postinstall_cmds='chmod 644 $oldlib'
5634 old_postuninstall_cmds=
5636 if test -n "$RANLIB"; then
5639 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5642 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5645 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5681 # If no C compiler was specified, use CC.
5684 # If no C compiler flags were specified, use CFLAGS.
5685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5687 # Allow CC to be a program name with arguments.
5691 # Check for command to grab the raw symbol name followed by C symbol from nm.
5692 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5693 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5694 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5695 $as_echo_n "(cached
) " >&6
5698 # These are sane defaults that work on at least a few old systems.
5699 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5701 # Character class describing NM global symbol codes.
5702 symcode='[BCDEGRST]'
5704 # Regexp to match symbols that can be accessed directly from C.
5705 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5707 # Define system-specific variables.
5712 cygwin* | mingw* | pw32* | cegcc*)
5713 symcode='[ABCDGISTW]'
5716 if test "$host_cpu" = ia64; then
5717 symcode='[ABCDEGRST]'
5721 symcode='[BCDEGRST]'
5724 symcode='[BCDEGQRST]'
5735 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5743 # If we're using GNU nm, then use its standard symbol codes.
5744 case `$NM -V 2>&1` in
5745 *GNU* | *'with BFD'*)
5746 symcode='[ABCDGIRSTW]' ;;
5749 # Transform an extracted symbol line into a proper C declaration.
5750 # Some systems (esp. on ia64) link data and code symbols differently,
5751 # so use this general approach.
5752 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5754 # Transform an extracted symbol line into symbol name and symbol address
5755 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5756 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'"
5758 # Handle CRLF in mingw tool chain
5762 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5766 # Try without a prefix underscore, then with it.
5767 for ac_symprfx in "" "_
"; do
5769 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5770 symxfrm="\\1 $ac_symprfx\\2 \\2"
5772 # Write the raw and C identifiers.
5773 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5774 # Fake it for dumpbin and say T for any non-static function
5775 # and D for any global variable.
5776 # Also find C++ and __fastcall symbols from MSVC++,
5777 # which start with @ or ?.
5778 lt_cv_sys_global_symbol_pipe="$AWK '"\
5779 " {last_section=section; section=\$ 3};"\
5780 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5781 " \$ 0!~/External *\|/{next};"\
5782 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5783 " {if(hide[section]) next};"\
5784 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5785 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5786 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5787 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5788 " ' prfx
=^
$ac_symprfx"
5790 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5793 # Check to see that the pipe works correctly.
5797 cat > conftest.$ac_ext <<_LT_EOF
5802 void nm_test_func(void);
5803 void nm_test_func(void){}
5807 int main(){nm_test_var='a';nm_test_func();return(0);}
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>&5
5813 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5814 (exit $ac_status); }; then
5815 # Now try to grab the symbols.
5817 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5818 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5820 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5821 (exit $ac_status); } && test -s "$nlist"; then
5822 # Try sorting and uniquifying the output.
5823 if sort "$nlist" | uniq > "$nlist"T; then
5824 mv -f "$nlist"T "$nlist"
5829 # Make sure that we snagged all the symbols we need.
5830 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5831 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5832 cat <<_LT_EOF > conftest.$ac_ext
5838 # Now generate the symbol file.
5839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5841 cat <<_LT_EOF >> conftest.$ac_ext
5843 /* The mapping between symbol names and symbols. */
5848 lt__PROGRAM__LTX_preloaded_symbols[] =
5850 { "@PROGRAM@
", (void *) 0 },
5852 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5853 cat <<\_LT_EOF >> conftest.$ac_ext
5857 /* This works around a problem in FreeBSD linker */
5858 #ifdef FREEBSD_WORKAROUND
5859 static const void *lt_preloaded_setup() {
5860 return lt__PROGRAM__LTX_preloaded_symbols;
5868 # Now try linking the two files.
5869 mv conftest.$ac_objext conftstm.$ac_objext
5870 lt_save_LIBS="$LIBS"
5871 lt_save_CFLAGS="$CFLAGS"
5872 LIBS="conftstm.
$ac_objext"
5873 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>&5
5877 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5878 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5881 LIBS="$lt_save_LIBS"
5882 CFLAGS="$lt_save_CFLAGS"
5884 echo "cannot
find nm_test_func
in $nlist" >&5
5887 echo "cannot
find nm_test_var
in $nlist" >&5
5890 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5893 echo "$progname: failed program was
:" >&5
5894 cat conftest.$ac_ext >&5
5896 rm -rf conftest* conftst*
5898 # Do not use the global_symbol_pipe unless it works.
5899 if test "$pipe_works" = yes; then
5902 lt_cv_sys_global_symbol_pipe=
5908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5909 lt_cv_sys_global_symbol_to_cdecl=
5911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5912 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5913 $as_echo "failed
" >&6; }
5915 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5916 $as_echo "ok
" >&6; }
5941 # Check whether --enable-libtool-lock was given.
5942 if test "${enable_libtool_lock+set}" = set; then
5943 enableval=$enable_libtool_lock;
5946 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5948 # Some flags need to be propagated to the compiler or linker for good
5952 # Find out which ABI we are using.
5953 echo 'int i;' > conftest.$ac_ext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5957 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5958 (exit $ac_status); }; then
5959 case `/usr/bin/file conftest.$ac_objext` in
5971 # Find out which ABI we are using.
5972 echo '#line 5972 "configure
"' > conftest.$ac_ext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>&5
5976 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5977 (exit $ac_status); }; then
5978 if test "$lt_cv_prog_gnu_ld" = yes; then
5979 case `/usr/bin/file conftest.$ac_objext` in
5981 LD="${LD-ld} -melf32bsmip"
5984 LD="${LD-ld} -melf32bmipn32"
5987 LD="${LD-ld} -melf64bmip"
5991 case `/usr/bin/file conftest.$ac_objext` in
6007 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6008 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6009 # Find out which ABI we are using.
6010 echo 'int i;' > conftest.$ac_ext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>&5
6014 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6015 (exit $ac_status); }; then
6016 case `/usr/bin/file conftest.o` in
6019 x86_64-*kfreebsd*-gnu)
6020 LD="${LD-ld} -m elf_i386_fbsd
"
6023 LD="${LD-ld} -m elf_i386
"
6025 ppc64-*linux*|powerpc64-*linux*)
6026 LD="${LD-ld} -m elf32ppclinux
"
6029 LD="${LD-ld} -m elf_s390
"
6032 LD="${LD-ld} -m elf32_sparc
"
6038 x86_64-*kfreebsd*-gnu)
6039 LD="${LD-ld} -m elf_x86_64_fbsd
"
6042 LD="${LD-ld} -m elf_x86_64
"
6044 ppc*-*linux*|powerpc*-*linux*)
6045 LD="${LD-ld} -m elf64ppc
"
6047 s390*-*linux*|s390*-*tpf*)
6048 LD="${LD-ld} -m elf64_s390
"
6051 LD="${LD-ld} -m elf64_sparc
"
6061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6062 SAVE_CFLAGS="$CFLAGS"
6063 CFLAGS="$CFLAGS -belf"
6064 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6065 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6066 if test "${lt_cv_cc_needs_belf+set}" = set; then
6067 $as_echo_n "(cached
) " >&6
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_link") 2>conftest.er1
6100 grep -v '^ *+' conftest.er1 >conftest.err
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext && {
6108 test "$cross_compiling" = yes ||
6109 $as_test_x conftest$ac_exeext
6111 lt_cv_cc_needs_belf=yes
6113 $as_echo "$as_me: failed program was
:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 lt_cv_cc_needs_belf=no
6119 rm -rf conftest.dSYM
6120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6121 conftest$ac_exeext conftest.$ac_ext
6123 ac_cpp='$CPP $CPPFLAGS'
6124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6133 CFLAGS="$SAVE_CFLAGS"
6137 # Find out which ABI we are using.
6138 echo 'int i;' > conftest.$ac_ext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>&5
6142 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6143 (exit $ac_status); }; then
6144 case `/usr/bin/file conftest.o` in
6146 case $lt_cv_prog_gnu_ld in
6147 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6161 need_locks="$enable_libtool_lock"
6165 rhapsody* | darwin*)
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6170 $as_echo_n "checking
for $ac_word...
" >&6; }
6171 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6172 $as_echo_n "(cached
) " >&6
6174 if test -n "$DSYMUTIL"; then
6175 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6185 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6195 if test -n "$DSYMUTIL"; then
6196 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6197 $as_echo "$DSYMUTIL" >&6; }
6199 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6200 $as_echo "no
" >&6; }
6205 if test -z "$ac_cv_prog_DSYMUTIL"; then
6206 ac_ct_DSYMUTIL=$DSYMUTIL
6207 # Extract the first word of "dsymutil
", so it can be a program name with args.
6208 set dummy dsymutil; ac_word=$2
6209 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6210 $as_echo_n "checking
for $ac_word...
" >&6; }
6211 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6212 $as_echo_n "(cached
) " >&6
6214 if test -n "$ac_ct_DSYMUTIL"; then
6215 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6225 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6234 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6235 if test -n "$ac_ct_DSYMUTIL"; then
6236 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6237 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6239 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6240 $as_echo "no
" >&6; }
6243 if test "x
$ac_ct_DSYMUTIL" = x; then
6246 case $cross_compiling:$ac_tool_warned in
6248 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6249 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6250 ac_tool_warned=yes ;;
6252 DSYMUTIL=$ac_ct_DSYMUTIL
6255 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6261 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6262 $as_echo_n "checking
for $ac_word...
" >&6; }
6263 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6264 $as_echo_n "(cached
) " >&6
6266 if test -n "$NMEDIT"; then
6267 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6277 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6286 NMEDIT=$ac_cv_prog_NMEDIT
6287 if test -n "$NMEDIT"; then
6288 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6289 $as_echo "$NMEDIT" >&6; }
6291 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6292 $as_echo "no
" >&6; }
6297 if test -z "$ac_cv_prog_NMEDIT"; then
6298 ac_ct_NMEDIT=$NMEDIT
6299 # Extract the first word of "nmedit
", so it can be a program name with args.
6300 set dummy nmedit; ac_word=$2
6301 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6302 $as_echo_n "checking
for $ac_word...
" >&6; }
6303 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6304 $as_echo_n "(cached
) " >&6
6306 if test -n "$ac_ct_NMEDIT"; then
6307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6317 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6326 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6327 if test -n "$ac_ct_NMEDIT"; then
6328 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6329 $as_echo "$ac_ct_NMEDIT" >&6; }
6331 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6332 $as_echo "no
" >&6; }
6335 if test "x
$ac_ct_NMEDIT" = x; then
6338 case $cross_compiling:$ac_tool_warned in
6340 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6341 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6342 ac_tool_warned=yes ;;
6344 NMEDIT=$ac_ct_NMEDIT
6347 NMEDIT="$ac_cv_prog_NMEDIT"
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6353 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6354 $as_echo_n "checking
for $ac_word...
" >&6; }
6355 if test "${ac_cv_prog_LIPO+set}" = set; then
6356 $as_echo_n "(cached
) " >&6
6358 if test -n "$LIPO"; then
6359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6369 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6378 LIPO=$ac_cv_prog_LIPO
6379 if test -n "$LIPO"; then
6380 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6381 $as_echo "$LIPO" >&6; }
6383 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6384 $as_echo "no
" >&6; }
6389 if test -z "$ac_cv_prog_LIPO"; then
6391 # Extract the first word of "lipo
", so it can be a program name with args.
6392 set dummy lipo; ac_word=$2
6393 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6394 $as_echo_n "checking
for $ac_word...
" >&6; }
6395 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6396 $as_echo_n "(cached
) " >&6
6398 if test -n "$ac_ct_LIPO"; then
6399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_LIPO="lipo
"
6409 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6419 if test -n "$ac_ct_LIPO"; then
6420 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6421 $as_echo "$ac_ct_LIPO" >&6; }
6423 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6424 $as_echo "no
" >&6; }
6427 if test "x
$ac_ct_LIPO" = x; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6433 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6434 ac_tool_warned=yes ;;
6439 LIPO="$ac_cv_prog_LIPO"
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}otool; ac_word=$2
6445 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6446 $as_echo_n "checking
for $ac_word...
" >&6; }
6447 if test "${ac_cv_prog_OTOOL+set}" = set; then
6448 $as_echo_n "(cached
) " >&6
6450 if test -n "$OTOOL"; then
6451 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6461 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6470 OTOOL=$ac_cv_prog_OTOOL
6471 if test -n "$OTOOL"; then
6472 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6473 $as_echo "$OTOOL" >&6; }
6475 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6476 $as_echo "no
" >&6; }
6481 if test -z "$ac_cv_prog_OTOOL"; then
6483 # Extract the first word of "otool
", so it can be a program name with args.
6484 set dummy otool; ac_word=$2
6485 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6486 $as_echo_n "checking
for $ac_word...
" >&6; }
6487 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6488 $as_echo_n "(cached
) " >&6
6490 if test -n "$ac_ct_OTOOL"; then
6491 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_OTOOL="otool
"
6501 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6510 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6511 if test -n "$ac_ct_OTOOL"; then
6512 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6513 $as_echo "$ac_ct_OTOOL" >&6; }
6515 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6516 $as_echo "no
" >&6; }
6519 if test "x
$ac_ct_OTOOL" = x; then
6522 case $cross_compiling:$ac_tool_warned in
6524 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6525 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6526 ac_tool_warned=yes ;;
6531 OTOOL="$ac_cv_prog_OTOOL"
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6537 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6538 $as_echo_n "checking
for $ac_word...
" >&6; }
6539 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6540 $as_echo_n "(cached
) " >&6
6542 if test -n "$OTOOL64"; then
6543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6553 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6562 OTOOL64=$ac_cv_prog_OTOOL64
6563 if test -n "$OTOOL64"; then
6564 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6565 $as_echo "$OTOOL64" >&6; }
6567 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6568 $as_echo "no
" >&6; }
6573 if test -z "$ac_cv_prog_OTOOL64"; then
6574 ac_ct_OTOOL64=$OTOOL64
6575 # Extract the first word of "otool64
", so it can be a program name with args.
6576 set dummy otool64; ac_word=$2
6577 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6578 $as_echo_n "checking
for $ac_word...
" >&6; }
6579 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6580 $as_echo_n "(cached
) " >&6
6582 if test -n "$ac_ct_OTOOL64"; then
6583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6593 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6602 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6603 if test -n "$ac_ct_OTOOL64"; then
6604 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6605 $as_echo "$ac_ct_OTOOL64" >&6; }
6607 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6608 $as_echo "no
" >&6; }
6611 if test "x
$ac_ct_OTOOL64" = x; then
6614 case $cross_compiling:$ac_tool_warned in
6616 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6617 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6618 ac_tool_warned=yes ;;
6620 OTOOL64=$ac_ct_OTOOL64
6623 OTOOL64="$ac_cv_prog_OTOOL64"
6652 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6653 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6654 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6655 $as_echo_n "(cached
) " >&6
6657 lt_cv_apple_cc_single_mod=no
6658 if test -z "${LT_MULTI_MODULE}"; then
6659 # By default we will add the -single_module flag. You can override
6660 # by either setting the environment variable LT_MULTI_MODULE
6661 # non-empty at configure time, or by adding -multi_module to the
6663 rm -rf libconftest.dylib*
6664 echo "int foo
(void
){return 1;}" > conftest.c
6665 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6666 -dynamiclib -Wl,-single_module conftest.c
" >&5
6667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6668 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6670 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6671 lt_cv_apple_cc_single_mod=yes
6673 cat conftest.err >&5
6675 rm -rf libconftest.dylib*
6679 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6680 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6681 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6682 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6683 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6684 $as_echo_n "(cached
) " >&6
6686 lt_cv_ld_exported_symbols_list=no
6687 save_LDFLAGS=$LDFLAGS
6688 echo "_main
" > conftest.sym
6689 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (ac_try="$ac_link"
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6711 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6712 $as_echo "$ac_try_echo") >&5
6713 (eval "$ac_link") 2>conftest.er1
6715 grep -v '^ *+' conftest.er1 >conftest.err
6717 cat conftest.err >&5
6718 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest$ac_exeext && {
6723 test "$cross_compiling" = yes ||
6724 $as_test_x conftest$ac_exeext
6726 lt_cv_ld_exported_symbols_list=yes
6728 $as_echo "$as_me: failed program was
:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 lt_cv_ld_exported_symbols_list=no
6734 rm -rf conftest.dSYM
6735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6736 conftest$ac_exeext conftest.$ac_ext
6737 LDFLAGS="$save_LDFLAGS"
6740 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6741 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6743 rhapsody* | darwin1.[012])
6744 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6747 darwin*) # darwin 5.x on
6748 # if running on 10.5 or later, the deployment target defaults
6749 # to the OS version, if on x86, and 10.4, the deployment
6750 # target defaults to 10.4. Don't you love it?
6751 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6752 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6753 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6755 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6761 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6762 _lt_dar_single_mod='$single_module'
6764 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6765 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6767 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6769 if test "$DSYMUTIL" != ":"; then
6770 _lt_dsymutil='~$DSYMUTIL $lib || :'
6778 ac_cpp='$CPP $CPPFLAGS'
6779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6783 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6784 # On Suns, sometimes $CPP names a directory.
6785 if test -n "$CPP" && test -d "$CPP"; then
6788 if test -z "$CPP"; then
6789 if test "${ac_cv_prog_CPP+set}" = set; then
6790 $as_echo_n "(cached
) " >&6
6792 # Double quotes because CPP needs to be expanded
6793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6796 for ac_c_preproc_warn_flag in '' yes
6798 # Use a header file that comes with gcc, so configuring glibc
6799 # with a fresh cross-compiler works.
6800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801 # <limits.h> exists even on freestanding compilers.
6802 # On the NeXT, cc -E runs the code through the compiler's parser,
6803 # not just through cpp. "Syntax error
" is here to catch this case.
6804 cat >conftest.$ac_ext <<_ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6811 # include <limits.h>
6813 # include <assert.h>
6817 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6822 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6836 $as_echo "$as_me: failed program was
:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 # Broken: fails on valid input.
6843 rm -f conftest.err conftest.$ac_ext
6845 # OK, works on sane cases. Now check whether nonexistent headers
6846 # can be detected and how.
6847 cat >conftest.$ac_ext <<_ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <ac_nonexistent.h>
6855 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6860 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6861 $as_echo "$ac_try_echo") >&5
6862 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6868 (exit $ac_status); } >/dev/null && {
6869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6872 # Broken: success on invalid input.
6875 $as_echo "$as_me: failed program was
:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 # Passes both tests.
6883 rm -f conftest.err conftest.$ac_ext
6886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6887 rm -f conftest.err conftest.$ac_ext
6888 if $ac_preproc_ok; then
6900 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6901 $as_echo "$CPP" >&6; }
6903 for ac_c_preproc_warn_flag in '' yes
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error
" is here to catch this case.
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6918 # include <limits.h>
6920 # include <assert.h>
6924 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6929 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6930 $as_echo "$ac_try_echo") >&5
6931 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6933 grep -v '^ *+' conftest.er1 >conftest.err
6935 cat conftest.err >&5
6936 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6937 (exit $ac_status); } >/dev/null && {
6938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6943 $as_echo "$as_me: failed program was
:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 # Broken: fails on valid input.
6950 rm -f conftest.err conftest.$ac_ext
6952 # OK, works on sane cases. Now check whether nonexistent headers
6953 # can be detected and how.
6954 cat >conftest.$ac_ext <<_ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <ac_nonexistent.h>
6962 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6979 # Broken: success on invalid input.
6982 $as_echo "$as_me: failed program was
:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 # Passes both tests.
6990 rm -f conftest.err conftest.$ac_ext
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then
6998 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
6999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7001 See \`config.log' for more details.
" >&5
7002 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7003 See \
`config.log' for more details." >&2;}
7004 { (exit 1); exit 1; }; }; }
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7015 $as_echo_n "checking for ANSI C header files... " >&6; }
7016 if test "${ac_cv_header_stdc+set}" = set; then
7017 $as_echo_n "(cached) " >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7042 *) ac_try_echo
=$ac_try;;
7044 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7045 $as_echo "$ac_try_echo") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7048 grep -v '^ *+' conftest.er1
>conftest.err
7050 cat conftest.err
>&5
7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.
$ac_objext; then
7056 ac_cv_header_stdc
=yes
7058 $as_echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7061 ac_cv_header_stdc
=no
7064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068 cat >conftest.
$ac_ext <<_ACEOF
7071 cat confdefs.h
>>conftest.
$ac_ext
7072 cat >>conftest.
$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "memchr" >/dev
/null
2>&1; then
7081 ac_cv_header_stdc
=no
7087 if test $ac_cv_header_stdc = yes; then
7088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7089 cat >conftest.
$ac_ext <<_ACEOF
7092 cat confdefs.h
>>conftest.
$ac_ext
7093 cat >>conftest.
$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "free" >/dev
/null
2>&1; then
7102 ac_cv_header_stdc
=no
7108 if test $ac_cv_header_stdc = yes; then
7109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7110 if test "$cross_compiling" = yes; then
7113 cat >conftest.
$ac_ext <<_ACEOF
7116 cat confdefs.h
>>conftest.
$ac_ext
7117 cat >>conftest.
$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7121 #if ((' ' & 0x0FF) == 0x020)
7122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125 # define ISLOWER(c) \
7126 (('a' <= (c) && (c) <= 'i') \
7127 || ('j' <= (c) && (c) <= 'r') \
7128 || ('s' <= (c) && (c) <= 'z'))
7129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7137 for (i = 0; i < 256; i++)
7138 if (XOR (islower (i), ISLOWER (i))
7139 || toupper (i) != TOUPPER (i))
7144 rm -f conftest
$ac_exeext
7145 if { (ac_try
="$ac_link"
7147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_link") 2>&5
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (case "(($ac_try" in
7157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7158 *) ac_try_echo
=$ac_try;;
7160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162 (eval "$ac_try") 2>&5
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7168 $as_echo "$as_me: program exited with status $ac_status" >&5
7169 $as_echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.
$ac_ext >&5
7173 ac_cv_header_stdc
=no
7175 rm -rf conftest.dSYM
7176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7183 $as_echo "$ac_cv_header_stdc" >&6; }
7184 if test $ac_cv_header_stdc = yes; then
7186 cat >>confdefs.h
<<\_ACEOF
7187 #define STDC_HEADERS 1
7192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7202 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7203 inttypes.h stdint.h unistd.h
7205 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7207 $as_echo_n "checking for $ac_header... " >&6; }
7208 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7209 $as_echo_n "(cached) " >&6
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7219 #include <$ac_header>
7221 rm -f conftest.
$ac_objext
7222 if { (ac_try
="$ac_compile"
7224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228 $as_echo "$ac_try_echo") >&5
7229 (eval "$ac_compile") 2>conftest.er1
7231 grep -v '^ *+' conftest.er1 >conftest.err
7233 cat conftest.err >&5
7234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest.$ac_objext; then
7239 eval "$as_ac_Header=yes"
7241 $as_echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 eval "$as_ac_Header=no"
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 ac_res=`eval 'as_val=${'$as_ac_Header'}
7250 $as_echo "$as_val"'`
7251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7252 $as_echo "$ac_res" >&6; }
7253 as_val=`eval 'as_val=${'$as_ac_Header'}
7254 $as_echo "$as_val"'`
7255 if test "x$as_val" = x""yes; then
7256 cat >>confdefs.h <<_ACEOF
7257 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7266 for ac_header in dlfcn.h
7268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 $as_echo_n "checking for $ac_header... " >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 $as_echo_n "(cached) " >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7282 #include <$ac_header>
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7288 *) ac_try_echo
=$ac_try;;
7290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1
>conftest.err
7296 cat conftest.err
>&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.
$ac_objext; then
7302 eval "$as_ac_Header=yes"
7304 $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.
$ac_ext >&5
7307 eval "$as_ac_Header=no"
7310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7313 $as_echo "$as_val"'`
7314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7315 $as_echo "$ac_res" >&6; }
7316 as_val
=`eval 'as_val=${'$as_ac_Header'}
7317 $as_echo "$as_val"'`
7318 if test "x$as_val" = x
""yes; then
7319 cat >>confdefs.h
<<_ACEOF
7320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7339 # Check whether --enable-shared was given.
7340 if test "${enable_shared+set}" = set; then
7341 enableval
=$enable_shared; p
=${PACKAGE-default}
7343 yes) enable_shared
=yes ;;
7344 no
) enable_shared
=no
;;
7347 # Look at the argument we got. We use all the common list separators.
7348 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7349 for pkg
in $enableval; do
7351 if test "X$pkg" = "X$p"; then
7370 # Check whether --enable-static was given.
7371 if test "${enable_static+set}" = set; then
7372 enableval
=$enable_static; p
=${PACKAGE-default}
7374 yes) enable_static
=yes ;;
7375 no
) enable_static
=no
;;
7378 # Look at the argument we got. We use all the common list separators.
7379 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7380 for pkg
in $enableval; do
7382 if test "X$pkg" = "X$p"; then
7402 # Check whether --with-pic was given.
7403 if test "${with_pic+set}" = set; then
7404 withval
=$with_pic; pic_mode
="$withval"
7410 test -z "$pic_mode" && pic_mode
=default
7418 # Check whether --enable-fast-install was given.
7419 if test "${enable_fast_install+set}" = set; then
7420 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7422 yes) enable_fast_install
=yes ;;
7423 no
) enable_fast_install
=no
;;
7425 enable_fast_install
=no
7426 # Look at the argument we got. We use all the common list separators.
7427 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7428 for pkg
in $enableval; do
7430 if test "X$pkg" = "X$p"; then
7431 enable_fast_install
=yes
7438 enable_fast_install
=yes
7451 # This can be used to rebuild libtool when needed
7452 LIBTOOL_DEPS
="$ltmain"
7454 # Always use our own libtool.
7455 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7481 test -z "$LN_S" && LN_S
="ln -s"
7496 if test -n "${ZSH_VERSION+set}" ; then
7497 setopt NO_GLOB_SUBST
7500 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7501 $as_echo_n "checking for objdir... " >&6; }
7502 if test "${lt_cv_objdir+set}" = set; then
7503 $as_echo_n "(cached) " >&6
7505 rm -f .libs
2>/dev
/null
7506 mkdir .libs
2>/dev
/null
7507 if test -d .libs
; then
7510 # MS-DOS does not allow filenames that begin with a dot.
7513 rmdir .libs
2>/dev
/null
7515 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7516 $as_echo "$lt_cv_objdir" >&6; }
7517 objdir
=$lt_cv_objdir
7523 cat >>confdefs.h
<<_ACEOF
7524 #define LT_OBJDIR "$lt_cv_objdir/"
7545 # AIX sometimes has problems with the GCC collect2 program. For some
7546 # reason, if we set the COLLECT_NAMES environment variable, the problems
7547 # vanish in a puff of smoke.
7548 if test "X${COLLECT_NAMES+set}" != Xset
; then
7550 export COLLECT_NAMES
7555 # Sed substitution that helps us do robust quoting. It backslashifies
7556 # metacharacters that are still active within double-quoted strings.
7557 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7559 # Same as above, but do not quote variable references.
7560 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7562 # Sed substitution to delay expansion of an escaped shell variable in a
7563 # double_quote_subst'ed string.
7564 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7566 # Sed substitution to delay expansion of an escaped single quote.
7567 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7569 # Sed substitution to avoid accidental globbing in evaled expressions
7570 no_glob_subst
='s/\*/\\\*/g'
7574 can_build_shared
=yes
7576 # All known linkers require a `.a' archive for static linking (except MSVC,
7577 # which needs '.lib').
7580 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7583 old_CFLAGS
="$CFLAGS"
7585 # Set sane defaults for various variables
7586 test -z "$CC" && CC
=cc
7587 test -z "$LTCC" && LTCC
=$CC
7588 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7589 test -z "$LD" && LD
=ld
7590 test -z "$ac_objext" && ac_objext
=o
7592 for cc_temp
in $compiler""; do
7594 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7595 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7600 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7603 # Only perform the check for file, if the check method requires it
7604 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7605 case $deplibs_check_method in
7607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7608 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7609 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7615 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7618 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7619 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7620 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7621 for ac_dir
in $ac_dummy; do
7623 test -z "$ac_dir" && ac_dir
=.
7624 if test -f $ac_dir/${ac_tool_prefix}file; then
7625 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7626 if test -n "$file_magic_test_file"; then
7627 case $deplibs_check_method in
7629 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7630 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7631 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7632 $EGREP "$file_magic_regex" > /dev
/null
; then
7637 *** Warning: the command libtool uses to detect shared libraries,
7638 *** $file_magic_cmd, produces output that libtool cannot recognize.
7639 *** The result is that libtool may fail to recognize shared libraries
7640 *** as such. This will affect the creation of libtool libraries that
7641 *** depend on shared libraries, but programs linked with such libtool
7642 *** libraries will work regardless of this problem. Nevertheless, you
7643 *** may want to report the problem to your system manager and/or to
7644 *** bug-libtool@gnu.org
7654 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7659 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7660 if test -n "$MAGIC_CMD"; then
7661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7662 $as_echo "$MAGIC_CMD" >&6; }
7664 { $as_echo "$as_me:$LINENO: result: no" >&5
7665 $as_echo "no" >&6; }
7672 if test -z "$lt_cv_path_MAGIC_CMD"; then
7673 if test -n "$ac_tool_prefix"; then
7674 { $as_echo "$as_me:$LINENO: checking for file" >&5
7675 $as_echo_n "checking for file... " >&6; }
7676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7681 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7684 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7685 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7686 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7687 for ac_dir
in $ac_dummy; do
7689 test -z "$ac_dir" && ac_dir
=.
7690 if test -f $ac_dir/file; then
7691 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7692 if test -n "$file_magic_test_file"; then
7693 case $deplibs_check_method in
7695 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7696 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7697 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7698 $EGREP "$file_magic_regex" > /dev
/null
; then
7703 *** Warning: the command libtool uses to detect shared libraries,
7704 *** $file_magic_cmd, produces output that libtool cannot recognize.
7705 *** The result is that libtool may fail to recognize shared libraries
7706 *** as such. This will affect the creation of libtool libraries that
7707 *** depend on shared libraries, but programs linked with such libtool
7708 *** libraries will work regardless of this problem. Nevertheless, you
7709 *** may want to report the problem to your system manager and/or to
7710 *** bug-libtool@gnu.org
7720 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7725 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7726 if test -n "$MAGIC_CMD"; then
7727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7728 $as_echo "$MAGIC_CMD" >&6; }
7730 { $as_echo "$as_me:$LINENO: result: no" >&5
7731 $as_echo "no" >&6; }
7744 # Use C for the default configuration in the libtool script
7748 ac_cpp
='$CPP $CPPFLAGS'
7749 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7754 # Source file extension for C test sources.
7757 # Object file extension for compiled C test sources.
7761 # Code to be used in simple compile tests
7762 lt_simple_compile_test_code
="int some_variable = 0;"
7764 # Code to be used in simple link tests
7765 lt_simple_link_test_code
='int main(){return(0);}'
7773 # If no C compiler was specified, use CC.
7776 # If no C compiler flags were specified, use CFLAGS.
7777 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7779 # Allow CC to be a program name with arguments.
7782 # Save the default compiler, since it gets overwritten when the other
7783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7784 compiler_DEFAULT
=$CC
7786 # save warnings/boilerplate of simple test code
7787 ac_outfile
=conftest.
$ac_objext
7788 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7789 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7790 _lt_compiler_boilerplate
=`cat conftest.err`
7793 ac_outfile
=conftest.
$ac_objext
7794 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7795 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7796 _lt_linker_boilerplate
=`cat conftest.err`
7801 ## There is no encapsulation within the following macros, do not change
7802 ## the running order or otherwise move them around unless you know exactly
7803 ## what you are doing...
7804 if test -n "$compiler"; then
7806 lt_prog_compiler_no_builtin_flag
=
7808 if test "$GCC" = yes; then
7809 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7811 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7812 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7813 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7814 $as_echo_n "(cached) " >&6
7816 lt_cv_prog_compiler_rtti_exceptions
=no
7817 ac_outfile
=conftest.
$ac_objext
7818 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7819 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7820 # Insert the option either (1) after the last *FLAGS variable, or
7821 # (2) before a word containing "conftest.", or (3) at the end.
7822 # Note that $ac_compile itself does not contain backslashes and begins
7823 # with a dollar sign (not a hyphen), so the echo should work correctly.
7824 # The option is referenced via a variable to avoid confusing sed.
7825 lt_compile
=`echo "$ac_compile" | $SED \
7826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828 -e 's:$: $lt_compiler_flag:'`
7829 (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
7830 (eval "$lt_compile" 2>conftest.err
)
7832 cat conftest.err
>&5
7833 echo "$as_me:7833: \$? = $ac_status" >&5
7834 if (exit $ac_status) && test -s "$ac_outfile"; then
7835 # The compiler can only warn and ignore the option if not recognized
7836 # So say no if there are warnings other than the usual output.
7837 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7838 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7839 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7840 lt_cv_prog_compiler_rtti_exceptions
=yes
7846 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7847 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7849 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7850 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7862 lt_prog_compiler_wl
=
7863 lt_prog_compiler_pic
=
7864 lt_prog_compiler_static
=
7866 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7867 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7869 if test "$GCC" = yes; then
7870 lt_prog_compiler_wl
='-Wl,'
7871 lt_prog_compiler_static
='-static'
7875 # All AIX code is PIC.
7876 if test "$host_cpu" = ia64
; then
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static
='-Bstatic'
7885 # see comment about AmigaOS4 .so support
7886 lt_prog_compiler_pic
='-fPIC'
7889 # FIXME: we need at least 68020 code to build shared libraries, but
7890 # adding the `-m68020' flag to GCC prevents building anything better,
7892 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7897 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7898 # PIC is the default for these OSes.
7901 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7902 # This hack is so that the source file can tell whether it is being
7903 # built for inclusion in a dll (and should export symbols for example).
7904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7905 # (--disable-auto-import) libraries
7906 lt_prog_compiler_pic
='-DDLL_EXPORT'
7909 darwin
* | rhapsody
*)
7910 # PIC is the default on this platform
7911 # Common symbols not allowed in MH_DYLIB files
7912 lt_prog_compiler_pic
='-fno-common'
7916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7918 # sets the default TLS model and affects inlining.
7924 lt_prog_compiler_pic
='-fPIC'
7930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7931 # Instead, we relocate shared libraries at runtime.
7935 # Just because we use GCC doesn't mean we suddenly get shared libraries
7936 # on systems that don't support them.
7937 lt_prog_compiler_can_build_shared
=no
7942 # QNX uses GNU C++, but need to define -shared option too, otherwise
7944 lt_prog_compiler_pic
='-fPIC -shared'
7948 if test -d /usr
/nec
; then
7949 lt_prog_compiler_pic
=-Kconform_pic
7954 lt_prog_compiler_pic
='-fPIC'
7958 # PORTME Check for flag to pass linker flags through the system compiler.
7961 lt_prog_compiler_wl
='-Wl,'
7962 if test "$host_cpu" = ia64
; then
7963 # AIX 5 now supports IA64 processor
7964 lt_prog_compiler_static
='-Bstatic'
7966 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7970 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7971 # This hack is so that the source file can tell whether it is being
7972 # built for inclusion in a dll (and should export symbols for example).
7973 lt_prog_compiler_pic
='-DDLL_EXPORT'
7976 hpux9
* | hpux10
* | hpux11
*)
7977 lt_prog_compiler_wl
='-Wl,'
7978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7985 lt_prog_compiler_pic
='+Z'
7988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7989 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7992 irix5
* | irix6
* | nonstopux
*)
7993 lt_prog_compiler_wl
='-Wl,'
7994 # PIC (with -KPIC) is the default.
7995 lt_prog_compiler_static
='-non_shared'
7998 linux
* | k
*bsd
*-gnu)
7999 case $cc_basename in
8000 # old Intel for x86_64 which still supported -KPIC.
8002 lt_prog_compiler_wl
='-Wl,'
8003 lt_prog_compiler_pic
='-KPIC'
8004 lt_prog_compiler_static
='-static'
8006 # icc used to be incompatible with GCC.
8007 # ICC 10 doesn't accept -KPIC any more.
8009 lt_prog_compiler_wl
='-Wl,'
8010 lt_prog_compiler_pic
='-fPIC'
8011 lt_prog_compiler_static
='-static'
8013 # Lahey Fortran 8.1.
8015 lt_prog_compiler_wl
='-Wl,'
8016 lt_prog_compiler_pic
='--shared'
8017 lt_prog_compiler_static
='--static'
8019 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8020 # Portland Group compilers (*not* the Pentium gcc compiler,
8021 # which looks to be a dead project)
8022 lt_prog_compiler_wl
='-Wl,'
8023 lt_prog_compiler_pic
='-fpic'
8024 lt_prog_compiler_static
='-Bstatic'
8027 lt_prog_compiler_wl
='-Wl,'
8028 # All Alpha code is PIC.
8029 lt_prog_compiler_static
='-non_shared'
8032 # IBM XL C 8.0/Fortran 10.1 on PPC
8033 lt_prog_compiler_wl
='-Wl,'
8034 lt_prog_compiler_pic
='-qpic'
8035 lt_prog_compiler_static
='-qstaticlink'
8038 case `$CC -V 2>&1 | sed 5q` in
8041 lt_prog_compiler_pic
='-KPIC'
8042 lt_prog_compiler_static
='-Bstatic'
8043 lt_prog_compiler_wl
='-Wl,'
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic
='-KPIC'
8048 lt_prog_compiler_static
='-Bstatic'
8049 lt_prog_compiler_wl
=''
8057 lt_prog_compiler_pic
='-KPIC'
8058 lt_prog_compiler_static
='-Bstatic'
8062 # QNX uses GNU C++, but need to define -shared option too, otherwise
8064 lt_prog_compiler_pic
='-fPIC -shared'
8067 osf3
* | osf4
* | osf5
*)
8068 lt_prog_compiler_wl
='-Wl,'
8069 # All OSF/1 code is PIC.
8070 lt_prog_compiler_static
='-non_shared'
8074 lt_prog_compiler_static
='-non_shared'
8078 lt_prog_compiler_pic
='-KPIC'
8079 lt_prog_compiler_static
='-Bstatic'
8080 case $cc_basename in
8082 lt_prog_compiler_wl
='-Qoption ld ';;
8084 lt_prog_compiler_wl
='-Wl,';;
8089 lt_prog_compiler_wl
='-Qoption ld '
8090 lt_prog_compiler_pic
='-PIC'
8091 lt_prog_compiler_static
='-Bstatic'
8094 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8095 lt_prog_compiler_wl
='-Wl,'
8096 lt_prog_compiler_pic
='-KPIC'
8097 lt_prog_compiler_static
='-Bstatic'
8101 if test -d /usr
/nec
;then
8102 lt_prog_compiler_pic
='-Kconform_pic'
8103 lt_prog_compiler_static
='-Bstatic'
8107 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8108 lt_prog_compiler_wl
='-Wl,'
8109 lt_prog_compiler_pic
='-KPIC'
8110 lt_prog_compiler_static
='-Bstatic'
8114 lt_prog_compiler_wl
='-Wl,'
8115 lt_prog_compiler_can_build_shared
=no
8119 lt_prog_compiler_pic
='-pic'
8120 lt_prog_compiler_static
='-Bstatic'
8124 lt_prog_compiler_can_build_shared
=no
8130 # For platforms which do not support PIC, -DPIC is meaningless:
8132 lt_prog_compiler_pic
=
8135 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8138 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8139 $as_echo "$lt_prog_compiler_pic" >&6; }
8147 # Check to make sure the PIC flag actually works.
8149 if test -n "$lt_prog_compiler_pic"; then
8150 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8152 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8153 $as_echo_n "(cached) " >&6
8155 lt_cv_prog_compiler_pic_works
=no
8156 ac_outfile
=conftest.
$ac_objext
8157 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8158 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8159 # Insert the option either (1) after the last *FLAGS variable, or
8160 # (2) before a word containing "conftest.", or (3) at the end.
8161 # Note that $ac_compile itself does not contain backslashes and begins
8162 # with a dollar sign (not a hyphen), so the echo should work correctly.
8163 # The option is referenced via a variable to avoid confusing sed.
8164 lt_compile
=`echo "$ac_compile" | $SED \
8165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8167 -e 's:$: $lt_compiler_flag:'`
8168 (eval echo "\"\$as_me:8168: $lt_compile\"" >&5)
8169 (eval "$lt_compile" 2>conftest.err
)
8171 cat conftest.err
>&5
8172 echo "$as_me:8172: \$? = $ac_status" >&5
8173 if (exit $ac_status) && test -s "$ac_outfile"; then
8174 # The compiler can only warn and ignore the option if not recognized
8175 # So say no if there are warnings other than the usual output.
8176 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8177 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8178 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8179 lt_cv_prog_compiler_pic_works
=yes
8185 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8186 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8188 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8189 case $lt_prog_compiler_pic in
8191 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8194 lt_prog_compiler_pic
=
8195 lt_prog_compiler_can_build_shared
=no
8206 # Check to make sure the static flag actually works.
8208 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8209 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8211 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8212 $as_echo_n "(cached) " >&6
8214 lt_cv_prog_compiler_static_works
=no
8215 save_LDFLAGS
="$LDFLAGS"
8216 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8217 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8218 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8219 # The linker can only warn and ignore the option if not recognized
8220 # So say no if there are warnings
8221 if test -s conftest.err
; then
8222 # Append any errors to the config.log.
8223 cat conftest.err
1>&5
8224 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8226 if diff conftest.exp conftest.er2
>/dev
/null
; then
8227 lt_cv_prog_compiler_static_works
=yes
8230 lt_cv_prog_compiler_static_works
=yes
8234 LDFLAGS
="$save_LDFLAGS"
8237 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8238 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8240 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8243 lt_prog_compiler_static
=
8252 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8257 lt_cv_prog_compiler_c_o
=no
8258 $RM -r conftest
2>/dev
/null
8262 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8264 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 lt_compile
=`echo "$ac_compile" | $SED \
8270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272 -e 's:$: $lt_compiler_flag:'`
8273 (eval echo "\"\$as_me:8273: $lt_compile\"" >&5)
8274 (eval "$lt_compile" 2>out
/conftest.err
)
8276 cat out
/conftest.err
>&5
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings
8282 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8283 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8284 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8285 lt_cv_prog_compiler_c_o
=yes
8290 # SGI C++ compiler will create directory out/ii_files/ for
8291 # template instantiation
8292 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8293 $RM out
/* && rmdir out
8299 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8300 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8307 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8309 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8310 $as_echo_n "(cached) " >&6
8312 lt_cv_prog_compiler_c_o
=no
8313 $RM -r conftest
2>/dev
/null
8317 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8319 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 lt_compile
=`echo "$ac_compile" | $SED \
8325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327 -e 's:$: $lt_compiler_flag:'`
8328 (eval echo "\"\$as_me:8328: $lt_compile\"" >&5)
8329 (eval "$lt_compile" 2>out
/conftest.err
)
8331 cat out
/conftest.err
>&5
8332 echo "$as_me:8332: \$? = $ac_status" >&5
8333 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings
8337 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8338 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8339 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8340 lt_cv_prog_compiler_c_o
=yes
8345 # SGI C++ compiler will create directory out/ii_files/ for
8346 # template instantiation
8347 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8348 $RM out
/* && rmdir out
8354 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8355 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8360 hard_links
="nottested"
8361 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8362 # do not overwrite the value of need_locks provided by the user
8363 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8364 $as_echo_n "checking if we can lock with hard links... " >&6; }
8367 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8369 ln conftest.a conftest.b
2>&5 || hard_links
=no
8370 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8371 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8372 $as_echo "$hard_links" >&6; }
8373 if test "$hard_links" = no
; then
8374 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8375 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8387 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8391 allow_undefined_flag
=
8392 always_export_symbols
=no
8394 archive_expsym_cmds
=
8395 compiler_needs_object
=no
8396 enable_shared_with_static_runtimes
=no
8397 export_dynamic_flag_spec
=
8398 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8399 hardcode_automatic
=no
8401 hardcode_direct_absolute
=no
8402 hardcode_libdir_flag_spec
=
8403 hardcode_libdir_flag_spec_ld
=
8404 hardcode_libdir_separator
=
8406 hardcode_shlibpath_var
=unsupported
8408 link_all_deplibs
=unknown
8411 old_archive_from_new_cmds
=
8412 old_archive_from_expsyms_cmds
=
8413 thread_safe_flag_spec
=
8414 whole_archive_flag_spec
=
8415 # include_expsyms should be a list of space-separated symbols to be *always*
8416 # included in the symbol list
8418 # exclude_expsyms can be an extended regexp of symbols to exclude
8419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8421 # as well as any symbol that contains `d'.
8422 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8424 # platforms (ab)use it in PIC code, but their linkers get confused if
8425 # the symbol is explicitly referenced. Since portable code cannot
8426 # rely on this symbol name, it's probably fine to never include it in
8427 # preloaded symbol tables.
8428 # Exclude shared library initialization/finalization symbols.
8429 extract_expsyms_cmds
=
8432 cygwin
* | mingw
* | pw32
* | cegcc
*)
8433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8434 # When not using gcc, we currently assume that we are using
8435 # Microsoft Visual C++.
8436 if test "$GCC" != yes; then
8441 # we just hope/assume this is gcc and not c89 (= MSVC++)
8450 if test "$with_gnu_ld" = yes; then
8451 # If archive_cmds runs LD, not CC, wlarc should be empty
8454 # Set some defaults for GNU ld with shared library support. These
8455 # are reset later if shared libraries are not supported. Putting them
8456 # here allows them to be overridden if necessary.
8457 runpath_var
=LD_RUN_PATH
8458 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8459 export_dynamic_flag_spec
='${wl}--export-dynamic'
8460 # ancient GNU ld didn't support --whole-archive et. al.
8461 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8462 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8464 whole_archive_flag_spec
=
8466 supports_anon_versioning
=no
8467 case `$LD -v 2>&1` in
8468 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8469 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8470 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8471 *\
2.11.
*) ;; # other 2.11 versions
8472 *) supports_anon_versioning
=yes ;;
8475 # See if GNU ld supports shared libraries.
8478 # On AIX/PPC, the GNU linker is very broken
8479 if test "$host_cpu" != ia64
; then
8483 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8484 *** to be unable to reliably create shared libraries on AIX.
8485 *** Therefore, libtool is disabling shared libraries support. If you
8486 *** really care for shared libraries, you may want to modify your PATH
8487 *** so that a non-GNU linker is found, and then restart.
8496 # see comment about AmigaOS4 .so support
8497 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 archive_expsym_cmds
=''
8501 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)'
8502 hardcode_libdir_flag_spec
='-L$libdir'
8503 hardcode_minus_L
=yes
8509 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8510 allow_undefined_flag
=unsupported
8511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8512 # support --undefined. This deserves some investigation. FIXME
8513 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519 cygwin
* | mingw
* | pw32
* | cegcc
*)
8520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8521 # as there is no search path for DLLs.
8522 hardcode_libdir_flag_spec
='-L$libdir'
8523 allow_undefined_flag
=unsupported
8524 always_export_symbols
=no
8525 enable_shared_with_static_runtimes
=yes
8526 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8528 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8529 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8530 # If the export-symbols file already is a .def file (1st line
8531 # is EXPORTS), use it as is; otherwise, prepend...
8532 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8533 cp $export_symbols $output_objdir/$soname.def;
8535 echo EXPORTS > $output_objdir/$soname.def;
8536 cat $export_symbols >> $output_objdir/$soname.def;
8538 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8546 hardcode_shlibpath_var
=no
8547 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8548 export_dynamic_flag_spec
='${wl}-E'
8549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8550 # Instead, shared libraries are loaded at an image base (0x10000000 by
8551 # default) and relocated if they conflict, which is a slow very memory
8552 # consuming and fragmenting process. To avoid this, we pick a random,
8553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8555 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8556 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'
8559 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8561 if test "$host_os" = linux-dietlibc
; then
8562 case $cc_basename in
8563 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8566 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8567 && test "$tmp_diet" = no
8570 tmp_sharedflag
='-shared'
8571 case $cc_basename,$host_cpu in
8572 pgcc
*) # Portland Group C compiler
8573 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8574 tmp_addflag
=' $pic_flag'
8576 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8577 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8578 tmp_addflag
=' $pic_flag -Mnomain' ;;
8579 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8580 tmp_addflag
=' -i_dynamic' ;;
8581 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8582 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8583 ifc
* | ifort
*) # Intel Fortran compiler
8584 tmp_addflag
=' -nofor_main' ;;
8585 lf95
*) # Lahey Fortran 8.1
8586 whole_archive_flag_spec
=
8587 tmp_sharedflag
='--shared' ;;
8588 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8589 tmp_sharedflag
='-qmkshrobj'
8592 case `$CC -V 2>&1 | sed 5q` in
8593 *Sun\ C
*) # Sun C 5.9
8594 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8595 compiler_needs_object
=yes
8596 tmp_sharedflag
='-G' ;;
8597 *Sun\ F
*) # Sun Fortran 8.3
8598 tmp_sharedflag
='-G' ;;
8600 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602 if test "x$supports_anon_versioning" = xyes
; then
8603 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8605 echo "local: *; };" >> $output_objdir/$libname.ver~
8606 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8609 case $cc_basename in
8611 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8612 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8613 hardcode_libdir_flag_spec
=
8614 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8615 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8616 if test "x$supports_anon_versioning" = xyes
; then
8617 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8619 echo "local: *; };" >> $output_objdir/$libname.ver~
8620 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8630 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8631 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8634 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8640 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8645 *** create shared libraries on Solaris systems. Therefore, libtool
8646 *** is disabling shared libraries support. We urge you to upgrade GNU
8647 *** binutils to release 2.9.1 or newer. Another option is to modify
8648 *** your PATH or compiler configuration so that the native linker is
8649 *** used, and then restart.
8652 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8653 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8660 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8661 case `$LD -v 2>&1` in
8662 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8667 *** reliably create shared libraries on SCO systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8676 # For security reasons, it is highly recommended that you always
8677 # use absolute paths for naming shared libraries, and exclude the
8678 # DT_RUNPATH tag from executables and libraries. But doing so
8679 # requires that you compile everything twice, which is a pain.
8680 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8681 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8682 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8692 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8695 hardcode_shlibpath_var
=no
8699 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8700 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 if test "$ld_shlibs" = no
; then
8710 hardcode_libdir_flag_spec
=
8711 export_dynamic_flag_spec
=
8712 whole_archive_flag_spec
=
8715 # PORTME fill in a description of your system's linker (not GNU ld)
8718 allow_undefined_flag
=unsupported
8719 always_export_symbols
=yes
8720 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'
8721 # Note: this linker hardcodes the directories in LIBPATH if there
8722 # are no directories specified by -L.
8723 hardcode_minus_L
=yes
8724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8725 # Neither direct hardcoding nor static linking is supported with a
8727 hardcode_direct
=unsupported
8732 if test "$host_cpu" = ia64
; then
8733 # On IA64, the linker does run time linking by default, so we don't
8734 # have to do anything special.
8735 aix_use_runtimelinking
=no
8736 exp_sym_flag
='-Bexport'
8739 # If we're using GNU nm, then we don't want the "-C" option.
8740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8741 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8742 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8744 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'
8746 aix_use_runtimelinking
=no
8748 # Test if we are trying to use run time linking or normal
8749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8750 # need to do runtime linking.
8751 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8752 for ld_flag
in $LDFLAGS; do
8753 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8754 aix_use_runtimelinking
=yes
8761 exp_sym_flag
='-bexport'
8762 no_entry_flag
='-bnoentry'
8765 # When large executables or shared objects are built, AIX ld can
8766 # have problems creating the table of contents. If linking a library
8767 # or program results in "error TOC overflow" add -mminimal-toc to
8768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8773 hardcode_direct_absolute
=yes
8774 hardcode_libdir_separator
=':'
8775 link_all_deplibs
=yes
8776 file_list_spec
='${wl}-f,'
8778 if test "$GCC" = yes; then
8779 case $host_os in aix4.
[012]|aix4.
[012].
*)
8780 # We only want to do this on AIX 4.2 and lower, the check
8781 # below for broken collect2 doesn't work under 4.3+
8782 collect2name
=`${CC} -print-prog-name=collect2`
8783 if test -f "$collect2name" &&
8784 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8786 # We have reworked collect2
8789 # We have old collect2
8790 hardcode_direct
=unsupported
8791 # It fails to find uninstalled libraries when the uninstalled
8792 # path is not listed in the libpath. Setting hardcode_minus_L
8793 # to unsupported forces relinking
8794 hardcode_minus_L
=yes
8795 hardcode_libdir_flag_spec
='-L$libdir'
8796 hardcode_libdir_separator
=
8800 shared_flag
='-shared'
8801 if test "$aix_use_runtimelinking" = yes; then
8802 shared_flag
="$shared_flag "'${wl}-G'
8806 if test "$host_cpu" = ia64
; then
8807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808 # chokes on -Wl,-G. The following line is correct:
8811 if test "$aix_use_runtimelinking" = yes; then
8812 shared_flag
='${wl}-G'
8814 shared_flag
='${wl}-bM:SRE'
8819 export_dynamic_flag_spec
='${wl}-bexpall'
8820 # It seems that -bexpall does not export symbols beginning with
8821 # underscore (_), so it is better to generate a list of symbols to export.
8822 always_export_symbols
=yes
8823 if test "$aix_use_runtimelinking" = yes; then
8824 # Warning - without using the other runtime loading flags (-brtl),
8825 # -berok will link without error, but may produce a broken library.
8826 allow_undefined_flag
='-berok'
8827 # Determine the default libpath from the value encoded in an
8829 cat >conftest.
$ac_ext <<_ACEOF
8832 cat confdefs.h
>>conftest.
$ac_ext
8833 cat >>conftest.
$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8844 rm -f conftest.
$ac_objext conftest
$ac_exeext
8845 if { (ac_try
="$ac_link"
8847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851 $as_echo "$ac_try_echo") >&5
8852 (eval "$ac_link") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext && {
8862 test "$cross_compiling" = yes ||
8863 $as_test_x conftest$ac_exeext
8866 lt_aix_libpath_sed='
8867 /Import File Strings/,/^$/ {
8873 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8874 # Check for a 64-bit object if we didn't find anything.
8875 if test -z "$aix_libpath"; then
8876 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8879 $as_echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8885 rm -rf conftest.dSYM
8886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887 conftest$ac_exeext conftest.$ac_ext
8888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8891 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8893 if test "$host_cpu" = ia64; then
8894 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8895 allow_undefined_flag="-z nodefs"
8896 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"
8898 # Determine the default libpath from the value encoded in an
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8919 *) ac_try_echo
=$ac_try;;
8921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_link") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1
>conftest.err
8927 cat conftest.err
>&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest
$ac_exeext && {
8933 test "$cross_compiling" = yes ||
8934 $as_test_x conftest
$ac_exeext
8937 lt_aix_libpath_sed
='
8938 /Import File Strings/,/^$/ {
8944 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945 # Check for a 64-bit object if we didn't find anything.
8946 if test -z "$aix_libpath"; then
8947 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8956 rm -rf conftest.dSYM
8957 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8958 conftest
$ac_exeext conftest.
$ac_ext
8959 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8961 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8962 # Warning - without using the other run time loading flags,
8963 # -berok will link without error, but may produce a broken library.
8964 no_undefined_flag
=' ${wl}-bernotok'
8965 allow_undefined_flag
=' ${wl}-berok'
8966 # Exported symbols can be pulled into shared objects from archives
8967 whole_archive_flag_spec
='$convenience'
8968 archive_cmds_need_lc
=yes
8969 # This is similar to how AIX traditionally builds its shared libraries.
8970 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'
8978 # see comment about AmigaOS4 .so support
8979 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds
=''
8983 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)'
8984 hardcode_libdir_flag_spec
='-L$libdir'
8985 hardcode_minus_L
=yes
8991 export_dynamic_flag_spec
=-rdynamic
8994 cygwin
* | mingw
* | pw32
* | cegcc
*)
8995 # When not using gcc, we currently assume that we are using
8996 # Microsoft Visual C++.
8997 # hardcode_libdir_flag_spec is actually meaningless, as there is
8998 # no search path for DLLs.
8999 hardcode_libdir_flag_spec
=' '
9000 allow_undefined_flag
=unsupported
9001 # Tell ltmain to make .lib files, not .a files.
9003 # Tell ltmain to make .dll files, not .so files.
9005 # FIXME: Setting linknames here is a bad hack.
9006 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9007 # The linker will automatically build a .lib file if we build a DLL.
9008 old_archive_from_new_cmds
='true'
9009 # FIXME: Should let the user specify the lib program.
9010 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9011 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9012 enable_shared_with_static_runtimes
=yes
9015 darwin
* | rhapsody
*)
9018 archive_cmds_need_lc
=no
9020 hardcode_automatic
=yes
9021 hardcode_shlibpath_var
=unsupported
9022 whole_archive_flag_spec
=''
9023 link_all_deplibs
=yes
9024 allow_undefined_flag
="$_lt_dar_allow_undefined"
9025 case $cc_basename in
9026 ifort
*) _lt_dar_can_shared
=yes ;;
9027 *) _lt_dar_can_shared
=$GCC ;;
9029 if test "$_lt_dar_can_shared" = "yes"; then
9030 output_verbose_link_cmd
=echo
9031 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9032 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9033 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}"
9034 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}"
9043 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_libdir_flag_spec
='-L$libdir'
9045 hardcode_shlibpath_var
=no
9052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9053 # support. Future versions do this automatically, but an explicit c++rt0.o
9054 # does not break anything, and helps significantly (at the cost of a little
9057 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9058 hardcode_libdir_flag_spec
='-R$libdir'
9060 hardcode_shlibpath_var
=no
9063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9065 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_minus_L
=yes
9068 hardcode_shlibpath_var
=no
9071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9072 freebsd
* | dragonfly
*)
9073 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9074 hardcode_libdir_flag_spec
='-R$libdir'
9076 hardcode_shlibpath_var
=no
9080 if test "$GCC" = yes; then
9081 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9083 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'
9085 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9086 hardcode_libdir_separator
=:
9089 # hardcode_minus_L: Not really in the search PATH,
9090 # but as the default location of the library.
9091 hardcode_minus_L
=yes
9092 export_dynamic_flag_spec
='${wl}-E'
9096 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9097 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9099 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9101 if test "$with_gnu_ld" = no
; then
9102 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9103 hardcode_libdir_flag_spec_ld
='+b $libdir'
9104 hardcode_libdir_separator
=:
9106 hardcode_direct_absolute
=yes
9107 export_dynamic_flag_spec
='${wl}-E'
9108 # hardcode_minus_L: Not really in the search PATH,
9109 # but as the default location of the library.
9110 hardcode_minus_L
=yes
9115 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9118 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9136 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9140 if test "$with_gnu_ld" = no
; then
9141 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator
=:
9147 hardcode_shlibpath_var
=no
9151 hardcode_direct_absolute
=yes
9152 export_dynamic_flag_spec
='${wl}-E'
9154 # hardcode_minus_L: Not really in the search PATH,
9155 # but as the default location of the library.
9156 hardcode_minus_L
=yes
9162 irix5
* | irix6
* | nonstopux
*)
9163 if test "$GCC" = yes; then
9164 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9165 # Try to use the -exported_symbol ld option, if it does not
9166 # work, assume that -exports_file does not work either and
9167 # implicitly export all symbols.
9168 save_LDFLAGS
="$LDFLAGS"
9169 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9170 cat >conftest.
$ac_ext <<_ACEOF
9173 rm -f conftest.
$ac_objext conftest
$ac_exeext
9174 if { (ac_try
="$ac_link"
9176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180 $as_echo "$ac_try_echo") >&5
9181 (eval "$ac_link") 2>conftest.er1
9183 grep -v '^ *+' conftest.er1 >conftest.err
9185 cat conftest.err >&5
9186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest$ac_exeext && {
9191 test "$cross_compiling" = yes ||
9192 $as_test_x conftest$ac_exeext
9194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9197 $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9203 rm -rf conftest.dSYM
9204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LDFLAGS="$save_LDFLAGS"
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9211 archive_cmds_need_lc='no'
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 hardcode_libdir_separator=:
9215 link_all_deplibs=yes
9219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9224 hardcode_libdir_flag_spec='-R$libdir'
9226 hardcode_shlibpath_var=no
9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 hardcode_libdir_separator=:
9234 hardcode_shlibpath_var=no
9241 if test -f /usr/libexec/ld.so; then
9243 hardcode_shlibpath_var=no
9244 hardcode_direct_absolute=yes
9245 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9249 export_dynamic_flag_spec='${wl}-E'
9252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='-R$libdir'
9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9268 hardcode_libdir_flag_spec='-L$libdir'
9269 hardcode_minus_L=yes
9270 allow_undefined_flag=unsupported
9271 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'
9272 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9276 if test "$GCC" = yes; then
9277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9278 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9280 allow_undefined_flag=' -expect_unresolved \*'
9281 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9283 archive_cmds_need_lc='no'
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 hardcode_libdir_separator=:
9288 osf4* | osf5*) # as osf3* with the addition of -msym flag
9289 if test "$GCC" = yes; then
9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 allow_undefined_flag=' -expect_unresolved \*'
9295 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9296 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~
9297 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9299 # Both c and cxx compiler support -rpath directly
9300 hardcode_libdir_flag_spec='-rpath $libdir'
9302 archive_cmds_need_lc='no'
9303 hardcode_libdir_separator=:
9307 no_undefined_flag=' -z defs'
9308 if test "$GCC" = yes; then
9310 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9312 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9314 case `$CC -V 2>&1` in
9317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9323 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9329 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_shlibpath_var=no
9332 solaris2.[0-5] | solaris2.[0-5].*) ;;
9334 # The compiler driver will combine and reorder linker options,
9335 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9336 # but is careful enough not to reorder.
9337 # Supported since Solaris 2.6 (maybe 2.5.1?)
9338 if test "$GCC" = yes; then
9339 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9341 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9345 link_all_deplibs
=yes
9349 if test "x$host_vendor" = xsequent
; then
9350 # Use $CC to link under sequent, because it throws in some extra .o
9351 # files that make .init and .fini sections work.
9352 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9356 hardcode_libdir_flag_spec
='-L$libdir'
9358 hardcode_minus_L
=yes
9359 hardcode_shlibpath_var
=no
9363 case $host_vendor in
9365 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_direct
=yes # is this really true???
9369 ## LD is ld it makes a PLAMLIB
9370 ## CC just makes a GrossModule.
9371 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9372 reload_cmds
='$CC -r -o $output$reload_objs'
9376 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9380 runpath_var
='LD_RUN_PATH'
9381 hardcode_shlibpath_var
=no
9385 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_shlibpath_var
=no
9387 export_dynamic_flag_spec
='-Bexport'
9391 if test -d /usr
/nec
; then
9392 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_shlibpath_var
=no
9394 runpath_var
=LD_RUN_PATH
9395 hardcode_runpath_var
=yes
9400 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9401 no_undefined_flag
='${wl}-z,text'
9402 archive_cmds_need_lc
=no
9403 hardcode_shlibpath_var
=no
9404 runpath_var
='LD_RUN_PATH'
9406 if test "$GCC" = yes; then
9407 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 sysv5
* | sco3.2v5
* | sco5v6
*)
9416 # Note: We can NOT use -z defs as we might desire, because we do not
9417 # link with -lc, and that would cause any symbols used from libc to
9418 # always be unresolved, which means just about no library would
9419 # ever link correctly. If we're not using GNU ld we use -z text
9420 # though, which does catch some bad symbols but isn't as heavy-handed
9422 no_undefined_flag
='${wl}-z,text'
9423 allow_undefined_flag
='${wl}-z,nodefs'
9424 archive_cmds_need_lc
=no
9425 hardcode_shlibpath_var
=no
9426 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9427 hardcode_libdir_separator
=':'
9428 link_all_deplibs
=yes
9429 export_dynamic_flag_spec
='${wl}-Bexport'
9430 runpath_var
='LD_RUN_PATH'
9432 if test "$GCC" = yes; then
9433 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_libdir_flag_spec
='-L$libdir'
9444 hardcode_shlibpath_var
=no
9452 if test x
$host_vendor = xsni
; then
9454 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9455 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9461 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9462 $as_echo "$ld_shlibs" >&6; }
9463 test "$ld_shlibs" = no
&& can_build_shared
=no
9465 with_gnu_ld
=$with_gnu_ld
9482 # Do we need to explicitly link libc?
9484 case "x$archive_cmds_need_lc" in
9486 # Assume -lc should be added
9487 archive_cmds_need_lc
=yes
9489 if test "$enable_shared" = yes && test "$GCC" = yes; then
9490 case $archive_cmds in
9492 # FIXME: we may have to deal with multi-command sequences.
9495 # Test whether the compiler implicitly links with -lc since on some
9496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9497 # to ld, don't add -lc before -lgcc.
9498 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9501 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>&5
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } 2>conftest.err
; then
9510 libobjs
=conftest.
$ac_objext
9512 wl
=$lt_prog_compiler_wl
9513 pic_flag
=$lt_prog_compiler_pic
9519 lt_save_allow_undefined_flag
=$allow_undefined_flag
9520 allow_undefined_flag
=
9521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9522 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }
9527 archive_cmds_need_lc
=no
9529 archive_cmds_need_lc
=yes
9531 allow_undefined_flag
=$lt_save_allow_undefined_flag
9533 cat conftest.err
1>&5
9536 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9537 $as_echo "$archive_cmds_need_lc" >&6; }
9700 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9701 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9703 if test "$GCC" = yes; then
9705 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9706 *) lt_awk_arg
="/^libraries:/" ;;
9708 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9709 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9710 # if the path contains ";" then we assume it to be the separator
9711 # otherwise default to the standard path separator (i.e. ":") - it is
9712 # assumed that no part of a normal pathname contains ";" but that should
9713 # okay in the real world where ";" in dirpaths is itself problematic.
9714 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9716 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9718 # Ok, now we have the path, separated by spaces, we can step through it
9719 # and add multilib dir if necessary.
9720 lt_tmp_lt_search_path_spec
=
9721 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9722 for lt_sys_path
in $lt_search_path_spec; do
9723 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9724 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9726 test -d "$lt_sys_path" && \
9727 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9730 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9731 BEGIN {RS=" "; FS="/|\n";} {
9734 for (lt_i = NF; lt_i > 0; lt_i--) {
9735 if ($lt_i != "" && $lt_i != ".") {
9736 if ($lt_i == "..") {
9739 if (lt_count == 0) {
9740 lt_foo="/" $lt_i lt_foo;
9747 if (lt_foo != "") { lt_freq[lt_foo]++; }
9748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9750 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9752 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9755 libname_spec
='lib$name'
9763 shlibpath_overrides_runpath
=unknown
9765 dynamic_linker
="$host_os ld.so"
9766 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9767 need_lib_prefix
=unknown
9768 hardcode_into_libs
=no
9770 # when you set need_version to no, make sure it does not cause -set_version
9771 # flags to be left without arguments
9772 need_version
=unknown
9777 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9778 shlibpath_var
=LIBPATH
9780 # AIX 3 has no versioning support, so we append a major version to the name.
9781 soname_spec
='${libname}${release}${shared_ext}$major'
9788 hardcode_into_libs
=yes
9789 if test "$host_cpu" = ia64
; then
9790 # AIX 5 supports IA64
9791 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9792 shlibpath_var
=LD_LIBRARY_PATH
9794 # With GCC up to 2.95.x, collect2 would create an import file
9795 # for dependence libraries. The import file would start with
9796 # the line `#! .'. This would cause the generated library to
9797 # depend on `.', always an invalid library. This was fixed in
9798 # development snapshots of GCC prior to 3.0.
9800 aix4 | aix4.
[01] | aix4.
[01].
*)
9801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9803 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9811 # soname into executable. Probably we can add versioning support to
9812 # collect2, so additional links can be useful in future.
9813 if test "$aix_use_runtimelinking" = yes; then
9814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9815 # instead of lib<name>.a to let people know that these are not
9816 # typical AIX shared libraries.
9817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 # We preserve .a as extension for shared libraries through AIX4.2
9820 # and later when we are not doing run time linking.
9821 library_names_spec
='${libname}${release}.a $libname.a'
9822 soname_spec
='${libname}${release}${shared_ext}$major'
9824 shlibpath_var
=LIBPATH
9831 # Since July 2007 AmigaOS4 officially supports .so libraries.
9832 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9836 library_names_spec
='$libname.ixlibrary $libname.a'
9837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9838 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9844 library_names_spec
='${libname}${shared_ext}'
9845 dynamic_linker
="$host_os ld.so"
9846 shlibpath_var
=LIBRARY_PATH
9852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec
='${libname}${release}${shared_ext}$major'
9854 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9855 shlibpath_var
=LD_LIBRARY_PATH
9856 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9857 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9858 # the default ld.so.conf also contains /usr/contrib/lib and
9859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9860 # libtool to hard-code these into programs
9863 cygwin
* | mingw
* | pw32
* | cegcc
*)
9864 version_type
=windows
9869 case $GCC,$host_os in
9870 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9871 library_names_spec
='$libname.dll.a'
9872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9873 postinstall_cmds
='base_file=`basename \${file}`~
9874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9875 dldir=$destdir/`dirname \$dlpath`~
9876 test -d \$dldir || mkdir -p \$dldir~
9877 $install_prog $dir/$dlname \$dldir/$dlname~
9878 chmod a+x \$dldir/$dlname~
9879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9882 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9883 dlpath=$dir/\$dldll~
9885 shlibpath_overrides_runpath
=yes
9889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9890 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9891 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9894 # MinGW DLLs use traditional 'lib' prefix
9895 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9897 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9898 # It is most probably a Windows format PATH printed by
9899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9900 # path with ; separators, and with drive letters. We can handle the
9901 # drive letters (cygwin fileutils understands them), so leave them,
9902 # especially as we might pass files found there to a mingw objdump,
9903 # which wouldn't understand a cygwinified path. Ahh.
9904 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9906 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9910 # pw32 DLLs use 'pw' prefix rather than 'lib'
9911 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9920 dynamic_linker
='Win32 ld.exe'
9921 # FIXME: first we should search . and the directory the executable is in
9925 darwin
* | rhapsody
*)
9926 dynamic_linker
="$host_os dyld"
9930 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9931 soname_spec
='${libname}${release}${major}$shared_ext'
9932 shlibpath_overrides_runpath
=yes
9933 shlibpath_var
=DYLD_LIBRARY_PATH
9934 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9936 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9937 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec
='${libname}${release}${shared_ext}$major'
9946 shlibpath_var
=LD_LIBRARY_PATH
9953 freebsd
* | dragonfly
*)
9954 # DragonFly does not have aout. When/if they implement a new
9955 # versioning mechanism, adjust this.
9956 if test -x /usr
/bin
/objformat
; then
9957 objformat
=`/usr/bin/objformat`
9960 freebsd
[123]*) objformat
=aout
;;
9964 version_type
=freebsd-
$objformat
9965 case $version_type in
9967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9972 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9976 shlibpath_var
=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath
=yes
9981 freebsd3.
[01]* | freebsdelf3.
[01]*)
9982 shlibpath_overrides_runpath
=yes
9983 hardcode_into_libs
=yes
9985 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9986 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9987 shlibpath_overrides_runpath
=no
9988 hardcode_into_libs
=yes
9990 *) # from 4.6 on, and DragonFly
9991 shlibpath_overrides_runpath
=yes
9992 hardcode_into_libs
=yes
10001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10002 soname_spec
='${libname}${release}${shared_ext}$major'
10003 shlibpath_var
=LD_LIBRARY_PATH
10004 hardcode_into_libs
=yes
10007 hpux9
* | hpux10
* | hpux11
*)
10008 # Give a soname corresponding to the major version so that dld.sl refuses to
10009 # link against other versions.
10016 hardcode_into_libs
=yes
10017 dynamic_linker
="$host_os dld.so"
10018 shlibpath_var
=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec
='${libname}${release}${shared_ext}$major'
10022 if test "X$HPUX_IA64_MODE" = X32
; then
10023 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10025 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10027 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10031 hardcode_into_libs
=yes
10032 dynamic_linker
="$host_os dld.sl"
10033 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10034 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec
='${libname}${release}${shared_ext}$major'
10037 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10038 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10042 dynamic_linker
="$host_os dld.sl"
10043 shlibpath_var
=SHLIB_PATH
10044 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec
='${libname}${release}${shared_ext}$major'
10049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10050 postinstall_cmds
='chmod 555 $lib'
10057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10058 soname_spec
='${libname}${release}${shared_ext}$major'
10059 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10060 shlibpath_var
=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath
=no
10062 hardcode_into_libs
=yes
10065 irix5
* | irix6
* | nonstopux
*)
10067 nonstopux
*) version_type
=nonstopux
;;
10069 if test "$lt_cv_prog_gnu_ld" = yes; then
10077 soname_spec
='${libname}${release}${shared_ext}$major'
10078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10080 irix5
* | nonstopux
*)
10081 libsuff
= shlibsuff
=
10084 case $LD in # libtool.m4 will add one of these switches to LD
10085 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10086 libsuff
= shlibsuff
= libmagic
=32-bit;;
10087 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10088 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10089 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10090 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10091 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10095 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10096 shlibpath_overrides_runpath
=no
10097 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10098 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10099 hardcode_into_libs
=yes
10102 # No shared lib support for Linux oldld, aout, or coff.
10103 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10107 # This must be Linux ELF.
10108 linux
* | k
*bsd
*-gnu)
10112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 soname_spec
='${libname}${release}${shared_ext}$major'
10114 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10115 shlibpath_var
=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath
=no
10117 # Some binutils ld are patched to set DT_RUNPATH
10118 save_LDFLAGS
=$LDFLAGS
10119 save_libdir
=$libdir
10120 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10121 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10122 cat >conftest.
$ac_ext <<_ACEOF
10125 cat confdefs.h
>>conftest.
$ac_ext
10126 cat >>conftest.
$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10137 rm -f conftest.
$ac_objext conftest
$ac_exeext
10138 if { (ac_try
="$ac_link"
10139 case "(($ac_try" in
10140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145 (eval "$ac_link") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest$ac_exeext && {
10155 test "$cross_compiling" = yes ||
10156 $as_test_x conftest$ac_exeext
10158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10159 shlibpath_overrides_runpath=yes
10163 $as_echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10169 rm -rf conftest.dSYM
10170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LDFLAGS=$save_LDFLAGS
10173 libdir=$save_libdir
10175 # This implies no fast_install, which is unacceptable.
10176 # Some rework will be needed to allow for fast_install
10177 # before this can be enabled.
10178 hardcode_into_libs=yes
10180 # Add ABI-specific directories to the system library path.
10181 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10183 # Append ld.so.conf contents to the search path
10184 if test -f /etc/ld.so.conf; then
10185 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;/^$/d' |
tr '\n' ' '`
10186 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10189 # We used to test for /lib/ld.so.1 and disable shared libraries on
10190 # powerpc, because MkLinux only supported shared libraries with the
10191 # GNU dynamic linker. Since this was broken with cross compilers,
10192 # most powerpc-linux boxes support dynamic linking these days and
10193 # people can always --disable-shared, the test was removed, and we
10194 # assume the GNU/Linux dynamic linker is in use.
10195 dynamic_linker='GNU/Linux ld.so'
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10205 dynamic_linker='NetBSD (a.out) ld.so'
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 dynamic_linker='NetBSD ld.elf_so'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 hardcode_into_libs=yes
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=no
10231 hardcode_into_libs=yes
10232 dynamic_linker='ldqnx.so'
10237 sys_lib_dlsearch_path_spec="/usr/lib"
10239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10242 *) need_version=no ;;
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10249 openbsd2.[89] | openbsd2.[89].*)
10250 shlibpath_overrides_runpath=no
10253 shlibpath_overrides_runpath=yes
10257 shlibpath_overrides_runpath=yes
10262 libname_spec='$name'
10265 library_names_spec='$libname${shared_ext} $libname.a'
10266 dynamic_linker='OS/2 ld.exe'
10267 shlibpath_var=LIBPATH
10270 osf3* | osf4* | osf5*)
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10294 # ldd complains unless libraries are executable
10295 postinstall_cmds='chmod +x $lib'
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 if test "$with_gnu_ld" = yes; then
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 case $host_vendor in
10317 shlibpath_overrides_runpath=no
10319 runpath_var=LD_RUN_PATH
10327 shlibpath_overrides_runpath=no
10328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10334 if test -d /usr/nec ;then
10336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10337 soname_spec='$libname${shared_ext}.$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10343 version_type=freebsd-elf
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 hardcode_into_libs=yes
10351 if test "$with_gnu_ld" = yes; then
10352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10361 sys_lib_dlsearch_path_spec='/usr/lib'
10365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 shlibpath_var=LD_LIBRARY_PATH
10386 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10387 $as_echo "$dynamic_linker" >&6; }
10388 test "$dynamic_linker" = no && can_build_shared=no
10390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10391 if test "$GCC" = yes; then
10392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10398 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10488 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10491 if test -n "$hardcode_libdir_flag_spec" ||
10492 test -n "$runpath_var" ||
10493 test "X$hardcode_automatic" = "Xyes" ; then
10495 # We can hardcode non-existent directories.
10496 if test "$hardcode_direct" != no &&
10497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10498 # have to relink, otherwise we might link with an installed library
10499 # when we should be linking with a yet-to-be-installed one
10500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10501 test "$hardcode_minus_L" != no; then
10502 # Linking always hardcodes the temporary library directory.
10503 hardcode_action=relink
10505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10506 hardcode_action=immediate
10509 # We cannot hardcode anything, or else we can only hardcode existing
10511 hardcode_action=unsupported
10513 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10514 $as_echo "$hardcode_action" >&6; }
10516 if test "$hardcode_action" = relink ||
10517 test "$inherit_rpath" = yes; then
10518 # Fast installation is not supported
10519 enable_fast_install=no
10520 elif test "$shlibpath_overrides_runpath" = yes ||
10521 test "$enable_shared" = no; then
10522 # Fast installation is not necessary
10523 enable_fast_install=needless
10531 if test "x$enable_dlopen" != xyes; then
10532 enable_dlopen=unknown
10533 enable_dlopen_self=unknown
10534 enable_dlopen_self_static=unknown
10541 lt_cv_dlopen="load_add_on"
10543 lt_cv_dlopen_self=yes
10546 mingw* | pw32* | cegcc*)
10547 lt_cv_dlopen="LoadLibrary"
10552 lt_cv_dlopen="dlopen"
10557 # if libdl is installed we need to link against it
10558 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10559 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10561 $as_echo_n "(cached) " >&6
10563 ac_check_lib_save_LIBS=$LIBS
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10591 *) ac_try_echo
=$ac_try;;
10593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_link") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1
>conftest.err
10599 cat conftest.err
>&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest
$ac_exeext && {
10605 test "$cross_compiling" = yes ||
10606 $as_test_x conftest
$ac_exeext
10608 ac_cv_lib_dl_dlopen
=yes
10610 $as_echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.
$ac_ext >&5
10613 ac_cv_lib_dl_dlopen
=no
10616 rm -rf conftest.dSYM
10617 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10618 conftest
$ac_exeext conftest.
$ac_ext
10619 LIBS
=$ac_check_lib_save_LIBS
10621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10623 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10624 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10627 lt_cv_dlopen
="dyld"
10629 lt_cv_dlopen_self
=yes
10636 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10637 $as_echo_n "checking for shl_load... " >&6; }
10638 if test "${ac_cv_func_shl_load+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10641 cat >conftest.
$ac_ext <<_ACEOF
10644 cat confdefs.h
>>conftest.
$ac_ext
10645 cat >>conftest.
$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10649 #define shl_load innocuous_shl_load
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char shl_load (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10657 # include <limits.h>
10659 # include <assert.h>
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10671 /* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674 #if defined __stub_shl_load || defined __stub___shl_load
10681 return shl_load ();
10686 rm -f conftest.
$ac_objext conftest
$ac_exeext
10687 if { (ac_try
="$ac_link"
10688 case "(($ac_try" in
10689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10707 ac_cv_func_shl_load=yes
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_func_shl_load=no
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10720 $as_echo "$ac_cv_func_shl_load" >&6; }
10721 if test "x$ac_cv_func_shl_load" = x""yes; then
10722 lt_cv_dlopen="shl_load"
10724 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10725 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10727 $as_echo_n "(cached) " >&6
10729 ac_check_lib_save_LIBS=$LIBS
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10748 return shl_load ();
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (ac_try="$ac_link"
10755 case "(($ac_try" in
10756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10757 *) ac_try_echo
=$ac_try;;
10759 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10760 $as_echo "$ac_try_echo") >&5
10761 (eval "$ac_link") 2>conftest.er1
10763 grep -v '^ *+' conftest.er1
>conftest.err
10765 cat conftest.err
>&5
10766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest
$ac_exeext && {
10771 test "$cross_compiling" = yes ||
10772 $as_test_x conftest
$ac_exeext
10774 ac_cv_lib_dld_shl_load
=yes
10776 $as_echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.
$ac_ext >&5
10779 ac_cv_lib_dld_shl_load
=no
10782 rm -rf conftest.dSYM
10783 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10784 conftest
$ac_exeext conftest.
$ac_ext
10785 LIBS
=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10788 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10789 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10790 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10792 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10793 $as_echo_n "checking for dlopen... " >&6; }
10794 if test "${ac_cv_func_dlopen+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10797 cat >conftest.
$ac_ext <<_ACEOF
10800 cat confdefs.h
>>conftest.
$ac_ext
10801 cat >>conftest.
$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10805 #define dlopen innocuous_dlopen
10807 /* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char dlopen (); below.
10809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10810 <limits.h> exists even on freestanding compilers. */
10813 # include <limits.h>
10815 # include <assert.h>
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10827 /* The GNU C library defines this for functions which it implements
10828 to always fail with ENOSYS. Some functions are actually named
10829 something starting with __ and the normal name is an alias. */
10830 #if defined __stub_dlopen || defined __stub___dlopen
10842 rm -f conftest.
$ac_objext conftest
$ac_exeext
10843 if { (ac_try
="$ac_link"
10844 case "(($ac_try" in
10845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10849 $as_echo "$ac_try_echo") >&5
10850 (eval "$ac_link") 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && {
10857 test -z "$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10859 } && test -s conftest$ac_exeext && {
10860 test "$cross_compiling" = yes ||
10861 $as_test_x conftest$ac_exeext
10863 ac_cv_func_dlopen=yes
10865 $as_echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 ac_cv_func_dlopen=no
10871 rm -rf conftest.dSYM
10872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10873 conftest$ac_exeext conftest.$ac_ext
10875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10876 $as_echo "$ac_cv_func_dlopen" >&6; }
10877 if test "x$ac_cv_func_dlopen" = x""yes; then
10878 lt_cv_dlopen="dlopen"
10880 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10883 $as_echo_n "(cached) " >&6
10885 ac_check_lib_save_LIBS=$LIBS
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10913 *) ac_try_echo
=$ac_try;;
10915 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10916 $as_echo "$ac_try_echo") >&5
10917 (eval "$ac_link") 2>conftest.er1
10919 grep -v '^ *+' conftest.er1
>conftest.err
10921 cat conftest.err
>&5
10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest
$ac_exeext && {
10927 test "$cross_compiling" = yes ||
10928 $as_test_x conftest
$ac_exeext
10930 ac_cv_lib_dl_dlopen
=yes
10932 $as_echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.
$ac_ext >&5
10935 ac_cv_lib_dl_dlopen
=no
10938 rm -rf conftest.dSYM
10939 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10940 conftest
$ac_exeext conftest.
$ac_ext
10941 LIBS
=$ac_check_lib_save_LIBS
10943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10944 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10945 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10946 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10948 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10949 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10951 $as_echo_n "(cached) " >&6
10953 ac_check_lib_save_LIBS
=$LIBS
10954 LIBS
="-lsvld $LIBS"
10955 cat >conftest.
$ac_ext <<_ACEOF
10958 cat confdefs.h
>>conftest.
$ac_ext
10959 cat >>conftest.
$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10977 rm -f conftest.
$ac_objext conftest
$ac_exeext
10978 if { (ac_try
="$ac_link"
10979 case "(($ac_try" in
10980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10998 ac_cv_lib_svld_dlopen=yes
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_lib_svld_dlopen=no
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11013 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11016 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11019 $as_echo_n "(cached) " >&6
11021 ac_check_lib_save_LIBS=$LIBS
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11040 return dld_link ();
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11049 *) ac_try_echo
=$ac_try;;
11051 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1
>conftest.err
11057 cat conftest.err
>&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest
$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest
$ac_exeext
11066 ac_cv_lib_dld_dld_link
=yes
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.
$ac_ext >&5
11071 ac_cv_lib_dld_dld_link
=no
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11076 conftest
$ac_exeext conftest.
$ac_ext
11077 LIBS
=$ac_check_lib_save_LIBS
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11080 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11081 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11082 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11103 if test "x$lt_cv_dlopen" != xno
; then
11109 case $lt_cv_dlopen in
11111 save_CPPFLAGS
="$CPPFLAGS"
11112 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11114 save_LDFLAGS
="$LDFLAGS"
11115 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11118 LIBS
="$lt_cv_dlopen_libs $LIBS"
11120 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11121 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11122 if test "${lt_cv_dlopen_self+set}" = set; then
11123 $as_echo_n "(cached) " >&6
11125 if test "$cross_compiling" = yes; then :
11126 lt_cv_dlopen_self
=cross
11128 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11129 lt_status
=$lt_dlunknown
11130 cat > conftest.
$ac_ext <<_LT_EOF
11131 #line 11131 "configure"
11132 #include "confdefs.h"
11141 # define LT_DLGLOBAL RTLD_GLOBAL
11144 # define LT_DLGLOBAL DL_GLOBAL
11146 # define LT_DLGLOBAL 0
11150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11151 find out it does not work in some platform. */
11152 #ifndef LT_DLLAZY_OR_NOW
11154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11157 # define LT_DLLAZY_OR_NOW DL_LAZY
11160 # define LT_DLLAZY_OR_NOW RTLD_NOW
11163 # define LT_DLLAZY_OR_NOW DL_NOW
11165 # define LT_DLLAZY_OR_NOW 0
11172 void fnord() { int i=42;}
11175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11176 int status = $lt_dlunknown;
11180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11182 /* dlclose (self); */
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11195 (.
/conftest
; exit; ) >&5 2>/dev
/null
11197 case x
$lt_status in
11198 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11199 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11200 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11203 # compilation failed
11204 lt_cv_dlopen_self
=no
11211 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11212 $as_echo "$lt_cv_dlopen_self" >&6; }
11214 if test "x$lt_cv_dlopen_self" = xyes
; then
11215 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11216 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self_static+set}" = set; then
11219 $as_echo_n "(cached) " >&6
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self_static
=cross
11224 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11225 lt_status
=$lt_dlunknown
11226 cat > conftest.
$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11242 # define LT_DLGLOBAL 0
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11261 # define LT_DLLAZY_OR_NOW 0
11268 void fnord() { int i=42;}
11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272 int status = $lt_dlunknown;
11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278 /* dlclose (self); */
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11291 (.
/conftest
; exit; ) >&5 2>/dev
/null
11293 case x
$lt_status in
11294 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11295 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11296 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11299 # compilation failed
11300 lt_cv_dlopen_self_static
=no
11307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11311 CPPFLAGS
="$save_CPPFLAGS"
11312 LDFLAGS
="$save_LDFLAGS"
11317 case $lt_cv_dlopen_self in
11318 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11319 *) enable_dlopen_self
=unknown
;;
11322 case $lt_cv_dlopen_self_static in
11323 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11324 *) enable_dlopen_self_static
=unknown
;;
11346 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11348 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11349 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11350 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11351 { $as_echo "$as_me:$LINENO: result: yes" >&5
11352 $as_echo "yes" >&6; }
11354 # FIXME - insert some real tests, host_os isn't really good enough
11357 if test -n "$STRIP" ; then
11358 striplib
="$STRIP -x"
11359 old_striplib
="$STRIP -S"
11360 { $as_echo "$as_me:$LINENO: result: yes" >&5
11361 $as_echo "yes" >&6; }
11363 { $as_echo "$as_me:$LINENO: result: no" >&5
11364 $as_echo "no" >&6; }
11368 { $as_echo "$as_me:$LINENO: result: no" >&5
11369 $as_echo "no" >&6; }
11385 # Report which library types will actually be built
11386 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11388 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11389 $as_echo "$can_build_shared" >&6; }
11391 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11392 $as_echo_n "checking whether to build shared libraries... " >&6; }
11393 test "$can_build_shared" = "no" && enable_shared
=no
11395 # On AIX, shared libraries and static libraries use the same namespace, and
11396 # are all built from PIC.
11399 test "$enable_shared" = yes && enable_static
=no
11400 if test -n "$RANLIB"; then
11401 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11402 postinstall_cmds
='$RANLIB $lib'
11407 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11408 test "$enable_shared" = yes && enable_static
=no
11412 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11413 $as_echo "$enable_shared" >&6; }
11415 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11416 $as_echo_n "checking whether to build static libraries... " >&6; }
11417 # Make sure either enable_shared or enable_static is yes.
11418 test "$enable_shared" = yes || enable_static
=yes
11419 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11420 $as_echo "$enable_static" >&6; }
11427 ac_cpp
='$CPP $CPPFLAGS'
11428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11446 ac_config_commands
="$ac_config_commands libtool"
11451 # Only expand once:
11456 { $as_echo "$as_me:$LINENO: checking spl author" >&5
11457 $as_echo_n "checking spl author... " >&6; }
11458 { $as_echo "$as_me:$LINENO: result: $SPL_META_AUTHOR" >&5
11459 $as_echo "$SPL_META_AUTHOR" >&6; }
11461 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11462 $as_echo_n "checking spl license... " >&6; }
11463 { $as_echo "$as_me:$LINENO: result: $SPL_META_LICENSE" >&5
11464 $as_echo "$SPL_META_LICENSE" >&6; }
11468 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11469 $as_echo_n "checking linux distribution... " >&6; }
11470 if test -f /etc
/toss-release
; then
11472 elif test -f /etc
/fedora-release
; then
11474 elif test -f /etc
/redhat-release
; then
11476 elif test -f /etc
/gentoo-release
; then
11478 elif test -f /etc
/arch-release
; then
11480 elif test -f /etc
/SuSE-release
; then
11482 elif test -f /etc
/slackware-version
; then
11484 elif test -f /etc
/lunar.release
; then
11486 elif test -f /etc
/lsb-release
; then
11488 elif test -f /etc
/debian_version
; then
11493 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11494 $as_echo "$VENDOR" >&6; }
11497 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11498 $as_echo_n "checking default package type... " >&6; }
11500 toss
) DEFAULT_PACKAGE
=rpm
;;
11501 redhat
) DEFAULT_PACKAGE
=rpm
;;
11502 fedora
) DEFAULT_PACKAGE
=rpm
;;
11503 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11504 arch
) DEFAULT_PACKAGE
=tgz
;;
11505 sles
) DEFAULT_PACKAGE
=rpm
;;
11506 slackware
) DEFAULT_PACKAGE
=tgz
;;
11507 lunar
) DEFAULT_PACKAGE
=tgz
;;
11508 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11509 debian
) DEFAULT_PACKAGE
=deb
;;
11510 *) DEFAULT_PACKAGE
=rpm
;;
11513 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11514 $as_echo "$DEFAULT_PACKAGE" >&6; }
11521 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11522 $as_echo_n "checking whether $RPM is available... " >&6; }
11523 if tmp
=$
($RPM --version 2>/dev
/null
); then
11525 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11527 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11528 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11533 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11534 $as_echo "$HAVE_RPM" >&6; }
11539 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11540 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11541 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11543 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11545 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11546 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11551 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11552 $as_echo "$HAVE_RPMBUILD" >&6; }
11557 RPM_DEFINE_COMMON
='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
11559 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)"'
11562 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11567 RPM_SPEC_DIR
="rpm/generic"
11569 # Check whether --with-spec was given.
11570 if test "${with_spec+set}" = set; then
11571 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11575 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
11576 $as_echo_n "checking whether spec files are available... " >&6; }
11577 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11578 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11600 DPKGBUILD
=dpkg-buildpackage
11602 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11603 $as_echo_n "checking whether $DPKG is available... " >&6; }
11604 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11606 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11608 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11609 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11614 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11615 $as_echo "$HAVE_DPKG" >&6; }
11620 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11621 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11622 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11624 DPKGBUILD_VERSION
=$
(echo $tmp | \
11625 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11627 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11628 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11633 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11634 $as_echo "$HAVE_DPKGBUILD" >&6; }
11650 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11651 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11652 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11654 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11656 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11657 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11662 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11663 $as_echo "$HAVE_ALIEN" >&6; }
11676 # Check whether --with-config was given.
11677 if test "${with_config+set}" = set; then
11678 withval
=$with_config; SPL_CONFIG
="$withval"
11681 # Check whether --enable-linux-builtin was given.
11682 if test "${enable_linux_builtin+set}" = set; then
11683 enableval
=$enable_linux_builtin;
11685 enable_linux_builtin
=no
11689 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11690 $as_echo_n "checking spl config... " >&6; }
11691 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11692 $as_echo "$SPL_CONFIG" >&6; };
11695 case "$SPL_CONFIG" in
11699 # Check whether --with-linux was given.
11700 if test "${with_linux+set}" = set; then
11701 withval
=$with_linux; kernelsrc
="$withval"
11706 # Check whether --with-linux-obj was given.
11707 if test "${with_linux_obj+set}" = set; then
11708 withval
=$with_linux_obj; kernelbuild
="$withval"
11712 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11713 $as_echo_n "checking kernel source directory... " >&6; }
11714 if test -z "$kernelsrc"; then
11715 if test -e "/lib/modules/$(uname -r)/source"; then
11716 headersdir
="/lib/modules/$(uname -r)/source"
11717 sourcelink
=$
(readlink
-f "$headersdir")
11718 elif test -e "/lib/modules/$(uname -r)/build"; then
11719 headersdir
="/lib/modules/$(uname -r)/build"
11720 sourcelink
=$
(readlink
-f "$headersdir")
11722 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11724 2>/dev
/null |
grep -v obj |
tail -1)
11727 if test -n "$sourcelink" && test -e ${sourcelink}; then
11728 kernelsrc
=`readlink -f ${sourcelink}`
11730 kernelsrc
="Not found"
11733 if test "$kernelsrc" = "NONE"; then
11738 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11739 $as_echo "$kernelsrc" >&6; }
11740 if test ! -d "$kernelsrc"; then
11741 { { $as_echo "$as_me:$LINENO: error:
11742 *** Please make sure the kernel devel package for your distribution
11743 *** is installed and then try again. If that fails, you can specify the
11744 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11745 $as_echo "$as_me: error:
11746 *** Please make sure the kernel devel package for your distribution
11747 *** is installed and then try again. If that fails, you can specify the
11748 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11749 { (exit 1); exit 1; }; }
11752 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11753 $as_echo_n "checking kernel build directory... " >&6; }
11754 if test -z "$kernelbuild"; then
11755 if test -e "/lib/modules/$(uname -r)/build"; then
11756 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
11757 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11758 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11759 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
11760 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11761 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
11762 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11764 kernelbuild
=${kernelsrc}
11767 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11768 $as_echo "$kernelbuild" >&6; }
11770 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11771 $as_echo_n "checking kernel source version... " >&6; }
11772 utsrelease1
=$kernelbuild/include
/linux
/version.h
11773 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11774 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11775 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
11776 utsrelease
=linux
/version.h
11777 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
11778 utsrelease
=linux
/utsrelease.h
11779 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
11780 utsrelease
=generated
/utsrelease.h
11783 if test "$utsrelease"; then
11784 kernsrcver
=`(echo "#include <$utsrelease>";
11785 echo "kernsrcver=UTS_RELEASE") |
11786 cpp -I $kernelbuild/include |
11787 grep "^kernsrcver=" | cut -d \" -f 2`
11789 if test -z "$kernsrcver"; then
11790 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11791 $as_echo "Not found" >&6; }
11792 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11793 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11794 { (exit 1); exit 1; }; }
11797 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11798 $as_echo "Not found" >&6; }
11799 if test "x$enable_linux_builtin" != xyes
; then
11800 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11801 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11802 { (exit 1); exit 1; }; }
11804 { { $as_echo "$as_me:$LINENO: error:
11805 *** Cannot find UTS_RELEASE definition.
11806 *** Please run 'make prepare' inside the kernel source tree." >&5
11807 $as_echo "$as_me: error:
11808 *** Cannot find UTS_RELEASE definition.
11809 *** Please run 'make prepare' inside the kernel source tree." >&2;}
11810 { (exit 1); exit 1; }; }
11814 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11815 $as_echo "$kernsrcver" >&6; }
11818 LINUX_OBJ
=${kernelbuild}
11819 LINUX_VERSION
=${kernsrcver}
11826 modpost
=$LINUX/scripts
/Makefile.modpost
11827 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11828 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11829 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
11830 if grep -q Modules.symvers
$modpost; then
11831 LINUX_SYMBOLS
=Modules.symvers
11833 LINUX_SYMBOLS
=Module.symvers
11836 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11837 { { $as_echo "$as_me:$LINENO: error:
11838 *** Please make sure the kernel devel package for your distribution
11839 *** is installed. If you are building with a custom kernel, make sure the
11840 *** kernel is configured, built, and the '--with-linux=PATH' configure
11841 *** option refers to the location of the kernel source." >&5
11842 $as_echo "$as_me: error:
11843 *** Please make sure the kernel devel package for your distribution
11844 *** is installed. If you are building with a custom kernel, make sure the
11845 *** kernel is configured, built, and the '--with-linux=PATH' configure
11846 *** option refers to the location of the kernel source." >&2;}
11847 { (exit 1); exit 1; }; }
11852 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11853 $as_echo "$LINUX_SYMBOLS" >&6; }
11858 if test "${LINUX_OBJ}" != "${LINUX}"; then
11859 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11863 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wstrict-prototypes"
11867 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11868 $as_echo_n "checking whether debugging is enabled... " >&6; }
11869 # Check whether --enable-debug was given.
11870 if test "${enable_debug+set}" = set; then
11871 enableval
=$enable_debug;
11877 if test "x$enable_debug" = xyes
; then
11879 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
11880 DEBUG_CFLAGS
="-DDEBUG -Werror"
11881 DEBUG_SPL
="_with_debug"
11885 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG"
11886 DEBUG_CFLAGS
="-DNDEBUG"
11887 DEBUG_SPL
="_without_debug"
11894 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11895 $as_echo "$enable_debug" >&6; }
11898 # Check whether --enable-debug-kmem was given.
11899 if test "${enable_debug_kmem+set}" = set; then
11900 enableval
=$enable_debug_kmem;
11902 enable_debug_kmem
=no
11906 if test "x$enable_debug_kmem" = xyes
; then
11908 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11909 DEBUG_KMEM
="_with_debug_kmem"
11911 cat >>confdefs.h
<<\_ACEOF
11912 #define DEBUG_KMEM 1
11918 DEBUG_KMEM
="_without_debug_kmem"
11924 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11925 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11926 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11927 $as_echo "$enable_debug_kmem" >&6; }
11930 # Check whether --enable-debug-kmem-tracking was given.
11931 if test "${enable_debug_kmem_tracking+set}" = set; then
11932 enableval
=$enable_debug_kmem_tracking;
11934 enable_debug_kmem_tracking
=no
11938 if test "x$enable_debug_kmem_tracking" = xyes
; then
11940 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11941 DEBUG_KMEM_TRACKING
="_with_debug_kmem_tracking"
11943 cat >>confdefs.h
<<\_ACEOF
11944 #define DEBUG_KMEM_TRACKING 1
11950 DEBUG_KMEM_TRACKING
="_without_debug_kmem_tracking"
11956 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11957 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11958 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11959 $as_echo "$enable_debug_kmem_tracking" >&6; }
11961 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
11962 $as_echo_n "checking whether modules can be built... " >&6; }
11965 cat confdefs.h
- <<_ACEOF >conftest.c
11968 cat confdefs.h
>>conftest.
$ac_ext
11969 cat >>conftest.
$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11985 echo "obj-m := conftest.o" >build
/Makefile
11987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11988 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
12000 { $as_echo "$as_me:$LINENO: result: yes" >&5
12001 $as_echo "yes" >&6; }
12004 $as_echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.
$ac_ext >&5
12007 { $as_echo "$as_me:$LINENO: result: no" >&5
12008 $as_echo "no" >&6; }
12009 if test "x$enable_linux_builtin" != xyes
; then
12010 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12011 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12012 { (exit 1); exit 1; }; }
12014 { { $as_echo "$as_me:$LINENO: error:
12015 *** Unable to build an empty module.
12016 *** Please run 'make scripts' inside the kernel source tree." >&5
12017 $as_echo "$as_me: error:
12018 *** Unable to build an empty module.
12019 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12020 { (exit 1); exit 1; }; }
12031 if test "x$cross_compiling" != xyes
; then
12033 if test "$cross_compiling" = yes; then
12034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12036 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12037 See \`config.log' for more details." >&5
12038 $as_echo "$as_me: error: cannot run test program while cross compiling
12039 See \`config.log' for more details." >&2;}
12040 { (exit 1); exit 1; }; }; }
12042 cat >conftest.
$ac_ext <<_ACEOF
12046 cat confdefs.h
>>conftest.
$ac_ext
12047 cat >>conftest.
$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 #include "$LINUX/include/linux/license.h"
12056 return !license_is_gpl_compatible(
12057 "$SPL_META_LICENSE");
12064 rm -f conftest
$ac_exeext
12065 if { (ac_try
="$ac_link"
12066 case "(($ac_try" in
12067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12071 $as_echo "$ac_try_echo") >&5
12072 (eval "$ac_link") 2>&5
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12076 { (case "(($ac_try" in
12077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12078 *) ac_try_echo
=$ac_try;;
12080 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_try") 2>&5
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12088 cat >>confdefs.h
<<\_ACEOF
12089 #define SPL_IS_GPL_COMPATIBLE 1
12094 $as_echo "$as_me: program exited with status $ac_status" >&5
12095 $as_echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.
$ac_ext >&5
12098 ( exit $ac_status )
12102 rm -rf conftest.dSYM
12103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12112 # Check whether --enable-atomic-spinlocks was given.
12113 if test "${enable_atomic_spinlocks+set}" = set; then
12114 enableval
=$enable_atomic_spinlocks;
12116 enable_atomic_spinlocks
=check
12122 cat confdefs.h
- <<_ACEOF >conftest.c
12125 cat confdefs.h
>>conftest.
$ac_ext
12126 cat >>conftest.
$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12130 #include <linux/fs.h>
12136 atomic64_t *ptr __attribute__ ((unused));
12145 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12146 echo "obj-m := conftest.o" >build
/Makefile
12148 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12149 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12161 have_atomic64_t
=yes
12163 cat >>confdefs.h
<<\_ACEOF
12164 #define HAVE_ATOMIC64_T 1
12169 $as_echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.
$ac_ext >&5
12182 if test "x$enable_atomic_spinlocks" = xcheck
; then
12184 if test "x$have_atomic64_t" = xyes
; then
12186 enable_atomic_spinlocks
=no
12190 enable_atomic_spinlocks
=yes
12198 if test "x$enable_atomic_spinlocks" = xyes
; then
12201 cat >>confdefs.h
<<\_ACEOF
12202 #define ATOMIC_SPINLOCK 1
12208 if test "x$have_atomic64_t" = xno
; then
12210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12212 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12213 See \`config.log' for more details." >&5
12214 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12215 See \`config.log' for more details." >&2;}
12216 { (exit 1); exit 1; }; }; }
12224 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12225 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12226 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12227 $as_echo "$enable_atomic_spinlocks" >&6; }
12229 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12230 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12231 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12232 $as_echo "$have_atomic64_t" >&6; }
12235 tmp_flags
="$EXTRA_KCFLAGS"
12236 EXTRA_KCFLAGS
="-Werror"
12237 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
12238 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12241 cat confdefs.h
- <<_ACEOF >conftest.c
12244 cat confdefs.h
>>conftest.
$ac_ext
12245 cat >>conftest.
$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12249 #include <linux/mm.h>
12251 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12257 struct shrinker cache_shrinker = {
12258 .shrink = shrinker_cb,
12259 .seeks = DEFAULT_SEEKS,
12261 register_shrinker(&cache_shrinker);
12270 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12271 echo "obj-m := conftest.o" >build
/Makefile
12273 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12274 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12286 { $as_echo "$as_me:$LINENO: result: yes" >&5
12287 $as_echo "yes" >&6; }
12289 cat >>confdefs.h
<<\_ACEOF
12290 #define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
12295 $as_echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.
$ac_ext >&5
12298 { $as_echo "$as_me:$LINENO: result: no" >&5
12299 $as_echo "no" >&6; }
12300 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
12301 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12304 cat confdefs.h
- <<_ACEOF >conftest.c
12307 cat confdefs.h
>>conftest.
$ac_ext
12308 cat >>conftest.
$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12312 #include <linux/mm.h>
12314 int shrinker_cb(struct shrinker *, int nr_to_scan,
12321 struct shrinker cache_shrinker = {
12322 .shrink = shrinker_cb,
12323 .seeks = DEFAULT_SEEKS,
12325 register_shrinker(&cache_shrinker);
12334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12335 echo "obj-m := conftest.o" >build
/Makefile
12337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12338 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12350 { $as_echo "$as_me:$LINENO: result: yes" >&5
12351 $as_echo "yes" >&6; }
12353 cat >>confdefs.h
<<\_ACEOF
12354 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12359 $as_echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.
$ac_ext >&5
12362 { $as_echo "$as_me:$LINENO: result: no" >&5
12363 $as_echo "no" >&6; }
12364 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
12365 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12368 cat confdefs.h
- <<_ACEOF >conftest.c
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12376 #include <linux/mm.h>
12378 int shrinker_cb(struct shrinker *,
12379 struct shrink_control *sc);
12385 struct shrinker cache_shrinker = {
12386 .shrink = shrinker_cb,
12387 .seeks = DEFAULT_SEEKS,
12389 register_shrinker(&cache_shrinker);
12398 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12399 echo "obj-m := conftest.o" >build
/Makefile
12401 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12402 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12414 { $as_echo "$as_me:$LINENO: result: yes" >&5
12415 $as_echo "yes" >&6; }
12417 cat >>confdefs.h
<<\_ACEOF
12418 #define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
12423 $as_echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.
$ac_ext >&5
12426 { $as_echo "$as_me:$LINENO: result: no" >&5
12427 $as_echo "no" >&6; }
12428 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
12429 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12432 cat confdefs.h
- <<_ACEOF >conftest.c
12435 cat confdefs.h
>>conftest.
$ac_ext
12436 cat >>conftest.
$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12440 #include <linux/mm.h>
12442 unsigned long shrinker_cb(
12444 struct shrink_control *sc);
12450 struct shrinker cache_shrinker = {
12451 .count_objects = shrinker_cb,
12452 .scan_objects = shrinker_cb,
12453 .seeks = DEFAULT_SEEKS,
12455 register_shrinker(&cache_shrinker);
12464 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12465 echo "obj-m := conftest.o" >build
/Makefile
12467 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12468 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12480 { $as_echo "$as_me:$LINENO: result: yes" >&5
12481 $as_echo "yes" >&6; }
12483 cat >>confdefs.h
<<\_ACEOF
12484 #define HAVE_SPLIT_SHRINKER_CALLBACK 1
12489 $as_echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.
$ac_ext >&5
12492 { { $as_echo "$as_me:$LINENO: error: error" >&5
12493 $as_echo "$as_me: error: error" >&2;}
12494 { (exit 1); exit 1; }; }
12527 EXTRA_KCFLAGS
="$tmp_flags"
12530 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12531 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12534 cat confdefs.h
- <<_ACEOF >conftest.c
12537 cat confdefs.h
>>conftest.
$ac_ext
12538 cat >>conftest.
$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12542 #include <linux/sysctl.h>
12548 struct ctl_table ctl __attribute__ ((unused));
12558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12559 echo "obj-m := conftest.o" >build
/Makefile
12561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12562 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12574 { $as_echo "$as_me:$LINENO: result: yes" >&5
12575 $as_echo "yes" >&6; }
12577 cat >>confdefs.h
<<\_ACEOF
12578 #define HAVE_CTL_NAME 1
12583 $as_echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.
$ac_ext >&5
12586 { $as_echo "$as_me:$LINENO: result: no" >&5
12587 $as_echo "no" >&6; }
12598 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
12599 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
12602 cat confdefs.h
- <<_ACEOF >conftest.c
12605 cat confdefs.h
>>conftest.
$ac_ext
12606 cat >>conftest.
$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12610 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
12611 #error CONFIG_TRIM_UNUSED_KSYMS not defined
12625 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12626 echo "obj-m := conftest.o" >build
/Makefile
12628 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12629 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12641 { $as_echo "$as_me:$LINENO: result: yes" >&5
12642 $as_echo "yes" >&6; }
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 { $as_echo "$as_me:$LINENO: result: no" >&5
12649 $as_echo "no" >&6; }
12650 { { $as_echo "$as_me:$LINENO: error:
12651 *** This kernel has unused symbols trimming enabled, please disable.
12652 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
12653 $as_echo "$as_me: error:
12654 *** This kernel has unused symbols trimming enabled, please disable.
12655 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
12656 { (exit 1); exit 1; }; }
12667 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
12668 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
12672 cat confdefs.h
- <<_ACEOF >conftest.c
12675 cat confdefs.h
>>conftest.
$ac_ext
12676 cat >>conftest.
$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12680 #include <linux/proc_fs.h>
12695 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12696 echo "obj-m := conftest.o" >build
/Makefile
12698 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12699 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12712 $as_echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.
$ac_ext >&5
12722 if test $rc -ne 0; then :
12724 { $as_echo "$as_me:$LINENO: result: no" >&5
12725 $as_echo "no" >&6; }
12728 if test "x$enable_linux_builtin" != xyes
; then
12730 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12731 $LINUX_OBJ/Module
*.symvers
2>/dev
/null
12733 if test $rc -ne 0; then
12736 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12737 "$LINUX_OBJ/$file" 2>/dev
/null
12739 if test $rc -eq 0; then
12744 if test $export -eq 0; then :
12754 if test $rc -ne 0; then :
12756 { $as_echo "$as_me:$LINENO: result: no" >&5
12757 $as_echo "no" >&6; }
12761 { $as_echo "$as_me:$LINENO: result: yes" >&5
12762 $as_echo "yes" >&6; }
12764 cat >>confdefs.h
<<\_ACEOF
12765 #define HAVE_PDE_DATA 1
12773 tmp_flags
="$EXTRA_KCFLAGS"
12774 EXTRA_KCFLAGS
="-Werror"
12775 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
12776 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
12779 cat confdefs.h
- <<_ACEOF >conftest.c
12782 cat confdefs.h
>>conftest.
$ac_ext
12783 cat >>conftest.
$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12787 #include <linux/spinlock.h>
12788 #include <linux/fs_struct.h>
12789 #include <linux/path.h>
12790 void (*const set_fs_pwd_func)
12791 (struct fs_struct *, const struct path *)
12807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12808 echo "obj-m := conftest.o" >build
/Makefile
12810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12811 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12823 { $as_echo "$as_me:$LINENO: result: yes" >&5
12824 $as_echo "yes" >&6; }
12826 cat >>confdefs.h
<<\_ACEOF
12827 #define HAVE_SET_FS_PWD_WITH_CONST 1
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.
$ac_ext >&5
12837 cat confdefs.h
- <<_ACEOF >conftest.c
12840 cat confdefs.h
>>conftest.
$ac_ext
12841 cat >>conftest.
$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12845 #include <linux/spinlock.h>
12846 #include <linux/fs_struct.h>
12847 #include <linux/path.h>
12848 void (*const set_fs_pwd_func)
12849 (struct fs_struct *, struct path *)
12865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12866 echo "obj-m := conftest.o" >build
/Makefile
12868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12869 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12881 { $as_echo "$as_me:$LINENO: result: no" >&5
12882 $as_echo "no" >&6; }
12885 $as_echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.
$ac_ext >&5
12888 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
12889 $as_echo "$as_me: error: unknown" >&2;}
12890 { (exit 1); exit 1; }; }
12907 EXTRA_KCFLAGS
="$tmp_flags"
12909 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
12910 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
12913 cat confdefs.h
- <<_ACEOF >conftest.c
12916 cat confdefs.h
>>conftest.
$ac_ext
12917 cat >>conftest.
$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12921 #include <linux/fs.h>
12927 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
12936 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12937 echo "obj-m := conftest.o" >build
/Makefile
12939 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12940 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12952 { $as_echo "$as_me:$LINENO: result: yes" >&5
12953 $as_echo "yes" >&6; }
12955 cat >>confdefs.h
<<\_ACEOF
12956 #define HAVE_2ARGS_VFS_UNLINK 1
12961 $as_echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.
$ac_ext >&5
12964 { $as_echo "$as_me:$LINENO: result: no" >&5
12965 $as_echo "no" >&6; }
12966 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
12967 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
12970 cat confdefs.h
- <<_ACEOF >conftest.c
12973 cat confdefs.h
>>conftest.
$ac_ext
12974 cat >>conftest.
$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12978 #include <linux/fs.h>
12984 vfs_unlink((struct inode *) NULL,
12985 (struct dentry *) NULL,
12986 (struct inode **) NULL);
12995 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12996 echo "obj-m := conftest.o" >build
/Makefile
12998 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12999 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13011 { $as_echo "$as_me:$LINENO: result: yes" >&5
13012 $as_echo "yes" >&6; }
13014 cat >>confdefs.h
<<\_ACEOF
13015 #define HAVE_3ARGS_VFS_UNLINK 1
13020 $as_echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.
$ac_ext >&5
13023 { { $as_echo "$as_me:$LINENO: error: no" >&5
13024 $as_echo "$as_me: error: no" >&2;}
13025 { (exit 1); exit 1; }; }
13044 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
13045 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13048 cat confdefs.h
- <<_ACEOF >conftest.c
13051 cat confdefs.h
>>conftest.
$ac_ext
13052 cat >>conftest.
$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13056 #include <linux/fs.h>
13062 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13063 (struct inode *) NULL, (struct dentry *) NULL);
13072 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13073 echo "obj-m := conftest.o" >build
/Makefile
13075 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13076 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13088 { $as_echo "$as_me:$LINENO: result: yes" >&5
13089 $as_echo "yes" >&6; }
13091 cat >>confdefs.h
<<\_ACEOF
13092 #define HAVE_4ARGS_VFS_RENAME 1
13097 $as_echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.
$ac_ext >&5
13100 { $as_echo "$as_me:$LINENO: result: no" >&5
13101 $as_echo "no" >&6; }
13102 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
13103 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13106 cat confdefs.h
- <<_ACEOF >conftest.c
13109 cat confdefs.h
>>conftest.
$ac_ext
13110 cat >>conftest.
$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13114 #include <linux/fs.h>
13120 vfs_rename((struct inode *) NULL,
13121 (struct dentry *) NULL,
13122 (struct inode *) NULL,
13123 (struct dentry *) NULL,
13124 (struct inode **) NULL);
13133 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13134 echo "obj-m := conftest.o" >build
/Makefile
13136 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13137 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
13150 $as_echo "yes" >&6; }
13152 cat >>confdefs.h
<<\_ACEOF
13153 #define HAVE_5ARGS_VFS_RENAME 1
13158 $as_echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.
$ac_ext >&5
13161 { $as_echo "$as_me:$LINENO: result: no" >&5
13162 $as_echo "no" >&6; }
13163 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
13164 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13167 cat confdefs.h
- <<_ACEOF >conftest.c
13170 cat confdefs.h
>>conftest.
$ac_ext
13171 cat >>conftest.
$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13175 #include <linux/fs.h>
13181 vfs_rename((struct inode *) NULL,
13182 (struct dentry *) NULL,
13183 (struct inode *) NULL,
13184 (struct dentry *) NULL,
13185 (struct inode **) NULL,
13195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13196 echo "obj-m := conftest.o" >build
/Makefile
13198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13199 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
13212 $as_echo "yes" >&6; }
13214 cat >>confdefs.h
<<\_ACEOF
13215 #define HAVE_6ARGS_VFS_RENAME 1
13220 $as_echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.
$ac_ext >&5
13223 { { $as_echo "$as_me:$LINENO: error: no" >&5
13224 $as_echo "$as_me: error: no" >&2;}
13225 { (exit 1); exit 1; }; }
13252 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
13253 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13256 cat confdefs.h
- <<_ACEOF >conftest.c
13259 cat confdefs.h
>>conftest.
$ac_ext
13260 cat >>conftest.
$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13264 #include <linux/fs.h>
13270 vfs_fsync(NULL, 0);
13279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13280 echo "obj-m := conftest.o" >build
/Makefile
13282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13283 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13295 { $as_echo "$as_me:$LINENO: result: yes" >&5
13296 $as_echo "yes" >&6; }
13298 cat >>confdefs.h
<<\_ACEOF
13299 #define HAVE_2ARGS_VFS_FSYNC 1
13304 $as_echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.
$ac_ext >&5
13307 { $as_echo "$as_me:$LINENO: result: no" >&5
13308 $as_echo "no" >&6; }
13319 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
13320 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13323 cat confdefs.h
- <<_ACEOF >conftest.c
13326 cat confdefs.h
>>conftest.
$ac_ext
13327 cat >>conftest.
$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13331 #include <linux/fs.h>
13337 struct inode_operations ops;
13338 ops.truncate_range = NULL;
13347 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13348 echo "obj-m := conftest.o" >build
/Makefile
13350 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13351 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13363 { $as_echo "$as_me:$LINENO: result: yes" >&5
13364 $as_echo "yes" >&6; }
13366 cat >>confdefs.h
<<\_ACEOF
13367 #define HAVE_INODE_TRUNCATE_RANGE 1
13372 $as_echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.
$ac_ext >&5
13375 { $as_echo "$as_me:$LINENO: result: no" >&5
13376 $as_echo "no" >&6; }
13387 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
13388 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13389 tmp_flags
="$EXTRA_KCFLAGS"
13390 EXTRA_KCFLAGS
="-Werror"
13393 cat confdefs.h
- <<_ACEOF >conftest.c
13396 cat confdefs.h
>>conftest.
$ac_ext
13397 cat >>conftest.
$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13401 #include <linux/sched.h>
13402 #include <linux/fs_struct.h>
13408 static struct fs_struct fs;
13409 spin_lock_init(&fs.lock);
13418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13419 echo "obj-m := conftest.o" >build
/Makefile
13421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13422 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13434 { $as_echo "$as_me:$LINENO: result: yes" >&5
13435 $as_echo "yes" >&6; }
13437 cat >>confdefs.h
<<\_ACEOF
13438 #define HAVE_FS_STRUCT_SPINLOCK 1
13443 $as_echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.
$ac_ext >&5
13446 { $as_echo "$as_me:$LINENO: result: no" >&5
13447 $as_echo "no" >&6; }
13456 EXTRA_KCFLAGS
="$tmp_flags"
13459 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
13460 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13463 cat confdefs.h
- <<_ACEOF >conftest.c
13466 cat confdefs.h
>>conftest.
$ac_ext
13467 cat >>conftest.
$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13471 #include <linux/uidgid.h>
13477 kuid_t userid = KUIDT_INIT(0);
13478 kgid_t groupid = KGIDT_INIT(0);
13487 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13488 echo "obj-m := conftest.o" >build
/Makefile
13490 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13491 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13505 cat confdefs.h
- <<_ACEOF >conftest.c
13508 cat confdefs.h
>>conftest.
$ac_ext
13509 cat >>conftest.
$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13513 #include <linux/uidgid.h>
13520 kgid_t groupid = 0;
13529 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13530 echo "obj-m := conftest.o" >build
/Makefile
13532 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13533 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13545 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
13546 $as_echo "yes; optional" >&6; }
13549 $as_echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.
$ac_ext >&5
13552 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
13553 $as_echo "yes; mandatory" >&6; }
13555 cat >>confdefs.h
<<\_ACEOF
13556 #define HAVE_KUIDGID_T 1
13569 $as_echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.
$ac_ext >&5
13572 { $as_echo "$as_me:$LINENO: result: no" >&5
13573 $as_echo "no" >&6; }
13585 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13586 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13589 cat confdefs.h
- <<_ACEOF >conftest.c
13592 cat confdefs.h
>>conftest.
$ac_ext
13593 cat >>conftest.
$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13597 #include <linux/fs.h>
13603 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13604 struct file_operations fops __attribute__ ((unused)) = {
13605 .fallocate = fallocate,
13615 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13616 echo "obj-m := conftest.o" >build
/Makefile
13618 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13619 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13631 { $as_echo "$as_me:$LINENO: result: yes" >&5
13632 $as_echo "yes" >&6; }
13634 cat >>confdefs.h
<<\_ACEOF
13635 #define HAVE_FILE_FALLOCATE 1
13640 $as_echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.
$ac_ext >&5
13643 { $as_echo "$as_me:$LINENO: result: no" >&5
13644 $as_echo "no" >&6; }
13655 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
13656 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
13659 cat confdefs.h
- <<_ACEOF >conftest.c
13662 cat confdefs.h
>>conftest.
$ac_ext
13663 cat >>conftest.
$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13667 #include <linux/fs.h>
13673 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
13674 struct inode_operations fops __attribute__ ((unused)) = {
13675 .fallocate = fallocate,
13685 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13686 echo "obj-m := conftest.o" >build
/Makefile
13688 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13689 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13701 { $as_echo "$as_me:$LINENO: result: yes" >&5
13702 $as_echo "yes" >&6; }
13704 cat >>confdefs.h
<<\_ACEOF
13705 #define HAVE_INODE_FALLOCATE 1
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.
$ac_ext >&5
13713 { $as_echo "$as_me:$LINENO: result: no" >&5
13714 $as_echo "no" >&6; }
13725 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13726 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13729 cat confdefs.h
- <<_ACEOF >conftest.c
13732 cat confdefs.h
>>conftest.
$ac_ext
13733 cat >>conftest.
$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13737 #include <linux/fs.h>
13743 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13744 struct file_operations_no_const fops __attribute__ ((unused)) = {
13745 .fallocate = fallocate,
13755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13756 echo "obj-m := conftest.o" >build
/Makefile
13758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13759 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13771 { $as_echo "$as_me:$LINENO: result: yes" >&5
13772 $as_echo "yes" >&6; }
13774 cat >>confdefs.h
<<\_ACEOF
13775 #define HAVE_FILE_FALLOCATE 1
13780 $as_echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.
$ac_ext >&5
13783 { $as_echo "$as_me:$LINENO: result: no" >&5
13784 $as_echo "no" >&6; }
13796 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
13797 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
13800 cat confdefs.h
- <<_ACEOF >conftest.c
13803 cat confdefs.h
>>conftest.
$ac_ext
13804 cat >>conftest.
$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13808 #if !defined(CONFIG_ZLIB_INFLATE) && \
13809 !defined(CONFIG_ZLIB_INFLATE_MODULE)
13810 #error CONFIG_ZLIB_INFLATE not defined
13824 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13825 echo "obj-m := conftest.o" >build
/Makefile
13827 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13828 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13840 { $as_echo "$as_me:$LINENO: result: yes" >&5
13841 $as_echo "yes" >&6; }
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.
$ac_ext >&5
13847 { $as_echo "$as_me:$LINENO: result: no" >&5
13848 $as_echo "no" >&6; }
13849 { { $as_echo "$as_me:$LINENO: error:
13850 *** This kernel does not include the required zlib inflate support.
13851 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
13852 $as_echo "$as_me: error:
13853 *** This kernel does not include the required zlib inflate support.
13854 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
13855 { (exit 1); exit 1; }; }
13866 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
13867 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
13870 cat confdefs.h
- <<_ACEOF >conftest.c
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13878 #if !defined(CONFIG_ZLIB_DEFLATE) && \
13879 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
13880 #error CONFIG_ZLIB_DEFLATE not defined
13894 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13895 echo "obj-m := conftest.o" >build
/Makefile
13897 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13898 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
13911 $as_echo "yes" >&6; }
13914 $as_echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.
$ac_ext >&5
13917 { $as_echo "$as_me:$LINENO: result: no" >&5
13918 $as_echo "no" >&6; }
13919 { { $as_echo "$as_me:$LINENO: error:
13920 *** This kernel does not include the required zlib deflate support.
13921 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
13922 $as_echo "$as_me: error:
13923 *** This kernel does not include the required zlib deflate support.
13924 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
13925 { (exit 1); exit 1; }; }
13935 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
13936 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
13939 cat confdefs.h
- <<_ACEOF >conftest.c
13942 cat confdefs.h
>>conftest.
$ac_ext
13943 cat >>conftest.
$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13947 #include <linux/zlib.h>
13953 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
13962 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13963 echo "obj-m := conftest.o" >build
/Makefile
13965 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13966 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13978 { $as_echo "$as_me:$LINENO: result: yes" >&5
13979 $as_echo "yes" >&6; }
13981 cat >>confdefs.h
<<\_ACEOF
13982 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
13987 $as_echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.
$ac_ext >&5
13990 { $as_echo "$as_me:$LINENO: result: no" >&5
13991 $as_echo "no" >&6; }
14002 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
14003 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
14006 cat confdefs.h
- <<_ACEOF >conftest.c
14009 cat confdefs.h
>>conftest.
$ac_ext
14010 cat >>conftest.
$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14014 #include <linux/mm.h>
14020 struct shrink_control sc __attribute__ ((unused));
14023 sc.gfp_mask = GFP_KERNEL;
14032 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14033 echo "obj-m := conftest.o" >build
/Makefile
14035 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14036 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14048 { $as_echo "$as_me:$LINENO: result: yes" >&5
14049 $as_echo "yes" >&6; }
14051 cat >>confdefs.h
<<\_ACEOF
14052 #define HAVE_SHRINK_CONTROL_STRUCT 1
14057 $as_echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.
$ac_ext >&5
14060 { $as_echo "$as_me:$LINENO: result: no" >&5
14061 $as_echo "no" >&6; }
14072 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
14073 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14074 tmp_flags
="$EXTRA_KCFLAGS"
14075 EXTRA_KCFLAGS
="-Werror"
14078 cat confdefs.h
- <<_ACEOF >conftest.c
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14086 #include <linux/rwsem.h>
14092 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14093 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
14094 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
14095 dummy_semaphore.wait_lock = dummy_lock;
14104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14105 echo "obj-m := conftest.o" >build
/Makefile
14107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14108 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14120 { $as_echo "$as_me:$LINENO: result: yes" >&5
14121 $as_echo "yes" >&6; }
14123 cat >>confdefs.h
<<\_ACEOF
14124 #define RWSEM_SPINLOCK_IS_RAW 1
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.
$ac_ext >&5
14132 { $as_echo "$as_me:$LINENO: result: no" >&5
14133 $as_echo "no" >&6; }
14142 EXTRA_KCFLAGS
="$tmp_flags"
14145 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
14146 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14147 tmp_flags
="$EXTRA_KCFLAGS"
14148 EXTRA_KCFLAGS
="-Werror"
14151 cat confdefs.h
- <<_ACEOF >conftest.c
14154 cat confdefs.h
>>conftest.
$ac_ext
14155 cat >>conftest.
$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14159 #include <linux/rwsem.h>
14165 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14166 dummy_semaphore.activity = 0;
14175 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14176 echo "obj-m := conftest.o" >build
/Makefile
14178 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14179 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14191 { $as_echo "$as_me:$LINENO: result: yes" >&5
14192 $as_echo "yes" >&6; }
14194 cat >>confdefs.h
<<\_ACEOF
14195 #define HAVE_RWSEM_ACTIVITY 1
14200 $as_echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.
$ac_ext >&5
14203 { $as_echo "$as_me:$LINENO: result: no" >&5
14204 $as_echo "no" >&6; }
14213 EXTRA_KCFLAGS
="$tmp_flags"
14216 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14217 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14218 tmp_flags
="$EXTRA_KCFLAGS"
14219 EXTRA_KCFLAGS
="-Werror"
14222 cat confdefs.h
- <<_ACEOF >conftest.c
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14230 #include <linux/rwsem.h>
14236 DECLARE_RWSEM(dummy_semaphore);
14237 (void) atomic_long_read(&dummy_semaphore.count);
14246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14247 echo "obj-m := conftest.o" >build
/Makefile
14249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14250 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14262 { $as_echo "$as_me:$LINENO: result: yes" >&5
14263 $as_echo "yes" >&6; }
14265 cat >>confdefs.h
<<\_ACEOF
14266 #define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
14271 $as_echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.
$ac_ext >&5
14274 { $as_echo "$as_me:$LINENO: result: no" >&5
14275 $as_echo "no" >&6; }
14284 EXTRA_KCFLAGS
="$tmp_flags"
14286 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
14287 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14290 cat confdefs.h
- <<_ACEOF >conftest.c
14293 cat confdefs.h
>>conftest.
$ac_ext
14294 cat >>conftest.
$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14298 #include <linux/sched.h>
14299 #include <linux/sched/rt.h>
14314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14315 echo "obj-m := conftest.o" >build
/Makefile
14317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14318 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14331 cat >>confdefs.h
<<\_ACEOF
14332 #define HAVE_SCHED_RT_HEADER 1
14335 { $as_echo "$as_me:$LINENO: result: yes" >&5
14336 $as_echo "yes" >&6; }
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.
$ac_ext >&5
14342 { $as_echo "$as_me:$LINENO: result: no" >&5
14343 $as_echo "no" >&6; }
14353 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
14354 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
14357 cat confdefs.h
- <<_ACEOF >conftest.c
14360 cat confdefs.h
>>conftest.
$ac_ext
14361 cat >>conftest.
$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14365 #include <linux/sched.h>
14366 #include <linux/sched/signal.h>
14381 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14382 echo "obj-m := conftest.o" >build
/Makefile
14384 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14385 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14398 cat >>confdefs.h
<<\_ACEOF
14399 #define HAVE_SCHED_SIGNAL_HEADER 1
14402 { $as_echo "$as_me:$LINENO: result: yes" >&5
14403 $as_echo "yes" >&6; }
14406 $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 { $as_echo "$as_me:$LINENO: result: no" >&5
14410 $as_echo "no" >&6; }
14421 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
14422 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
14425 cat confdefs.h
- <<_ACEOF >conftest.c
14428 cat confdefs.h
>>conftest.
$ac_ext
14429 cat >>conftest.
$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14433 #include <linux/fs.h>
14439 vfs_getattr((const struct path *)NULL,
14440 (struct kstat *)NULL,
14451 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14452 echo "obj-m := conftest.o" >build
/Makefile
14454 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14455 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14467 { $as_echo "$as_me:$LINENO: result: yes" >&5
14468 $as_echo "yes" >&6; }
14470 cat >>confdefs.h
<<\_ACEOF
14471 #define HAVE_4ARGS_VFS_GETATTR 1
14476 $as_echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.
$ac_ext >&5
14479 { $as_echo "$as_me:$LINENO: result: no" >&5
14480 $as_echo "no" >&6; }
14491 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
14492 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
14495 cat confdefs.h
- <<_ACEOF >conftest.c
14498 cat confdefs.h
>>conftest.
$ac_ext
14499 cat >>conftest.
$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14503 #include <linux/fs.h>
14509 vfs_getattr((struct vfsmount *)NULL,
14510 (struct dentry *)NULL,
14511 (struct kstat *)NULL);
14520 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14521 echo "obj-m := conftest.o" >build
/Makefile
14523 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14524 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14536 { $as_echo "$as_me:$LINENO: result: yes" >&5
14537 $as_echo "yes" >&6; }
14539 cat >>confdefs.h
<<\_ACEOF
14540 #define HAVE_3ARGS_VFS_GETATTR 1
14545 $as_echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.
$ac_ext >&5
14548 { $as_echo "$as_me:$LINENO: result: no" >&5
14549 $as_echo "no" >&6; }
14560 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
14561 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
14564 cat confdefs.h
- <<_ACEOF >conftest.c
14567 cat confdefs.h
>>conftest.
$ac_ext
14568 cat >>conftest.
$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14572 #include <linux/fs.h>
14578 vfs_getattr((struct path *) NULL,
14579 (struct kstat *)NULL);
14588 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14589 echo "obj-m := conftest.o" >build
/Makefile
14591 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14592 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14604 { $as_echo "$as_me:$LINENO: result: yes" >&5
14605 $as_echo "yes" >&6; }
14607 cat >>confdefs.h
<<\_ACEOF
14608 #define HAVE_2ARGS_VFS_GETATTR 1
14613 $as_echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.
$ac_ext >&5
14616 { $as_echo "$as_me:$LINENO: result: no" >&5
14617 $as_echo "no" >&6; }
14628 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
14629 $as_echo_n "checking whether usleep_range() is available... " >&6; }
14632 cat confdefs.h
- <<_ACEOF >conftest.c
14635 cat confdefs.h
>>conftest.
$ac_ext
14636 cat >>conftest.
$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14640 #include <linux/delay.h>
14646 usleep_range(0, 0);
14655 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14656 echo "obj-m := conftest.o" >build
/Makefile
14658 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14659 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14671 { $as_echo "$as_me:$LINENO: result: yes" >&5
14672 $as_echo "yes" >&6; }
14674 cat >>confdefs.h
<<\_ACEOF
14675 #define HAVE_USLEEP_RANGE 1
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.
$ac_ext >&5
14683 { $as_echo "$as_me:$LINENO: result: no" >&5
14684 $as_echo "no" >&6; }
14695 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
14696 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14699 cat confdefs.h
- <<_ACEOF >conftest.c
14702 cat confdefs.h
>>conftest.
$ac_ext
14703 cat >>conftest.
$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14707 #include <linux/slab.h>
14713 struct kmem_cache cachep __attribute__ ((unused));
14714 cachep.allocflags = GFP_KERNEL;
14723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14724 echo "obj-m := conftest.o" >build
/Makefile
14726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14727 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14739 { $as_echo "$as_me:$LINENO: result: yes" >&5
14740 $as_echo "yes" >&6; }
14742 cat >>confdefs.h
<<\_ACEOF
14743 #define HAVE_KMEM_CACHE_ALLOCFLAGS 1
14748 $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.
$ac_ext >&5
14751 { $as_echo "$as_me:$LINENO: result: no" >&5
14752 $as_echo "no" >&6; }
14754 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
14755 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
14758 cat confdefs.h
- <<_ACEOF >conftest.c
14761 cat confdefs.h
>>conftest.
$ac_ext
14762 cat >>conftest.
$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14766 #include <linux/slab.h>
14772 struct kmem_cache cachep __attribute__ ((unused));
14773 cachep.gfpflags = GFP_KERNEL;
14782 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14783 echo "obj-m := conftest.o" >build
/Makefile
14785 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14786 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14798 { $as_echo "$as_me:$LINENO: result: yes" >&5
14799 $as_echo "yes" >&6; }
14801 cat >>confdefs.h
<<\_ACEOF
14802 #define HAVE_KMEM_CACHE_GFPFLAGS 1
14807 $as_echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.
$ac_ext >&5
14810 { $as_echo "$as_me:$LINENO: result: no" >&5
14811 $as_echo "no" >&6; }
14830 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
14831 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
14834 cat confdefs.h
- <<_ACEOF >conftest.c
14837 cat confdefs.h
>>conftest.
$ac_ext
14838 cat >>conftest.
$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14842 #include <linux/wait.h>
14848 int (*action)(void *) = NULL;
14849 wait_on_bit(NULL, 0, action, 0);
14858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14859 echo "obj-m := conftest.o" >build
/Makefile
14861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14862 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14874 { $as_echo "$as_me:$LINENO: result: yes" >&5
14875 $as_echo "yes" >&6; }
14877 cat >>confdefs.h
<<\_ACEOF
14878 #define HAVE_WAIT_ON_BIT_ACTION 1
14883 $as_echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.
$ac_ext >&5
14886 { $as_echo "$as_me:$LINENO: result: no" >&5
14887 $as_echo "no" >&6; }
14898 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
14899 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
14900 tmp_flags
="$EXTRA_KCFLAGS"
14901 EXTRA_KCFLAGS
="-Werror"
14904 cat confdefs.h
- <<_ACEOF >conftest.c
14907 cat confdefs.h
>>conftest.
$ac_ext
14908 cat >>conftest.
$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14912 #include <linux/fs.h>
14918 struct inode *inode = NULL;
14919 inode_lock_shared(inode);
14928 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14929 echo "obj-m := conftest.o" >build
/Makefile
14931 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14932 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14944 { $as_echo "$as_me:$LINENO: result: yes" >&5
14945 $as_echo "yes" >&6; }
14947 cat >>confdefs.h
<<\_ACEOF
14948 #define HAVE_INODE_LOCK_SHARED 1
14953 $as_echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.
$ac_ext >&5
14956 { $as_echo "$as_me:$LINENO: result: no" >&5
14957 $as_echo "no" >&6; }
14966 EXTRA_KCFLAGS
="$tmp_flags"
14969 { $as_echo "$as_me:$LINENO: checking whether mutex has owner" >&5
14970 $as_echo_n "checking whether mutex has owner... " >&6; }
14971 tmp_flags
="$EXTRA_KCFLAGS"
14972 EXTRA_KCFLAGS
="-Werror"
14975 cat confdefs.h
- <<_ACEOF >conftest.c
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14983 #include <linux/mutex.h>
14984 #include <linux/spinlock.h>
14991 struct task_struct *t __attribute__ ((unused));
15001 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15002 echo "obj-m := conftest.o" >build
/Makefile
15004 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15005 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15017 { $as_echo "$as_me:$LINENO: result: yes" >&5
15018 $as_echo "yes" >&6; }
15020 cat >>confdefs.h
<<\_ACEOF
15021 #define HAVE_MUTEX_OWNER 1
15026 $as_echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.
$ac_ext >&5
15029 { $as_echo "$as_me:$LINENO: result: no" >&5
15030 $as_echo "no" >&6; }
15039 EXTRA_KCFLAGS
="$tmp_flags"
15042 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
15043 $as_echo_n "checking whether group_info->gid exists... " >&6; }
15044 tmp_flags
="$EXTRA_KCFLAGS"
15045 EXTRA_KCFLAGS
="-Werror"
15048 cat confdefs.h
- <<_ACEOF >conftest.c
15051 cat confdefs.h
>>conftest.
$ac_ext
15052 cat >>conftest.
$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15056 #include <linux/cred.h>
15062 struct group_info *gi = groups_alloc(1);
15063 gi->gid[0] = KGIDT_INIT(0);
15072 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15073 echo "obj-m := conftest.o" >build
/Makefile
15075 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15076 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15088 { $as_echo "$as_me:$LINENO: result: yes" >&5
15089 $as_echo "yes" >&6; }
15091 cat >>confdefs.h
<<\_ACEOF
15092 #define HAVE_GROUP_INFO_GID 1
15097 $as_echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.
$ac_ext >&5
15100 { $as_echo "$as_me:$LINENO: result: no" >&5
15101 $as_echo "no" >&6; }
15110 EXTRA_KCFLAGS
="$tmp_flags"
15117 # Check whether --with-linux was given.
15118 if test "${with_linux+set}" = set; then
15119 withval
=$with_linux; kernelsrc
="$withval"
15124 # Check whether --with-linux-obj was given.
15125 if test "${with_linux_obj+set}" = set; then
15126 withval
=$with_linux_obj; kernelbuild
="$withval"
15130 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15131 $as_echo_n "checking kernel source directory... " >&6; }
15132 if test -z "$kernelsrc"; then
15133 if test -e "/lib/modules/$(uname -r)/source"; then
15134 headersdir
="/lib/modules/$(uname -r)/source"
15135 sourcelink
=$
(readlink
-f "$headersdir")
15136 elif test -e "/lib/modules/$(uname -r)/build"; then
15137 headersdir
="/lib/modules/$(uname -r)/build"
15138 sourcelink
=$
(readlink
-f "$headersdir")
15140 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
15142 2>/dev
/null |
grep -v obj |
tail -1)
15145 if test -n "$sourcelink" && test -e ${sourcelink}; then
15146 kernelsrc
=`readlink -f ${sourcelink}`
15148 kernelsrc
="Not found"
15151 if test "$kernelsrc" = "NONE"; then
15156 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15157 $as_echo "$kernelsrc" >&6; }
15158 if test ! -d "$kernelsrc"; then
15159 { { $as_echo "$as_me:$LINENO: error:
15160 *** Please make sure the kernel devel package for your distribution
15161 *** is installed and then try again. If that fails, you can specify the
15162 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15163 $as_echo "$as_me: error:
15164 *** Please make sure the kernel devel package for your distribution
15165 *** is installed and then try again. If that fails, you can specify the
15166 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15167 { (exit 1); exit 1; }; }
15170 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15171 $as_echo_n "checking kernel build directory... " >&6; }
15172 if test -z "$kernelbuild"; then
15173 if test -e "/lib/modules/$(uname -r)/build"; then
15174 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
15175 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15176 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15177 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
15178 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
15179 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
15180 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
15182 kernelbuild
=${kernelsrc}
15185 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15186 $as_echo "$kernelbuild" >&6; }
15188 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15189 $as_echo_n "checking kernel source version... " >&6; }
15190 utsrelease1
=$kernelbuild/include
/linux
/version.h
15191 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
15192 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
15193 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
15194 utsrelease
=linux
/version.h
15195 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
15196 utsrelease
=linux
/utsrelease.h
15197 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
15198 utsrelease
=generated
/utsrelease.h
15201 if test "$utsrelease"; then
15202 kernsrcver
=`(echo "#include <$utsrelease>";
15203 echo "kernsrcver=UTS_RELEASE") |
15204 cpp -I $kernelbuild/include |
15205 grep "^kernsrcver=" | cut -d \" -f 2`
15207 if test -z "$kernsrcver"; then
15208 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15209 $as_echo "Not found" >&6; }
15210 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15211 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15212 { (exit 1); exit 1; }; }
15215 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15216 $as_echo "Not found" >&6; }
15217 if test "x$enable_linux_builtin" != xyes
; then
15218 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15219 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15220 { (exit 1); exit 1; }; }
15222 { { $as_echo "$as_me:$LINENO: error:
15223 *** Cannot find UTS_RELEASE definition.
15224 *** Please run 'make prepare' inside the kernel source tree." >&5
15225 $as_echo "$as_me: error:
15226 *** Cannot find UTS_RELEASE definition.
15227 *** Please run 'make prepare' inside the kernel source tree." >&2;}
15228 { (exit 1); exit 1; }; }
15232 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15233 $as_echo "$kernsrcver" >&6; }
15236 LINUX_OBJ
=${kernelbuild}
15237 LINUX_VERSION
=${kernsrcver}
15244 modpost
=$LINUX/scripts
/Makefile.modpost
15245 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15246 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15247 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
15248 if grep -q Modules.symvers
$modpost; then
15249 LINUX_SYMBOLS
=Modules.symvers
15251 LINUX_SYMBOLS
=Module.symvers
15254 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15255 { { $as_echo "$as_me:$LINENO: error:
15256 *** Please make sure the kernel devel package for your distribution
15257 *** is installed. If you are building with a custom kernel, make sure the
15258 *** kernel is configured, built, and the '--with-linux=PATH' configure
15259 *** option refers to the location of the kernel source." >&5
15260 $as_echo "$as_me: error:
15261 *** Please make sure the kernel devel package for your distribution
15262 *** is installed. If you are building with a custom kernel, make sure the
15263 *** kernel is configured, built, and the '--with-linux=PATH' configure
15264 *** option refers to the location of the kernel source." >&2;}
15265 { (exit 1); exit 1; }; }
15270 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15271 $as_echo "$LINUX_SYMBOLS" >&6; }
15276 if test "${LINUX_OBJ}" != "${LINUX}"; then
15277 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15281 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wstrict-prototypes"
15285 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15286 $as_echo_n "checking whether debugging is enabled... " >&6; }
15287 # Check whether --enable-debug was given.
15288 if test "${enable_debug+set}" = set; then
15289 enableval
=$enable_debug;
15295 if test "x$enable_debug" = xyes
; then
15297 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
15298 DEBUG_CFLAGS
="-DDEBUG -Werror"
15299 DEBUG_SPL
="_with_debug"
15303 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG"
15304 DEBUG_CFLAGS
="-DNDEBUG"
15305 DEBUG_SPL
="_without_debug"
15312 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15313 $as_echo "$enable_debug" >&6; }
15316 # Check whether --enable-debug-kmem was given.
15317 if test "${enable_debug_kmem+set}" = set; then
15318 enableval
=$enable_debug_kmem;
15320 enable_debug_kmem
=no
15324 if test "x$enable_debug_kmem" = xyes
; then
15326 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15327 DEBUG_KMEM
="_with_debug_kmem"
15329 cat >>confdefs.h
<<\_ACEOF
15330 #define DEBUG_KMEM 1
15336 DEBUG_KMEM
="_without_debug_kmem"
15342 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15343 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15344 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15345 $as_echo "$enable_debug_kmem" >&6; }
15348 # Check whether --enable-debug-kmem-tracking was given.
15349 if test "${enable_debug_kmem_tracking+set}" = set; then
15350 enableval
=$enable_debug_kmem_tracking;
15352 enable_debug_kmem_tracking
=no
15356 if test "x$enable_debug_kmem_tracking" = xyes
; then
15358 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15359 DEBUG_KMEM_TRACKING
="_with_debug_kmem_tracking"
15361 cat >>confdefs.h
<<\_ACEOF
15362 #define DEBUG_KMEM_TRACKING 1
15368 DEBUG_KMEM_TRACKING
="_without_debug_kmem_tracking"
15374 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15375 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15376 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15377 $as_echo "$enable_debug_kmem_tracking" >&6; }
15379 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
15380 $as_echo_n "checking whether modules can be built... " >&6; }
15383 cat confdefs.h
- <<_ACEOF >conftest.c
15386 cat confdefs.h
>>conftest.
$ac_ext
15387 cat >>conftest.
$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15402 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15403 echo "obj-m := conftest.o" >build
/Makefile
15405 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15406 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15418 { $as_echo "$as_me:$LINENO: result: yes" >&5
15419 $as_echo "yes" >&6; }
15422 $as_echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.
$ac_ext >&5
15425 { $as_echo "$as_me:$LINENO: result: no" >&5
15426 $as_echo "no" >&6; }
15427 if test "x$enable_linux_builtin" != xyes
; then
15428 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
15429 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
15430 { (exit 1); exit 1; }; }
15432 { { $as_echo "$as_me:$LINENO: error:
15433 *** Unable to build an empty module.
15434 *** Please run 'make scripts' inside the kernel source tree." >&5
15435 $as_echo "$as_me: error:
15436 *** Unable to build an empty module.
15437 *** Please run 'make scripts' inside the kernel source tree." >&2;}
15438 { (exit 1); exit 1; }; }
15449 if test "x$cross_compiling" != xyes
; then
15451 if test "$cross_compiling" = yes; then
15452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15454 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15455 See \`config.log' for more details." >&5
15456 $as_echo "$as_me: error: cannot run test program while cross compiling
15457 See \`config.log' for more details." >&2;}
15458 { (exit 1); exit 1; }; }; }
15460 cat >conftest.
$ac_ext <<_ACEOF
15464 cat confdefs.h
>>conftest.
$ac_ext
15465 cat >>conftest.
$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15468 #include "$LINUX/include/linux/license.h"
15474 return !license_is_gpl_compatible(
15475 "$SPL_META_LICENSE");
15482 rm -f conftest
$ac_exeext
15483 if { (ac_try
="$ac_link"
15484 case "(($ac_try" in
15485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15489 $as_echo "$ac_try_echo") >&5
15490 (eval "$ac_link") 2>&5
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15496 *) ac_try_echo
=$ac_try;;
15498 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15499 $as_echo "$ac_try_echo") >&5
15500 (eval "$ac_try") 2>&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15506 cat >>confdefs.h
<<\_ACEOF
15507 #define SPL_IS_GPL_COMPATIBLE 1
15512 $as_echo "$as_me: program exited with status $ac_status" >&5
15513 $as_echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.
$ac_ext >&5
15516 ( exit $ac_status )
15520 rm -rf conftest.dSYM
15521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15530 # Check whether --enable-atomic-spinlocks was given.
15531 if test "${enable_atomic_spinlocks+set}" = set; then
15532 enableval
=$enable_atomic_spinlocks;
15534 enable_atomic_spinlocks
=check
15540 cat confdefs.h
- <<_ACEOF >conftest.c
15543 cat confdefs.h
>>conftest.
$ac_ext
15544 cat >>conftest.
$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15548 #include <linux/fs.h>
15554 atomic64_t *ptr __attribute__ ((unused));
15563 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15564 echo "obj-m := conftest.o" >build
/Makefile
15566 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15567 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15579 have_atomic64_t
=yes
15581 cat >>confdefs.h
<<\_ACEOF
15582 #define HAVE_ATOMIC64_T 1
15587 $as_echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.
$ac_ext >&5
15600 if test "x$enable_atomic_spinlocks" = xcheck
; then
15602 if test "x$have_atomic64_t" = xyes
; then
15604 enable_atomic_spinlocks
=no
15608 enable_atomic_spinlocks
=yes
15616 if test "x$enable_atomic_spinlocks" = xyes
; then
15619 cat >>confdefs.h
<<\_ACEOF
15620 #define ATOMIC_SPINLOCK 1
15626 if test "x$have_atomic64_t" = xno
; then
15628 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15630 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15631 See \`config.log' for more details." >&5
15632 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15633 See \`config.log' for more details." >&2;}
15634 { (exit 1); exit 1; }; }; }
15642 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15643 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15644 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15645 $as_echo "$enable_atomic_spinlocks" >&6; }
15647 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15648 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15649 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15650 $as_echo "$have_atomic64_t" >&6; }
15653 tmp_flags
="$EXTRA_KCFLAGS"
15654 EXTRA_KCFLAGS
="-Werror"
15655 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
15656 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15659 cat confdefs.h
- <<_ACEOF >conftest.c
15662 cat confdefs.h
>>conftest.
$ac_ext
15663 cat >>conftest.
$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15667 #include <linux/mm.h>
15669 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15675 struct shrinker cache_shrinker = {
15676 .shrink = shrinker_cb,
15677 .seeks = DEFAULT_SEEKS,
15679 register_shrinker(&cache_shrinker);
15688 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15689 echo "obj-m := conftest.o" >build
/Makefile
15691 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15692 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15704 { $as_echo "$as_me:$LINENO: result: yes" >&5
15705 $as_echo "yes" >&6; }
15707 cat >>confdefs.h
<<\_ACEOF
15708 #define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
15713 $as_echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.
$ac_ext >&5
15716 { $as_echo "$as_me:$LINENO: result: no" >&5
15717 $as_echo "no" >&6; }
15718 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
15719 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15722 cat confdefs.h
- <<_ACEOF >conftest.c
15725 cat confdefs.h
>>conftest.
$ac_ext
15726 cat >>conftest.
$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15730 #include <linux/mm.h>
15732 int shrinker_cb(struct shrinker *, int nr_to_scan,
15739 struct shrinker cache_shrinker = {
15740 .shrink = shrinker_cb,
15741 .seeks = DEFAULT_SEEKS,
15743 register_shrinker(&cache_shrinker);
15752 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15753 echo "obj-m := conftest.o" >build
/Makefile
15755 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15756 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15768 { $as_echo "$as_me:$LINENO: result: yes" >&5
15769 $as_echo "yes" >&6; }
15771 cat >>confdefs.h
<<\_ACEOF
15772 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.
$ac_ext >&5
15780 { $as_echo "$as_me:$LINENO: result: no" >&5
15781 $as_echo "no" >&6; }
15782 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
15783 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15786 cat confdefs.h
- <<_ACEOF >conftest.c
15789 cat confdefs.h
>>conftest.
$ac_ext
15790 cat >>conftest.
$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15794 #include <linux/mm.h>
15796 int shrinker_cb(struct shrinker *,
15797 struct shrink_control *sc);
15803 struct shrinker cache_shrinker = {
15804 .shrink = shrinker_cb,
15805 .seeks = DEFAULT_SEEKS,
15807 register_shrinker(&cache_shrinker);
15816 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15817 echo "obj-m := conftest.o" >build
/Makefile
15819 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15820 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15832 { $as_echo "$as_me:$LINENO: result: yes" >&5
15833 $as_echo "yes" >&6; }
15835 cat >>confdefs.h
<<\_ACEOF
15836 #define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
15841 $as_echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.
$ac_ext >&5
15844 { $as_echo "$as_me:$LINENO: result: no" >&5
15845 $as_echo "no" >&6; }
15846 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
15847 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15850 cat confdefs.h
- <<_ACEOF >conftest.c
15853 cat confdefs.h
>>conftest.
$ac_ext
15854 cat >>conftest.
$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15858 #include <linux/mm.h>
15860 unsigned long shrinker_cb(
15862 struct shrink_control *sc);
15868 struct shrinker cache_shrinker = {
15869 .count_objects = shrinker_cb,
15870 .scan_objects = shrinker_cb,
15871 .seeks = DEFAULT_SEEKS,
15873 register_shrinker(&cache_shrinker);
15882 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15883 echo "obj-m := conftest.o" >build
/Makefile
15885 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15886 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15898 { $as_echo "$as_me:$LINENO: result: yes" >&5
15899 $as_echo "yes" >&6; }
15901 cat >>confdefs.h
<<\_ACEOF
15902 #define HAVE_SPLIT_SHRINKER_CALLBACK 1
15907 $as_echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.
$ac_ext >&5
15910 { { $as_echo "$as_me:$LINENO: error: error" >&5
15911 $as_echo "$as_me: error: error" >&2;}
15912 { (exit 1); exit 1; }; }
15945 EXTRA_KCFLAGS
="$tmp_flags"
15948 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
15949 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15952 cat confdefs.h
- <<_ACEOF >conftest.c
15955 cat confdefs.h
>>conftest.
$ac_ext
15956 cat >>conftest.
$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15960 #include <linux/sysctl.h>
15966 struct ctl_table ctl __attribute__ ((unused));
15976 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15977 echo "obj-m := conftest.o" >build
/Makefile
15979 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15980 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15992 { $as_echo "$as_me:$LINENO: result: yes" >&5
15993 $as_echo "yes" >&6; }
15995 cat >>confdefs.h
<<\_ACEOF
15996 #define HAVE_CTL_NAME 1
16001 $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.
$ac_ext >&5
16004 { $as_echo "$as_me:$LINENO: result: no" >&5
16005 $as_echo "no" >&6; }
16016 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16017 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
16020 cat confdefs.h
- <<_ACEOF >conftest.c
16023 cat confdefs.h
>>conftest.
$ac_ext
16024 cat >>conftest.
$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16028 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16029 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16043 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16044 echo "obj-m := conftest.o" >build
/Makefile
16046 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16047 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16059 { $as_echo "$as_me:$LINENO: result: yes" >&5
16060 $as_echo "yes" >&6; }
16063 $as_echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.
$ac_ext >&5
16066 { $as_echo "$as_me:$LINENO: result: no" >&5
16067 $as_echo "no" >&6; }
16068 { { $as_echo "$as_me:$LINENO: error:
16069 *** This kernel has unused symbols trimming enabled, please disable.
16070 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
16071 $as_echo "$as_me: error:
16072 *** This kernel has unused symbols trimming enabled, please disable.
16073 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
16074 { (exit 1); exit 1; }; }
16085 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
16086 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16090 cat confdefs.h
- <<_ACEOF >conftest.c
16093 cat confdefs.h
>>conftest.
$ac_ext
16094 cat >>conftest.
$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16098 #include <linux/proc_fs.h>
16113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16114 echo "obj-m := conftest.o" >build
/Makefile
16116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16117 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16130 $as_echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.
$ac_ext >&5
16140 if test $rc -ne 0; then :
16142 { $as_echo "$as_me:$LINENO: result: no" >&5
16143 $as_echo "no" >&6; }
16146 if test "x$enable_linux_builtin" != xyes
; then
16148 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16149 $LINUX_OBJ/Module
*.symvers
2>/dev
/null
16151 if test $rc -ne 0; then
16154 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16155 "$LINUX_OBJ/$file" 2>/dev
/null
16157 if test $rc -eq 0; then
16162 if test $export -eq 0; then :
16172 if test $rc -ne 0; then :
16174 { $as_echo "$as_me:$LINENO: result: no" >&5
16175 $as_echo "no" >&6; }
16179 { $as_echo "$as_me:$LINENO: result: yes" >&5
16180 $as_echo "yes" >&6; }
16182 cat >>confdefs.h
<<\_ACEOF
16183 #define HAVE_PDE_DATA 1
16191 tmp_flags
="$EXTRA_KCFLAGS"
16192 EXTRA_KCFLAGS
="-Werror"
16193 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
16194 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16197 cat confdefs.h
- <<_ACEOF >conftest.c
16200 cat confdefs.h
>>conftest.
$ac_ext
16201 cat >>conftest.
$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16205 #include <linux/spinlock.h>
16206 #include <linux/fs_struct.h>
16207 #include <linux/path.h>
16208 void (*const set_fs_pwd_func)
16209 (struct fs_struct *, const struct path *)
16225 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16226 echo "obj-m := conftest.o" >build
/Makefile
16228 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16229 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236 (eval $ac_try) 2>&5
16238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16241 { $as_echo "$as_me:$LINENO: result: yes" >&5
16242 $as_echo "yes" >&6; }
16244 cat >>confdefs.h
<<\_ACEOF
16245 #define HAVE_SET_FS_PWD_WITH_CONST 1
16250 $as_echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.
$ac_ext >&5
16255 cat confdefs.h
- <<_ACEOF >conftest.c
16258 cat confdefs.h
>>conftest.
$ac_ext
16259 cat >>conftest.
$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16263 #include <linux/spinlock.h>
16264 #include <linux/fs_struct.h>
16265 #include <linux/path.h>
16266 void (*const set_fs_pwd_func)
16267 (struct fs_struct *, struct path *)
16283 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16284 echo "obj-m := conftest.o" >build
/Makefile
16286 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16287 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16299 { $as_echo "$as_me:$LINENO: result: no" >&5
16300 $as_echo "no" >&6; }
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.
$ac_ext >&5
16306 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
16307 $as_echo "$as_me: error: unknown" >&2;}
16308 { (exit 1); exit 1; }; }
16325 EXTRA_KCFLAGS
="$tmp_flags"
16327 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
16328 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16331 cat confdefs.h
- <<_ACEOF >conftest.c
16334 cat confdefs.h
>>conftest.
$ac_ext
16335 cat >>conftest.
$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16339 #include <linux/fs.h>
16345 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16355 echo "obj-m := conftest.o" >build
/Makefile
16357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16358 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16370 { $as_echo "$as_me:$LINENO: result: yes" >&5
16371 $as_echo "yes" >&6; }
16373 cat >>confdefs.h
<<\_ACEOF
16374 #define HAVE_2ARGS_VFS_UNLINK 1
16379 $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.
$ac_ext >&5
16382 { $as_echo "$as_me:$LINENO: result: no" >&5
16383 $as_echo "no" >&6; }
16384 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
16385 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16388 cat confdefs.h
- <<_ACEOF >conftest.c
16391 cat confdefs.h
>>conftest.
$ac_ext
16392 cat >>conftest.
$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16396 #include <linux/fs.h>
16402 vfs_unlink((struct inode *) NULL,
16403 (struct dentry *) NULL,
16404 (struct inode **) NULL);
16413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16414 echo "obj-m := conftest.o" >build
/Makefile
16416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16417 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16429 { $as_echo "$as_me:$LINENO: result: yes" >&5
16430 $as_echo "yes" >&6; }
16432 cat >>confdefs.h
<<\_ACEOF
16433 #define HAVE_3ARGS_VFS_UNLINK 1
16438 $as_echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.
$ac_ext >&5
16441 { { $as_echo "$as_me:$LINENO: error: no" >&5
16442 $as_echo "$as_me: error: no" >&2;}
16443 { (exit 1); exit 1; }; }
16462 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
16463 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16466 cat confdefs.h
- <<_ACEOF >conftest.c
16469 cat confdefs.h
>>conftest.
$ac_ext
16470 cat >>conftest.
$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16474 #include <linux/fs.h>
16480 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16481 (struct inode *) NULL, (struct dentry *) NULL);
16490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16491 echo "obj-m := conftest.o" >build
/Makefile
16493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16494 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16506 { $as_echo "$as_me:$LINENO: result: yes" >&5
16507 $as_echo "yes" >&6; }
16509 cat >>confdefs.h
<<\_ACEOF
16510 #define HAVE_4ARGS_VFS_RENAME 1
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.
$ac_ext >&5
16518 { $as_echo "$as_me:$LINENO: result: no" >&5
16519 $as_echo "no" >&6; }
16520 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
16521 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16524 cat confdefs.h
- <<_ACEOF >conftest.c
16527 cat confdefs.h
>>conftest.
$ac_ext
16528 cat >>conftest.
$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16532 #include <linux/fs.h>
16538 vfs_rename((struct inode *) NULL,
16539 (struct dentry *) NULL,
16540 (struct inode *) NULL,
16541 (struct dentry *) NULL,
16542 (struct inode **) NULL);
16551 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16552 echo "obj-m := conftest.o" >build
/Makefile
16554 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16555 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16567 { $as_echo "$as_me:$LINENO: result: yes" >&5
16568 $as_echo "yes" >&6; }
16570 cat >>confdefs.h
<<\_ACEOF
16571 #define HAVE_5ARGS_VFS_RENAME 1
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.
$ac_ext >&5
16579 { $as_echo "$as_me:$LINENO: result: no" >&5
16580 $as_echo "no" >&6; }
16581 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
16582 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16585 cat confdefs.h
- <<_ACEOF >conftest.c
16588 cat confdefs.h
>>conftest.
$ac_ext
16589 cat >>conftest.
$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16593 #include <linux/fs.h>
16599 vfs_rename((struct inode *) NULL,
16600 (struct dentry *) NULL,
16601 (struct inode *) NULL,
16602 (struct dentry *) NULL,
16603 (struct inode **) NULL,
16613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16614 echo "obj-m := conftest.o" >build
/Makefile
16616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16617 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16629 { $as_echo "$as_me:$LINENO: result: yes" >&5
16630 $as_echo "yes" >&6; }
16632 cat >>confdefs.h
<<\_ACEOF
16633 #define HAVE_6ARGS_VFS_RENAME 1
16638 $as_echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.
$ac_ext >&5
16641 { { $as_echo "$as_me:$LINENO: error: no" >&5
16642 $as_echo "$as_me: error: no" >&2;}
16643 { (exit 1); exit 1; }; }
16670 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
16671 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16674 cat confdefs.h
- <<_ACEOF >conftest.c
16677 cat confdefs.h
>>conftest.
$ac_ext
16678 cat >>conftest.
$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16682 #include <linux/fs.h>
16688 vfs_fsync(NULL, 0);
16697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16698 echo "obj-m := conftest.o" >build
/Makefile
16700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16701 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16713 { $as_echo "$as_me:$LINENO: result: yes" >&5
16714 $as_echo "yes" >&6; }
16716 cat >>confdefs.h
<<\_ACEOF
16717 #define HAVE_2ARGS_VFS_FSYNC 1
16722 $as_echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.
$ac_ext >&5
16725 { $as_echo "$as_me:$LINENO: result: no" >&5
16726 $as_echo "no" >&6; }
16737 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
16738 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16741 cat confdefs.h
- <<_ACEOF >conftest.c
16744 cat confdefs.h
>>conftest.
$ac_ext
16745 cat >>conftest.
$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16749 #include <linux/fs.h>
16755 struct inode_operations ops;
16756 ops.truncate_range = NULL;
16765 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16766 echo "obj-m := conftest.o" >build
/Makefile
16768 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16769 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16781 { $as_echo "$as_me:$LINENO: result: yes" >&5
16782 $as_echo "yes" >&6; }
16784 cat >>confdefs.h
<<\_ACEOF
16785 #define HAVE_INODE_TRUNCATE_RANGE 1
16790 $as_echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.
$ac_ext >&5
16793 { $as_echo "$as_me:$LINENO: result: no" >&5
16794 $as_echo "no" >&6; }
16805 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
16806 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16807 tmp_flags
="$EXTRA_KCFLAGS"
16808 EXTRA_KCFLAGS
="-Werror"
16811 cat confdefs.h
- <<_ACEOF >conftest.c
16814 cat confdefs.h
>>conftest.
$ac_ext
16815 cat >>conftest.
$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16819 #include <linux/sched.h>
16820 #include <linux/fs_struct.h>
16826 static struct fs_struct fs;
16827 spin_lock_init(&fs.lock);
16836 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16837 echo "obj-m := conftest.o" >build
/Makefile
16839 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16840 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16852 { $as_echo "$as_me:$LINENO: result: yes" >&5
16853 $as_echo "yes" >&6; }
16855 cat >>confdefs.h
<<\_ACEOF
16856 #define HAVE_FS_STRUCT_SPINLOCK 1
16861 $as_echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.
$ac_ext >&5
16864 { $as_echo "$as_me:$LINENO: result: no" >&5
16865 $as_echo "no" >&6; }
16874 EXTRA_KCFLAGS
="$tmp_flags"
16877 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
16878 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16881 cat confdefs.h
- <<_ACEOF >conftest.c
16884 cat confdefs.h
>>conftest.
$ac_ext
16885 cat >>conftest.
$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16889 #include <linux/uidgid.h>
16895 kuid_t userid = KUIDT_INIT(0);
16896 kgid_t groupid = KGIDT_INIT(0);
16905 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16906 echo "obj-m := conftest.o" >build
/Makefile
16908 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16909 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16923 cat confdefs.h
- <<_ACEOF >conftest.c
16926 cat confdefs.h
>>conftest.
$ac_ext
16927 cat >>conftest.
$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16931 #include <linux/uidgid.h>
16938 kgid_t groupid = 0;
16947 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16948 echo "obj-m := conftest.o" >build
/Makefile
16950 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16951 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16963 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
16964 $as_echo "yes; optional" >&6; }
16967 $as_echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.
$ac_ext >&5
16970 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
16971 $as_echo "yes; mandatory" >&6; }
16973 cat >>confdefs.h
<<\_ACEOF
16974 #define HAVE_KUIDGID_T 1
16987 $as_echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.
$ac_ext >&5
16990 { $as_echo "$as_me:$LINENO: result: no" >&5
16991 $as_echo "no" >&6; }
17003 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17004 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17007 cat confdefs.h
- <<_ACEOF >conftest.c
17010 cat confdefs.h
>>conftest.
$ac_ext
17011 cat >>conftest.
$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17015 #include <linux/fs.h>
17021 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17022 struct file_operations fops __attribute__ ((unused)) = {
17023 .fallocate = fallocate,
17033 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17034 echo "obj-m := conftest.o" >build
/Makefile
17036 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17037 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17049 { $as_echo "$as_me:$LINENO: result: yes" >&5
17050 $as_echo "yes" >&6; }
17052 cat >>confdefs.h
<<\_ACEOF
17053 #define HAVE_FILE_FALLOCATE 1
17058 $as_echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.
$ac_ext >&5
17061 { $as_echo "$as_me:$LINENO: result: no" >&5
17062 $as_echo "no" >&6; }
17073 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
17074 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17077 cat confdefs.h
- <<_ACEOF >conftest.c
17080 cat confdefs.h
>>conftest.
$ac_ext
17081 cat >>conftest.
$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17085 #include <linux/fs.h>
17091 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17092 struct inode_operations fops __attribute__ ((unused)) = {
17093 .fallocate = fallocate,
17103 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17104 echo "obj-m := conftest.o" >build
/Makefile
17106 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17107 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17119 { $as_echo "$as_me:$LINENO: result: yes" >&5
17120 $as_echo "yes" >&6; }
17122 cat >>confdefs.h
<<\_ACEOF
17123 #define HAVE_INODE_FALLOCATE 1
17128 $as_echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.
$ac_ext >&5
17131 { $as_echo "$as_me:$LINENO: result: no" >&5
17132 $as_echo "no" >&6; }
17143 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17144 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17147 cat confdefs.h
- <<_ACEOF >conftest.c
17150 cat confdefs.h
>>conftest.
$ac_ext
17151 cat >>conftest.
$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17155 #include <linux/fs.h>
17161 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17162 struct file_operations_no_const fops __attribute__ ((unused)) = {
17163 .fallocate = fallocate,
17173 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17174 echo "obj-m := conftest.o" >build
/Makefile
17176 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17177 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17189 { $as_echo "$as_me:$LINENO: result: yes" >&5
17190 $as_echo "yes" >&6; }
17192 cat >>confdefs.h
<<\_ACEOF
17193 #define HAVE_FILE_FALLOCATE 1
17198 $as_echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.
$ac_ext >&5
17201 { $as_echo "$as_me:$LINENO: result: no" >&5
17202 $as_echo "no" >&6; }
17214 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17215 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17218 cat confdefs.h
- <<_ACEOF >conftest.c
17221 cat confdefs.h
>>conftest.
$ac_ext
17222 cat >>conftest.
$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17226 #if !defined(CONFIG_ZLIB_INFLATE) && \
17227 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17228 #error CONFIG_ZLIB_INFLATE not defined
17242 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17243 echo "obj-m := conftest.o" >build
/Makefile
17245 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17246 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17258 { $as_echo "$as_me:$LINENO: result: yes" >&5
17259 $as_echo "yes" >&6; }
17262 $as_echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.
$ac_ext >&5
17265 { $as_echo "$as_me:$LINENO: result: no" >&5
17266 $as_echo "no" >&6; }
17267 { { $as_echo "$as_me:$LINENO: error:
17268 *** This kernel does not include the required zlib inflate support.
17269 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
17270 $as_echo "$as_me: error:
17271 *** This kernel does not include the required zlib inflate support.
17272 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
17273 { (exit 1); exit 1; }; }
17284 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17285 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17288 cat confdefs.h
- <<_ACEOF >conftest.c
17291 cat confdefs.h
>>conftest.
$ac_ext
17292 cat >>conftest.
$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17296 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17297 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17298 #error CONFIG_ZLIB_DEFLATE not defined
17312 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17313 echo "obj-m := conftest.o" >build
/Makefile
17315 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17316 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17328 { $as_echo "$as_me:$LINENO: result: yes" >&5
17329 $as_echo "yes" >&6; }
17332 $as_echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.
$ac_ext >&5
17335 { $as_echo "$as_me:$LINENO: result: no" >&5
17336 $as_echo "no" >&6; }
17337 { { $as_echo "$as_me:$LINENO: error:
17338 *** This kernel does not include the required zlib deflate support.
17339 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
17340 $as_echo "$as_me: error:
17341 *** This kernel does not include the required zlib deflate support.
17342 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
17343 { (exit 1); exit 1; }; }
17353 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17354 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17357 cat confdefs.h
- <<_ACEOF >conftest.c
17360 cat confdefs.h
>>conftest.
$ac_ext
17361 cat >>conftest.
$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17365 #include <linux/zlib.h>
17371 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17381 echo "obj-m := conftest.o" >build
/Makefile
17383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17384 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17396 { $as_echo "$as_me:$LINENO: result: yes" >&5
17397 $as_echo "yes" >&6; }
17399 cat >>confdefs.h
<<\_ACEOF
17400 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
17405 $as_echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.
$ac_ext >&5
17408 { $as_echo "$as_me:$LINENO: result: no" >&5
17409 $as_echo "no" >&6; }
17420 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
17421 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
17424 cat confdefs.h
- <<_ACEOF >conftest.c
17427 cat confdefs.h
>>conftest.
$ac_ext
17428 cat >>conftest.
$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17432 #include <linux/mm.h>
17438 struct shrink_control sc __attribute__ ((unused));
17441 sc.gfp_mask = GFP_KERNEL;
17450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17451 echo "obj-m := conftest.o" >build
/Makefile
17453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17454 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17466 { $as_echo "$as_me:$LINENO: result: yes" >&5
17467 $as_echo "yes" >&6; }
17469 cat >>confdefs.h
<<\_ACEOF
17470 #define HAVE_SHRINK_CONTROL_STRUCT 1
17475 $as_echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.
$ac_ext >&5
17478 { $as_echo "$as_me:$LINENO: result: no" >&5
17479 $as_echo "no" >&6; }
17490 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
17491 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17492 tmp_flags
="$EXTRA_KCFLAGS"
17493 EXTRA_KCFLAGS
="-Werror"
17496 cat confdefs.h
- <<_ACEOF >conftest.c
17499 cat confdefs.h
>>conftest.
$ac_ext
17500 cat >>conftest.
$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17504 #include <linux/rwsem.h>
17510 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17511 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
17512 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
17513 dummy_semaphore.wait_lock = dummy_lock;
17522 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17523 echo "obj-m := conftest.o" >build
/Makefile
17525 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17526 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17538 { $as_echo "$as_me:$LINENO: result: yes" >&5
17539 $as_echo "yes" >&6; }
17541 cat >>confdefs.h
<<\_ACEOF
17542 #define RWSEM_SPINLOCK_IS_RAW 1
17547 $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.
$ac_ext >&5
17550 { $as_echo "$as_me:$LINENO: result: no" >&5
17551 $as_echo "no" >&6; }
17560 EXTRA_KCFLAGS
="$tmp_flags"
17563 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
17564 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17565 tmp_flags
="$EXTRA_KCFLAGS"
17566 EXTRA_KCFLAGS
="-Werror"
17569 cat confdefs.h
- <<_ACEOF >conftest.c
17572 cat confdefs.h
>>conftest.
$ac_ext
17573 cat >>conftest.
$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17577 #include <linux/rwsem.h>
17583 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17584 dummy_semaphore.activity = 0;
17593 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17594 echo "obj-m := conftest.o" >build
/Makefile
17596 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17597 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17609 { $as_echo "$as_me:$LINENO: result: yes" >&5
17610 $as_echo "yes" >&6; }
17612 cat >>confdefs.h
<<\_ACEOF
17613 #define HAVE_RWSEM_ACTIVITY 1
17618 $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.
$ac_ext >&5
17621 { $as_echo "$as_me:$LINENO: result: no" >&5
17622 $as_echo "no" >&6; }
17631 EXTRA_KCFLAGS
="$tmp_flags"
17634 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17635 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17636 tmp_flags
="$EXTRA_KCFLAGS"
17637 EXTRA_KCFLAGS
="-Werror"
17640 cat confdefs.h
- <<_ACEOF >conftest.c
17643 cat confdefs.h
>>conftest.
$ac_ext
17644 cat >>conftest.
$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17648 #include <linux/rwsem.h>
17654 DECLARE_RWSEM(dummy_semaphore);
17655 (void) atomic_long_read(&dummy_semaphore.count);
17664 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17665 echo "obj-m := conftest.o" >build
/Makefile
17667 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17668 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17680 { $as_echo "$as_me:$LINENO: result: yes" >&5
17681 $as_echo "yes" >&6; }
17683 cat >>confdefs.h
<<\_ACEOF
17684 #define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
17689 $as_echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.
$ac_ext >&5
17692 { $as_echo "$as_me:$LINENO: result: no" >&5
17693 $as_echo "no" >&6; }
17702 EXTRA_KCFLAGS
="$tmp_flags"
17704 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
17705 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17708 cat confdefs.h
- <<_ACEOF >conftest.c
17711 cat confdefs.h
>>conftest.
$ac_ext
17712 cat >>conftest.
$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17716 #include <linux/sched.h>
17717 #include <linux/sched/rt.h>
17732 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17733 echo "obj-m := conftest.o" >build
/Makefile
17735 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17736 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17749 cat >>confdefs.h
<<\_ACEOF
17750 #define HAVE_SCHED_RT_HEADER 1
17753 { $as_echo "$as_me:$LINENO: result: yes" >&5
17754 $as_echo "yes" >&6; }
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.
$ac_ext >&5
17760 { $as_echo "$as_me:$LINENO: result: no" >&5
17761 $as_echo "no" >&6; }
17771 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
17772 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
17775 cat confdefs.h
- <<_ACEOF >conftest.c
17778 cat confdefs.h
>>conftest.
$ac_ext
17779 cat >>conftest.
$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17783 #include <linux/sched.h>
17784 #include <linux/sched/signal.h>
17799 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17800 echo "obj-m := conftest.o" >build
/Makefile
17802 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17803 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17816 cat >>confdefs.h
<<\_ACEOF
17817 #define HAVE_SCHED_SIGNAL_HEADER 1
17820 { $as_echo "$as_me:$LINENO: result: yes" >&5
17821 $as_echo "yes" >&6; }
17824 $as_echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.
$ac_ext >&5
17827 { $as_echo "$as_me:$LINENO: result: no" >&5
17828 $as_echo "no" >&6; }
17839 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
17840 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
17843 cat confdefs.h
- <<_ACEOF >conftest.c
17846 cat confdefs.h
>>conftest.
$ac_ext
17847 cat >>conftest.
$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17851 #include <linux/fs.h>
17857 vfs_getattr((const struct path *)NULL,
17858 (struct kstat *)NULL,
17869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17870 echo "obj-m := conftest.o" >build
/Makefile
17872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17873 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17885 { $as_echo "$as_me:$LINENO: result: yes" >&5
17886 $as_echo "yes" >&6; }
17888 cat >>confdefs.h
<<\_ACEOF
17889 #define HAVE_4ARGS_VFS_GETATTR 1
17894 $as_echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.
$ac_ext >&5
17897 { $as_echo "$as_me:$LINENO: result: no" >&5
17898 $as_echo "no" >&6; }
17909 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
17910 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
17913 cat confdefs.h
- <<_ACEOF >conftest.c
17916 cat confdefs.h
>>conftest.
$ac_ext
17917 cat >>conftest.
$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17921 #include <linux/fs.h>
17927 vfs_getattr((struct vfsmount *)NULL,
17928 (struct dentry *)NULL,
17929 (struct kstat *)NULL);
17938 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17939 echo "obj-m := conftest.o" >build
/Makefile
17941 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17942 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17954 { $as_echo "$as_me:$LINENO: result: yes" >&5
17955 $as_echo "yes" >&6; }
17957 cat >>confdefs.h
<<\_ACEOF
17958 #define HAVE_3ARGS_VFS_GETATTR 1
17963 $as_echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.
$ac_ext >&5
17966 { $as_echo "$as_me:$LINENO: result: no" >&5
17967 $as_echo "no" >&6; }
17978 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
17979 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
17982 cat confdefs.h
- <<_ACEOF >conftest.c
17985 cat confdefs.h
>>conftest.
$ac_ext
17986 cat >>conftest.
$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17990 #include <linux/fs.h>
17996 vfs_getattr((struct path *) NULL,
17997 (struct kstat *)NULL);
18006 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18007 echo "obj-m := conftest.o" >build
/Makefile
18009 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18010 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18022 { $as_echo "$as_me:$LINENO: result: yes" >&5
18023 $as_echo "yes" >&6; }
18025 cat >>confdefs.h
<<\_ACEOF
18026 #define HAVE_2ARGS_VFS_GETATTR 1
18031 $as_echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.
$ac_ext >&5
18034 { $as_echo "$as_me:$LINENO: result: no" >&5
18035 $as_echo "no" >&6; }
18046 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
18047 $as_echo_n "checking whether usleep_range() is available... " >&6; }
18050 cat confdefs.h
- <<_ACEOF >conftest.c
18053 cat confdefs.h
>>conftest.
$ac_ext
18054 cat >>conftest.
$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18058 #include <linux/delay.h>
18064 usleep_range(0, 0);
18073 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18074 echo "obj-m := conftest.o" >build
/Makefile
18076 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18077 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18089 { $as_echo "$as_me:$LINENO: result: yes" >&5
18090 $as_echo "yes" >&6; }
18092 cat >>confdefs.h
<<\_ACEOF
18093 #define HAVE_USLEEP_RANGE 1
18098 $as_echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.
$ac_ext >&5
18101 { $as_echo "$as_me:$LINENO: result: no" >&5
18102 $as_echo "no" >&6; }
18113 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
18114 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
18117 cat confdefs.h
- <<_ACEOF >conftest.c
18120 cat confdefs.h
>>conftest.
$ac_ext
18121 cat >>conftest.
$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18125 #include <linux/slab.h>
18131 struct kmem_cache cachep __attribute__ ((unused));
18132 cachep.allocflags = GFP_KERNEL;
18141 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18142 echo "obj-m := conftest.o" >build
/Makefile
18144 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18145 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18157 { $as_echo "$as_me:$LINENO: result: yes" >&5
18158 $as_echo "yes" >&6; }
18160 cat >>confdefs.h
<<\_ACEOF
18161 #define HAVE_KMEM_CACHE_ALLOCFLAGS 1
18166 $as_echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.
$ac_ext >&5
18169 { $as_echo "$as_me:$LINENO: result: no" >&5
18170 $as_echo "no" >&6; }
18172 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
18173 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
18176 cat confdefs.h
- <<_ACEOF >conftest.c
18179 cat confdefs.h
>>conftest.
$ac_ext
18180 cat >>conftest.
$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18184 #include <linux/slab.h>
18190 struct kmem_cache cachep __attribute__ ((unused));
18191 cachep.gfpflags = GFP_KERNEL;
18200 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18201 echo "obj-m := conftest.o" >build
/Makefile
18203 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18204 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18216 { $as_echo "$as_me:$LINENO: result: yes" >&5
18217 $as_echo "yes" >&6; }
18219 cat >>confdefs.h
<<\_ACEOF
18220 #define HAVE_KMEM_CACHE_GFPFLAGS 1
18225 $as_echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.
$ac_ext >&5
18228 { $as_echo "$as_me:$LINENO: result: no" >&5
18229 $as_echo "no" >&6; }
18248 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
18249 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18252 cat confdefs.h
- <<_ACEOF >conftest.c
18255 cat confdefs.h
>>conftest.
$ac_ext
18256 cat >>conftest.
$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18260 #include <linux/wait.h>
18266 int (*action)(void *) = NULL;
18267 wait_on_bit(NULL, 0, action, 0);
18276 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18277 echo "obj-m := conftest.o" >build
/Makefile
18279 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18280 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18292 { $as_echo "$as_me:$LINENO: result: yes" >&5
18293 $as_echo "yes" >&6; }
18295 cat >>confdefs.h
<<\_ACEOF
18296 #define HAVE_WAIT_ON_BIT_ACTION 1
18301 $as_echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.
$ac_ext >&5
18304 { $as_echo "$as_me:$LINENO: result: no" >&5
18305 $as_echo "no" >&6; }
18316 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
18317 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18318 tmp_flags
="$EXTRA_KCFLAGS"
18319 EXTRA_KCFLAGS
="-Werror"
18322 cat confdefs.h
- <<_ACEOF >conftest.c
18325 cat confdefs.h
>>conftest.
$ac_ext
18326 cat >>conftest.
$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18330 #include <linux/fs.h>
18336 struct inode *inode = NULL;
18337 inode_lock_shared(inode);
18346 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18347 echo "obj-m := conftest.o" >build
/Makefile
18349 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18350 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18362 { $as_echo "$as_me:$LINENO: result: yes" >&5
18363 $as_echo "yes" >&6; }
18365 cat >>confdefs.h
<<\_ACEOF
18366 #define HAVE_INODE_LOCK_SHARED 1
18371 $as_echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.
$ac_ext >&5
18374 { $as_echo "$as_me:$LINENO: result: no" >&5
18375 $as_echo "no" >&6; }
18384 EXTRA_KCFLAGS
="$tmp_flags"
18387 { $as_echo "$as_me:$LINENO: checking whether mutex has owner" >&5
18388 $as_echo_n "checking whether mutex has owner... " >&6; }
18389 tmp_flags
="$EXTRA_KCFLAGS"
18390 EXTRA_KCFLAGS
="-Werror"
18393 cat confdefs.h
- <<_ACEOF >conftest.c
18396 cat confdefs.h
>>conftest.
$ac_ext
18397 cat >>conftest.
$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18401 #include <linux/mutex.h>
18402 #include <linux/spinlock.h>
18409 struct task_struct *t __attribute__ ((unused));
18419 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18420 echo "obj-m := conftest.o" >build
/Makefile
18422 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18423 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18435 { $as_echo "$as_me:$LINENO: result: yes" >&5
18436 $as_echo "yes" >&6; }
18438 cat >>confdefs.h
<<\_ACEOF
18439 #define HAVE_MUTEX_OWNER 1
18444 $as_echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.
$ac_ext >&5
18447 { $as_echo "$as_me:$LINENO: result: no" >&5
18448 $as_echo "no" >&6; }
18457 EXTRA_KCFLAGS
="$tmp_flags"
18460 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
18461 $as_echo_n "checking whether group_info->gid exists... " >&6; }
18462 tmp_flags
="$EXTRA_KCFLAGS"
18463 EXTRA_KCFLAGS
="-Werror"
18466 cat confdefs.h
- <<_ACEOF >conftest.c
18469 cat confdefs.h
>>conftest.
$ac_ext
18470 cat >>conftest.
$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18474 #include <linux/cred.h>
18480 struct group_info *gi = groups_alloc(1);
18481 gi->gid[0] = KGIDT_INIT(0);
18490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18491 echo "obj-m := conftest.o" >build
/Makefile
18493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18494 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18506 { $as_echo "$as_me:$LINENO: result: yes" >&5
18507 $as_echo "yes" >&6; }
18509 cat >>confdefs.h
<<\_ACEOF
18510 #define HAVE_GROUP_INFO_GID 1
18515 $as_echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.
$ac_ext >&5
18518 { $as_echo "$as_me:$LINENO: result: no" >&5
18519 $as_echo "no" >&6; }
18528 EXTRA_KCFLAGS
="$tmp_flags"
18534 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18535 $as_echo "Error!" >&6; }
18536 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18537 user kernel|user|all|srpm" >&5
18538 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18539 user kernel|user|all|srpm" >&2;}
18540 { (exit 1); exit 1; }; } ;;
18543 if test "$SPL_CONFIG" = user
-o "$SPL_CONFIG" = all
; then
18545 CONFIG_USER_FALSE
='#'
18547 CONFIG_USER_TRUE
='#'
18551 if test "$SPL_CONFIG" = kernel
-o "$SPL_CONFIG" = all
&&
18552 test "x$enable_linux_builtin" != xyes
; then
18553 CONFIG_KERNEL_TRUE
=
18554 CONFIG_KERNEL_FALSE
='#'
18556 CONFIG_KERNEL_TRUE
='#'
18557 CONFIG_KERNEL_FALSE
=
18562 ac_config_files
="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/spl.spec rpm/redhat/spl-kmod.spec rpm/redhat/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release"
18565 cat >confcache
<<\_ACEOF
18566 # This file is a shell script that caches the results of configure
18567 # tests run on this system so they can be shared between configure
18568 # scripts and configure runs, see configure's option --config-cache.
18569 # It is not useful on other systems. If it contains results you don't
18570 # want to keep, you may remove or edit it.
18572 # config.status only pays attention to the cache file if you give it
18573 # the --recheck option to rerun configure.
18575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18577 # following values.
18581 # The following way of writing the cache mishandles newlines in values,
18582 # but we know of no workaround that is simple, portable, and efficient.
18583 # So, we kill variables containing newlines.
18584 # Ultrix sh set writes to stderr and can't be redirected directly,
18585 # and sets the high bit in the cache file unless we assign to the vars.
18587 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18588 eval ac_val
=\$
$ac_var
18592 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18593 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18596 _ | IFS | as_nl
) ;; #(
18597 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18598 *) $as_unset $ac_var ;;
18604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18605 *${as_nl}ac_space
=\
*)
18606 # `set' does not quote correctly, so add quotes (double-quote
18607 # substitution turns \\\\ into \\, and sed turns \\ into \).
18610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18613 # `set' quotes correctly as required by POSIX, so do not add quotes.
18614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18627 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18628 if test -w "$cache_file"; then
18629 test "x$cache_file" != "x/dev/null" &&
18630 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18631 $as_echo "$as_me: updating cache $cache_file" >&6;}
18632 cat confcache
>$cache_file
18634 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18635 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18640 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18641 # Let make expand exec_prefix.
18642 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18644 DEFS
=-DHAVE_CONFIG_H
18648 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18649 # 1. Remove the extension, and $U if already installed.
18650 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18651 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18653 # will be set to the directory where LIBOBJS objects are built.
18654 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18655 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18657 LIBOBJS
=$ac_libobjs
18659 LTLIBOBJS
=$ac_ltlibobjs
18662 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18663 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18664 Usually this means the macro was only invoked conditionally." >&5
18665 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18666 Usually this means the macro was only invoked conditionally." >&2;}
18667 { (exit 1); exit 1; }; }
18669 if test -n "$EXEEXT"; then
18671 am__EXEEXT_FALSE
='#'
18673 am__EXEEXT_TRUE
='#'
18677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18678 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18679 Usually this means the macro was only invoked conditionally." >&5
18680 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18681 Usually this means the macro was only invoked conditionally." >&2;}
18682 { (exit 1); exit 1; }; }
18684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18685 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18686 Usually this means the macro was only invoked conditionally." >&5
18687 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18688 Usually this means the macro was only invoked conditionally." >&2;}
18689 { (exit 1); exit 1; }; }
18691 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18692 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18693 Usually this means the macro was only invoked conditionally." >&5
18694 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18695 Usually this means the macro was only invoked conditionally." >&2;}
18696 { (exit 1); exit 1; }; }
18698 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18699 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18700 Usually this means the macro was only invoked conditionally." >&5
18701 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18702 Usually this means the macro was only invoked conditionally." >&2;}
18703 { (exit 1); exit 1; }; }
18706 : ${CONFIG_STATUS=./config.status}
18708 ac_clean_files_save
=$ac_clean_files
18709 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18710 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18712 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18714 # Generated by $as_me.
18715 # Run this file to recreate the current configuration.
18716 # Compiler output produced by configure, useful for debugging
18717 # configure, is in config.log if it exists.
18720 ac_cs_recheck=false
18722 SHELL=\${CONFIG_SHELL-$SHELL}
18725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18726 ## --------------------- ##
18727 ## M4sh Initialization. ##
18728 ## --------------------- ##
18730 # Be more Bourne compatible
18731 DUALCASE
=1; export DUALCASE
# for MKS sh
18732 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18736 # is contrary to our usage. Disable this feature.
18737 alias -g '${1+"$@"}'='"$@"'
18738 setopt NO_GLOB_SUBST
18740 case `(set -o) 2>/dev/null` in
18741 *posix
*) set -o posix
;;
18750 # Avoid depending upon Character Ranges.
18751 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18752 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18753 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18754 as_cr_digits
='0123456789'
18755 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18761 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18764 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18765 as_echo='printf %s
\n'
18766 as_echo_n='printf %s
'
18768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18769 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18770 as_echo_n='/usr
/ucb
/echo -n'
18772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18773 as_echo_n_body='eval
18777 expr "X$arg" : "X\\(.*\\)$as_nl";
18778 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18780 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18782 export as_echo_n_body
18783 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18785 export as_echo_body
18786 as_echo='sh
-c $as_echo_body as_echo
'
18789 # The user is always right.
18790 if test "${PATH_SEPARATOR+set}" != set; then
18792 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18793 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18798 # Support unset when possible.
18799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18807 # We need space, tab and new line, in precisely that order. Quoting is
18808 # there to prevent editors from complaining about space-tab.
18809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18810 # splitting by setting IFS to empty value.)
18813 # Find who we are. Look in the path if we contain no directory separator.
18815 *[\\/]* ) as_myself=$0 ;;
18816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817 for as_dir in $PATH
18820 test -z "$as_dir" && as_dir=.
18821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18827 # We did not find ourselves, most probably we were run as `sh COMMAND'
18828 # in which case we are not to be found in the path.
18829 if test "x$as_myself" = x
; then
18832 if test ! -f "$as_myself"; then
18833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18834 { (exit 1); exit 1; }
18837 # Work around bugs in pre-3.0 UWIN ksh.
18838 for as_var
in ENV MAIL MAILPATH
18839 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
18851 # Required to use basename.
18852 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18853 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18859 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18860 as_basename
=basename
18866 # Name of the executable.
18867 as_me
=`$as_basename -- "$0" ||
18868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18869 X"$0" : 'X\(//\)$' \| \
18870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18872 sed '/^.*\/\([^/][^/]*\)\/*$/{
18891 as_lineno_1
=$LINENO
18892 as_lineno_2
=$LINENO
18893 test "x$as_lineno_1" != "x$as_lineno_2" &&
18894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
18896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18897 # uniformly replaced by the line number. The first 'sed' inserts a
18898 # line-number line after each line using $LINENO; the second 'sed'
18899 # does the real work. The second script uses 'N' to pair each
18900 # line-number line with the line containing $LINENO, and appends
18901 # trailing '-' during substitution so that $LINENO is not a special
18902 # case at line end.
18903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18904 # scripts with optimization help from Paolo Bonzini. Blame Lee
18905 # E. McMahon (1931-1989) for sed's syntax. :-)
18917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18920 ' >$as_me.lineno
&&
18921 chmod +x
"$as_me.lineno" ||
18922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18923 { (exit 1); exit 1; }; }
18925 # Don't try to exec as it changes $[0], causing all sort of problems
18926 # (the dirname of $[0] is not the place where we might find the
18927 # original and so on. Autoconf is especially sensitive to this).
18928 .
"./$as_me.lineno"
18929 # Exit status is that of the last command.
18934 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18940 ECHO_C
= ECHO_N
= ECHO_T
=
18941 case `echo -n x` in
18943 case `echo 'x\c'` in
18944 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18950 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18951 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18957 rm -f conf$$ conf$$.exe conf$$.
file
18958 if test -d conf$$.dir
; then
18959 rm -f conf$$.dir
/conf$$.
file
18962 mkdir conf$$.dir
2>/dev
/null
18964 if (echo >conf$$.
file) 2>/dev
/null
; then
18965 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18967 # ... but there are two gotchas:
18968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18970 # In both cases, we have to default to `cp -p'.
18971 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18973 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18981 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18982 rmdir conf$$.dir
2>/dev
/null
18984 if mkdir
-p .
2>/dev
/null
; then
18987 test -d .
/-p && rmdir .
/-p
18991 if test -x / >/dev
/null
2>&1; then
18992 as_test_x
='test -x'
18994 if ls -dL / >/dev
/null
2>&1; then
19001 if test -d "$1"; then
19007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19008 ???[sx]*):;;*)false;;esac;fi
19012 as_executable_p
=$as_test_x
19014 # Sed expression to map a string onto a valid CPP name.
19015 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19017 # Sed expression to map a string onto a valid variable name.
19018 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19023 # Save the log message, to keep $[0] and so on meaningful, and to
19024 # report actual input values of CONFIG_FILES etc. instead of their
19025 # values after options handling.
19027 This file was extended by spl $as_me 0.6.5.11, which was
19028 generated by GNU Autoconf 2.63. Invocation command line was
19030 CONFIG_FILES = $CONFIG_FILES
19031 CONFIG_HEADERS = $CONFIG_HEADERS
19032 CONFIG_LINKS = $CONFIG_LINKS
19033 CONFIG_COMMANDS = $CONFIG_COMMANDS
19036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19041 case $ac_config_files in *"
19042 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19045 case $ac_config_headers in *"
19046 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051 # Files that config.status was made for.
19052 config_files="$ac_config_files"
19053 config_headers="$ac_config_headers"
19054 config_commands="$ac_config_commands"
19058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19060 \`$as_me' instantiates files from templates according to the
19061 current configuration.
19063 Usage: $0 [OPTION]... [FILE]...
19065 -h, --help print this help, then exit
19066 -V, --version print version number and configuration settings, then exit
19067 -q, --quiet, --silent
19068 do not print progress messages
19069 -d, --debug don't remove temporary files
19070 --recheck update $as_me by reconfiguring in the same conditions
19071 --file=FILE[:TEMPLATE]
19072 instantiate the configuration file FILE
19073 --header=FILE[:TEMPLATE]
19074 instantiate the configuration header FILE
19076 Configuration files:
19079 Configuration headers:
19082 Configuration commands:
19085 Report bugs to <bug-autoconf@gnu.org>."
19088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19090 spl config.status 0.6.5.11
19091 configured by $0, generated by GNU Autoconf 2.63,
19092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19094 Copyright (C) 2008 Free Software Foundation, Inc.
19095 This config.status script is free software; the Free Software Foundation
19096 gives unlimited permission to copy, distribute and modify it."
19103 test -n "\$AWK" || AWK=awk
19106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19107 # The default lists apply if the user does not specify any file.
19113 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19114 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19125 # Handling of the options.
19126 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19128 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19129 $as_echo "$ac_cs_version"; exit ;;
19130 --debug |
--debu |
--deb |
--de |
--d |
-d )
19132 --file |
--fil |
--fi |
--f )
19135 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19137 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
19138 ac_need_defaults
=false
;;
19139 --header |
--heade |
--head |
--hea )
19142 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19144 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
19145 ac_need_defaults
=false
;;
19147 # Conflict between --help and --header
19148 { $as_echo "$as_me: error: ambiguous option: $1
19149 Try \`$0 --help' for more information." >&2
19150 { (exit 1); exit 1; }; };;
19151 --help |
--hel |
-h )
19152 $as_echo "$ac_cs_usage"; exit ;;
19153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19154 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19157 # This is an error.
19158 -*) { $as_echo "$as_me: error: unrecognized option: $1
19159 Try \`$0 --help' for more information." >&2
19160 { (exit 1); exit 1; }; } ;;
19162 *) ac_config_targets
="$ac_config_targets $1"
19163 ac_need_defaults
=false
;;
19169 ac_configure_extra_args
=
19171 if $ac_cs_silent; then
19173 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178 if \$ac_cs_recheck; then
19179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19182 CONFIG_SHELL='$SHELL'
19183 export CONFIG_SHELL
19188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19193 ## Running $as_me. ##
19199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19203 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19206 # The HP-UX ksh and POSIX shell print the target directory to stdout
19207 # if CDPATH is set.
19208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19210 sed_quote_subst='$sed_quote_subst'
19211 double_quote_subst='$double_quote_subst'
19212 delay_variable_subst='$delay_variable_subst'
19213 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19214 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19215 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19216 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19217 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19218 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19219 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19220 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19221 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19222 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19223 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19224 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19225 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19226 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19227 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19228 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19229 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19230 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19231 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19232 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19233 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19234 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19235 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19236 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19237 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19238 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19239 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19240 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19241 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19242 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19243 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19244 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19245 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19246 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19247 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19248 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19249 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19251 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19252 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19253 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19254 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19255 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19257 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19259 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19260 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19261 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19262 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19263 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19264 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19265 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19266 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19267 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19268 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19269 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19270 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19271 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19272 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19273 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19274 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19275 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19276 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19277 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19278 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19279 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19280 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19281 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19282 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19283 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19284 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19285 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19286 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19287 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19288 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19289 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19290 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19291 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19292 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19293 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19294 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19295 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19296 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19297 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19298 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19299 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19300 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19301 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19302 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19303 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19304 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19305 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19306 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19307 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19308 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19309 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19310 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19311 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19312 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19313 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19314 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19315 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19316 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19317 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19318 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19319 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19320 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19321 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19322 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19323 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19324 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19325 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19326 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19327 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19328 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19329 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19330 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19333 LTCFLAGS='$LTCFLAGS'
19334 compiler='$compiler_DEFAULT'
19336 # Quote evaled strings.
19348 deplibs_check_method \
19357 lt_cv_sys_global_symbol_pipe \
19358 lt_cv_sys_global_symbol_to_cdecl \
19359 lt_cv_sys_global_symbol_to_c_name_address \
19360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19363 lt_prog_compiler_no_builtin_flag \
19364 lt_prog_compiler_wl \
19365 lt_prog_compiler_pic \
19366 lt_prog_compiler_static \
19367 lt_cv_prog_compiler_c_o \
19375 export_dynamic_flag_spec \
19376 whole_archive_flag_spec \
19377 compiler_needs_object \
19379 allow_undefined_flag \
19380 no_undefined_flag \
19381 hardcode_libdir_flag_spec \
19382 hardcode_libdir_flag_spec_ld \
19383 hardcode_libdir_separator \
19388 variables_saved_for_relink \
19390 library_names_spec \
19395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19396 *[\\\\\\\`\\"\\\$]*)
19397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19405 # Double-quote double-evaled strings.
19406 for var in reload_cmds \
19407 old_postinstall_cmds \
19408 old_postuninstall_cmds \
19410 extract_expsyms_cmds \
19411 old_archive_from_new_cmds \
19412 old_archive_from_expsyms_cmds \
19414 archive_expsym_cmds \
19416 module_expsym_cmds \
19417 export_symbols_cmds \
19420 postuninstall_cmds \
19422 sys_lib_search_path_spec \
19423 sys_lib_dlsearch_path_spec; do
19424 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19425 *[\\\\\\\`\\"\\\$]*)
19426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19434 # Fix-up fallback echo if it was mangled by the above quoting rules.
19436 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19440 ac_aux_dir='$ac_aux_dir'
19441 xsi_shell='$xsi_shell'
19442 lt_shell_append='$lt_shell_append'
19444 # See if we are running on zsh, and set the options which allow our
19445 # commands through without removal of \ escapes INIT.
19446 if test -n "\${ZSH_VERSION+set}" ; then
19447 setopt NO_GLOB_SUBST
19453 TIMESTAMP='$TIMESTAMP'
19462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19464 # Handling of arguments.
19465 for ac_config_target
in $ac_config_targets
19467 case $ac_config_target in
19468 "spl_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS spl_config.h" ;;
19469 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19470 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
19471 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19472 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
19473 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
19474 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
19475 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
19476 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
19477 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
19478 "module/spl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/spl/Makefile" ;;
19479 "module/splat/Makefile") CONFIG_FILES
="$CONFIG_FILES module/splat/Makefile" ;;
19480 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
19481 "include/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/fs/Makefile" ;;
19482 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
19483 "include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES include/rpc/Makefile" ;;
19484 "include/sharefs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sharefs/Makefile" ;;
19485 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
19486 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
19487 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
19488 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19489 "include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES include/util/Makefile" ;;
19490 "include/vm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/vm/Makefile" ;;
19491 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
19492 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
19493 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
19494 "rpm/redhat/spl.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19495 "rpm/redhat/spl-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19496 "rpm/redhat/spl-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19497 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
19498 "rpm/generic/spl.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/spl.spec" ;;
19499 "rpm/generic/spl-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19500 "rpm/generic/spl-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19501 "spl.release") CONFIG_FILES
="$CONFIG_FILES spl.release" ;;
19503 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19504 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19505 { (exit 1); exit 1; }; };;
19510 # If the user did not use the arguments to specify the items to instantiate,
19511 # then the envvar interface is used. Set only those that are not.
19512 # We use the long form for the default assignment because of an extremely
19513 # bizarre bug on SunOS 4.1.3.
19514 if $ac_need_defaults; then
19515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19520 # Have a temporary directory for convenience. Make it in the build tree
19521 # simply because there is no reason against having it here, and in addition,
19522 # creating and moving files from /tmp can sometimes cause problems.
19523 # Hook for its removal unless debugging.
19524 # Note that there is a small window in which the directory will not be cleaned:
19525 # after its creation but before its name has been assigned to `$tmp'.
19529 trap 'exit_status=$?
19530 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19532 trap '{ (exit 1); exit 1; }' 1 2 13 15
19534 # Create a (secure) tmp directory for tmp files.
19537 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19538 test -n "$tmp" && test -d "$tmp"
19541 tmp
=.
/conf$$
-$RANDOM
19542 (umask 077 && mkdir
"$tmp")
19545 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19546 { (exit 1); exit 1; }
19549 # Set up the scripts for CONFIG_FILES section.
19550 # No need to generate them if there are no CONFIG_FILES.
19551 # This happens for instance with `./config.status config.h'.
19552 if test -n "$CONFIG_FILES"; then
19556 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19560 ac_cs_awk_cr
=$ac_cr
19563 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19568 echo "cat >conf$$subs.awk <<_ACEOF" &&
19569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19571 } >conf$$subs.sh ||
19572 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19573 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19574 { (exit 1); exit 1; }; }
19575 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19577 for ac_last_try in false false false false false :; do
19578 . ./conf$$subs.sh ||
19579 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19580 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19581 { (exit 1); exit 1; }; }
19583 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19584 if test $ac_delim_n = $ac_delim_num; then
19586 elif $ac_last_try; then
19587 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19588 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19589 { (exit 1); exit 1; }; }
19591 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19594 rm -f conf$$subs.sh
19596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
19601 s/^/S["/; s
/!.
*/"]=/
19611 s/\(.\{148\}\).*/\1/
19613 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19618 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19625 s/\(.\{148\}\).*/\1/
19627 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19631 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19636 ' <conf$$subs.awk | sed '
19641 ' >>$CONFIG_STATUS || ac_write_fail=1
19642 rm -f conf$$subs.awk
19643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19645 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
19646 for (key in S) S_is_set[key] = 1
19652 nfields = split(line, field, "@
")
19654 len = length(field[1])
19655 for (i = 2; i < nfields; i++) {
19657 keylen = length(key)
19658 if (S_is_set[key]) {
19660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19661 len += length(value) + length(field[++i])
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19674 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19677 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
19678 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
19679 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
19680 { (exit 1); exit 1; }; }
19683 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19684 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
19685 # trailing colons and then remove the whole line if VPATH becomes empty
19686 # (actually we leave an empty line to preserve line numbers).
19687 if test "x
$srcdir" = x.; then
19688 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19689 s/:*\$(srcdir):*/:/
19690 s/:*\${srcdir}:*/:/
19692 s/^\([^=]*=[ ]*\):*/\1/
19698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19699 fi # test -n "$CONFIG_FILES"
19701 # Set up the scripts for CONFIG_HEADERS section.
19702 # No need to generate them if there are no CONFIG_HEADERS.
19703 # This happens for instance with `./config.status Makefile'.
19704 if test -n "$CONFIG_HEADERS"; then
19705 cat >"$tmp/defines.
awk" <<\_ACAWK ||
19709 # Transform confdefs.h into an awk script `defines.awk', embedded as
19710 # here-document in config.status, that substitutes the proper values into
19711 # config.h.in to produce config.h.
19713 # Create a delimiter string that does not exist in confdefs.h, to ease
19714 # handling of long lines.
19716 for ac_last_try in false false :; do
19717 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
19718 if test -z "$ac_t"; then
19720 elif $ac_last_try; then
19721 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
19722 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
19723 { (exit 1); exit 1; }; }
19725 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19729 # For the awk script, D is an array of macro values keyed by name,
19730 # likewise P contains macro parameters if any. Preserve backslash
19731 # newline sequences.
19733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19735 s/.\{148\}/&'"$ac_delim"'/g
19738 s/^[ ]*#[ ]*define[ ][ ]*/ /
19745 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19747 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19752 D["\
1"]=" \
3\\\\\\n
"\\/p
19754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19759 s/.\{148\}/&'"$ac_delim"'/g
19764 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19767 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19769 ' <confdefs.h | sed '
19770 s/'"$ac_delim"'/"\\\
19771 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19774 for (key in D) D_is_set[key] = 1
19777 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19779 split(line, arg, " ")
19780 if (arg[1] == "#") {
19784 defundef
= substr
(arg
[1], 2)
19787 split(mac1
, mac2
, "(") #)
19789 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19790 if (D_is_set
[macro
]) {
19791 # Preserve the white space surrounding the "#".
19792 print prefix
"define", macro P
[macro
] D
[macro
]
19795 # Replace #undef with comments. This is necessary, for example,
19796 # in the case of _POSIX_SOURCE, which is predefined and required
19797 # on some systems where configure will not decide to define it.
19798 if (defundef
== "undef") {
19799 print
"/*", prefix defundef
, macro
, "*/"
19807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19808 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19809 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19810 { (exit 1); exit 1; }; }
19811 fi # test -n "$CONFIG_HEADERS"
19814 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19819 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19821 case $ac_mode$ac_tag in
19823 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19824 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19825 { (exit 1); exit 1; }; };;
19826 :[FH
]-) ac_tag
=-:-;;
19827 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19844 -) ac_f
="$tmp/stdin";;
19845 *) # Look for the file first in the build tree, then in the source tree
19846 # (if the path is not absolute). The absolute path cannot be DOS-style,
19847 # because $ac_f cannot contain `:'.
19851 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19853 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19854 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19855 { (exit 1); exit 1; }; };;
19857 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19858 ac_file_inputs
="$ac_file_inputs '$ac_f'"
19861 # Let's still pretend it is `configure' which instantiates (i.e., don't
19862 # use $as_me), people would be surprised to read:
19863 # /* config.h. Generated by config.status. */
19864 configure_input
='Generated from '`
19865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19867 if test x
"$ac_file" != x-
; then
19868 configure_input
="$ac_file. $configure_input"
19869 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19870 $as_echo "$as_me: creating $ac_file" >&6;}
19872 # Neutralize special characters interpreted by sed in replacement strings.
19873 case $configure_input in #(
19874 *\
&* |
*\|
* |
*\\* )
19875 ac_sed_conf_input
=`$as_echo "$configure_input" |
19876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19877 *) ac_sed_conf_input
=$configure_input;;
19881 *:-:* |
*:-) cat >"$tmp/stdin" \
19882 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19884 { (exit 1); exit 1; }; } ;;
19889 ac_dir
=`$as_dirname -- "$ac_file" ||
19890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19891 X"$ac_file" : 'X\(//\)[^/]' \| \
19892 X"$ac_file" : 'X\(//\)$' \| \
19893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19894 $as_echo X"$ac_file" |
19895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19899 /^X\(\/\/\)[^/].*/{
19914 -*) as_dir
=.
/$as_dir;;
19916 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19920 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19921 *) as_qdir
=$as_dir;;
19923 as_dirs
="'$as_qdir' $as_dirs"
19924 as_dir
=`$as_dirname -- "$as_dir" ||
19925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19926 X"$as_dir" : 'X\(//\)[^/]' \| \
19927 X"$as_dir" : 'X\(//\)$' \| \
19928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19929 $as_echo X"$as_dir" |
19930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19934 /^X\(\/\/\)[^/].*/{
19947 test -d "$as_dir" && break
19949 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19950 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19951 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19952 { (exit 1); exit 1; }; }; }
19956 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19958 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19959 # A ".." for each directory in $ac_dir_suffix.
19960 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19961 case $ac_top_builddir_sub in
19962 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19963 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19966 ac_abs_top_builddir
=$ac_pwd
19967 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19968 # for backward compatibility:
19969 ac_top_builddir
=$ac_top_build_prefix
19972 .
) # We are building in place.
19974 ac_top_srcdir
=$ac_top_builddir_sub
19975 ac_abs_top_srcdir
=$ac_pwd ;;
19976 [\\/]* | ?
:[\\/]* ) # Absolute name.
19977 ac_srcdir
=$srcdir$ac_dir_suffix;
19978 ac_top_srcdir
=$srcdir
19979 ac_abs_top_srcdir
=$srcdir ;;
19980 *) # Relative name.
19981 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19982 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19983 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19985 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19995 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19996 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19998 ac_MKDIR_P
=$MKDIR_P
20000 [\\/$
]* | ?
:[\\/]* ) ;;
20001 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20006 # If the template does not know about datarootdir, expand it.
20007 # FIXME: This hack should be removed a few years after 2.60.
20008 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20022 *datarootdir
*) ac_datarootdir_seen
=yes;;
20023 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20024 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20025 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 ac_datarootdir_hack='
20029 s&@datadir@&$datadir&g
20030 s&@docdir@&$docdir&g
20031 s&@infodir@&$infodir&g
20032 s&@localedir@&$localedir&g
20033 s&@mandir@&$mandir&g
20034 s&\\\${datarootdir}&$datarootdir&g' ;;
20038 # Neutralize VPATH when `$srcdir' = `.'.
20039 # Shell code in configure.ac might set extrasub.
20040 # FIXME: do we really want to maintain this feature?
20041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20042 ac_sed_extra="$ac_vpsub
20045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20047 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20048 s|@configure_input@|
$ac_sed_conf_input|
;t t
20049 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20050 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20051 s
&@srcdir@
&$ac_srcdir&;t t
20052 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20053 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20054 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20055 s
&@builddir@
&$ac_builddir&;t t
20056 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20057 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20058 s
&@INSTALL@
&$ac_INSTALL&;t t
20059 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20060 $ac_datarootdir_hack
20062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
20063 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
20064 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
20065 { (exit 1); exit 1; }; }
20067 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20068 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
20069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
20070 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20071 which seems to be undefined. Please make sure it is defined." >&5
20072 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20073 which seems to be undefined. Please make sure it is defined." >&2;}
20077 -) cat "$tmp/out" && rm -f "$tmp/out";;
20078 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20080 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20081 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20082 { (exit 1); exit 1; }; }
20088 if test x"$ac_file" != x-; then
20090 $as_echo "/* $configure_input */" \
20091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20092 } >"$tmp/config.h" \
20093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20095 { (exit 1); exit 1; }; }
20096 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20097 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20098 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20101 mv "$tmp/config.h" "$ac_file" \
20102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20104 { (exit 1); exit 1; }; }
20107 $as_echo "/* $configure_input */" \
20108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20109 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20110 $as_echo "$as_me: error: could not create -" >&2;}
20111 { (exit 1); exit 1; }; }
20113 # Compute "$ac_file"'s index
in $config_headers.
20116 for _am_header
in $config_headers :; do
20117 case $_am_header in
20118 $_am_arg |
$_am_arg:* )
20121 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20124 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20125 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20126 X"$_am_arg" : 'X\(//\)[^/]' \| \
20127 X"$_am_arg" : 'X\(//\)$' \| \
20128 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20129 $as_echo X"$_am_arg" |
20130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20134 /^X\(\/\/\)[^/].*/{
20146 s/.*/./; q'`/stamp-h
$_am_stamp_count
20149 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20150 $as_echo "$as_me: executing $ac_file commands" >&6;}
20155 case $ac_file$ac_mode in
20157 (mv spl_config.h spl_config.h.tmp
&&
20158 awk -f ${ac_srcdir}/config
/config.
awk spl_config.h.tmp
>spl_config.h
&&
20159 rm spl_config.h.tmp
) ||
exit 1 ;;
20160 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20161 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20162 # are listed without --file. Let's play safe and only enable the eval
20163 # if we detect the quoting.
20164 case $CONFIG_FILES in
20165 *\'*) eval set x
"$CONFIG_FILES" ;;
20166 *) set x
$CONFIG_FILES ;;
20171 # Strip MF so we end up with the name of the file.
20172 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20173 # Check whether this is an Automake generated Makefile or not.
20174 # We used to match only the files named `Makefile.in', but
20175 # some people rename them; so instead we look at the file content.
20176 # Grep'ing the first line is not enough: some people post-process
20177 # each Makefile.in and add a new line on top of each file to say so.
20178 # Grep'ing the whole file is not good either: AIX grep has a line
20179 # limit of 2048, but all sed's we know have understand at least 4000.
20180 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20181 dirpart
=`$as_dirname -- "$mf" ||
20182 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20183 X"$mf" : 'X\(//\)[^/]' \| \
20184 X"$mf" : 'X\(//\)$' \| \
20185 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20191 /^X\(\/\/\)[^/].*/{
20207 # Extract the definition of DEPDIR, am__include, and am__quote
20208 # from the Makefile without running `make'.
20209 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20210 test -z "$DEPDIR" && continue
20211 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20212 test -z "am__include" && continue
20213 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20214 # When using ansi2knr, U may be empty or an underscore; expand it
20215 U
=`sed -n 's/^U = //p' < "$mf"`
20216 # Find all dependency output files, they are included files with
20217 # $(DEPDIR) in their names. We invoke sed twice because it is the
20218 # simplest approach to changing $(DEPDIR) to its actual value in the
20220 for file in `sed -n "
20221 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20222 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20223 # Make sure the directory exists.
20224 test -f "$dirpart/$file" && continue
20225 fdir
=`$as_dirname -- "$file" ||
20226 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20227 X"$file" : 'X\(//\)[^/]' \| \
20228 X"$file" : 'X\(//\)$' \| \
20229 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20230 $as_echo X"$file" |
20231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20235 /^X\(\/\/\)[^/].*/{
20248 { as_dir
=$dirpart/$fdir
20250 -*) as_dir
=.
/$as_dir;;
20252 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
20256 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20257 *) as_qdir
=$as_dir;;
20259 as_dirs
="'$as_qdir' $as_dirs"
20260 as_dir
=`$as_dirname -- "$as_dir" ||
20261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20262 X"$as_dir" : 'X\(//\)[^/]' \| \
20263 X"$as_dir" : 'X\(//\)$' \| \
20264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20265 $as_echo X"$as_dir" |
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20270 /^X\(\/\/\)[^/].*/{
20283 test -d "$as_dir" && break
20285 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20286 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20287 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20288 { (exit 1); exit 1; }; }; }
20289 # echo "creating $dirpart/$file"
20290 echo '# dummy' > "$dirpart/$file"
20297 # See if we are running on zsh, and set the options which allow our
20298 # commands through without removal of \ escapes.
20299 if test -n "${ZSH_VERSION+set}" ; then
20300 setopt NO_GLOB_SUBST
20303 cfgfile
="${ofile}T"
20304 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20307 cat <<_LT_EOF >> "$cfgfile"
20310 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20311 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20313 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20315 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20316 # 2006, 2007, 2008 Free Software Foundation, Inc.
20317 # Written by Gordon Matzigkeit, 1996
20319 # This file is part of GNU Libtool.
20321 # GNU Libtool is free software; you can redistribute it and/or
20322 # modify it under the terms of the GNU General Public License as
20323 # published by the Free Software Foundation; either version 2 of
20324 # the License, or (at your option) any later version.
20326 # As a special exception to the GNU General Public License,
20327 # if you distribute this file as part of a program or library that
20328 # is built using GNU Libtool, you may include this file under the
20329 # same distribution terms that you use for the rest of that program.
20331 # GNU Libtool is distributed in the hope that it will be useful,
20332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20334 # GNU General Public License for more details.
20336 # You should have received a copy of the GNU General Public License
20337 # along with GNU Libtool; see the file COPYING. If not, a copy
20338 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20339 # obtained by writing to the Free Software Foundation, Inc.,
20340 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20343 # The names of the tagged configurations supported by this script.
20346 # ### BEGIN LIBTOOL CONFIG
20348 # Which release of libtool.m4 was used?
20349 macro_version=$macro_version
20350 macro_revision=$macro_revision
20352 # Whether or not to build shared libraries.
20353 build_libtool_libs=$enable_shared
20355 # Whether or not to build static libraries.
20356 build_old_libs=$enable_static
20358 # What type of objects to build.
20361 # Whether or not to optimize for fast installation.
20362 fast_install=$enable_fast_install
20365 host_alias=$host_alias
20369 # The build system.
20370 build_alias=$build_alias
20374 # A sed program that does not truncate output.
20377 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20378 Xsed="\$SED -e 1s/^X//"
20380 # A grep program that handles long lines.
20386 # A literal string matcher.
20389 # A BSD- or MS-compatible name lister.
20392 # Whether we need soft or hard links.
20395 # What is the maximum length of a command?
20396 max_cmd_len=$max_cmd_len
20398 # Object file suffix (normally "o").
20401 # Executable file suffix (normally "").
20404 # whether the shell understands "unset".
20407 # turn spaces into newlines.
20410 # turn newlines into spaces.
20413 # How to create reloadable object files.
20414 reload_flag=$lt_reload_flag
20415 reload_cmds=$lt_reload_cmds
20417 # An object symbol dumper.
20418 OBJDUMP=$lt_OBJDUMP
20420 # Method to check whether dependent libraries are shared objects.
20421 deplibs_check_method=$lt_deplibs_check_method
20423 # Command to use when deplibs_check_method == "file_magic".
20424 file_magic_cmd=$lt_file_magic_cmd
20428 AR_FLAGS=$lt_AR_FLAGS
20430 # A symbol stripping program.
20433 # Commands used to install an old-style archive.
20435 old_postinstall_cmds=$lt_old_postinstall_cmds
20436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20441 # LTCC compiler flags.
20442 LTCFLAGS=$lt_CFLAGS
20444 # Take the output of nm and produce a listing of raw symbols and C names.
20445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20447 # Transform the output of nm in a proper C declaration.
20448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20450 # Transform the output of nm in a C name address pair.
20451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20453 # Transform the output of nm in a C name address pair when lib prefix is needed.
20454 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20456 # The name of the directory that contains temporary libtool files.
20459 # Shell to use when invoking shell scripts.
20462 # An echo program that does not interpret backslashes.
20465 # Used to examine libraries when file_magic_cmd begins with "file".
20466 MAGIC_CMD=$MAGIC_CMD
20468 # Must we lock files when doing compilation?
20469 need_locks=$lt_need_locks
20471 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20472 DSYMUTIL=$lt_DSYMUTIL
20474 # Tool to change global to local symbols on Mac OS X.
20477 # Tool to manipulate fat objects and archives on Mac OS X.
20480 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20483 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20484 OTOOL64=$lt_OTOOL64
20486 # Old archive suffix (normally "a").
20489 # Shared library suffix (normally ".so").
20490 shrext_cmds=$lt_shrext_cmds
20492 # The commands to extract the exported symbol list from a shared archive.
20493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20495 # Variables whose values should be saved in libtool wrapper scripts and
20496 # restored at link time.
20497 variables_saved_for_relink=$lt_variables_saved_for_relink
20499 # Do we need the "lib" prefix for modules?
20500 need_lib_prefix=$need_lib_prefix
20502 # Do we need a version for libraries?
20503 need_version=$need_version
20505 # Library versioning type.
20506 version_type=$version_type
20508 # Shared library runtime path variable.
20509 runpath_var=$runpath_var
20511 # Shared library path variable.
20512 shlibpath_var=$shlibpath_var
20514 # Is shlibpath searched before the hard-coded library search path?
20515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20517 # Format of library name prefix.
20518 libname_spec=$lt_libname_spec
20520 # List of archive names. First name is the real one, the rest are links.
20521 # The last name is the one that the linker finds with -lNAME
20522 library_names_spec=$lt_library_names_spec
20524 # The coded name of the library, if different from the real name.
20525 soname_spec=$lt_soname_spec
20527 # Command to use after installation of a shared archive.
20528 postinstall_cmds=$lt_postinstall_cmds
20530 # Command to use after uninstallation of a shared archive.
20531 postuninstall_cmds=$lt_postuninstall_cmds
20533 # Commands used to finish a libtool library installation in a directory.
20534 finish_cmds=$lt_finish_cmds
20536 # As "finish_cmds", except a single script fragment to be evaled but
20538 finish_eval=$lt_finish_eval
20540 # Whether we should hardcode library paths into libraries.
20541 hardcode_into_libs=$hardcode_into_libs
20543 # Compile-time system search path for libraries.
20544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20546 # Run-time system search path for libraries.
20547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20549 # Whether dlopen is supported.
20550 dlopen_support=$enable_dlopen
20552 # Whether dlopen of programs is supported.
20553 dlopen_self=$enable_dlopen_self
20555 # Whether dlopen of statically linked programs is supported.
20556 dlopen_self_static=$enable_dlopen_self_static
20558 # Commands to strip libraries.
20559 old_striplib=$lt_old_striplib
20560 striplib=$lt_striplib
20563 # The linker used to build libraries.
20566 # Commands used to build an old-style archive.
20567 old_archive_cmds=$lt_old_archive_cmds
20569 # A language specific compiler.
20572 # Is the compiler the GNU compiler?
20575 # Compiler flag to turn off builtin functions.
20576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20578 # How to pass a linker flag through the compiler.
20579 wl=$lt_lt_prog_compiler_wl
20581 # Additional compiler flags for building library objects.
20582 pic_flag=$lt_lt_prog_compiler_pic
20584 # Compiler flag to prevent dynamic linking.
20585 link_static_flag=$lt_lt_prog_compiler_static
20587 # Does compiler simultaneously support -c and -o options?
20588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20590 # Whether or not to add -lc for building shared libraries.
20591 build_libtool_need_lc=$archive_cmds_need_lc
20593 # Whether or not to disallow shared libs when runtime libs are static.
20594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20596 # Compiler flag to allow reflexive dlopens.
20597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20599 # Compiler flag to generate shared objects directly from archives.
20600 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20602 # Whether the compiler copes with passing no objects directly.
20603 compiler_needs_object=$lt_compiler_needs_object
20605 # Create an old-style archive from a shared archive.
20606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20608 # Create a temporary old-style archive to link instead of a shared archive.
20609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20611 # Commands used to build a shared archive.
20612 archive_cmds=$lt_archive_cmds
20613 archive_expsym_cmds=$lt_archive_expsym_cmds
20615 # Commands used to build a loadable module if different from building
20616 # a shared archive.
20617 module_cmds=$lt_module_cmds
20618 module_expsym_cmds=$lt_module_expsym_cmds
20620 # Whether we are building with GNU ld or not.
20621 with_gnu_ld=$lt_with_gnu_ld
20623 # Flag that allows shared libraries with undefined symbols to be built.
20624 allow_undefined_flag=$lt_allow_undefined_flag
20626 # Flag that enforces no undefined symbols.
20627 no_undefined_flag=$lt_no_undefined_flag
20629 # Flag to hardcode \$libdir into a binary during linking.
20630 # This must work even if \$libdir does not exist
20631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20633 # If ld is used when linking, flag to hardcode \$libdir into a binary
20634 # during linking. This must work even if \$libdir does not exist.
20635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20637 # Whether we need a single "-rpath" flag with a separated argument.
20638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20641 # DIR into the resulting binary.
20642 hardcode_direct=$hardcode_direct
20644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20645 # DIR into the resulting binary and the resulting library dependency is
20646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20647 # library is relocated.
20648 hardcode_direct_absolute=$hardcode_direct_absolute
20650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20651 # into the resulting binary.
20652 hardcode_minus_L=$hardcode_minus_L
20654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20655 # into the resulting binary.
20656 hardcode_shlibpath_var=$hardcode_shlibpath_var
20658 # Set to "yes" if building a shared library automatically hardcodes DIR
20659 # into the library and all subsequent libraries and executables linked
20661 hardcode_automatic=$hardcode_automatic
20663 # Set to yes if linker adds runtime paths of dependent libraries
20664 # to runtime path list.
20665 inherit_rpath=$inherit_rpath
20667 # Whether libtool must link a program against all its dependency libraries.
20668 link_all_deplibs=$link_all_deplibs
20670 # Fix the shell variable \$srcfile for the compiler.
20671 fix_srcfile_path=$lt_fix_srcfile_path
20673 # Set to "yes" if exported symbols are required.
20674 always_export_symbols=$always_export_symbols
20676 # The commands to list exported symbols.
20677 export_symbols_cmds=$lt_export_symbols_cmds
20679 # Symbols that should not be listed in the preloaded symbols.
20680 exclude_expsyms=$lt_exclude_expsyms
20682 # Symbols that must always be exported.
20683 include_expsyms=$lt_include_expsyms
20685 # Commands necessary for linking programs (against libraries) with templates.
20686 prelink_cmds=$lt_prelink_cmds
20688 # Specify filename containing input files.
20689 file_list_spec=$lt_file_list_spec
20691 # How to hardcode a shared library path into an executable.
20692 hardcode_action=$hardcode_action
20694 # ### END LIBTOOL CONFIG
20700 cat <<\_LT_EOF
>> "$cfgfile"
20701 # AIX sometimes has problems with the GCC collect2 program. For some
20702 # reason, if we set the COLLECT_NAMES environment variable, the problems
20703 # vanish in a puff of smoke.
20704 if test "X${COLLECT_NAMES+set}" != Xset
; then
20706 export COLLECT_NAMES
20713 ltmain
="$ac_aux_dir/ltmain.sh"
20716 # We use sed instead of cat because bash on DJGPP gets confused if
20717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20718 # text mode, it properly converts lines to CR/LF. This bash problem
20719 # is reportedly fixed, but why not run on old versions too?
20720 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20721 ||
(rm -f "$cfgfile"; exit 1)
20725 cat << \_LT_EOF
>> "$cfgfile"
20727 # func_dirname file append nondir_replacement
20728 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20729 # otherwise set result to NONDIR_REPLACEMENT.
20733 */*) func_dirname_result
="${1%/*}${2}" ;;
20734 * ) func_dirname_result
="${3}" ;;
20738 # func_basename file
20741 func_basename_result
="${1##*/}"
20744 # func_dirname_and_basename file append nondir_replacement
20745 # perform func_basename and func_dirname in a single function
20747 # dirname: Compute the dirname of FILE. If nonempty,
20748 # add APPEND to the result, otherwise set result
20749 # to NONDIR_REPLACEMENT.
20750 # value returned in "$func_dirname_result"
20751 # basename: Compute filename of FILE.
20752 # value retuned in "$func_basename_result"
20753 # Implementation must be kept synchronized with func_dirname
20754 # and func_basename. For efficiency, we do not delegate to
20755 # those functions but instead duplicate the functionality here.
20756 func_dirname_and_basename
()
20759 */*) func_dirname_result
="${1%/*}${2}" ;;
20760 * ) func_dirname_result
="${3}" ;;
20762 func_basename_result
="${1##*/}"
20765 # func_stripname prefix suffix name
20766 # strip PREFIX and SUFFIX off of NAME.
20767 # PREFIX and SUFFIX must not contain globbing or regex special
20768 # characters, hashes, percent signs, but SUFFIX may contain a leading
20769 # dot (in which case that matches only a dot).
20772 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20773 # positional parameters, so assign one to ordinary parameter first.
20774 func_stripname_result
=${3}
20775 func_stripname_result
=${func_stripname_result#"${1}"}
20776 func_stripname_result
=${func_stripname_result%"${2}"}
20782 func_opt_split_opt
=${1%%=*}
20783 func_opt_split_arg
=${1#*=}
20790 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
20791 *) func_lo2o_result
=${1} ;;
20795 # func_xform libobj-or-source
20798 func_xform_result
=${1%.*}.lo
20801 # func_arith arithmetic-term...
20804 func_arith_result
=$
(( $
* ))
20808 # STRING may not start with a hyphen.
20811 func_len_result
=${#1}
20816 *) # Bourne compatible functions.
20817 cat << \_LT_EOF
>> "$cfgfile"
20819 # func_dirname file append nondir_replacement
20820 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20821 # otherwise set result to NONDIR_REPLACEMENT.
20824 # Extract subdirectory from the argument.
20825 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20826 if test "X$func_dirname_result" = "X${1}"; then
20827 func_dirname_result
="${3}"
20829 func_dirname_result
="$func_dirname_result${2}"
20833 # func_basename file
20836 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
20840 # func_stripname prefix suffix name
20841 # strip PREFIX and SUFFIX off of NAME.
20842 # PREFIX and SUFFIX must not contain globbing or regex special
20843 # characters, hashes, percent signs, but SUFFIX may contain a leading
20844 # dot (in which case that matches only a dot).
20845 # func_strip_suffix prefix name
20849 .
*) func_stripname_result
=`$ECHO "X${3}" \
20850 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20851 *) func_stripname_result
=`$ECHO "X${3}" \
20852 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20857 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
20858 my_sed_long_arg
='1s/^-[^=]*=//'
20863 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20864 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20870 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20873 # func_xform libobj-or-source
20876 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20879 # func_arith arithmetic-term...
20882 func_arith_result
=`expr "$@"`
20886 # STRING may not start with a hyphen.
20889 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20895 case $lt_shell_append in
20897 cat << \_LT_EOF
>> "$cfgfile"
20899 # func_append var value
20900 # Append VALUE to the end of shell variable VAR.
20908 cat << \_LT_EOF
>> "$cfgfile"
20910 # func_append var value
20911 # Append VALUE to the end of shell variable VAR.
20922 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20923 ||
(rm -f "$cfgfile"; exit 1)
20925 mv -f "$cfgfile" "$ofile" ||
20926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20935 { (exit 0); exit 0; }
20937 chmod +x
$CONFIG_STATUS
20938 ac_clean_files
=$ac_clean_files_save
20940 test $ac_write_fail = 0 ||
20941 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20942 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20943 { (exit 1); exit 1; }; }
20946 # configure is writing to config.log, and then calls config.status.
20947 # config.status does its own redirection, appending to config.log.
20948 # Unfortunately, on DOS this fails, as config.log is still kept open
20949 # by configure, so config.status won't be able to write to it; its
20950 # output is simply discarded. So we exec the FD to /dev/null,
20951 # effectively closing config.log, so it can be properly (re)opened and
20952 # appended to by config.status. When coming back to configure, we
20953 # need to make the FD available again.
20954 if test "$no_create" != yes; then
20956 ac_config_status_args
=
20957 test "$silent" = yes &&
20958 ac_config_status_args
="$ac_config_status_args --quiet"
20960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20963 # would make configure fail if this is the last instruction.
20964 $ac_cs_success ||
{ (exit 1); exit 1; }
20966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20967 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}