2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for spl 0.7.4.
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.7.4'
747 PACKAGE_STRING
='spl 0.7.4'
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.7.4 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.7.4:";;
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
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.7.4, 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"
2191 _match
="${SPL_META_NAME}-${SPL_META_VERSION}-${SPL_META_RELEASE}"
2192 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2193 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2194 if test -n "${_release}"; then
2195 SPL_META_RELEASE
=${_release}
2196 _spl_ac_meta_type
="git describe"
2201 if test -n "$SPL_META_RELEASE"; then
2203 cat >>confdefs.h
<<_ACEOF
2204 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2209 RELEASE
="$SPL_META_RELEASE"
2213 SPL_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2214 if test -n "$SPL_META_LICENSE"; then
2216 cat >>confdefs.h
<<_ACEOF
2217 #define SPL_META_LICENSE "$SPL_META_LICENSE"
2223 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2224 SPL_META_ALIAS
="$SPL_META_NAME-$SPL_META_VERSION"
2225 test -n "$SPL_META_RELEASE" &&
2226 SPL_META_ALIAS
="$SPL_META_ALIAS-$SPL_META_RELEASE"
2228 cat >>confdefs.h
<<_ACEOF
2229 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2235 SPL_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2236 if test -n "$SPL_META_DATA"; then
2238 cat >>confdefs.h
<<_ACEOF
2239 #define SPL_META_DATA "$SPL_META_DATA"
2245 SPL_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2246 if test -n "$SPL_META_AUTHOR"; then
2248 cat >>confdefs.h
<<_ACEOF
2249 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2256 SPL_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2257 SPL_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2258 SPL_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2259 if test -n "$SPL_META_LT_CURRENT" \
2260 -o -n "$SPL_META_LT_REVISION" \
2261 -o -n "$SPL_META_LT_AGE"; then
2262 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT
="0"
2263 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION
="0"
2264 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE
="0"
2266 cat >>confdefs.h
<<_ACEOF
2267 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2271 cat >>confdefs.h
<<_ACEOF
2272 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2276 cat >>confdefs.h
<<_ACEOF
2277 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2286 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_type" >&5
2287 $as_echo "$_spl_ac_meta_type" >&6; }
2291 for ac_dir
in config
"$srcdir"/config
; do
2292 if test -f "$ac_dir/install-sh"; then
2294 ac_install_sh
="$ac_aux_dir/install-sh -c"
2296 elif test -f "$ac_dir/install.sh"; then
2298 ac_install_sh
="$ac_aux_dir/install.sh -c"
2300 elif test -f "$ac_dir/shtool"; then
2302 ac_install_sh
="$ac_aux_dir/shtool install -c"
2306 if test -z "$ac_aux_dir"; then
2307 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2308 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2309 { (exit 1); exit 1; }; }
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322 # Make sure we can run config.sub.
2323 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2324 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2325 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2326 { (exit 1); exit 1; }; }
2328 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2329 $as_echo_n "checking build system type... " >&6; }
2330 if test "${ac_cv_build+set}" = set; then
2331 $as_echo_n "(cached) " >&6
2333 ac_build_alias
=$build_alias
2334 test "x$ac_build_alias" = x
&&
2335 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2336 test "x$ac_build_alias" = x
&&
2337 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2338 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2339 { (exit 1); exit 1; }; }
2340 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2341 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2342 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2343 { (exit 1); exit 1; }; }
2346 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2347 $as_echo "$ac_cv_build" >&6; }
2348 case $ac_cv_build in
2350 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2351 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2352 { (exit 1); exit 1; }; };;
2355 ac_save_IFS
=$IFS; IFS
='-'
2361 # Remember, the first character of IFS is used to create $*,
2362 # except with old shells:
2365 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2368 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2369 $as_echo_n "checking host system type... " >&6; }
2370 if test "${ac_cv_host+set}" = set; then
2371 $as_echo_n "(cached) " >&6
2373 if test "x$host_alias" = x
; then
2374 ac_cv_host
=$ac_cv_build
2376 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2377 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2378 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2379 { (exit 1); exit 1; }; }
2383 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2384 $as_echo "$ac_cv_host" >&6; }
2387 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2388 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2389 { (exit 1); exit 1; }; };;
2392 ac_save_IFS
=$IFS; IFS
='-'
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2402 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2405 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2406 $as_echo_n "checking target system type... " >&6; }
2407 if test "${ac_cv_target+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2410 if test "x$target_alias" = x
; then
2411 ac_cv_target
=$ac_cv_host
2413 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2414 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2415 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2416 { (exit 1); exit 1; }; }
2420 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2421 $as_echo "$ac_cv_target" >&6; }
2422 case $ac_cv_target in
2424 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2425 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2426 { (exit 1); exit 1; }; };;
2428 target
=$ac_cv_target
2429 ac_save_IFS
=$IFS; IFS
='-'
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2439 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442 # The aliases save the names the user supplied, while $host etc.
2443 # will get canonicalized.
2444 test -n "$target_alias" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2447 program_prefix
=${target_alias}-
2449 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2450 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2451 # Check whether --enable-maintainer-mode was given.
2452 if test "${enable_maintainer_mode+set}" = set; then
2453 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2455 USE_MAINTAINER_MODE
=no
2458 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2459 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2460 if test $USE_MAINTAINER_MODE = yes; then
2461 MAINTAINER_MODE_TRUE
=
2462 MAINTAINER_MODE_FALSE
='#'
2464 MAINTAINER_MODE_TRUE
='#'
2465 MAINTAINER_MODE_FALSE
=
2468 MAINT
=$MAINTAINER_MODE_TRUE
2471 # Check whether --enable-silent-rules was given.
2472 if test "${enable_silent_rules+set}" = set; then
2473 enableval
=$enable_silent_rules;
2476 case $enable_silent_rules in
2477 yes) AM_DEFAULT_VERBOSITY
=0;;
2478 no
) AM_DEFAULT_VERBOSITY
=1;;
2479 *) AM_DEFAULT_VERBOSITY
=0;;
2483 am__api_version='1.11'
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if test "${ac_cv_path_install+set}" = set; then
2503 $as_echo_n "(cached) " >&6
2505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir
=.
2510 # Account for people who put trailing slashes in PATH elements.
2512 .
/ | .
// |
/cC
/* | \
2513 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2514 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2520 for ac_prog
in ginstall scoinst
install; do
2521 for ac_exec_ext
in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2523 if test $ac_prog = install &&
2524 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2527 elif test $ac_prog = install &&
2528 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one
> conftest.one
2534 echo two
> conftest.two
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2537 test -s conftest.one
&& test -s conftest.two
&&
2538 test -s conftest.dir
/conftest.one
&&
2539 test -s conftest.dir
/conftest.two
2541 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2554 rm -rf conftest.one conftest.two conftest.dir
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL
=$ac_cv_path_install
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL
=$ac_install_sh
2567 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2576 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2578 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2582 echo timestamp
> conftest.
file
2583 # Reject unsafe characters in $srcdir or the absolute working directory
2584 # name. Accept space and tab only in the latter.
2588 *[\\\"\
#\$\&\'\`$am_lf]*)
2589 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2590 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2591 { (exit 1); exit 1; }; };;
2594 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2595 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2596 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2597 { (exit 1); exit 1; }; };;
2600 # Do `set' in a subshell so we don't clobber the current shell's
2601 # arguments. Must try -L first in case configure is actually a
2602 # symlink; some systems play weird games with the mod time of symlinks
2603 # (eg FreeBSD returns the mod time of the symlink's containing
2606 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607 if test "$*" = "X"; then
2609 set X
`ls -t "$srcdir/configure" conftest.file`
2612 if test "$*" != "X $srcdir/configure conftest.file" \
2613 && test "$*" != "X conftest.file $srcdir/configure"; then
2615 # If neither matched, then we have a broken ls. This can happen
2616 # if, for instance, CONFIG_SHELL is bash and it inherits a
2617 # broken ls alias from the environment. This has actually
2618 # happened. Such a system could not be considered "sane".
2619 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2620 alias in your environment" >&5
2621 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2622 alias in your environment" >&2;}
2623 { (exit 1); exit 1; }; }
2626 test "$2" = conftest.
file
2632 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2633 Check your system clock" >&5
2634 $as_echo "$as_me: error: newly created file is older than distributed files!
2635 Check your system clock" >&2;}
2636 { (exit 1); exit 1; }; }
2638 { $as_echo "$as_me:$LINENO: result: yes" >&5
2639 $as_echo "yes" >&6; }
2640 test "$program_prefix" != NONE
&&
2641 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2642 # Use a double $ so make ignores it.
2643 test "$program_suffix" != NONE
&&
2644 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2645 # Double any \ or $.
2646 # By default was `s,x,x', remove it if useless.
2647 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2648 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2650 # expand $ac_aux_dir to an absolute path
2651 am_aux_dir
=`cd $ac_aux_dir && pwd`
2653 if test x
"${MISSING+set}" != xset
; then
2656 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2658 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2661 # Use eval to expand $SHELL
2662 if eval "$MISSING --run true"; then
2663 am_missing_run
="$MISSING --run "
2666 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2667 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2670 if test x
"${install_sh}" != xset
; then
2673 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2675 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2679 # Installed binaries are usually stripped using `strip' when the user
2680 # run `make install-strip'. However `strip' might not be the right
2681 # tool to use in cross-compilation environments, therefore Automake
2682 # will honor the `STRIP' environment variable to overrule this program.
2683 if test "$cross_compiling" != no
; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2686 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if test "${ac_cv_prog_STRIP+set}" = set; then
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$STRIP"; then
2693 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir
=.
2700 for ac_exec_ext
in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 STRIP
=$ac_cv_prog_STRIP
2713 if test -n "$STRIP"; then
2714 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2715 $as_echo "$STRIP" >&6; }
2717 { $as_echo "$as_me:$LINENO: result: no" >&5
2718 $as_echo "no" >&6; }
2723 if test -z "$ac_cv_prog_STRIP"; then
2725 # Extract the first word of "strip", so it can be a program name with args.
2726 set dummy strip
; ac_word
=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$ac_ct_STRIP"; then
2733 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir
=.
2740 for ac_exec_ext
in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_ac_ct_STRIP
="strip"
2743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2753 if test -n "$ac_ct_STRIP"; then
2754 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2755 $as_echo "$ac_ct_STRIP" >&6; }
2757 { $as_echo "$as_me:$LINENO: result: no" >&5
2758 $as_echo "no" >&6; }
2761 if test "x$ac_ct_STRIP" = x
; then
2764 case $cross_compiling:$ac_tool_warned in
2766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned
=yes ;;
2773 STRIP
="$ac_cv_prog_STRIP"
2777 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2779 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2780 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2781 if test -z "$MKDIR_P"; then
2782 if test "${ac_cv_path_mkdir+set}" = set; then
2783 $as_echo_n "(cached) " >&6
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2786 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_prog
in mkdir gmkdir
; do
2791 for ac_exec_ext
in '' $ac_executable_extensions; do
2792 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2793 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2794 'mkdir (GNU coreutils) '* | \
2795 'mkdir (coreutils) '* | \
2796 'mkdir (fileutils) '4.1*)
2797 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2807 if test "${ac_cv_path_mkdir+set}" = set; then
2808 MKDIR_P
="$ac_cv_path_mkdir -p"
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for MKDIR_P within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
2814 test -d .
/--version && rmdir .
/--version
2815 MKDIR_P
="$ac_install_sh -d"
2818 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2819 $as_echo "$MKDIR_P" >&6; }
2823 [\\/$
]* | ?
:[\\/]*) ;;
2824 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2827 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2830 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2832 $as_echo_n "(cached) " >&6
2834 cat >conftest.
make <<\_ACEOF
2837 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2842 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2844 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2848 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2849 { $as_echo "$as_me:$LINENO: result: yes" >&5
2850 $as_echo "yes" >&6; }
2853 { $as_echo "$as_me:$LINENO: result: no" >&5
2854 $as_echo "no" >&6; }
2855 SET_MAKE
="MAKE=${MAKE-make}"
2858 rm -rf .tst
2>/dev
/null
2859 mkdir .tst
2>/dev
/null
2860 if test -d .tst
; then
2865 rmdir .tst
2>/dev
/null
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869 # is not polluted with repeated "-I."
2870 am__isrc
=' -I$(srcdir)'
2871 # test to see if srcdir already configured
2872 if test -f $srcdir/config.status
; then
2873 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2874 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2875 { (exit 1); exit 1; }; }
2879 # test whether we have cygpath
2880 if test -z "$CYGPATH_W"; then
2881 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2882 CYGPATH_W
='cygpath -w'
2889 # Define the identity of the package.
2894 cat >>confdefs.h
<<_ACEOF
2895 #define PACKAGE "$PACKAGE"
2899 cat >>confdefs.h
<<_ACEOF
2900 #define VERSION "$VERSION"
2903 # Some tools Automake needs.
2905 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2908 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2911 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2914 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2917 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2919 # We need awk for the "check" target. The system "awk" is bad on
2921 # Always define AMTAR for backward compatibility.
2923 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2925 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2931 ac_config_headers
="$ac_config_headers spl_config.h"
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # OS/2's system install, which has a completely different semantic
2946 # ./install, which can be erroneously created by make from ./install.sh.
2947 # Reject install programs that cannot install multiple files.
2948 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2949 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2950 if test -z "$INSTALL"; then
2951 if test "${ac_cv_path_install+set}" = set; then
2952 $as_echo_n "(cached) " >&6
2954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir
=.
2959 # Account for people who put trailing slashes in PATH elements.
2961 .
/ | .
// |
/cC
/* | \
2962 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2963 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2966 # OSF1 and SCO ODT 3.0 have their own names for install.
2967 # Don't use installbsd from OSF since it installs stuff as root
2969 for ac_prog
in ginstall scoinst
install; do
2970 for ac_exec_ext
in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2972 if test $ac_prog = install &&
2973 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2974 # AIX install. It has an incompatible calling convention.
2976 elif test $ac_prog = install &&
2977 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2978 # program-specific install script used by HP pwplus--don't use.
2981 rm -rf conftest.one conftest.two conftest.dir
2982 echo one
> conftest.one
2983 echo two
> conftest.two
2985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2986 test -s conftest.one
&& test -s conftest.two
&&
2987 test -s conftest.dir
/conftest.one
&&
2988 test -s conftest.dir
/conftest.two
2990 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3003 rm -rf conftest.one conftest.two conftest.dir
3006 if test "${ac_cv_path_install+set}" = set; then
3007 INSTALL
=$ac_cv_path_install
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for INSTALL within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 INSTALL
=$ac_install_sh
3016 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3017 $as_echo "$INSTALL" >&6; }
3019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020 # It thinks the first close brace ends the variable substitution.
3021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3025 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3028 ac_cpp
='$CPP $CPPFLAGS'
3029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC
="$CC" # Let the user override the test.
3043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir
=.
3048 for ac_exec_ext
in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3065 { $as_echo "$as_me:$LINENO: result: no" >&5
3066 $as_echo "no" >&6; }
3071 if test -z "$ac_cv_prog_CC"; then
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc
; ac_word
=$2
3075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir
=.
3088 for ac_exec_ext
in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC
="gcc"
3091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3105 { $as_echo "$as_me:$LINENO: result: no" >&5
3106 $as_echo "no" >&6; }
3109 if test "x$ac_ct_CC" = x
; then
3112 case $cross_compiling:$ac_tool_warned in
3114 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned
=yes ;;
3124 if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_CC+set}" = set; then
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC
="$CC" # Let the user override the test.
3136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir
=.
3141 for ac_exec_ext
in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3158 { $as_echo "$as_me:$LINENO: result: no" >&5
3159 $as_echo "no" >&6; }
3165 if test -z "$CC"; then
3166 # Extract the first word of "cc", so it can be a program name with args.
3167 set dummy cc
; ac_word
=$2
3168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_CC+set}" = set; then
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC
="$CC" # Let the user override the test.
3177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir
=.
3182 for ac_exec_ext
in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185 ac_prog_rejected
=yes
3189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy
$ac_cv_prog_CC
3200 if test $# != 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3205 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:$LINENO: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 for ac_prog
in cl.exe
3225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if test "${ac_cv_prog_CC+set}" = set; then
3230 $as_echo_n "(cached) " >&6
3232 if test -n "$CC"; then
3233 ac_cv_prog_CC
="$CC" # Let the user override the test.
3235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir
=.
3240 for ac_exec_ext
in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3257 { $as_echo "$as_me:$LINENO: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$CC" && break
3265 if test -z "$CC"; then
3267 for ac_prog
in cl.exe
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy
$ac_prog; ac_word
=$2
3271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir
=.
3284 for ac_exec_ext
in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_ac_ct_CC
="$ac_prog"
3287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3301 { $as_echo "$as_me:$LINENO: result: no" >&5
3302 $as_echo "no" >&6; }
3306 test -n "$ac_ct_CC" && break
3309 if test "x$ac_ct_CC" = x
; then
3312 case $cross_compiling:$ac_tool_warned in
3314 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned
=yes ;;
3325 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details." >&5
3329 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3330 See \`config.log' for more details." >&2;}
3331 { (exit 1); exit 1; }; }; }
3333 # Provide some information about the compiler.
3334 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3337 { (ac_try
="$ac_compiler --version >&5"
3339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compiler --version >&5") 2>&5
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348 { (ac_try="$ac_compiler -v >&5"
3350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3351 *) ac_try_echo
=$ac_try;;
3353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3354 $as_echo "$ac_try_echo") >&5
3355 (eval "$ac_compiler -v >&5") 2>&5
3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3359 { (ac_try
="$ac_compiler -V >&5"
3361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365 $as_echo "$ac_try_echo") >&5
3366 (eval "$ac_compiler -V >&5") 2>&5
3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3386 ac_clean_files_save=$ac_clean_files
3387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3388 # Try to create an executable without -o first, disregard a.out.
3389 # It will help us diagnose broken compilers, and finding out an intuition
3391 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3392 $as_echo_n "checking for C compiler default output file name... " >&6; }
3393 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3395 # The possible output files:
3396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3399 for ac_file in $ac_files
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3408 if { (ac_try="$ac_link_default"
3410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3411 *) ac_try_echo
=$ac_try;;
3413 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3414 $as_echo "$ac_try_echo") >&5
3415 (eval "$ac_link_default") 2>&5
3417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
3419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3421 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3422 # so that the user can short-circuit this test for compilers unknown to
3424 for ac_file
in $ac_files ''
3426 test -f "$ac_file" ||
continue
3428 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3431 # We found the default executable, but exeext='' is most
3435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3437 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 # We set ac_cv_exeext here because the later test for it is not
3440 # safe: cross compilers may not add the suffix if given an `-o'
3441 # argument, so we may need to know it at that point already.
3442 # Even if this section looks crufty: it has the advantage of
3449 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3455 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3456 $as_echo "$ac_file" >&6; }
3457 if test -z "$ac_file"; then
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.
$ac_ext >&5
3461 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3464 See \`config.log' for more details." >&5
3465 $as_echo "$as_me: error: C compiler cannot create executables
3466 See \`config.log' for more details." >&2;}
3467 { (exit 77); exit 77; }; }; }
3470 ac_exeext
=$ac_cv_exeext
3472 # Check that the compiler produces executables we can run. If not, either
3473 # the compiler is broken, or we cross compile.
3474 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3475 $as_echo_n "checking whether the C compiler works... " >&6; }
3476 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3477 # If not cross compiling, check that we can run a simple program.
3478 if test "$cross_compiling" != yes; then
3479 if { ac_try
='./$ac_file'
3480 { (case "(($ac_try" in
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486 (eval "$ac_try") 2>&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3492 if test "$cross_compiling" = maybe; then
3495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3498 If you meant to cross compile
, use \
`--host'.
3499 See \`config.log
' for more details." >&5
3500 $as_echo "$as_me: error: cannot run C compiled programs.
3501 If you meant to cross compile, use \`--host'.
3502 See \
`config.log' for more details." >&2;}
3503 { (exit 1); exit 1; }; }; }
3507 { $as_echo "$as_me:$LINENO: result: yes" >&5
3508 $as_echo "yes" >&6; }
3510 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3511 ac_clean_files=$ac_clean_files_save
3512 # Check that the compiler produces executables we can run. If not, either
3513 # the compiler is broken, or we cross compile.
3514 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3515 $as_echo_n "checking whether we are cross compiling... " >&6; }
3516 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3517 $as_echo "$cross_compiling" >&6; }
3519 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3520 $as_echo_n "checking for suffix of executables... " >&6; }
3521 if { (ac_try="$ac_link"
3523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3524 *) ac_try_echo
=$ac_try;;
3526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3527 $as_echo "$ac_try_echo") >&5
3528 (eval "$ac_link") 2>&5
3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; then
3532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3534 # work properly (i.e., refer to `conftest.exe'), while it won't with
3536 for ac_file
in conftest.exe conftest conftest.
*; do
3537 test -f "$ac_file" ||
continue
3539 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3540 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3549 See \`config.log' for more details." >&5
3550 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3551 See \`config.log' for more details." >&2;}
3552 { (exit 1); exit 1; }; }; }
3555 rm -f conftest
$ac_cv_exeext
3556 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3557 $as_echo "$ac_cv_exeext" >&6; }
3559 rm -f conftest.
$ac_ext
3560 EXEEXT
=$ac_cv_exeext
3562 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3563 $as_echo_n "checking for suffix of object files... " >&6; }
3564 if test "${ac_cv_objext+set}" = set; then
3565 $as_echo_n "(cached) " >&6
3567 cat >conftest.
$ac_ext <<_ACEOF
3570 cat confdefs.h
>>conftest.
$ac_ext
3571 cat >>conftest.
$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3582 rm -f conftest.o conftest.obj
3583 if { (ac_try
="$ac_compile"
3585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3589 $as_echo "$ac_try_echo") >&5
3590 (eval "$ac_compile") 2>&5
3592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; then
3594 for ac_file in conftest.o conftest.obj conftest.*; do
3595 test -f "$ac_file" || continue;
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3609 See \
`config.log' for more details." >&5
3610 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3611 See \`config.log
' for more details." >&2;}
3612 { (exit 1); exit 1; }; }; }
3615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3617 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3618 $as_echo "$ac_cv_objext" >&6; }
3619 OBJEXT=$ac_cv_objext
3621 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3623 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3624 $as_echo_n "(cached) " >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3644 rm -f conftest.$ac_objext
3645 if { (ac_try="$ac_compile"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3651 $as_echo "$ac_try_echo") >&5
3652 (eval "$ac_compile") 2>conftest.er1
3654 grep -v '^
*+' conftest.er1 >conftest.err
3656 cat conftest.err >&5
3657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } && {
3659 test -z "$ac_c_werror_flag" ||
3660 test ! -s conftest.err
3661 } && test -s conftest.$ac_objext; then
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's
/^
/|
/' conftest.$ac_ext >&5
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if test "${ac_cv_prog_cc_g+set}" = set; then
3686 $as_echo_n "(cached) " >&6
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3707 rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3714 $as_echo "$ac_try_echo") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3717 grep -v '^
*+' conftest.er1 >conftest.err
3719 cat conftest.err >&5
3720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's
/^
/|
/' conftest.$ac_ext >&5
3731 cat >conftest.$ac_ext <<_ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3746 rm -f conftest.$ac_objext
3747 if { (ac_try="$ac_compile"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3753 $as_echo "$ac_try_echo") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3756 grep -v '^
*+' conftest.er1 >conftest.err
3758 cat conftest.err >&5
3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.$ac_objext; then
3766 $as_echo "$as_me: failed program was:" >&5
3767 sed 's
/^
/|
/' conftest.$ac_ext >&5
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793 $as_echo "$ac_try_echo") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^
*+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's
/^
/|
/' conftest.$ac_ext >&5
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3821 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
3823 if test "$ac_test_CFLAGS" = set; then
3824 CFLAGS=$ac_save_CFLAGS
3825 elif test $ac_cv_prog_cc_g = yes; then
3826 if test "$GCC" = yes; then
3832 if test "$GCC" = yes; then
3838 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3840 if test "${ac_cv_prog_cc_c89+set}" = set; then
3841 $as_echo_n "(cached) " >&6
3843 ac_cv_prog_cc_c89=no
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3853 #include <sys/types.h>
3854 #include <sys/stat.h>
3855 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3856 struct buf
{ int x
; };
3857 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3858 static char
*e
(p
, i
)
3864 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3869 s
= g
(p
, va_arg
(v
,int
));
3874 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3875 function prototypes and stuff
, but not
'\xHH' hex character constants.
3876 These don
't provoke an error unfortunately, instead are silently treated
3877 as 'x
'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3879 array size at least. It's necessary to
write '\x00'==0 to get something
3880 that
's true only with -std. */
3881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3886 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3888 int test (int i, double x);
3889 struct s1 {int (*f) (int a);};
3890 struct s2 {int (*f) (double a);};
3891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905 CC="$ac_save_CC $ac_arg"
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913 $as_echo "$ac_try_echo") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^
*+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_prog_cc_c89=$ac_arg
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's
/^
/|
/' conftest.$ac_ext >&5
3932 rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3935 rm -f conftest.$ac_ext
3940 case "x$ac_cv_prog_cc_c89" in
3942 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3943 $as_echo "none needed" >&6; } ;;
3945 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3946 $as_echo "unsupported" >&6; } ;;
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3957 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 DEPDIR="${am__leading_dot}deps"
3961 ac_config_commands="$ac_config_commands depfiles"
3964 am_make=${MAKE-make}
3965 cat > confinc << 'END
'
3967 @echo this is the am__doit target
3970 # If we don't
find an include directive
, just comment out the code.
3971 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3972 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3976 # First try GNU make style include.
3977 echo "include confinc" > confmf
3978 # Ignore all kinds of additional output from `make'.
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target
*)
3986 # Now try BSD make style include.
3987 if test "$am__include" = "#"; then
3988 echo '.include "confinc"' > confmf
3989 case `$am_make -s -f confmf 2> /dev/null` in #(
3990 *the\ am__doit\ target
*)
3991 am__include
=.include
3999 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4000 $as_echo "$_am_result" >&6; }
4001 rm -f confinc confmf
4003 # Check whether --enable-dependency-tracking was given.
4004 if test "${enable_dependency_tracking+set}" = set; then
4005 enableval
=$enable_dependency_tracking;
4008 if test "x$enable_dependency_tracking" != xno
; then
4009 am_depcomp
="$ac_aux_dir/depcomp"
4012 if test "x$enable_dependency_tracking" != xno; then
4022 depcc
="$CC" am_compiler_list
=
4024 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4025 $as_echo_n "checking dependency style of $depcc... " >&6; }
4026 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4027 $as_echo_n "(cached) " >&6
4029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030 # We make a subdir and do the tests there. Otherwise we can end up
4031 # making bogus files that we don't know about and never remove. For
4032 # instance it was reported that on HP-UX the gcc test will end up
4033 # making a dummy file named `D' -- because `-MD' means `put the output
4036 # Copy depcomp to subdir because otherwise we won't find it if we're
4037 # using a relative directory.
4038 cp "$am_depcomp" conftest.dir
4040 # We will build objects and dependencies in a subdirectory because
4041 # it helps to detect inapplicable dependency modes. For instance
4042 # both Tru64's cc and ICC support -MD to output dependencies as a
4043 # side effect of compilation, but ICC will put the dependencies in
4044 # the current directory while Tru64 will put them in the object
4048 am_cv_CC_dependencies_compiler_type
=none
4049 if test "$am_compiler_list" = ""; then
4050 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053 case " $depcc " in #(
4054 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4057 for depmode
in $am_compiler_list; do
4058 # Setup a source with many dependencies, because some compilers
4059 # like to wrap large dependency lists on column 80 (with \), and
4060 # we should not choose a depcomp mode which is confused by this.
4062 # We need to recreate these files for each test, as the compiler may
4063 # overwrite some of them when testing with obscure command lines.
4064 # This happens at least with the AIX C compiler.
4066 for i
in 1 2 3 4 5 6; do
4067 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4068 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4069 # Solaris 8's {/usr,}/bin/sh.
4070 touch sub
/conftst
$i.h
4072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4075 # mode. It turns out that the SunPro C++ compiler does not properly
4076 # handle `-M -o', and we need to detect this. Also, some Intel
4077 # versions had trouble with output in subdirs
4078 am__obj
=sub
/conftest.
${OBJEXT-o}
4079 am__minus_obj
="-o $am__obj"
4082 # This depmode causes a compiler race in universal mode.
4083 test "$am__universal" = false ||
continue
4086 # after this tag, mechanisms are not by side-effect, so they'll
4087 # only be used when explicitly requested
4088 if test "x$enable_dependency_tracking" = xyes
; then
4094 msvisualcpp | msvcmsys
)
4095 # This compiler won't grok `-c -o', but also, the minuso test has
4096 # not run yet. These depmodes are late enough in the game, and
4097 # so weak that their functioning should not be impacted.
4098 am__obj
=conftest.
${OBJEXT-o}
4103 if depmode
=$depmode \
4104 source=sub
/conftest.c object
=$am__obj \
4105 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4106 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4107 >/dev
/null
2>conftest.err
&&
4108 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4109 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4110 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4111 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4112 # icc doesn't choke on unknown options, it will just issue warnings
4113 # or remarks (even with -Werror). So we grep stderr for any message
4114 # that says an option was ignored or not supported.
4115 # When given -MP, icc 7.0 and 7.1 complain thusly:
4116 # icc: Command line warning: ignoring option '-M'; no argument required
4117 # The diagnosis changed in icc 8.0:
4118 # icc: Command line remark: option '-MP' not supported
4119 if (grep 'ignoring option' conftest.err ||
4120 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4121 am_cv_CC_dependencies_compiler_type
=$depmode
4130 am_cv_CC_dependencies_compiler_type
=none
4134 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4135 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4136 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4139 test "x$enable_dependency_tracking" != xno \
4140 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4142 am__fastdepCC_FALSE
='#'
4144 am__fastdepCC_TRUE
='#'
4145 am__fastdepCC_FALSE
=
4151 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4152 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4157 macro_version
='2.2.6b'
4158 macro_revision
='1.3017'
4172 ltmain
="$ac_aux_dir/ltmain.sh"
4174 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4175 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4176 if test "${ac_cv_path_SED+set}" = set; then
4177 $as_echo_n "(cached) " >&6
4179 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4180 for ac_i
in 1 2 3 4 5 6 7; do
4181 ac_script
="$ac_script$as_nl$ac_script"
4183 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4184 $as_unset ac_script || ac_script
=
4185 if test -z "$SED"; then
4186 ac_path_SED_found
=false
4187 # Loop through the user's path and test for each of PROGNAME-LIST
4188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir
=.
4193 for ac_prog
in sed gsed
; do
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4196 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4197 # Check for GNU ac_path_SED and select it if it is found.
4198 # Check for GNU $ac_path_SED
4199 case `"$ac_path_SED" --version 2>&1` in
4201 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4204 $as_echo_n 0123456789 >"conftest.in"
4207 cat "conftest.in" "conftest.in" >"conftest.tmp"
4208 mv "conftest.tmp" "conftest.in"
4209 cp "conftest.in" "conftest.nl"
4210 $as_echo '' >> "conftest.nl"
4211 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4212 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4213 ac_count
=`expr $ac_count + 1`
4214 if test $ac_count -gt ${ac_path_SED_max-0}; then
4215 # Best one so far, save it but keep looking for a better one
4216 ac_cv_path_SED
="$ac_path_SED"
4217 ac_path_SED_max
=$ac_count
4219 # 10*(2^10) chars as input seems more than enough
4220 test $ac_count -gt 10 && break
4222 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4225 $ac_path_SED_found && break 3
4230 if test -z "$ac_cv_path_SED"; then
4231 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4232 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4233 { (exit 1); exit 1; }; }
4240 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4241 $as_echo "$ac_cv_path_SED" >&6; }
4242 SED
="$ac_cv_path_SED"
4245 test -z "$SED" && SED
=sed
4246 Xsed
="$SED -e 1s/^X//"
4258 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4259 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4260 if test "${ac_cv_path_GREP+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4263 if test -z "$GREP"; then
4264 ac_path_GREP_found
=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4267 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4270 test -z "$as_dir" && as_dir
=.
4271 for ac_prog
in grep ggrep
; do
4272 for ac_exec_ext
in '' $ac_executable_extensions; do
4273 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4274 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4275 # Check for GNU ac_path_GREP and select it if it is found.
4276 # Check for GNU $ac_path_GREP
4277 case `"$ac_path_GREP" --version 2>&1` in
4279 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4282 $as_echo_n 0123456789 >"conftest.in"
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 $as_echo 'GREP' >> "conftest.nl"
4289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4290 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4291 ac_count
=`expr $ac_count + 1`
4292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_GREP
="$ac_path_GREP"
4295 ac_path_GREP_max
=$ac_count
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4300 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4303 $ac_path_GREP_found && break 3
4308 if test -z "$ac_cv_path_GREP"; then
4309 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4310 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4311 { (exit 1); exit 1; }; }
4314 ac_cv_path_GREP
=$GREP
4318 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4319 $as_echo "$ac_cv_path_GREP" >&6; }
4320 GREP
="$ac_cv_path_GREP"
4323 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4324 $as_echo_n "checking for egrep... " >&6; }
4325 if test "${ac_cv_path_EGREP+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4328 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4329 then ac_cv_path_EGREP
="$GREP -E"
4331 if test -z "$EGREP"; then
4332 ac_path_EGREP_found
=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4335 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4338 test -z "$as_dir" && as_dir
=.
4339 for ac_prog
in egrep; do
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4342 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4343 # Check for GNU ac_path_EGREP and select it if it is found.
4344 # Check for GNU $ac_path_EGREP
4345 case `"$ac_path_EGREP" --version 2>&1` in
4347 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4350 $as_echo_n 0123456789 >"conftest.in"
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'EGREP' >> "conftest.nl"
4357 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4358 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4359 ac_count
=`expr $ac_count + 1`
4360 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_EGREP
="$ac_path_EGREP"
4363 ac_path_EGREP_max
=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4368 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4371 $ac_path_EGREP_found && break 3
4376 if test -z "$ac_cv_path_EGREP"; then
4377 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4378 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4379 { (exit 1); exit 1; }; }
4382 ac_cv_path_EGREP
=$EGREP
4387 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4388 $as_echo "$ac_cv_path_EGREP" >&6; }
4389 EGREP
="$ac_cv_path_EGREP"
4392 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4393 $as_echo_n "checking for fgrep... " >&6; }
4394 if test "${ac_cv_path_FGREP+set}" = set; then
4395 $as_echo_n "(cached) " >&6
4397 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4398 then ac_cv_path_FGREP
="$GREP -F"
4400 if test -z "$FGREP"; then
4401 ac_path_FGREP_found
=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4404 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_prog
in fgrep
; do
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4411 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4412 # Check for GNU ac_path_FGREP and select it if it is found.
4413 # Check for GNU $ac_path_FGREP
4414 case `"$ac_path_FGREP" --version 2>&1` in
4416 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4419 $as_echo_n 0123456789 >"conftest.in"
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'FGREP' >> "conftest.nl"
4426 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4427 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4428 ac_count
=`expr $ac_count + 1`
4429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_FGREP
="$ac_path_FGREP"
4432 ac_path_FGREP_max
=$ac_count
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4437 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4440 $ac_path_FGREP_found && break 3
4445 if test -z "$ac_cv_path_FGREP"; then
4446 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4447 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4448 { (exit 1); exit 1; }; }
4451 ac_cv_path_FGREP
=$FGREP
4456 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4457 $as_echo "$ac_cv_path_FGREP" >&6; }
4458 FGREP
="$ac_cv_path_FGREP"
4461 test -z "$GREP" && GREP
=grep
4481 # Check whether --with-gnu-ld was given.
4482 if test "${with_gnu_ld+set}" = set; then
4483 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4489 if test "$GCC" = yes; then
4490 # Check if gcc -print-prog-name=ld gives a path.
4491 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4492 $as_echo_n "checking for ld used by $CC... " >&6; }
4495 # gcc leaves a trailing carriage return which upsets mingw
4496 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4498 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4501 # Accept absolute paths.
4503 re_direlt
='/[^/][^/]*/\.\./'
4504 # Canonicalize the pathname of ld
4505 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4506 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4507 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4509 test -z "$LD" && LD
="$ac_prog"
4512 # If it fails, then pretend we aren't using GCC.
4516 # If it is relative, then search for the first ld in PATH.
4520 elif test "$with_gnu_ld" = yes; then
4521 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4522 $as_echo_n "checking for GNU ld... " >&6; }
4524 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4525 $as_echo_n "checking for non-GNU ld... " >&6; }
4527 if test "${lt_cv_path_LD+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4530 if test -z "$LD"; then
4531 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4532 for ac_dir
in $PATH; do
4534 test -z "$ac_dir" && ac_dir
=.
4535 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4536 lt_cv_path_LD
="$ac_dir/$ac_prog"
4537 # Check to see if the program is GNU ld. I'd rather use --version,
4538 # but apparently some variants of GNU ld only accept -v.
4539 # Break only if it was the GNU/non-GNU ld that we prefer.
4540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4541 *GNU
* |
*'with BFD'*)
4542 test "$with_gnu_ld" != no
&& break
4545 test "$with_gnu_ld" != yes && break
4552 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4557 if test -n "$LD"; then
4558 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4559 $as_echo "$LD" >&6; }
4561 { $as_echo "$as_me:$LINENO: result: no" >&5
4562 $as_echo "no" >&6; }
4564 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4565 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4568 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4569 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4572 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4573 case `$LD -v 2>&1 </dev/null` in
4574 *GNU
* |
*'with BFD'*)
4575 lt_cv_prog_gnu_ld
=yes
4578 lt_cv_prog_gnu_ld
=no
4582 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4583 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4584 with_gnu_ld
=$lt_cv_prog_gnu_ld
4594 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4595 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4596 if test "${lt_cv_path_NM+set}" = set; then
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$NM"; then
4600 # Let the user override the test.
4603 lt_nm_to_check
="${ac_tool_prefix}nm"
4604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4605 lt_nm_to_check
="$lt_nm_to_check nm"
4607 for lt_tmp_nm
in $lt_nm_to_check; do
4608 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4609 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4611 test -z "$ac_dir" && ac_dir
=.
4612 tmp_nm
="$ac_dir/$lt_tmp_nm"
4613 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4614 # Check to see if the nm accepts a BSD-compat flag.
4615 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4616 # nm: unknown option "B" ignored
4617 # Tru64's nm complains that /dev/null is an invalid object file
4618 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4619 */dev
/null
* |
*'Invalid file or object type'*)
4620 lt_cv_path_NM
="$tmp_nm -B"
4624 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4626 lt_cv_path_NM
="$tmp_nm -p"
4630 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4631 continue # so that we can try to find one that supports BSD flags
4640 : ${lt_cv_path_NM=no}
4643 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4644 $as_echo "$lt_cv_path_NM" >&6; }
4645 if test "$lt_cv_path_NM" != "no"; then
4648 # Didn't find any BSD compatible name lister, look for dumpbin.
4649 if test -n "$ac_tool_prefix"; then
4650 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4653 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$DUMPBIN"; then
4660 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 DUMPBIN
=$ac_cv_prog_DUMPBIN
4680 if test -n "$DUMPBIN"; then
4681 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4682 $as_echo "$DUMPBIN" >&6; }
4684 { $as_echo "$as_me:$LINENO: result: no" >&5
4685 $as_echo "no" >&6; }
4689 test -n "$DUMPBIN" && break
4692 if test -z "$DUMPBIN"; then
4693 ac_ct_DUMPBIN
=$DUMPBIN
4694 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4696 # Extract the first word of "$ac_prog", so it can be a program name with args.
4697 set dummy
$ac_prog; ac_word
=$2
4698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4701 $as_echo_n "(cached) " >&6
4703 if test -n "$ac_ct_DUMPBIN"; then
4704 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir
=.
4711 for ac_exec_ext
in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4724 if test -n "$ac_ct_DUMPBIN"; then
4725 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4726 $as_echo "$ac_ct_DUMPBIN" >&6; }
4728 { $as_echo "$as_me:$LINENO: result: no" >&5
4729 $as_echo "no" >&6; }
4733 test -n "$ac_ct_DUMPBIN" && break
4736 if test "x$ac_ct_DUMPBIN" = x
; then
4739 case $cross_compiling:$ac_tool_warned in
4741 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned
=yes ;;
4745 DUMPBIN
=$ac_ct_DUMPBIN
4750 if test "$DUMPBIN" != ":"; then
4754 test -z "$NM" && NM
=nm
4761 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4762 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4763 if test "${lt_cv_nm_interface+set}" = set; then
4764 $as_echo_n "(cached) " >&6
4766 lt_cv_nm_interface
="BSD nm"
4767 echo "int some_variable = 0;" > conftest.
$ac_ext
4768 (eval echo "\"\$as_me:4768: $ac_compile\"" >&5)
4769 (eval "$ac_compile" 2>conftest.err
)
4770 cat conftest.err
>&5
4771 (eval echo "\"\$as_me:4771: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4772 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4773 cat conftest.err
>&5
4774 (eval echo "\"\$as_me:4774: output\"" >&5)
4775 cat conftest.out
>&5
4776 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4777 lt_cv_nm_interface
="MS dumpbin"
4781 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4782 $as_echo "$lt_cv_nm_interface" >&6; }
4784 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4785 $as_echo_n "checking whether ln -s works... " >&6; }
4787 if test "$LN_S" = "ln -s"; then
4788 { $as_echo "$as_me:$LINENO: result: yes" >&5
4789 $as_echo "yes" >&6; }
4791 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4792 $as_echo "no, using $LN_S" >&6; }
4795 # find the maximum length of command line arguments
4796 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4797 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4798 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4806 # On DJGPP, this test can blow up pretty badly due to problems in libc
4807 # (any single argument exceeding 2000 bytes causes a buffer overrun
4808 # during glob expansion). Even if it were fixed, the result of this
4809 # check would be larger than it should be.
4810 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4814 # Under GNU Hurd, this test is not required because there is
4815 # no limit to the length of command line arguments.
4816 # Libtool will interpret -1 as no limit whatsoever
4817 lt_cv_sys_max_cmd_len
=-1;
4820 cygwin
* | mingw
* | cegcc
*)
4821 # On Win9x/ME, this test blows up -- it succeeds, but takes
4822 # about 5 minutes as the teststring grows exponentially.
4823 # Worse, since 9x/ME are not pre-emptively multitasking,
4824 # you end up with a "frozen" computer, even though with patience
4825 # the test eventually succeeds (with a max line length of 256k).
4826 # Instead, let's just punt: use the minimum linelength reported by
4827 # all of the supported platforms: 8192 (on NT/2K/XP).
4828 lt_cv_sys_max_cmd_len
=8192;
4832 # On AmigaOS with pdksh, this test takes hours, literally.
4833 # So we just punt and use a minimum line length of 8192.
4834 lt_cv_sys_max_cmd_len
=8192;
4837 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4838 # This has been around since 386BSD, at least. Likely further.
4839 if test -x /sbin
/sysctl
; then
4840 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4841 elif test -x /usr
/sbin
/sysctl
; then
4842 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4844 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4846 # And add a safety zone
4847 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4848 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4852 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4853 lt_cv_sys_max_cmd_len
=196608
4857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4859 # nice to cause kernel panics so lets avoid the loop below.
4860 # First set a reasonable default.
4861 lt_cv_sys_max_cmd_len
=16384
4863 if test -x /sbin
/sysconfig
; then
4864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4865 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4870 lt_cv_sys_max_cmd_len
=102400
4872 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4873 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4874 if test -n "$kargmax"; then
4875 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4877 lt_cv_sys_max_cmd_len
=32768
4881 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4882 if test -n "$lt_cv_sys_max_cmd_len"; then
4883 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4884 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4886 # Make teststring a little bigger before we do anything with it.
4887 # a 1K string should be a reasonable start.
4888 for i
in 1 2 3 4 5 6 7 8 ; do
4889 teststring
=$teststring$teststring
4891 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4892 # If test is not a shell built-in, we'll probably end up computing a
4893 # maximum length that is only half of the actual maximum length, but
4895 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4896 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4897 test $i != 17 # 1/2 MB should be enough
4900 teststring
=$teststring$teststring
4902 # Only check the string length outside the loop.
4903 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4905 # Add a significant safety factor because C++ compilers can tack on
4906 # massive amounts of additional arguments before passing them to the
4907 # linker. It appears as though 1/2 is a usable value.
4908 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4915 if test -n $lt_cv_sys_max_cmd_len ; then
4916 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4917 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4919 { $as_echo "$as_me:$LINENO: result: none" >&5
4920 $as_echo "none" >&6; }
4922 max_cmd_len
=$lt_cv_sys_max_cmd_len
4933 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4934 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4935 # Try some XSI features
4938 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4940 && eval 'test $(( 1 + 1 )) -eq 2 \
4941 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4943 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
4944 $as_echo "$xsi_shell" >&6; }
4947 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
4948 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
4950 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4952 && lt_shell_append=yes
4953 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
4954 $as_echo "$lt_shell_append" >&6; }
4957 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4967 # test EBCDIC or ASCII
4968 case `echo X|tr X '\101'` in
4969 A) # ASCII based system
4970 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4971 lt_SP2NL='tr \040 \012'
4972 lt_NL2SP='tr \015\012 \040\040'
4974 *) # EBCDIC based system
4975 lt_SP2NL='tr \100 \n'
4976 lt_NL2SP='tr \r\n \100\100'
4988 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4989 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
4990 if test "${lt_cv_ld_reload_flag+set}" = set; then
4991 $as_echo_n "(cached
) " >&6
4993 lt_cv_ld_reload_flag='-r'
4995 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4996 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4997 reload_flag=$lt_cv_ld_reload_flag
4998 case $reload_flag in
5000 *) reload_flag=" $reload_flag" ;;
5002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5005 if test "$GCC" = yes; then
5006 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5024 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5025 $as_echo_n "checking
for $ac_word...
" >&6; }
5026 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5027 $as_echo_n "(cached
) " >&6
5029 if test -n "$OBJDUMP"; then
5030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5040 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5049 OBJDUMP=$ac_cv_prog_OBJDUMP
5050 if test -n "$OBJDUMP"; then
5051 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5052 $as_echo "$OBJDUMP" >&6; }
5054 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5055 $as_echo "no
" >&6; }
5060 if test -z "$ac_cv_prog_OBJDUMP"; then
5061 ac_ct_OBJDUMP=$OBJDUMP
5062 # Extract the first word of "objdump
", so it can be a program name with args.
5063 set dummy objdump; ac_word=$2
5064 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5065 $as_echo_n "checking
for $ac_word...
" >&6; }
5066 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5067 $as_echo_n "(cached
) " >&6
5069 if test -n "$ac_ct_OBJDUMP"; then
5070 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5080 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5089 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5092 $as_echo "$ac_ct_OBJDUMP" >&6; }
5094 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5095 $as_echo "no
" >&6; }
5098 if test "x
$ac_ct_OBJDUMP" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5104 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5105 ac_tool_warned=yes ;;
5107 OBJDUMP=$ac_ct_OBJDUMP
5110 OBJDUMP="$ac_cv_prog_OBJDUMP"
5113 test -z "$OBJDUMP" && OBJDUMP=objdump
5123 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5124 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5125 if test "${lt_cv_deplibs_check_method+set}" = set; then
5126 $as_echo_n "(cached
) " >&6
5128 lt_cv_file_magic_cmd='$MAGIC_CMD'
5129 lt_cv_file_magic_test_file=
5130 lt_cv_deplibs_check_method='unknown'
5131 # Need to set the preceding variable on all platforms that support
5132 # interlibrary dependencies.
5133 # 'none' -- dependencies not supported.
5134 # `unknown' -- same as none, but documents that we really don't know.
5135 # 'pass_all' -- all dependencies passed with no checks.
5136 # 'test_compile' -- check by making test program.
5137 # 'file_magic [[regex]]' -- check by looking for files in library path
5138 # which responds to the $file_magic_cmd with a given extended regex.
5139 # If you have `file' or equivalent on your system and you're not sure
5140 # whether `pass_all' will *always* work, you probably want this one.
5144 lt_cv_deplibs_check_method=pass_all
5148 lt_cv_deplibs_check_method=pass_all
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5153 lt_cv_file_magic_cmd='/usr/bin/file -L'
5154 lt_cv_file_magic_test_file=/shlib/libc.so
5158 # func_win32_libid is a shell function defined in ltmain.sh
5159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160 lt_cv_file_magic_cmd='func_win32_libid'
5164 # Base MSYS/MinGW do not provide the 'file' command needed by
5165 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5166 # unless we find 'file', for example because we are cross-compiling.
5167 if ( file / ) >/dev/null 2>&1; then
5168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5169 lt_cv_file_magic_cmd='func_win32_libid'
5171 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5172 lt_cv_file_magic_cmd='$OBJDUMP -f'
5177 # use the weaker test based on 'objdump'. See mingw*.
5178 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5179 lt_cv_file_magic_cmd='$OBJDUMP -f'
5182 darwin* | rhapsody*)
5183 lt_cv_deplibs_check_method=pass_all
5186 freebsd* | dragonfly*)
5187 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5190 # Not sure whether the presence of OpenBSD here was a mistake.
5191 # Let's accept both of them until this is cleared up.
5192 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5193 lt_cv_file_magic_cmd=/usr/bin/file
5194 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5198 lt_cv_deplibs_check_method=pass_all
5203 lt_cv_deplibs_check_method=pass_all
5206 hpux10.20* | hpux11*)
5207 lt_cv_file_magic_cmd=/usr/bin/file
5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5211 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5214 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]'
5215 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5219 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5225 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5229 irix5* | irix6* | nonstopux*)
5231 *-32|*"-32 ") libmagic=32-bit;;
5232 *-n32|*"-n32 ") libmagic=N32;;
5233 *-64|*"-64 ") libmagic=64-bit;;
5234 *) libmagic=never-match;;
5236 lt_cv_deplibs_check_method=pass_all
5239 # This must be Linux ELF.
5240 linux* | k*bsd*-gnu)
5241 lt_cv_deplibs_check_method=pass_all
5245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5254 lt_cv_file_magic_cmd=/usr/bin/file
5255 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5259 lt_cv_deplibs_check_method=pass_all
5263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5270 osf3* | osf4* | osf5*)
5271 lt_cv_deplibs_check_method=pass_all
5275 lt_cv_deplibs_check_method=pass_all
5279 lt_cv_deplibs_check_method=pass_all
5282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5283 lt_cv_deplibs_check_method=pass_all
5287 case $host_vendor in
5289 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]'
5290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5293 lt_cv_deplibs_check_method=pass_all
5296 lt_cv_file_magic_cmd='/bin/file'
5297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5300 lt_cv_file_magic_cmd='/bin/file'
5301 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5302 lt_cv_file_magic_test_file=/lib/libc.so
5305 lt_cv_deplibs_check_method=pass_all
5308 lt_cv_deplibs_check_method=pass_all
5314 lt_cv_deplibs_check_method=pass_all
5319 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5320 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5321 file_magic_cmd=$lt_cv_file_magic_cmd
5322 deplibs_check_method=$lt_cv_deplibs_check_method
5323 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5336 if test -n "$ac_tool_prefix"; then
5337 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5338 set dummy ${ac_tool_prefix}ar; ac_word=$2
5339 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5340 $as_echo_n "checking
for $ac_word...
" >&6; }
5341 if test "${ac_cv_prog_AR+set}" = set; then
5342 $as_echo_n "(cached
) " >&6
5344 if test -n "$AR"; then
5345 ac_cv_prog_AR="$AR" # Let the user override the test.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_AR="${ac_tool_prefix}ar"
5355 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5365 if test -n "$AR"; then
5366 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5367 $as_echo "$AR" >&6; }
5369 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5370 $as_echo "no
" >&6; }
5375 if test -z "$ac_cv_prog_AR"; then
5377 # Extract the first word of "ar", so it can be a program name with args.
5378 set dummy ar; ac_word=$2
5379 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5380 $as_echo_n "checking
for $ac_word...
" >&6; }
5381 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5382 $as_echo_n "(cached
) " >&6
5384 if test -n "$ac_ct_AR"; then
5385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_AR="ar"
5395 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5405 if test -n "$ac_ct_AR"; then
5406 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5407 $as_echo "$ac_ct_AR" >&6; }
5409 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5410 $as_echo "no
" >&6; }
5413 if test "x
$ac_ct_AR" = x; then
5416 case $cross_compiling:$ac_tool_warned in
5418 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5419 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5420 ac_tool_warned=yes ;;
5428 test -z "$AR" && AR=ar
5429 test -z "$AR_FLAGS" && AR_FLAGS=cru
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5443 set dummy ${ac_tool_prefix}strip; ac_word=$2
5444 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5445 $as_echo_n "checking
for $ac_word...
" >&6; }
5446 if test "${ac_cv_prog_STRIP+set}" = set; then
5447 $as_echo_n "(cached
) " >&6
5449 if test -n "$STRIP"; then
5450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5460 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5469 STRIP=$ac_cv_prog_STRIP
5470 if test -n "$STRIP"; then
5471 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5472 $as_echo "$STRIP" >&6; }
5474 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5475 $as_echo "no
" >&6; }
5480 if test -z "$ac_cv_prog_STRIP"; then
5482 # Extract the first word of "strip
", so it can be a program name with args.
5483 set dummy strip; ac_word=$2
5484 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5485 $as_echo_n "checking
for $ac_word...
" >&6; }
5486 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5487 $as_echo_n "(cached
) " >&6
5489 if test -n "$ac_ct_STRIP"; then
5490 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_ac_ct_STRIP="strip
"
5500 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5510 if test -n "$ac_ct_STRIP"; then
5511 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5512 $as_echo "$ac_ct_STRIP" >&6; }
5514 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5515 $as_echo "no
" >&6; }
5518 if test "x
$ac_ct_STRIP" = x; then
5521 case $cross_compiling:$ac_tool_warned in
5523 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5524 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5525 ac_tool_warned=yes ;;
5530 STRIP="$ac_cv_prog_STRIP"
5533 test -z "$STRIP" && STRIP=:
5540 if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5543 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5544 $as_echo_n "checking
for $ac_word...
" >&6; }
5545 if test "${ac_cv_prog_RANLIB+set}" = set; then
5546 $as_echo_n "(cached
) " >&6
5548 if test -n "$RANLIB"; then
5549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5559 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5568 RANLIB=$ac_cv_prog_RANLIB
5569 if test -n "$RANLIB"; then
5570 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5571 $as_echo "$RANLIB" >&6; }
5573 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5574 $as_echo "no
" >&6; }
5579 if test -z "$ac_cv_prog_RANLIB"; then
5580 ac_ct_RANLIB=$RANLIB
5581 # Extract the first word of "ranlib
", so it can be a program name with args.
5582 set dummy ranlib; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5584 $as_echo_n "checking
for $ac_word...
" >&6; }
5585 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5586 $as_echo_n "(cached
) " >&6
5588 if test -n "$ac_ct_RANLIB"; then
5589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5599 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5609 if test -n "$ac_ct_RANLIB"; then
5610 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5611 $as_echo "$ac_ct_RANLIB" >&6; }
5613 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5614 $as_echo "no
" >&6; }
5617 if test "x
$ac_ct_RANLIB" = x; then
5620 case $cross_compiling:$ac_tool_warned in
5622 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5623 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5624 ac_tool_warned=yes ;;
5626 RANLIB=$ac_ct_RANLIB
5629 RANLIB="$ac_cv_prog_RANLIB"
5632 test -z "$RANLIB" && RANLIB=:
5639 # Determine commands to create old-style static archives.
5640 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5641 old_postinstall_cmds='chmod 644 $oldlib'
5642 old_postuninstall_cmds=
5644 if test -n "$RANLIB"; then
5647 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5650 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5653 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5689 # If no C compiler was specified, use CC.
5692 # If no C compiler flags were specified, use CFLAGS.
5693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5695 # Allow CC to be a program name with arguments.
5699 # Check for command to grab the raw symbol name followed by C symbol from nm.
5700 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5701 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5702 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5703 $as_echo_n "(cached
) " >&6
5706 # These are sane defaults that work on at least a few old systems.
5707 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5709 # Character class describing NM global symbol codes.
5710 symcode='[BCDEGRST]'
5712 # Regexp to match symbols that can be accessed directly from C.
5713 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5715 # Define system-specific variables.
5720 cygwin* | mingw* | pw32* | cegcc*)
5721 symcode='[ABCDGISTW]'
5724 if test "$host_cpu" = ia64; then
5725 symcode='[ABCDEGRST]'
5729 symcode='[BCDEGRST]'
5732 symcode='[BCDEGQRST]'
5743 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5751 # If we're using GNU nm, then use its standard symbol codes.
5752 case `$NM -V 2>&1` in
5753 *GNU* | *'with BFD'*)
5754 symcode='[ABCDGIRSTW]' ;;
5757 # Transform an extracted symbol line into a proper C declaration.
5758 # Some systems (esp. on ia64) link data and code symbols differently,
5759 # so use this general approach.
5760 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5762 # Transform an extracted symbol line into symbol name and symbol address
5763 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5764 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'"
5766 # Handle CRLF in mingw tool chain
5770 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5774 # Try without a prefix underscore, then with it.
5775 for ac_symprfx in "" "_
"; do
5777 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5778 symxfrm="\\1 $ac_symprfx\\2 \\2"
5780 # Write the raw and C identifiers.
5781 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5782 # Fake it for dumpbin and say T for any non-static function
5783 # and D for any global variable.
5784 # Also find C++ and __fastcall symbols from MSVC++,
5785 # which start with @ or ?.
5786 lt_cv_sys_global_symbol_pipe="$AWK '"\
5787 " {last_section=section; section=\$ 3};"\
5788 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5789 " \$ 0!~/External *\|/{next};"\
5790 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5791 " {if(hide[section]) next};"\
5792 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5793 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5794 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5795 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5796 " ' prfx
=^
$ac_symprfx"
5798 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5801 # Check to see that the pipe works correctly.
5805 cat > conftest.$ac_ext <<_LT_EOF
5810 void nm_test_func(void);
5811 void nm_test_func(void){}
5815 int main(){nm_test_var='a';nm_test_func();return(0);}
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>&5
5821 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5822 (exit $ac_status); }; then
5823 # Now try to grab the symbols.
5825 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5826 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5828 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5829 (exit $ac_status); } && test -s "$nlist"; then
5830 # Try sorting and uniquifying the output.
5831 if sort "$nlist" | uniq > "$nlist"T; then
5832 mv -f "$nlist"T "$nlist"
5837 # Make sure that we snagged all the symbols we need.
5838 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5839 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5840 cat <<_LT_EOF > conftest.$ac_ext
5846 # Now generate the symbol file.
5847 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5849 cat <<_LT_EOF >> conftest.$ac_ext
5851 /* The mapping between symbol names and symbols. */
5856 lt__PROGRAM__LTX_preloaded_symbols[] =
5858 { "@PROGRAM@
", (void *) 0 },
5860 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5861 cat <<\_LT_EOF >> conftest.$ac_ext
5865 /* This works around a problem in FreeBSD linker */
5866 #ifdef FREEBSD_WORKAROUND
5867 static const void *lt_preloaded_setup() {
5868 return lt__PROGRAM__LTX_preloaded_symbols;
5876 # Now try linking the two files.
5877 mv conftest.$ac_objext conftstm.$ac_objext
5878 lt_save_LIBS="$LIBS"
5879 lt_save_CFLAGS="$CFLAGS"
5880 LIBS="conftstm.
$ac_objext"
5881 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5883 (eval $ac_link) 2>&5
5885 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5886 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5889 LIBS="$lt_save_LIBS"
5890 CFLAGS="$lt_save_CFLAGS"
5892 echo "cannot
find nm_test_func
in $nlist" >&5
5895 echo "cannot
find nm_test_var
in $nlist" >&5
5898 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5901 echo "$progname: failed program was
:" >&5
5902 cat conftest.$ac_ext >&5
5904 rm -rf conftest* conftst*
5906 # Do not use the global_symbol_pipe unless it works.
5907 if test "$pipe_works" = yes; then
5910 lt_cv_sys_global_symbol_pipe=
5916 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5917 lt_cv_sys_global_symbol_to_cdecl=
5919 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5920 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5921 $as_echo "failed
" >&6; }
5923 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5924 $as_echo "ok
" >&6; }
5949 # Check whether --enable-libtool-lock was given.
5950 if test "${enable_libtool_lock+set}" = set; then
5951 enableval=$enable_libtool_lock;
5954 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5956 # Some flags need to be propagated to the compiler or linker for good
5960 # Find out which ABI we are using.
5961 echo 'int i;' > conftest.$ac_ext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5966 (exit $ac_status); }; then
5967 case `/usr/bin/file conftest.$ac_objext` in
5979 # Find out which ABI we are using.
5980 echo '#line 5980 "configure
"' > conftest.$ac_ext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>&5
5984 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5985 (exit $ac_status); }; then
5986 if test "$lt_cv_prog_gnu_ld" = yes; then
5987 case `/usr/bin/file conftest.$ac_objext` in
5989 LD="${LD-ld} -melf32bsmip"
5992 LD="${LD-ld} -melf32bmipn32"
5995 LD="${LD-ld} -melf64bmip"
5999 case `/usr/bin/file conftest.$ac_objext` in
6015 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6016 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6017 # Find out which ABI we are using.
6018 echo 'int i;' > conftest.$ac_ext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>&5
6022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6023 (exit $ac_status); }; then
6024 case `/usr/bin/file conftest.o` in
6027 x86_64-*kfreebsd*-gnu)
6028 LD="${LD-ld} -m elf_i386_fbsd
"
6031 LD="${LD-ld} -m elf_i386
"
6033 ppc64-*linux*|powerpc64-*linux*)
6034 LD="${LD-ld} -m elf32ppclinux
"
6037 LD="${LD-ld} -m elf_s390
"
6040 LD="${LD-ld} -m elf32_sparc
"
6046 x86_64-*kfreebsd*-gnu)
6047 LD="${LD-ld} -m elf_x86_64_fbsd
"
6050 LD="${LD-ld} -m elf_x86_64
"
6052 ppc*-*linux*|powerpc*-*linux*)
6053 LD="${LD-ld} -m elf64ppc
"
6055 s390*-*linux*|s390*-*tpf*)
6056 LD="${LD-ld} -m elf64_s390
"
6059 LD="${LD-ld} -m elf64_sparc
"
6069 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6070 SAVE_CFLAGS="$CFLAGS"
6071 CFLAGS="$CFLAGS -belf"
6072 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6073 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6074 if test "${lt_cv_cc_needs_belf+set}" = set; then
6075 $as_echo_n "(cached
) " >&6
6078 ac_cpp='$CPP $CPPFLAGS'
6079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6098 rm -f conftest.$ac_objext conftest$ac_exeext
6099 if { (ac_try="$ac_link"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_link") 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest$ac_exeext && {
6116 test "$cross_compiling" = yes ||
6117 $as_test_x conftest$ac_exeext
6119 lt_cv_cc_needs_belf=yes
6121 $as_echo "$as_me: failed program was
:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 lt_cv_cc_needs_belf=no
6127 rm -rf conftest.dSYM
6128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6129 conftest$ac_exeext conftest.$ac_ext
6131 ac_cpp='$CPP $CPPFLAGS'
6132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6138 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6139 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6141 CFLAGS="$SAVE_CFLAGS"
6145 # Find out which ABI we are using.
6146 echo 'int i;' > conftest.$ac_ext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>&5
6150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6151 (exit $ac_status); }; then
6152 case `/usr/bin/file conftest.o` in
6154 case $lt_cv_prog_gnu_ld in
6155 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6157 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6169 need_locks="$enable_libtool_lock"
6173 rhapsody* | darwin*)
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6177 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6178 $as_echo_n "checking
for $ac_word...
" >&6; }
6179 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6180 $as_echo_n "(cached
) " >&6
6182 if test -n "$DSYMUTIL"; then
6183 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6193 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6202 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6203 if test -n "$DSYMUTIL"; then
6204 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6205 $as_echo "$DSYMUTIL" >&6; }
6207 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6208 $as_echo "no
" >&6; }
6213 if test -z "$ac_cv_prog_DSYMUTIL"; then
6214 ac_ct_DSYMUTIL=$DSYMUTIL
6215 # Extract the first word of "dsymutil
", so it can be a program name with args.
6216 set dummy dsymutil; ac_word=$2
6217 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6218 $as_echo_n "checking
for $ac_word...
" >&6; }
6219 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6220 $as_echo_n "(cached
) " >&6
6222 if test -n "$ac_ct_DSYMUTIL"; then
6223 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6233 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6242 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6243 if test -n "$ac_ct_DSYMUTIL"; then
6244 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6245 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6247 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6248 $as_echo "no
" >&6; }
6251 if test "x
$ac_ct_DSYMUTIL" = x; then
6254 case $cross_compiling:$ac_tool_warned in
6256 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6257 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6258 ac_tool_warned=yes ;;
6260 DSYMUTIL=$ac_ct_DSYMUTIL
6263 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6269 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6270 $as_echo_n "checking
for $ac_word...
" >&6; }
6271 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6272 $as_echo_n "(cached
) " >&6
6274 if test -n "$NMEDIT"; then
6275 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6285 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6294 NMEDIT=$ac_cv_prog_NMEDIT
6295 if test -n "$NMEDIT"; then
6296 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6297 $as_echo "$NMEDIT" >&6; }
6299 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6300 $as_echo "no
" >&6; }
6305 if test -z "$ac_cv_prog_NMEDIT"; then
6306 ac_ct_NMEDIT=$NMEDIT
6307 # Extract the first word of "nmedit
", so it can be a program name with args.
6308 set dummy nmedit; ac_word=$2
6309 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6310 $as_echo_n "checking
for $ac_word...
" >&6; }
6311 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6312 $as_echo_n "(cached
) " >&6
6314 if test -n "$ac_ct_NMEDIT"; then
6315 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6325 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6334 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6335 if test -n "$ac_ct_NMEDIT"; then
6336 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6337 $as_echo "$ac_ct_NMEDIT" >&6; }
6339 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6340 $as_echo "no
" >&6; }
6343 if test "x
$ac_ct_NMEDIT" = x; then
6346 case $cross_compiling:$ac_tool_warned in
6348 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6349 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6350 ac_tool_warned=yes ;;
6352 NMEDIT=$ac_ct_NMEDIT
6355 NMEDIT="$ac_cv_prog_NMEDIT"
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6361 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6362 $as_echo_n "checking
for $ac_word...
" >&6; }
6363 if test "${ac_cv_prog_LIPO+set}" = set; then
6364 $as_echo_n "(cached
) " >&6
6366 if test -n "$LIPO"; then
6367 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6377 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6386 LIPO=$ac_cv_prog_LIPO
6387 if test -n "$LIPO"; then
6388 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6389 $as_echo "$LIPO" >&6; }
6391 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6392 $as_echo "no
" >&6; }
6397 if test -z "$ac_cv_prog_LIPO"; then
6399 # Extract the first word of "lipo
", so it can be a program name with args.
6400 set dummy lipo; ac_word=$2
6401 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6402 $as_echo_n "checking
for $ac_word...
" >&6; }
6403 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6404 $as_echo_n "(cached
) " >&6
6406 if test -n "$ac_ct_LIPO"; then
6407 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_ac_ct_LIPO="lipo
"
6417 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6426 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6427 if test -n "$ac_ct_LIPO"; then
6428 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6429 $as_echo "$ac_ct_LIPO" >&6; }
6431 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6432 $as_echo "no
" >&6; }
6435 if test "x
$ac_ct_LIPO" = x; then
6438 case $cross_compiling:$ac_tool_warned in
6440 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6441 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6442 ac_tool_warned=yes ;;
6447 LIPO="$ac_cv_prog_LIPO"
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}otool; ac_word=$2
6453 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6454 $as_echo_n "checking
for $ac_word...
" >&6; }
6455 if test "${ac_cv_prog_OTOOL+set}" = set; then
6456 $as_echo_n "(cached
) " >&6
6458 if test -n "$OTOOL"; then
6459 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6469 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6478 OTOOL=$ac_cv_prog_OTOOL
6479 if test -n "$OTOOL"; then
6480 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6481 $as_echo "$OTOOL" >&6; }
6483 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6484 $as_echo "no
" >&6; }
6489 if test -z "$ac_cv_prog_OTOOL"; then
6491 # Extract the first word of "otool
", so it can be a program name with args.
6492 set dummy otool; ac_word=$2
6493 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6494 $as_echo_n "checking
for $ac_word...
" >&6; }
6495 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6496 $as_echo_n "(cached
) " >&6
6498 if test -n "$ac_ct_OTOOL"; then
6499 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_ac_ct_OTOOL="otool
"
6509 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6518 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6519 if test -n "$ac_ct_OTOOL"; then
6520 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6521 $as_echo "$ac_ct_OTOOL" >&6; }
6523 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6524 $as_echo "no
" >&6; }
6527 if test "x
$ac_ct_OTOOL" = x; then
6530 case $cross_compiling:$ac_tool_warned in
6532 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6533 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6534 ac_tool_warned=yes ;;
6539 OTOOL="$ac_cv_prog_OTOOL"
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6545 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6546 $as_echo_n "checking
for $ac_word...
" >&6; }
6547 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6548 $as_echo_n "(cached
) " >&6
6550 if test -n "$OTOOL64"; then
6551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6561 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6570 OTOOL64=$ac_cv_prog_OTOOL64
6571 if test -n "$OTOOL64"; then
6572 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6573 $as_echo "$OTOOL64" >&6; }
6575 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6576 $as_echo "no
" >&6; }
6581 if test -z "$ac_cv_prog_OTOOL64"; then
6582 ac_ct_OTOOL64=$OTOOL64
6583 # Extract the first word of "otool64
", so it can be a program name with args.
6584 set dummy otool64; ac_word=$2
6585 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6586 $as_echo_n "checking
for $ac_word...
" >&6; }
6587 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6588 $as_echo_n "(cached
) " >&6
6590 if test -n "$ac_ct_OTOOL64"; then
6591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6601 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6610 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6611 if test -n "$ac_ct_OTOOL64"; then
6612 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6613 $as_echo "$ac_ct_OTOOL64" >&6; }
6615 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6616 $as_echo "no
" >&6; }
6619 if test "x
$ac_ct_OTOOL64" = x; then
6622 case $cross_compiling:$ac_tool_warned in
6624 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6625 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6626 ac_tool_warned=yes ;;
6628 OTOOL64=$ac_ct_OTOOL64
6631 OTOOL64="$ac_cv_prog_OTOOL64"
6660 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6661 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6662 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6663 $as_echo_n "(cached
) " >&6
6665 lt_cv_apple_cc_single_mod=no
6666 if test -z "${LT_MULTI_MODULE}"; then
6667 # By default we will add the -single_module flag. You can override
6668 # by either setting the environment variable LT_MULTI_MODULE
6669 # non-empty at configure time, or by adding -multi_module to the
6671 rm -rf libconftest.dylib*
6672 echo "int foo
(void
){return 1;}" > conftest.c
6673 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6674 -dynamiclib -Wl,-single_module conftest.c
" >&5
6675 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6676 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6678 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6679 lt_cv_apple_cc_single_mod=yes
6681 cat conftest.err >&5
6683 rm -rf libconftest.dylib*
6687 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6688 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6689 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6690 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6691 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6692 $as_echo_n "(cached
) " >&6
6694 lt_cv_ld_exported_symbols_list=no
6695 save_LDFLAGS=$LDFLAGS
6696 echo "_main
" > conftest.sym
6697 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6720 $as_echo "$ac_try_echo") >&5
6721 (eval "$ac_link") 2>conftest.er1
6723 grep -v '^ *+' conftest.er1 >conftest.err
6725 cat conftest.err >&5
6726 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest$ac_exeext && {
6731 test "$cross_compiling" = yes ||
6732 $as_test_x conftest$ac_exeext
6734 lt_cv_ld_exported_symbols_list=yes
6736 $as_echo "$as_me: failed program was
:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 lt_cv_ld_exported_symbols_list=no
6742 rm -rf conftest.dSYM
6743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6744 conftest$ac_exeext conftest.$ac_ext
6745 LDFLAGS="$save_LDFLAGS"
6748 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6749 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6751 rhapsody* | darwin1.[012])
6752 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6755 darwin*) # darwin 5.x on
6756 # if running on 10.5 or later, the deployment target defaults
6757 # to the OS version, if on x86, and 10.4, the deployment
6758 # target defaults to 10.4. Don't you love it?
6759 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6760 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6769 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6770 _lt_dar_single_mod='$single_module'
6772 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6773 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6775 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6777 if test "$DSYMUTIL" != ":"; then
6778 _lt_dsymutil='~$DSYMUTIL $lib || :'
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6791 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6792 # On Suns, sometimes $CPP names a directory.
6793 if test -n "$CPP" && test -d "$CPP"; then
6796 if test -z "$CPP"; then
6797 if test "${ac_cv_prog_CPP+set}" = set; then
6798 $as_echo_n "(cached
) " >&6
6800 # Double quotes because CPP needs to be expanded
6801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6804 for ac_c_preproc_warn_flag in '' yes
6806 # Use a header file that comes with gcc, so configuring glibc
6807 # with a fresh cross-compiler works.
6808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809 # <limits.h> exists even on freestanding compilers.
6810 # On the NeXT, cc -E runs the code through the compiler's parser,
6811 # not just through cpp. "Syntax error
" is here to catch this case.
6812 cat >conftest.$ac_ext <<_ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6819 # include <limits.h>
6821 # include <assert.h>
6825 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6838 (exit $ac_status); } >/dev/null && {
6839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6844 $as_echo "$as_me: failed program was
:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 # Broken: fails on valid input.
6851 rm -f conftest.err conftest.$ac_ext
6853 # OK, works on sane cases. Now check whether nonexistent headers
6854 # can be detected and how.
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <ac_nonexistent.h>
6863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6868 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6869 $as_echo "$ac_try_echo") >&5
6870 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6876 (exit $ac_status); } >/dev/null && {
6877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6880 # Broken: success on invalid input.
6883 $as_echo "$as_me: failed program was
:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 # Passes both tests.
6891 rm -f conftest.err conftest.$ac_ext
6894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6895 rm -f conftest.err conftest.$ac_ext
6896 if $ac_preproc_ok; then
6908 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6909 $as_echo "$CPP" >&6; }
6911 for ac_c_preproc_warn_flag in '' yes
6913 # Use a header file that comes with gcc, so configuring glibc
6914 # with a fresh cross-compiler works.
6915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 # <limits.h> exists even on freestanding compilers.
6917 # On the NeXT, cc -E runs the code through the compiler's parser,
6918 # not just through cpp. "Syntax error
" is here to catch this case.
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6926 # include <limits.h>
6928 # include <assert.h>
6932 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6937 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6938 $as_echo "$ac_try_echo") >&5
6939 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6941 grep -v '^ *+' conftest.er1 >conftest.err
6943 cat conftest.err >&5
6944 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6945 (exit $ac_status); } >/dev/null && {
6946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6951 $as_echo "$as_me: failed program was
:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 # Broken: fails on valid input.
6958 rm -f conftest.err conftest.$ac_ext
6960 # OK, works on sane cases. Now check whether nonexistent headers
6961 # can be detected and how.
6962 cat >conftest.$ac_ext <<_ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <ac_nonexistent.h>
6970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6975 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6976 $as_echo "$ac_try_echo") >&5
6977 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6983 (exit $ac_status); } >/dev/null && {
6984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6987 # Broken: success on invalid input.
6990 $as_echo "$as_me: failed program was
:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 # Passes both tests.
6998 rm -f conftest.err conftest.$ac_ext
7001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7002 rm -f conftest.err conftest.$ac_ext
7003 if $ac_preproc_ok; then
7006 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7008 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7009 See \`config.log' for more details.
" >&5
7010 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7011 See \
`config.log' for more details." >&2;}
7012 { (exit 1); exit 1; }; }; }
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7023 $as_echo_n "checking for ANSI C header files... " >&6; }
7024 if test "${ac_cv_header_stdc+set}" = set; then
7025 $as_echo_n "(cached) " >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7050 *) ac_try_echo
=$ac_try;;
7052 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7056 grep -v '^ *+' conftest.er1
>conftest.err
7058 cat conftest.err
>&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.
$ac_objext; then
7064 ac_cv_header_stdc
=yes
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.
$ac_ext >&5
7069 ac_cv_header_stdc
=no
7072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7074 if test $ac_cv_header_stdc = yes; then
7075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7076 cat >conftest.
$ac_ext <<_ACEOF
7079 cat confdefs.h
>>conftest.
$ac_ext
7080 cat >>conftest.
$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086 $EGREP "memchr" >/dev
/null
2>&1; then
7089 ac_cv_header_stdc
=no
7095 if test $ac_cv_header_stdc = yes; then
7096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7097 cat >conftest.
$ac_ext <<_ACEOF
7100 cat confdefs.h
>>conftest.
$ac_ext
7101 cat >>conftest.
$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 $EGREP "free" >/dev
/null
2>&1; then
7110 ac_cv_header_stdc
=no
7116 if test $ac_cv_header_stdc = yes; then
7117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7118 if test "$cross_compiling" = yes; then
7121 cat >conftest.
$ac_ext <<_ACEOF
7124 cat confdefs.h
>>conftest.
$ac_ext
7125 cat >>conftest.
$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7129 #if ((' ' & 0x0FF) == 0x020)
7130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7133 # define ISLOWER(c) \
7134 (('a' <= (c) && (c) <= 'i') \
7135 || ('j' <= (c) && (c) <= 'r') \
7136 || ('s' <= (c) && (c) <= 'z'))
7137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7145 for (i = 0; i < 256; i++)
7146 if (XOR (islower (i), ISLOWER (i))
7147 || toupper (i) != TOUPPER (i))
7152 rm -f conftest
$ac_exeext
7153 if { (ac_try
="$ac_link"
7155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7159 $as_echo "$ac_try_echo") >&5
7160 (eval "$ac_link") 2>&5
7162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7164 { (case "(($ac_try" in
7165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7166 *) ac_try_echo
=$ac_try;;
7168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7169 $as_echo "$ac_try_echo") >&5
7170 (eval "$ac_try") 2>&5
7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7176 $as_echo "$as_me: program exited with status $ac_status" >&5
7177 $as_echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.
$ac_ext >&5
7181 ac_cv_header_stdc
=no
7183 rm -rf conftest.dSYM
7184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7191 $as_echo "$ac_cv_header_stdc" >&6; }
7192 if test $ac_cv_header_stdc = yes; then
7194 cat >>confdefs.h
<<\_ACEOF
7195 #define STDC_HEADERS 1
7200 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7210 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7211 inttypes.h stdint.h unistd.h
7213 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 $as_echo_n "checking for $ac_header... " >&6; }
7216 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7217 $as_echo_n "(cached) " >&6
7219 cat >conftest.
$ac_ext <<_ACEOF
7222 cat confdefs.h
>>conftest.
$ac_ext
7223 cat >>conftest.
$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 $ac_includes_default
7227 #include <$ac_header>
7229 rm -f conftest.
$ac_objext
7230 if { (ac_try
="$ac_compile"
7232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 eval "$as_ac_Header=yes"
7249 $as_echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 eval "$as_ac_Header=no"
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 ac_res=`eval 'as_val=${'$as_ac_Header'}
7258 $as_echo "$as_val"'`
7259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 as_val=`eval 'as_val=${'$as_ac_Header'}
7262 $as_echo "$as_val"'`
7263 if test "x$as_val" = x""yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7274 for ac_header in dlfcn.h
7276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7278 $as_echo_n "checking for $ac_header... " >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 $as_echo_n "(cached) " >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7290 #include <$ac_header>
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7296 *) ac_try_echo
=$ac_try;;
7298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7299 $as_echo "$ac_try_echo") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1
>conftest.err
7304 cat conftest.err
>&5
7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.
$ac_objext; then
7310 eval "$as_ac_Header=yes"
7312 $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.
$ac_ext >&5
7315 eval "$as_ac_Header=no"
7318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7320 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7321 $as_echo "$as_val"'`
7322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7323 $as_echo "$ac_res" >&6; }
7324 as_val
=`eval 'as_val=${'$as_ac_Header'}
7325 $as_echo "$as_val"'`
7326 if test "x$as_val" = x
""yes; then
7327 cat >>confdefs.h
<<_ACEOF
7328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7347 # Check whether --enable-shared was given.
7348 if test "${enable_shared+set}" = set; then
7349 enableval
=$enable_shared; p
=${PACKAGE-default}
7351 yes) enable_shared
=yes ;;
7352 no
) enable_shared
=no
;;
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7357 for pkg
in $enableval; do
7359 if test "X$pkg" = "X$p"; then
7378 # Check whether --enable-static was given.
7379 if test "${enable_static+set}" = set; then
7380 enableval
=$enable_static; p
=${PACKAGE-default}
7382 yes) enable_static
=yes ;;
7383 no
) enable_static
=no
;;
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7388 for pkg
in $enableval; do
7390 if test "X$pkg" = "X$p"; then
7410 # Check whether --with-pic was given.
7411 if test "${with_pic+set}" = set; then
7412 withval
=$with_pic; pic_mode
="$withval"
7418 test -z "$pic_mode" && pic_mode
=default
7426 # Check whether --enable-fast-install was given.
7427 if test "${enable_fast_install+set}" = set; then
7428 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7430 yes) enable_fast_install
=yes ;;
7431 no
) enable_fast_install
=no
;;
7433 enable_fast_install
=no
7434 # Look at the argument we got. We use all the common list separators.
7435 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7436 for pkg
in $enableval; do
7438 if test "X$pkg" = "X$p"; then
7439 enable_fast_install
=yes
7446 enable_fast_install
=yes
7459 # This can be used to rebuild libtool when needed
7460 LIBTOOL_DEPS
="$ltmain"
7462 # Always use our own libtool.
7463 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7489 test -z "$LN_S" && LN_S
="ln -s"
7504 if test -n "${ZSH_VERSION+set}" ; then
7505 setopt NO_GLOB_SUBST
7508 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7509 $as_echo_n "checking for objdir... " >&6; }
7510 if test "${lt_cv_objdir+set}" = set; then
7511 $as_echo_n "(cached) " >&6
7513 rm -f .libs
2>/dev
/null
7514 mkdir .libs
2>/dev
/null
7515 if test -d .libs
; then
7518 # MS-DOS does not allow filenames that begin with a dot.
7521 rmdir .libs
2>/dev
/null
7523 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7524 $as_echo "$lt_cv_objdir" >&6; }
7525 objdir
=$lt_cv_objdir
7531 cat >>confdefs.h
<<_ACEOF
7532 #define LT_OBJDIR "$lt_cv_objdir/"
7553 # AIX sometimes has problems with the GCC collect2 program. For some
7554 # reason, if we set the COLLECT_NAMES environment variable, the problems
7555 # vanish in a puff of smoke.
7556 if test "X${COLLECT_NAMES+set}" != Xset
; then
7558 export COLLECT_NAMES
7563 # Sed substitution that helps us do robust quoting. It backslashifies
7564 # metacharacters that are still active within double-quoted strings.
7565 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7567 # Same as above, but do not quote variable references.
7568 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7570 # Sed substitution to delay expansion of an escaped shell variable in a
7571 # double_quote_subst'ed string.
7572 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7574 # Sed substitution to delay expansion of an escaped single quote.
7575 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7577 # Sed substitution to avoid accidental globbing in evaled expressions
7578 no_glob_subst
='s/\*/\\\*/g'
7582 can_build_shared
=yes
7584 # All known linkers require a `.a' archive for static linking (except MSVC,
7585 # which needs '.lib').
7588 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7591 old_CFLAGS
="$CFLAGS"
7593 # Set sane defaults for various variables
7594 test -z "$CC" && CC
=cc
7595 test -z "$LTCC" && LTCC
=$CC
7596 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7597 test -z "$LD" && LD
=ld
7598 test -z "$ac_objext" && ac_objext
=o
7600 for cc_temp
in $compiler""; do
7602 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7603 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7608 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7611 # Only perform the check for file, if the check method requires it
7612 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7613 case $deplibs_check_method in
7615 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7616 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7617 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7618 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7619 $as_echo_n "(cached) " >&6
7623 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7626 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7627 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7628 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7629 for ac_dir
in $ac_dummy; do
7631 test -z "$ac_dir" && ac_dir
=.
7632 if test -f $ac_dir/${ac_tool_prefix}file; then
7633 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7634 if test -n "$file_magic_test_file"; then
7635 case $deplibs_check_method in
7637 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7638 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7639 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7640 $EGREP "$file_magic_regex" > /dev
/null
; then
7645 *** Warning: the command libtool uses to detect shared libraries,
7646 *** $file_magic_cmd, produces output that libtool cannot recognize.
7647 *** The result is that libtool may fail to recognize shared libraries
7648 *** as such. This will affect the creation of libtool libraries that
7649 *** depend on shared libraries, but programs linked with such libtool
7650 *** libraries will work regardless of this problem. Nevertheless, you
7651 *** may want to report the problem to your system manager and/or to
7652 *** bug-libtool@gnu.org
7662 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7667 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7668 if test -n "$MAGIC_CMD"; then
7669 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7670 $as_echo "$MAGIC_CMD" >&6; }
7672 { $as_echo "$as_me:$LINENO: result: no" >&5
7673 $as_echo "no" >&6; }
7680 if test -z "$lt_cv_path_MAGIC_CMD"; then
7681 if test -n "$ac_tool_prefix"; then
7682 { $as_echo "$as_me:$LINENO: checking for file" >&5
7683 $as_echo_n "checking for file... " >&6; }
7684 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7685 $as_echo_n "(cached) " >&6
7689 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7692 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7693 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7694 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7695 for ac_dir
in $ac_dummy; do
7697 test -z "$ac_dir" && ac_dir
=.
7698 if test -f $ac_dir/file; then
7699 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7700 if test -n "$file_magic_test_file"; then
7701 case $deplibs_check_method in
7703 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7704 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7705 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7706 $EGREP "$file_magic_regex" > /dev
/null
; then
7711 *** Warning: the command libtool uses to detect shared libraries,
7712 *** $file_magic_cmd, produces output that libtool cannot recognize.
7713 *** The result is that libtool may fail to recognize shared libraries
7714 *** as such. This will affect the creation of libtool libraries that
7715 *** depend on shared libraries, but programs linked with such libtool
7716 *** libraries will work regardless of this problem. Nevertheless, you
7717 *** may want to report the problem to your system manager and/or to
7718 *** bug-libtool@gnu.org
7728 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7733 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7734 if test -n "$MAGIC_CMD"; then
7735 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7736 $as_echo "$MAGIC_CMD" >&6; }
7738 { $as_echo "$as_me:$LINENO: result: no" >&5
7739 $as_echo "no" >&6; }
7752 # Use C for the default configuration in the libtool script
7756 ac_cpp
='$CPP $CPPFLAGS'
7757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7762 # Source file extension for C test sources.
7765 # Object file extension for compiled C test sources.
7769 # Code to be used in simple compile tests
7770 lt_simple_compile_test_code
="int some_variable = 0;"
7772 # Code to be used in simple link tests
7773 lt_simple_link_test_code
='int main(){return(0);}'
7781 # If no C compiler was specified, use CC.
7784 # If no C compiler flags were specified, use CFLAGS.
7785 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7787 # Allow CC to be a program name with arguments.
7790 # Save the default compiler, since it gets overwritten when the other
7791 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7792 compiler_DEFAULT
=$CC
7794 # save warnings/boilerplate of simple test code
7795 ac_outfile
=conftest.
$ac_objext
7796 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7797 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7798 _lt_compiler_boilerplate
=`cat conftest.err`
7801 ac_outfile
=conftest.
$ac_objext
7802 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7803 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7804 _lt_linker_boilerplate
=`cat conftest.err`
7809 ## There is no encapsulation within the following macros, do not change
7810 ## the running order or otherwise move them around unless you know exactly
7811 ## what you are doing...
7812 if test -n "$compiler"; then
7814 lt_prog_compiler_no_builtin_flag
=
7816 if test "$GCC" = yes; then
7817 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7819 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7820 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7821 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7822 $as_echo_n "(cached) " >&6
7824 lt_cv_prog_compiler_rtti_exceptions
=no
7825 ac_outfile
=conftest.
$ac_objext
7826 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7827 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7828 # Insert the option either (1) after the last *FLAGS variable, or
7829 # (2) before a word containing "conftest.", or (3) at the end.
7830 # Note that $ac_compile itself does not contain backslashes and begins
7831 # with a dollar sign (not a hyphen), so the echo should work correctly.
7832 # The option is referenced via a variable to avoid confusing sed.
7833 lt_compile
=`echo "$ac_compile" | $SED \
7834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7836 -e 's:$: $lt_compiler_flag:'`
7837 (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7838 (eval "$lt_compile" 2>conftest.err
)
7840 cat conftest.err
>&5
7841 echo "$as_me:7841: \$? = $ac_status" >&5
7842 if (exit $ac_status) && test -s "$ac_outfile"; then
7843 # The compiler can only warn and ignore the option if not recognized
7844 # So say no if there are warnings other than the usual output.
7845 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7846 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7847 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7848 lt_cv_prog_compiler_rtti_exceptions
=yes
7854 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7855 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7857 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7858 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7870 lt_prog_compiler_wl
=
7871 lt_prog_compiler_pic
=
7872 lt_prog_compiler_static
=
7874 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7875 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7877 if test "$GCC" = yes; then
7878 lt_prog_compiler_wl
='-Wl,'
7879 lt_prog_compiler_static
='-static'
7883 # All AIX code is PIC.
7884 if test "$host_cpu" = ia64
; then
7885 # AIX 5 now supports IA64 processor
7886 lt_prog_compiler_static
='-Bstatic'
7893 # see comment about AmigaOS4 .so support
7894 lt_prog_compiler_pic
='-fPIC'
7897 # FIXME: we need at least 68020 code to build shared libraries, but
7898 # adding the `-m68020' flag to GCC prevents building anything better,
7900 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7905 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7906 # PIC is the default for these OSes.
7909 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7910 # This hack is so that the source file can tell whether it is being
7911 # built for inclusion in a dll (and should export symbols for example).
7912 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7913 # (--disable-auto-import) libraries
7914 lt_prog_compiler_pic
='-DDLL_EXPORT'
7917 darwin
* | rhapsody
*)
7918 # PIC is the default on this platform
7919 # Common symbols not allowed in MH_DYLIB files
7920 lt_prog_compiler_pic
='-fno-common'
7924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7926 # sets the default TLS model and affects inlining.
7932 lt_prog_compiler_pic
='-fPIC'
7938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7939 # Instead, we relocate shared libraries at runtime.
7943 # Just because we use GCC doesn't mean we suddenly get shared libraries
7944 # on systems that don't support them.
7945 lt_prog_compiler_can_build_shared
=no
7950 # QNX uses GNU C++, but need to define -shared option too, otherwise
7952 lt_prog_compiler_pic
='-fPIC -shared'
7956 if test -d /usr
/nec
; then
7957 lt_prog_compiler_pic
=-Kconform_pic
7962 lt_prog_compiler_pic
='-fPIC'
7966 # PORTME Check for flag to pass linker flags through the system compiler.
7969 lt_prog_compiler_wl
='-Wl,'
7970 if test "$host_cpu" = ia64
; then
7971 # AIX 5 now supports IA64 processor
7972 lt_prog_compiler_static
='-Bstatic'
7974 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7978 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7979 # This hack is so that the source file can tell whether it is being
7980 # built for inclusion in a dll (and should export symbols for example).
7981 lt_prog_compiler_pic
='-DDLL_EXPORT'
7984 hpux9
* | hpux10
* | hpux11
*)
7985 lt_prog_compiler_wl
='-Wl,'
7986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7993 lt_prog_compiler_pic
='+Z'
7996 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7997 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8000 irix5
* | irix6
* | nonstopux
*)
8001 lt_prog_compiler_wl
='-Wl,'
8002 # PIC (with -KPIC) is the default.
8003 lt_prog_compiler_static
='-non_shared'
8006 linux
* | k
*bsd
*-gnu)
8007 case $cc_basename in
8008 # old Intel for x86_64 which still supported -KPIC.
8010 lt_prog_compiler_wl
='-Wl,'
8011 lt_prog_compiler_pic
='-KPIC'
8012 lt_prog_compiler_static
='-static'
8014 # icc used to be incompatible with GCC.
8015 # ICC 10 doesn't accept -KPIC any more.
8017 lt_prog_compiler_wl
='-Wl,'
8018 lt_prog_compiler_pic
='-fPIC'
8019 lt_prog_compiler_static
='-static'
8021 # Lahey Fortran 8.1.
8023 lt_prog_compiler_wl
='-Wl,'
8024 lt_prog_compiler_pic
='--shared'
8025 lt_prog_compiler_static
='--static'
8027 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8028 # Portland Group compilers (*not* the Pentium gcc compiler,
8029 # which looks to be a dead project)
8030 lt_prog_compiler_wl
='-Wl,'
8031 lt_prog_compiler_pic
='-fpic'
8032 lt_prog_compiler_static
='-Bstatic'
8035 lt_prog_compiler_wl
='-Wl,'
8036 # All Alpha code is PIC.
8037 lt_prog_compiler_static
='-non_shared'
8040 # IBM XL C 8.0/Fortran 10.1 on PPC
8041 lt_prog_compiler_wl
='-Wl,'
8042 lt_prog_compiler_pic
='-qpic'
8043 lt_prog_compiler_static
='-qstaticlink'
8046 case `$CC -V 2>&1 | sed 5q` in
8049 lt_prog_compiler_pic
='-KPIC'
8050 lt_prog_compiler_static
='-Bstatic'
8051 lt_prog_compiler_wl
='-Wl,'
8054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8055 lt_prog_compiler_pic
='-KPIC'
8056 lt_prog_compiler_static
='-Bstatic'
8057 lt_prog_compiler_wl
=''
8065 lt_prog_compiler_pic
='-KPIC'
8066 lt_prog_compiler_static
='-Bstatic'
8070 # QNX uses GNU C++, but need to define -shared option too, otherwise
8072 lt_prog_compiler_pic
='-fPIC -shared'
8075 osf3
* | osf4
* | osf5
*)
8076 lt_prog_compiler_wl
='-Wl,'
8077 # All OSF/1 code is PIC.
8078 lt_prog_compiler_static
='-non_shared'
8082 lt_prog_compiler_static
='-non_shared'
8086 lt_prog_compiler_pic
='-KPIC'
8087 lt_prog_compiler_static
='-Bstatic'
8088 case $cc_basename in
8090 lt_prog_compiler_wl
='-Qoption ld ';;
8092 lt_prog_compiler_wl
='-Wl,';;
8097 lt_prog_compiler_wl
='-Qoption ld '
8098 lt_prog_compiler_pic
='-PIC'
8099 lt_prog_compiler_static
='-Bstatic'
8102 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8103 lt_prog_compiler_wl
='-Wl,'
8104 lt_prog_compiler_pic
='-KPIC'
8105 lt_prog_compiler_static
='-Bstatic'
8109 if test -d /usr
/nec
;then
8110 lt_prog_compiler_pic
='-Kconform_pic'
8111 lt_prog_compiler_static
='-Bstatic'
8115 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8116 lt_prog_compiler_wl
='-Wl,'
8117 lt_prog_compiler_pic
='-KPIC'
8118 lt_prog_compiler_static
='-Bstatic'
8122 lt_prog_compiler_wl
='-Wl,'
8123 lt_prog_compiler_can_build_shared
=no
8127 lt_prog_compiler_pic
='-pic'
8128 lt_prog_compiler_static
='-Bstatic'
8132 lt_prog_compiler_can_build_shared
=no
8138 # For platforms which do not support PIC, -DPIC is meaningless:
8140 lt_prog_compiler_pic
=
8143 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8146 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8147 $as_echo "$lt_prog_compiler_pic" >&6; }
8155 # Check to make sure the PIC flag actually works.
8157 if test -n "$lt_prog_compiler_pic"; then
8158 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8159 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8160 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8161 $as_echo_n "(cached) " >&6
8163 lt_cv_prog_compiler_pic_works
=no
8164 ac_outfile
=conftest.
$ac_objext
8165 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8166 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8167 # Insert the option either (1) after the last *FLAGS variable, or
8168 # (2) before a word containing "conftest.", or (3) at the end.
8169 # Note that $ac_compile itself does not contain backslashes and begins
8170 # with a dollar sign (not a hyphen), so the echo should work correctly.
8171 # The option is referenced via a variable to avoid confusing sed.
8172 lt_compile
=`echo "$ac_compile" | $SED \
8173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8175 -e 's:$: $lt_compiler_flag:'`
8176 (eval echo "\"\$as_me:8176: $lt_compile\"" >&5)
8177 (eval "$lt_compile" 2>conftest.err
)
8179 cat conftest.err
>&5
8180 echo "$as_me:8180: \$? = $ac_status" >&5
8181 if (exit $ac_status) && test -s "$ac_outfile"; then
8182 # The compiler can only warn and ignore the option if not recognized
8183 # So say no if there are warnings other than the usual output.
8184 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8185 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8186 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8187 lt_cv_prog_compiler_pic_works
=yes
8193 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8194 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8196 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8197 case $lt_prog_compiler_pic in
8199 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8202 lt_prog_compiler_pic
=
8203 lt_prog_compiler_can_build_shared
=no
8214 # Check to make sure the static flag actually works.
8216 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8217 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8219 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8220 $as_echo_n "(cached) " >&6
8222 lt_cv_prog_compiler_static_works
=no
8223 save_LDFLAGS
="$LDFLAGS"
8224 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8225 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8226 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8227 # The linker can only warn and ignore the option if not recognized
8228 # So say no if there are warnings
8229 if test -s conftest.err
; then
8230 # Append any errors to the config.log.
8231 cat conftest.err
1>&5
8232 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8233 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8234 if diff conftest.exp conftest.er2
>/dev
/null
; then
8235 lt_cv_prog_compiler_static_works
=yes
8238 lt_cv_prog_compiler_static_works
=yes
8242 LDFLAGS
="$save_LDFLAGS"
8245 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8246 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8248 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8251 lt_prog_compiler_static
=
8260 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8262 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8265 lt_cv_prog_compiler_c_o
=no
8266 $RM -r conftest
2>/dev
/null
8270 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8272 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile
=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>out
/conftest.err
)
8284 cat out
/conftest.err
>&5
8285 echo "$as_me:8285: \$? = $ac_status" >&5
8286 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8291 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8292 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8293 lt_cv_prog_compiler_c_o
=yes
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8301 $RM out
/* && rmdir out
8307 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8315 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8316 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8317 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8318 $as_echo_n "(cached) " >&6
8320 lt_cv_prog_compiler_c_o
=no
8321 $RM -r conftest
2>/dev
/null
8325 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8327 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8328 # Insert the option either (1) after the last *FLAGS variable, or
8329 # (2) before a word containing "conftest.", or (3) at the end.
8330 # Note that $ac_compile itself does not contain backslashes and begins
8331 # with a dollar sign (not a hyphen), so the echo should work correctly.
8332 lt_compile
=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
8336 (eval echo "\"\$as_me:8336: $lt_compile\"" >&5)
8337 (eval "$lt_compile" 2>out
/conftest.err
)
8339 cat out
/conftest.err
>&5
8340 echo "$as_me:8340: \$? = $ac_status" >&5
8341 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8343 # The compiler can only warn and ignore the option if not recognized
8344 # So say no if there are warnings
8345 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8346 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8347 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8348 lt_cv_prog_compiler_c_o
=yes
8353 # SGI C++ compiler will create directory out/ii_files/ for
8354 # template instantiation
8355 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8356 $RM out
/* && rmdir out
8362 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8363 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8368 hard_links
="nottested"
8369 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8370 # do not overwrite the value of need_locks provided by the user
8371 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8372 $as_echo_n "checking if we can lock with hard links... " >&6; }
8375 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8377 ln conftest.a conftest.b
2>&5 || hard_links
=no
8378 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8379 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8380 $as_echo "$hard_links" >&6; }
8381 if test "$hard_links" = no
; then
8382 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8383 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8395 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8396 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8399 allow_undefined_flag
=
8400 always_export_symbols
=no
8402 archive_expsym_cmds
=
8403 compiler_needs_object
=no
8404 enable_shared_with_static_runtimes
=no
8405 export_dynamic_flag_spec
=
8406 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8407 hardcode_automatic
=no
8409 hardcode_direct_absolute
=no
8410 hardcode_libdir_flag_spec
=
8411 hardcode_libdir_flag_spec_ld
=
8412 hardcode_libdir_separator
=
8414 hardcode_shlibpath_var
=unsupported
8416 link_all_deplibs
=unknown
8419 old_archive_from_new_cmds
=
8420 old_archive_from_expsyms_cmds
=
8421 thread_safe_flag_spec
=
8422 whole_archive_flag_spec
=
8423 # include_expsyms should be a list of space-separated symbols to be *always*
8424 # included in the symbol list
8426 # exclude_expsyms can be an extended regexp of symbols to exclude
8427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8429 # as well as any symbol that contains `d'.
8430 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8432 # platforms (ab)use it in PIC code, but their linkers get confused if
8433 # the symbol is explicitly referenced. Since portable code cannot
8434 # rely on this symbol name, it's probably fine to never include it in
8435 # preloaded symbol tables.
8436 # Exclude shared library initialization/finalization symbols.
8437 extract_expsyms_cmds
=
8440 cygwin
* | mingw
* | pw32
* | cegcc
*)
8441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8442 # When not using gcc, we currently assume that we are using
8443 # Microsoft Visual C++.
8444 if test "$GCC" != yes; then
8449 # we just hope/assume this is gcc and not c89 (= MSVC++)
8458 if test "$with_gnu_ld" = yes; then
8459 # If archive_cmds runs LD, not CC, wlarc should be empty
8462 # Set some defaults for GNU ld with shared library support. These
8463 # are reset later if shared libraries are not supported. Putting them
8464 # here allows them to be overridden if necessary.
8465 runpath_var
=LD_RUN_PATH
8466 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8467 export_dynamic_flag_spec
='${wl}--export-dynamic'
8468 # ancient GNU ld didn't support --whole-archive et. al.
8469 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8470 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8472 whole_archive_flag_spec
=
8474 supports_anon_versioning
=no
8475 case `$LD -v 2>&1` in
8476 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8477 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8478 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8479 *\
2.11.
*) ;; # other 2.11 versions
8480 *) supports_anon_versioning
=yes ;;
8483 # See if GNU ld supports shared libraries.
8486 # On AIX/PPC, the GNU linker is very broken
8487 if test "$host_cpu" != ia64
; then
8491 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8492 *** to be unable to reliably create shared libraries on AIX.
8493 *** Therefore, libtool is disabling shared libraries support. If you
8494 *** really care for shared libraries, you may want to modify your PATH
8495 *** so that a non-GNU linker is found, and then restart.
8504 # see comment about AmigaOS4 .so support
8505 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8506 archive_expsym_cmds
=''
8509 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)'
8510 hardcode_libdir_flag_spec
='-L$libdir'
8511 hardcode_minus_L
=yes
8517 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8518 allow_undefined_flag
=unsupported
8519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8520 # support --undefined. This deserves some investigation. FIXME
8521 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527 cygwin
* | mingw
* | pw32
* | cegcc
*)
8528 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8529 # as there is no search path for DLLs.
8530 hardcode_libdir_flag_spec
='-L$libdir'
8531 allow_undefined_flag
=unsupported
8532 always_export_symbols
=no
8533 enable_shared_with_static_runtimes
=yes
8534 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8536 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8537 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538 # If the export-symbols file already is a .def file (1st line
8539 # is EXPORTS), use it as is; otherwise, prepend...
8540 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8541 cp $export_symbols $output_objdir/$soname.def;
8543 echo EXPORTS > $output_objdir/$soname.def;
8544 cat $export_symbols >> $output_objdir/$soname.def;
8546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8554 hardcode_shlibpath_var
=no
8555 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8556 export_dynamic_flag_spec
='${wl}-E'
8557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8558 # Instead, shared libraries are loaded at an image base (0x10000000 by
8559 # default) and relocated if they conflict, which is a slow very memory
8560 # consuming and fragmenting process. To avoid this, we pick a random,
8561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8563 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8564 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'
8567 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8569 if test "$host_os" = linux-dietlibc
; then
8570 case $cc_basename in
8571 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8574 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8575 && test "$tmp_diet" = no
8578 tmp_sharedflag
='-shared'
8579 case $cc_basename,$host_cpu in
8580 pgcc
*) # Portland Group C compiler
8581 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'
8582 tmp_addflag
=' $pic_flag'
8584 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8585 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'
8586 tmp_addflag
=' $pic_flag -Mnomain' ;;
8587 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8588 tmp_addflag
=' -i_dynamic' ;;
8589 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8590 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8591 ifc
* | ifort
*) # Intel Fortran compiler
8592 tmp_addflag
=' -nofor_main' ;;
8593 lf95
*) # Lahey Fortran 8.1
8594 whole_archive_flag_spec
=
8595 tmp_sharedflag
='--shared' ;;
8596 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8597 tmp_sharedflag
='-qmkshrobj'
8600 case `$CC -V 2>&1 | sed 5q` in
8601 *Sun\ C
*) # Sun C 5.9
8602 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'
8603 compiler_needs_object
=yes
8604 tmp_sharedflag
='-G' ;;
8605 *Sun\ F
*) # Sun Fortran 8.3
8606 tmp_sharedflag
='-G' ;;
8608 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610 if test "x$supports_anon_versioning" = xyes
; then
8611 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8613 echo "local: *; };" >> $output_objdir/$libname.ver~
8614 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8617 case $cc_basename in
8619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8620 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8621 hardcode_libdir_flag_spec
=
8622 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8623 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8624 if test "x$supports_anon_versioning" = xyes
; then
8625 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8638 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8639 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8642 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8648 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8653 *** create shared libraries on Solaris systems. Therefore, libtool
8654 *** is disabling shared libraries support. We urge you to upgrade GNU
8655 *** binutils to release 2.9.1 or newer. Another option is to modify
8656 *** your PATH or compiler configuration so that the native linker is
8657 *** used, and then restart.
8660 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8669 case `$LD -v 2>&1` in
8670 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8675 *** reliably create shared libraries on SCO systems. Therefore, libtool
8676 *** is disabling shared libraries support. We urge you to upgrade GNU
8677 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8678 *** your PATH or compiler configuration so that the native linker is
8679 *** used, and then restart.
8684 # For security reasons, it is highly recommended that you always
8685 # use absolute paths for naming shared libraries, and exclude the
8686 # DT_RUNPATH tag from executables and libraries. But doing so
8687 # requires that you compile everything twice, which is a pain.
8688 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8689 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8690 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_shlibpath_var
=no
8707 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8708 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716 if test "$ld_shlibs" = no
; then
8718 hardcode_libdir_flag_spec
=
8719 export_dynamic_flag_spec
=
8720 whole_archive_flag_spec
=
8723 # PORTME fill in a description of your system's linker (not GNU ld)
8726 allow_undefined_flag
=unsupported
8727 always_export_symbols
=yes
8728 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'
8729 # Note: this linker hardcodes the directories in LIBPATH if there
8730 # are no directories specified by -L.
8731 hardcode_minus_L
=yes
8732 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8733 # Neither direct hardcoding nor static linking is supported with a
8735 hardcode_direct
=unsupported
8740 if test "$host_cpu" = ia64
; then
8741 # On IA64, the linker does run time linking by default, so we don't
8742 # have to do anything special.
8743 aix_use_runtimelinking
=no
8744 exp_sym_flag
='-Bexport'
8747 # If we're using GNU nm, then we don't want the "-C" option.
8748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8749 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8750 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'
8752 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'
8754 aix_use_runtimelinking
=no
8756 # Test if we are trying to use run time linking or normal
8757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8758 # need to do runtime linking.
8759 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8760 for ld_flag
in $LDFLAGS; do
8761 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8762 aix_use_runtimelinking
=yes
8769 exp_sym_flag
='-bexport'
8770 no_entry_flag
='-bnoentry'
8773 # When large executables or shared objects are built, AIX ld can
8774 # have problems creating the table of contents. If linking a library
8775 # or program results in "error TOC overflow" add -mminimal-toc to
8776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8781 hardcode_direct_absolute
=yes
8782 hardcode_libdir_separator
=':'
8783 link_all_deplibs
=yes
8784 file_list_spec
='${wl}-f,'
8786 if test "$GCC" = yes; then
8787 case $host_os in aix4.
[012]|aix4.
[012].
*)
8788 # We only want to do this on AIX 4.2 and lower, the check
8789 # below for broken collect2 doesn't work under 4.3+
8790 collect2name
=`${CC} -print-prog-name=collect2`
8791 if test -f "$collect2name" &&
8792 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8794 # We have reworked collect2
8797 # We have old collect2
8798 hardcode_direct
=unsupported
8799 # It fails to find uninstalled libraries when the uninstalled
8800 # path is not listed in the libpath. Setting hardcode_minus_L
8801 # to unsupported forces relinking
8802 hardcode_minus_L
=yes
8803 hardcode_libdir_flag_spec
='-L$libdir'
8804 hardcode_libdir_separator
=
8808 shared_flag
='-shared'
8809 if test "$aix_use_runtimelinking" = yes; then
8810 shared_flag
="$shared_flag "'${wl}-G'
8814 if test "$host_cpu" = ia64
; then
8815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8816 # chokes on -Wl,-G. The following line is correct:
8819 if test "$aix_use_runtimelinking" = yes; then
8820 shared_flag
='${wl}-G'
8822 shared_flag
='${wl}-bM:SRE'
8827 export_dynamic_flag_spec
='${wl}-bexpall'
8828 # It seems that -bexpall does not export symbols beginning with
8829 # underscore (_), so it is better to generate a list of symbols to export.
8830 always_export_symbols
=yes
8831 if test "$aix_use_runtimelinking" = yes; then
8832 # Warning - without using the other runtime loading flags (-brtl),
8833 # -berok will link without error, but may produce a broken library.
8834 allow_undefined_flag
='-berok'
8835 # Determine the default libpath from the value encoded in an
8837 cat >conftest.
$ac_ext <<_ACEOF
8840 cat confdefs.h
>>conftest.
$ac_ext
8841 cat >>conftest.
$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8852 rm -f conftest.
$ac_objext conftest
$ac_exeext
8853 if { (ac_try
="$ac_link"
8855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8859 $as_echo "$ac_try_echo") >&5
8860 (eval "$ac_link") 2>conftest.er1
8862 grep -v '^ *+' conftest.er1 >conftest.err
8864 cat conftest.err >&5
8865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest$ac_exeext && {
8870 test "$cross_compiling" = yes ||
8871 $as_test_x conftest$ac_exeext
8874 lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8881 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8882 # Check for a 64-bit object if we didn't find anything.
8883 if test -z "$aix_libpath"; then
8884 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8887 $as_echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8893 rm -rf conftest.dSYM
8894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8895 conftest$ac_exeext conftest.$ac_ext
8896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8898 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8899 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"
8901 if test "$host_cpu" = ia64; then
8902 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8903 allow_undefined_flag="-z nodefs"
8904 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"
8906 # Determine the default libpath from the value encoded in an
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (ac_try="$ac_link"
8926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8927 *) ac_try_echo
=$ac_try;;
8929 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8930 $as_echo "$ac_try_echo") >&5
8931 (eval "$ac_link") 2>conftest.er1
8933 grep -v '^ *+' conftest.er1
>conftest.err
8935 cat conftest.err
>&5
8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
8940 } && test -s conftest
$ac_exeext && {
8941 test "$cross_compiling" = yes ||
8942 $as_test_x conftest
$ac_exeext
8945 lt_aix_libpath_sed
='
8946 /Import File Strings/,/^$/ {
8952 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8953 # Check for a 64-bit object if we didn't find anything.
8954 if test -z "$aix_libpath"; then
8955 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8958 $as_echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.
$ac_ext >&5
8964 rm -rf conftest.dSYM
8965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8966 conftest
$ac_exeext conftest.
$ac_ext
8967 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8969 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8970 # Warning - without using the other run time loading flags,
8971 # -berok will link without error, but may produce a broken library.
8972 no_undefined_flag
=' ${wl}-bernotok'
8973 allow_undefined_flag
=' ${wl}-berok'
8974 # Exported symbols can be pulled into shared objects from archives
8975 whole_archive_flag_spec
='$convenience'
8976 archive_cmds_need_lc
=yes
8977 # This is similar to how AIX traditionally builds its shared libraries.
8978 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'
8986 # see comment about AmigaOS4 .so support
8987 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds
=''
8991 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)'
8992 hardcode_libdir_flag_spec
='-L$libdir'
8993 hardcode_minus_L
=yes
8999 export_dynamic_flag_spec
=-rdynamic
9002 cygwin
* | mingw
* | pw32
* | cegcc
*)
9003 # When not using gcc, we currently assume that we are using
9004 # Microsoft Visual C++.
9005 # hardcode_libdir_flag_spec is actually meaningless, as there is
9006 # no search path for DLLs.
9007 hardcode_libdir_flag_spec
=' '
9008 allow_undefined_flag
=unsupported
9009 # Tell ltmain to make .lib files, not .a files.
9011 # Tell ltmain to make .dll files, not .so files.
9013 # FIXME: Setting linknames here is a bad hack.
9014 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9015 # The linker will automatically build a .lib file if we build a DLL.
9016 old_archive_from_new_cmds
='true'
9017 # FIXME: Should let the user specify the lib program.
9018 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9019 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9020 enable_shared_with_static_runtimes
=yes
9023 darwin
* | rhapsody
*)
9026 archive_cmds_need_lc
=no
9028 hardcode_automatic
=yes
9029 hardcode_shlibpath_var
=unsupported
9030 whole_archive_flag_spec
=''
9031 link_all_deplibs
=yes
9032 allow_undefined_flag
="$_lt_dar_allow_undefined"
9033 case $cc_basename in
9034 ifort
*) _lt_dar_can_shared
=yes ;;
9035 *) _lt_dar_can_shared
=$GCC ;;
9037 if test "$_lt_dar_can_shared" = "yes"; then
9038 output_verbose_link_cmd
=echo
9039 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9040 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9041 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}"
9042 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}"
9051 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_libdir_flag_spec
='-L$libdir'
9053 hardcode_shlibpath_var
=no
9060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9061 # support. Future versions do this automatically, but an explicit c++rt0.o
9062 # does not break anything, and helps significantly (at the cost of a little
9065 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9066 hardcode_libdir_flag_spec
='-R$libdir'
9068 hardcode_shlibpath_var
=no
9071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9073 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_minus_L
=yes
9076 hardcode_shlibpath_var
=no
9079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9080 freebsd
* | dragonfly
*)
9081 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9082 hardcode_libdir_flag_spec
='-R$libdir'
9084 hardcode_shlibpath_var
=no
9088 if test "$GCC" = yes; then
9089 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'
9091 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'
9093 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9094 hardcode_libdir_separator
=:
9097 # hardcode_minus_L: Not really in the search PATH,
9098 # but as the default location of the library.
9099 hardcode_minus_L
=yes
9100 export_dynamic_flag_spec
='${wl}-E'
9104 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9105 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9107 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9109 if test "$with_gnu_ld" = no
; then
9110 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_flag_spec_ld
='+b $libdir'
9112 hardcode_libdir_separator
=:
9114 hardcode_direct_absolute
=yes
9115 export_dynamic_flag_spec
='${wl}-E'
9116 # hardcode_minus_L: Not really in the search PATH,
9117 # but as the default location of the library.
9118 hardcode_minus_L
=yes
9123 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9126 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9144 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9148 if test "$with_gnu_ld" = no
; then
9149 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9150 hardcode_libdir_separator
=:
9155 hardcode_shlibpath_var
=no
9159 hardcode_direct_absolute
=yes
9160 export_dynamic_flag_spec
='${wl}-E'
9162 # hardcode_minus_L: Not really in the search PATH,
9163 # but as the default location of the library.
9164 hardcode_minus_L
=yes
9170 irix5
* | irix6
* | nonstopux
*)
9171 if test "$GCC" = yes; then
9172 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'
9173 # Try to use the -exported_symbol ld option, if it does not
9174 # work, assume that -exports_file does not work either and
9175 # implicitly export all symbols.
9176 save_LDFLAGS
="$LDFLAGS"
9177 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9178 cat >conftest.
$ac_ext <<_ACEOF
9181 rm -f conftest.
$ac_objext conftest
$ac_exeext
9182 if { (ac_try
="$ac_link"
9184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189 (eval "$ac_link") 2>conftest.er1
9191 grep -v '^ *+' conftest.er1 >conftest.err
9193 cat conftest.err >&5
9194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest$ac_exeext && {
9199 test "$cross_compiling" = yes ||
9200 $as_test_x conftest$ac_exeext
9202 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'
9205 $as_echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9211 rm -rf conftest.dSYM
9212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9213 conftest$ac_exeext conftest.$ac_ext
9214 LDFLAGS="$save_LDFLAGS"
9216 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'
9217 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'
9219 archive_cmds_need_lc='no'
9220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9221 hardcode_libdir_separator=:
9223 link_all_deplibs=yes
9227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9230 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9232 hardcode_libdir_flag_spec='-R$libdir'
9234 hardcode_shlibpath_var=no
9238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9242 hardcode_shlibpath_var=no
9249 if test -f /usr/libexec/ld.so; then
9251 hardcode_shlibpath_var=no
9252 hardcode_direct_absolute=yes
9253 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257 export_dynamic_flag_spec='${wl}-E'
9260 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='-R$libdir'
9265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 allow_undefined_flag=unsupported
9279 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'
9280 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9284 if test "$GCC" = yes; then
9285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9286 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'
9288 allow_undefined_flag=' -expect_unresolved \*'
9289 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'
9291 archive_cmds_need_lc='no'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9296 osf4* | osf5*) # as osf3* with the addition of -msym flag
9297 if test "$GCC" = yes; then
9298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299 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'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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'
9304 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~
9305 $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'
9307 # Both c and cxx compiler support -rpath directly
9308 hardcode_libdir_flag_spec='-rpath $libdir'
9310 archive_cmds_need_lc='no'
9311 hardcode_libdir_separator=:
9315 no_undefined_flag=' -z defs'
9316 if test "$GCC" = yes; then
9318 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9320 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9322 case `$CC -V 2>&1` in
9325 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9327 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9331 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9337 hardcode_libdir_flag_spec='-R$libdir'
9338 hardcode_shlibpath_var=no
9340 solaris2.[0-5] | solaris2.[0-5].*) ;;
9342 # The compiler driver will combine and reorder linker options,
9343 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9344 # but is careful enough not to reorder.
9345 # Supported since Solaris 2.6 (maybe 2.5.1?)
9346 if test "$GCC" = yes; then
9347 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9349 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9353 link_all_deplibs
=yes
9357 if test "x$host_vendor" = xsequent
; then
9358 # Use $CC to link under sequent, because it throws in some extra .o
9359 # files that make .init and .fini sections work.
9360 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9362 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_libdir_flag_spec
='-L$libdir'
9366 hardcode_minus_L
=yes
9367 hardcode_shlibpath_var
=no
9371 case $host_vendor in
9373 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_direct
=yes # is this really true???
9377 ## LD is ld it makes a PLAMLIB
9378 ## CC just makes a GrossModule.
9379 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9380 reload_cmds
='$CC -r -o $output$reload_objs'
9384 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9388 runpath_var
='LD_RUN_PATH'
9389 hardcode_shlibpath_var
=no
9393 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_shlibpath_var
=no
9395 export_dynamic_flag_spec
='-Bexport'
9399 if test -d /usr
/nec
; then
9400 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_shlibpath_var
=no
9402 runpath_var
=LD_RUN_PATH
9403 hardcode_runpath_var
=yes
9408 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9409 no_undefined_flag
='${wl}-z,text'
9410 archive_cmds_need_lc
=no
9411 hardcode_shlibpath_var
=no
9412 runpath_var
='LD_RUN_PATH'
9414 if test "$GCC" = yes; then
9415 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 sysv5
* | sco3.2v5
* | sco5v6
*)
9424 # Note: We can NOT use -z defs as we might desire, because we do not
9425 # link with -lc, and that would cause any symbols used from libc to
9426 # always be unresolved, which means just about no library would
9427 # ever link correctly. If we're not using GNU ld we use -z text
9428 # though, which does catch some bad symbols but isn't as heavy-handed
9430 no_undefined_flag
='${wl}-z,text'
9431 allow_undefined_flag
='${wl}-z,nodefs'
9432 archive_cmds_need_lc
=no
9433 hardcode_shlibpath_var
=no
9434 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9435 hardcode_libdir_separator
=':'
9436 link_all_deplibs
=yes
9437 export_dynamic_flag_spec
='${wl}-Bexport'
9438 runpath_var
='LD_RUN_PATH'
9440 if test "$GCC" = yes; then
9441 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_libdir_flag_spec
='-L$libdir'
9452 hardcode_shlibpath_var
=no
9460 if test x
$host_vendor = xsni
; then
9462 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9463 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9469 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9470 $as_echo "$ld_shlibs" >&6; }
9471 test "$ld_shlibs" = no
&& can_build_shared
=no
9473 with_gnu_ld
=$with_gnu_ld
9490 # Do we need to explicitly link libc?
9492 case "x$archive_cmds_need_lc" in
9494 # Assume -lc should be added
9495 archive_cmds_need_lc
=yes
9497 if test "$enable_shared" = yes && test "$GCC" = yes; then
9498 case $archive_cmds in
9500 # FIXME: we may have to deal with multi-command sequences.
9503 # Test whether the compiler implicitly links with -lc since on some
9504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9505 # to ld, don't add -lc before -lgcc.
9506 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9507 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9509 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>&5
9514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } 2>conftest.err
; then
9518 libobjs
=conftest.
$ac_objext
9520 wl
=$lt_prog_compiler_wl
9521 pic_flag
=$lt_prog_compiler_pic
9527 lt_save_allow_undefined_flag
=$allow_undefined_flag
9528 allow_undefined_flag
=
9529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9530 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }
9535 archive_cmds_need_lc
=no
9537 archive_cmds_need_lc
=yes
9539 allow_undefined_flag
=$lt_save_allow_undefined_flag
9541 cat conftest.err
1>&5
9544 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9545 $as_echo "$archive_cmds_need_lc" >&6; }
9708 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9709 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9711 if test "$GCC" = yes; then
9713 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9714 *) lt_awk_arg
="/^libraries:/" ;;
9716 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9717 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9718 # if the path contains ";" then we assume it to be the separator
9719 # otherwise default to the standard path separator (i.e. ":") - it is
9720 # assumed that no part of a normal pathname contains ";" but that should
9721 # okay in the real world where ";" in dirpaths is itself problematic.
9722 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9724 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9726 # Ok, now we have the path, separated by spaces, we can step through it
9727 # and add multilib dir if necessary.
9728 lt_tmp_lt_search_path_spec
=
9729 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9730 for lt_sys_path
in $lt_search_path_spec; do
9731 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9732 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9734 test -d "$lt_sys_path" && \
9735 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9738 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9739 BEGIN {RS=" "; FS="/|\n";} {
9742 for (lt_i = NF; lt_i > 0; lt_i--) {
9743 if ($lt_i != "" && $lt_i != ".") {
9744 if ($lt_i == "..") {
9747 if (lt_count == 0) {
9748 lt_foo="/" $lt_i lt_foo;
9755 if (lt_foo != "") { lt_freq[lt_foo]++; }
9756 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9758 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9760 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9763 libname_spec
='lib$name'
9771 shlibpath_overrides_runpath
=unknown
9773 dynamic_linker
="$host_os ld.so"
9774 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9775 need_lib_prefix
=unknown
9776 hardcode_into_libs
=no
9778 # when you set need_version to no, make sure it does not cause -set_version
9779 # flags to be left without arguments
9780 need_version
=unknown
9785 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9786 shlibpath_var
=LIBPATH
9788 # AIX 3 has no versioning support, so we append a major version to the name.
9789 soname_spec
='${libname}${release}${shared_ext}$major'
9796 hardcode_into_libs
=yes
9797 if test "$host_cpu" = ia64
; then
9798 # AIX 5 supports IA64
9799 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9800 shlibpath_var
=LD_LIBRARY_PATH
9802 # With GCC up to 2.95.x, collect2 would create an import file
9803 # for dependence libraries. The import file would start with
9804 # the line `#! .'. This would cause the generated library to
9805 # depend on `.', always an invalid library. This was fixed in
9806 # development snapshots of GCC prior to 3.0.
9808 aix4 | aix4.
[01] | aix4.
[01].
*)
9809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9811 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9819 # soname into executable. Probably we can add versioning support to
9820 # collect2, so additional links can be useful in future.
9821 if test "$aix_use_runtimelinking" = yes; then
9822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823 # instead of lib<name>.a to let people know that these are not
9824 # typical AIX shared libraries.
9825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827 # We preserve .a as extension for shared libraries through AIX4.2
9828 # and later when we are not doing run time linking.
9829 library_names_spec
='${libname}${release}.a $libname.a'
9830 soname_spec
='${libname}${release}${shared_ext}$major'
9832 shlibpath_var
=LIBPATH
9839 # Since July 2007 AmigaOS4 officially supports .so libraries.
9840 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 library_names_spec
='$libname.ixlibrary $libname.a'
9845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9846 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'
9852 library_names_spec
='${libname}${shared_ext}'
9853 dynamic_linker
="$host_os ld.so"
9854 shlibpath_var
=LIBRARY_PATH
9860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec
='${libname}${release}${shared_ext}$major'
9862 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9863 shlibpath_var
=LD_LIBRARY_PATH
9864 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9865 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9866 # the default ld.so.conf also contains /usr/contrib/lib and
9867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9868 # libtool to hard-code these into programs
9871 cygwin
* | mingw
* | pw32
* | cegcc
*)
9872 version_type
=windows
9877 case $GCC,$host_os in
9878 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9879 library_names_spec
='$libname.dll.a'
9880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9881 postinstall_cmds
='base_file=`basename \${file}`~
9882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9883 dldir=$destdir/`dirname \$dlpath`~
9884 test -d \$dldir || mkdir -p \$dldir~
9885 $install_prog $dir/$dlname \$dldir/$dlname~
9886 chmod a+x \$dldir/$dlname~
9887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9890 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9891 dlpath=$dir/\$dldll~
9893 shlibpath_overrides_runpath
=yes
9897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9898 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9899 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9902 # MinGW DLLs use traditional 'lib' prefix
9903 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9905 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9906 # It is most probably a Windows format PATH printed by
9907 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9908 # path with ; separators, and with drive letters. We can handle the
9909 # drive letters (cygwin fileutils understands them), so leave them,
9910 # especially as we might pass files found there to a mingw objdump,
9911 # which wouldn't understand a cygwinified path. Ahh.
9912 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9914 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9918 # pw32 DLLs use 'pw' prefix rather than 'lib'
9919 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9928 dynamic_linker
='Win32 ld.exe'
9929 # FIXME: first we should search . and the directory the executable is in
9933 darwin
* | rhapsody
*)
9934 dynamic_linker
="$host_os dyld"
9938 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9939 soname_spec
='${libname}${release}${major}$shared_ext'
9940 shlibpath_overrides_runpath
=yes
9941 shlibpath_var
=DYLD_LIBRARY_PATH
9942 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9944 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9945 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9953 soname_spec
='${libname}${release}${shared_ext}$major'
9954 shlibpath_var
=LD_LIBRARY_PATH
9961 freebsd
* | dragonfly
*)
9962 # DragonFly does not have aout. When/if they implement a new
9963 # versioning mechanism, adjust this.
9964 if test -x /usr
/bin
/objformat
; then
9965 objformat
=`/usr/bin/objformat`
9968 freebsd
[123]*) objformat
=aout
;;
9972 version_type
=freebsd-
$objformat
9973 case $version_type in
9975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9980 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9984 shlibpath_var
=LD_LIBRARY_PATH
9987 shlibpath_overrides_runpath
=yes
9989 freebsd3.
[01]* | freebsdelf3.
[01]*)
9990 shlibpath_overrides_runpath
=yes
9991 hardcode_into_libs
=yes
9993 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9994 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9995 shlibpath_overrides_runpath
=no
9996 hardcode_into_libs
=yes
9998 *) # from 4.6 on, and DragonFly
9999 shlibpath_overrides_runpath
=yes
10000 hardcode_into_libs
=yes
10009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10010 soname_spec
='${libname}${release}${shared_ext}$major'
10011 shlibpath_var
=LD_LIBRARY_PATH
10012 hardcode_into_libs
=yes
10015 hpux9
* | hpux10
* | hpux11
*)
10016 # Give a soname corresponding to the major version so that dld.sl refuses to
10017 # link against other versions.
10024 hardcode_into_libs
=yes
10025 dynamic_linker
="$host_os dld.so"
10026 shlibpath_var
=LD_LIBRARY_PATH
10027 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec
='${libname}${release}${shared_ext}$major'
10030 if test "X$HPUX_IA64_MODE" = X32
; then
10031 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10033 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10035 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10039 hardcode_into_libs
=yes
10040 dynamic_linker
="$host_os dld.sl"
10041 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10042 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec
='${libname}${release}${shared_ext}$major'
10045 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10046 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10050 dynamic_linker
="$host_os dld.sl"
10051 shlibpath_var
=SHLIB_PATH
10052 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec
='${libname}${release}${shared_ext}$major'
10057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10058 postinstall_cmds
='chmod 555 $lib'
10065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10066 soname_spec
='${libname}${release}${shared_ext}$major'
10067 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10068 shlibpath_var
=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath
=no
10070 hardcode_into_libs
=yes
10073 irix5
* | irix6
* | nonstopux
*)
10075 nonstopux
*) version_type
=nonstopux
;;
10077 if test "$lt_cv_prog_gnu_ld" = yes; then
10085 soname_spec
='${libname}${release}${shared_ext}$major'
10086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10088 irix5
* | nonstopux
*)
10089 libsuff
= shlibsuff
=
10092 case $LD in # libtool.m4 will add one of these switches to LD
10093 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10094 libsuff
= shlibsuff
= libmagic
=32-bit;;
10095 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10096 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10097 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10098 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10099 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10103 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10104 shlibpath_overrides_runpath
=no
10105 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10106 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10107 hardcode_into_libs
=yes
10110 # No shared lib support for Linux oldld, aout, or coff.
10111 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10115 # This must be Linux ELF.
10116 linux
* | k
*bsd
*-gnu)
10120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec
='${libname}${release}${shared_ext}$major'
10122 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10123 shlibpath_var
=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath
=no
10125 # Some binutils ld are patched to set DT_RUNPATH
10126 save_LDFLAGS
=$LDFLAGS
10127 save_libdir
=$libdir
10128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10130 cat >conftest.
$ac_ext <<_ACEOF
10133 cat confdefs.h
>>conftest.
$ac_ext
10134 cat >>conftest.
$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10145 rm -f conftest.
$ac_objext conftest
$ac_exeext
10146 if { (ac_try
="$ac_link"
10147 case "(($ac_try" in
10148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10152 $as_echo "$ac_try_echo") >&5
10153 (eval "$ac_link") 2>conftest.er1
10155 grep -v '^ *+' conftest.er1 >conftest.err
10157 cat conftest.err >&5
10158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest$ac_exeext && {
10163 test "$cross_compiling" = yes ||
10164 $as_test_x conftest$ac_exeext
10166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10167 shlibpath_overrides_runpath=yes
10171 $as_echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10177 rm -rf conftest.dSYM
10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LDFLAGS=$save_LDFLAGS
10181 libdir=$save_libdir
10183 # This implies no fast_install, which is unacceptable.
10184 # Some rework will be needed to allow for fast_install
10185 # before this can be enabled.
10186 hardcode_into_libs=yes
10188 # Add ABI-specific directories to the system library path.
10189 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10191 # Append ld.so.conf contents to the search path
10192 if test -f /etc/ld.so.conf; then
10193 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' ' '`
10194 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10197 # We used to test for /lib/ld.so.1 and disable shared libraries on
10198 # powerpc, because MkLinux only supported shared libraries with the
10199 # GNU dynamic linker. Since this was broken with cross compilers,
10200 # most powerpc-linux boxes support dynamic linking these days and
10201 # people can always --disable-shared, the test was removed, and we
10202 # assume the GNU/Linux dynamic linker is in use.
10203 dynamic_linker='GNU/Linux ld.so'
10210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10213 dynamic_linker='NetBSD (a.out) ld.so'
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 dynamic_linker='NetBSD ld.elf_so'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10221 hardcode_into_libs=yes
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10239 hardcode_into_libs=yes
10240 dynamic_linker='ldqnx.so'
10245 sys_lib_dlsearch_path_spec="/usr/lib"
10247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10249 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10250 *) need_version=no ;;
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10257 openbsd2.[89] | openbsd2.[89].*)
10258 shlibpath_overrides_runpath=no
10261 shlibpath_overrides_runpath=yes
10265 shlibpath_overrides_runpath=yes
10270 libname_spec='$name'
10273 library_names_spec='$libname${shared_ext} $libname.a'
10274 dynamic_linker='OS/2 ld.exe'
10275 shlibpath_var=LIBPATH
10278 osf3* | osf4* | osf5*)
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 shlibpath_var=LD_LIBRARY_PATH
10285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10302 # ldd complains unless libraries are executable
10303 postinstall_cmds='chmod +x $lib'
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10312 if test "$with_gnu_ld" = yes; then
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 case $host_vendor in
10325 shlibpath_overrides_runpath=no
10327 runpath_var=LD_RUN_PATH
10335 shlibpath_overrides_runpath=no
10336 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10342 if test -d /usr/nec ;then
10344 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10345 soname_spec='$libname${shared_ext}.$major'
10346 shlibpath_var=LD_LIBRARY_PATH
10350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10351 version_type=freebsd-elf
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=yes
10358 hardcode_into_libs=yes
10359 if test "$with_gnu_ld" = yes; then
10360 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10362 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10365 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10369 sys_lib_dlsearch_path_spec='/usr/lib'
10373 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 hardcode_into_libs=yes
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10394 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10395 $as_echo "$dynamic_linker" >&6; }
10396 test "$dynamic_linker" = no && can_build_shared=no
10398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10399 if test "$GCC" = yes; then
10400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10403 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10404 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10406 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10407 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10496 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10499 if test -n "$hardcode_libdir_flag_spec" ||
10500 test -n "$runpath_var" ||
10501 test "X$hardcode_automatic" = "Xyes" ; then
10503 # We can hardcode non-existent directories.
10504 if test "$hardcode_direct" != no &&
10505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10506 # have to relink, otherwise we might link with an installed library
10507 # when we should be linking with a yet-to-be-installed one
10508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10509 test "$hardcode_minus_L" != no; then
10510 # Linking always hardcodes the temporary library directory.
10511 hardcode_action=relink
10513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10514 hardcode_action=immediate
10517 # We cannot hardcode anything, or else we can only hardcode existing
10519 hardcode_action=unsupported
10521 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10522 $as_echo "$hardcode_action" >&6; }
10524 if test "$hardcode_action" = relink ||
10525 test "$inherit_rpath" = yes; then
10526 # Fast installation is not supported
10527 enable_fast_install=no
10528 elif test "$shlibpath_overrides_runpath" = yes ||
10529 test "$enable_shared" = no; then
10530 # Fast installation is not necessary
10531 enable_fast_install=needless
10539 if test "x$enable_dlopen" != xyes; then
10540 enable_dlopen=unknown
10541 enable_dlopen_self=unknown
10542 enable_dlopen_self_static=unknown
10549 lt_cv_dlopen="load_add_on"
10551 lt_cv_dlopen_self=yes
10554 mingw* | pw32* | cegcc*)
10555 lt_cv_dlopen="LoadLibrary"
10560 lt_cv_dlopen="dlopen"
10565 # if libdl is installed we need to link against it
10566 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10569 $as_echo_n "(cached) " >&6
10571 ac_check_lib_save_LIBS=$LIBS
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10599 *) ac_try_echo
=$ac_try;;
10601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10602 $as_echo "$ac_try_echo") >&5
10603 (eval "$ac_link") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1
>conftest.err
10607 cat conftest.err
>&5
10608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest
$ac_exeext && {
10613 test "$cross_compiling" = yes ||
10614 $as_test_x conftest
$ac_exeext
10616 ac_cv_lib_dl_dlopen
=yes
10618 $as_echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.
$ac_ext >&5
10621 ac_cv_lib_dl_dlopen
=no
10624 rm -rf conftest.dSYM
10625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10626 conftest
$ac_exeext conftest.
$ac_ext
10627 LIBS
=$ac_check_lib_save_LIBS
10629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10631 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10632 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10635 lt_cv_dlopen
="dyld"
10637 lt_cv_dlopen_self
=yes
10644 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10645 $as_echo_n "checking for shl_load... " >&6; }
10646 if test "${ac_cv_func_shl_load+set}" = set; then
10647 $as_echo_n "(cached) " >&6
10649 cat >conftest.
$ac_ext <<_ACEOF
10652 cat confdefs.h
>>conftest.
$ac_ext
10653 cat >>conftest.
$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10657 #define shl_load innocuous_shl_load
10659 /* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char shl_load (); below.
10661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10662 <limits.h> exists even on freestanding compilers. */
10665 # include <limits.h>
10667 # include <assert.h>
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined __stub_shl_load || defined __stub___shl_load
10689 return shl_load ();
10694 rm -f conftest.
$ac_objext conftest
$ac_exeext
10695 if { (ac_try
="$ac_link"
10696 case "(($ac_try" in
10697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10701 $as_echo "$ac_try_echo") >&5
10702 (eval "$ac_link") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest$ac_exeext && {
10712 test "$cross_compiling" = yes ||
10713 $as_test_x conftest$ac_exeext
10715 ac_cv_func_shl_load=yes
10717 $as_echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_cv_func_shl_load=no
10723 rm -rf conftest.dSYM
10724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10725 conftest$ac_exeext conftest.$ac_ext
10727 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10728 $as_echo "$ac_cv_func_shl_load" >&6; }
10729 if test "x$ac_cv_func_shl_load" = x""yes; then
10730 lt_cv_dlopen="shl_load"
10732 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10733 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10734 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10737 ac_check_lib_save_LIBS=$LIBS
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10756 return shl_load ();
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10765 *) ac_try_echo
=$ac_try;;
10767 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1
>conftest.err
10773 cat conftest.err
>&5
10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest
$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest
$ac_exeext
10782 ac_cv_lib_dld_shl_load
=yes
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.
$ac_ext >&5
10787 ac_cv_lib_dld_shl_load
=no
10790 rm -rf conftest.dSYM
10791 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10792 conftest
$ac_exeext conftest.
$ac_ext
10793 LIBS
=$ac_check_lib_save_LIBS
10795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10796 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10797 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10798 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10800 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10801 $as_echo_n "checking for dlopen... " >&6; }
10802 if test "${ac_cv_func_dlopen+set}" = set; then
10803 $as_echo_n "(cached) " >&6
10805 cat >conftest.
$ac_ext <<_ACEOF
10808 cat confdefs.h
>>conftest.
$ac_ext
10809 cat >>conftest.
$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813 #define dlopen innocuous_dlopen
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char dlopen (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10821 # include <limits.h>
10823 # include <assert.h>
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined __stub_dlopen || defined __stub___dlopen
10850 rm -f conftest.
$ac_objext conftest
$ac_exeext
10851 if { (ac_try
="$ac_link"
10852 case "(($ac_try" in
10853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10857 $as_echo "$ac_try_echo") >&5
10858 (eval "$ac_link") 2>conftest.er1
10860 grep -v '^ *+' conftest.er1 >conftest.err
10862 cat conftest.err >&5
10863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest$ac_exeext && {
10868 test "$cross_compiling" = yes ||
10869 $as_test_x conftest$ac_exeext
10871 ac_cv_func_dlopen=yes
10873 $as_echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_cv_func_dlopen=no
10879 rm -rf conftest.dSYM
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10883 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10884 $as_echo "$ac_cv_func_dlopen" >&6; }
10885 if test "x$ac_cv_func_dlopen" = x""yes; then
10886 lt_cv_dlopen="dlopen"
10888 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10893 ac_check_lib_save_LIBS=$LIBS
10895 cat >conftest.$ac_ext <<_ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10902 /* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10917 rm -f conftest.$ac_objext conftest$ac_exeext
10918 if { (ac_try="$ac_link"
10919 case "(($ac_try" in
10920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10921 *) ac_try_echo
=$ac_try;;
10923 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925 (eval "$ac_link") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1
>conftest.err
10929 cat conftest.err
>&5
10930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest
$ac_exeext && {
10935 test "$cross_compiling" = yes ||
10936 $as_test_x conftest
$ac_exeext
10938 ac_cv_lib_dl_dlopen
=yes
10940 $as_echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.
$ac_ext >&5
10943 ac_cv_lib_dl_dlopen
=no
10946 rm -rf conftest.dSYM
10947 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10948 conftest
$ac_exeext conftest.
$ac_ext
10949 LIBS
=$ac_check_lib_save_LIBS
10951 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10953 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10954 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10956 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10957 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10958 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10959 $as_echo_n "(cached) " >&6
10961 ac_check_lib_save_LIBS
=$LIBS
10962 LIBS
="-lsvld $LIBS"
10963 cat >conftest.
$ac_ext <<_ACEOF
10966 cat confdefs.h
>>conftest.
$ac_ext
10967 cat >>conftest.
$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10985 rm -f conftest.
$ac_objext conftest
$ac_exeext
10986 if { (ac_try
="$ac_link"
10987 case "(($ac_try" in
10988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10992 $as_echo "$ac_try_echo") >&5
10993 (eval "$ac_link") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_c_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest$ac_exeext && {
11003 test "$cross_compiling" = yes ||
11004 $as_test_x conftest$ac_exeext
11006 ac_cv_lib_svld_dlopen=yes
11008 $as_echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_cv_lib_svld_dlopen=no
11014 rm -rf conftest.dSYM
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11019 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11021 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11024 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11027 $as_echo_n "(cached) " >&6
11029 ac_check_lib_save_LIBS=$LIBS
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11048 return dld_link ();
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (ac_try="$ac_link"
11055 case "(($ac_try" in
11056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11057 *) ac_try_echo
=$ac_try;;
11059 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11060 $as_echo "$ac_try_echo") >&5
11061 (eval "$ac_link") 2>conftest.er1
11063 grep -v '^ *+' conftest.er1
>conftest.err
11065 cat conftest.err
>&5
11066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest
$ac_exeext && {
11071 test "$cross_compiling" = yes ||
11072 $as_test_x conftest
$ac_exeext
11074 ac_cv_lib_dld_dld_link
=yes
11076 $as_echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.
$ac_ext >&5
11079 ac_cv_lib_dld_dld_link
=no
11082 rm -rf conftest.dSYM
11083 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11084 conftest
$ac_exeext conftest.
$ac_ext
11085 LIBS
=$ac_check_lib_save_LIBS
11087 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11089 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11090 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11111 if test "x$lt_cv_dlopen" != xno
; then
11117 case $lt_cv_dlopen in
11119 save_CPPFLAGS
="$CPPFLAGS"
11120 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11122 save_LDFLAGS
="$LDFLAGS"
11123 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11126 LIBS
="$lt_cv_dlopen_libs $LIBS"
11128 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11130 if test "${lt_cv_dlopen_self+set}" = set; then
11131 $as_echo_n "(cached) " >&6
11133 if test "$cross_compiling" = yes; then :
11134 lt_cv_dlopen_self
=cross
11136 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11137 lt_status
=$lt_dlunknown
11138 cat > conftest.
$ac_ext <<_LT_EOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11149 # define LT_DLGLOBAL RTLD_GLOBAL
11152 # define LT_DLGLOBAL DL_GLOBAL
11154 # define LT_DLGLOBAL 0
11158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160 #ifndef LT_DLLAZY_OR_NOW
11162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11165 # define LT_DLLAZY_OR_NOW DL_LAZY
11168 # define LT_DLLAZY_OR_NOW RTLD_NOW
11171 # define LT_DLLAZY_OR_NOW DL_NOW
11173 # define LT_DLLAZY_OR_NOW 0
11180 void fnord() { int i=42;}
11183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184 int status = $lt_dlunknown;
11188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11190 /* dlclose (self); */
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>&5
11201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11203 (.
/conftest
; exit; ) >&5 2>/dev
/null
11205 case x
$lt_status in
11206 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11207 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11208 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11211 # compilation failed
11212 lt_cv_dlopen_self
=no
11219 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11220 $as_echo "$lt_cv_dlopen_self" >&6; }
11222 if test "x$lt_cv_dlopen_self" = xyes
; then
11223 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11224 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11226 if test "${lt_cv_dlopen_self_static+set}" = set; then
11227 $as_echo_n "(cached) " >&6
11229 if test "$cross_compiling" = yes; then :
11230 lt_cv_dlopen_self_static
=cross
11232 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11233 lt_status
=$lt_dlunknown
11234 cat > conftest.
$ac_ext <<_LT_EOF
11235 #line 11235 "configure"
11236 #include "confdefs.h"
11245 # define LT_DLGLOBAL RTLD_GLOBAL
11248 # define LT_DLGLOBAL DL_GLOBAL
11250 # define LT_DLGLOBAL 0
11254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11255 find out it does not work in some platform. */
11256 #ifndef LT_DLLAZY_OR_NOW
11258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11261 # define LT_DLLAZY_OR_NOW DL_LAZY
11264 # define LT_DLLAZY_OR_NOW RTLD_NOW
11267 # define LT_DLLAZY_OR_NOW DL_NOW
11269 # define LT_DLLAZY_OR_NOW 0
11276 void fnord() { int i=42;}
11279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11280 int status = $lt_dlunknown;
11284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11286 /* dlclose (self); */
11294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295 (eval $ac_link) 2>&5
11297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11299 (.
/conftest
; exit; ) >&5 2>/dev
/null
11301 case x
$lt_status in
11302 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11303 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11304 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11307 # compilation failed
11308 lt_cv_dlopen_self_static
=no
11315 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11316 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11319 CPPFLAGS
="$save_CPPFLAGS"
11320 LDFLAGS
="$save_LDFLAGS"
11325 case $lt_cv_dlopen_self in
11326 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11327 *) enable_dlopen_self
=unknown
;;
11330 case $lt_cv_dlopen_self_static in
11331 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11332 *) enable_dlopen_self_static
=unknown
;;
11354 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11355 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11356 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11357 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11358 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360 $as_echo "yes" >&6; }
11362 # FIXME - insert some real tests, host_os isn't really good enough
11365 if test -n "$STRIP" ; then
11366 striplib
="$STRIP -x"
11367 old_striplib
="$STRIP -S"
11368 { $as_echo "$as_me:$LINENO: result: yes" >&5
11369 $as_echo "yes" >&6; }
11371 { $as_echo "$as_me:$LINENO: result: no" >&5
11372 $as_echo "no" >&6; }
11376 { $as_echo "$as_me:$LINENO: result: no" >&5
11377 $as_echo "no" >&6; }
11393 # Report which library types will actually be built
11394 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11395 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11396 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11397 $as_echo "$can_build_shared" >&6; }
11399 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11400 $as_echo_n "checking whether to build shared libraries... " >&6; }
11401 test "$can_build_shared" = "no" && enable_shared
=no
11403 # On AIX, shared libraries and static libraries use the same namespace, and
11404 # are all built from PIC.
11407 test "$enable_shared" = yes && enable_static
=no
11408 if test -n "$RANLIB"; then
11409 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11410 postinstall_cmds
='$RANLIB $lib'
11415 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11416 test "$enable_shared" = yes && enable_static
=no
11420 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11421 $as_echo "$enable_shared" >&6; }
11423 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11424 $as_echo_n "checking whether to build static libraries... " >&6; }
11425 # Make sure either enable_shared or enable_static is yes.
11426 test "$enable_shared" = yes || enable_static
=yes
11427 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11428 $as_echo "$enable_static" >&6; }
11435 ac_cpp
='$CPP $CPPFLAGS'
11436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11454 ac_config_commands
="$ac_config_commands libtool"
11459 # Only expand once:
11464 { $as_echo "$as_me:$LINENO: checking spl author" >&5
11465 $as_echo_n "checking spl author... " >&6; }
11466 { $as_echo "$as_me:$LINENO: result: $SPL_META_AUTHOR" >&5
11467 $as_echo "$SPL_META_AUTHOR" >&6; }
11469 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11470 $as_echo_n "checking spl license... " >&6; }
11471 { $as_echo "$as_me:$LINENO: result: $SPL_META_LICENSE" >&5
11472 $as_echo "$SPL_META_LICENSE" >&6; }
11476 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11477 $as_echo_n "checking linux distribution... " >&6; }
11478 if test -f /etc
/toss-release
; then
11480 elif test -f /etc
/fedora-release
; then
11482 elif test -f /etc
/redhat-release
; then
11484 elif test -f /etc
/gentoo-release
; then
11486 elif test -f /etc
/arch-release
; then
11488 elif test -f /etc
/SuSE-release
; then
11490 elif test -f /etc
/slackware-version
; then
11492 elif test -f /etc
/lunar.release
; then
11494 elif test -f /etc
/lsb-release
; then
11496 elif test -f /etc
/debian_version
; then
11501 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11502 $as_echo "$VENDOR" >&6; }
11505 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11506 $as_echo_n "checking default package type... " >&6; }
11508 toss
) DEFAULT_PACKAGE
=rpm
;;
11509 redhat
) DEFAULT_PACKAGE
=rpm
;;
11510 fedora
) DEFAULT_PACKAGE
=rpm
;;
11511 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11512 arch
) DEFAULT_PACKAGE
=tgz
;;
11513 sles
) DEFAULT_PACKAGE
=rpm
;;
11514 slackware
) DEFAULT_PACKAGE
=tgz
;;
11515 lunar
) DEFAULT_PACKAGE
=tgz
;;
11516 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11517 debian
) DEFAULT_PACKAGE
=deb
;;
11518 *) DEFAULT_PACKAGE
=rpm
;;
11521 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11522 $as_echo "$DEFAULT_PACKAGE" >&6; }
11529 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11530 $as_echo_n "checking whether $RPM is available... " >&6; }
11531 if tmp
=$
($RPM --version 2>/dev
/null
); then
11533 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11535 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11536 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11541 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11542 $as_echo "$HAVE_RPM" >&6; }
11547 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11548 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11549 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11551 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11553 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11554 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11559 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11560 $as_echo "$HAVE_RPMBUILD" >&6; }
11565 RPM_DEFINE_COMMON
='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
11567 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)"'
11570 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11575 RPM_SPEC_DIR
="rpm/generic"
11577 # Check whether --with-spec was given.
11578 if test "${with_spec+set}" = set; then
11579 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11583 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
11584 $as_echo_n "checking whether spec files are available... " >&6; }
11585 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11586 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11608 DPKGBUILD
=dpkg-buildpackage
11610 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11611 $as_echo_n "checking whether $DPKG is available... " >&6; }
11612 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11614 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11616 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11617 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11622 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11623 $as_echo "$HAVE_DPKG" >&6; }
11628 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11629 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11630 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11632 DPKGBUILD_VERSION
=$
(echo $tmp | \
11633 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11635 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11636 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11641 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11642 $as_echo "$HAVE_DPKGBUILD" >&6; }
11658 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11659 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11660 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11662 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11664 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11665 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11670 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11671 $as_echo "$HAVE_ALIEN" >&6; }
11684 # Check whether --with-config was given.
11685 if test "${with_config+set}" = set; then
11686 withval
=$with_config; SPL_CONFIG
="$withval"
11689 # Check whether --enable-linux-builtin was given.
11690 if test "${enable_linux_builtin+set}" = set; then
11691 enableval
=$enable_linux_builtin;
11693 enable_linux_builtin
=no
11697 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11698 $as_echo_n "checking spl config... " >&6; }
11699 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11700 $as_echo "$SPL_CONFIG" >&6; };
11703 case "$SPL_CONFIG" in
11707 # Check whether --with-linux was given.
11708 if test "${with_linux+set}" = set; then
11709 withval
=$with_linux; kernelsrc
="$withval"
11714 # Check whether --with-linux-obj was given.
11715 if test "${with_linux_obj+set}" = set; then
11716 withval
=$with_linux_obj; kernelbuild
="$withval"
11720 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11721 $as_echo_n "checking kernel source directory... " >&6; }
11722 if test -z "$kernelsrc"; then
11723 if test -e "/lib/modules/$(uname -r)/source"; then
11724 headersdir
="/lib/modules/$(uname -r)/source"
11725 sourcelink
=$
(readlink
-f "$headersdir")
11726 elif test -e "/lib/modules/$(uname -r)/build"; then
11727 headersdir
="/lib/modules/$(uname -r)/build"
11728 sourcelink
=$
(readlink
-f "$headersdir")
11730 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11732 2>/dev
/null |
grep -v obj |
tail -1)
11735 if test -n "$sourcelink" && test -e ${sourcelink}; then
11736 kernelsrc
=`readlink -f ${sourcelink}`
11738 kernelsrc
="Not found"
11741 if test "$kernelsrc" = "NONE"; then
11747 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11748 $as_echo "$kernelsrc" >&6; }
11749 if test ! -d "$kernelsrc"; then
11750 { { $as_echo "$as_me:$LINENO: error:
11751 *** Please make sure the kernel devel package for your distribution
11752 *** is installed and then try again. If that fails, you can specify the
11753 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11754 $as_echo "$as_me: error:
11755 *** Please make sure the kernel devel package for your distribution
11756 *** is installed and then try again. If that fails, you can specify the
11757 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11758 { (exit 1); exit 1; }; }
11761 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11762 $as_echo_n "checking kernel build directory... " >&6; }
11763 if test -z "$kernelbuild"; then
11764 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then
11765 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
11766 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11767 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11768 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
11769 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11770 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
11771 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11773 kernelbuild
=${kernelsrc}
11776 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11777 $as_echo "$kernelbuild" >&6; }
11779 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11780 $as_echo_n "checking kernel source version... " >&6; }
11781 utsrelease1
=$kernelbuild/include
/linux
/version.h
11782 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11783 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11784 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
11785 utsrelease
=linux
/version.h
11786 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
11787 utsrelease
=linux
/utsrelease.h
11788 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
11789 utsrelease
=generated
/utsrelease.h
11792 if test "$utsrelease"; then
11793 kernsrcver
=`(echo "#include <$utsrelease>";
11794 echo "kernsrcver=UTS_RELEASE") |
11795 cpp -I $kernelbuild/include |
11796 grep "^kernsrcver=" | cut -d \" -f 2`
11798 if test -z "$kernsrcver"; then
11799 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11800 $as_echo "Not found" >&6; }
11801 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11802 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11803 { (exit 1); exit 1; }; }
11806 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11807 $as_echo "Not found" >&6; }
11808 if test "x$enable_linux_builtin" != xyes
; then
11809 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11810 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11811 { (exit 1); exit 1; }; }
11813 { { $as_echo "$as_me:$LINENO: error:
11814 *** Cannot find UTS_RELEASE definition.
11815 *** Please run 'make prepare' inside the kernel source tree." >&5
11816 $as_echo "$as_me: error:
11817 *** Cannot find UTS_RELEASE definition.
11818 *** Please run 'make prepare' inside the kernel source tree." >&2;}
11819 { (exit 1); exit 1; }; }
11823 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11824 $as_echo "$kernsrcver" >&6; }
11827 LINUX_OBJ
=${kernelbuild}
11828 LINUX_VERSION
=${kernsrcver}
11835 modpost
=$LINUX/scripts
/Makefile.modpost
11836 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11837 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11838 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
11839 if grep -q Modules.symvers
$modpost; then
11840 LINUX_SYMBOLS
=Modules.symvers
11842 LINUX_SYMBOLS
=Module.symvers
11845 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11846 { { $as_echo "$as_me:$LINENO: error:
11847 *** Please make sure the kernel devel package for your distribution
11848 *** is installed. If you are building with a custom kernel, make sure the
11849 *** kernel is configured, built, and the '--with-linux=PATH' configure
11850 *** option refers to the location of the kernel source." >&5
11851 $as_echo "$as_me: error:
11852 *** Please make sure the kernel devel package for your distribution
11853 *** is installed. If you are building with a custom kernel, make sure the
11854 *** kernel is configured, built, and the '--with-linux=PATH' configure
11855 *** option refers to the location of the kernel source." >&2;}
11856 { (exit 1); exit 1; }; }
11861 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11862 $as_echo "$LINUX_SYMBOLS" >&6; }
11867 if test "${LINUX_OBJ}" != "${LINUX}"; then
11868 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11872 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wstrict-prototypes"
11876 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11877 $as_echo_n "checking whether debugging is enabled... " >&6; }
11878 # Check whether --enable-debug was given.
11879 if test "${enable_debug+set}" = set; then
11880 enableval
=$enable_debug;
11886 if test "x$enable_debug" = xyes
; then
11888 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
11889 DEBUG_CFLAGS
="-DDEBUG -Werror"
11890 DEBUG_SPL
="_with_debug"
11894 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG"
11895 DEBUG_CFLAGS
="-DNDEBUG"
11896 DEBUG_SPL
="_without_debug"
11903 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11904 $as_echo "$enable_debug" >&6; }
11907 # Check whether --enable-debug-kmem was given.
11908 if test "${enable_debug_kmem+set}" = set; then
11909 enableval
=$enable_debug_kmem;
11911 enable_debug_kmem
=no
11915 if test "x$enable_debug_kmem" = xyes
; then
11917 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11918 DEBUG_KMEM
="_with_debug_kmem"
11920 cat >>confdefs.h
<<\_ACEOF
11921 #define DEBUG_KMEM 1
11927 DEBUG_KMEM
="_without_debug_kmem"
11933 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11934 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11935 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11936 $as_echo "$enable_debug_kmem" >&6; }
11939 # Check whether --enable-debug-kmem-tracking was given.
11940 if test "${enable_debug_kmem_tracking+set}" = set; then
11941 enableval
=$enable_debug_kmem_tracking;
11943 enable_debug_kmem_tracking
=no
11947 if test "x$enable_debug_kmem_tracking" = xyes
; then
11949 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11950 DEBUG_KMEM_TRACKING
="_with_debug_kmem_tracking"
11952 cat >>confdefs.h
<<\_ACEOF
11953 #define DEBUG_KMEM_TRACKING 1
11959 DEBUG_KMEM_TRACKING
="_without_debug_kmem_tracking"
11965 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11966 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11967 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11968 $as_echo "$enable_debug_kmem_tracking" >&6; }
11970 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
11971 $as_echo_n "checking whether modules can be built... " >&6; }
11974 cat confdefs.h
- <<_ACEOF >conftest.c
11977 cat confdefs.h
>>conftest.
$ac_ext
11978 cat >>conftest.
$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11994 echo "obj-m := conftest.o" >build
/Makefile
11996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11997 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'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12009 { $as_echo "$as_me:$LINENO: result: yes" >&5
12010 $as_echo "yes" >&6; }
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.
$ac_ext >&5
12016 { $as_echo "$as_me:$LINENO: result: no" >&5
12017 $as_echo "no" >&6; }
12018 if test "x$enable_linux_builtin" != xyes
; then
12019 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12020 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12021 { (exit 1); exit 1; }; }
12023 { { $as_echo "$as_me:$LINENO: error:
12024 *** Unable to build an empty module.
12025 *** Please run 'make scripts' inside the kernel source tree." >&5
12026 $as_echo "$as_me: error:
12027 *** Unable to build an empty module.
12028 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12029 { (exit 1); exit 1; }; }
12040 if test "x$cross_compiling" != xyes
; then
12042 if test "$cross_compiling" = yes; then
12043 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12045 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12046 See \`config.log' for more details." >&5
12047 $as_echo "$as_me: error: cannot run test program while cross compiling
12048 See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }; }
12051 cat >conftest.
$ac_ext <<_ACEOF
12055 cat confdefs.h
>>conftest.
$ac_ext
12056 cat >>conftest.
$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 #include "$LINUX/include/linux/license.h"
12065 return !license_is_gpl_compatible(
12066 "$SPL_META_LICENSE");
12073 rm -f conftest
$ac_exeext
12074 if { (ac_try
="$ac_link"
12075 case "(($ac_try" in
12076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12080 $as_echo "$ac_try_echo") >&5
12081 (eval "$ac_link") 2>&5
12083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12087 *) ac_try_echo
=$ac_try;;
12089 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12090 $as_echo "$ac_try_echo") >&5
12091 (eval "$ac_try") 2>&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12097 cat >>confdefs.h
<<\_ACEOF
12098 #define SPL_IS_GPL_COMPATIBLE 1
12103 $as_echo "$as_me: program exited with status $ac_status" >&5
12104 $as_echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.
$ac_ext >&5
12107 ( exit $ac_status )
12111 rm -rf conftest.dSYM
12112 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12121 # Check whether --enable-atomic-spinlocks was given.
12122 if test "${enable_atomic_spinlocks+set}" = set; then
12123 enableval
=$enable_atomic_spinlocks;
12125 enable_atomic_spinlocks
=check
12131 cat confdefs.h
- <<_ACEOF >conftest.c
12134 cat confdefs.h
>>conftest.
$ac_ext
12135 cat >>conftest.
$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12139 #include <linux/fs.h>
12145 atomic64_t *ptr __attribute__ ((unused));
12154 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12155 echo "obj-m := conftest.o" >build
/Makefile
12157 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12158 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'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12170 have_atomic64_t
=yes
12172 cat >>confdefs.h
<<\_ACEOF
12173 #define HAVE_ATOMIC64_T 1
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.
$ac_ext >&5
12191 if test "x$enable_atomic_spinlocks" = xcheck
; then
12193 if test "x$have_atomic64_t" = xyes
; then
12195 enable_atomic_spinlocks
=no
12199 enable_atomic_spinlocks
=yes
12207 if test "x$enable_atomic_spinlocks" = xyes
; then
12210 cat >>confdefs.h
<<\_ACEOF
12211 #define ATOMIC_SPINLOCK 1
12217 if test "x$have_atomic64_t" = xno
; then
12219 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12221 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12222 See \`config.log' for more details." >&5
12223 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12224 See \`config.log' for more details." >&2;}
12225 { (exit 1); exit 1; }; }; }
12233 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12234 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12235 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12236 $as_echo "$enable_atomic_spinlocks" >&6; }
12238 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12239 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12240 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12241 $as_echo "$have_atomic64_t" >&6; }
12244 tmp_flags
="$EXTRA_KCFLAGS"
12245 EXTRA_KCFLAGS
="-Werror"
12246 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
12247 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12250 cat confdefs.h
- <<_ACEOF >conftest.c
12253 cat confdefs.h
>>conftest.
$ac_ext
12254 cat >>conftest.
$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12258 #include <linux/mm.h>
12260 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12266 struct shrinker cache_shrinker = {
12267 .shrink = shrinker_cb,
12268 .seeks = DEFAULT_SEEKS,
12270 register_shrinker(&cache_shrinker);
12279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12280 echo "obj-m := conftest.o" >build
/Makefile
12282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12283 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'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12295 { $as_echo "$as_me:$LINENO: result: yes" >&5
12296 $as_echo "yes" >&6; }
12298 cat >>confdefs.h
<<\_ACEOF
12299 #define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
12304 $as_echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.
$ac_ext >&5
12307 { $as_echo "$as_me:$LINENO: result: no" >&5
12308 $as_echo "no" >&6; }
12309 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
12310 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12313 cat confdefs.h
- <<_ACEOF >conftest.c
12316 cat confdefs.h
>>conftest.
$ac_ext
12317 cat >>conftest.
$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12321 #include <linux/mm.h>
12323 int shrinker_cb(struct shrinker *, int nr_to_scan,
12330 struct shrinker cache_shrinker = {
12331 .shrink = shrinker_cb,
12332 .seeks = DEFAULT_SEEKS,
12334 register_shrinker(&cache_shrinker);
12343 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12344 echo "obj-m := conftest.o" >build
/Makefile
12346 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12347 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'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12359 { $as_echo "$as_me:$LINENO: result: yes" >&5
12360 $as_echo "yes" >&6; }
12362 cat >>confdefs.h
<<\_ACEOF
12363 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12368 $as_echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.
$ac_ext >&5
12371 { $as_echo "$as_me:$LINENO: result: no" >&5
12372 $as_echo "no" >&6; }
12373 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
12374 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12377 cat confdefs.h
- <<_ACEOF >conftest.c
12380 cat confdefs.h
>>conftest.
$ac_ext
12381 cat >>conftest.
$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12385 #include <linux/mm.h>
12387 int shrinker_cb(struct shrinker *,
12388 struct shrink_control *sc);
12394 struct shrinker cache_shrinker = {
12395 .shrink = shrinker_cb,
12396 .seeks = DEFAULT_SEEKS,
12398 register_shrinker(&cache_shrinker);
12407 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12408 echo "obj-m := conftest.o" >build
/Makefile
12410 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12411 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'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12423 { $as_echo "$as_me:$LINENO: result: yes" >&5
12424 $as_echo "yes" >&6; }
12426 cat >>confdefs.h
<<\_ACEOF
12427 #define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
12432 $as_echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.
$ac_ext >&5
12435 { $as_echo "$as_me:$LINENO: result: no" >&5
12436 $as_echo "no" >&6; }
12437 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
12438 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12441 cat confdefs.h
- <<_ACEOF >conftest.c
12444 cat confdefs.h
>>conftest.
$ac_ext
12445 cat >>conftest.
$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12449 #include <linux/mm.h>
12451 unsigned long shrinker_cb(
12453 struct shrink_control *sc);
12459 struct shrinker cache_shrinker = {
12460 .count_objects = shrinker_cb,
12461 .scan_objects = shrinker_cb,
12462 .seeks = DEFAULT_SEEKS,
12464 register_shrinker(&cache_shrinker);
12473 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12474 echo "obj-m := conftest.o" >build
/Makefile
12476 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12477 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'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12489 { $as_echo "$as_me:$LINENO: result: yes" >&5
12490 $as_echo "yes" >&6; }
12492 cat >>confdefs.h
<<\_ACEOF
12493 #define HAVE_SPLIT_SHRINKER_CALLBACK 1
12498 $as_echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.
$ac_ext >&5
12501 { { $as_echo "$as_me:$LINENO: error: error" >&5
12502 $as_echo "$as_me: error: error" >&2;}
12503 { (exit 1); exit 1; }; }
12536 EXTRA_KCFLAGS
="$tmp_flags"
12539 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12540 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12543 cat confdefs.h
- <<_ACEOF >conftest.c
12546 cat confdefs.h
>>conftest.
$ac_ext
12547 cat >>conftest.
$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12551 #include <linux/sysctl.h>
12557 struct ctl_table ctl __attribute__ ((unused));
12567 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12568 echo "obj-m := conftest.o" >build
/Makefile
12570 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12571 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'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12583 { $as_echo "$as_me:$LINENO: result: yes" >&5
12584 $as_echo "yes" >&6; }
12586 cat >>confdefs.h
<<\_ACEOF
12587 #define HAVE_CTL_NAME 1
12592 $as_echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.
$ac_ext >&5
12595 { $as_echo "$as_me:$LINENO: result: no" >&5
12596 $as_echo "no" >&6; }
12607 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
12608 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
12611 cat confdefs.h
- <<_ACEOF >conftest.c
12614 cat confdefs.h
>>conftest.
$ac_ext
12615 cat >>conftest.
$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12619 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
12620 #error CONFIG_TRIM_UNUSED_KSYMS not defined
12634 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12635 echo "obj-m := conftest.o" >build
/Makefile
12637 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12638 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'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
12650 { $as_echo "$as_me:$LINENO: result: yes" >&5
12651 $as_echo "yes" >&6; }
12654 $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.
$ac_ext >&5
12657 { $as_echo "$as_me:$LINENO: result: no" >&5
12658 $as_echo "no" >&6; }
12659 { { $as_echo "$as_me:$LINENO: error:
12660 *** This kernel has unused symbols trimming enabled, please disable.
12661 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
12662 $as_echo "$as_me: error:
12663 *** This kernel has unused symbols trimming enabled, please disable.
12664 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
12665 { (exit 1); exit 1; }; }
12676 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
12677 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
12681 cat confdefs.h
- <<_ACEOF >conftest.c
12684 cat confdefs.h
>>conftest.
$ac_ext
12685 cat >>conftest.
$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12689 #include <linux/proc_fs.h>
12704 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12705 echo "obj-m := conftest.o" >build
/Makefile
12707 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12708 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'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12721 $as_echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.
$ac_ext >&5
12731 if test $rc -ne 0; then :
12733 { $as_echo "$as_me:$LINENO: result: no" >&5
12734 $as_echo "no" >&6; }
12737 if test "x$enable_linux_builtin" != xyes
; then
12739 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12740 $LINUX_OBJ/Module
*.symvers
2>/dev
/null
12742 if test $rc -ne 0; then
12745 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12746 "$LINUX_OBJ/$file" 2>/dev
/null
12748 if test $rc -eq 0; then
12753 if test $export -eq 0; then :
12763 if test $rc -ne 0; then :
12765 { $as_echo "$as_me:$LINENO: result: no" >&5
12766 $as_echo "no" >&6; }
12770 { $as_echo "$as_me:$LINENO: result: yes" >&5
12771 $as_echo "yes" >&6; }
12773 cat >>confdefs.h
<<\_ACEOF
12774 #define HAVE_PDE_DATA 1
12782 tmp_flags
="$EXTRA_KCFLAGS"
12783 EXTRA_KCFLAGS
="-Werror"
12784 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
12785 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
12788 cat confdefs.h
- <<_ACEOF >conftest.c
12791 cat confdefs.h
>>conftest.
$ac_ext
12792 cat >>conftest.
$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12796 #include <linux/spinlock.h>
12797 #include <linux/fs_struct.h>
12798 #include <linux/path.h>
12799 void (*const set_fs_pwd_func)
12800 (struct fs_struct *, const struct path *)
12816 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12817 echo "obj-m := conftest.o" >build
/Makefile
12819 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12820 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'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12832 { $as_echo "$as_me:$LINENO: result: yes" >&5
12833 $as_echo "yes" >&6; }
12835 cat >>confdefs.h
<<\_ACEOF
12836 #define HAVE_SET_FS_PWD_WITH_CONST 1
12841 $as_echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.
$ac_ext >&5
12846 cat confdefs.h
- <<_ACEOF >conftest.c
12849 cat confdefs.h
>>conftest.
$ac_ext
12850 cat >>conftest.
$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12854 #include <linux/spinlock.h>
12855 #include <linux/fs_struct.h>
12856 #include <linux/path.h>
12857 void (*const set_fs_pwd_func)
12858 (struct fs_struct *, struct path *)
12874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12875 echo "obj-m := conftest.o" >build
/Makefile
12877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12878 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'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12890 { $as_echo "$as_me:$LINENO: result: no" >&5
12891 $as_echo "no" >&6; }
12894 $as_echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.
$ac_ext >&5
12897 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
12898 $as_echo "$as_me: error: unknown" >&2;}
12899 { (exit 1); exit 1; }; }
12916 EXTRA_KCFLAGS
="$tmp_flags"
12918 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
12919 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
12922 cat confdefs.h
- <<_ACEOF >conftest.c
12925 cat confdefs.h
>>conftest.
$ac_ext
12926 cat >>conftest.
$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12930 #include <linux/fs.h>
12936 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
12945 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12946 echo "obj-m := conftest.o" >build
/Makefile
12948 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12949 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'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12961 { $as_echo "$as_me:$LINENO: result: yes" >&5
12962 $as_echo "yes" >&6; }
12964 cat >>confdefs.h
<<\_ACEOF
12965 #define HAVE_2ARGS_VFS_UNLINK 1
12970 $as_echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.
$ac_ext >&5
12973 { $as_echo "$as_me:$LINENO: result: no" >&5
12974 $as_echo "no" >&6; }
12975 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
12976 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
12979 cat confdefs.h
- <<_ACEOF >conftest.c
12982 cat confdefs.h
>>conftest.
$ac_ext
12983 cat >>conftest.
$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12987 #include <linux/fs.h>
12993 vfs_unlink((struct inode *) NULL,
12994 (struct dentry *) NULL,
12995 (struct inode **) NULL);
13004 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13005 echo "obj-m := conftest.o" >build
/Makefile
13007 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13008 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'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13020 { $as_echo "$as_me:$LINENO: result: yes" >&5
13021 $as_echo "yes" >&6; }
13023 cat >>confdefs.h
<<\_ACEOF
13024 #define HAVE_3ARGS_VFS_UNLINK 1
13029 $as_echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.
$ac_ext >&5
13032 { { $as_echo "$as_me:$LINENO: error: no" >&5
13033 $as_echo "$as_me: error: no" >&2;}
13034 { (exit 1); exit 1; }; }
13053 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
13054 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13057 cat confdefs.h
- <<_ACEOF >conftest.c
13060 cat confdefs.h
>>conftest.
$ac_ext
13061 cat >>conftest.
$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13065 #include <linux/fs.h>
13071 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13072 (struct inode *) NULL, (struct dentry *) NULL);
13081 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13082 echo "obj-m := conftest.o" >build
/Makefile
13084 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13085 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'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13097 { $as_echo "$as_me:$LINENO: result: yes" >&5
13098 $as_echo "yes" >&6; }
13100 cat >>confdefs.h
<<\_ACEOF
13101 #define HAVE_4ARGS_VFS_RENAME 1
13106 $as_echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.
$ac_ext >&5
13109 { $as_echo "$as_me:$LINENO: result: no" >&5
13110 $as_echo "no" >&6; }
13111 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
13112 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13115 cat confdefs.h
- <<_ACEOF >conftest.c
13118 cat confdefs.h
>>conftest.
$ac_ext
13119 cat >>conftest.
$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13123 #include <linux/fs.h>
13129 vfs_rename((struct inode *) NULL,
13130 (struct dentry *) NULL,
13131 (struct inode *) NULL,
13132 (struct dentry *) NULL,
13133 (struct inode **) NULL);
13142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13143 echo "obj-m := conftest.o" >build
/Makefile
13145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13146 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'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13158 { $as_echo "$as_me:$LINENO: result: yes" >&5
13159 $as_echo "yes" >&6; }
13161 cat >>confdefs.h
<<\_ACEOF
13162 #define HAVE_5ARGS_VFS_RENAME 1
13167 $as_echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.
$ac_ext >&5
13170 { $as_echo "$as_me:$LINENO: result: no" >&5
13171 $as_echo "no" >&6; }
13172 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
13173 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13176 cat confdefs.h
- <<_ACEOF >conftest.c
13179 cat confdefs.h
>>conftest.
$ac_ext
13180 cat >>conftest.
$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13184 #include <linux/fs.h>
13190 vfs_rename((struct inode *) NULL,
13191 (struct dentry *) NULL,
13192 (struct inode *) NULL,
13193 (struct dentry *) NULL,
13194 (struct inode **) NULL,
13204 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13205 echo "obj-m := conftest.o" >build
/Makefile
13207 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13208 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'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13220 { $as_echo "$as_me:$LINENO: result: yes" >&5
13221 $as_echo "yes" >&6; }
13223 cat >>confdefs.h
<<\_ACEOF
13224 #define HAVE_6ARGS_VFS_RENAME 1
13229 $as_echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.
$ac_ext >&5
13232 { { $as_echo "$as_me:$LINENO: error: no" >&5
13233 $as_echo "$as_me: error: no" >&2;}
13234 { (exit 1); exit 1; }; }
13261 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
13262 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13265 cat confdefs.h
- <<_ACEOF >conftest.c
13268 cat confdefs.h
>>conftest.
$ac_ext
13269 cat >>conftest.
$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13273 #include <linux/fs.h>
13279 vfs_fsync(NULL, 0);
13288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13289 echo "obj-m := conftest.o" >build
/Makefile
13291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13292 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'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13304 { $as_echo "$as_me:$LINENO: result: yes" >&5
13305 $as_echo "yes" >&6; }
13307 cat >>confdefs.h
<<\_ACEOF
13308 #define HAVE_2ARGS_VFS_FSYNC 1
13313 $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.
$ac_ext >&5
13316 { $as_echo "$as_me:$LINENO: result: no" >&5
13317 $as_echo "no" >&6; }
13328 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
13329 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13332 cat confdefs.h
- <<_ACEOF >conftest.c
13335 cat confdefs.h
>>conftest.
$ac_ext
13336 cat >>conftest.
$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13340 #include <linux/fs.h>
13346 struct inode_operations ops;
13347 ops.truncate_range = NULL;
13356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13357 echo "obj-m := conftest.o" >build
/Makefile
13359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13360 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'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13372 { $as_echo "$as_me:$LINENO: result: yes" >&5
13373 $as_echo "yes" >&6; }
13375 cat >>confdefs.h
<<\_ACEOF
13376 #define HAVE_INODE_TRUNCATE_RANGE 1
13381 $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.
$ac_ext >&5
13384 { $as_echo "$as_me:$LINENO: result: no" >&5
13385 $as_echo "no" >&6; }
13396 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
13397 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13398 tmp_flags
="$EXTRA_KCFLAGS"
13399 EXTRA_KCFLAGS
="-Werror"
13402 cat confdefs.h
- <<_ACEOF >conftest.c
13405 cat confdefs.h
>>conftest.
$ac_ext
13406 cat >>conftest.
$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13410 #include <linux/sched.h>
13411 #include <linux/fs_struct.h>
13417 static struct fs_struct fs;
13418 spin_lock_init(&fs.lock);
13427 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13428 echo "obj-m := conftest.o" >build
/Makefile
13430 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13431 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'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13443 { $as_echo "$as_me:$LINENO: result: yes" >&5
13444 $as_echo "yes" >&6; }
13446 cat >>confdefs.h
<<\_ACEOF
13447 #define HAVE_FS_STRUCT_SPINLOCK 1
13452 $as_echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.
$ac_ext >&5
13455 { $as_echo "$as_me:$LINENO: result: no" >&5
13456 $as_echo "no" >&6; }
13465 EXTRA_KCFLAGS
="$tmp_flags"
13468 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
13469 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13472 cat confdefs.h
- <<_ACEOF >conftest.c
13475 cat confdefs.h
>>conftest.
$ac_ext
13476 cat >>conftest.
$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13480 #include <linux/uidgid.h>
13486 kuid_t userid = KUIDT_INIT(0);
13487 kgid_t groupid = KGIDT_INIT(0);
13496 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13497 echo "obj-m := conftest.o" >build
/Makefile
13499 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13500 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'
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13514 cat confdefs.h
- <<_ACEOF >conftest.c
13517 cat confdefs.h
>>conftest.
$ac_ext
13518 cat >>conftest.
$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13522 #include <linux/uidgid.h>
13529 kgid_t groupid = 0;
13538 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13539 echo "obj-m := conftest.o" >build
/Makefile
13541 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13542 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'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
13554 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
13555 $as_echo "yes; optional" >&6; }
13558 $as_echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.
$ac_ext >&5
13561 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
13562 $as_echo "yes; mandatory" >&6; }
13564 cat >>confdefs.h
<<\_ACEOF
13565 #define HAVE_KUIDGID_T 1
13578 $as_echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.
$ac_ext >&5
13581 { $as_echo "$as_me:$LINENO: result: no" >&5
13582 $as_echo "no" >&6; }
13594 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13598 cat confdefs.h
- <<_ACEOF >conftest.c
13601 cat confdefs.h
>>conftest.
$ac_ext
13602 cat >>conftest.
$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13606 #include <linux/fs.h>
13612 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13613 struct file_operations fops __attribute__ ((unused)) = {
13614 .fallocate = fallocate,
13624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13625 echo "obj-m := conftest.o" >build
/Makefile
13627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13628 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'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13640 { $as_echo "$as_me:$LINENO: result: yes" >&5
13641 $as_echo "yes" >&6; }
13643 cat >>confdefs.h
<<\_ACEOF
13644 #define HAVE_FILE_FALLOCATE 1
13649 $as_echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.
$ac_ext >&5
13652 { $as_echo "$as_me:$LINENO: result: no" >&5
13653 $as_echo "no" >&6; }
13664 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
13665 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
13668 cat confdefs.h
- <<_ACEOF >conftest.c
13671 cat confdefs.h
>>conftest.
$ac_ext
13672 cat >>conftest.
$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13676 #include <linux/fs.h>
13682 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
13683 struct inode_operations fops __attribute__ ((unused)) = {
13684 .fallocate = fallocate,
13694 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13695 echo "obj-m := conftest.o" >build
/Makefile
13697 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13698 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'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13710 { $as_echo "$as_me:$LINENO: result: yes" >&5
13711 $as_echo "yes" >&6; }
13713 cat >>confdefs.h
<<\_ACEOF
13714 #define HAVE_INODE_FALLOCATE 1
13719 $as_echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.
$ac_ext >&5
13722 { $as_echo "$as_me:$LINENO: result: no" >&5
13723 $as_echo "no" >&6; }
13734 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13735 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13738 cat confdefs.h
- <<_ACEOF >conftest.c
13741 cat confdefs.h
>>conftest.
$ac_ext
13742 cat >>conftest.
$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13746 #include <linux/fs.h>
13752 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13753 struct file_operations_no_const fops __attribute__ ((unused)) = {
13754 .fallocate = fallocate,
13764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13765 echo "obj-m := conftest.o" >build
/Makefile
13767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13768 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'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13780 { $as_echo "$as_me:$LINENO: result: yes" >&5
13781 $as_echo "yes" >&6; }
13783 cat >>confdefs.h
<<\_ACEOF
13784 #define HAVE_FILE_FALLOCATE 1
13789 $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.
$ac_ext >&5
13792 { $as_echo "$as_me:$LINENO: result: no" >&5
13793 $as_echo "no" >&6; }
13805 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
13806 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
13809 cat confdefs.h
- <<_ACEOF >conftest.c
13812 cat confdefs.h
>>conftest.
$ac_ext
13813 cat >>conftest.
$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13817 #if !defined(CONFIG_ZLIB_INFLATE) && \
13818 !defined(CONFIG_ZLIB_INFLATE_MODULE)
13819 #error CONFIG_ZLIB_INFLATE not defined
13833 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13834 echo "obj-m := conftest.o" >build
/Makefile
13836 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13837 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'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13849 { $as_echo "$as_me:$LINENO: result: yes" >&5
13850 $as_echo "yes" >&6; }
13853 $as_echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.
$ac_ext >&5
13856 { $as_echo "$as_me:$LINENO: result: no" >&5
13857 $as_echo "no" >&6; }
13858 { { $as_echo "$as_me:$LINENO: error:
13859 *** This kernel does not include the required zlib inflate support.
13860 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
13861 $as_echo "$as_me: error:
13862 *** This kernel does not include the required zlib inflate support.
13863 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
13864 { (exit 1); exit 1; }; }
13875 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
13876 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
13879 cat confdefs.h
- <<_ACEOF >conftest.c
13882 cat confdefs.h
>>conftest.
$ac_ext
13883 cat >>conftest.
$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13887 #if !defined(CONFIG_ZLIB_DEFLATE) && \
13888 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
13889 #error CONFIG_ZLIB_DEFLATE not defined
13903 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13904 echo "obj-m := conftest.o" >build
/Makefile
13906 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13907 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'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13919 { $as_echo "$as_me:$LINENO: result: yes" >&5
13920 $as_echo "yes" >&6; }
13923 $as_echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.
$ac_ext >&5
13926 { $as_echo "$as_me:$LINENO: result: no" >&5
13927 $as_echo "no" >&6; }
13928 { { $as_echo "$as_me:$LINENO: error:
13929 *** This kernel does not include the required zlib deflate support.
13930 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
13931 $as_echo "$as_me: error:
13932 *** This kernel does not include the required zlib deflate support.
13933 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
13934 { (exit 1); exit 1; }; }
13944 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
13945 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
13948 cat confdefs.h
- <<_ACEOF >conftest.c
13951 cat confdefs.h
>>conftest.
$ac_ext
13952 cat >>conftest.
$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13956 #include <linux/zlib.h>
13962 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
13971 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13972 echo "obj-m := conftest.o" >build
/Makefile
13974 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13975 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'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13987 { $as_echo "$as_me:$LINENO: result: yes" >&5
13988 $as_echo "yes" >&6; }
13990 cat >>confdefs.h
<<\_ACEOF
13991 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
13996 $as_echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.
$ac_ext >&5
13999 { $as_echo "$as_me:$LINENO: result: no" >&5
14000 $as_echo "no" >&6; }
14011 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
14012 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
14015 cat confdefs.h
- <<_ACEOF >conftest.c
14018 cat confdefs.h
>>conftest.
$ac_ext
14019 cat >>conftest.
$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14023 #include <linux/mm.h>
14029 struct shrink_control sc __attribute__ ((unused));
14032 sc.gfp_mask = GFP_KERNEL;
14041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14042 echo "obj-m := conftest.o" >build
/Makefile
14044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14045 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'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14057 { $as_echo "$as_me:$LINENO: result: yes" >&5
14058 $as_echo "yes" >&6; }
14060 cat >>confdefs.h
<<\_ACEOF
14061 #define HAVE_SHRINK_CONTROL_STRUCT 1
14066 $as_echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.
$ac_ext >&5
14069 { $as_echo "$as_me:$LINENO: result: no" >&5
14070 $as_echo "no" >&6; }
14081 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
14082 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14083 tmp_flags
="$EXTRA_KCFLAGS"
14084 EXTRA_KCFLAGS
="-Werror"
14087 cat confdefs.h
- <<_ACEOF >conftest.c
14090 cat confdefs.h
>>conftest.
$ac_ext
14091 cat >>conftest.
$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14095 #include <linux/rwsem.h>
14101 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14102 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
14103 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
14104 dummy_semaphore.wait_lock = dummy_lock;
14113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14114 echo "obj-m := conftest.o" >build
/Makefile
14116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14117 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'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14129 { $as_echo "$as_me:$LINENO: result: yes" >&5
14130 $as_echo "yes" >&6; }
14132 cat >>confdefs.h
<<\_ACEOF
14133 #define RWSEM_SPINLOCK_IS_RAW 1
14138 $as_echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.
$ac_ext >&5
14141 { $as_echo "$as_me:$LINENO: result: no" >&5
14142 $as_echo "no" >&6; }
14151 EXTRA_KCFLAGS
="$tmp_flags"
14154 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
14155 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14156 tmp_flags
="$EXTRA_KCFLAGS"
14157 EXTRA_KCFLAGS
="-Werror"
14160 cat confdefs.h
- <<_ACEOF >conftest.c
14163 cat confdefs.h
>>conftest.
$ac_ext
14164 cat >>conftest.
$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14168 #include <linux/rwsem.h>
14174 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14175 dummy_semaphore.activity = 0;
14184 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14185 echo "obj-m := conftest.o" >build
/Makefile
14187 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14188 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'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14200 { $as_echo "$as_me:$LINENO: result: yes" >&5
14201 $as_echo "yes" >&6; }
14203 cat >>confdefs.h
<<\_ACEOF
14204 #define HAVE_RWSEM_ACTIVITY 1
14209 $as_echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.
$ac_ext >&5
14212 { $as_echo "$as_me:$LINENO: result: no" >&5
14213 $as_echo "no" >&6; }
14222 EXTRA_KCFLAGS
="$tmp_flags"
14225 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14226 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14227 tmp_flags
="$EXTRA_KCFLAGS"
14228 EXTRA_KCFLAGS
="-Werror"
14231 cat confdefs.h
- <<_ACEOF >conftest.c
14234 cat confdefs.h
>>conftest.
$ac_ext
14235 cat >>conftest.
$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14239 #include <linux/rwsem.h>
14245 DECLARE_RWSEM(dummy_semaphore);
14246 (void) atomic_long_read(&dummy_semaphore.count);
14255 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14256 echo "obj-m := conftest.o" >build
/Makefile
14258 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14259 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'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14271 { $as_echo "$as_me:$LINENO: result: yes" >&5
14272 $as_echo "yes" >&6; }
14274 cat >>confdefs.h
<<\_ACEOF
14275 #define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
14280 $as_echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14283 { $as_echo "$as_me:$LINENO: result: no" >&5
14284 $as_echo "no" >&6; }
14293 EXTRA_KCFLAGS
="$tmp_flags"
14295 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
14296 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14299 cat confdefs.h
- <<_ACEOF >conftest.c
14302 cat confdefs.h
>>conftest.
$ac_ext
14303 cat >>conftest.
$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14307 #include <linux/sched.h>
14308 #include <linux/sched/rt.h>
14323 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14324 echo "obj-m := conftest.o" >build
/Makefile
14326 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14327 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'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14340 cat >>confdefs.h
<<\_ACEOF
14341 #define HAVE_SCHED_RT_HEADER 1
14344 { $as_echo "$as_me:$LINENO: result: yes" >&5
14345 $as_echo "yes" >&6; }
14348 $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.
$ac_ext >&5
14351 { $as_echo "$as_me:$LINENO: result: no" >&5
14352 $as_echo "no" >&6; }
14362 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
14363 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
14366 cat confdefs.h
- <<_ACEOF >conftest.c
14369 cat confdefs.h
>>conftest.
$ac_ext
14370 cat >>conftest.
$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14374 #include <linux/sched.h>
14375 #include <linux/sched/signal.h>
14390 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14391 echo "obj-m := conftest.o" >build
/Makefile
14393 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14394 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'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14407 cat >>confdefs.h
<<\_ACEOF
14408 #define HAVE_SCHED_SIGNAL_HEADER 1
14411 { $as_echo "$as_me:$LINENO: result: yes" >&5
14412 $as_echo "yes" >&6; }
14415 $as_echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.
$ac_ext >&5
14418 { $as_echo "$as_me:$LINENO: result: no" >&5
14419 $as_echo "no" >&6; }
14430 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
14431 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
14434 cat confdefs.h
- <<_ACEOF >conftest.c
14437 cat confdefs.h
>>conftest.
$ac_ext
14438 cat >>conftest.
$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14442 #include <linux/fs.h>
14448 vfs_getattr((const struct path *)NULL,
14449 (struct kstat *)NULL,
14460 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14461 echo "obj-m := conftest.o" >build
/Makefile
14463 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14464 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'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14476 { $as_echo "$as_me:$LINENO: result: yes" >&5
14477 $as_echo "yes" >&6; }
14479 cat >>confdefs.h
<<\_ACEOF
14480 #define HAVE_4ARGS_VFS_GETATTR 1
14485 $as_echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.
$ac_ext >&5
14488 { $as_echo "$as_me:$LINENO: result: no" >&5
14489 $as_echo "no" >&6; }
14500 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
14501 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
14504 cat confdefs.h
- <<_ACEOF >conftest.c
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14512 #include <linux/fs.h>
14518 vfs_getattr((struct vfsmount *)NULL,
14519 (struct dentry *)NULL,
14520 (struct kstat *)NULL);
14529 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14530 echo "obj-m := conftest.o" >build
/Makefile
14532 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14533 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'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14545 { $as_echo "$as_me:$LINENO: result: yes" >&5
14546 $as_echo "yes" >&6; }
14548 cat >>confdefs.h
<<\_ACEOF
14549 #define HAVE_3ARGS_VFS_GETATTR 1
14554 $as_echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.
$ac_ext >&5
14557 { $as_echo "$as_me:$LINENO: result: no" >&5
14558 $as_echo "no" >&6; }
14569 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
14570 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
14573 cat confdefs.h
- <<_ACEOF >conftest.c
14576 cat confdefs.h
>>conftest.
$ac_ext
14577 cat >>conftest.
$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14581 #include <linux/fs.h>
14587 vfs_getattr((struct path *) NULL,
14588 (struct kstat *)NULL);
14597 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14598 echo "obj-m := conftest.o" >build
/Makefile
14600 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14601 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'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14613 { $as_echo "$as_me:$LINENO: result: yes" >&5
14614 $as_echo "yes" >&6; }
14616 cat >>confdefs.h
<<\_ACEOF
14617 #define HAVE_2ARGS_VFS_GETATTR 1
14622 $as_echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.
$ac_ext >&5
14625 { $as_echo "$as_me:$LINENO: result: no" >&5
14626 $as_echo "no" >&6; }
14637 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
14638 $as_echo_n "checking whether usleep_range() is available... " >&6; }
14641 cat confdefs.h
- <<_ACEOF >conftest.c
14644 cat confdefs.h
>>conftest.
$ac_ext
14645 cat >>conftest.
$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14649 #include <linux/delay.h>
14655 usleep_range(0, 0);
14664 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14665 echo "obj-m := conftest.o" >build
/Makefile
14667 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14668 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'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14680 { $as_echo "$as_me:$LINENO: result: yes" >&5
14681 $as_echo "yes" >&6; }
14683 cat >>confdefs.h
<<\_ACEOF
14684 #define HAVE_USLEEP_RANGE 1
14689 $as_echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.
$ac_ext >&5
14692 { $as_echo "$as_me:$LINENO: result: no" >&5
14693 $as_echo "no" >&6; }
14704 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
14705 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14708 cat confdefs.h
- <<_ACEOF >conftest.c
14711 cat confdefs.h
>>conftest.
$ac_ext
14712 cat >>conftest.
$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14716 #include <linux/slab.h>
14722 struct kmem_cache cachep __attribute__ ((unused));
14723 cachep.allocflags = GFP_KERNEL;
14732 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14733 echo "obj-m := conftest.o" >build
/Makefile
14735 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14736 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'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14748 { $as_echo "$as_me:$LINENO: result: yes" >&5
14749 $as_echo "yes" >&6; }
14751 cat >>confdefs.h
<<\_ACEOF
14752 #define HAVE_KMEM_CACHE_ALLOCFLAGS 1
14757 $as_echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.
$ac_ext >&5
14760 { $as_echo "$as_me:$LINENO: result: no" >&5
14761 $as_echo "no" >&6; }
14763 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
14764 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
14767 cat confdefs.h
- <<_ACEOF >conftest.c
14770 cat confdefs.h
>>conftest.
$ac_ext
14771 cat >>conftest.
$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14775 #include <linux/slab.h>
14781 struct kmem_cache cachep __attribute__ ((unused));
14782 cachep.gfpflags = GFP_KERNEL;
14791 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14792 echo "obj-m := conftest.o" >build
/Makefile
14794 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14795 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'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14807 { $as_echo "$as_me:$LINENO: result: yes" >&5
14808 $as_echo "yes" >&6; }
14810 cat >>confdefs.h
<<\_ACEOF
14811 #define HAVE_KMEM_CACHE_GFPFLAGS 1
14816 $as_echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.
$ac_ext >&5
14819 { $as_echo "$as_me:$LINENO: result: no" >&5
14820 $as_echo "no" >&6; }
14839 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
14840 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
14843 cat confdefs.h
- <<_ACEOF >conftest.c
14846 cat confdefs.h
>>conftest.
$ac_ext
14847 cat >>conftest.
$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14851 #include <linux/wait.h>
14857 int (*action)(void *) = NULL;
14858 wait_on_bit(NULL, 0, action, 0);
14867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14868 echo "obj-m := conftest.o" >build
/Makefile
14870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14871 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'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14883 { $as_echo "$as_me:$LINENO: result: yes" >&5
14884 $as_echo "yes" >&6; }
14886 cat >>confdefs.h
<<\_ACEOF
14887 #define HAVE_WAIT_ON_BIT_ACTION 1
14892 $as_echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.
$ac_ext >&5
14895 { $as_echo "$as_me:$LINENO: result: no" >&5
14896 $as_echo "no" >&6; }
14907 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
14908 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
14909 tmp_flags
="$EXTRA_KCFLAGS"
14910 EXTRA_KCFLAGS
="-Werror"
14913 cat confdefs.h
- <<_ACEOF >conftest.c
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14921 #include <linux/fs.h>
14927 struct inode *inode = NULL;
14928 inode_lock_shared(inode);
14937 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14938 echo "obj-m := conftest.o" >build
/Makefile
14940 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14941 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'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14953 { $as_echo "$as_me:$LINENO: result: yes" >&5
14954 $as_echo "yes" >&6; }
14956 cat >>confdefs.h
<<\_ACEOF
14957 #define HAVE_INODE_LOCK_SHARED 1
14962 $as_echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.
$ac_ext >&5
14965 { $as_echo "$as_me:$LINENO: result: no" >&5
14966 $as_echo "no" >&6; }
14975 EXTRA_KCFLAGS
="$tmp_flags"
14978 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
14979 $as_echo_n "checking whether group_info->gid exists... " >&6; }
14980 tmp_flags
="$EXTRA_KCFLAGS"
14981 EXTRA_KCFLAGS
="-Werror"
14984 cat confdefs.h
- <<_ACEOF >conftest.c
14987 cat confdefs.h
>>conftest.
$ac_ext
14988 cat >>conftest.
$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14992 #include <linux/cred.h>
14998 struct group_info *gi = groups_alloc(1);
14999 gi->gid[0] = KGIDT_INIT(0);
15008 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15009 echo "obj-m := conftest.o" >build
/Makefile
15011 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15012 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'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15024 { $as_echo "$as_me:$LINENO: result: yes" >&5
15025 $as_echo "yes" >&6; }
15027 cat >>confdefs.h
<<\_ACEOF
15028 #define HAVE_GROUP_INFO_GID 1
15033 $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.
$ac_ext >&5
15036 { $as_echo "$as_me:$LINENO: result: no" >&5
15037 $as_echo "no" >&6; }
15046 EXTRA_KCFLAGS
="$tmp_flags"
15049 { $as_echo "$as_me:$LINENO: checking whether kmem_cache_create_usercopy() exists" >&5
15050 $as_echo_n "checking whether kmem_cache_create_usercopy() exists... " >&6; }
15051 tmp_flags
="$EXTRA_KCFLAGS"
15052 EXTRA_KCFLAGS
="-Werror"
15055 cat confdefs.h
- <<_ACEOF >conftest.c
15058 cat confdefs.h
>>conftest.
$ac_ext
15059 cat >>conftest.
$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15063 #include <linux/slab.h>
15064 static void ctor(void *foo)
15073 struct kmem_cache *skc_linux_cache;
15074 const char *name = "test";
15075 size_t size = 4096;
15077 unsigned long flags = 0;
15078 size_t useroffset = 0;
15079 size_t usersize = size - useroffset;
15081 skc_linux_cache = kmem_cache_create_usercopy(
15082 name, size, align, flags, useroffset, usersize, ctor);
15091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15092 echo "obj-m := conftest.o" >build
/Makefile
15094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15095 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'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15107 { $as_echo "$as_me:$LINENO: result: yes" >&5
15108 $as_echo "yes" >&6; }
15110 cat >>confdefs.h
<<\_ACEOF
15111 #define HAVE_KMEM_CACHE_CREATE_USERCOPY 1
15116 $as_echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.
$ac_ext >&5
15119 { $as_echo "$as_me:$LINENO: result: no" >&5
15120 $as_echo "no" >&6; }
15129 EXTRA_KCFLAGS
="$tmp_flags"
15132 { $as_echo "$as_me:$LINENO: checking whether wait_queue_entry_t exists" >&5
15133 $as_echo_n "checking whether wait_queue_entry_t exists... " >&6; }
15136 cat confdefs.h
- <<_ACEOF >conftest.c
15139 cat confdefs.h
>>conftest.
$ac_ext
15140 cat >>conftest.
$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15144 #include <linux/wait.h>
15150 wait_queue_entry_t *entry __attribute__ ((unused));
15159 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15160 echo "obj-m := conftest.o" >build
/Makefile
15162 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15163 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'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15175 { $as_echo "$as_me:$LINENO: result: yes" >&5
15176 $as_echo "yes" >&6; }
15178 cat >>confdefs.h
<<\_ACEOF
15179 #define HAVE_WAIT_QUEUE_ENTRY_T 1
15184 $as_echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.
$ac_ext >&5
15187 { $as_echo "$as_me:$LINENO: result: no" >&5
15188 $as_echo "no" >&6; }
15199 { $as_echo "$as_me:$LINENO: checking whether wq_head->head and wq_entry->entry exist" >&5
15200 $as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; }
15203 cat confdefs.h
- <<_ACEOF >conftest.c
15206 cat confdefs.h
>>conftest.
$ac_ext
15207 cat >>conftest.
$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15211 #include <linux/wait.h>
15213 #ifdef HAVE_WAIT_QUEUE_ENTRY_T
15214 typedef wait_queue_head_t spl_wait_queue_head_t;
15215 typedef wait_queue_entry_t spl_wait_queue_entry_t;
15217 typedef wait_queue_head_t spl_wait_queue_head_t;
15218 typedef wait_queue_t spl_wait_queue_entry_t;
15225 spl_wait_queue_head_t wq_head;
15226 spl_wait_queue_entry_t wq_entry;
15227 struct list_head *head __attribute__ ((unused));
15228 struct list_head *entry __attribute__ ((unused));
15230 head = &wq_head.head;
15231 entry = &wq_entry.entry;
15240 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15241 echo "obj-m := conftest.o" >build
/Makefile
15243 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15244 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'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15256 { $as_echo "$as_me:$LINENO: result: yes" >&5
15257 $as_echo "yes" >&6; }
15259 cat >>confdefs.h
<<\_ACEOF
15260 #define HAVE_WAIT_QUEUE_HEAD_ENTRY 1
15265 $as_echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.
$ac_ext >&5
15268 { $as_echo "$as_me:$LINENO: result: no" >&5
15269 $as_echo "no" >&6; }
15280 { $as_echo "$as_me:$LINENO: checking whether kernel_write() takes loff_t pointer" >&5
15281 $as_echo_n "checking whether kernel_write() takes loff_t pointer... " >&6; }
15282 tmp_flags
="$EXTRA_KCFLAGS"
15283 EXTRA_KCFLAGS
="-Werror"
15286 cat confdefs.h
- <<_ACEOF >conftest.c
15289 cat confdefs.h
>>conftest.
$ac_ext
15290 cat >>conftest.
$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15294 #include <linux/fs.h>
15300 struct file *file = NULL;
15301 const void *buf = NULL;
15303 loff_t *pos = NULL;
15306 ret = kernel_write(file, buf, count, pos);
15315 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15316 echo "obj-m := conftest.o" >build
/Makefile
15318 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15319 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'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15331 { $as_echo "$as_me:$LINENO: result: yes" >&5
15332 $as_echo "yes" >&6; }
15334 cat >>confdefs.h
<<\_ACEOF
15335 #define HAVE_KERNEL_WRITE_PPOS 1
15340 $as_echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.
$ac_ext >&5
15343 { $as_echo "$as_me:$LINENO: result: no" >&5
15344 $as_echo "no" >&6; }
15353 EXTRA_KCFLAGS
="$tmp_flags"
15356 { $as_echo "$as_me:$LINENO: checking whether kernel_read() takes loff_t pointer" >&5
15357 $as_echo_n "checking whether kernel_read() takes loff_t pointer... " >&6; }
15358 tmp_flags
="$EXTRA_KCFLAGS"
15359 EXTRA_KCFLAGS
="-Werror"
15362 cat confdefs.h
- <<_ACEOF >conftest.c
15365 cat confdefs.h
>>conftest.
$ac_ext
15366 cat >>conftest.
$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15370 #include <linux/fs.h>
15376 struct file *file = NULL;
15379 loff_t *pos = NULL;
15382 ret = kernel_read(file, buf, count, pos);
15391 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15392 echo "obj-m := conftest.o" >build
/Makefile
15394 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15395 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'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15407 { $as_echo "$as_me:$LINENO: result: yes" >&5
15408 $as_echo "yes" >&6; }
15410 cat >>confdefs.h
<<\_ACEOF
15411 #define HAVE_KERNEL_READ_PPOS 1
15416 $as_echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.
$ac_ext >&5
15419 { $as_echo "$as_me:$LINENO: result: no" >&5
15420 $as_echo "no" >&6; }
15429 EXTRA_KCFLAGS
="$tmp_flags"
15436 # Check whether --with-linux was given.
15437 if test "${with_linux+set}" = set; then
15438 withval
=$with_linux; kernelsrc
="$withval"
15443 # Check whether --with-linux-obj was given.
15444 if test "${with_linux_obj+set}" = set; then
15445 withval
=$with_linux_obj; kernelbuild
="$withval"
15449 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15450 $as_echo_n "checking kernel source directory... " >&6; }
15451 if test -z "$kernelsrc"; then
15452 if test -e "/lib/modules/$(uname -r)/source"; then
15453 headersdir
="/lib/modules/$(uname -r)/source"
15454 sourcelink
=$
(readlink
-f "$headersdir")
15455 elif test -e "/lib/modules/$(uname -r)/build"; then
15456 headersdir
="/lib/modules/$(uname -r)/build"
15457 sourcelink
=$
(readlink
-f "$headersdir")
15459 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
15461 2>/dev
/null |
grep -v obj |
tail -1)
15464 if test -n "$sourcelink" && test -e ${sourcelink}; then
15465 kernelsrc
=`readlink -f ${sourcelink}`
15467 kernelsrc
="Not found"
15470 if test "$kernelsrc" = "NONE"; then
15476 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15477 $as_echo "$kernelsrc" >&6; }
15478 if test ! -d "$kernelsrc"; then
15479 { { $as_echo "$as_me:$LINENO: error:
15480 *** Please make sure the kernel devel package for your distribution
15481 *** is installed and then try again. If that fails, you can specify the
15482 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15483 $as_echo "$as_me: error:
15484 *** Please make sure the kernel devel package for your distribution
15485 *** is installed and then try again. If that fails, you can specify the
15486 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15487 { (exit 1); exit 1; }; }
15490 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15491 $as_echo_n "checking kernel build directory... " >&6; }
15492 if test -z "$kernelbuild"; then
15493 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then
15494 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
15495 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15496 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15497 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
15498 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
15499 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
15500 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
15502 kernelbuild
=${kernelsrc}
15505 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15506 $as_echo "$kernelbuild" >&6; }
15508 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15509 $as_echo_n "checking kernel source version... " >&6; }
15510 utsrelease1
=$kernelbuild/include
/linux
/version.h
15511 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
15512 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
15513 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
15514 utsrelease
=linux
/version.h
15515 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
15516 utsrelease
=linux
/utsrelease.h
15517 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
15518 utsrelease
=generated
/utsrelease.h
15521 if test "$utsrelease"; then
15522 kernsrcver
=`(echo "#include <$utsrelease>";
15523 echo "kernsrcver=UTS_RELEASE") |
15524 cpp -I $kernelbuild/include |
15525 grep "^kernsrcver=" | cut -d \" -f 2`
15527 if test -z "$kernsrcver"; then
15528 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15529 $as_echo "Not found" >&6; }
15530 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15531 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15532 { (exit 1); exit 1; }; }
15535 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15536 $as_echo "Not found" >&6; }
15537 if test "x$enable_linux_builtin" != xyes
; then
15538 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15539 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15540 { (exit 1); exit 1; }; }
15542 { { $as_echo "$as_me:$LINENO: error:
15543 *** Cannot find UTS_RELEASE definition.
15544 *** Please run 'make prepare' inside the kernel source tree." >&5
15545 $as_echo "$as_me: error:
15546 *** Cannot find UTS_RELEASE definition.
15547 *** Please run 'make prepare' inside the kernel source tree." >&2;}
15548 { (exit 1); exit 1; }; }
15552 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15553 $as_echo "$kernsrcver" >&6; }
15556 LINUX_OBJ
=${kernelbuild}
15557 LINUX_VERSION
=${kernsrcver}
15564 modpost
=$LINUX/scripts
/Makefile.modpost
15565 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15566 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15567 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
15568 if grep -q Modules.symvers
$modpost; then
15569 LINUX_SYMBOLS
=Modules.symvers
15571 LINUX_SYMBOLS
=Module.symvers
15574 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15575 { { $as_echo "$as_me:$LINENO: error:
15576 *** Please make sure the kernel devel package for your distribution
15577 *** is installed. If you are building with a custom kernel, make sure the
15578 *** kernel is configured, built, and the '--with-linux=PATH' configure
15579 *** option refers to the location of the kernel source." >&5
15580 $as_echo "$as_me: error:
15581 *** Please make sure the kernel devel package for your distribution
15582 *** is installed. If you are building with a custom kernel, make sure the
15583 *** kernel is configured, built, and the '--with-linux=PATH' configure
15584 *** option refers to the location of the kernel source." >&2;}
15585 { (exit 1); exit 1; }; }
15590 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15591 $as_echo "$LINUX_SYMBOLS" >&6; }
15596 if test "${LINUX_OBJ}" != "${LINUX}"; then
15597 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15601 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wstrict-prototypes"
15605 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15606 $as_echo_n "checking whether debugging is enabled... " >&6; }
15607 # Check whether --enable-debug was given.
15608 if test "${enable_debug+set}" = set; then
15609 enableval
=$enable_debug;
15615 if test "x$enable_debug" = xyes
; then
15617 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
15618 DEBUG_CFLAGS
="-DDEBUG -Werror"
15619 DEBUG_SPL
="_with_debug"
15623 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG"
15624 DEBUG_CFLAGS
="-DNDEBUG"
15625 DEBUG_SPL
="_without_debug"
15632 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15633 $as_echo "$enable_debug" >&6; }
15636 # Check whether --enable-debug-kmem was given.
15637 if test "${enable_debug_kmem+set}" = set; then
15638 enableval
=$enable_debug_kmem;
15640 enable_debug_kmem
=no
15644 if test "x$enable_debug_kmem" = xyes
; then
15646 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15647 DEBUG_KMEM
="_with_debug_kmem"
15649 cat >>confdefs.h
<<\_ACEOF
15650 #define DEBUG_KMEM 1
15656 DEBUG_KMEM
="_without_debug_kmem"
15662 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15663 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15664 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15665 $as_echo "$enable_debug_kmem" >&6; }
15668 # Check whether --enable-debug-kmem-tracking was given.
15669 if test "${enable_debug_kmem_tracking+set}" = set; then
15670 enableval
=$enable_debug_kmem_tracking;
15672 enable_debug_kmem_tracking
=no
15676 if test "x$enable_debug_kmem_tracking" = xyes
; then
15678 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15679 DEBUG_KMEM_TRACKING
="_with_debug_kmem_tracking"
15681 cat >>confdefs.h
<<\_ACEOF
15682 #define DEBUG_KMEM_TRACKING 1
15688 DEBUG_KMEM_TRACKING
="_without_debug_kmem_tracking"
15694 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15695 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15696 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15697 $as_echo "$enable_debug_kmem_tracking" >&6; }
15699 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
15700 $as_echo_n "checking whether modules can be built... " >&6; }
15703 cat confdefs.h
- <<_ACEOF >conftest.c
15706 cat confdefs.h
>>conftest.
$ac_ext
15707 cat >>conftest.
$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15722 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15723 echo "obj-m := conftest.o" >build
/Makefile
15725 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15726 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'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15738 { $as_echo "$as_me:$LINENO: result: yes" >&5
15739 $as_echo "yes" >&6; }
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 { $as_echo "$as_me:$LINENO: result: no" >&5
15746 $as_echo "no" >&6; }
15747 if test "x$enable_linux_builtin" != xyes
; then
15748 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
15749 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
15750 { (exit 1); exit 1; }; }
15752 { { $as_echo "$as_me:$LINENO: error:
15753 *** Unable to build an empty module.
15754 *** Please run 'make scripts' inside the kernel source tree." >&5
15755 $as_echo "$as_me: error:
15756 *** Unable to build an empty module.
15757 *** Please run 'make scripts' inside the kernel source tree." >&2;}
15758 { (exit 1); exit 1; }; }
15769 if test "x$cross_compiling" != xyes
; then
15771 if test "$cross_compiling" = yes; then
15772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15774 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15775 See \`config.log' for more details." >&5
15776 $as_echo "$as_me: error: cannot run test program while cross compiling
15777 See \`config.log' for more details." >&2;}
15778 { (exit 1); exit 1; }; }; }
15780 cat >conftest.
$ac_ext <<_ACEOF
15784 cat confdefs.h
>>conftest.
$ac_ext
15785 cat >>conftest.
$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15788 #include "$LINUX/include/linux/license.h"
15794 return !license_is_gpl_compatible(
15795 "$SPL_META_LICENSE");
15802 rm -f conftest
$ac_exeext
15803 if { (ac_try
="$ac_link"
15804 case "(($ac_try" in
15805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15809 $as_echo "$ac_try_echo") >&5
15810 (eval "$ac_link") 2>&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15814 { (case "(($ac_try" in
15815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15816 *) ac_try_echo
=$ac_try;;
15818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15819 $as_echo "$ac_try_echo") >&5
15820 (eval "$ac_try") 2>&5
15822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15826 cat >>confdefs.h
<<\_ACEOF
15827 #define SPL_IS_GPL_COMPATIBLE 1
15832 $as_echo "$as_me: program exited with status $ac_status" >&5
15833 $as_echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.
$ac_ext >&5
15836 ( exit $ac_status )
15840 rm -rf conftest.dSYM
15841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15850 # Check whether --enable-atomic-spinlocks was given.
15851 if test "${enable_atomic_spinlocks+set}" = set; then
15852 enableval
=$enable_atomic_spinlocks;
15854 enable_atomic_spinlocks
=check
15860 cat confdefs.h
- <<_ACEOF >conftest.c
15863 cat confdefs.h
>>conftest.
$ac_ext
15864 cat >>conftest.
$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15868 #include <linux/fs.h>
15874 atomic64_t *ptr __attribute__ ((unused));
15883 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15884 echo "obj-m := conftest.o" >build
/Makefile
15886 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15887 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'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15899 have_atomic64_t
=yes
15901 cat >>confdefs.h
<<\_ACEOF
15902 #define HAVE_ATOMIC64_T 1
15907 $as_echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.
$ac_ext >&5
15920 if test "x$enable_atomic_spinlocks" = xcheck
; then
15922 if test "x$have_atomic64_t" = xyes
; then
15924 enable_atomic_spinlocks
=no
15928 enable_atomic_spinlocks
=yes
15936 if test "x$enable_atomic_spinlocks" = xyes
; then
15939 cat >>confdefs.h
<<\_ACEOF
15940 #define ATOMIC_SPINLOCK 1
15946 if test "x$have_atomic64_t" = xno
; then
15948 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15950 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15951 See \`config.log' for more details." >&5
15952 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15953 See \`config.log' for more details." >&2;}
15954 { (exit 1); exit 1; }; }; }
15962 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15963 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15964 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15965 $as_echo "$enable_atomic_spinlocks" >&6; }
15967 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15968 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15969 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15970 $as_echo "$have_atomic64_t" >&6; }
15973 tmp_flags
="$EXTRA_KCFLAGS"
15974 EXTRA_KCFLAGS
="-Werror"
15975 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
15976 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15979 cat confdefs.h
- <<_ACEOF >conftest.c
15982 cat confdefs.h
>>conftest.
$ac_ext
15983 cat >>conftest.
$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15987 #include <linux/mm.h>
15989 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15995 struct shrinker cache_shrinker = {
15996 .shrink = shrinker_cb,
15997 .seeks = DEFAULT_SEEKS,
15999 register_shrinker(&cache_shrinker);
16008 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16009 echo "obj-m := conftest.o" >build
/Makefile
16011 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16012 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'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16024 { $as_echo "$as_me:$LINENO: result: yes" >&5
16025 $as_echo "yes" >&6; }
16027 cat >>confdefs.h
<<\_ACEOF
16028 #define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
16033 $as_echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.
$ac_ext >&5
16036 { $as_echo "$as_me:$LINENO: result: no" >&5
16037 $as_echo "no" >&6; }
16038 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
16039 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
16042 cat confdefs.h
- <<_ACEOF >conftest.c
16045 cat confdefs.h
>>conftest.
$ac_ext
16046 cat >>conftest.
$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16050 #include <linux/mm.h>
16052 int shrinker_cb(struct shrinker *, int nr_to_scan,
16059 struct shrinker cache_shrinker = {
16060 .shrink = shrinker_cb,
16061 .seeks = DEFAULT_SEEKS,
16063 register_shrinker(&cache_shrinker);
16072 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16073 echo "obj-m := conftest.o" >build
/Makefile
16075 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16076 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'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16088 { $as_echo "$as_me:$LINENO: result: yes" >&5
16089 $as_echo "yes" >&6; }
16091 cat >>confdefs.h
<<\_ACEOF
16092 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
16097 $as_echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.
$ac_ext >&5
16100 { $as_echo "$as_me:$LINENO: result: no" >&5
16101 $as_echo "no" >&6; }
16102 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
16103 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
16106 cat confdefs.h
- <<_ACEOF >conftest.c
16109 cat confdefs.h
>>conftest.
$ac_ext
16110 cat >>conftest.
$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16114 #include <linux/mm.h>
16116 int shrinker_cb(struct shrinker *,
16117 struct shrink_control *sc);
16123 struct shrinker cache_shrinker = {
16124 .shrink = shrinker_cb,
16125 .seeks = DEFAULT_SEEKS,
16127 register_shrinker(&cache_shrinker);
16136 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16137 echo "obj-m := conftest.o" >build
/Makefile
16139 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16140 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'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16152 { $as_echo "$as_me:$LINENO: result: yes" >&5
16153 $as_echo "yes" >&6; }
16155 cat >>confdefs.h
<<\_ACEOF
16156 #define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
16161 $as_echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.
$ac_ext >&5
16164 { $as_echo "$as_me:$LINENO: result: no" >&5
16165 $as_echo "no" >&6; }
16166 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
16167 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
16170 cat confdefs.h
- <<_ACEOF >conftest.c
16173 cat confdefs.h
>>conftest.
$ac_ext
16174 cat >>conftest.
$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16178 #include <linux/mm.h>
16180 unsigned long shrinker_cb(
16182 struct shrink_control *sc);
16188 struct shrinker cache_shrinker = {
16189 .count_objects = shrinker_cb,
16190 .scan_objects = shrinker_cb,
16191 .seeks = DEFAULT_SEEKS,
16193 register_shrinker(&cache_shrinker);
16202 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16203 echo "obj-m := conftest.o" >build
/Makefile
16205 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16206 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'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16218 { $as_echo "$as_me:$LINENO: result: yes" >&5
16219 $as_echo "yes" >&6; }
16221 cat >>confdefs.h
<<\_ACEOF
16222 #define HAVE_SPLIT_SHRINKER_CALLBACK 1
16227 $as_echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.
$ac_ext >&5
16230 { { $as_echo "$as_me:$LINENO: error: error" >&5
16231 $as_echo "$as_me: error: error" >&2;}
16232 { (exit 1); exit 1; }; }
16265 EXTRA_KCFLAGS
="$tmp_flags"
16268 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
16269 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
16272 cat confdefs.h
- <<_ACEOF >conftest.c
16275 cat confdefs.h
>>conftest.
$ac_ext
16276 cat >>conftest.
$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16280 #include <linux/sysctl.h>
16286 struct ctl_table ctl __attribute__ ((unused));
16296 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16297 echo "obj-m := conftest.o" >build
/Makefile
16299 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16300 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'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16312 { $as_echo "$as_me:$LINENO: result: yes" >&5
16313 $as_echo "yes" >&6; }
16315 cat >>confdefs.h
<<\_ACEOF
16316 #define HAVE_CTL_NAME 1
16321 $as_echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.
$ac_ext >&5
16324 { $as_echo "$as_me:$LINENO: result: no" >&5
16325 $as_echo "no" >&6; }
16336 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16337 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
16340 cat confdefs.h
- <<_ACEOF >conftest.c
16343 cat confdefs.h
>>conftest.
$ac_ext
16344 cat >>conftest.
$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16348 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16349 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16363 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16364 echo "obj-m := conftest.o" >build
/Makefile
16366 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16367 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'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16379 { $as_echo "$as_me:$LINENO: result: yes" >&5
16380 $as_echo "yes" >&6; }
16383 $as_echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.
$ac_ext >&5
16386 { $as_echo "$as_me:$LINENO: result: no" >&5
16387 $as_echo "no" >&6; }
16388 { { $as_echo "$as_me:$LINENO: error:
16389 *** This kernel has unused symbols trimming enabled, please disable.
16390 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
16391 $as_echo "$as_me: error:
16392 *** This kernel has unused symbols trimming enabled, please disable.
16393 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
16394 { (exit 1); exit 1; }; }
16405 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
16406 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16410 cat confdefs.h
- <<_ACEOF >conftest.c
16413 cat confdefs.h
>>conftest.
$ac_ext
16414 cat >>conftest.
$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16418 #include <linux/proc_fs.h>
16433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16434 echo "obj-m := conftest.o" >build
/Makefile
16436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16437 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'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; }; then
16450 $as_echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.
$ac_ext >&5
16460 if test $rc -ne 0; then :
16462 { $as_echo "$as_me:$LINENO: result: no" >&5
16463 $as_echo "no" >&6; }
16466 if test "x$enable_linux_builtin" != xyes
; then
16468 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16469 $LINUX_OBJ/Module
*.symvers
2>/dev
/null
16471 if test $rc -ne 0; then
16474 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16475 "$LINUX_OBJ/$file" 2>/dev
/null
16477 if test $rc -eq 0; then
16482 if test $export -eq 0; then :
16492 if test $rc -ne 0; then :
16494 { $as_echo "$as_me:$LINENO: result: no" >&5
16495 $as_echo "no" >&6; }
16499 { $as_echo "$as_me:$LINENO: result: yes" >&5
16500 $as_echo "yes" >&6; }
16502 cat >>confdefs.h
<<\_ACEOF
16503 #define HAVE_PDE_DATA 1
16511 tmp_flags
="$EXTRA_KCFLAGS"
16512 EXTRA_KCFLAGS
="-Werror"
16513 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
16514 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16517 cat confdefs.h
- <<_ACEOF >conftest.c
16520 cat confdefs.h
>>conftest.
$ac_ext
16521 cat >>conftest.
$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16525 #include <linux/spinlock.h>
16526 #include <linux/fs_struct.h>
16527 #include <linux/path.h>
16528 void (*const set_fs_pwd_func)
16529 (struct fs_struct *, const struct path *)
16545 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16546 echo "obj-m := conftest.o" >build
/Makefile
16548 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16549 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'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16561 { $as_echo "$as_me:$LINENO: result: yes" >&5
16562 $as_echo "yes" >&6; }
16564 cat >>confdefs.h
<<\_ACEOF
16565 #define HAVE_SET_FS_PWD_WITH_CONST 1
16570 $as_echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.
$ac_ext >&5
16575 cat confdefs.h
- <<_ACEOF >conftest.c
16578 cat confdefs.h
>>conftest.
$ac_ext
16579 cat >>conftest.
$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16583 #include <linux/spinlock.h>
16584 #include <linux/fs_struct.h>
16585 #include <linux/path.h>
16586 void (*const set_fs_pwd_func)
16587 (struct fs_struct *, struct path *)
16603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16604 echo "obj-m := conftest.o" >build
/Makefile
16606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16607 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'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16619 { $as_echo "$as_me:$LINENO: result: no" >&5
16620 $as_echo "no" >&6; }
16623 $as_echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.
$ac_ext >&5
16626 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
16627 $as_echo "$as_me: error: unknown" >&2;}
16628 { (exit 1); exit 1; }; }
16645 EXTRA_KCFLAGS
="$tmp_flags"
16647 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
16648 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16651 cat confdefs.h
- <<_ACEOF >conftest.c
16654 cat confdefs.h
>>conftest.
$ac_ext
16655 cat >>conftest.
$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16659 #include <linux/fs.h>
16665 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16675 echo "obj-m := conftest.o" >build
/Makefile
16677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16678 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'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16690 { $as_echo "$as_me:$LINENO: result: yes" >&5
16691 $as_echo "yes" >&6; }
16693 cat >>confdefs.h
<<\_ACEOF
16694 #define HAVE_2ARGS_VFS_UNLINK 1
16699 $as_echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.
$ac_ext >&5
16702 { $as_echo "$as_me:$LINENO: result: no" >&5
16703 $as_echo "no" >&6; }
16704 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
16705 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16708 cat confdefs.h
- <<_ACEOF >conftest.c
16711 cat confdefs.h
>>conftest.
$ac_ext
16712 cat >>conftest.
$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16716 #include <linux/fs.h>
16722 vfs_unlink((struct inode *) NULL,
16723 (struct dentry *) NULL,
16724 (struct inode **) NULL);
16733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16734 echo "obj-m := conftest.o" >build
/Makefile
16736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16737 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'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16749 { $as_echo "$as_me:$LINENO: result: yes" >&5
16750 $as_echo "yes" >&6; }
16752 cat >>confdefs.h
<<\_ACEOF
16753 #define HAVE_3ARGS_VFS_UNLINK 1
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.
$ac_ext >&5
16761 { { $as_echo "$as_me:$LINENO: error: no" >&5
16762 $as_echo "$as_me: error: no" >&2;}
16763 { (exit 1); exit 1; }; }
16782 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
16783 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16786 cat confdefs.h
- <<_ACEOF >conftest.c
16789 cat confdefs.h
>>conftest.
$ac_ext
16790 cat >>conftest.
$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16794 #include <linux/fs.h>
16800 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16801 (struct inode *) NULL, (struct dentry *) NULL);
16810 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16811 echo "obj-m := conftest.o" >build
/Makefile
16813 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16814 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'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16826 { $as_echo "$as_me:$LINENO: result: yes" >&5
16827 $as_echo "yes" >&6; }
16829 cat >>confdefs.h
<<\_ACEOF
16830 #define HAVE_4ARGS_VFS_RENAME 1
16835 $as_echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.
$ac_ext >&5
16838 { $as_echo "$as_me:$LINENO: result: no" >&5
16839 $as_echo "no" >&6; }
16840 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
16841 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16844 cat confdefs.h
- <<_ACEOF >conftest.c
16847 cat confdefs.h
>>conftest.
$ac_ext
16848 cat >>conftest.
$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16852 #include <linux/fs.h>
16858 vfs_rename((struct inode *) NULL,
16859 (struct dentry *) NULL,
16860 (struct inode *) NULL,
16861 (struct dentry *) NULL,
16862 (struct inode **) NULL);
16871 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16872 echo "obj-m := conftest.o" >build
/Makefile
16874 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16875 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'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16887 { $as_echo "$as_me:$LINENO: result: yes" >&5
16888 $as_echo "yes" >&6; }
16890 cat >>confdefs.h
<<\_ACEOF
16891 #define HAVE_5ARGS_VFS_RENAME 1
16896 $as_echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.
$ac_ext >&5
16899 { $as_echo "$as_me:$LINENO: result: no" >&5
16900 $as_echo "no" >&6; }
16901 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
16902 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16905 cat confdefs.h
- <<_ACEOF >conftest.c
16908 cat confdefs.h
>>conftest.
$ac_ext
16909 cat >>conftest.
$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16913 #include <linux/fs.h>
16919 vfs_rename((struct inode *) NULL,
16920 (struct dentry *) NULL,
16921 (struct inode *) NULL,
16922 (struct dentry *) NULL,
16923 (struct inode **) NULL,
16933 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16934 echo "obj-m := conftest.o" >build
/Makefile
16936 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16937 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'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16949 { $as_echo "$as_me:$LINENO: result: yes" >&5
16950 $as_echo "yes" >&6; }
16952 cat >>confdefs.h
<<\_ACEOF
16953 #define HAVE_6ARGS_VFS_RENAME 1
16958 $as_echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.
$ac_ext >&5
16961 { { $as_echo "$as_me:$LINENO: error: no" >&5
16962 $as_echo "$as_me: error: no" >&2;}
16963 { (exit 1); exit 1; }; }
16990 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
16991 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16994 cat confdefs.h
- <<_ACEOF >conftest.c
16997 cat confdefs.h
>>conftest.
$ac_ext
16998 cat >>conftest.
$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17002 #include <linux/fs.h>
17008 vfs_fsync(NULL, 0);
17017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17018 echo "obj-m := conftest.o" >build
/Makefile
17020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17021 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'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17033 { $as_echo "$as_me:$LINENO: result: yes" >&5
17034 $as_echo "yes" >&6; }
17036 cat >>confdefs.h
<<\_ACEOF
17037 #define HAVE_2ARGS_VFS_FSYNC 1
17042 $as_echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.
$ac_ext >&5
17045 { $as_echo "$as_me:$LINENO: result: no" >&5
17046 $as_echo "no" >&6; }
17057 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
17058 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
17061 cat confdefs.h
- <<_ACEOF >conftest.c
17064 cat confdefs.h
>>conftest.
$ac_ext
17065 cat >>conftest.
$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17069 #include <linux/fs.h>
17075 struct inode_operations ops;
17076 ops.truncate_range = NULL;
17085 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17086 echo "obj-m := conftest.o" >build
/Makefile
17088 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17089 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'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17101 { $as_echo "$as_me:$LINENO: result: yes" >&5
17102 $as_echo "yes" >&6; }
17104 cat >>confdefs.h
<<\_ACEOF
17105 #define HAVE_INODE_TRUNCATE_RANGE 1
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.
$ac_ext >&5
17113 { $as_echo "$as_me:$LINENO: result: no" >&5
17114 $as_echo "no" >&6; }
17125 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
17126 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
17127 tmp_flags
="$EXTRA_KCFLAGS"
17128 EXTRA_KCFLAGS
="-Werror"
17131 cat confdefs.h
- <<_ACEOF >conftest.c
17134 cat confdefs.h
>>conftest.
$ac_ext
17135 cat >>conftest.
$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17139 #include <linux/sched.h>
17140 #include <linux/fs_struct.h>
17146 static struct fs_struct fs;
17147 spin_lock_init(&fs.lock);
17156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17157 echo "obj-m := conftest.o" >build
/Makefile
17159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17160 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'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17172 { $as_echo "$as_me:$LINENO: result: yes" >&5
17173 $as_echo "yes" >&6; }
17175 cat >>confdefs.h
<<\_ACEOF
17176 #define HAVE_FS_STRUCT_SPINLOCK 1
17181 $as_echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.
$ac_ext >&5
17184 { $as_echo "$as_me:$LINENO: result: no" >&5
17185 $as_echo "no" >&6; }
17194 EXTRA_KCFLAGS
="$tmp_flags"
17197 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
17198 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
17201 cat confdefs.h
- <<_ACEOF >conftest.c
17204 cat confdefs.h
>>conftest.
$ac_ext
17205 cat >>conftest.
$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17209 #include <linux/uidgid.h>
17215 kuid_t userid = KUIDT_INIT(0);
17216 kgid_t groupid = KGIDT_INIT(0);
17225 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17226 echo "obj-m := conftest.o" >build
/Makefile
17228 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17229 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'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17243 cat confdefs.h
- <<_ACEOF >conftest.c
17246 cat confdefs.h
>>conftest.
$ac_ext
17247 cat >>conftest.
$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17251 #include <linux/uidgid.h>
17258 kgid_t groupid = 0;
17267 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17268 echo "obj-m := conftest.o" >build
/Makefile
17270 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17271 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'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17283 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
17284 $as_echo "yes; optional" >&6; }
17287 $as_echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.
$ac_ext >&5
17290 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
17291 $as_echo "yes; mandatory" >&6; }
17293 cat >>confdefs.h
<<\_ACEOF
17294 #define HAVE_KUIDGID_T 1
17307 $as_echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.
$ac_ext >&5
17310 { $as_echo "$as_me:$LINENO: result: no" >&5
17311 $as_echo "no" >&6; }
17323 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17324 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17327 cat confdefs.h
- <<_ACEOF >conftest.c
17330 cat confdefs.h
>>conftest.
$ac_ext
17331 cat >>conftest.
$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17335 #include <linux/fs.h>
17341 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17342 struct file_operations fops __attribute__ ((unused)) = {
17343 .fallocate = fallocate,
17353 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17354 echo "obj-m := conftest.o" >build
/Makefile
17356 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17357 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'
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17369 { $as_echo "$as_me:$LINENO: result: yes" >&5
17370 $as_echo "yes" >&6; }
17372 cat >>confdefs.h
<<\_ACEOF
17373 #define HAVE_FILE_FALLOCATE 1
17378 $as_echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.
$ac_ext >&5
17381 { $as_echo "$as_me:$LINENO: result: no" >&5
17382 $as_echo "no" >&6; }
17393 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
17394 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17397 cat confdefs.h
- <<_ACEOF >conftest.c
17400 cat confdefs.h
>>conftest.
$ac_ext
17401 cat >>conftest.
$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17405 #include <linux/fs.h>
17411 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17412 struct inode_operations fops __attribute__ ((unused)) = {
17413 .fallocate = fallocate,
17423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17424 echo "obj-m := conftest.o" >build
/Makefile
17426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17427 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'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17439 { $as_echo "$as_me:$LINENO: result: yes" >&5
17440 $as_echo "yes" >&6; }
17442 cat >>confdefs.h
<<\_ACEOF
17443 #define HAVE_INODE_FALLOCATE 1
17448 $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.
$ac_ext >&5
17451 { $as_echo "$as_me:$LINENO: result: no" >&5
17452 $as_echo "no" >&6; }
17463 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17464 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17467 cat confdefs.h
- <<_ACEOF >conftest.c
17470 cat confdefs.h
>>conftest.
$ac_ext
17471 cat >>conftest.
$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17475 #include <linux/fs.h>
17481 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17482 struct file_operations_no_const fops __attribute__ ((unused)) = {
17483 .fallocate = fallocate,
17493 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17494 echo "obj-m := conftest.o" >build
/Makefile
17496 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17497 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'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17509 { $as_echo "$as_me:$LINENO: result: yes" >&5
17510 $as_echo "yes" >&6; }
17512 cat >>confdefs.h
<<\_ACEOF
17513 #define HAVE_FILE_FALLOCATE 1
17518 $as_echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.
$ac_ext >&5
17521 { $as_echo "$as_me:$LINENO: result: no" >&5
17522 $as_echo "no" >&6; }
17534 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17535 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17538 cat confdefs.h
- <<_ACEOF >conftest.c
17541 cat confdefs.h
>>conftest.
$ac_ext
17542 cat >>conftest.
$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17546 #if !defined(CONFIG_ZLIB_INFLATE) && \
17547 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17548 #error CONFIG_ZLIB_INFLATE not defined
17562 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17563 echo "obj-m := conftest.o" >build
/Makefile
17565 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17566 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'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17578 { $as_echo "$as_me:$LINENO: result: yes" >&5
17579 $as_echo "yes" >&6; }
17582 $as_echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.
$ac_ext >&5
17585 { $as_echo "$as_me:$LINENO: result: no" >&5
17586 $as_echo "no" >&6; }
17587 { { $as_echo "$as_me:$LINENO: error:
17588 *** This kernel does not include the required zlib inflate support.
17589 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
17590 $as_echo "$as_me: error:
17591 *** This kernel does not include the required zlib inflate support.
17592 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
17593 { (exit 1); exit 1; }; }
17604 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17605 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17608 cat confdefs.h
- <<_ACEOF >conftest.c
17611 cat confdefs.h
>>conftest.
$ac_ext
17612 cat >>conftest.
$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17616 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17617 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17618 #error CONFIG_ZLIB_DEFLATE not defined
17632 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17633 echo "obj-m := conftest.o" >build
/Makefile
17635 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17636 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'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17648 { $as_echo "$as_me:$LINENO: result: yes" >&5
17649 $as_echo "yes" >&6; }
17652 $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.
$ac_ext >&5
17655 { $as_echo "$as_me:$LINENO: result: no" >&5
17656 $as_echo "no" >&6; }
17657 { { $as_echo "$as_me:$LINENO: error:
17658 *** This kernel does not include the required zlib deflate support.
17659 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
17660 $as_echo "$as_me: error:
17661 *** This kernel does not include the required zlib deflate support.
17662 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
17663 { (exit 1); exit 1; }; }
17673 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17674 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17677 cat confdefs.h
- <<_ACEOF >conftest.c
17680 cat confdefs.h
>>conftest.
$ac_ext
17681 cat >>conftest.
$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17685 #include <linux/zlib.h>
17691 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17700 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17701 echo "obj-m := conftest.o" >build
/Makefile
17703 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17704 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'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17716 { $as_echo "$as_me:$LINENO: result: yes" >&5
17717 $as_echo "yes" >&6; }
17719 cat >>confdefs.h
<<\_ACEOF
17720 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
17725 $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.
$ac_ext >&5
17728 { $as_echo "$as_me:$LINENO: result: no" >&5
17729 $as_echo "no" >&6; }
17740 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
17741 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
17744 cat confdefs.h
- <<_ACEOF >conftest.c
17747 cat confdefs.h
>>conftest.
$ac_ext
17748 cat >>conftest.
$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17752 #include <linux/mm.h>
17758 struct shrink_control sc __attribute__ ((unused));
17761 sc.gfp_mask = GFP_KERNEL;
17770 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17771 echo "obj-m := conftest.o" >build
/Makefile
17773 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17774 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'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17786 { $as_echo "$as_me:$LINENO: result: yes" >&5
17787 $as_echo "yes" >&6; }
17789 cat >>confdefs.h
<<\_ACEOF
17790 #define HAVE_SHRINK_CONTROL_STRUCT 1
17795 $as_echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.
$ac_ext >&5
17798 { $as_echo "$as_me:$LINENO: result: no" >&5
17799 $as_echo "no" >&6; }
17810 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
17811 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17812 tmp_flags
="$EXTRA_KCFLAGS"
17813 EXTRA_KCFLAGS
="-Werror"
17816 cat confdefs.h
- <<_ACEOF >conftest.c
17819 cat confdefs.h
>>conftest.
$ac_ext
17820 cat >>conftest.
$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17824 #include <linux/rwsem.h>
17830 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17831 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
17832 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
17833 dummy_semaphore.wait_lock = dummy_lock;
17842 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17843 echo "obj-m := conftest.o" >build
/Makefile
17845 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17846 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'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17858 { $as_echo "$as_me:$LINENO: result: yes" >&5
17859 $as_echo "yes" >&6; }
17861 cat >>confdefs.h
<<\_ACEOF
17862 #define RWSEM_SPINLOCK_IS_RAW 1
17867 $as_echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.
$ac_ext >&5
17870 { $as_echo "$as_me:$LINENO: result: no" >&5
17871 $as_echo "no" >&6; }
17880 EXTRA_KCFLAGS
="$tmp_flags"
17883 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
17884 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17885 tmp_flags
="$EXTRA_KCFLAGS"
17886 EXTRA_KCFLAGS
="-Werror"
17889 cat confdefs.h
- <<_ACEOF >conftest.c
17892 cat confdefs.h
>>conftest.
$ac_ext
17893 cat >>conftest.
$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17897 #include <linux/rwsem.h>
17903 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17904 dummy_semaphore.activity = 0;
17913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17914 echo "obj-m := conftest.o" >build
/Makefile
17916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17917 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'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17929 { $as_echo "$as_me:$LINENO: result: yes" >&5
17930 $as_echo "yes" >&6; }
17932 cat >>confdefs.h
<<\_ACEOF
17933 #define HAVE_RWSEM_ACTIVITY 1
17938 $as_echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.
$ac_ext >&5
17941 { $as_echo "$as_me:$LINENO: result: no" >&5
17942 $as_echo "no" >&6; }
17951 EXTRA_KCFLAGS
="$tmp_flags"
17954 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17955 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17956 tmp_flags
="$EXTRA_KCFLAGS"
17957 EXTRA_KCFLAGS
="-Werror"
17960 cat confdefs.h
- <<_ACEOF >conftest.c
17963 cat confdefs.h
>>conftest.
$ac_ext
17964 cat >>conftest.
$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17968 #include <linux/rwsem.h>
17974 DECLARE_RWSEM(dummy_semaphore);
17975 (void) atomic_long_read(&dummy_semaphore.count);
17984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17985 echo "obj-m := conftest.o" >build
/Makefile
17987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17988 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'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
18000 { $as_echo "$as_me:$LINENO: result: yes" >&5
18001 $as_echo "yes" >&6; }
18003 cat >>confdefs.h
<<\_ACEOF
18004 #define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
18009 $as_echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.
$ac_ext >&5
18012 { $as_echo "$as_me:$LINENO: result: no" >&5
18013 $as_echo "no" >&6; }
18022 EXTRA_KCFLAGS
="$tmp_flags"
18024 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
18025 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
18028 cat confdefs.h
- <<_ACEOF >conftest.c
18031 cat confdefs.h
>>conftest.
$ac_ext
18032 cat >>conftest.
$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18036 #include <linux/sched.h>
18037 #include <linux/sched/rt.h>
18052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18053 echo "obj-m := conftest.o" >build
/Makefile
18055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18056 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'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18069 cat >>confdefs.h
<<\_ACEOF
18070 #define HAVE_SCHED_RT_HEADER 1
18073 { $as_echo "$as_me:$LINENO: result: yes" >&5
18074 $as_echo "yes" >&6; }
18077 $as_echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.
$ac_ext >&5
18080 { $as_echo "$as_me:$LINENO: result: no" >&5
18081 $as_echo "no" >&6; }
18091 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
18092 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
18095 cat confdefs.h
- <<_ACEOF >conftest.c
18098 cat confdefs.h
>>conftest.
$ac_ext
18099 cat >>conftest.
$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18103 #include <linux/sched.h>
18104 #include <linux/sched/signal.h>
18119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18120 echo "obj-m := conftest.o" >build
/Makefile
18122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18123 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'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18136 cat >>confdefs.h
<<\_ACEOF
18137 #define HAVE_SCHED_SIGNAL_HEADER 1
18140 { $as_echo "$as_me:$LINENO: result: yes" >&5
18141 $as_echo "yes" >&6; }
18144 $as_echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.
$ac_ext >&5
18147 { $as_echo "$as_me:$LINENO: result: no" >&5
18148 $as_echo "no" >&6; }
18159 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
18160 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
18163 cat confdefs.h
- <<_ACEOF >conftest.c
18166 cat confdefs.h
>>conftest.
$ac_ext
18167 cat >>conftest.
$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18171 #include <linux/fs.h>
18177 vfs_getattr((const struct path *)NULL,
18178 (struct kstat *)NULL,
18189 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18190 echo "obj-m := conftest.o" >build
/Makefile
18192 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18193 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'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18205 { $as_echo "$as_me:$LINENO: result: yes" >&5
18206 $as_echo "yes" >&6; }
18208 cat >>confdefs.h
<<\_ACEOF
18209 #define HAVE_4ARGS_VFS_GETATTR 1
18214 $as_echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.
$ac_ext >&5
18217 { $as_echo "$as_me:$LINENO: result: no" >&5
18218 $as_echo "no" >&6; }
18229 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
18230 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
18233 cat confdefs.h
- <<_ACEOF >conftest.c
18236 cat confdefs.h
>>conftest.
$ac_ext
18237 cat >>conftest.
$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18241 #include <linux/fs.h>
18247 vfs_getattr((struct vfsmount *)NULL,
18248 (struct dentry *)NULL,
18249 (struct kstat *)NULL);
18258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18259 echo "obj-m := conftest.o" >build
/Makefile
18261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18262 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'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18274 { $as_echo "$as_me:$LINENO: result: yes" >&5
18275 $as_echo "yes" >&6; }
18277 cat >>confdefs.h
<<\_ACEOF
18278 #define HAVE_3ARGS_VFS_GETATTR 1
18283 $as_echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.
$ac_ext >&5
18286 { $as_echo "$as_me:$LINENO: result: no" >&5
18287 $as_echo "no" >&6; }
18298 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
18299 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
18302 cat confdefs.h
- <<_ACEOF >conftest.c
18305 cat confdefs.h
>>conftest.
$ac_ext
18306 cat >>conftest.
$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18310 #include <linux/fs.h>
18316 vfs_getattr((struct path *) NULL,
18317 (struct kstat *)NULL);
18326 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18327 echo "obj-m := conftest.o" >build
/Makefile
18329 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18330 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'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18342 { $as_echo "$as_me:$LINENO: result: yes" >&5
18343 $as_echo "yes" >&6; }
18345 cat >>confdefs.h
<<\_ACEOF
18346 #define HAVE_2ARGS_VFS_GETATTR 1
18351 $as_echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.
$ac_ext >&5
18354 { $as_echo "$as_me:$LINENO: result: no" >&5
18355 $as_echo "no" >&6; }
18366 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
18367 $as_echo_n "checking whether usleep_range() is available... " >&6; }
18370 cat confdefs.h
- <<_ACEOF >conftest.c
18373 cat confdefs.h
>>conftest.
$ac_ext
18374 cat >>conftest.
$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18378 #include <linux/delay.h>
18384 usleep_range(0, 0);
18393 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18394 echo "obj-m := conftest.o" >build
/Makefile
18396 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18397 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'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18409 { $as_echo "$as_me:$LINENO: result: yes" >&5
18410 $as_echo "yes" >&6; }
18412 cat >>confdefs.h
<<\_ACEOF
18413 #define HAVE_USLEEP_RANGE 1
18418 $as_echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.
$ac_ext >&5
18421 { $as_echo "$as_me:$LINENO: result: no" >&5
18422 $as_echo "no" >&6; }
18433 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
18434 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
18437 cat confdefs.h
- <<_ACEOF >conftest.c
18440 cat confdefs.h
>>conftest.
$ac_ext
18441 cat >>conftest.
$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18445 #include <linux/slab.h>
18451 struct kmem_cache cachep __attribute__ ((unused));
18452 cachep.allocflags = GFP_KERNEL;
18461 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18462 echo "obj-m := conftest.o" >build
/Makefile
18464 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18465 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'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18477 { $as_echo "$as_me:$LINENO: result: yes" >&5
18478 $as_echo "yes" >&6; }
18480 cat >>confdefs.h
<<\_ACEOF
18481 #define HAVE_KMEM_CACHE_ALLOCFLAGS 1
18486 $as_echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.
$ac_ext >&5
18489 { $as_echo "$as_me:$LINENO: result: no" >&5
18490 $as_echo "no" >&6; }
18492 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
18493 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
18496 cat confdefs.h
- <<_ACEOF >conftest.c
18499 cat confdefs.h
>>conftest.
$ac_ext
18500 cat >>conftest.
$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18504 #include <linux/slab.h>
18510 struct kmem_cache cachep __attribute__ ((unused));
18511 cachep.gfpflags = GFP_KERNEL;
18520 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18521 echo "obj-m := conftest.o" >build
/Makefile
18523 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18524 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'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18536 { $as_echo "$as_me:$LINENO: result: yes" >&5
18537 $as_echo "yes" >&6; }
18539 cat >>confdefs.h
<<\_ACEOF
18540 #define HAVE_KMEM_CACHE_GFPFLAGS 1
18545 $as_echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.
$ac_ext >&5
18548 { $as_echo "$as_me:$LINENO: result: no" >&5
18549 $as_echo "no" >&6; }
18568 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
18569 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18572 cat confdefs.h
- <<_ACEOF >conftest.c
18575 cat confdefs.h
>>conftest.
$ac_ext
18576 cat >>conftest.
$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18580 #include <linux/wait.h>
18586 int (*action)(void *) = NULL;
18587 wait_on_bit(NULL, 0, action, 0);
18596 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18597 echo "obj-m := conftest.o" >build
/Makefile
18599 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18600 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'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18612 { $as_echo "$as_me:$LINENO: result: yes" >&5
18613 $as_echo "yes" >&6; }
18615 cat >>confdefs.h
<<\_ACEOF
18616 #define HAVE_WAIT_ON_BIT_ACTION 1
18621 $as_echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.
$ac_ext >&5
18624 { $as_echo "$as_me:$LINENO: result: no" >&5
18625 $as_echo "no" >&6; }
18636 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
18637 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18638 tmp_flags
="$EXTRA_KCFLAGS"
18639 EXTRA_KCFLAGS
="-Werror"
18642 cat confdefs.h
- <<_ACEOF >conftest.c
18645 cat confdefs.h
>>conftest.
$ac_ext
18646 cat >>conftest.
$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18650 #include <linux/fs.h>
18656 struct inode *inode = NULL;
18657 inode_lock_shared(inode);
18666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18667 echo "obj-m := conftest.o" >build
/Makefile
18669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18670 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'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18682 { $as_echo "$as_me:$LINENO: result: yes" >&5
18683 $as_echo "yes" >&6; }
18685 cat >>confdefs.h
<<\_ACEOF
18686 #define HAVE_INODE_LOCK_SHARED 1
18691 $as_echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.
$ac_ext >&5
18694 { $as_echo "$as_me:$LINENO: result: no" >&5
18695 $as_echo "no" >&6; }
18704 EXTRA_KCFLAGS
="$tmp_flags"
18707 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
18708 $as_echo_n "checking whether group_info->gid exists... " >&6; }
18709 tmp_flags
="$EXTRA_KCFLAGS"
18710 EXTRA_KCFLAGS
="-Werror"
18713 cat confdefs.h
- <<_ACEOF >conftest.c
18716 cat confdefs.h
>>conftest.
$ac_ext
18717 cat >>conftest.
$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18721 #include <linux/cred.h>
18727 struct group_info *gi = groups_alloc(1);
18728 gi->gid[0] = KGIDT_INIT(0);
18737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18738 echo "obj-m := conftest.o" >build
/Makefile
18740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18741 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'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18753 { $as_echo "$as_me:$LINENO: result: yes" >&5
18754 $as_echo "yes" >&6; }
18756 cat >>confdefs.h
<<\_ACEOF
18757 #define HAVE_GROUP_INFO_GID 1
18762 $as_echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.
$ac_ext >&5
18765 { $as_echo "$as_me:$LINENO: result: no" >&5
18766 $as_echo "no" >&6; }
18775 EXTRA_KCFLAGS
="$tmp_flags"
18778 { $as_echo "$as_me:$LINENO: checking whether kmem_cache_create_usercopy() exists" >&5
18779 $as_echo_n "checking whether kmem_cache_create_usercopy() exists... " >&6; }
18780 tmp_flags
="$EXTRA_KCFLAGS"
18781 EXTRA_KCFLAGS
="-Werror"
18784 cat confdefs.h
- <<_ACEOF >conftest.c
18787 cat confdefs.h
>>conftest.
$ac_ext
18788 cat >>conftest.
$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18792 #include <linux/slab.h>
18793 static void ctor(void *foo)
18802 struct kmem_cache *skc_linux_cache;
18803 const char *name = "test";
18804 size_t size = 4096;
18806 unsigned long flags = 0;
18807 size_t useroffset = 0;
18808 size_t usersize = size - useroffset;
18810 skc_linux_cache = kmem_cache_create_usercopy(
18811 name, size, align, flags, useroffset, usersize, ctor);
18820 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18821 echo "obj-m := conftest.o" >build
/Makefile
18823 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18824 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'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18836 { $as_echo "$as_me:$LINENO: result: yes" >&5
18837 $as_echo "yes" >&6; }
18839 cat >>confdefs.h
<<\_ACEOF
18840 #define HAVE_KMEM_CACHE_CREATE_USERCOPY 1
18845 $as_echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.
$ac_ext >&5
18848 { $as_echo "$as_me:$LINENO: result: no" >&5
18849 $as_echo "no" >&6; }
18858 EXTRA_KCFLAGS
="$tmp_flags"
18861 { $as_echo "$as_me:$LINENO: checking whether wait_queue_entry_t exists" >&5
18862 $as_echo_n "checking whether wait_queue_entry_t exists... " >&6; }
18865 cat confdefs.h
- <<_ACEOF >conftest.c
18868 cat confdefs.h
>>conftest.
$ac_ext
18869 cat >>conftest.
$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18873 #include <linux/wait.h>
18879 wait_queue_entry_t *entry __attribute__ ((unused));
18888 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18889 echo "obj-m := conftest.o" >build
/Makefile
18891 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18892 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'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18904 { $as_echo "$as_me:$LINENO: result: yes" >&5
18905 $as_echo "yes" >&6; }
18907 cat >>confdefs.h
<<\_ACEOF
18908 #define HAVE_WAIT_QUEUE_ENTRY_T 1
18913 $as_echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.
$ac_ext >&5
18916 { $as_echo "$as_me:$LINENO: result: no" >&5
18917 $as_echo "no" >&6; }
18928 { $as_echo "$as_me:$LINENO: checking whether wq_head->head and wq_entry->entry exist" >&5
18929 $as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; }
18932 cat confdefs.h
- <<_ACEOF >conftest.c
18935 cat confdefs.h
>>conftest.
$ac_ext
18936 cat >>conftest.
$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18940 #include <linux/wait.h>
18942 #ifdef HAVE_WAIT_QUEUE_ENTRY_T
18943 typedef wait_queue_head_t spl_wait_queue_head_t;
18944 typedef wait_queue_entry_t spl_wait_queue_entry_t;
18946 typedef wait_queue_head_t spl_wait_queue_head_t;
18947 typedef wait_queue_t spl_wait_queue_entry_t;
18954 spl_wait_queue_head_t wq_head;
18955 spl_wait_queue_entry_t wq_entry;
18956 struct list_head *head __attribute__ ((unused));
18957 struct list_head *entry __attribute__ ((unused));
18959 head = &wq_head.head;
18960 entry = &wq_entry.entry;
18969 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18970 echo "obj-m := conftest.o" >build
/Makefile
18972 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18973 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'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18985 { $as_echo "$as_me:$LINENO: result: yes" >&5
18986 $as_echo "yes" >&6; }
18988 cat >>confdefs.h
<<\_ACEOF
18989 #define HAVE_WAIT_QUEUE_HEAD_ENTRY 1
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.
$ac_ext >&5
18997 { $as_echo "$as_me:$LINENO: result: no" >&5
18998 $as_echo "no" >&6; }
19009 { $as_echo "$as_me:$LINENO: checking whether kernel_write() takes loff_t pointer" >&5
19010 $as_echo_n "checking whether kernel_write() takes loff_t pointer... " >&6; }
19011 tmp_flags
="$EXTRA_KCFLAGS"
19012 EXTRA_KCFLAGS
="-Werror"
19015 cat confdefs.h
- <<_ACEOF >conftest.c
19018 cat confdefs.h
>>conftest.
$ac_ext
19019 cat >>conftest.
$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19023 #include <linux/fs.h>
19029 struct file *file = NULL;
19030 const void *buf = NULL;
19032 loff_t *pos = NULL;
19035 ret = kernel_write(file, buf, count, pos);
19044 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19045 echo "obj-m := conftest.o" >build
/Makefile
19047 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19048 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'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19060 { $as_echo "$as_me:$LINENO: result: yes" >&5
19061 $as_echo "yes" >&6; }
19063 cat >>confdefs.h
<<\_ACEOF
19064 #define HAVE_KERNEL_WRITE_PPOS 1
19069 $as_echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.
$ac_ext >&5
19072 { $as_echo "$as_me:$LINENO: result: no" >&5
19073 $as_echo "no" >&6; }
19082 EXTRA_KCFLAGS
="$tmp_flags"
19085 { $as_echo "$as_me:$LINENO: checking whether kernel_read() takes loff_t pointer" >&5
19086 $as_echo_n "checking whether kernel_read() takes loff_t pointer... " >&6; }
19087 tmp_flags
="$EXTRA_KCFLAGS"
19088 EXTRA_KCFLAGS
="-Werror"
19091 cat confdefs.h
- <<_ACEOF >conftest.c
19094 cat confdefs.h
>>conftest.
$ac_ext
19095 cat >>conftest.
$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19099 #include <linux/fs.h>
19105 struct file *file = NULL;
19108 loff_t *pos = NULL;
19111 ret = kernel_read(file, buf, count, pos);
19120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19121 echo "obj-m := conftest.o" >build
/Makefile
19123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19124 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'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19136 { $as_echo "$as_me:$LINENO: result: yes" >&5
19137 $as_echo "yes" >&6; }
19139 cat >>confdefs.h
<<\_ACEOF
19140 #define HAVE_KERNEL_READ_PPOS 1
19145 $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.
$ac_ext >&5
19148 { $as_echo "$as_me:$LINENO: result: no" >&5
19149 $as_echo "no" >&6; }
19158 EXTRA_KCFLAGS
="$tmp_flags"
19164 { $as_echo "$as_me:$LINENO: result: Error!" >&5
19165 $as_echo "Error!" >&6; }
19166 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
19167 user kernel|user|all|srpm" >&5
19168 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
19169 user kernel|user|all|srpm" >&2;}
19170 { (exit 1); exit 1; }; } ;;
19173 if test "$SPL_CONFIG" = user
-o "$SPL_CONFIG" = all
; then
19175 CONFIG_USER_FALSE
='#'
19177 CONFIG_USER_TRUE
='#'
19181 if test "$SPL_CONFIG" = kernel
-o "$SPL_CONFIG" = all
&&
19182 test "x$enable_linux_builtin" != xyes
; then
19183 CONFIG_KERNEL_TRUE
=
19184 CONFIG_KERNEL_FALSE
='#'
19186 CONFIG_KERNEL_TRUE
='#'
19187 CONFIG_KERNEL_FALSE
=
19192 ac_config_files
="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile cmd/splat/Makefile cmd/splslab/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"
19195 cat >confcache
<<\_ACEOF
19196 # This file is a shell script that caches the results of configure
19197 # tests run on this system so they can be shared between configure
19198 # scripts and configure runs, see configure's option --config-cache.
19199 # It is not useful on other systems. If it contains results you don't
19200 # want to keep, you may remove or edit it.
19202 # config.status only pays attention to the cache file if you give it
19203 # the --recheck option to rerun configure.
19205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19207 # following values.
19211 # The following way of writing the cache mishandles newlines in values,
19212 # but we know of no workaround that is simple, portable, and efficient.
19213 # So, we kill variables containing newlines.
19214 # Ultrix sh set writes to stderr and can't be redirected directly,
19215 # and sets the high bit in the cache file unless we assign to the vars.
19217 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19218 eval ac_val
=\$
$ac_var
19222 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19226 _ | IFS | as_nl
) ;; #(
19227 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19228 *) $as_unset $ac_var ;;
19234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19235 *${as_nl}ac_space
=\
*)
19236 # `set' does not quote correctly, so add quotes (double-quote
19237 # substitution turns \\\\ into \\, and sed turns \\ into \).
19240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19243 # `set' quotes correctly as required by POSIX, so do not add quotes.
19244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19257 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19258 if test -w "$cache_file"; then
19259 test "x$cache_file" != "x/dev/null" &&
19260 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19261 $as_echo "$as_me: updating cache $cache_file" >&6;}
19262 cat confcache
>$cache_file
19264 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19270 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19271 # Let make expand exec_prefix.
19272 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19274 DEFS
=-DHAVE_CONFIG_H
19278 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19279 # 1. Remove the extension, and $U if already installed.
19280 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19281 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19283 # will be set to the directory where LIBOBJS objects are built.
19284 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19285 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19287 LIBOBJS
=$ac_libobjs
19289 LTLIBOBJS
=$ac_ltlibobjs
19292 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19293 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19294 Usually this means the macro was only invoked conditionally." >&5
19295 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19296 Usually this means the macro was only invoked conditionally." >&2;}
19297 { (exit 1); exit 1; }; }
19299 if test -n "$EXEEXT"; then
19301 am__EXEEXT_FALSE
='#'
19303 am__EXEEXT_TRUE
='#'
19307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19308 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19309 Usually this means the macro was only invoked conditionally." >&5
19310 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19311 Usually this means the macro was only invoked conditionally." >&2;}
19312 { (exit 1); exit 1; }; }
19314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19315 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19316 Usually this means the macro was only invoked conditionally." >&5
19317 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19318 Usually this means the macro was only invoked conditionally." >&2;}
19319 { (exit 1); exit 1; }; }
19321 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
19322 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
19323 Usually this means the macro was only invoked conditionally." >&5
19324 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
19325 Usually this means the macro was only invoked conditionally." >&2;}
19326 { (exit 1); exit 1; }; }
19328 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
19329 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
19330 Usually this means the macro was only invoked conditionally." >&5
19331 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
19332 Usually this means the macro was only invoked conditionally." >&2;}
19333 { (exit 1); exit 1; }; }
19336 : ${CONFIG_STATUS=./config.status}
19338 ac_clean_files_save
=$ac_clean_files
19339 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19340 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19341 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19342 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19344 # Generated by $as_me.
19345 # Run this file to recreate the current configuration.
19346 # Compiler output produced by configure, useful for debugging
19347 # configure, is in config.log if it exists.
19350 ac_cs_recheck=false
19352 SHELL=\${CONFIG_SHELL-$SHELL}
19355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19356 ## --------------------- ##
19357 ## M4sh Initialization. ##
19358 ## --------------------- ##
19360 # Be more Bourne compatible
19361 DUALCASE
=1; export DUALCASE
# for MKS sh
19362 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19366 # is contrary to our usage. Disable this feature.
19367 alias -g '${1+"$@"}'='"$@"'
19368 setopt NO_GLOB_SUBST
19370 case `(set -o) 2>/dev/null` in
19371 *posix
*) set -o posix
;;
19380 # Avoid depending upon Character Ranges.
19381 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19382 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19383 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19384 as_cr_digits
='0123456789'
19385 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19390 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19391 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19394 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19395 as_echo='printf %s
\n'
19396 as_echo_n='printf %s
'
19398 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19399 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19400 as_echo_n='/usr
/ucb
/echo -n'
19402 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19403 as_echo_n_body='eval
19407 expr "X$arg" : "X\\(.*\\)$as_nl";
19408 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19410 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19412 export as_echo_n_body
19413 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19415 export as_echo_body
19416 as_echo='sh
-c $as_echo_body as_echo
'
19419 # The user is always right.
19420 if test "${PATH_SEPARATOR+set}" != set; then
19422 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19423 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19428 # Support unset when possible.
19429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19437 # We need space, tab and new line, in precisely that order. Quoting is
19438 # there to prevent editors from complaining about space-tab.
19439 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19440 # splitting by setting IFS to empty value.)
19443 # Find who we are. Look in the path if we contain no directory separator.
19445 *[\\/]* ) as_myself=$0 ;;
19446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19447 for as_dir in $PATH
19450 test -z "$as_dir" && as_dir=.
19451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19457 # We did not find ourselves, most probably we were run as `sh COMMAND'
19458 # in which case we are not to be found in the path.
19459 if test "x$as_myself" = x
; then
19462 if test ! -f "$as_myself"; then
19463 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19464 { (exit 1); exit 1; }
19467 # Work around bugs in pre-3.0 UWIN ksh.
19468 for as_var
in ENV MAIL MAILPATH
19469 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
19481 # Required to use basename.
19482 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19483 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19489 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19490 as_basename
=basename
19496 # Name of the executable.
19497 as_me
=`$as_basename -- "$0" ||
19498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19499 X"$0" : 'X\(//\)$' \| \
19500 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19502 sed '/^.*\/\([^/][^/]*\)\/*$/{
19521 as_lineno_1
=$LINENO
19522 as_lineno_2
=$LINENO
19523 test "x$as_lineno_1" != "x$as_lineno_2" &&
19524 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
19526 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19527 # uniformly replaced by the line number. The first 'sed' inserts a
19528 # line-number line after each line using $LINENO; the second 'sed'
19529 # does the real work. The second script uses 'N' to pair each
19530 # line-number line with the line containing $LINENO, and appends
19531 # trailing '-' during substitution so that $LINENO is not a special
19532 # case at line end.
19533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19534 # scripts with optimization help from Paolo Bonzini. Blame Lee
19535 # E. McMahon (1931-1989) for sed's syntax. :-)
19547 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19550 ' >$as_me.lineno
&&
19551 chmod +x
"$as_me.lineno" ||
19552 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19553 { (exit 1); exit 1; }; }
19555 # Don't try to exec as it changes $[0], causing all sort of problems
19556 # (the dirname of $[0] is not the place where we might find the
19557 # original and so on. Autoconf is especially sensitive to this).
19558 .
"./$as_me.lineno"
19559 # Exit status is that of the last command.
19564 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19570 ECHO_C
= ECHO_N
= ECHO_T
=
19571 case `echo -n x` in
19573 case `echo 'x\c'` in
19574 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19580 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19581 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19587 rm -f conf$$ conf$$.exe conf$$.
file
19588 if test -d conf$$.dir
; then
19589 rm -f conf$$.dir
/conf$$.
file
19592 mkdir conf$$.dir
2>/dev
/null
19594 if (echo >conf$$.
file) 2>/dev
/null
; then
19595 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19597 # ... but there are two gotchas:
19598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19600 # In both cases, we have to default to `cp -p'.
19601 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19603 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19611 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19612 rmdir conf$$.dir
2>/dev
/null
19614 if mkdir
-p .
2>/dev
/null
; then
19617 test -d .
/-p && rmdir .
/-p
19621 if test -x / >/dev
/null
2>&1; then
19622 as_test_x
='test -x'
19624 if ls -dL / >/dev
/null
2>&1; then
19631 if test -d "$1"; then
19637 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19638 ???[sx]*):;;*)false;;esac;fi
19642 as_executable_p
=$as_test_x
19644 # Sed expression to map a string onto a valid CPP name.
19645 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19647 # Sed expression to map a string onto a valid variable name.
19648 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19653 # Save the log message, to keep $[0] and so on meaningful, and to
19654 # report actual input values of CONFIG_FILES etc. instead of their
19655 # values after options handling.
19657 This file was extended by spl $as_me 0.7.4, which was
19658 generated by GNU Autoconf 2.63. Invocation command line was
19660 CONFIG_FILES = $CONFIG_FILES
19661 CONFIG_HEADERS = $CONFIG_HEADERS
19662 CONFIG_LINKS = $CONFIG_LINKS
19663 CONFIG_COMMANDS = $CONFIG_COMMANDS
19666 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19671 case $ac_config_files in *"
19672 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19675 case $ac_config_headers in *"
19676 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19681 # Files that config.status was made for.
19682 config_files="$ac_config_files"
19683 config_headers="$ac_config_headers"
19684 config_commands="$ac_config_commands"
19688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19690 \`$as_me' instantiates files from templates according to the
19691 current configuration.
19693 Usage: $0 [OPTION]... [FILE]...
19695 -h, --help print this help, then exit
19696 -V, --version print version number and configuration settings, then exit
19697 -q, --quiet, --silent
19698 do not print progress messages
19699 -d, --debug don't remove temporary files
19700 --recheck update $as_me by reconfiguring in the same conditions
19701 --file=FILE[:TEMPLATE]
19702 instantiate the configuration file FILE
19703 --header=FILE[:TEMPLATE]
19704 instantiate the configuration header FILE
19706 Configuration files:
19709 Configuration headers:
19712 Configuration commands:
19715 Report bugs to <bug-autoconf@gnu.org>."
19718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19720 spl config.status 0.7.4
19721 configured by $0, generated by GNU Autoconf 2.63,
19722 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19724 Copyright (C) 2008 Free Software Foundation, Inc.
19725 This config.status script is free software; the Free Software Foundation
19726 gives unlimited permission to copy, distribute and modify it."
19733 test -n "\$AWK" || AWK=awk
19736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19737 # The default lists apply if the user does not specify any file.
19743 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19744 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19755 # Handling of the options.
19756 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19758 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19759 $as_echo "$ac_cs_version"; exit ;;
19760 --debug |
--debu |
--deb |
--de |
--d |
-d )
19762 --file |
--fil |
--fi |
--f )
19765 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19767 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
19768 ac_need_defaults
=false
;;
19769 --header |
--heade |
--head |
--hea )
19772 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19774 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
19775 ac_need_defaults
=false
;;
19777 # Conflict between --help and --header
19778 { $as_echo "$as_me: error: ambiguous option: $1
19779 Try \`$0 --help' for more information." >&2
19780 { (exit 1); exit 1; }; };;
19781 --help |
--hel |
-h )
19782 $as_echo "$ac_cs_usage"; exit ;;
19783 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19784 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19787 # This is an error.
19788 -*) { $as_echo "$as_me: error: unrecognized option: $1
19789 Try \`$0 --help' for more information." >&2
19790 { (exit 1); exit 1; }; } ;;
19792 *) ac_config_targets
="$ac_config_targets $1"
19793 ac_need_defaults
=false
;;
19799 ac_configure_extra_args
=
19801 if $ac_cs_silent; then
19803 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19808 if \$ac_cs_recheck; then
19809 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19811 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19812 CONFIG_SHELL='$SHELL'
19813 export CONFIG_SHELL
19818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19823 ## Running $as_me. ##
19829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19833 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19836 # The HP-UX ksh and POSIX shell print the target directory to stdout
19837 # if CDPATH is set.
19838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19840 sed_quote_subst='$sed_quote_subst'
19841 double_quote_subst='$double_quote_subst'
19842 delay_variable_subst='$delay_variable_subst'
19843 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19844 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19845 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19846 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19847 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19848 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19849 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19850 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19851 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19852 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19853 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19854 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19855 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19856 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19857 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19858 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19859 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19860 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19861 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19862 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19863 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19864 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19865 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19866 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19867 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19868 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19869 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19870 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19871 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19872 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19873 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19874 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19875 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19876 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19877 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19878 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19879 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19880 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19881 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19882 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19883 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19884 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19885 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19886 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19887 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"`'
19888 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"`'
19889 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19890 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19891 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19892 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19893 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19894 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19895 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19896 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19897 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19898 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19899 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19900 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19901 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19902 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19903 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19904 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19905 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19906 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19907 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19908 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19909 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19910 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19911 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19912 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19913 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19914 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19915 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19916 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19917 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19918 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19919 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19920 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19921 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19922 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19923 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19924 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19925 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19926 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19927 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19928 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19929 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19930 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19931 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19932 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19933 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19934 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19935 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19936 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19937 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19938 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19939 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19940 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19941 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19942 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19943 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19944 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19945 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19946 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19947 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19948 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19949 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19950 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19951 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19952 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19953 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19954 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19955 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19956 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19957 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19958 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19959 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19960 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19963 LTCFLAGS='$LTCFLAGS'
19964 compiler='$compiler_DEFAULT'
19966 # Quote evaled strings.
19978 deplibs_check_method \
19987 lt_cv_sys_global_symbol_pipe \
19988 lt_cv_sys_global_symbol_to_cdecl \
19989 lt_cv_sys_global_symbol_to_c_name_address \
19990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19993 lt_prog_compiler_no_builtin_flag \
19994 lt_prog_compiler_wl \
19995 lt_prog_compiler_pic \
19996 lt_prog_compiler_static \
19997 lt_cv_prog_compiler_c_o \
20005 export_dynamic_flag_spec \
20006 whole_archive_flag_spec \
20007 compiler_needs_object \
20009 allow_undefined_flag \
20010 no_undefined_flag \
20011 hardcode_libdir_flag_spec \
20012 hardcode_libdir_flag_spec_ld \
20013 hardcode_libdir_separator \
20018 variables_saved_for_relink \
20020 library_names_spec \
20025 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20026 *[\\\\\\\`\\"\\\$]*)
20027 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20030 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20035 # Double-quote double-evaled strings.
20036 for var in reload_cmds \
20037 old_postinstall_cmds \
20038 old_postuninstall_cmds \
20040 extract_expsyms_cmds \
20041 old_archive_from_new_cmds \
20042 old_archive_from_expsyms_cmds \
20044 archive_expsym_cmds \
20046 module_expsym_cmds \
20047 export_symbols_cmds \
20050 postuninstall_cmds \
20052 sys_lib_search_path_spec \
20053 sys_lib_dlsearch_path_spec; do
20054 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20055 *[\\\\\\\`\\"\\\$]*)
20056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20064 # Fix-up fallback echo if it was mangled by the above quoting rules.
20066 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20070 ac_aux_dir='$ac_aux_dir'
20071 xsi_shell='$xsi_shell'
20072 lt_shell_append='$lt_shell_append'
20074 # See if we are running on zsh, and set the options which allow our
20075 # commands through without removal of \ escapes INIT.
20076 if test -n "\${ZSH_VERSION+set}" ; then
20077 setopt NO_GLOB_SUBST
20083 TIMESTAMP='$TIMESTAMP'
20092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20094 # Handling of arguments.
20095 for ac_config_target
in $ac_config_targets
20097 case $ac_config_target in
20098 "spl_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS spl_config.h" ;;
20099 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20100 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
20101 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20102 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
20103 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
20104 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
20105 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20106 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
20107 "cmd/splat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/splat/Makefile" ;;
20108 "cmd/splslab/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/splslab/Makefile" ;;
20109 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
20110 "module/spl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/spl/Makefile" ;;
20111 "module/splat/Makefile") CONFIG_FILES
="$CONFIG_FILES module/splat/Makefile" ;;
20112 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
20113 "include/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/fs/Makefile" ;;
20114 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
20115 "include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES include/rpc/Makefile" ;;
20116 "include/sharefs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sharefs/Makefile" ;;
20117 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
20118 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
20119 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
20120 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
20121 "include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES include/util/Makefile" ;;
20122 "include/vm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/vm/Makefile" ;;
20123 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
20124 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
20125 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
20126 "rpm/redhat/spl.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/spl.spec" ;;
20127 "rpm/redhat/spl-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
20128 "rpm/redhat/spl-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
20129 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
20130 "rpm/generic/spl.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/spl.spec" ;;
20131 "rpm/generic/spl-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
20132 "rpm/generic/spl-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
20133 "spl.release") CONFIG_FILES
="$CONFIG_FILES spl.release" ;;
20135 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20136 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20137 { (exit 1); exit 1; }; };;
20142 # If the user did not use the arguments to specify the items to instantiate,
20143 # then the envvar interface is used. Set only those that are not.
20144 # We use the long form for the default assignment because of an extremely
20145 # bizarre bug on SunOS 4.1.3.
20146 if $ac_need_defaults; then
20147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20152 # Have a temporary directory for convenience. Make it in the build tree
20153 # simply because there is no reason against having it here, and in addition,
20154 # creating and moving files from /tmp can sometimes cause problems.
20155 # Hook for its removal unless debugging.
20156 # Note that there is a small window in which the directory will not be cleaned:
20157 # after its creation but before its name has been assigned to `$tmp'.
20161 trap 'exit_status=$?
20162 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20164 trap '{ (exit 1); exit 1; }' 1 2 13 15
20166 # Create a (secure) tmp directory for tmp files.
20169 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20170 test -n "$tmp" && test -d "$tmp"
20173 tmp
=.
/conf$$
-$RANDOM
20174 (umask 077 && mkdir
"$tmp")
20177 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20178 { (exit 1); exit 1; }
20181 # Set up the scripts for CONFIG_FILES section.
20182 # No need to generate them if there are no CONFIG_FILES.
20183 # This happens for instance with `./config.status config.h'.
20184 if test -n "$CONFIG_FILES"; then
20188 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20192 ac_cs_awk_cr
=$ac_cr
20195 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20200 echo "cat >conf$$subs.awk <<_ACEOF" &&
20201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20203 } >conf$$subs.sh ||
20204 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
20205 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
20206 { (exit 1); exit 1; }; }
20207 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20209 for ac_last_try in false false false false false :; do
20210 . ./conf$$subs.sh ||
20211 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
20212 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
20213 { (exit 1); exit 1; }; }
20215 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20216 if test $ac_delim_n = $ac_delim_num; then
20218 elif $ac_last_try; then
20219 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
20220 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
20221 { (exit 1); exit 1; }; }
20223 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20226 rm -f conf$$subs.sh
20228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20229 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20233 s/^/S["/; s
/!.
*/"]=/
20243 s/\(.\{148\}\).*/\1/
20245 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20250 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20257 s/\(.\{148\}\).*/\1/
20259 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20263 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20268 ' <conf$$subs.awk | sed '
20273 ' >>$CONFIG_STATUS || ac_write_fail=1
20274 rm -f conf$$subs.awk
20275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20277 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20278 for (key in S) S_is_set[key] = 1
20284 nfields = split(line, field, "@
")
20286 len = length(field[1])
20287 for (i = 2; i < nfields; i++) {
20289 keylen = length(key)
20290 if (S_is_set[key]) {
20292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20293 len += length(value) + length(field[++i])
20304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20305 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20306 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20309 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20310 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
20311 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
20312 { (exit 1); exit 1; }; }
20315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
20317 # trailing colons and then remove the whole line if VPATH becomes empty
20318 # (actually we leave an empty line to preserve line numbers).
20319 if test "x
$srcdir" = x.; then
20320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20321 s/:*\$(srcdir):*/:/
20322 s/:*\${srcdir}:*/:/
20324 s/^\([^=]*=[ ]*\):*/\1/
20330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20331 fi # test -n "$CONFIG_FILES"
20333 # Set up the scripts for CONFIG_HEADERS section.
20334 # No need to generate them if there are no CONFIG_HEADERS.
20335 # This happens for instance with `./config.status Makefile'.
20336 if test -n "$CONFIG_HEADERS"; then
20337 cat >"$tmp/defines.
awk" <<\_ACAWK ||
20341 # Transform confdefs.h into an awk script `defines.awk', embedded as
20342 # here-document in config.status, that substitutes the proper values into
20343 # config.h.in to produce config.h.
20345 # Create a delimiter string that does not exist in confdefs.h, to ease
20346 # handling of long lines.
20348 for ac_last_try in false false :; do
20349 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
20350 if test -z "$ac_t"; then
20352 elif $ac_last_try; then
20353 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
20354 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
20355 { (exit 1); exit 1; }; }
20357 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20361 # For the awk script, D is an array of macro values keyed by name,
20362 # likewise P contains macro parameters if any. Preserve backslash
20363 # newline sequences.
20365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20367 s/.\{148\}/&'"$ac_delim"'/g
20370 s/^[ ]*#[ ]*define[ ][ ]*/ /
20377 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20379 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20384 D["\
1"]=" \
3\\\\\\n
"\\/p
20386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20391 s/.\{148\}/&'"$ac_delim"'/g
20396 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20399 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20401 ' <confdefs.h | sed '
20402 s/'"$ac_delim"'/"\\\
20403 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20406 for (key in D) D_is_set[key] = 1
20409 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20411 split(line, arg, " ")
20412 if (arg[1] == "#") {
20416 defundef
= substr
(arg
[1], 2)
20419 split(mac1
, mac2
, "(") #)
20421 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20422 if (D_is_set
[macro
]) {
20423 # Preserve the white space surrounding the "#".
20424 print prefix
"define", macro P
[macro
] D
[macro
]
20427 # Replace #undef with comments. This is necessary, for example,
20428 # in the case of _POSIX_SOURCE, which is predefined and required
20429 # on some systems where configure will not decide to define it.
20430 if (defundef
== "undef") {
20431 print
"/*", prefix defundef
, macro
, "*/"
20439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20440 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20441 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20442 { (exit 1); exit 1; }; }
20443 fi # test -n "$CONFIG_HEADERS"
20446 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20451 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20453 case $ac_mode$ac_tag in
20455 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20456 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20457 { (exit 1); exit 1; }; };;
20458 :[FH
]-) ac_tag
=-:-;;
20459 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20476 -) ac_f
="$tmp/stdin";;
20477 *) # Look for the file first in the build tree, then in the source tree
20478 # (if the path is not absolute). The absolute path cannot be DOS-style,
20479 # because $ac_f cannot contain `:'.
20483 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20485 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20486 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20487 { (exit 1); exit 1; }; };;
20489 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20490 ac_file_inputs
="$ac_file_inputs '$ac_f'"
20493 # Let's still pretend it is `configure' which instantiates (i.e., don't
20494 # use $as_me), people would be surprised to read:
20495 # /* config.h. Generated by config.status. */
20496 configure_input
='Generated from '`
20497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20499 if test x
"$ac_file" != x-
; then
20500 configure_input
="$ac_file. $configure_input"
20501 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
20502 $as_echo "$as_me: creating $ac_file" >&6;}
20504 # Neutralize special characters interpreted by sed in replacement strings.
20505 case $configure_input in #(
20506 *\
&* |
*\|
* |
*\\* )
20507 ac_sed_conf_input
=`$as_echo "$configure_input" |
20508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20509 *) ac_sed_conf_input
=$configure_input;;
20513 *:-:* |
*:-) cat >"$tmp/stdin" \
20514 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20516 { (exit 1); exit 1; }; } ;;
20521 ac_dir
=`$as_dirname -- "$ac_file" ||
20522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20523 X"$ac_file" : 'X\(//\)[^/]' \| \
20524 X"$ac_file" : 'X\(//\)$' \| \
20525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20526 $as_echo X"$ac_file" |
20527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20531 /^X\(\/\/\)[^/].*/{
20546 -*) as_dir
=.
/$as_dir;;
20548 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
20552 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20553 *) as_qdir
=$as_dir;;
20555 as_dirs
="'$as_qdir' $as_dirs"
20556 as_dir
=`$as_dirname -- "$as_dir" ||
20557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20558 X"$as_dir" : 'X\(//\)[^/]' \| \
20559 X"$as_dir" : 'X\(//\)$' \| \
20560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20561 $as_echo X"$as_dir" |
20562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20566 /^X\(\/\/\)[^/].*/{
20579 test -d "$as_dir" && break
20581 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20582 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20583 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20584 { (exit 1); exit 1; }; }; }
20588 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20590 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20591 # A ".." for each directory in $ac_dir_suffix.
20592 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20593 case $ac_top_builddir_sub in
20594 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20595 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20598 ac_abs_top_builddir
=$ac_pwd
20599 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20600 # for backward compatibility:
20601 ac_top_builddir
=$ac_top_build_prefix
20604 .
) # We are building in place.
20606 ac_top_srcdir
=$ac_top_builddir_sub
20607 ac_abs_top_srcdir
=$ac_pwd ;;
20608 [\\/]* | ?
:[\\/]* ) # Absolute name.
20609 ac_srcdir
=$srcdir$ac_dir_suffix;
20610 ac_top_srcdir
=$srcdir
20611 ac_abs_top_srcdir
=$srcdir ;;
20612 *) # Relative name.
20613 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20614 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20615 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20617 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20627 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20628 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20630 ac_MKDIR_P
=$MKDIR_P
20632 [\\/$
]* | ?
:[\\/]* ) ;;
20633 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20638 # If the template does not know about datarootdir, expand it.
20639 # FIXME: This hack should be removed a few years after 2.60.
20640 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20653 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20654 *datarootdir
*) ac_datarootdir_seen
=yes;;
20655 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20656 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20657 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20660 ac_datarootdir_hack='
20661 s&@datadir@&$datadir&g
20662 s&@docdir@&$docdir&g
20663 s&@infodir@&$infodir&g
20664 s&@localedir@&$localedir&g
20665 s&@mandir@&$mandir&g
20666 s&\\\${datarootdir}&$datarootdir&g' ;;
20670 # Neutralize VPATH when `$srcdir' = `.'.
20671 # Shell code in configure.ac might set extrasub.
20672 # FIXME: do we really want to maintain this feature?
20673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20674 ac_sed_extra="$ac_vpsub
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20679 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20680 s|@configure_input@|
$ac_sed_conf_input|
;t t
20681 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20682 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20683 s
&@srcdir@
&$ac_srcdir&;t t
20684 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20685 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20686 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20687 s
&@builddir@
&$ac_builddir&;t t
20688 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20689 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20690 s
&@INSTALL@
&$ac_INSTALL&;t t
20691 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20692 $ac_datarootdir_hack
20694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
20695 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
20696 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
20697 { (exit 1); exit 1; }; }
20699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
20701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
20702 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20703 which seems to be undefined. Please make sure it is defined." >&5
20704 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20705 which seems to be undefined. Please make sure it is defined." >&2;}
20709 -) cat "$tmp/out" && rm -f "$tmp/out";;
20710 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20712 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20713 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20714 { (exit 1); exit 1; }; }
20720 if test x"$ac_file" != x-; then
20722 $as_echo "/* $configure_input */" \
20723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20724 } >"$tmp/config.h" \
20725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20727 { (exit 1); exit 1; }; }
20728 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20729 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20730 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20733 mv "$tmp/config.h" "$ac_file" \
20734 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
20736 { (exit 1); exit 1; }; }
20739 $as_echo "/* $configure_input */" \
20740 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20741 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20742 $as_echo "$as_me: error: could not create -" >&2;}
20743 { (exit 1); exit 1; }; }
20745 # Compute "$ac_file"'s index
in $config_headers.
20748 for _am_header
in $config_headers :; do
20749 case $_am_header in
20750 $_am_arg |
$_am_arg:* )
20753 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20756 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20757 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20758 X"$_am_arg" : 'X\(//\)[^/]' \| \
20759 X"$_am_arg" : 'X\(//\)$' \| \
20760 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20761 $as_echo X"$_am_arg" |
20762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20766 /^X\(\/\/\)[^/].*/{
20778 s/.*/./; q'`/stamp-h
$_am_stamp_count
20781 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20782 $as_echo "$as_me: executing $ac_file commands" >&6;}
20787 case $ac_file$ac_mode in
20789 (mv spl_config.h spl_config.h.tmp
&&
20790 awk -f ${ac_srcdir}/config
/config.
awk spl_config.h.tmp
>spl_config.h
&&
20791 rm spl_config.h.tmp
) ||
exit 1 ;;
20792 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20793 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20794 # are listed without --file. Let's play safe and only enable the eval
20795 # if we detect the quoting.
20796 case $CONFIG_FILES in
20797 *\'*) eval set x
"$CONFIG_FILES" ;;
20798 *) set x
$CONFIG_FILES ;;
20803 # Strip MF so we end up with the name of the file.
20804 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20805 # Check whether this is an Automake generated Makefile or not.
20806 # We used to match only the files named `Makefile.in', but
20807 # some people rename them; so instead we look at the file content.
20808 # Grep'ing the first line is not enough: some people post-process
20809 # each Makefile.in and add a new line on top of each file to say so.
20810 # Grep'ing the whole file is not good either: AIX grep has a line
20811 # limit of 2048, but all sed's we know have understand at least 4000.
20812 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20813 dirpart
=`$as_dirname -- "$mf" ||
20814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20815 X"$mf" : 'X\(//\)[^/]' \| \
20816 X"$mf" : 'X\(//\)$' \| \
20817 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20823 /^X\(\/\/\)[^/].*/{
20839 # Extract the definition of DEPDIR, am__include, and am__quote
20840 # from the Makefile without running `make'.
20841 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20842 test -z "$DEPDIR" && continue
20843 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20844 test -z "am__include" && continue
20845 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20846 # When using ansi2knr, U may be empty or an underscore; expand it
20847 U
=`sed -n 's/^U = //p' < "$mf"`
20848 # Find all dependency output files, they are included files with
20849 # $(DEPDIR) in their names. We invoke sed twice because it is the
20850 # simplest approach to changing $(DEPDIR) to its actual value in the
20852 for file in `sed -n "
20853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20855 # Make sure the directory exists.
20856 test -f "$dirpart/$file" && continue
20857 fdir
=`$as_dirname -- "$file" ||
20858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20859 X"$file" : 'X\(//\)[^/]' \| \
20860 X"$file" : 'X\(//\)$' \| \
20861 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20862 $as_echo X"$file" |
20863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20867 /^X\(\/\/\)[^/].*/{
20880 { as_dir
=$dirpart/$fdir
20882 -*) as_dir
=.
/$as_dir;;
20884 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
20888 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20889 *) as_qdir
=$as_dir;;
20891 as_dirs
="'$as_qdir' $as_dirs"
20892 as_dir
=`$as_dirname -- "$as_dir" ||
20893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20894 X"$as_dir" : 'X\(//\)[^/]' \| \
20895 X"$as_dir" : 'X\(//\)$' \| \
20896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20897 $as_echo X"$as_dir" |
20898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20902 /^X\(\/\/\)[^/].*/{
20915 test -d "$as_dir" && break
20917 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20918 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20919 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20920 { (exit 1); exit 1; }; }; }
20921 # echo "creating $dirpart/$file"
20922 echo '# dummy' > "$dirpart/$file"
20929 # See if we are running on zsh, and set the options which allow our
20930 # commands through without removal of \ escapes.
20931 if test -n "${ZSH_VERSION+set}" ; then
20932 setopt NO_GLOB_SUBST
20935 cfgfile
="${ofile}T"
20936 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20939 cat <<_LT_EOF >> "$cfgfile"
20942 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20943 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20945 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20947 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20948 # 2006, 2007, 2008 Free Software Foundation, Inc.
20949 # Written by Gordon Matzigkeit, 1996
20951 # This file is part of GNU Libtool.
20953 # GNU Libtool is free software; you can redistribute it and/or
20954 # modify it under the terms of the GNU General Public License as
20955 # published by the Free Software Foundation; either version 2 of
20956 # the License, or (at your option) any later version.
20958 # As a special exception to the GNU General Public License,
20959 # if you distribute this file as part of a program or library that
20960 # is built using GNU Libtool, you may include this file under the
20961 # same distribution terms that you use for the rest of that program.
20963 # GNU Libtool is distributed in the hope that it will be useful,
20964 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20965 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20966 # GNU General Public License for more details.
20968 # You should have received a copy of the GNU General Public License
20969 # along with GNU Libtool; see the file COPYING. If not, a copy
20970 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20971 # obtained by writing to the Free Software Foundation, Inc.,
20972 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20975 # The names of the tagged configurations supported by this script.
20978 # ### BEGIN LIBTOOL CONFIG
20980 # Which release of libtool.m4 was used?
20981 macro_version=$macro_version
20982 macro_revision=$macro_revision
20984 # Whether or not to build shared libraries.
20985 build_libtool_libs=$enable_shared
20987 # Whether or not to build static libraries.
20988 build_old_libs=$enable_static
20990 # What type of objects to build.
20993 # Whether or not to optimize for fast installation.
20994 fast_install=$enable_fast_install
20997 host_alias=$host_alias
21001 # The build system.
21002 build_alias=$build_alias
21006 # A sed program that does not truncate output.
21009 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21010 Xsed="\$SED -e 1s/^X//"
21012 # A grep program that handles long lines.
21018 # A literal string matcher.
21021 # A BSD- or MS-compatible name lister.
21024 # Whether we need soft or hard links.
21027 # What is the maximum length of a command?
21028 max_cmd_len=$max_cmd_len
21030 # Object file suffix (normally "o").
21033 # Executable file suffix (normally "").
21036 # whether the shell understands "unset".
21039 # turn spaces into newlines.
21042 # turn newlines into spaces.
21045 # How to create reloadable object files.
21046 reload_flag=$lt_reload_flag
21047 reload_cmds=$lt_reload_cmds
21049 # An object symbol dumper.
21050 OBJDUMP=$lt_OBJDUMP
21052 # Method to check whether dependent libraries are shared objects.
21053 deplibs_check_method=$lt_deplibs_check_method
21055 # Command to use when deplibs_check_method == "file_magic".
21056 file_magic_cmd=$lt_file_magic_cmd
21060 AR_FLAGS=$lt_AR_FLAGS
21062 # A symbol stripping program.
21065 # Commands used to install an old-style archive.
21067 old_postinstall_cmds=$lt_old_postinstall_cmds
21068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21073 # LTCC compiler flags.
21074 LTCFLAGS=$lt_CFLAGS
21076 # Take the output of nm and produce a listing of raw symbols and C names.
21077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21079 # Transform the output of nm in a proper C declaration.
21080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21082 # Transform the output of nm in a C name address pair.
21083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21085 # Transform the output of nm in a C name address pair when lib prefix is needed.
21086 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21088 # The name of the directory that contains temporary libtool files.
21091 # Shell to use when invoking shell scripts.
21094 # An echo program that does not interpret backslashes.
21097 # Used to examine libraries when file_magic_cmd begins with "file".
21098 MAGIC_CMD=$MAGIC_CMD
21100 # Must we lock files when doing compilation?
21101 need_locks=$lt_need_locks
21103 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21104 DSYMUTIL=$lt_DSYMUTIL
21106 # Tool to change global to local symbols on Mac OS X.
21109 # Tool to manipulate fat objects and archives on Mac OS X.
21112 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21115 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21116 OTOOL64=$lt_OTOOL64
21118 # Old archive suffix (normally "a").
21121 # Shared library suffix (normally ".so").
21122 shrext_cmds=$lt_shrext_cmds
21124 # The commands to extract the exported symbol list from a shared archive.
21125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21127 # Variables whose values should be saved in libtool wrapper scripts and
21128 # restored at link time.
21129 variables_saved_for_relink=$lt_variables_saved_for_relink
21131 # Do we need the "lib" prefix for modules?
21132 need_lib_prefix=$need_lib_prefix
21134 # Do we need a version for libraries?
21135 need_version=$need_version
21137 # Library versioning type.
21138 version_type=$version_type
21140 # Shared library runtime path variable.
21141 runpath_var=$runpath_var
21143 # Shared library path variable.
21144 shlibpath_var=$shlibpath_var
21146 # Is shlibpath searched before the hard-coded library search path?
21147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21149 # Format of library name prefix.
21150 libname_spec=$lt_libname_spec
21152 # List of archive names. First name is the real one, the rest are links.
21153 # The last name is the one that the linker finds with -lNAME
21154 library_names_spec=$lt_library_names_spec
21156 # The coded name of the library, if different from the real name.
21157 soname_spec=$lt_soname_spec
21159 # Command to use after installation of a shared archive.
21160 postinstall_cmds=$lt_postinstall_cmds
21162 # Command to use after uninstallation of a shared archive.
21163 postuninstall_cmds=$lt_postuninstall_cmds
21165 # Commands used to finish a libtool library installation in a directory.
21166 finish_cmds=$lt_finish_cmds
21168 # As "finish_cmds", except a single script fragment to be evaled but
21170 finish_eval=$lt_finish_eval
21172 # Whether we should hardcode library paths into libraries.
21173 hardcode_into_libs=$hardcode_into_libs
21175 # Compile-time system search path for libraries.
21176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21178 # Run-time system search path for libraries.
21179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21181 # Whether dlopen is supported.
21182 dlopen_support=$enable_dlopen
21184 # Whether dlopen of programs is supported.
21185 dlopen_self=$enable_dlopen_self
21187 # Whether dlopen of statically linked programs is supported.
21188 dlopen_self_static=$enable_dlopen_self_static
21190 # Commands to strip libraries.
21191 old_striplib=$lt_old_striplib
21192 striplib=$lt_striplib
21195 # The linker used to build libraries.
21198 # Commands used to build an old-style archive.
21199 old_archive_cmds=$lt_old_archive_cmds
21201 # A language specific compiler.
21204 # Is the compiler the GNU compiler?
21207 # Compiler flag to turn off builtin functions.
21208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21210 # How to pass a linker flag through the compiler.
21211 wl=$lt_lt_prog_compiler_wl
21213 # Additional compiler flags for building library objects.
21214 pic_flag=$lt_lt_prog_compiler_pic
21216 # Compiler flag to prevent dynamic linking.
21217 link_static_flag=$lt_lt_prog_compiler_static
21219 # Does compiler simultaneously support -c and -o options?
21220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21222 # Whether or not to add -lc for building shared libraries.
21223 build_libtool_need_lc=$archive_cmds_need_lc
21225 # Whether or not to disallow shared libs when runtime libs are static.
21226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21228 # Compiler flag to allow reflexive dlopens.
21229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21231 # Compiler flag to generate shared objects directly from archives.
21232 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21234 # Whether the compiler copes with passing no objects directly.
21235 compiler_needs_object=$lt_compiler_needs_object
21237 # Create an old-style archive from a shared archive.
21238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21240 # Create a temporary old-style archive to link instead of a shared archive.
21241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21243 # Commands used to build a shared archive.
21244 archive_cmds=$lt_archive_cmds
21245 archive_expsym_cmds=$lt_archive_expsym_cmds
21247 # Commands used to build a loadable module if different from building
21248 # a shared archive.
21249 module_cmds=$lt_module_cmds
21250 module_expsym_cmds=$lt_module_expsym_cmds
21252 # Whether we are building with GNU ld or not.
21253 with_gnu_ld=$lt_with_gnu_ld
21255 # Flag that allows shared libraries with undefined symbols to be built.
21256 allow_undefined_flag=$lt_allow_undefined_flag
21258 # Flag that enforces no undefined symbols.
21259 no_undefined_flag=$lt_no_undefined_flag
21261 # Flag to hardcode \$libdir into a binary during linking.
21262 # This must work even if \$libdir does not exist
21263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21265 # If ld is used when linking, flag to hardcode \$libdir into a binary
21266 # during linking. This must work even if \$libdir does not exist.
21267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21269 # Whether we need a single "-rpath" flag with a separated argument.
21270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21273 # DIR into the resulting binary.
21274 hardcode_direct=$hardcode_direct
21276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21277 # DIR into the resulting binary and the resulting library dependency is
21278 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21279 # library is relocated.
21280 hardcode_direct_absolute=$hardcode_direct_absolute
21282 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21283 # into the resulting binary.
21284 hardcode_minus_L=$hardcode_minus_L
21286 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21287 # into the resulting binary.
21288 hardcode_shlibpath_var=$hardcode_shlibpath_var
21290 # Set to "yes" if building a shared library automatically hardcodes DIR
21291 # into the library and all subsequent libraries and executables linked
21293 hardcode_automatic=$hardcode_automatic
21295 # Set to yes if linker adds runtime paths of dependent libraries
21296 # to runtime path list.
21297 inherit_rpath=$inherit_rpath
21299 # Whether libtool must link a program against all its dependency libraries.
21300 link_all_deplibs=$link_all_deplibs
21302 # Fix the shell variable \$srcfile for the compiler.
21303 fix_srcfile_path=$lt_fix_srcfile_path
21305 # Set to "yes" if exported symbols are required.
21306 always_export_symbols=$always_export_symbols
21308 # The commands to list exported symbols.
21309 export_symbols_cmds=$lt_export_symbols_cmds
21311 # Symbols that should not be listed in the preloaded symbols.
21312 exclude_expsyms=$lt_exclude_expsyms
21314 # Symbols that must always be exported.
21315 include_expsyms=$lt_include_expsyms
21317 # Commands necessary for linking programs (against libraries) with templates.
21318 prelink_cmds=$lt_prelink_cmds
21320 # Specify filename containing input files.
21321 file_list_spec=$lt_file_list_spec
21323 # How to hardcode a shared library path into an executable.
21324 hardcode_action=$hardcode_action
21326 # ### END LIBTOOL CONFIG
21332 cat <<\_LT_EOF
>> "$cfgfile"
21333 # AIX sometimes has problems with the GCC collect2 program. For some
21334 # reason, if we set the COLLECT_NAMES environment variable, the problems
21335 # vanish in a puff of smoke.
21336 if test "X${COLLECT_NAMES+set}" != Xset
; then
21338 export COLLECT_NAMES
21345 ltmain
="$ac_aux_dir/ltmain.sh"
21348 # We use sed instead of cat because bash on DJGPP gets confused if
21349 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21350 # text mode, it properly converts lines to CR/LF. This bash problem
21351 # is reportedly fixed, but why not run on old versions too?
21352 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21353 ||
(rm -f "$cfgfile"; exit 1)
21357 cat << \_LT_EOF
>> "$cfgfile"
21359 # func_dirname file append nondir_replacement
21360 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21361 # otherwise set result to NONDIR_REPLACEMENT.
21365 */*) func_dirname_result
="${1%/*}${2}" ;;
21366 * ) func_dirname_result
="${3}" ;;
21370 # func_basename file
21373 func_basename_result
="${1##*/}"
21376 # func_dirname_and_basename file append nondir_replacement
21377 # perform func_basename and func_dirname in a single function
21379 # dirname: Compute the dirname of FILE. If nonempty,
21380 # add APPEND to the result, otherwise set result
21381 # to NONDIR_REPLACEMENT.
21382 # value returned in "$func_dirname_result"
21383 # basename: Compute filename of FILE.
21384 # value retuned in "$func_basename_result"
21385 # Implementation must be kept synchronized with func_dirname
21386 # and func_basename. For efficiency, we do not delegate to
21387 # those functions but instead duplicate the functionality here.
21388 func_dirname_and_basename
()
21391 */*) func_dirname_result
="${1%/*}${2}" ;;
21392 * ) func_dirname_result
="${3}" ;;
21394 func_basename_result
="${1##*/}"
21397 # func_stripname prefix suffix name
21398 # strip PREFIX and SUFFIX off of NAME.
21399 # PREFIX and SUFFIX must not contain globbing or regex special
21400 # characters, hashes, percent signs, but SUFFIX may contain a leading
21401 # dot (in which case that matches only a dot).
21404 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21405 # positional parameters, so assign one to ordinary parameter first.
21406 func_stripname_result
=${3}
21407 func_stripname_result
=${func_stripname_result#"${1}"}
21408 func_stripname_result
=${func_stripname_result%"${2}"}
21414 func_opt_split_opt
=${1%%=*}
21415 func_opt_split_arg
=${1#*=}
21422 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
21423 *) func_lo2o_result
=${1} ;;
21427 # func_xform libobj-or-source
21430 func_xform_result
=${1%.*}.lo
21433 # func_arith arithmetic-term...
21436 func_arith_result
=$
(( $
* ))
21440 # STRING may not start with a hyphen.
21443 func_len_result
=${#1}
21448 *) # Bourne compatible functions.
21449 cat << \_LT_EOF
>> "$cfgfile"
21451 # func_dirname file append nondir_replacement
21452 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21453 # otherwise set result to NONDIR_REPLACEMENT.
21456 # Extract subdirectory from the argument.
21457 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21458 if test "X$func_dirname_result" = "X${1}"; then
21459 func_dirname_result
="${3}"
21461 func_dirname_result
="$func_dirname_result${2}"
21465 # func_basename file
21468 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
21472 # func_stripname prefix suffix name
21473 # strip PREFIX and SUFFIX off of NAME.
21474 # PREFIX and SUFFIX must not contain globbing or regex special
21475 # characters, hashes, percent signs, but SUFFIX may contain a leading
21476 # dot (in which case that matches only a dot).
21477 # func_strip_suffix prefix name
21481 .
*) func_stripname_result
=`$ECHO "X${3}" \
21482 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21483 *) func_stripname_result
=`$ECHO "X${3}" \
21484 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21489 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
21490 my_sed_long_arg
='1s/^-[^=]*=//'
21495 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21496 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21502 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21505 # func_xform libobj-or-source
21508 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21511 # func_arith arithmetic-term...
21514 func_arith_result
=`expr "$@"`
21518 # STRING may not start with a hyphen.
21521 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21527 case $lt_shell_append in
21529 cat << \_LT_EOF
>> "$cfgfile"
21531 # func_append var value
21532 # Append VALUE to the end of shell variable VAR.
21540 cat << \_LT_EOF
>> "$cfgfile"
21542 # func_append var value
21543 # Append VALUE to the end of shell variable VAR.
21554 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21555 ||
(rm -f "$cfgfile"; exit 1)
21557 mv -f "$cfgfile" "$ofile" ||
21558 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21567 { (exit 0); exit 0; }
21569 chmod +x
$CONFIG_STATUS
21570 ac_clean_files
=$ac_clean_files_save
21572 test $ac_write_fail = 0 ||
21573 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21574 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21575 { (exit 1); exit 1; }; }
21578 # configure is writing to config.log, and then calls config.status.
21579 # config.status does its own redirection, appending to config.log.
21580 # Unfortunately, on DOS this fails, as config.log is still kept open
21581 # by configure, so config.status won't be able to write to it; its
21582 # output is simply discarded. So we exec the FD to /dev/null,
21583 # effectively closing config.log, so it can be properly (re)opened and
21584 # appended to by config.status. When coming back to configure, we
21585 # need to make the FD available again.
21586 if test "$no_create" != yes; then
21588 ac_config_status_args
=
21589 test "$silent" = yes &&
21590 ac_config_status_args
="$ac_config_status_args --quiet"
21592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21595 # would make configure fail if this is the last instruction.
21596 $ac_cs_success ||
{ (exit 1); exit 1; }
21598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21599 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}