2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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.
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
870 INSTALL_STRIP_PROGRAM
888 MAINTAINER_MODE_FALSE
938 program_transform_name
950 enable_option_checking
951 enable_maintainer_mode
953 enable_dependency_tracking
965 enable_debug_kmem_tracking
966 enable_atomic_spinlocks
968 ac_precious_vars='build_alias
979 # Initialize some variables set by options.
981 ac_init_version=false
982 ac_unrecognized_opts=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
993 program_transform_name=s,x,x,
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE}'
1018 infodir='${datarootdir}/info'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1045 case $ac_dashdash$ac_option in
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1069 -datadir | --datadir | --datadi | --datad)
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1096 eval enable_$ac_useropt=no ;;
1098 -docdir | --docdir | --docdi | --doc | --do)
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 htmldir=$ac_optarg ;;
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1168 -libdir | --libdir | --libdi | --libd)
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1259 -psdir | --psdir | --psdi | --psd | --ps)
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 sbindir=$ac_optarg ;;
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 sharedstatedir=$ac_optarg ;;
1285 -site | --site | --sit)
1287 -site=* | --site=* | --sit=*)
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1328 eval with_$ac_useropt=\$ac_optarg ;;
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1335 { (exit 1); exit 1; }; }
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1345 eval with_$ac_useropt=no ;;
1348 # Obsolete; use --with-x.
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1365 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1366 Try \`$0 --help' for more information." >&2
1367 { (exit 1); exit 1; }; }
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1374 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1375 { (exit 1); exit 1; }; }
1376 eval $ac_envvar=\$ac_optarg
1377 export $ac_envvar ;;
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390 if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1393 { (exit 1); exit 1; }; }
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1399 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1400 { (exit 1); exit 1; }; } ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1418 # Be sure to have absolute directory names.
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1424 { (exit 1); exit 1; }; }
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1432 target=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448 test "$silent" = yes && exec 6>/dev/null
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1455 { (exit 1); exit 1; }; }
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1458 { (exit 1); exit 1; }; }
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463 ac_srcdir_defaulted=yes
1464 # Try the directory containing this script, then the parent directory.
1465 ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467 X"$as_myself" : 'X\(//\)[^/]' \| \
1468 X"$as_myself" : 'X\(//\)$' \| \
1469 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1493 ac_srcdir_defaulted=no
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1498 { (exit 1); exit 1; }; }
1500 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1503 { (exit 1); exit 1; }; }
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 # Report the --help message.
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1529 \`configure' configures this package to adapt to many kinds of systems.
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1536 Defaults for the options are specified in brackets.
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1560 For better control, use the options below.
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 --target=TARGET configure for building compilers for TARGET [HOST]
1598 if test -n "$ac_init_help"; then
1603 --disable-option-checking ignore unrecognized --enable/--with options
1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1606 --enable-maintainer-mode enable make rules and dependencies not useful
1607 (and sometimes confusing) to the casual installer
1608 --enable-silent-rules less verbose build output (undo: `make V=1')
1609 --disable-silent-rules verbose build output (undo: `make V=0')
1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-debug Enable generic debug support [default=no]
1618 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1619 --enable-debug-kmem-tracking
1620 Enable detailed kmem tracking [default=no]
1621 --enable-atomic-spinlocks
1622 Atomic types use spinlocks [default=check]
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-pic try to use only PIC/non-PIC objects [default=use
1629 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1630 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1631 --with-linux=PATH Path to kernel source
1632 --with-linux-obj=PATH Path to kernel build objects
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1676 .) # We are building in place.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1710 generated by GNU Autoconf 2.63
1712 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1713 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1719 cat >config.log <<_ACEOF
1720 This file contains any messages produced by compilers while
1721 running configure, to aid debugging if configure makes a mistake.
1723 It was created by $as_me, which was
1724 generated by GNU Autoconf 2.63. Invocation command line was
1736 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1737 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1738 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1739 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1740 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1742 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1743 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1745 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1746 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1747 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1748 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1749 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1750 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1751 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 $as_echo "PATH: $as_dir"
1776 # Keep a trace of the command line.
1777 # Strip out --no-create and --no-recursion so they do not pile up.
1778 # Strip out --silent because we don't want to record it for future runs.
1779 # Also quote any args containing shell meta-characters.
1780 # Make two passes to allow for proper duplicate-argument suppression.
1784 ac_must_keep_next=false
1790 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1792 | -silent | --silent | --silen | --sile | --sil)
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1800 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1801 if test $ac_must_keep_next = true; then
1802 ac_must_keep_next=false # Got value, back to normal.
1805 *=* | --config-cache | -C | -disable-* | --disable-* \
1806 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1807 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1808 | -with-* | --with-* | -without-* | --without-* | --x)
1809 case "$ac_configure_args0 " in
1810 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813 -* ) ac_must_keep_next=true ;;
1816 ac_configure_args="$ac_configure_args '$ac_arg'"
1821 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1822 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1824 # When interrupted or exit'd, cleanup temporary files, and complete
1825 # config.log. We remove comments because anyway the quotes in there
1826 # would cause problems or look ugly.
1827 # WARNING: Use '\'' to represent an apostrophe within the trap.
1828 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1829 trap 'exit_status=$?
1830 # Save into config.log some information that might help in debugging.
1835 ## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##
1840 # The following way of writing the cache mishandles newlines in values,
1842 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1843 eval ac_val=\$$ac_var
1847 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1851 _ | IFS | as_nl) ;; #(
1852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1853 *) $as_unset $ac_var ;;
1858 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1859 *${as_nl}ac_space=\ *)
1861 "s/'\''/'\''\\\\'\'''\''/g;
1862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1873 ## ----------------- ##
1874 ## Output variables. ##
1875 ## ----------------- ##
1878 for ac_var in $ac_subst_vars
1880 eval ac_val=\$$ac_var
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 $as_echo "$ac_var='\''$ac_val'\''"
1888 if test -n "$ac_subst_files"; then
1890 ## ------------------- ##
1891 ## File substitutions. ##
1892 ## ------------------- ##
1895 for ac_var in $ac_subst_files
1897 eval ac_val=\$$ac_var
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 $as_echo "$ac_var='\''$ac_val'\''"
1906 if test -s confdefs.h; then
1916 test "$ac_signal" != 0 &&
1917 $as_echo "$as_me: caught signal $ac_signal"
1918 $as_echo "$as_me: exit $exit_status"
1920 rm -f core *.core core.conftest.* &&
1921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924 for ac_signal in 1 2 13 15; do
1925 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1930 rm -f -r conftest* confdefs.h
1932 # Predefined preprocessor variables.
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 # Let the site file select an alternate cache file if it wants to.
1960 # Prefer an explicitly selected file to automatically selected ones.
1963 if test -n "$CONFIG_SITE"; then
1964 ac_site_file1=$CONFIG_SITE
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1974 test "x$ac_site_file" = xNONE && continue
1975 if test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special
1985 # files actually), so we avoid doing that.
1986 if test -f "$cache_file"; then
1987 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1995 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
2000 # Check that the precious variables saved in the cache have kept the same
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2028 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2032 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2050 if $ac_cache_corrupted; then
2051 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2057 { (exit 1); exit 1; }; }
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2091 $as_echo_n "checking metadata... " >&6; }
2094 _spl_ac_meta_got_file=no
2095 if test -f "$META"; then
2096 _spl_ac_meta_got_file=yes
2098 SPL_META_NAME=`perl -n\
2099 -e "BEGIN { \\$key=shift @ARGV; }"\
2100 -e "next unless s/^\s*\\$key[:=]//i;"\
2101 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2104 -e "s/^(['\"])(.*)\1/\\$2/;"\
2106 -e "END { print \\$val if defined \\$val; }"\
2107 '(?:NAME|PROJECT|PACKAGE)' $META`;
2108 if test -n "$SPL_META_NAME"; then
2110 cat >>confdefs.h <<_ACEOF
2111 #define SPL_META_NAME "$SPL_META_NAME"
2117 SPL_META_VERSION=`perl -n\
2118 -e "BEGIN { \\$key=shift @ARGV; }"\
2119 -e "next unless s/^\s*\\$key[:=]//i;"\
2120 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2123 -e "s/^(['\"])(.*)\1/\\$2/;"\
2125 -e "END { print \\$val if defined \\$val; }"\
2127 if test -n "$SPL_META_VERSION"; then
2129 cat >>confdefs.h <<_ACEOF
2130 #define SPL_META_VERSION "$SPL_META_VERSION"
2136 SPL_META_RELEASE=`perl -n\
2137 -e "BEGIN { \\$key=shift @ARGV; }"\
2138 -e "next unless s/^\s*\\$key[:=]//i;"\
2139 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2142 -e "s/^(['\"])(.*)\1/\\$2/;"\
2144 -e "END { print \\$val if defined \\$val; }"\
2146 if test -n "$SPL_META_RELEASE"; then
2148 cat >>confdefs.h <<_ACEOF
2149 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2155 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2156 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2157 test -n "$SPL_META_RELEASE" &&
2158 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2160 cat >>confdefs.h <<_ACEOF
2161 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2167 SPL_META_DATA=`perl -n\
2168 -e "BEGIN { \\$key=shift @ARGV; }"\
2169 -e "next unless s/^\s*\\$key[:=]//i;"\
2170 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2173 -e "s/^(['\"])(.*)\1/\\$2/;"\
2175 -e "END { print \\$val if defined \\$val; }"\
2177 if test -n "$SPL_META_DATA"; then
2179 cat >>confdefs.h <<_ACEOF
2180 #define SPL_META_DATA "$SPL_META_DATA"
2186 SPL_META_AUTHOR=`perl -n\
2187 -e "BEGIN { \\$key=shift @ARGV; }"\
2188 -e "next unless s/^\s*\\$key[:=]//i;"\
2189 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2192 -e "s/^(['\"])(.*)\1/\\$2/;"\
2194 -e "END { print \\$val if defined \\$val; }"\
2196 if test -n "$SPL_META_AUTHOR"; then
2198 cat >>confdefs.h <<_ACEOF
2199 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2206 SPL_META_LT_CURRENT=`perl -n\
2207 -e "BEGIN { \\$key=shift @ARGV; }"\
2208 -e "next unless s/^\s*\\$key[:=]//i;"\
2209 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2212 -e "s/^(['\"])(.*)\1/\\$2/;"\
2214 -e "END { print \\$val if defined \\$val; }"\
2215 'LT_CURRENT' $META`;
2216 SPL_META_LT_REVISION=`perl -n\
2217 -e "BEGIN { \\$key=shift @ARGV; }"\
2218 -e "next unless s/^\s*\\$key[:=]//i;"\
2219 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2222 -e "s/^(['\"])(.*)\1/\\$2/;"\
2224 -e "END { print \\$val if defined \\$val; }"\
2225 'LT_REVISION' $META`;
2226 SPL_META_LT_AGE=`perl -n\
2227 -e "BEGIN { \\$key=shift @ARGV; }"\
2228 -e "next unless s/^\s*\\$key[:=]//i;"\
2229 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2232 -e "s/^(['\"])(.*)\1/\\$2/;"\
2234 -e "END { print \\$val if defined \\$val; }"\
2236 if test -n "$SPL_META_LT_CURRENT" \
2237 -o -n "$SPL_META_LT_REVISION" \
2238 -o -n "$SPL_META_LT_AGE"; then
2239 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2240 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2241 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2243 cat >>confdefs.h <<_ACEOF
2244 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2248 cat >>confdefs.h <<_ACEOF
2249 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2253 cat >>confdefs.h <<_ACEOF
2254 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2263 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2264 $as_echo "$_spl_ac_meta_got_file" >&6; }
2268 for ac_dir in config "$srcdir"/config; do
2269 if test -f "$ac_dir/install-sh"; then
2271 ac_install_sh="$ac_aux_dir/install-sh -c"
2273 elif test -f "$ac_dir/install.sh"; then
2275 ac_install_sh="$ac_aux_dir/install.sh -c"
2277 elif test -f "$ac_dir/shtool"; then
2279 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 if test -z "$ac_aux_dir"; then
2284 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2285 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2286 { (exit 1); exit 1; }; }
2289 # These three variables are undocumented and unsupported,
2290 # and are intended to be withdrawn in a future Autoconf release.
2291 # They can cause serious problems if a builder's source tree is in a directory
2292 # whose full name contains unusual characters.
2293 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2294 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2295 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298 # Make sure we can run config.sub.
2299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2300 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2301 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2302 { (exit 1); exit 1; }; }
2304 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2305 $as_echo_n "checking build system type... " >&6; }
2306 if test "${ac_cv_build+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2309 ac_build_alias=$build_alias
2310 test "x$ac_build_alias" = x &&
2311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312 test "x$ac_build_alias" = x &&
2313 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2314 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2315 { (exit 1); exit 1; }; }
2316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2318 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2319 { (exit 1); exit 1; }; }
2322 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2326 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2327 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2328 { (exit 1); exit 1; }; };;
2331 ac_save_IFS=$IFS; IFS='-'
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2344 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2345 $as_echo_n "checking host system type... " >&6; }
2346 if test "${ac_cv_host+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2354 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2355 { (exit 1); exit 1; }; }
2359 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2360 $as_echo "$ac_cv_host" >&6; }
2363 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2364 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2365 { (exit 1); exit 1; }; };;
2368 ac_save_IFS=$IFS; IFS='-'
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2382 $as_echo_n "checking target system type... " >&6; }
2383 if test "${ac_cv_target+set}" = set; then
2384 $as_echo_n "(cached) " >&6
2386 if test "x$target_alias" = x; then
2387 ac_cv_target=$ac_cv_host
2389 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2390 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2391 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2392 { (exit 1); exit 1; }; }
2396 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2397 $as_echo "$ac_cv_target" >&6; }
2398 case $ac_cv_target in
2400 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2401 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2402 { (exit 1); exit 1; }; };;
2404 target=$ac_cv_target
2405 ac_save_IFS=$IFS; IFS='-'
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2418 # The aliases save the names the user supplied, while $host etc.
2419 # will get canonicalized.
2420 test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2423 program_prefix=${target_alias}-
2425 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2427 # Check whether --enable-maintainer-mode was given.
2428 if test "${enable_maintainer_mode+set}" = set; then
2429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2431 USE_MAINTAINER_MODE=no
2434 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2436 if test $USE_MAINTAINER_MODE = yes; then
2437 MAINTAINER_MODE_TRUE=
2438 MAINTAINER_MODE_FALSE='#'
2440 MAINTAINER_MODE_TRUE='#'
2441 MAINTAINER_MODE_FALSE=
2444 MAINT=$MAINTAINER_MODE_TRUE
2447 # Check whether --enable-silent-rules was given.
2448 if test "${enable_silent_rules+set}" = set; then
2449 enableval=$enable_silent_rules;
2452 case $enable_silent_rules in
2453 yes) AM_DEFAULT_VERBOSITY=0;;
2454 no) AM_DEFAULT_VERBOSITY=1;;
2455 *) AM_DEFAULT_VERBOSITY=1;;
2459 am__api_version='1.11'
2461 # Find a good install program. We prefer a C program (faster),
2462 # so one script is as good as another. But avoid the broken or
2463 # incompatible versions:
2464 # SysV /etc/install, /usr/sbin/install
2465 # SunOS /usr/etc/install
2466 # IRIX /sbin/install
2468 # AmigaOS /C/install, which installs bootblocks on floppy discs
2469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472 # OS/2's system install, which has a completely different semantic
2473 # ./install, which can be erroneously created by make from ./install.sh.
2474 # Reject install programs that cannot install multiple files.
2475 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2476 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2477 if test -z "$INSTALL"; then
2478 if test "${ac_cv_path_install+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2488 ./ | .// | /cC/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 rm -rf conftest.one conftest.two conftest.dir
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 INSTALL=$ac_install_sh
2543 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2544 $as_echo "$INSTALL" >&6; }
2546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547 # It thinks the first close brace ends the variable substitution.
2548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2554 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2555 $as_echo_n "checking whether build environment is sane... " >&6; }
2558 echo timestamp > conftest.file
2559 # Reject unsafe characters in $srcdir or the absolute working directory
2560 # name. Accept space and tab only in the latter.
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2566 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2567 { (exit 1); exit 1; }; };;
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2572 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2573 { (exit 1); exit 1; }; };;
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2582 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2585 set X `ls -t "$srcdir/configure" conftest.file`
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2602 test "$2" = conftest.file
2608 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 $as_echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2614 { $as_echo "$as_me:$LINENO: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621 # Double any \ or $.
2622 # By default was `s,x,x', remove it if useless.
2623 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2629 if test x"${MISSING+set}" != xset; then
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2642 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2646 if test x"${install_sh}" != xset; then
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2655 # Installed binaries are usually stripped using `strip' when the user
2656 # run `make install-strip'. However `strip' might not be the right
2657 # tool to use in cross-compilation environments, therefore Automake
2658 # will honor the `STRIP' environment variable to overrule this program.
2659 if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}strip; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_STRIP+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 STRIP=$ac_cv_prog_STRIP
2689 if test -n "$STRIP"; then
2690 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2691 $as_echo "$STRIP" >&6; }
2693 { $as_echo "$as_me:$LINENO: result: no" >&5
2694 $as_echo "no" >&6; }
2699 if test -z "$ac_cv_prog_STRIP"; then
2701 # Extract the first word of "strip", so it can be a program name with args.
2702 set dummy strip; ac_word=$2
2703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2706 $as_echo_n "(cached) " >&6
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729 if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2731 $as_echo "$ac_ct_STRIP" >&6; }
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2737 if test "x$ac_ct_STRIP" = x; then
2740 case $cross_compiling:$ac_tool_warned in
2742 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2749 STRIP="$ac_cv_prog_STRIP"
2753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757 if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
2794 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2795 $as_echo "$MKDIR_P" >&6; }
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2803 for ac_prog in gawk mawk nawk awk
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_AWK+set}" = set; then
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_AWK="$ac_prog"
2823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 if test -n "$AWK"; then
2834 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2835 $as_echo "$AWK" >&6; }
2837 { $as_echo "$as_me:$LINENO: result: no" >&5
2838 $as_echo "no" >&6; }
2842 test -n "$AWK" && break
2845 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2850 $as_echo_n "(cached) " >&6
2852 cat >conftest.make <<\_ACEOF
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:$LINENO: result: yes" >&5
2868 $as_echo "yes" >&6; }
2871 { $as_echo "$as_me:$LINENO: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2876 rm -rf .tst 2>/dev/null
2877 mkdir .tst 2>/dev/null
2878 if test -d .tst; then
2883 rmdir .tst 2>/dev/null
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2892 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2893 { (exit 1); exit 1; }; }
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2907 # Define the identity of the package.
2908 PACKAGE=$SPL_META_NAME
2909 VERSION=$SPL_META_VERSION
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2921 # Some tools Automake needs.
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937 # We need awk for the "check" target. The system "awk" is bad on
2939 # Always define AMTAR for backward compatibility.
2941 AMTAR=${AMTAR-"${am_missing_run}tar"}
2943 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2949 ac_config_headers="$ac_config_headers spl_config.h"
2952 # Find a good install program. We prefer a C program (faster),
2953 # so one script is as good as another. But avoid the broken or
2954 # incompatible versions:
2955 # SysV /etc/install, /usr/sbin/install
2956 # SunOS /usr/etc/install
2957 # IRIX /sbin/install
2959 # AmigaOS /C/install, which installs bootblocks on floppy discs
2960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2963 # OS/2's system install, which has a completely different semantic
2964 # ./install, which can be erroneously created by make from ./install.sh.
2965 # Reject install programs that cannot install multiple files.
2966 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 $as_echo_n "(cached) " >&6
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2999 rm -rf conftest.one conftest.two conftest.dir
3000 echo one > conftest.one
3001 echo two > conftest.two
3003 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3004 test -s conftest.one && test -s conftest.two &&
3005 test -s conftest.dir/conftest.one &&
3006 test -s conftest.dir/conftest.two
3008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3021 rm -rf conftest.one conftest.two conftest.dir
3024 if test "${ac_cv_path_install+set}" = set; then
3025 INSTALL=$ac_cv_path_install
3027 # As a last resort, use the slow shell script. Don't cache a
3028 # value for INSTALL within a source directory, because that will
3029 # break other packages using the cache if that directory is
3030 # removed, or if the value is a relative name.
3031 INSTALL=$ac_install_sh
3034 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3035 $as_echo "$INSTALL" >&6; }
3037 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3038 # It thinks the first close brace ends the variable substitution.
3039 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3041 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3089 if test -z "$ac_cv_prog_CC"; then
3091 # Extract the first word of "gcc", so it can be a program name with args.
3092 set dummy gcc; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="gcc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3127 if test "x$ac_ct_CC" = x; then
3130 case $cross_compiling:$ac_tool_warned in
3132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}cc; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="${ac_tool_prefix}cc"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3183 if test -z "$CC"; then
3184 # Extract the first word of "cc", so it can be a program name with args.
3185 set dummy cc; ac_word=$2
3186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203 ac_prog_rejected=yes
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test $ac_prog_rejected = yes; then
3215 # We found a bogon in the path, so make sure we never use it.
3216 set dummy $ac_cv_prog_CC
3218 if test $# != 0; then
3219 # We chose a different compiler from the bogus one.
3220 # However, it has the same basename, so the bogon will be chosen
3221 # first if we set CC to just the basename; use the full file name.
3223 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 for ac_prog in cl.exe
3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3280 test -n "$CC" && break
3283 if test -z "$CC"; then
3285 for ac_prog in cl.exe
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_CC="$ac_prog"
3305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 $as_echo "$ac_ct_CC" >&6; }
3319 { $as_echo "$as_me:$LINENO: result: no" >&5
3320 $as_echo "no" >&6; }
3324 test -n "$ac_ct_CC" && break
3327 if test "x$ac_ct_CC" = x; then
3330 case $cross_compiling:$ac_tool_warned in
3332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3343 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346 See \`config.log' for more details." >&5
3347 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }; }
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3355 { (ac_try="$ac_compiler --version >&5"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler --version >&5") 2>&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try="$ac_compiler -v >&5"
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -v >&5") 2>&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377 { (ac_try="$ac_compiler -V >&5"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compiler -V >&5") 2>&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3409 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3410 $as_echo_n "checking for C compiler default output file name... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 for ac_file in $ac_files
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 if { (ac_try="$ac_link_default"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link_default") 2>&5
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 # We found the default executable, but exeext='' is most
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3473 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3474 $as_echo "$ac_file" >&6; }
3475 if test -z "$ac_file"; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&2;}
3485 { (exit 77); exit 77; }; }; }
3488 ac_exeext=$ac_cv_exeext
3490 # Check that the compiler produces executables we can run. If not, either
3491 # the compiler is broken, or we cross compile.
3492 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3495 # If not cross compiling, check that we can run a simple program.
3496 if test "$cross_compiling" != yes; then
3497 if { ac_try='./$ac_file'
3498 { (case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_try") 2>&5
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3510 if test "$cross_compiling" = maybe; then
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3516 If you meant to cross compile, use \`--host'.
3517 See \`config.log' for more details." >&5
3518 $as_echo "$as_me: error: cannot run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3525 { $as_echo "$as_me:$LINENO: result: yes" >&5
3526 $as_echo "yes" >&6; }
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3535 $as_echo "$cross_compiling" >&6; }
3537 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { (ac_try="$ac_link"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3545 $as_echo "$ac_try_echo") >&5
3546 (eval "$ac_link") 2>&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; then
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details." >&5
3568 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }; }
3573 rm -f conftest$ac_cv_exeext
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3577 rm -f conftest.$ac_ext
3578 EXEEXT=$ac_cv_exeext
3580 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if test "${ac_cv_objext+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3600 rm -f conftest.o conftest.obj
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>&5
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; then
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details." >&5
3628 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }; }
3633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
3637 OBJEXT=$ac_cv_objext
3639 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if test "${ac_cv_prog_cc_g+set}" = set; then
3704 $as_echo_n "(cached) " >&6
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3710 cat >conftest.$ac_ext <<_ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3725 rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3749 cat >conftest.$ac_ext <<_ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3850 if test "$GCC" = yes; then
3856 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if test "${ac_cv_prog_cc_c89+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3861 ac_cv_prog_cc_c89=no
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3871 #include <sys/types.h>
3872 #include <sys/stat.h>
3873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874 struct buf { int x; };
3875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876 static char *e (p, i)
3882 static char *f (char * (*g) (char **, int), char **p, ...)
3887 s = g (p, va_arg (v,int));
3892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3906 int test (int i, double x);
3907 struct s1 {int (*f) (int a);};
3908 struct s2 {int (*f) (double a);};
3909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931 $as_echo "$ac_try_echo") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3934 grep -v '^ *+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_c89=$ac_arg
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3950 rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
3953 rm -f conftest.$ac_ext
3958 case "x$ac_cv_prog_cc_c89" in
3960 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961 $as_echo "none needed" >&6; } ;;
3963 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964 $as_echo "unsupported" >&6; } ;;
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 DEPDIR="${am__leading_dot}deps"
3979 ac_config_commands="$ac_config_commands depfiles"
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3985 @echo this is the am__doit target
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from `make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4017 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then
4023 enableval=$enable_dependency_tracking;
4026 if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4030 if test "x$enable_dependency_tracking" != xno; then
4040 depcc="$CC" am_compiler_list=
4042 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043 $as_echo_n "checking dependency style of $depcc... " >&6; }
4044 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4066 am_cv_CC_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 case " $depcc " in #(
4072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4087 # Solaris 8's {/usr,}/bin/sh.
4088 touch sub/conftst$i.h
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle `-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4104 # after this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested
4106 if test "x$enable_dependency_tracking" = xyes; then
4112 msvisualcpp | msvcmsys)
4113 # This compiler won't grok `-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4121 if depmode=$depmode \
4122 source=sub/conftest.c object=$am__obj \
4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4125 >/dev/null 2>conftest.err &&
4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_CC_dependencies_compiler_type=$depmode
4148 am_cv_CC_dependencies_compiler_type=none
4152 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4160 am__fastdepCC_FALSE='#'
4162 am__fastdepCC_TRUE='#'
4163 am__fastdepCC_FALSE=
4169 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4170 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4175 macro_version='2.2.6b'
4176 macro_revision='1.3017'
4190 ltmain="$ac_aux_dir/ltmain.sh"
4192 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4193 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194 if test "${ac_cv_path_SED+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198 for ac_i in 1 2 3 4 5 6 7; do
4199 ac_script="$ac_script$as_nl$ac_script"
4201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202 $as_unset ac_script || ac_script=
4203 if test -z "$SED"; then
4204 ac_path_SED_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in sed gsed; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4215 # Check for GNU ac_path_SED and select it if it is found.
4216 # Check for GNU $ac_path_SED
4217 case `"$ac_path_SED" --version 2>&1` in
4219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4222 $as_echo_n 0123456789 >"conftest.in"
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo '' >> "conftest.nl"
4229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 ac_count=`expr $ac_count + 1`
4232 if test $ac_count -gt ${ac_path_SED_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_SED="$ac_path_SED"
4235 ac_path_SED_max=$ac_count
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4243 $ac_path_SED_found && break 3
4248 if test -z "$ac_cv_path_SED"; then
4249 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4250 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4251 { (exit 1); exit 1; }; }
4258 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4259 $as_echo "$ac_cv_path_SED" >&6; }
4260 SED="$ac_cv_path_SED"
4263 test -z "$SED" && SED=sed
4264 Xsed="$SED -e 1s/^X//"
4276 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4277 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4278 if test "${ac_cv_path_GREP+set}" = set; then
4279 $as_echo_n "(cached) " >&6
4281 if test -z "$GREP"; then
4282 ac_path_GREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in grep ggrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4293 # Check for GNU ac_path_GREP and select it if it is found.
4294 # Check for GNU $ac_path_GREP
4295 case `"$ac_path_GREP" --version 2>&1` in
4297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300 $as_echo_n 0123456789 >"conftest.in"
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'GREP' >> "conftest.nl"
4307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_GREP="$ac_path_GREP"
4313 ac_path_GREP_max=$ac_count
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 $ac_path_GREP_found && break 3
4326 if test -z "$ac_cv_path_GREP"; then
4327 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329 { (exit 1); exit 1; }; }
4332 ac_cv_path_GREP=$GREP
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4341 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if test "${ac_cv_path_EGREP+set}" = set; then
4344 $as_echo_n "(cached) " >&6
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4368 $as_echo_n 0123456789 >"conftest.in"
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 ac_count=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 $ac_path_EGREP_found && break 3
4394 if test -z "$ac_cv_path_EGREP"; then
4395 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4400 ac_cv_path_EGREP=$EGREP
4405 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4406 $as_echo "$ac_cv_path_EGREP" >&6; }
4407 EGREP="$ac_cv_path_EGREP"
4410 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4411 $as_echo_n "checking for fgrep... " >&6; }
4412 if test "${ac_cv_path_FGREP+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4416 then ac_cv_path_FGREP="$GREP -F"
4418 if test -z "$FGREP"; then
4419 ac_path_FGREP_found=false
4420 # Loop through the user's path and test for each of PROGNAME-LIST
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4425 test -z "$as_dir" && as_dir=.
4426 for ac_prog in fgrep; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4429 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4430 # Check for GNU ac_path_FGREP and select it if it is found.
4431 # Check for GNU $ac_path_FGREP
4432 case `"$ac_path_FGREP" --version 2>&1` in
4434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4437 $as_echo_n 0123456789 >"conftest.in"
4440 cat "conftest.in" "conftest.in" >"conftest.tmp"
4441 mv "conftest.tmp" "conftest.in"
4442 cp "conftest.in" "conftest.nl"
4443 $as_echo 'FGREP' >> "conftest.nl"
4444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446 ac_count=`expr $ac_count + 1`
4447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4448 # Best one so far, save it but keep looking for a better one
4449 ac_cv_path_FGREP="$ac_path_FGREP"
4450 ac_path_FGREP_max=$ac_count
4452 # 10*(2^10) chars as input seems more than enough
4453 test $ac_count -gt 10 && break
4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458 $ac_path_FGREP_found && break 3
4463 if test -z "$ac_cv_path_FGREP"; then
4464 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4465 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4466 { (exit 1); exit 1; }; }
4469 ac_cv_path_FGREP=$FGREP
4474 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4475 $as_echo "$ac_cv_path_FGREP" >&6; }
4476 FGREP="$ac_cv_path_FGREP"
4479 test -z "$GREP" && GREP=grep
4499 # Check whether --with-gnu-ld was given.
4500 if test "${with_gnu_ld+set}" = set; then
4501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4507 if test "$GCC" = yes; then
4508 # Check if gcc -print-prog-name=ld gives a path.
4509 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4510 $as_echo_n "checking for ld used by $CC... " >&6; }
4513 # gcc leaves a trailing carriage return which upsets mingw
4514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4519 # Accept absolute paths.
4521 re_direlt='/[^/][^/]*/\.\./'
4522 # Canonicalize the pathname of ld
4523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4527 test -z "$LD" && LD="$ac_prog"
4530 # If it fails, then pretend we aren't using GCC.
4534 # If it is relative, then search for the first ld in PATH.
4538 elif test "$with_gnu_ld" = yes; then
4539 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4540 $as_echo_n "checking for GNU ld... " >&6; }
4542 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4543 $as_echo_n "checking for non-GNU ld... " >&6; }
4545 if test "${lt_cv_path_LD+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4548 if test -z "$LD"; then
4549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4550 for ac_dir in $PATH; do
4552 test -z "$ac_dir" && ac_dir=.
4553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4554 lt_cv_path_LD="$ac_dir/$ac_prog"
4555 # Check to see if the program is GNU ld. I'd rather use --version,
4556 # but apparently some variants of GNU ld only accept -v.
4557 # Break only if it was the GNU/non-GNU ld that we prefer.
4558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 test "$with_gnu_ld" != no && break
4563 test "$with_gnu_ld" != yes && break
4570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4575 if test -n "$LD"; then
4576 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4577 $as_echo "$LD" >&6; }
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4582 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4583 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4584 { (exit 1); exit 1; }; }
4585 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4587 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4588 $as_echo_n "(cached) " >&6
4590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4591 case `$LD -v 2>&1 </dev/null` in
4592 *GNU* | *'with BFD'*)
4593 lt_cv_prog_gnu_ld=yes
4596 lt_cv_prog_gnu_ld=no
4600 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4601 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4602 with_gnu_ld=$lt_cv_prog_gnu_ld
4612 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4613 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4614 if test "${lt_cv_path_NM+set}" = set; then
4615 $as_echo_n "(cached) " >&6
4617 if test -n "$NM"; then
4618 # Let the user override the test.
4621 lt_nm_to_check="${ac_tool_prefix}nm"
4622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4623 lt_nm_to_check="$lt_nm_to_check nm"
4625 for lt_tmp_nm in $lt_nm_to_check; do
4626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4629 test -z "$ac_dir" && ac_dir=.
4630 tmp_nm="$ac_dir/$lt_tmp_nm"
4631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4632 # Check to see if the nm accepts a BSD-compat flag.
4633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4634 # nm: unknown option "B" ignored
4635 # Tru64's nm complains that /dev/null is an invalid object file
4636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4637 */dev/null* | *'Invalid file or object type'*)
4638 lt_cv_path_NM="$tmp_nm -B"
4642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4644 lt_cv_path_NM="$tmp_nm -p"
4648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649 continue # so that we can try to find one that supports BSD flags
4658 : ${lt_cv_path_NM=no}
4661 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4662 $as_echo "$lt_cv_path_NM" >&6; }
4663 if test "$lt_cv_path_NM" != "no"; then
4666 # Didn't find any BSD compatible name lister, look for dumpbin.
4667 if test -n "$ac_tool_prefix"; then
4668 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$DUMPBIN"; then
4678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 DUMPBIN=$ac_cv_prog_DUMPBIN
4698 if test -n "$DUMPBIN"; then
4699 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4700 $as_echo "$DUMPBIN" >&6; }
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4707 test -n "$DUMPBIN" && break
4710 if test -z "$DUMPBIN"; then
4711 ac_ct_DUMPBIN=$DUMPBIN
4712 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy $ac_prog; ac_word=$2
4716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4721 if test -n "$ac_ct_DUMPBIN"; then
4722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4742 if test -n "$ac_ct_DUMPBIN"; then
4743 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4744 $as_echo "$ac_ct_DUMPBIN" >&6; }
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747 $as_echo "no" >&6; }
4751 test -n "$ac_ct_DUMPBIN" && break
4754 if test "x$ac_ct_DUMPBIN" = x; then
4757 case $cross_compiling:$ac_tool_warned in
4759 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4763 DUMPBIN=$ac_ct_DUMPBIN
4768 if test "$DUMPBIN" != ":"; then
4772 test -z "$NM" && NM=nm
4779 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4780 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4781 if test "${lt_cv_nm_interface+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4784 lt_cv_nm_interface="BSD nm"
4785 echo "int some_variable = 0;" > conftest.$ac_ext
4786 (eval echo "\"\$as_me:4786: $ac_compile\"" >&5)
4787 (eval "$ac_compile" 2>conftest.err)
4788 cat conftest.err >&5
4789 (eval echo "\"\$as_me:4789: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4791 cat conftest.err >&5
4792 (eval echo "\"\$as_me:4792: output\"" >&5)
4793 cat conftest.out >&5
4794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4795 lt_cv_nm_interface="MS dumpbin"
4799 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4800 $as_echo "$lt_cv_nm_interface" >&6; }
4802 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4803 $as_echo_n "checking whether ln -s works... " >&6; }
4805 if test "$LN_S" = "ln -s"; then
4806 { $as_echo "$as_me:$LINENO: result: yes" >&5
4807 $as_echo "yes" >&6; }
4809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4810 $as_echo "no, using $LN_S" >&6; }
4813 # find the maximum length of command line arguments
4814 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4815 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4816 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4824 # On DJGPP, this test can blow up pretty badly due to problems in libc
4825 # (any single argument exceeding 2000 bytes causes a buffer overrun
4826 # during glob expansion). Even if it were fixed, the result of this
4827 # check would be larger than it should be.
4828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4832 # Under GNU Hurd, this test is not required because there is
4833 # no limit to the length of command line arguments.
4834 # Libtool will interpret -1 as no limit whatsoever
4835 lt_cv_sys_max_cmd_len=-1;
4838 cygwin* | mingw* | cegcc*)
4839 # On Win9x/ME, this test blows up -- it succeeds, but takes
4840 # about 5 minutes as the teststring grows exponentially.
4841 # Worse, since 9x/ME are not pre-emptively multitasking,
4842 # you end up with a "frozen" computer, even though with patience
4843 # the test eventually succeeds (with a max line length of 256k).
4844 # Instead, let's just punt: use the minimum linelength reported by
4845 # all of the supported platforms: 8192 (on NT/2K/XP).
4846 lt_cv_sys_max_cmd_len=8192;
4850 # On AmigaOS with pdksh, this test takes hours, literally.
4851 # So we just punt and use a minimum line length of 8192.
4852 lt_cv_sys_max_cmd_len=8192;
4855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4856 # This has been around since 386BSD, at least. Likely further.
4857 if test -x /sbin/sysctl; then
4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4859 elif test -x /usr/sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4864 # And add a safety zone
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4871 lt_cv_sys_max_cmd_len=196608
4875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4877 # nice to cause kernel panics so lets avoid the loop below.
4878 # First set a reasonable default.
4879 lt_cv_sys_max_cmd_len=16384
4881 if test -x /sbin/sysconfig; then
4882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4883 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4888 lt_cv_sys_max_cmd_len=102400
4890 sysv5* | sco5v6* | sysv4.2uw2*)
4891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4892 if test -n "$kargmax"; then
4893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4895 lt_cv_sys_max_cmd_len=32768
4899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4900 if test -n "$lt_cv_sys_max_cmd_len"; then
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904 # Make teststring a little bigger before we do anything with it.
4905 # a 1K string should be a reasonable start.
4906 for i in 1 2 3 4 5 6 7 8 ; do
4907 teststring=$teststring$teststring
4909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4910 # If test is not a shell built-in, we'll probably end up computing a
4911 # maximum length that is only half of the actual maximum length, but
4913 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4914 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4915 test $i != 17 # 1/2 MB should be enough
4918 teststring=$teststring$teststring
4920 # Only check the string length outside the loop.
4921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4923 # Add a significant safety factor because C++ compilers can tack on
4924 # massive amounts of additional arguments before passing them to the
4925 # linker. It appears as though 1/2 is a usable value.
4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4933 if test -n $lt_cv_sys_max_cmd_len ; then
4934 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4935 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4937 { $as_echo "$as_me:$LINENO: result: none" >&5
4938 $as_echo "none" >&6; }
4940 max_cmd_len=$lt_cv_sys_max_cmd_len
4951 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4952 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4953 # Try some XSI features
4956 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4958 && eval 'test $(( 1 + 1 )) -eq 2 \
4959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4961 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4962 $as_echo "$xsi_shell" >&6; }
4965 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4966 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4968 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4970 && lt_shell_append=yes
4971 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4972 $as_echo "$lt_shell_append" >&6; }
4975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4985 # test EBCDIC or ASCII
4986 case `echo X|tr X '\101'` in
4987 A) # ASCII based system
4988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4989 lt_SP2NL='tr \040 \012'
4990 lt_NL2SP='tr \015\012 \040\040'
4992 *) # EBCDIC based system
4993 lt_SP2NL='tr \100 \n'
4994 lt_NL2SP='tr \r\n \100\100'
5006 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5007 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5008 if test "${lt_cv_ld_reload_flag+set}" = set; then
5009 $as_echo_n "(cached) " >&6
5011 lt_cv_ld_reload_flag='-r'
5013 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5014 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5015 reload_flag=$lt_cv_ld_reload_flag
5016 case $reload_flag in
5018 *) reload_flag=" $reload_flag" ;;
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023 if test "$GCC" = yes; then
5024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$OBJDUMP"; then
5048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 OBJDUMP=$ac_cv_prog_OBJDUMP
5068 if test -n "$OBJDUMP"; then
5069 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5070 $as_echo "$OBJDUMP" >&6; }
5072 { $as_echo "$as_me:$LINENO: result: no" >&5
5073 $as_echo "no" >&6; }
5078 if test -z "$ac_cv_prog_OBJDUMP"; then
5079 ac_ct_OBJDUMP=$OBJDUMP
5080 # Extract the first word of "objdump", so it can be a program name with args.
5081 set dummy objdump; ac_word=$2
5082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$ac_ct_OBJDUMP"; then
5088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5108 if test -n "$ac_ct_OBJDUMP"; then
5109 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5110 $as_echo "$ac_ct_OBJDUMP" >&6; }
5112 { $as_echo "$as_me:$LINENO: result: no" >&5
5113 $as_echo "no" >&6; }
5116 if test "x$ac_ct_OBJDUMP" = x; then
5119 case $cross_compiling:$ac_tool_warned in
5121 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5125 OBJDUMP=$ac_ct_OBJDUMP
5128 OBJDUMP="$ac_cv_prog_OBJDUMP"
5131 test -z "$OBJDUMP" && OBJDUMP=objdump
5141 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5142 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5143 if test "${lt_cv_deplibs_check_method+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5146 lt_cv_file_magic_cmd='$MAGIC_CMD'
5147 lt_cv_file_magic_test_file=
5148 lt_cv_deplibs_check_method='unknown'
5149 # Need to set the preceding variable on all platforms that support
5150 # interlibrary dependencies.
5151 # 'none' -- dependencies not supported.
5152 # `unknown' -- same as none, but documents that we really don't know.
5153 # 'pass_all' -- all dependencies passed with no checks.
5154 # 'test_compile' -- check by making test program.
5155 # 'file_magic [[regex]]' -- check by looking for files in library path
5156 # which responds to the $file_magic_cmd with a given extended regex.
5157 # If you have `file' or equivalent on your system and you're not sure
5158 # whether `pass_all' will *always* work, you probably want this one.
5162 lt_cv_deplibs_check_method=pass_all
5166 lt_cv_deplibs_check_method=pass_all
5170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5171 lt_cv_file_magic_cmd='/usr/bin/file -L'
5172 lt_cv_file_magic_test_file=/shlib/libc.so
5176 # func_win32_libid is a shell function defined in ltmain.sh
5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178 lt_cv_file_magic_cmd='func_win32_libid'
5182 # Base MSYS/MinGW do not provide the 'file' command needed by
5183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5184 # unless we find 'file', for example because we are cross-compiling.
5185 if ( file / ) >/dev/null 2>&1; then
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5190 lt_cv_file_magic_cmd='$OBJDUMP -f'
5195 # use the weaker test based on 'objdump'. See mingw*.
5196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5197 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 darwin* | rhapsody*)
5201 lt_cv_deplibs_check_method=pass_all
5204 freebsd* | dragonfly*)
5205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5208 # Not sure whether the presence of OpenBSD here was a mistake.
5209 # Let's accept both of them until this is cleared up.
5210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5211 lt_cv_file_magic_cmd=/usr/bin/file
5212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5216 lt_cv_deplibs_check_method=pass_all
5221 lt_cv_deplibs_check_method=pass_all
5224 hpux10.20* | hpux11*)
5225 lt_cv_file_magic_cmd=/usr/bin/file
5228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5232 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]'
5233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5247 irix5* | irix6* | nonstopux*)
5249 *-32|*"-32 ") libmagic=32-bit;;
5250 *-n32|*"-n32 ") libmagic=N32;;
5251 *-64|*"-64 ") libmagic=64-bit;;
5252 *) libmagic=never-match;;
5254 lt_cv_deplibs_check_method=pass_all
5257 # This must be Linux ELF.
5258 linux* | k*bsd*-gnu)
5259 lt_cv_deplibs_check_method=pass_all
5263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5272 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5277 lt_cv_deplibs_check_method=pass_all
5281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288 osf3* | osf4* | osf5*)
5289 lt_cv_deplibs_check_method=pass_all
5293 lt_cv_deplibs_check_method=pass_all
5297 lt_cv_deplibs_check_method=pass_all
5300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5301 lt_cv_deplibs_check_method=pass_all
5305 case $host_vendor in
5307 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]'
5308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5311 lt_cv_deplibs_check_method=pass_all
5314 lt_cv_file_magic_cmd='/bin/file'
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5318 lt_cv_file_magic_cmd='/bin/file'
5319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5320 lt_cv_file_magic_test_file=/lib/libc.so
5323 lt_cv_deplibs_check_method=pass_all
5326 lt_cv_deplibs_check_method=pass_all
5332 lt_cv_deplibs_check_method=pass_all
5337 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5339 file_magic_cmd=$lt_cv_file_magic_cmd
5340 deplibs_check_method=$lt_cv_deplibs_check_method
5341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}ar; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_AR+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$AR"; then
5363 ac_cv_prog_AR="$AR" # Let the user override the test.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_AR="${ac_tool_prefix}ar"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 if test -n "$AR"; then
5384 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5385 $as_echo "$AR" >&6; }
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_AR"; then
5395 # Extract the first word of "ar", so it can be a program name with args.
5396 set dummy ar; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$ac_ct_AR"; then
5403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AR="ar"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5423 if test -n "$ac_ct_AR"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5425 $as_echo "$ac_ct_AR" >&6; }
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_AR" = x; then
5434 case $cross_compiling:$ac_tool_warned in
5436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5446 test -z "$AR" && AR=ar
5447 test -z "$AR_FLAGS" && AR_FLAGS=cru
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_STRIP+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5498 if test -z "$ac_cv_prog_STRIP"; then
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533 $as_echo "no" >&6; }
5536 if test "x$ac_ct_STRIP" = x; then
5539 case $cross_compiling:$ac_tool_warned in
5541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5548 STRIP="$ac_cv_prog_STRIP"
5551 test -z "$STRIP" && STRIP=:
5558 if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_RANLIB+set}" = set; then
5564 $as_echo_n "(cached) " >&6
5566 if test -n "$RANLIB"; then
5567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 RANLIB=$ac_cv_prog_RANLIB
5587 if test -n "$RANLIB"; then
5588 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5589 $as_echo "$RANLIB" >&6; }
5591 { $as_echo "$as_me:$LINENO: result: no" >&5
5592 $as_echo "no" >&6; }
5597 if test -z "$ac_cv_prog_RANLIB"; then
5598 ac_ct_RANLIB=$RANLIB
5599 # Extract the first word of "ranlib", so it can be a program name with args.
5600 set dummy ranlib; ac_word=$2
5601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$ac_ct_RANLIB"; then
5607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_RANLIB="ranlib"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5627 if test -n "$ac_ct_RANLIB"; then
5628 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5629 $as_echo "$ac_ct_RANLIB" >&6; }
5631 { $as_echo "$as_me:$LINENO: result: no" >&5
5632 $as_echo "no" >&6; }
5635 if test "x$ac_ct_RANLIB" = x; then
5638 case $cross_compiling:$ac_tool_warned in
5640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5644 RANLIB=$ac_ct_RANLIB
5647 RANLIB="$ac_cv_prog_RANLIB"
5650 test -z "$RANLIB" && RANLIB=:
5657 # Determine commands to create old-style static archives.
5658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5659 old_postinstall_cmds='chmod 644 $oldlib'
5660 old_postuninstall_cmds=
5662 if test -n "$RANLIB"; then
5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5707 # If no C compiler was specified, use CC.
5710 # If no C compiler flags were specified, use CFLAGS.
5711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5713 # Allow CC to be a program name with arguments.
5717 # Check for command to grab the raw symbol name followed by C symbol from nm.
5718 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5719 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5721 $as_echo_n "(cached) " >&6
5724 # These are sane defaults that work on at least a few old systems.
5725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5727 # Character class describing NM global symbol codes.
5728 symcode='[BCDEGRST]'
5730 # Regexp to match symbols that can be accessed directly from C.
5731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5733 # Define system-specific variables.
5738 cygwin* | mingw* | pw32* | cegcc*)
5739 symcode='[ABCDGISTW]'
5742 if test "$host_cpu" = ia64; then
5743 symcode='[ABCDEGRST]'
5747 symcode='[BCDEGRST]'
5750 symcode='[BCDEGQRST]'
5761 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5769 # If we're using GNU nm, then use its standard symbol codes.
5770 case `$NM -V 2>&1` in
5771 *GNU* | *'with BFD'*)
5772 symcode='[ABCDGIRSTW]' ;;
5775 # Transform an extracted symbol line into a proper C declaration.
5776 # Some systems (esp. on ia64) link data and code symbols differently,
5777 # so use this general approach.
5778 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5780 # Transform an extracted symbol line into symbol name and symbol address
5781 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5782 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'"
5784 # Handle CRLF in mingw tool chain
5788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5792 # Try without a prefix underscore, then with it.
5793 for ac_symprfx in "" "_"; do
5795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5796 symxfrm="\\1 $ac_symprfx\\2 \\2"
5798 # Write the raw and C identifiers.
5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5800 # Fake it for dumpbin and say T for any non-static function
5801 # and D for any global variable.
5802 # Also find C++ and __fastcall symbols from MSVC++,
5803 # which start with @ or ?.
5804 lt_cv_sys_global_symbol_pipe="$AWK '"\
5805 " {last_section=section; section=\$ 3};"\
5806 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5807 " \$ 0!~/External *\|/{next};"\
5808 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5809 " {if(hide[section]) next};"\
5810 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5811 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5812 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5813 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5814 " ' prfx=^$ac_symprfx"
5816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5819 # Check to see that the pipe works correctly.
5823 cat > conftest.$ac_ext <<_LT_EOF
5828 void nm_test_func(void);
5829 void nm_test_func(void){}
5833 int main(){nm_test_var='a';nm_test_func();return(0);}
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>&5
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; then
5841 # Now try to grab the symbols.
5843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && test -s "$nlist"; then
5848 # Try sorting and uniquifying the output.
5849 if sort "$nlist" | uniq > "$nlist"T; then
5850 mv -f "$nlist"T "$nlist"
5855 # Make sure that we snagged all the symbols we need.
5856 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5857 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5858 cat <<_LT_EOF > conftest.$ac_ext
5864 # Now generate the symbol file.
5865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5867 cat <<_LT_EOF >> conftest.$ac_ext
5869 /* The mapping between symbol names and symbols. */
5874 lt__PROGRAM__LTX_preloaded_symbols[] =
5876 { "@PROGRAM@", (void *) 0 },
5878 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5879 cat <<\_LT_EOF >> conftest.$ac_ext
5883 /* This works around a problem in FreeBSD linker */
5884 #ifdef FREEBSD_WORKAROUND
5885 static const void *lt_preloaded_setup() {
5886 return lt__PROGRAM__LTX_preloaded_symbols;
5894 # Now try linking the two files.
5895 mv conftest.$ac_objext conftstm.$ac_objext
5896 lt_save_LIBS="$LIBS"
5897 lt_save_CFLAGS="$CFLAGS"
5898 LIBS="conftstm.$ac_objext"
5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5907 LIBS="$lt_save_LIBS"
5908 CFLAGS="$lt_save_CFLAGS"
5910 echo "cannot find nm_test_func in $nlist" >&5
5913 echo "cannot find nm_test_var in $nlist" >&5
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 rm -rf conftest* conftst*
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5928 lt_cv_sys_global_symbol_pipe=
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl=
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938 { $as_echo "$as_me:$LINENO: result: failed" >&5
5939 $as_echo "failed" >&6; }
5941 { $as_echo "$as_me:$LINENO: result: ok" >&5
5942 $as_echo "ok" >&6; }
5967 # Check whether --enable-libtool-lock was given.
5968 if test "${enable_libtool_lock+set}" = set; then
5969 enableval=$enable_libtool_lock;
5972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5974 # Some flags need to be propagated to the compiler or linker for good
5978 # Find out which ABI we are using.
5979 echo 'int i;' > conftest.$ac_ext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; then
5985 case `/usr/bin/file conftest.$ac_objext` in
5997 # Find out which ABI we are using.
5998 echo '#line 5998 "configure"' > conftest.$ac_ext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; then
6004 if test "$lt_cv_prog_gnu_ld" = yes; then
6005 case `/usr/bin/file conftest.$ac_objext` in
6007 LD="${LD-ld} -melf32bsmip"
6010 LD="${LD-ld} -melf32bmipn32"
6013 LD="${LD-ld} -melf64bmip"
6017 case `/usr/bin/file conftest.$ac_objext` in
6033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6035 # Find out which ABI we are using.
6036 echo 'int i;' > conftest.$ac_ext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; then
6042 case `/usr/bin/file conftest.o` in
6045 x86_64-*kfreebsd*-gnu)
6046 LD="${LD-ld} -m elf_i386_fbsd"
6049 LD="${LD-ld} -m elf_i386"
6051 ppc64-*linux*|powerpc64-*linux*)
6052 LD="${LD-ld} -m elf32ppclinux"
6055 LD="${LD-ld} -m elf_s390"
6058 LD="${LD-ld} -m elf32_sparc"
6064 x86_64-*kfreebsd*-gnu)
6065 LD="${LD-ld} -m elf_x86_64_fbsd"
6068 LD="${LD-ld} -m elf_x86_64"
6070 ppc*-*linux*|powerpc*-*linux*)
6071 LD="${LD-ld} -m elf64ppc"
6073 s390*-*linux*|s390*-*tpf*)
6074 LD="${LD-ld} -m elf64_s390"
6077 LD="${LD-ld} -m elf64_sparc"
6087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6088 SAVE_CFLAGS="$CFLAGS"
6089 CFLAGS="$CFLAGS -belf"
6090 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6091 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6092 if test "${lt_cv_cc_needs_belf+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (ac_try="$ac_link"
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6123 $as_echo "$ac_try_echo") >&5
6124 (eval "$ac_link") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest$ac_exeext && {
6134 test "$cross_compiling" = yes ||
6135 $as_test_x conftest$ac_exeext
6137 lt_cv_cc_needs_belf=yes
6139 $as_echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 lt_cv_cc_needs_belf=no
6145 rm -rf conftest.dSYM
6146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6147 conftest$ac_exeext conftest.$ac_ext
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6156 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6159 CFLAGS="$SAVE_CFLAGS"
6163 # Find out which ABI we are using.
6164 echo 'int i;' > conftest.$ac_ext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; then
6170 case `/usr/bin/file conftest.o` in
6172 case $lt_cv_prog_gnu_ld in
6173 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6175 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6187 need_locks="$enable_libtool_lock"
6191 rhapsody* | darwin*)
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$DSYMUTIL"; then
6201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6221 if test -n "$DSYMUTIL"; then
6222 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6223 $as_echo "$DSYMUTIL" >&6; }
6225 { $as_echo "$as_me:$LINENO: result: no" >&5
6226 $as_echo "no" >&6; }
6231 if test -z "$ac_cv_prog_DSYMUTIL"; then
6232 ac_ct_DSYMUTIL=$DSYMUTIL
6233 # Extract the first word of "dsymutil", so it can be a program name with args.
6234 set dummy dsymutil; ac_word=$2
6235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6238 $as_echo_n "(cached) " >&6
6240 if test -n "$ac_ct_DSYMUTIL"; then
6241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6261 if test -n "$ac_ct_DSYMUTIL"; then
6262 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6265 { $as_echo "$as_me:$LINENO: result: no" >&5
6266 $as_echo "no" >&6; }
6269 if test "x$ac_ct_DSYMUTIL" = x; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6278 DSYMUTIL=$ac_ct_DSYMUTIL
6281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$NMEDIT"; then
6293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 NMEDIT=$ac_cv_prog_NMEDIT
6313 if test -n "$NMEDIT"; then
6314 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6315 $as_echo "$NMEDIT" >&6; }
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6323 if test -z "$ac_cv_prog_NMEDIT"; then
6324 ac_ct_NMEDIT=$NMEDIT
6325 # Extract the first word of "nmedit", so it can be a program name with args.
6326 set dummy nmedit; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6332 if test -n "$ac_ct_NMEDIT"; then
6333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6353 if test -n "$ac_ct_NMEDIT"; then
6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6355 $as_echo "$ac_ct_NMEDIT" >&6; }
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6361 if test "x$ac_ct_NMEDIT" = x; then
6364 case $cross_compiling:$ac_tool_warned in
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6370 NMEDIT=$ac_ct_NMEDIT
6373 NMEDIT="$ac_cv_prog_NMEDIT"
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_LIPO+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$LIPO"; then
6385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 LIPO=$ac_cv_prog_LIPO
6405 if test -n "$LIPO"; then
6406 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6407 $as_echo "$LIPO" >&6; }
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test -z "$ac_cv_prog_LIPO"; then
6417 # Extract the first word of "lipo", so it can be a program name with args.
6418 set dummy lipo; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6424 if test -n "$ac_ct_LIPO"; then
6425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_LIPO="lipo"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6445 if test -n "$ac_ct_LIPO"; then
6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6447 $as_echo "$ac_ct_LIPO" >&6; }
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450 $as_echo "no" >&6; }
6453 if test "x$ac_ct_LIPO" = x; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6465 LIPO="$ac_cv_prog_LIPO"
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}otool; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_OTOOL+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$OTOOL"; then
6477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 OTOOL=$ac_cv_prog_OTOOL
6497 if test -n "$OTOOL"; then
6498 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6499 $as_echo "$OTOOL" >&6; }
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6507 if test -z "$ac_cv_prog_OTOOL"; then
6509 # Extract the first word of "otool", so it can be a program name with args.
6510 set dummy otool; ac_word=$2
6511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6516 if test -n "$ac_ct_OTOOL"; then
6517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_OTOOL="otool"
6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6537 if test -n "$ac_ct_OTOOL"; then
6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6539 $as_echo "$ac_ct_OTOOL" >&6; }
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6545 if test "x$ac_ct_OTOOL" = x; then
6548 case $cross_compiling:$ac_tool_warned in
6550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6557 OTOOL="$ac_cv_prog_OTOOL"
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6568 if test -n "$OTOOL64"; then
6569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 OTOOL64=$ac_cv_prog_OTOOL64
6589 if test -n "$OTOOL64"; then
6590 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6591 $as_echo "$OTOOL64" >&6; }
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594 $as_echo "no" >&6; }
6599 if test -z "$ac_cv_prog_OTOOL64"; then
6600 ac_ct_OTOOL64=$OTOOL64
6601 # Extract the first word of "otool64", so it can be a program name with args.
6602 set dummy otool64; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$ac_ct_OTOOL64"; then
6609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_OTOOL64="otool64"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6629 if test -n "$ac_ct_OTOOL64"; then
6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6631 $as_echo "$ac_ct_OTOOL64" >&6; }
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634 $as_echo "no" >&6; }
6637 if test "x$ac_ct_OTOOL64" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6646 OTOOL64=$ac_ct_OTOOL64
6649 OTOOL64="$ac_cv_prog_OTOOL64"
6678 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6679 $as_echo_n "checking for -single_module linker flag... " >&6; }
6680 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6683 lt_cv_apple_cc_single_mod=no
6684 if test -z "${LT_MULTI_MODULE}"; then
6685 # By default we will add the -single_module flag. You can override
6686 # by either setting the environment variable LT_MULTI_MODULE
6687 # non-empty at configure time, or by adding -multi_module to the
6689 rm -rf libconftest.dylib*
6690 echo "int foo(void){return 1;}" > conftest.c
6691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6692 -dynamiclib -Wl,-single_module conftest.c" >&5
6693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6696 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6697 lt_cv_apple_cc_single_mod=yes
6699 cat conftest.err >&5
6701 rm -rf libconftest.dylib*
6705 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6706 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6707 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6708 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6709 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6712 lt_cv_ld_exported_symbols_list=no
6713 save_LDFLAGS=$LDFLAGS
6714 echo "_main" > conftest.sym
6715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6716 cat >conftest.$ac_ext <<_ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (ac_try="$ac_link"
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738 $as_echo "$ac_try_echo") >&5
6739 (eval "$ac_link") 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext && {
6749 test "$cross_compiling" = yes ||
6750 $as_test_x conftest$ac_exeext
6752 lt_cv_ld_exported_symbols_list=yes
6754 $as_echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 lt_cv_ld_exported_symbols_list=no
6760 rm -rf conftest.dSYM
6761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6762 conftest$ac_exeext conftest.$ac_ext
6763 LDFLAGS="$save_LDFLAGS"
6766 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6767 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6769 rhapsody* | darwin1.[012])
6770 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6773 darwin*) # darwin 5.x on
6774 # if running on 10.5 or later, the deployment target defaults
6775 # to the OS version, if on x86, and 10.4, the deployment
6776 # target defaults to 10.4. Don't you love it?
6777 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6778 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6779 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6787 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6788 _lt_dar_single_mod='$single_module'
6790 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6791 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6793 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6795 if test "$DSYMUTIL" != ":"; then
6796 _lt_dsymutil='~$DSYMUTIL $lib || :'
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6809 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6810 # On Suns, sometimes $CPP names a directory.
6811 if test -n "$CPP" && test -d "$CPP"; then
6814 if test -z "$CPP"; then
6815 if test "${ac_cv_prog_CPP+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6818 # Double quotes because CPP needs to be expanded
6819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6822 for ac_c_preproc_warn_flag in '' yes
6824 # Use a header file that comes with gcc, so configuring glibc
6825 # with a fresh cross-compiler works.
6826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 # <limits.h> exists even on freestanding compilers.
6828 # On the NeXT, cc -E runs the code through the compiler's parser,
6829 # not just through cpp. "Syntax error" is here to catch this case.
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6837 # include <limits.h>
6839 # include <assert.h>
6843 if { (ac_try="$ac_cpp conftest.$ac_ext"
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } >/dev/null && {
6857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 # Broken: fails on valid input.
6869 rm -f conftest.err conftest.$ac_ext
6871 # OK, works on sane cases. Now check whether nonexistent headers
6872 # can be detected and how.
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <ac_nonexistent.h>
6881 if { (ac_try="$ac_cpp conftest.$ac_ext"
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6890 grep -v '^ *+' conftest.er1 >conftest.err
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } >/dev/null && {
6895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6898 # Broken: success on invalid input.
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 # Passes both tests.
6909 rm -f conftest.err conftest.$ac_ext
6912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913 rm -f conftest.err conftest.$ac_ext
6914 if $ac_preproc_ok; then
6926 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6927 $as_echo "$CPP" >&6; }
6929 for ac_c_preproc_warn_flag in '' yes
6931 # Use a header file that comes with gcc, so configuring glibc
6932 # with a fresh cross-compiler works.
6933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 # <limits.h> exists even on freestanding compilers.
6935 # On the NeXT, cc -E runs the code through the compiler's parser,
6936 # not just through cpp. "Syntax error" is here to catch this case.
6937 cat >conftest.$ac_ext <<_ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6944 # include <limits.h>
6946 # include <assert.h>
6950 if { (ac_try="$ac_cpp conftest.$ac_ext"
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1 >conftest.err
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null && {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 # Broken: fails on valid input.
6976 rm -f conftest.err conftest.$ac_ext
6978 # OK, works on sane cases. Now check whether nonexistent headers
6979 # can be detected and how.
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <ac_nonexistent.h>
6988 if { (ac_try="$ac_cpp conftest.$ac_ext"
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6997 grep -v '^ *+' conftest.er1 >conftest.err
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7005 # Broken: success on invalid input.
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7011 # Passes both tests.
7016 rm -f conftest.err conftest.$ac_ext
7019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7020 rm -f conftest.err conftest.$ac_ext
7021 if $ac_preproc_ok; then
7024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7027 See \`config.log' for more details." >&5
7028 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7029 See \`config.log' for more details." >&2;}
7030 { (exit 1); exit 1; }; }; }
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7041 $as_echo_n "checking for ANSI C header files... " >&6; }
7042 if test "${ac_cv_header_stdc+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7071 $as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_header_stdc=yes
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_header_stdc=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "memchr" >/dev/null 2>&1; then
7107 ac_cv_header_stdc=no
7113 if test $ac_cv_header_stdc = yes; then
7114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7125 $EGREP "free" >/dev/null 2>&1; then
7128 ac_cv_header_stdc=no
7134 if test $ac_cv_header_stdc = yes; then
7135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7136 if test "$cross_compiling" = yes; then
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7147 #if ((' ' & 0x0FF) == 0x020)
7148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7151 # define ISLOWER(c) \
7152 (('a' <= (c) && (c) <= 'i') \
7153 || ('j' <= (c) && (c) <= 'r') \
7154 || ('s' <= (c) && (c) <= 'z'))
7155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7163 for (i = 0; i < 256; i++)
7164 if (XOR (islower (i), ISLOWER (i))
7165 || toupper (i) != TOUPPER (i))
7170 rm -f conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7177 $as_echo "$ac_try_echo") >&5
7178 (eval "$ac_link") 2>&5
7180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7182 { (case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_try") 2>&5
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7194 $as_echo "$as_me: program exited with status $ac_status" >&5
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_header_stdc=no
7201 rm -rf conftest.dSYM
7202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7209 $as_echo "$ac_cv_header_stdc" >&6; }
7210 if test $ac_cv_header_stdc = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define STDC_HEADERS 1
7218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7229 inttypes.h stdint.h unistd.h
7231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 $as_echo_n "checking for $ac_header... " >&6; }
7234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7235 $as_echo_n "(cached) " >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7245 #include <$ac_header>
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1 >conftest.err
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 eval "$as_ac_Header=yes"
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 eval "$as_ac_Header=no"
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 ac_res=`eval 'as_val=${'$as_ac_Header'}
7276 $as_echo "$as_val"'`
7277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7278 $as_echo "$ac_res" >&6; }
7279 as_val=`eval 'as_val=${'$as_ac_Header'}
7280 $as_echo "$as_val"'`
7281 if test "x$as_val" = x""yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7292 for ac_header in dlfcn.h
7294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7296 $as_echo_n "checking for $ac_header... " >&6; }
7297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7298 $as_echo_n "(cached) " >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7308 #include <$ac_header>
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317 $as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7330 $as_echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 eval "$as_ac_Header=no"
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 ac_res=`eval 'as_val=${'$as_ac_Header'}
7339 $as_echo "$as_val"'`
7340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7341 $as_echo "$ac_res" >&6; }
7342 as_val=`eval 'as_val=${'$as_ac_Header'}
7343 $as_echo "$as_val"'`
7344 if test "x$as_val" = x""yes; then
7345 cat >>confdefs.h <<_ACEOF
7346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7365 # Check whether --enable-shared was given.
7366 if test "${enable_shared+set}" = set; then
7367 enableval=$enable_shared; p=${PACKAGE-default}
7369 yes) enable_shared=yes ;;
7370 no) enable_shared=no ;;
7373 # Look at the argument we got. We use all the common list separators.
7374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7375 for pkg in $enableval; do
7377 if test "X$pkg" = "X$p"; then
7396 # Check whether --enable-static was given.
7397 if test "${enable_static+set}" = set; then
7398 enableval=$enable_static; p=${PACKAGE-default}
7400 yes) enable_static=yes ;;
7401 no) enable_static=no ;;
7404 # Look at the argument we got. We use all the common list separators.
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7406 for pkg in $enableval; do
7408 if test "X$pkg" = "X$p"; then
7428 # Check whether --with-pic was given.
7429 if test "${with_pic+set}" = set; then
7430 withval=$with_pic; pic_mode="$withval"
7436 test -z "$pic_mode" && pic_mode=default
7444 # Check whether --enable-fast-install was given.
7445 if test "${enable_fast_install+set}" = set; then
7446 enableval=$enable_fast_install; p=${PACKAGE-default}
7448 yes) enable_fast_install=yes ;;
7449 no) enable_fast_install=no ;;
7451 enable_fast_install=no
7452 # Look at the argument we got. We use all the common list separators.
7453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454 for pkg in $enableval; do
7456 if test "X$pkg" = "X$p"; then
7457 enable_fast_install=yes
7464 enable_fast_install=yes
7477 # This can be used to rebuild libtool when needed
7478 LIBTOOL_DEPS="$ltmain"
7480 # Always use our own libtool.
7481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7507 test -z "$LN_S" && LN_S="ln -s"
7522 if test -n "${ZSH_VERSION+set}" ; then
7523 setopt NO_GLOB_SUBST
7526 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7527 $as_echo_n "checking for objdir... " >&6; }
7528 if test "${lt_cv_objdir+set}" = set; then
7529 $as_echo_n "(cached) " >&6
7531 rm -f .libs 2>/dev/null
7532 mkdir .libs 2>/dev/null
7533 if test -d .libs; then
7536 # MS-DOS does not allow filenames that begin with a dot.
7539 rmdir .libs 2>/dev/null
7541 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7542 $as_echo "$lt_cv_objdir" >&6; }
7543 objdir=$lt_cv_objdir
7549 cat >>confdefs.h <<_ACEOF
7550 #define LT_OBJDIR "$lt_cv_objdir/"
7571 # AIX sometimes has problems with the GCC collect2 program. For some
7572 # reason, if we set the COLLECT_NAMES environment variable, the problems
7573 # vanish in a puff of smoke.
7574 if test "X${COLLECT_NAMES+set}" != Xset; then
7576 export COLLECT_NAMES
7581 # Sed substitution that helps us do robust quoting. It backslashifies
7582 # metacharacters that are still active within double-quoted strings.
7583 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7585 # Same as above, but do not quote variable references.
7586 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7588 # Sed substitution to delay expansion of an escaped shell variable in a
7589 # double_quote_subst'ed string.
7590 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7592 # Sed substitution to delay expansion of an escaped single quote.
7593 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7595 # Sed substitution to avoid accidental globbing in evaled expressions
7596 no_glob_subst='s/\*/\\\*/g'
7600 can_build_shared=yes
7602 # All known linkers require a `.a' archive for static linking (except MSVC,
7603 # which needs '.lib').
7606 with_gnu_ld="$lt_cv_prog_gnu_ld"
7609 old_CFLAGS="$CFLAGS"
7611 # Set sane defaults for various variables
7612 test -z "$CC" && CC=cc
7613 test -z "$LTCC" && LTCC=$CC
7614 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7615 test -z "$LD" && LD=ld
7616 test -z "$ac_objext" && ac_objext=o
7618 for cc_temp in $compiler""; do
7620 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7621 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7629 # Only perform the check for file, if the check method requires it
7630 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7631 case $deplibs_check_method in
7633 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7634 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7635 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7637 $as_echo_n "(cached) " >&6
7641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7644 lt_save_MAGIC_CMD="$MAGIC_CMD"
7645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7647 for ac_dir in $ac_dummy; do
7649 test -z "$ac_dir" && ac_dir=.
7650 if test -f $ac_dir/${ac_tool_prefix}file; then
7651 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7652 if test -n "$file_magic_test_file"; then
7653 case $deplibs_check_method in
7655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7658 $EGREP "$file_magic_regex" > /dev/null; then
7663 *** Warning: the command libtool uses to detect shared libraries,
7664 *** $file_magic_cmd, produces output that libtool cannot recognize.
7665 *** The result is that libtool may fail to recognize shared libraries
7666 *** as such. This will affect the creation of libtool libraries that
7667 *** depend on shared libraries, but programs linked with such libtool
7668 *** libraries will work regardless of this problem. Nevertheless, you
7669 *** may want to report the problem to your system manager and/or to
7670 *** bug-libtool@gnu.org
7680 MAGIC_CMD="$lt_save_MAGIC_CMD"
7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686 if test -n "$MAGIC_CMD"; then
7687 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7688 $as_echo "$MAGIC_CMD" >&6; }
7690 { $as_echo "$as_me:$LINENO: result: no" >&5
7691 $as_echo "no" >&6; }
7698 if test -z "$lt_cv_path_MAGIC_CMD"; then
7699 if test -n "$ac_tool_prefix"; then
7700 { $as_echo "$as_me:$LINENO: checking for file" >&5
7701 $as_echo_n "checking for file... " >&6; }
7702 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7710 lt_save_MAGIC_CMD="$MAGIC_CMD"
7711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7713 for ac_dir in $ac_dummy; do
7715 test -z "$ac_dir" && ac_dir=.
7716 if test -f $ac_dir/file; then
7717 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7718 if test -n "$file_magic_test_file"; then
7719 case $deplibs_check_method in
7721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7724 $EGREP "$file_magic_regex" > /dev/null; then
7729 *** Warning: the command libtool uses to detect shared libraries,
7730 *** $file_magic_cmd, produces output that libtool cannot recognize.
7731 *** The result is that libtool may fail to recognize shared libraries
7732 *** as such. This will affect the creation of libtool libraries that
7733 *** depend on shared libraries, but programs linked with such libtool
7734 *** libraries will work regardless of this problem. Nevertheless, you
7735 *** may want to report the problem to your system manager and/or to
7736 *** bug-libtool@gnu.org
7746 MAGIC_CMD="$lt_save_MAGIC_CMD"
7751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752 if test -n "$MAGIC_CMD"; then
7753 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7754 $as_echo "$MAGIC_CMD" >&6; }
7756 { $as_echo "$as_me:$LINENO: result: no" >&5
7757 $as_echo "no" >&6; }
7770 # Use C for the default configuration in the libtool script
7774 ac_cpp='$CPP $CPPFLAGS'
7775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780 # Source file extension for C test sources.
7783 # Object file extension for compiled C test sources.
7787 # Code to be used in simple compile tests
7788 lt_simple_compile_test_code="int some_variable = 0;"
7790 # Code to be used in simple link tests
7791 lt_simple_link_test_code='int main(){return(0);}'
7799 # If no C compiler was specified, use CC.
7802 # If no C compiler flags were specified, use CFLAGS.
7803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7805 # Allow CC to be a program name with arguments.
7808 # Save the default compiler, since it gets overwritten when the other
7809 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7810 compiler_DEFAULT=$CC
7812 # save warnings/boilerplate of simple test code
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816 _lt_compiler_boilerplate=`cat conftest.err`
7819 ac_outfile=conftest.$ac_objext
7820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822 _lt_linker_boilerplate=`cat conftest.err`
7826 if test -n "$compiler"; then
7828 lt_prog_compiler_no_builtin_flag=
7830 if test "$GCC" = yes; then
7831 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7833 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7834 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7835 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7836 $as_echo_n "(cached) " >&6
7838 lt_cv_prog_compiler_rtti_exceptions=no
7839 ac_outfile=conftest.$ac_objext
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7841 lt_compiler_flag="-fno-rtti -fno-exceptions"
7842 # Insert the option either (1) after the last *FLAGS variable, or
7843 # (2) before a word containing "conftest.", or (3) at the end.
7844 # Note that $ac_compile itself does not contain backslashes and begins
7845 # with a dollar sign (not a hyphen), so the echo should work correctly.
7846 # The option is referenced via a variable to avoid confusing sed.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
7852 (eval "$lt_compile" 2>conftest.err)
7854 cat conftest.err >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 if (exit $ac_status) && test -s "$ac_outfile"; then
7857 # The compiler can only warn and ignore the option if not recognized
7858 # So say no if there are warnings other than the usual output.
7859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7862 lt_cv_prog_compiler_rtti_exceptions=yes
7868 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7869 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7884 lt_prog_compiler_wl=
7885 lt_prog_compiler_pic=
7886 lt_prog_compiler_static=
7888 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7891 if test "$GCC" = yes; then
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_static='-static'
7897 # All AIX code is PIC.
7898 if test "$host_cpu" = ia64; then
7899 # AIX 5 now supports IA64 processor
7900 lt_prog_compiler_static='-Bstatic'
7907 # see comment about AmigaOS4 .so support
7908 lt_prog_compiler_pic='-fPIC'
7911 # FIXME: we need at least 68020 code to build shared libraries, but
7912 # adding the `-m68020' flag to GCC prevents building anything better,
7914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7920 # PIC is the default for these OSes.
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7927 # (--disable-auto-import) libraries
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
7931 darwin* | rhapsody*)
7932 # PIC is the default on this platform
7933 # Common symbols not allowed in MH_DYLIB files
7934 lt_prog_compiler_pic='-fno-common'
7938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7940 # sets the default TLS model and affects inlining.
7946 lt_prog_compiler_pic='-fPIC'
7952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953 # Instead, we relocate shared libraries at runtime.
7957 # Just because we use GCC doesn't mean we suddenly get shared libraries
7958 # on systems that don't support them.
7959 lt_prog_compiler_can_build_shared=no
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7966 lt_prog_compiler_pic='-fPIC -shared'
7970 if test -d /usr/nec; then
7971 lt_prog_compiler_pic=-Kconform_pic
7976 lt_prog_compiler_pic='-fPIC'
7980 # PORTME Check for flag to pass linker flags through the system compiler.
7983 lt_prog_compiler_wl='-Wl,'
7984 if test "$host_cpu" = ia64; then
7985 # AIX 5 now supports IA64 processor
7986 lt_prog_compiler_static='-Bstatic'
7988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7992 mingw* | cygwin* | pw32* | os2* | cegcc*)
7993 # This hack is so that the source file can tell whether it is being
7994 # built for inclusion in a dll (and should export symbols for example).
7995 lt_prog_compiler_pic='-DDLL_EXPORT'
7998 hpux9* | hpux10* | hpux11*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8007 lt_prog_compiler_pic='+Z'
8010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8011 lt_prog_compiler_static='${wl}-a ${wl}archive'
8014 irix5* | irix6* | nonstopux*)
8015 lt_prog_compiler_wl='-Wl,'
8016 # PIC (with -KPIC) is the default.
8017 lt_prog_compiler_static='-non_shared'
8020 linux* | k*bsd*-gnu)
8021 case $cc_basename in
8022 # old Intel for x86_64 which still supported -KPIC.
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-static'
8028 # icc used to be incompatible with GCC.
8029 # ICC 10 doesn't accept -KPIC any more.
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-fPIC'
8033 lt_prog_compiler_static='-static'
8035 # Lahey Fortran 8.1.
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='--shared'
8039 lt_prog_compiler_static='--static'
8041 pgcc* | pgf77* | pgf90* | pgf95*)
8042 # Portland Group compilers (*not* the Pentium gcc compiler,
8043 # which looks to be a dead project)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fpic'
8046 lt_prog_compiler_static='-Bstatic'
8049 lt_prog_compiler_wl='-Wl,'
8050 # All Alpha code is PIC.
8051 lt_prog_compiler_static='-non_shared'
8054 # IBM XL C 8.0/Fortran 10.1 on PPC
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-qpic'
8057 lt_prog_compiler_static='-qstaticlink'
8060 case `$CC -V 2>&1 | sed 5q` in
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 lt_prog_compiler_wl='-Wl,'
8068 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_wl=''
8079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
8084 # QNX uses GNU C++, but need to define -shared option too, otherwise
8086 lt_prog_compiler_pic='-fPIC -shared'
8089 osf3* | osf4* | osf5*)
8090 lt_prog_compiler_wl='-Wl,'
8091 # All OSF/1 code is PIC.
8092 lt_prog_compiler_static='-non_shared'
8096 lt_prog_compiler_static='-non_shared'
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 case $cc_basename in
8104 lt_prog_compiler_wl='-Qoption ld ';;
8106 lt_prog_compiler_wl='-Wl,';;
8111 lt_prog_compiler_wl='-Qoption ld '
8112 lt_prog_compiler_pic='-PIC'
8113 lt_prog_compiler_static='-Bstatic'
8116 sysv4 | sysv4.2uw2* | sysv4.3*)
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_pic='-KPIC'
8119 lt_prog_compiler_static='-Bstatic'
8123 if test -d /usr/nec ;then
8124 lt_prog_compiler_pic='-Kconform_pic'
8125 lt_prog_compiler_static='-Bstatic'
8129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_can_build_shared=no
8141 lt_prog_compiler_pic='-pic'
8142 lt_prog_compiler_static='-Bstatic'
8146 lt_prog_compiler_can_build_shared=no
8152 # For platforms which do not support PIC, -DPIC is meaningless:
8154 lt_prog_compiler_pic=
8157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8160 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8161 $as_echo "$lt_prog_compiler_pic" >&6; }
8169 # Check to make sure the PIC flag actually works.
8171 if test -n "$lt_prog_compiler_pic"; then
8172 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8173 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8174 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8175 $as_echo_n "(cached) " >&6
8177 lt_cv_prog_compiler_pic_works=no
8178 ac_outfile=conftest.$ac_objext
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8181 # Insert the option either (1) after the last *FLAGS variable, or
8182 # (2) before a word containing "conftest.", or (3) at the end.
8183 # Note that $ac_compile itself does not contain backslashes and begins
8184 # with a dollar sign (not a hyphen), so the echo should work correctly.
8185 # The option is referenced via a variable to avoid confusing sed.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
8190 (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
8191 (eval "$lt_compile" 2>conftest.err)
8193 cat conftest.err >&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 if (exit $ac_status) && test -s "$ac_outfile"; then
8196 # The compiler can only warn and ignore the option if not recognized
8197 # So say no if there are warnings other than the usual output.
8198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8201 lt_cv_prog_compiler_pic_works=yes
8207 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8208 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8210 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8211 case $lt_prog_compiler_pic in
8213 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8216 lt_prog_compiler_pic=
8217 lt_prog_compiler_can_build_shared=no
8228 # Check to make sure the static flag actually works.
8230 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8231 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8233 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8234 $as_echo_n "(cached) " >&6
8236 lt_cv_prog_compiler_static_works=no
8237 save_LDFLAGS="$LDFLAGS"
8238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8239 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241 # The linker can only warn and ignore the option if not recognized
8242 # So say no if there are warnings
8243 if test -s conftest.err; then
8244 # Append any errors to the config.log.
8245 cat conftest.err 1>&5
8246 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248 if diff conftest.exp conftest.er2 >/dev/null; then
8249 lt_cv_prog_compiler_static_works=yes
8252 lt_cv_prog_compiler_static_works=yes
8256 LDFLAGS="$save_LDFLAGS"
8259 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8260 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8262 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8265 lt_prog_compiler_static=
8274 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8276 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8277 $as_echo_n "(cached) " >&6
8279 lt_cv_prog_compiler_c_o=no
8280 $RM -r conftest 2>/dev/null
8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8286 lt_compiler_flag="-o out/conftest2.$ac_objext"
8287 # Insert the option either (1) after the last *FLAGS variable, or
8288 # (2) before a word containing "conftest.", or (3) at the end.
8289 # Note that $ac_compile itself does not contain backslashes and begins
8290 # with a dollar sign (not a hyphen), so the echo should work correctly.
8291 lt_compile=`echo "$ac_compile" | $SED \
8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294 -e 's:$: $lt_compiler_flag:'`
8295 (eval echo "\"\$as_me:8295: $lt_compile\"" >&5)
8296 (eval "$lt_compile" 2>out/conftest.err)
8298 cat out/conftest.err >&5
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8302 # The compiler can only warn and ignore the option if not recognized
8303 # So say no if there are warnings
8304 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8307 lt_cv_prog_compiler_c_o=yes
8312 # SGI C++ compiler will create directory out/ii_files/ for
8313 # template instantiation
8314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8315 $RM out/* && rmdir out
8321 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8322 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8329 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8331 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8332 $as_echo_n "(cached) " >&6
8334 lt_cv_prog_compiler_c_o=no
8335 $RM -r conftest 2>/dev/null
8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341 lt_compiler_flag="-o out/conftest2.$ac_objext"
8342 # Insert the option either (1) after the last *FLAGS variable, or
8343 # (2) before a word containing "conftest.", or (3) at the end.
8344 # Note that $ac_compile itself does not contain backslashes and begins
8345 # with a dollar sign (not a hyphen), so the echo should work correctly.
8346 lt_compile=`echo "$ac_compile" | $SED \
8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349 -e 's:$: $lt_compiler_flag:'`
8350 (eval echo "\"\$as_me:8350: $lt_compile\"" >&5)
8351 (eval "$lt_compile" 2>out/conftest.err)
8353 cat out/conftest.err >&5
8354 echo "$as_me:8354: \$? = $ac_status" >&5
8355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8357 # The compiler can only warn and ignore the option if not recognized
8358 # So say no if there are warnings
8359 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8362 lt_cv_prog_compiler_c_o=yes
8367 # SGI C++ compiler will create directory out/ii_files/ for
8368 # template instantiation
8369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8370 $RM out/* && rmdir out
8376 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8382 hard_links="nottested"
8383 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8384 # do not overwrite the value of need_locks provided by the user
8385 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8386 $as_echo_n "checking if we can lock with hard links... " >&6; }
8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8391 ln conftest.a conftest.b 2>&5 || hard_links=no
8392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8393 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8394 $as_echo "$hard_links" >&6; }
8395 if test "$hard_links" = no; then
8396 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8409 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8410 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8413 allow_undefined_flag=
8414 always_export_symbols=no
8416 archive_expsym_cmds=
8417 compiler_needs_object=no
8418 enable_shared_with_static_runtimes=no
8419 export_dynamic_flag_spec=
8420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8421 hardcode_automatic=no
8423 hardcode_direct_absolute=no
8424 hardcode_libdir_flag_spec=
8425 hardcode_libdir_flag_spec_ld=
8426 hardcode_libdir_separator=
8428 hardcode_shlibpath_var=unsupported
8430 link_all_deplibs=unknown
8433 old_archive_from_new_cmds=
8434 old_archive_from_expsyms_cmds=
8435 thread_safe_flag_spec=
8436 whole_archive_flag_spec=
8437 # include_expsyms should be a list of space-separated symbols to be *always*
8438 # included in the symbol list
8440 # exclude_expsyms can be an extended regexp of symbols to exclude
8441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8443 # as well as any symbol that contains `d'.
8444 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8446 # platforms (ab)use it in PIC code, but their linkers get confused if
8447 # the symbol is explicitly referenced. Since portable code cannot
8448 # rely on this symbol name, it's probably fine to never include it in
8449 # preloaded symbol tables.
8450 # Exclude shared library initialization/finalization symbols.
8451 extract_expsyms_cmds=
8454 cygwin* | mingw* | pw32* | cegcc*)
8455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8456 # When not using gcc, we currently assume that we are using
8457 # Microsoft Visual C++.
8458 if test "$GCC" != yes; then
8463 # we just hope/assume this is gcc and not c89 (= MSVC++)
8472 if test "$with_gnu_ld" = yes; then
8473 # If archive_cmds runs LD, not CC, wlarc should be empty
8476 # Set some defaults for GNU ld with shared library support. These
8477 # are reset later if shared libraries are not supported. Putting them
8478 # here allows them to be overridden if necessary.
8479 runpath_var=LD_RUN_PATH
8480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8481 export_dynamic_flag_spec='${wl}--export-dynamic'
8482 # ancient GNU ld didn't support --whole-archive et. al.
8483 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8486 whole_archive_flag_spec=
8488 supports_anon_versioning=no
8489 case `$LD -v 2>&1` in
8490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8493 *\ 2.11.*) ;; # other 2.11 versions
8494 *) supports_anon_versioning=yes ;;
8497 # See if GNU ld supports shared libraries.
8500 # On AIX/PPC, the GNU linker is very broken
8501 if test "$host_cpu" != ia64; then
8505 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8506 *** to be unable to reliably create shared libraries on AIX.
8507 *** Therefore, libtool is disabling shared libraries support. If you
8508 *** really care for shared libraries, you may want to modify your PATH
8509 *** so that a non-GNU linker is found, and then restart.
8518 # see comment about AmigaOS4 .so support
8519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 archive_expsym_cmds=''
8523 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)'
8524 hardcode_libdir_flag_spec='-L$libdir'
8525 hardcode_minus_L=yes
8531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8532 allow_undefined_flag=unsupported
8533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8534 # support --undefined. This deserves some investigation. FIXME
8535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541 cygwin* | mingw* | pw32* | cegcc*)
8542 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8543 # as there is no search path for DLLs.
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 allow_undefined_flag=unsupported
8546 always_export_symbols=no
8547 enable_shared_with_static_runtimes=yes
8548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8552 # If the export-symbols file already is a .def file (1st line
8553 # is EXPORTS), use it as is; otherwise, prepend...
8554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8555 cp $export_symbols $output_objdir/$soname.def;
8557 echo EXPORTS > $output_objdir/$soname.def;
8558 cat $export_symbols >> $output_objdir/$soname.def;
8560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8568 hardcode_shlibpath_var=no
8569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570 export_dynamic_flag_spec='${wl}-E'
8571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8572 # Instead, shared libraries are loaded at an image base (0x10000000 by
8573 # default) and relocated if they conflict, which is a slow very memory
8574 # consuming and fragmenting process. To avoid this, we pick a random,
8575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8578 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'
8581 gnu* | linux* | tpf* | k*bsd*-gnu)
8583 if test "$host_os" = linux-dietlibc; then
8584 case $cc_basename in
8585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8589 && test "$tmp_diet" = no
8592 tmp_sharedflag='-shared'
8593 case $cc_basename,$host_cpu in
8594 pgcc*) # Portland Group C compiler
8595 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'
8596 tmp_addflag=' $pic_flag'
8598 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8599 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'
8600 tmp_addflag=' $pic_flag -Mnomain' ;;
8601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8602 tmp_addflag=' -i_dynamic' ;;
8603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8604 tmp_addflag=' -i_dynamic -nofor_main' ;;
8605 ifc* | ifort*) # Intel Fortran compiler
8606 tmp_addflag=' -nofor_main' ;;
8607 lf95*) # Lahey Fortran 8.1
8608 whole_archive_flag_spec=
8609 tmp_sharedflag='--shared' ;;
8610 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8611 tmp_sharedflag='-qmkshrobj'
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ C*) # Sun C 5.9
8616 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'
8617 compiler_needs_object=yes
8618 tmp_sharedflag='-G' ;;
8619 *Sun\ F*) # Sun Fortran 8.3
8620 tmp_sharedflag='-G' ;;
8622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8631 case $cc_basename in
8633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8635 hardcode_libdir_flag_spec=
8636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8637 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8638 if test "x$supports_anon_versioning" = xyes; then
8639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641 echo "local: *; };" >> $output_objdir/$libname.ver~
8642 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8667 *** create shared libraries on Solaris systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.9.1 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8683 case `$LD -v 2>&1` in
8684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8689 *** reliably create shared libraries on SCO systems. Therefore, libtool
8690 *** is disabling shared libraries support. We urge you to upgrade GNU
8691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8692 *** your PATH or compiler configuration so that the native linker is
8693 *** used, and then restart.
8698 # For security reasons, it is highly recommended that you always
8699 # use absolute paths for naming shared libraries, and exclude the
8700 # DT_RUNPATH tag from executables and libraries. But doing so
8701 # requires that you compile everything twice, which is a pain.
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8717 hardcode_shlibpath_var=no
8721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730 if test "$ld_shlibs" = no; then
8732 hardcode_libdir_flag_spec=
8733 export_dynamic_flag_spec=
8734 whole_archive_flag_spec=
8737 # PORTME fill in a description of your system's linker (not GNU ld)
8740 allow_undefined_flag=unsupported
8741 always_export_symbols=yes
8742 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'
8743 # Note: this linker hardcodes the directories in LIBPATH if there
8744 # are no directories specified by -L.
8745 hardcode_minus_L=yes
8746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747 # Neither direct hardcoding nor static linking is supported with a
8749 hardcode_direct=unsupported
8754 if test "$host_cpu" = ia64; then
8755 # On IA64, the linker does run time linking by default, so we don't
8756 # have to do anything special.
8757 aix_use_runtimelinking=no
8758 exp_sym_flag='-Bexport'
8761 # If we're using GNU nm, then we don't want the "-C" option.
8762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8764 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'
8766 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'
8768 aix_use_runtimelinking=no
8770 # Test if we are trying to use run time linking or normal
8771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8772 # need to do runtime linking.
8773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8774 for ld_flag in $LDFLAGS; do
8775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8776 aix_use_runtimelinking=yes
8783 exp_sym_flag='-bexport'
8784 no_entry_flag='-bnoentry'
8787 # When large executables or shared objects are built, AIX ld can
8788 # have problems creating the table of contents. If linking a library
8789 # or program results in "error TOC overflow" add -mminimal-toc to
8790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8795 hardcode_direct_absolute=yes
8796 hardcode_libdir_separator=':'
8797 link_all_deplibs=yes
8798 file_list_spec='${wl}-f,'
8800 if test "$GCC" = yes; then
8801 case $host_os in aix4.[012]|aix4.[012].*)
8802 # We only want to do this on AIX 4.2 and lower, the check
8803 # below for broken collect2 doesn't work under 4.3+
8804 collect2name=`${CC} -print-prog-name=collect2`
8805 if test -f "$collect2name" &&
8806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8808 # We have reworked collect2
8811 # We have old collect2
8812 hardcode_direct=unsupported
8813 # It fails to find uninstalled libraries when the uninstalled
8814 # path is not listed in the libpath. Setting hardcode_minus_L
8815 # to unsupported forces relinking
8816 hardcode_minus_L=yes
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_libdir_separator=
8822 shared_flag='-shared'
8823 if test "$aix_use_runtimelinking" = yes; then
8824 shared_flag="$shared_flag "'${wl}-G'
8828 if test "$host_cpu" = ia64; then
8829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8830 # chokes on -Wl,-G. The following line is correct:
8833 if test "$aix_use_runtimelinking" = yes; then
8834 shared_flag='${wl}-G'
8836 shared_flag='${wl}-bM:SRE'
8841 export_dynamic_flag_spec='${wl}-bexpall'
8842 # It seems that -bexpall does not export symbols beginning with
8843 # underscore (_), so it is better to generate a list of symbols to export.
8844 always_export_symbols=yes
8845 if test "$aix_use_runtimelinking" = yes; then
8846 # Warning - without using the other runtime loading flags (-brtl),
8847 # -berok will link without error, but may produce a broken library.
8848 allow_undefined_flag='-berok'
8849 # Determine the default libpath from the value encoded in an
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8873 $as_echo "$ac_try_echo") >&5
8874 (eval "$ac_link") 2>conftest.er1
8876 grep -v '^ *+' conftest.er1 >conftest.err
8878 cat conftest.err >&5
8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest$ac_exeext && {
8884 test "$cross_compiling" = yes ||
8885 $as_test_x conftest$ac_exeext
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8907 rm -rf conftest.dSYM
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913 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"
8915 if test "$host_cpu" = ia64; then
8916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917 allow_undefined_flag="-z nodefs"
8918 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"
8920 # Determine the default libpath from the value encoded in an
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (ac_try="$ac_link"
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944 $as_echo "$ac_try_echo") >&5
8945 (eval "$ac_link") 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest$ac_exeext && {
8955 test "$cross_compiling" = yes ||
8956 $as_test_x conftest$ac_exeext
8959 lt_aix_libpath_sed='
8960 /Import File Strings/,/^$/ {
8966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8967 # Check for a 64-bit object if we didn't find anything.
8968 if test -z "$aix_libpath"; then
8969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972 $as_echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8978 rm -rf conftest.dSYM
8979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8980 conftest$ac_exeext conftest.$ac_ext
8981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8984 # Warning - without using the other run time loading flags,
8985 # -berok will link without error, but may produce a broken library.
8986 no_undefined_flag=' ${wl}-bernotok'
8987 allow_undefined_flag=' ${wl}-berok'
8988 # Exported symbols can be pulled into shared objects from archives
8989 whole_archive_flag_spec='$convenience'
8990 archive_cmds_need_lc=yes
8991 # This is similar to how AIX traditionally builds its shared libraries.
8992 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'
9000 # see comment about AmigaOS4 .so support
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds=''
9005 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)'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9013 export_dynamic_flag_spec=-rdynamic
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 # hardcode_libdir_flag_spec is actually meaningless, as there is
9020 # no search path for DLLs.
9021 hardcode_libdir_flag_spec=' '
9022 allow_undefined_flag=unsupported
9023 # Tell ltmain to make .lib files, not .a files.
9025 # Tell ltmain to make .dll files, not .so files.
9027 # FIXME: Setting linknames here is a bad hack.
9028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9029 # The linker will automatically build a .lib file if we build a DLL.
9030 old_archive_from_new_cmds='true'
9031 # FIXME: Should let the user specify the lib program.
9032 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9033 fix_srcfile_path='`cygpath -w "$srcfile"`'
9034 enable_shared_with_static_runtimes=yes
9037 darwin* | rhapsody*)
9040 archive_cmds_need_lc=no
9042 hardcode_automatic=yes
9043 hardcode_shlibpath_var=unsupported
9044 whole_archive_flag_spec=''
9045 link_all_deplibs=yes
9046 allow_undefined_flag="$_lt_dar_allow_undefined"
9047 case $cc_basename in
9048 ifort*) _lt_dar_can_shared=yes ;;
9049 *) _lt_dar_can_shared=$GCC ;;
9051 if test "$_lt_dar_can_shared" = "yes"; then
9052 output_verbose_link_cmd=echo
9053 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9054 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9055 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}"
9056 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}"
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
9074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9075 # support. Future versions do this automatically, but an explicit c++rt0.o
9076 # does not break anything, and helps significantly (at the cost of a little
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9080 hardcode_libdir_flag_spec='-R$libdir'
9082 hardcode_shlibpath_var=no
9085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
9093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9094 freebsd* | dragonfly*)
9095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9096 hardcode_libdir_flag_spec='-R$libdir'
9098 hardcode_shlibpath_var=no
9102 if test "$GCC" = yes; then
9103 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'
9105 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'
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_separator=:
9111 # hardcode_minus_L: Not really in the search PATH,
9112 # but as the default location of the library.
9113 hardcode_minus_L=yes
9114 export_dynamic_flag_spec='${wl}-E'
9118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9123 if test "$with_gnu_ld" = no; then
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_flag_spec_ld='+b $libdir'
9126 hardcode_libdir_separator=:
9128 hardcode_direct_absolute=yes
9129 export_dynamic_flag_spec='${wl}-E'
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9140 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162 if test "$with_gnu_ld" = no; then
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9169 hardcode_shlibpath_var=no
9173 hardcode_direct_absolute=yes
9174 export_dynamic_flag_spec='${wl}-E'
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L=yes
9184 irix5* | irix6* | nonstopux*)
9185 if test "$GCC" = yes; then
9186 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'
9187 # Try to use the -exported_symbol ld option, if it does not
9188 # work, assume that -exports_file does not work either and
9189 # implicitly export all symbols.
9190 save_LDFLAGS="$LDFLAGS"
9191 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9192 cat >conftest.$ac_ext <<_ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9202 $as_echo "$ac_try_echo") >&5
9203 (eval "$ac_link") 2>conftest.er1
9205 grep -v '^ *+' conftest.er1 >conftest.err
9207 cat conftest.err >&5
9208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && {
9210 test -z "$ac_c_werror_flag" ||
9211 test ! -s conftest.err
9212 } && test -s conftest$ac_exeext && {
9213 test "$cross_compiling" = yes ||
9214 $as_test_x conftest$ac_exeext
9216 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'
9219 $as_echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9225 rm -rf conftest.dSYM
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 LDFLAGS="$save_LDFLAGS"
9230 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'
9231 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'
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9237 link_all_deplibs=yes
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9246 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_shlibpath_var=no
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9263 if test -f /usr/libexec/ld.so; then
9265 hardcode_shlibpath_var=no
9266 hardcode_direct_absolute=yes
9267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-R$libdir'
9279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 allow_undefined_flag=unsupported
9293 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'
9294 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9298 if test "$GCC" = yes; then
9299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9300 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'
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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'
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9310 osf4* | osf5*) # as osf3* with the addition of -msym flag
9311 if test "$GCC" = yes; then
9312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9313 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'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 allow_undefined_flag=' -expect_unresolved \*'
9317 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'
9318 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~
9319 $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'
9321 # Both c and cxx compiler support -rpath directly
9322 hardcode_libdir_flag_spec='-rpath $libdir'
9324 archive_cmds_need_lc='no'
9325 hardcode_libdir_separator=:
9329 no_undefined_flag=' -z defs'
9330 if test "$GCC" = yes; then
9332 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9336 case `$CC -V 2>&1` in
9339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9345 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_shlibpath_var=no
9354 solaris2.[0-5] | solaris2.[0-5].*) ;;
9356 # The compiler driver will combine and reorder linker options,
9357 # but understands `-z linker_flag'. GCC discards it without `$wl',
9358 # but is careful enough not to reorder.
9359 # Supported since Solaris 2.6 (maybe 2.5.1?)
9360 if test "$GCC" = yes; then
9361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9367 link_all_deplibs=yes
9371 if test "x$host_vendor" = xsequent; then
9372 # Use $CC to link under sequent, because it throws in some extra .o
9373 # files that make .init and .fini sections work.
9374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
9385 case $host_vendor in
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes # is this really true???
9391 ## LD is ld it makes a PLAMLIB
9392 ## CC just makes a GrossModule.
9393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9394 reload_cmds='$CC -r -o $output$reload_objs'
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9402 runpath_var='LD_RUN_PATH'
9403 hardcode_shlibpath_var=no
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 export_dynamic_flag_spec='-Bexport'
9413 if test -d /usr/nec; then
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 runpath_var=LD_RUN_PATH
9417 hardcode_runpath_var=yes
9422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9423 no_undefined_flag='${wl}-z,text'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
9426 runpath_var='LD_RUN_PATH'
9428 if test "$GCC" = yes; then
9429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 sysv5* | sco3.2v5* | sco5v6*)
9438 # Note: We can NOT use -z defs as we might desire, because we do not
9439 # link with -lc, and that would cause any symbols used from libc to
9440 # always be unresolved, which means just about no library would
9441 # ever link correctly. If we're not using GNU ld we use -z text
9442 # though, which does catch some bad symbols but isn't as heavy-handed
9444 no_undefined_flag='${wl}-z,text'
9445 allow_undefined_flag='${wl}-z,nodefs'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 export_dynamic_flag_spec='${wl}-Bexport'
9452 runpath_var='LD_RUN_PATH'
9454 if test "$GCC" = yes; then
9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
9474 if test x$host_vendor = xsni; then
9476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9477 export_dynamic_flag_spec='${wl}-Blargedynsym'
9483 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9484 $as_echo "$ld_shlibs" >&6; }
9485 test "$ld_shlibs" = no && can_build_shared=no
9487 with_gnu_ld=$with_gnu_ld
9504 # Do we need to explicitly link libc?
9506 case "x$archive_cmds_need_lc" in
9508 # Assume -lc should be added
9509 archive_cmds_need_lc=yes
9511 if test "$enable_shared" = yes && test "$GCC" = yes; then
9512 case $archive_cmds in
9514 # FIXME: we may have to deal with multi-command sequences.
9517 # Test whether the compiler implicitly links with -lc since on some
9518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9519 # to ld, don't add -lc before -lgcc.
9520 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9521 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9526 (eval $ac_compile) 2>&5
9528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } 2>conftest.err; then
9532 libobjs=conftest.$ac_objext
9534 wl=$lt_prog_compiler_wl
9535 pic_flag=$lt_prog_compiler_pic
9541 lt_save_allow_undefined_flag=$allow_undefined_flag
9542 allow_undefined_flag=
9543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9544 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }
9549 archive_cmds_need_lc=no
9551 archive_cmds_need_lc=yes
9553 allow_undefined_flag=$lt_save_allow_undefined_flag
9555 cat conftest.err 1>&5
9558 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9559 $as_echo "$archive_cmds_need_lc" >&6; }
9722 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9725 if test "$GCC" = yes; then
9727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728 *) lt_awk_arg="/^libraries:/" ;;
9730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9731 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9732 # if the path contains ";" then we assume it to be the separator
9733 # otherwise default to the standard path separator (i.e. ":") - it is
9734 # assumed that no part of a normal pathname contains ";" but that should
9735 # okay in the real world where ";" in dirpaths is itself problematic.
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9740 # Ok, now we have the path, separated by spaces, we can step through it
9741 # and add multilib dir if necessary.
9742 lt_tmp_lt_search_path_spec=
9743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9744 for lt_sys_path in $lt_search_path_spec; do
9745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9748 test -d "$lt_sys_path" && \
9749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9752 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9753 BEGIN {RS=" "; FS="/|\n";} {
9756 for (lt_i = NF; lt_i > 0; lt_i--) {
9757 if ($lt_i != "" && $lt_i != ".") {
9758 if ($lt_i == "..") {
9761 if (lt_count == 0) {
9762 lt_foo="/" $lt_i lt_foo;
9769 if (lt_foo != "") { lt_freq[lt_foo]++; }
9770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9772 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9777 libname_spec='lib$name'
9785 shlibpath_overrides_runpath=unknown
9787 dynamic_linker="$host_os ld.so"
9788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9789 need_lib_prefix=unknown
9790 hardcode_into_libs=no
9792 # when you set need_version to no, make sure it does not cause -set_version
9793 # flags to be left without arguments
9794 need_version=unknown
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9846 shlibpath_var=LIBPATH
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9885 cygwin* | mingw* | pw32* | cegcc*)
9886 version_type=windows
9891 case $GCC,$host_os in
9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9907 shlibpath_overrides_runpath=yes
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9916 # MinGW DLLs use traditional 'lib' prefix
9917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9919 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9920 # It is most probably a Windows format PATH printed by
9921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9922 # path with ; separators, and with drive letters. We can handle the
9923 # drive letters (cygwin fileutils understands them), so leave them,
9924 # especially as we might pass files found there to a mingw objdump,
9925 # which wouldn't understand a cygwinified path. Ahh.
9926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9932 # pw32 DLLs use 'pw' prefix rather than 'lib'
9933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9942 dynamic_linker='Win32 ld.exe'
9943 # FIXME: first we should search . and the directory the executable is in
9947 darwin* | rhapsody*)
9948 dynamic_linker="$host_os dyld"
9952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9953 soname_spec='${libname}${release}${major}$shared_ext'
9954 shlibpath_overrides_runpath=yes
9955 shlibpath_var=DYLD_LIBRARY_PATH
9956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9975 freebsd* | dragonfly*)
9976 # DragonFly does not have aout. When/if they implement a new
9977 # versioning mechanism, adjust this.
9978 if test -x /usr/bin/objformat; then
9979 objformat=`/usr/bin/objformat`
9982 freebsd[123]*) objformat=aout ;;
9986 version_type=freebsd-$objformat
9987 case $version_type in
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9998 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes
10003 freebsd3.[01]* | freebsdelf3.[01]*)
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10012 *) # from 4.6 on, and DragonFly
10013 shlibpath_overrides_runpath=yes
10014 hardcode_into_libs=yes
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 hardcode_into_libs=yes
10029 hpux9* | hpux10* | hpux11*)
10030 # Give a soname corresponding to the major version so that dld.sl refuses to
10031 # link against other versions.
10038 hardcode_into_libs=yes
10039 dynamic_linker="$host_os dld.so"
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 if test "X$HPUX_IA64_MODE" = X32; then
10045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10053 hardcode_into_libs=yes
10054 dynamic_linker="$host_os dld.sl"
10055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10064 dynamic_linker="$host_os dld.sl"
10065 shlibpath_var=SHLIB_PATH
10066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10072 postinstall_cmds='chmod 555 $lib'
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10087 irix5* | irix6* | nonstopux*)
10089 nonstopux*) version_type=nonstopux ;;
10091 if test "$lt_cv_prog_gnu_ld" = yes; then
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10102 irix5* | nonstopux*)
10103 libsuff= shlibsuff=
10106 case $LD in # libtool.m4 will add one of these switches to LD
10107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10108 libsuff= shlibsuff= libmagic=32-bit;;
10109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10110 libsuff=32 shlibsuff=N32 libmagic=N32;;
10111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10113 *) libsuff= shlibsuff= libmagic=never-match;;
10117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10118 shlibpath_overrides_runpath=no
10119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10121 hardcode_into_libs=yes
10124 # No shared lib support for Linux oldld, aout, or coff.
10125 linux*oldld* | linux*aout* | linux*coff*)
10129 # This must be Linux ELF.
10130 linux* | k*bsd*-gnu)
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
10139 # Some binutils ld are patched to set DT_RUNPATH
10140 save_LDFLAGS=$LDFLAGS
10141 save_libdir=$libdir
10142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10166 $as_echo "$ac_try_echo") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext && {
10177 test "$cross_compiling" = yes ||
10178 $as_test_x conftest$ac_exeext
10180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10181 shlibpath_overrides_runpath=yes
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10191 rm -rf conftest.dSYM
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LDFLAGS=$save_LDFLAGS
10195 libdir=$save_libdir
10197 # This implies no fast_install, which is unacceptable.
10198 # Some rework will be needed to allow for fast_install
10199 # before this can be enabled.
10200 hardcode_into_libs=yes
10202 # Add ABI-specific directories to the system library path.
10203 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10205 # Append ld.so.conf contents to the search path
10206 if test -f /etc/ld.so.conf; then
10207 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' ' '`
10208 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10211 # We used to test for /lib/ld.so.1 and disable shared libraries on
10212 # powerpc, because MkLinux only supported shared libraries with the
10213 # GNU dynamic linker. Since this was broken with cross compilers,
10214 # most powerpc-linux boxes support dynamic linking these days and
10215 # people can always --disable-shared, the test was removed, and we
10216 # assume the GNU/Linux dynamic linker is in use.
10217 dynamic_linker='GNU/Linux ld.so'
10224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227 dynamic_linker='NetBSD (a.out) ld.so'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='NetBSD ld.elf_so'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 dynamic_linker='ldqnx.so'
10259 sys_lib_dlsearch_path_spec="/usr/lib"
10261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10264 *) need_version=no ;;
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10271 openbsd2.[89] | openbsd2.[89].*)
10272 shlibpath_overrides_runpath=no
10275 shlibpath_overrides_runpath=yes
10279 shlibpath_overrides_runpath=yes
10284 libname_spec='$name'
10287 library_names_spec='$libname${shared_ext} $libname.a'
10288 dynamic_linker='OS/2 ld.exe'
10289 shlibpath_var=LIBPATH
10292 osf3* | osf4* | osf5*)
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 # ldd complains unless libraries are executable
10317 postinstall_cmds='chmod +x $lib'
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 if test "$with_gnu_ld" = yes; then
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 case $host_vendor in
10339 shlibpath_overrides_runpath=no
10341 runpath_var=LD_RUN_PATH
10349 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10356 if test -d /usr/nec ;then
10358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10359 soname_spec='$libname${shared_ext}.$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10365 version_type=freebsd-elf
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 hardcode_into_libs=yes
10373 if test "$with_gnu_ld" = yes; then
10374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10383 sys_lib_dlsearch_path_spec='/usr/lib'
10387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10408 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10409 $as_echo "$dynamic_linker" >&6; }
10410 test "$dynamic_linker" = no && can_build_shared=no
10412 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10413 if test "$GCC" = yes; then
10414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10417 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10418 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10420 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10421 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10510 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10513 if test -n "$hardcode_libdir_flag_spec" ||
10514 test -n "$runpath_var" ||
10515 test "X$hardcode_automatic" = "Xyes" ; then
10517 # We can hardcode non-existent directories.
10518 if test "$hardcode_direct" != no &&
10519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10520 # have to relink, otherwise we might link with an installed library
10521 # when we should be linking with a yet-to-be-installed one
10522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10523 test "$hardcode_minus_L" != no; then
10524 # Linking always hardcodes the temporary library directory.
10525 hardcode_action=relink
10527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10528 hardcode_action=immediate
10531 # We cannot hardcode anything, or else we can only hardcode existing
10533 hardcode_action=unsupported
10535 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10536 $as_echo "$hardcode_action" >&6; }
10538 if test "$hardcode_action" = relink ||
10539 test "$inherit_rpath" = yes; then
10540 # Fast installation is not supported
10541 enable_fast_install=no
10542 elif test "$shlibpath_overrides_runpath" = yes ||
10543 test "$enable_shared" = no; then
10544 # Fast installation is not necessary
10545 enable_fast_install=needless
10553 if test "x$enable_dlopen" != xyes; then
10554 enable_dlopen=unknown
10555 enable_dlopen_self=unknown
10556 enable_dlopen_self_static=unknown
10563 lt_cv_dlopen="load_add_on"
10565 lt_cv_dlopen_self=yes
10568 mingw* | pw32* | cegcc*)
10569 lt_cv_dlopen="LoadLibrary"
10574 lt_cv_dlopen="dlopen"
10579 # if libdl is installed we need to link against it
10580 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583 $as_echo_n "(cached) " >&6
10585 ac_check_lib_save_LIBS=$LIBS
10587 cat >conftest.$ac_ext <<_ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest$ac_exeext
10630 ac_cv_lib_dl_dlopen=yes
10632 $as_echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 ac_cv_lib_dl_dlopen=no
10638 rm -rf conftest.dSYM
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS=$ac_check_lib_save_LIBS
10643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10644 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10645 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10649 lt_cv_dlopen="dyld"
10651 lt_cv_dlopen_self=yes
10658 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10659 $as_echo_n "checking for shl_load... " >&6; }
10660 if test "${ac_cv_func_shl_load+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10671 #define shl_load innocuous_shl_load
10673 /* System header to define __stub macros and hopefully few prototypes,
10674 which can conflict with char shl_load (); below.
10675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10676 <limits.h> exists even on freestanding compilers. */
10679 # include <limits.h>
10681 # include <assert.h>
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined __stub_shl_load || defined __stub___shl_load
10703 return shl_load ();
10708 rm -f conftest.$ac_objext conftest$ac_exeext
10709 if { (ac_try="$ac_link"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716 (eval "$ac_link") 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest$ac_exeext && {
10726 test "$cross_compiling" = yes ||
10727 $as_test_x conftest$ac_exeext
10729 ac_cv_func_shl_load=yes
10731 $as_echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_func_shl_load=no
10737 rm -rf conftest.dSYM
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10741 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10742 $as_echo "$ac_cv_func_shl_load" >&6; }
10743 if test "x$ac_cv_func_shl_load" = x""yes; then
10744 lt_cv_dlopen="shl_load"
10746 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10748 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10749 $as_echo_n "(cached) " >&6
10751 ac_check_lib_save_LIBS=$LIBS
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10770 return shl_load ();
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782 $as_echo "$ac_try_echo") >&5
10783 (eval "$ac_link") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest$ac_exeext && {
10793 test "$cross_compiling" = yes ||
10794 $as_test_x conftest$ac_exeext
10796 ac_cv_lib_dld_shl_load=yes
10798 $as_echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_lib_dld_shl_load=no
10804 rm -rf conftest.dSYM
10805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10810 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10811 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10814 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10815 $as_echo_n "checking for dlopen... " >&6; }
10816 if test "${ac_cv_func_dlopen+set}" = set; then
10817 $as_echo_n "(cached) " >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10827 #define dlopen innocuous_dlopen
10829 /* System header to define __stub macros and hopefully few prototypes,
10830 which can conflict with char dlopen (); below.
10831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10832 <limits.h> exists even on freestanding compilers. */
10835 # include <limits.h>
10837 # include <assert.h>
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10849 /* The GNU C library defines this for functions which it implements
10850 to always fail with ENOSYS. Some functions are actually named
10851 something starting with __ and the normal name is an alias. */
10852 #if defined __stub_dlopen || defined __stub___dlopen
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10871 $as_echo "$ac_try_echo") >&5
10872 (eval "$ac_link") 2>conftest.er1
10874 grep -v '^ *+' conftest.er1 >conftest.err
10876 cat conftest.err >&5
10877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext && {
10882 test "$cross_compiling" = yes ||
10883 $as_test_x conftest$ac_exeext
10885 ac_cv_func_dlopen=yes
10887 $as_echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_cv_func_dlopen=no
10893 rm -rf conftest.dSYM
10894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10895 conftest$ac_exeext conftest.$ac_ext
10897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10898 $as_echo "$ac_cv_func_dlopen" >&6; }
10899 if test "x$ac_cv_func_dlopen" = x""yes; then
10900 lt_cv_dlopen="dlopen"
10902 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10907 ac_check_lib_save_LIBS=$LIBS
10909 cat >conftest.$ac_ext <<_ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10931 rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (ac_try="$ac_link"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939 (eval "$ac_link") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest$ac_exeext && {
10949 test "$cross_compiling" = yes ||
10950 $as_test_x conftest$ac_exeext
10952 ac_cv_lib_dl_dlopen=yes
10954 $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_cv_lib_dl_dlopen=no
10960 rm -rf conftest.dSYM
10961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10970 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lsvld $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006 $as_echo "$ac_try_echo") >&5
11007 (eval "$ac_link") 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest$ac_exeext && {
11017 test "$cross_compiling" = yes ||
11018 $as_test_x conftest$ac_exeext
11020 ac_cv_lib_svld_dlopen=yes
11022 $as_echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_lib_svld_dlopen=no
11028 rm -rf conftest.dSYM
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11034 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11038 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11040 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11043 ac_check_lib_save_LIBS=$LIBS
11045 cat >conftest.$ac_ext <<_ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11062 return dld_link ();
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074 $as_echo "$ac_try_echo") >&5
11075 (eval "$ac_link") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext && {
11085 test "$cross_compiling" = yes ||
11086 $as_test_x conftest$ac_exeext
11088 ac_cv_lib_dld_dld_link=yes
11090 $as_echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11093 ac_cv_lib_dld_dld_link=no
11096 rm -rf conftest.dSYM
11097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11103 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11125 if test "x$lt_cv_dlopen" != xno; then
11131 case $lt_cv_dlopen in
11133 save_CPPFLAGS="$CPPFLAGS"
11134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11136 save_LDFLAGS="$LDFLAGS"
11137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11140 LIBS="$lt_cv_dlopen_libs $LIBS"
11142 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11144 if test "${lt_cv_dlopen_self+set}" = set; then
11145 $as_echo_n "(cached) " >&6
11147 if test "$cross_compiling" = yes; then :
11148 lt_cv_dlopen_self=cross
11150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11151 lt_status=$lt_dlunknown
11152 cat > conftest.$ac_ext <<_LT_EOF
11153 #line 11153 "configure"
11154 #include "confdefs.h"
11163 # define LT_DLGLOBAL RTLD_GLOBAL
11166 # define LT_DLGLOBAL DL_GLOBAL
11168 # define LT_DLGLOBAL 0
11172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11173 find out it does not work in some platform. */
11174 #ifndef LT_DLLAZY_OR_NOW
11176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11179 # define LT_DLLAZY_OR_NOW DL_LAZY
11182 # define LT_DLLAZY_OR_NOW RTLD_NOW
11185 # define LT_DLLAZY_OR_NOW DL_NOW
11187 # define LT_DLLAZY_OR_NOW 0
11194 void fnord() { int i=42;}
11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198 int status = $lt_dlunknown;
11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11204 /* dlclose (self); */
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11217 (./conftest; exit; ) >&5 2>/dev/null
11219 case x$lt_status in
11220 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11221 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11222 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11225 # compilation failed
11226 lt_cv_dlopen_self=no
11233 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11234 $as_echo "$lt_cv_dlopen_self" >&6; }
11236 if test "x$lt_cv_dlopen_self" = xyes; then
11237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11238 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11239 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11240 if test "${lt_cv_dlopen_self_static+set}" = set; then
11241 $as_echo_n "(cached) " >&6
11243 if test "$cross_compiling" = yes; then :
11244 lt_cv_dlopen_self_static=cross
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
11249 #line 11249 "configure"
11250 #include "confdefs.h"
11259 # define LT_DLGLOBAL RTLD_GLOBAL
11262 # define LT_DLGLOBAL DL_GLOBAL
11264 # define LT_DLGLOBAL 0
11268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270 #ifndef LT_DLLAZY_OR_NOW
11272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11275 # define LT_DLLAZY_OR_NOW DL_LAZY
11278 # define LT_DLLAZY_OR_NOW RTLD_NOW
11281 # define LT_DLLAZY_OR_NOW DL_NOW
11283 # define LT_DLLAZY_OR_NOW 0
11290 void fnord() { int i=42;}
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 /* dlclose (self); */
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11321 # compilation failed
11322 lt_cv_dlopen_self_static=no
11329 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11333 CPPFLAGS="$save_CPPFLAGS"
11334 LDFLAGS="$save_LDFLAGS"
11339 case $lt_cv_dlopen_self in
11340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11341 *) enable_dlopen_self=unknown ;;
11344 case $lt_cv_dlopen_self_static in
11345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11346 *) enable_dlopen_self_static=unknown ;;
11368 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374 $as_echo "yes" >&6; }
11376 # FIXME - insert some real tests, host_os isn't really good enough
11379 if test -n "$STRIP" ; then
11380 striplib="$STRIP -x"
11381 old_striplib="$STRIP -S"
11382 { $as_echo "$as_me:$LINENO: result: yes" >&5
11383 $as_echo "yes" >&6; }
11385 { $as_echo "$as_me:$LINENO: result: no" >&5
11386 $as_echo "no" >&6; }
11390 { $as_echo "$as_me:$LINENO: result: no" >&5
11391 $as_echo "no" >&6; }
11407 # Report which library types will actually be built
11408 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11410 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11411 $as_echo "$can_build_shared" >&6; }
11413 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11414 $as_echo_n "checking whether to build shared libraries... " >&6; }
11415 test "$can_build_shared" = "no" && enable_shared=no
11417 # On AIX, shared libraries and static libraries use the same namespace, and
11418 # are all built from PIC.
11421 test "$enable_shared" = yes && enable_static=no
11422 if test -n "$RANLIB"; then
11423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11424 postinstall_cmds='$RANLIB $lib'
11429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11430 test "$enable_shared" = yes && enable_static=no
11434 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11435 $as_echo "$enable_shared" >&6; }
11437 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11438 $as_echo_n "checking whether to build static libraries... " >&6; }
11439 # Make sure either enable_shared or enable_static is yes.
11440 test "$enable_shared" = yes || enable_static=yes
11441 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11442 $as_echo "$enable_static" >&6; }
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468 ac_config_commands="$ac_config_commands libtool"
11473 # Only expand once:
11478 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11479 $as_echo_n "checking spl license... " >&6; }
11481 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11482 $as_echo "$LICENSE" >&6; }
11483 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11488 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11489 $as_echo_n "checking linux distribution... " >&6; }
11490 if test -f /etc/redhat-release ; then
11492 elif test -f /etc/fedora-release ; then
11494 elif test -f /etc/arch-release ; then
11496 elif test -f /etc/lsb-release ; then
11498 elif test -f /etc/debian_version ; then
11500 elif test -f /etc/SuSE-release ; then
11502 elif test -f /etc/slackware-version ; then
11504 elif test -f /etc/gentoo-release ; then
11509 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11510 $as_echo "$VENDOR" >&6; }
11513 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11514 $as_echo_n "checking default package type... " >&6; }
11516 fedora) DEFAULT_PACKAGE=rpm ;;
11517 redhat) DEFAULT_PACKAGE=rpm ;;
11518 sles) DEFAULT_PACKAGE=rpm ;;
11519 ubuntu) DEFAULT_PACKAGE=deb ;;
11520 debian) DEFAULT_PACKAGE=deb ;;
11521 slackware) DEFAULT_PACKAGE=tgz ;;
11522 arch) DEFAULT_PACKAGE=arch;;
11523 *) DEFAULT_PACKAGE=rpm ;;
11526 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11527 $as_echo "$DEFAULT_PACKAGE" >&6; }
11534 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11535 $as_echo_n "checking whether $RPM is available... " >&6; }
11536 if tmp=$($RPM --version 2>/dev/null); then
11538 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11540 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11541 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11546 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11547 $as_echo "$HAVE_RPM" >&6; }
11552 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11553 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11554 if tmp=$($RPMBUILD --version 2>/dev/null); then
11556 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11558 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11559 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11564 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11565 $as_echo "$HAVE_RPMBUILD" >&6; }
11580 DPKGBUILD=dpkg-buildpackage
11582 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11583 $as_echo_n "checking whether $DPKG is available... " >&6; }
11584 if tmp=$($DPKG --version 2>/dev/null); then
11586 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11588 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11589 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11594 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11595 $as_echo "$HAVE_DPKG" >&6; }
11600 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11601 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11602 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11604 DPKGBUILD_VERSION=$(echo $tmp | \
11605 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11607 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11608 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11613 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11614 $as_echo "$HAVE_DPKGBUILD" >&6; }
11630 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11631 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11632 if tmp=$($ALIEN --version 2>/dev/null); then
11634 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11636 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11637 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11642 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11643 $as_echo "$HAVE_ALIEN" >&6; }
11653 if test "$VENDOR" = "arch"; then
11658 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11659 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11660 tmp=$($PACMAN --version 2>/dev/null)
11661 if test -n "$tmp"; then
11663 PACMAN_VERSION=$(echo $tmp |
11664 $AWK '/Pacman/ { print $3 }' |
11667 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11668 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11673 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11674 $as_echo "$HAVE_PACMAN" >&6; }
11679 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11680 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11681 tmp=$($MAKEPKG --version 2>/dev/null)
11682 if test -n "$tmp"; then
11684 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11686 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11687 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11692 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11693 $as_echo "$HAVE_MAKEPKG" >&6; }
11712 # Check whether --with-config was given.
11713 if test "${with_config+set}" = set; then
11714 withval=$with_config; SPL_CONFIG="$withval"
11718 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11719 $as_echo_n "checking spl config... " >&6; }
11720 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11721 $as_echo "$SPL_CONFIG" >&6; };
11724 case "$SPL_CONFIG" in
11728 # Check whether --with-linux was given.
11729 if test "${with_linux+set}" = set; then
11730 withval=$with_linux; kernelsrc="$withval"
11735 # Check whether --with-linux-obj was given.
11736 if test "${with_linux_obj+set}" = set; then
11737 withval=$with_linux_obj; kernelbuild="$withval"
11741 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11742 $as_echo_n "checking kernel source directory... " >&6; }
11743 if test -z "$kernelsrc"; then
11744 if test -e "/lib/modules/$(uname -r)/source"; then
11745 headersdir="/lib/modules/$(uname -r)/source"
11746 sourcelink=$(readlink -f "$headersdir")
11747 elif test -e "/lib/modules/$(uname -r)/build"; then
11748 headersdir="/lib/modules/$(uname -r)/build"
11749 sourcelink=$(readlink -f "$headersdir")
11751 sourcelink=$(ls -1d /usr/src/kernels/* \
11753 2>/dev/null | grep -v obj | tail -1)
11756 if test -n "$sourcelink" && test -e ${sourcelink}; then
11757 kernelsrc=`readlink -f ${sourcelink}`
11759 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11760 $as_echo "Not found" >&6; }
11761 { { $as_echo "$as_me:$LINENO: error:
11762 *** Please make sure the kernel devel package for your distribution
11763 *** is installed then try again. If that fails you can specify the
11764 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11765 $as_echo "$as_me: error:
11766 *** Please make sure the kernel devel package for your distribution
11767 *** is installed then try again. If that fails you can specify the
11768 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11769 { (exit 1); exit 1; }; }
11772 if test "$kernelsrc" = "NONE"; then
11777 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11778 $as_echo "$kernelsrc" >&6; }
11779 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11780 $as_echo_n "checking kernel build directory... " >&6; }
11781 if test -z "$kernelbuild"; then
11782 if test -e "/lib/modules/$(uname -r)/build"; then
11783 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11784 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11785 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11786 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11787 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11788 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11789 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11791 kernelbuild=${kernelsrc}
11794 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11795 $as_echo "$kernelbuild" >&6; }
11797 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11798 $as_echo_n "checking kernel source version... " >&6; }
11799 utsrelease1=$kernelbuild/include/linux/version.h
11800 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11801 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11802 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11803 utsrelease=linux/version.h
11804 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11805 utsrelease=linux/utsrelease.h
11806 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11807 utsrelease=generated/utsrelease.h
11810 if test "$utsrelease"; then
11811 kernsrcver=`(echo "#include <$utsrelease>";
11812 echo "kernsrcver=UTS_RELEASE") |
11813 cpp -I $kernelbuild/include |
11814 grep "^kernsrcver=" | cut -d \" -f 2`
11816 if test -z "$kernsrcver"; then
11817 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11818 $as_echo "Not found" >&6; }
11819 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11820 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11821 { (exit 1); exit 1; }; }
11824 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11825 $as_echo "Not found" >&6; }
11826 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11827 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11828 { (exit 1); exit 1; }; }
11831 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11832 $as_echo "$kernsrcver" >&6; }
11835 LINUX_OBJ=${kernelbuild}
11836 LINUX_VERSION=${kernsrcver}
11843 modpost=$LINUX/scripts/Makefile.modpost
11844 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11845 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11846 if test -f "$modpost"; then
11847 if grep -q Modules.symvers $modpost; then
11848 LINUX_SYMBOLS=Modules.symvers
11850 LINUX_SYMBOLS=Module.symvers
11853 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11854 { { $as_echo "$as_me:$LINENO: error:
11855 *** Please make sure the kernel devel package for your distribution
11856 *** is installed. If your building with a custom kernel make sure the
11857 *** kernel is configured, built, and the '--with-linux=PATH' configure
11858 *** option refers to the location of the kernel source." >&5
11859 $as_echo "$as_me: error:
11860 *** Please make sure the kernel devel package for your distribution
11861 *** is installed. If your building with a custom kernel make sure the
11862 *** kernel is configured, built, and the '--with-linux=PATH' configure
11863 *** option refers to the location of the kernel source." >&2;}
11864 { (exit 1); exit 1; }; }
11869 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11870 $as_echo "$LINUX_SYMBOLS" >&6; }
11875 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11876 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11879 cat confdefs.h - <<_ACEOF >conftest.c
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11887 #include <linux/module.h>
11893 #ifndef CONFIG_PREEMPT
11894 #error CONFIG_PREEMPT not #defined
11904 rm -Rf build && mkdir -p build
11905 echo "obj-m := conftest.o" >build/Makefile
11906 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'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11918 { $as_echo "$as_me:$LINENO: result: yes" >&5
11919 $as_echo "yes" >&6; }
11920 { { $as_echo "$as_me:$LINENO: error:
11921 *** Kernel built with CONFIG_PREEMPT which is not supported.
11922 ** You must rebuild your kernel without this option." >&5
11923 $as_echo "$as_me: error:
11924 *** Kernel built with CONFIG_PREEMPT which is not supported.
11925 ** You must rebuild your kernel without this option." >&2;}
11926 { (exit 1); exit 1; }; }
11929 $as_echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 { $as_echo "$as_me:$LINENO: result: no" >&5
11933 $as_echo "no" >&6; }
11946 if test "${LINUX_OBJ}" != "${LINUX}"; then
11947 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11951 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11955 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11956 $as_echo_n "checking whether debugging is enabled... " >&6; }
11957 # Check whether --enable-debug was given.
11958 if test "${enable_debug+set}" = set; then
11959 enableval=$enable_debug;
11965 if test "x$enable_debug" = xyes; then
11967 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11968 DEBUG_CFLAGS="-DDEBUG -Werror"
11972 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11973 DEBUG_CFLAGS="-DNDEBUG"
11979 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11980 $as_echo "$enable_debug" >&6; }
11983 # Check whether --enable-debug-kmem was given.
11984 if test "${enable_debug_kmem+set}" = set; then
11985 enableval=$enable_debug_kmem;
11987 enable_debug_kmem=yes
11991 if test "x$enable_debug_kmem" = xyes; then
11993 cat >>confdefs.h <<\_ACEOF
11994 #define DEBUG_KMEM 1
11997 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12001 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
12002 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12003 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12004 $as_echo "$enable_debug_kmem" >&6; }
12007 # Check whether --enable-debug-kmem-tracking was given.
12008 if test "${enable_debug_kmem_tracking+set}" = set; then
12009 enableval=$enable_debug_kmem_tracking;
12011 enable_debug_kmem_tracking=no
12015 if test "x$enable_debug_kmem_tracking" = xyes; then
12017 cat >>confdefs.h <<\_ACEOF
12018 #define DEBUG_KMEM_TRACKING 1
12021 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12025 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12026 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12027 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12028 $as_echo "$enable_debug_kmem_tracking" >&6; }
12031 # Check whether --enable-atomic-spinlocks was given.
12032 if test "${enable_atomic_spinlocks+set}" = set; then
12033 enableval=$enable_atomic_spinlocks;
12035 enable_atomic_spinlocks=check
12041 cat confdefs.h - <<_ACEOF >conftest.c
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12049 #include <asm/atomic.h>
12055 atomic64_t *ptr __attribute__ ((unused));
12064 rm -Rf build && mkdir -p build
12065 echo "obj-m := conftest.o" >build/Makefile
12066 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'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12078 have_atomic64_t=yes
12080 cat >>confdefs.h <<\_ACEOF
12081 #define HAVE_ATOMIC64_T 1
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12099 if test "x$enable_atomic_spinlocks" = xcheck; then
12101 if test "x$have_atomic64_t" = xyes; then
12103 enable_atomic_spinlocks=no
12107 enable_atomic_spinlocks=yes
12115 if test "x$enable_atomic_spinlocks" = xyes; then
12118 cat >>confdefs.h <<\_ACEOF
12119 #define ATOMIC_SPINLOCK 1
12125 if test "x$have_atomic64_t" = xno; then
12127 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12129 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12130 See \`config.log' for more details." >&5
12131 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12132 See \`config.log' for more details." >&2;}
12133 { (exit 1); exit 1; }; }; }
12141 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12142 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12143 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12144 $as_echo "$enable_atomic_spinlocks" >&6; }
12146 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12147 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12148 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12149 $as_echo "$have_atomic64_t" >&6; }
12151 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12152 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
12155 cat confdefs.h - <<_ACEOF >conftest.c
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12163 #include <asm/atomic.h>
12164 #include <asm/system.h>
12170 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
12179 rm -Rf build && mkdir -p build
12180 echo "obj-m := conftest.o" >build/Makefile
12181 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'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12193 { $as_echo "$as_me:$LINENO: result: yes" >&5
12194 $as_echo "yes" >&6; }
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_ATOMIC64_CMPXCHG 1
12202 $as_echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 { $as_echo "$as_me:$LINENO: result: no" >&5
12206 $as_echo "no" >&6; }
12216 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12217 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
12220 cat confdefs.h - <<_ACEOF >conftest.c
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12228 #include <asm/atomic.h>
12234 atomic64_xchg((atomic64_t *)NULL, 0);
12243 rm -Rf build && mkdir -p build
12244 echo "obj-m := conftest.o" >build/Makefile
12245 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'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12257 { $as_echo "$as_me:$LINENO: result: yes" >&5
12258 $as_echo "yes" >&6; }
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_ATOMIC64_XCHG 1
12266 $as_echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 { $as_echo "$as_me:$LINENO: result: no" >&5
12270 $as_echo "no" >&6; }
12280 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12281 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
12284 cat confdefs.h - <<_ACEOF >conftest.c
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12292 #include <linux/types.h>
12298 uintptr_t *ptr __attribute__ ((unused));
12307 rm -Rf build && mkdir -p build
12308 echo "obj-m := conftest.o" >build/Makefile
12309 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'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12321 { $as_echo "$as_me:$LINENO: result: yes" >&5
12322 $as_echo "yes" >&6; }
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_UINTPTR_T 1
12330 $as_echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 { $as_echo "$as_me:$LINENO: result: no" >&5
12334 $as_echo "no" >&6; }
12344 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12345 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12348 cat confdefs.h - <<_ACEOF >conftest.c
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12356 #include <linux/workqueue.h>
12362 struct work_struct work __attribute__ ((unused));
12363 INIT_WORK(&work, NULL, NULL);
12372 rm -Rf build && mkdir -p build
12373 echo "obj-m := conftest.o" >build/Makefile
12374 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'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12386 { $as_echo "$as_me:$LINENO: result: yes" >&5
12387 $as_echo "yes" >&6; }
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_3ARGS_INIT_WORK 1
12395 $as_echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 { $as_echo "$as_me:$LINENO: result: no" >&5
12399 $as_echo "no" >&6; }
12409 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12410 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12413 cat confdefs.h - <<_ACEOF >conftest.c
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12421 #include <linux/sysctl.h>
12427 (void) register_sysctl_table(NULL, 0);
12436 rm -Rf build && mkdir -p build
12437 echo "obj-m := conftest.o" >build/Makefile
12438 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'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12450 { $as_echo "$as_me:$LINENO: result: yes" >&5
12451 $as_echo "yes" >&6; }
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12459 $as_echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 { $as_echo "$as_me:$LINENO: result: no" >&5
12463 $as_echo "no" >&6; }
12474 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12475 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12478 cat confdefs.h - <<_ACEOF >conftest.c
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12486 #include <linux/mm.h>
12492 return set_shrinker(DEFAULT_SEEKS, NULL);
12501 rm -Rf build && mkdir -p build
12502 echo "obj-m := conftest.o" >build/Makefile
12503 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'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12515 { $as_echo "$as_me:$LINENO: result: yes" >&5
12516 $as_echo "yes" >&6; }
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_SET_SHRINKER 1
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 { $as_echo "$as_me:$LINENO: result: no" >&5
12528 $as_echo "no" >&6; }
12538 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12539 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12540 tmp_flags="$EXTRA_KCFLAGS"
12541 EXTRA_KCFLAGS="-Werror"
12544 cat confdefs.h - <<_ACEOF >conftest.c
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12552 #include <linux/mm.h>
12554 int shrinker_cb(struct shrinker *, int, unsigned int);
12560 struct shrinker cache_shrinker = {
12561 .shrink = shrinker_cb,
12562 .seeks = DEFAULT_SEEKS,
12564 register_shrinker(&cache_shrinker);
12573 rm -Rf build && mkdir -p build
12574 echo "obj-m := conftest.o" >build/Makefile
12575 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'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12587 { $as_echo "$as_me:$LINENO: result: yes" >&5
12588 $as_echo "yes" >&6; }
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12596 $as_echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 { $as_echo "$as_me:$LINENO: result: no" >&5
12600 $as_echo "no" >&6; }
12609 EXTRA_KCFLAGS="$tmp_flags"
12611 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12612 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12615 cat confdefs.h - <<_ACEOF >conftest.c
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12623 #include <linux/namei.h>
12629 struct nameidata nd __attribute__ ((unused));
12631 nd.path.mnt = NULL;
12632 nd.path.dentry = NULL;
12641 rm -Rf build && mkdir -p build
12642 echo "obj-m := conftest.o" >build/Makefile
12643 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12655 { $as_echo "$as_me:$LINENO: result: yes" >&5
12656 $as_echo "yes" >&6; }
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_PATH_IN_NAMEIDATA 1
12664 $as_echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12679 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12680 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12681 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12682 $LINUX_OBJ/Module*.symvers 2>/dev/null
12684 if test $rc -ne 0; then
12686 for file in kernel/sched.c; do
12687 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12688 "$LINUX_OBJ/$file" 2>/dev/null
12690 if test $rc -eq 0; then
12695 if test $export -eq 0; then
12696 { $as_echo "$as_me:$LINENO: result: no" >&5
12697 $as_echo "no" >&6; }
12700 { $as_echo "$as_me:$LINENO: result: yes" >&5
12701 $as_echo "yes" >&6; }
12703 cat >>confdefs.h <<\_ACEOF
12704 #define HAVE_TASK_CURR 1
12709 { $as_echo "$as_me:$LINENO: result: yes" >&5
12710 $as_echo "yes" >&6; }
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_TASK_CURR 1
12719 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12720 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12723 cat confdefs.h - <<_ACEOF >conftest.c
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12731 #include <linux/sysctl.h>
12737 #ifndef CTL_UNNUMBERED
12738 #error CTL_UNNUMBERED undefined
12748 rm -Rf build && mkdir -p build
12749 echo "obj-m := conftest.o" >build/Makefile
12750 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'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12762 { $as_echo "$as_me:$LINENO: result: yes" >&5
12763 $as_echo "yes" >&6; }
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_CTL_UNNUMBERED 1
12771 $as_echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 { $as_echo "$as_me:$LINENO: result: no" >&5
12775 $as_echo "no" >&6; }
12786 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12787 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12790 cat confdefs.h - <<_ACEOF >conftest.c
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12798 #include <linux/sysctl.h>
12804 struct ctl_table ctl __attribute__ ((unused));
12814 rm -Rf build && mkdir -p build
12815 echo "obj-m := conftest.o" >build/Makefile
12816 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'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12828 { $as_echo "$as_me:$LINENO: result: yes" >&5
12829 $as_echo "yes" >&6; }
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_CTL_NAME 1
12837 $as_echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12840 { $as_echo "$as_me:$LINENO: result: no" >&5
12841 $as_echo "no" >&6; }
12851 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12852 $as_echo_n "checking whether fls64() is available... " >&6; }
12855 cat confdefs.h - <<_ACEOF >conftest.c
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12863 #include <linux/bitops.h>
12878 rm -Rf build && mkdir -p build
12879 echo "obj-m := conftest.o" >build/Makefile
12880 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'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12892 { $as_echo "$as_me:$LINENO: result: yes" >&5
12893 $as_echo "yes" >&6; }
12895 cat >>confdefs.h <<\_ACEOF
12896 #define HAVE_FLS64 1
12901 $as_echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 { $as_echo "$as_me:$LINENO: result: no" >&5
12905 $as_echo "no" >&6; }
12916 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12917 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12918 grep -q -E '[[:space:]]device_create[[:space:]]' \
12919 $LINUX_OBJ/Module*.symvers 2>/dev/null
12921 if test $rc -ne 0; then
12923 for file in drivers/base/core.c; do
12924 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12925 "$LINUX_OBJ/$file" 2>/dev/null
12927 if test $rc -eq 0; then
12932 if test $export -eq 0; then
12933 { $as_echo "$as_me:$LINENO: result: no" >&5
12934 $as_echo "no" >&6; }
12937 { $as_echo "$as_me:$LINENO: result: yes" >&5
12938 $as_echo "yes" >&6; }
12940 cat >>confdefs.h <<\_ACEOF
12941 #define HAVE_DEVICE_CREATE 1
12946 { $as_echo "$as_me:$LINENO: result: yes" >&5
12947 $as_echo "yes" >&6; }
12949 cat >>confdefs.h <<\_ACEOF
12950 #define HAVE_DEVICE_CREATE 1
12957 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12958 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12959 tmp_flags="$EXTRA_KCFLAGS"
12960 EXTRA_KCFLAGS="-Werror"
12963 cat confdefs.h - <<_ACEOF >conftest.c
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12971 #include <linux/device.h>
12977 device_create(NULL, NULL, 0, NULL, "%d", 1);
12986 rm -Rf build && mkdir -p build
12987 echo "obj-m := conftest.o" >build/Makefile
12988 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'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
13000 { $as_echo "$as_me:$LINENO: result: yes" >&5
13001 $as_echo "yes" >&6; }
13003 cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_5ARGS_DEVICE_CREATE 1
13009 $as_echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 { $as_echo "$as_me:$LINENO: result: no" >&5
13013 $as_echo "no" >&6; }
13022 EXTRA_KCFLAGS="$tmp_flags"
13025 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13026 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
13027 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13028 $LINUX_OBJ/Module*.symvers 2>/dev/null
13030 if test $rc -ne 0; then
13032 for file in drivers/base/class.c; do
13033 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13034 "$LINUX_OBJ/$file" 2>/dev/null
13036 if test $rc -eq 0; then
13041 if test $export -eq 0; then
13042 { $as_echo "$as_me:$LINENO: result: no" >&5
13043 $as_echo "no" >&6; }
13046 { $as_echo "$as_me:$LINENO: result: yes" >&5
13047 $as_echo "yes" >&6; }
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_CLASS_DEVICE_CREATE 1
13055 { $as_echo "$as_me:$LINENO: result: yes" >&5
13056 $as_echo "yes" >&6; }
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_CLASS_DEVICE_CREATE 1
13066 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13067 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
13068 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13069 $LINUX_OBJ/Module*.symvers 2>/dev/null
13071 if test $rc -ne 0; then
13073 for file in kernel/time.c; do
13074 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13075 "$LINUX_OBJ/$file" 2>/dev/null
13077 if test $rc -eq 0; then
13082 if test $export -eq 0; then
13083 { $as_echo "$as_me:$LINENO: result: no" >&5
13084 $as_echo "no" >&6; }
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088 $as_echo "yes" >&6; }
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13096 { $as_echo "$as_me:$LINENO: result: yes" >&5
13097 $as_echo "yes" >&6; }
13099 cat >>confdefs.h <<\_ACEOF
13100 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13107 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13108 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
13111 cat confdefs.h - <<_ACEOF >conftest.c
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13119 #include <linux/time.h>
13120 void set_normalized_timespec(struct timespec *ts,
13121 time_t sec, long nsec) { }
13134 rm -Rf build && mkdir -p build
13135 echo "obj-m := conftest.o" >build/Makefile
13136 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'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13148 { $as_echo "$as_me:$LINENO: result: no" >&5
13149 $as_echo "no" >&6; }
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 { $as_echo "$as_me:$LINENO: result: yes" >&5
13156 $as_echo "yes" >&6; }
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13172 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13173 $as_echo_n "checking whether timespec_sub() is available... " >&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/time.h>
13190 struct timespec a = { 0 };
13191 struct timespec b = { 0 };
13192 struct timespec c __attribute__ ((unused));
13193 c = timespec_sub(a, b);
13202 rm -Rf build && mkdir -p build
13203 echo "obj-m := conftest.o" >build/Makefile
13204 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'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13216 { $as_echo "$as_me:$LINENO: result: yes" >&5
13217 $as_echo "yes" >&6; }
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_TIMESPEC_SUB 1
13225 $as_echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 { $as_echo "$as_me:$LINENO: result: no" >&5
13229 $as_echo "no" >&6; }
13240 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13241 $as_echo_n "checking whether init_utsname() is available... " >&6; }
13244 cat confdefs.h - <<_ACEOF >conftest.c
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13252 #include <linux/utsname.h>
13258 struct new_utsname *a __attribute__ ((unused));
13259 a = init_utsname();
13268 rm -Rf build && mkdir -p build
13269 echo "obj-m := conftest.o" >build/Makefile
13270 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'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13282 { $as_echo "$as_me:$LINENO: result: yes" >&5
13283 $as_echo "yes" >&6; }
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_INIT_UTSNAME 1
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 { $as_echo "$as_me:$LINENO: result: no" >&5
13295 $as_echo "no" >&6; }
13306 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13307 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
13310 cat confdefs.h - <<_ACEOF >conftest.c
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13318 #include <linux/fdtable.h>
13333 rm -Rf build && mkdir -p build
13334 echo "obj-m := conftest.o" >build/Makefile
13335 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'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_FDTABLE_HEADER 1
13352 { $as_echo "$as_me:$LINENO: result: yes" >&5
13353 $as_echo "yes" >&6; }
13357 $as_echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13360 { $as_echo "$as_me:$LINENO: result: no" >&5
13361 $as_echo "no" >&6; }
13374 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13375 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
13378 cat confdefs.h - <<_ACEOF >conftest.c
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13386 #include <linux/sched.h>
13387 #include <linux/file.h>
13388 #ifdef HAVE_FDTABLE_HEADER
13389 #include <linux/fdtable.h>
13396 struct files_struct *files = current->files;
13397 struct fdtable *fdt __attribute__ ((unused));
13398 fdt = files_fdtable(files);
13407 rm -Rf build && mkdir -p build
13408 echo "obj-m := conftest.o" >build/Makefile
13409 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'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13421 { $as_echo "$as_me:$LINENO: result: yes" >&5
13422 $as_echo "yes" >&6; }
13424 cat >>confdefs.h <<\_ACEOF
13425 #define HAVE_FILES_FDTABLE 1
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 { $as_echo "$as_me:$LINENO: result: no" >&5
13434 $as_echo "no" >&6; }
13445 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13446 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13449 cat confdefs.h - <<_ACEOF >conftest.c
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13457 #include <linux/uaccess.h>
13472 rm -Rf build && mkdir -p build
13473 echo "obj-m := conftest.o" >build/Makefile
13474 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'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13487 cat >>confdefs.h <<\_ACEOF
13488 #define HAVE_UACCESS_HEADER 1
13491 { $as_echo "$as_me:$LINENO: result: yes" >&5
13492 $as_echo "yes" >&6; }
13496 $as_echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 { $as_echo "$as_me:$LINENO: result: no" >&5
13500 $as_echo "no" >&6; }
13513 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13514 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13517 cat confdefs.h - <<_ACEOF >conftest.c
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13525 #include <linux/slab.h>
13531 void *a __attribute__ ((unused));
13532 a = kmalloc_node(1, GFP_KERNEL, 0);
13541 rm -Rf build && mkdir -p build
13542 echo "obj-m := conftest.o" >build/Makefile
13543 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'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13555 { $as_echo "$as_me:$LINENO: result: yes" >&5
13556 $as_echo "yes" >&6; }
13558 cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_KMALLOC_NODE 1
13564 $as_echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 { $as_echo "$as_me:$LINENO: result: no" >&5
13568 $as_echo "no" >&6; }
13579 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13580 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13581 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13582 $LINUX_OBJ/Module*.symvers 2>/dev/null
13584 if test $rc -ne 0; then
13587 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13588 "$LINUX_OBJ/$file" 2>/dev/null
13590 if test $rc -eq 0; then
13595 if test $export -eq 0; then
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597 $as_echo "no" >&6; }
13600 { $as_echo "$as_me:$LINENO: result: yes" >&5
13601 $as_echo "yes" >&6; }
13603 cat >>confdefs.h <<\_ACEOF
13604 #define HAVE_MONOTONIC_CLOCK 1
13609 { $as_echo "$as_me:$LINENO: result: yes" >&5
13610 $as_echo "yes" >&6; }
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_MONOTONIC_CLOCK 1
13620 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13621 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13624 cat confdefs.h - <<_ACEOF >conftest.c
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13632 #include <linux/fs.h>
13633 #include <linux/mutex.h>
13640 mutex_init(&i.i_mutex);
13649 rm -Rf build && mkdir -p build
13650 echo "obj-m := conftest.o" >build/Makefile
13651 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'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13663 { $as_echo "$as_me:$LINENO: result: yes" >&5
13664 $as_echo "yes" >&6; }
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_INODE_I_MUTEX 1
13672 $as_echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 { $as_echo "$as_me:$LINENO: result: no" >&5
13676 $as_echo "no" >&6; }
13687 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13688 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13691 cat confdefs.h - <<_ACEOF >conftest.c
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13699 #include <linux/mutex.h>
13705 struct mutex mtx __attribute__ ((unused));
13715 rm -Rf build && mkdir -p build
13716 echo "obj-m := conftest.o" >build/Makefile
13717 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'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13729 { $as_echo "$as_me:$LINENO: result: yes" >&5
13730 $as_echo "yes" >&6; }
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_MUTEX_OWNER 1
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 { $as_echo "$as_me:$LINENO: result: no" >&5
13742 $as_echo "no" >&6; }
13753 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13754 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13755 tmp_flags="$EXTRA_KCFLAGS"
13756 EXTRA_KCFLAGS="-Werror"
13759 cat confdefs.h - <<_ACEOF >conftest.c
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13767 #include <linux/mutex.h>
13773 struct mutex mtx __attribute__ ((unused));
13774 mtx.owner = current;
13783 rm -Rf build && mkdir -p build
13784 echo "obj-m := conftest.o" >build/Makefile
13785 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'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13797 { $as_echo "$as_me:$LINENO: result: yes" >&5
13798 $as_echo "yes" >&6; }
13800 cat >>confdefs.h <<\_ACEOF
13801 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13806 $as_echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 { $as_echo "$as_me:$LINENO: result: no" >&5
13810 $as_echo "no" >&6; }
13819 EXTRA_KCFLAGS="$tmp_flags"
13822 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13823 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13826 cat confdefs.h - <<_ACEOF >conftest.c
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13834 #include <linux/mutex.h>
13840 struct mutex mutex;
13841 mutex_init(&mutex);
13842 mutex_lock_nested(&mutex, 0);
13851 rm -Rf build && mkdir -p build
13852 echo "obj-m := conftest.o" >build/Makefile
13853 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'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13865 { $as_echo "$as_me:$LINENO: result: yes" >&5
13866 $as_echo "yes" >&6; }
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_MUTEX_LOCK_NESTED 1
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13877 { $as_echo "$as_me:$LINENO: result: no" >&5
13878 $as_echo "no" >&6; }
13889 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13890 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13893 cat confdefs.h - <<_ACEOF >conftest.c
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13901 #include <linux/smp.h>
13907 on_each_cpu(NULL, NULL, 0);
13916 rm -Rf build && mkdir -p build
13917 echo "obj-m := conftest.o" >build/Makefile
13918 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'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13930 { $as_echo "$as_me:$LINENO: result: yes" >&5
13931 $as_echo "yes" >&6; }
13933 cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_3ARGS_ON_EACH_CPU 1
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 { $as_echo "$as_me:$LINENO: result: no" >&5
13943 $as_echo "no" >&6; }
13954 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13955 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13956 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13957 $LINUX_OBJ/Module*.symvers 2>/dev/null
13959 if test $rc -ne 0; then
13962 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13963 "$LINUX_OBJ/$file" 2>/dev/null
13965 if test $rc -eq 0; then
13970 if test $export -eq 0; then
13971 { $as_echo "$as_me:$LINENO: result: no" >&5
13972 $as_echo "no" >&6; }
13975 { $as_echo "$as_me:$LINENO: result: yes" >&5
13976 $as_echo "yes" >&6; }
13978 cat >>confdefs.h <<\_ACEOF
13979 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13984 { $as_echo "$as_me:$LINENO: result: yes" >&5
13985 $as_echo "yes" >&6; }
13987 cat >>confdefs.h <<\_ACEOF
13988 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13995 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13996 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13997 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13998 $LINUX_OBJ/Module*.symvers 2>/dev/null
14000 if test $rc -ne 0; then
14003 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14004 "$LINUX_OBJ/$file" 2>/dev/null
14006 if test $rc -eq 0; then
14011 if test $export -eq 0; then
14012 { $as_echo "$as_me:$LINENO: result: no" >&5
14013 $as_echo "no" >&6; }
14016 { $as_echo "$as_me:$LINENO: result: yes" >&5
14017 $as_echo "yes" >&6; }
14019 cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_GET_VMALLOC_INFO 1
14025 { $as_echo "$as_me:$LINENO: result: yes" >&5
14026 $as_echo "yes" >&6; }
14028 cat >>confdefs.h <<\_ACEOF
14029 #define HAVE_GET_VMALLOC_INFO 1
14036 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14037 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
14038 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14040 if test $rc -eq 0; then
14041 { $as_echo "$as_me:$LINENO: result: yes" >&5
14042 $as_echo "yes" >&6; }
14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_PGDAT_HELPERS 1
14049 { $as_echo "$as_me:$LINENO: result: no" >&5
14050 $as_echo "no" >&6; }
14054 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14055 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
14056 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14057 $LINUX_OBJ/Module*.symvers 2>/dev/null
14059 if test $rc -ne 0; then
14062 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14063 "$LINUX_OBJ/$file" 2>/dev/null
14065 if test $rc -eq 0; then
14070 if test $export -eq 0; then
14071 { $as_echo "$as_me:$LINENO: result: no" >&5
14072 $as_echo "no" >&6; }
14075 { $as_echo "$as_me:$LINENO: result: yes" >&5
14076 $as_echo "yes" >&6; }
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_FIRST_ONLINE_PGDAT 1
14084 { $as_echo "$as_me:$LINENO: result: yes" >&5
14085 $as_echo "yes" >&6; }
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_FIRST_ONLINE_PGDAT 1
14095 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14096 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
14097 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14098 $LINUX_OBJ/Module*.symvers 2>/dev/null
14100 if test $rc -ne 0; then
14103 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14104 "$LINUX_OBJ/$file" 2>/dev/null
14106 if test $rc -eq 0; then
14111 if test $export -eq 0; then
14112 { $as_echo "$as_me:$LINENO: result: no" >&5
14113 $as_echo "no" >&6; }
14116 { $as_echo "$as_me:$LINENO: result: yes" >&5
14117 $as_echo "yes" >&6; }
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_NEXT_ONLINE_PGDAT 1
14125 { $as_echo "$as_me:$LINENO: result: yes" >&5
14126 $as_echo "yes" >&6; }
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_NEXT_ONLINE_PGDAT 1
14136 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14137 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
14138 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14139 $LINUX_OBJ/Module*.symvers 2>/dev/null
14141 if test $rc -ne 0; then
14144 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14145 "$LINUX_OBJ/$file" 2>/dev/null
14147 if test $rc -eq 0; then
14152 if test $export -eq 0; then
14153 { $as_echo "$as_me:$LINENO: result: no" >&5
14154 $as_echo "no" >&6; }
14157 { $as_echo "$as_me:$LINENO: result: yes" >&5
14158 $as_echo "yes" >&6; }
14160 cat >>confdefs.h <<\_ACEOF
14161 #define HAVE_NEXT_ZONE 1
14166 { $as_echo "$as_me:$LINENO: result: yes" >&5
14167 $as_echo "yes" >&6; }
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_NEXT_ZONE 1
14177 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14178 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
14179 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14180 $LINUX_OBJ/Module*.symvers 2>/dev/null
14182 if test $rc -ne 0; then
14185 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14186 "$LINUX_OBJ/$file" 2>/dev/null
14188 if test $rc -eq 0; then
14193 if test $export -eq 0; then
14194 { $as_echo "$as_me:$LINENO: result: no" >&5
14195 $as_echo "no" >&6; }
14198 { $as_echo "$as_me:$LINENO: result: yes" >&5
14199 $as_echo "yes" >&6; }
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_PGDAT_LIST 1
14207 { $as_echo "$as_me:$LINENO: result: yes" >&5
14208 $as_echo "yes" >&6; }
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_PGDAT_LIST 1
14218 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14219 $as_echo_n "checking whether global_page_state() is available... " >&6; }
14222 cat confdefs.h - <<_ACEOF >conftest.c
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14230 #include <linux/mm.h>
14236 unsigned long state __attribute__ ((unused));
14237 state = global_page_state(0);
14246 rm -Rf build && mkdir -p build
14247 echo "obj-m := conftest.o" >build/Makefile
14248 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'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14260 { $as_echo "$as_me:$LINENO: result: yes" >&5
14261 $as_echo "yes" >&6; }
14263 cat >>confdefs.h <<\_ACEOF
14264 #define HAVE_GLOBAL_PAGE_STATE 1
14269 $as_echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 { $as_echo "$as_me:$LINENO: result: no" >&5
14273 $as_echo "no" >&6; }
14284 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14285 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
14288 cat confdefs.h - <<_ACEOF >conftest.c
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14296 #include <linux/mm.h>
14302 enum zone_stat_item zsi __attribute__ ((unused));
14303 zsi = NR_FREE_PAGES;
14312 rm -Rf build && mkdir -p build
14313 echo "obj-m := conftest.o" >build/Makefile
14314 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'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14326 { $as_echo "$as_me:$LINENO: result: yes" >&5
14327 $as_echo "yes" >&6; }
14329 cat >>confdefs.h <<\_ACEOF
14330 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
14335 $as_echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 { $as_echo "$as_me:$LINENO: result: no" >&5
14339 $as_echo "no" >&6; }
14350 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14351 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
14354 cat confdefs.h - <<_ACEOF >conftest.c
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14362 #include <linux/mm.h>
14368 enum zone_stat_item zsi __attribute__ ((unused));
14378 rm -Rf build && mkdir -p build
14379 echo "obj-m := conftest.o" >build/Makefile
14380 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'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14392 { $as_echo "$as_me:$LINENO: result: yes" >&5
14393 $as_echo "yes" >&6; }
14395 cat >>confdefs.h <<\_ACEOF
14396 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
14401 $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 { $as_echo "$as_me:$LINENO: result: no" >&5
14405 $as_echo "no" >&6; }
14415 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14416 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14419 cat confdefs.h - <<_ACEOF >conftest.c
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14427 #include <linux/mm.h>
14433 enum zone_stat_item zsi __attribute__ ((unused));
14434 zsi = NR_INACTIVE_ANON;
14443 rm -Rf build && mkdir -p build
14444 echo "obj-m := conftest.o" >build/Makefile
14445 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'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14457 { $as_echo "$as_me:$LINENO: result: yes" >&5
14458 $as_echo "yes" >&6; }
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14466 $as_echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 { $as_echo "$as_me:$LINENO: result: no" >&5
14470 $as_echo "no" >&6; }
14480 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14481 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14484 cat confdefs.h - <<_ACEOF >conftest.c
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14492 #include <linux/mm.h>
14498 enum zone_stat_item zsi __attribute__ ((unused));
14499 zsi = NR_INACTIVE_FILE;
14508 rm -Rf build && mkdir -p build
14509 echo "obj-m := conftest.o" >build/Makefile
14510 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'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14522 { $as_echo "$as_me:$LINENO: result: yes" >&5
14523 $as_echo "yes" >&6; }
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14531 $as_echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 { $as_echo "$as_me:$LINENO: result: no" >&5
14535 $as_echo "no" >&6; }
14546 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14547 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14550 cat confdefs.h - <<_ACEOF >conftest.c
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14558 #include <linux/mm.h>
14564 enum zone_stat_item zsi __attribute__ ((unused));
14574 rm -Rf build && mkdir -p build
14575 echo "obj-m := conftest.o" >build/Makefile
14576 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'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14588 { $as_echo "$as_me:$LINENO: result: yes" >&5
14589 $as_echo "yes" >&6; }
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14597 $as_echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 { $as_echo "$as_me:$LINENO: result: no" >&5
14601 $as_echo "no" >&6; }
14611 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14612 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14615 cat confdefs.h - <<_ACEOF >conftest.c
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14623 #include <linux/mm.h>
14629 enum zone_stat_item zsi __attribute__ ((unused));
14630 zsi = NR_ACTIVE_ANON;
14639 rm -Rf build && mkdir -p build
14640 echo "obj-m := conftest.o" >build/Makefile
14641 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'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14653 { $as_echo "$as_me:$LINENO: result: yes" >&5
14654 $as_echo "yes" >&6; }
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14662 $as_echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14676 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14677 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14680 cat confdefs.h - <<_ACEOF >conftest.c
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14688 #include <linux/mm.h>
14694 enum zone_stat_item zsi __attribute__ ((unused));
14695 zsi = NR_ACTIVE_FILE;
14704 rm -Rf build && mkdir -p build
14705 echo "obj-m := conftest.o" >build/Makefile
14706 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'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14718 { $as_echo "$as_me:$LINENO: result: yes" >&5
14719 $as_echo "yes" >&6; }
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14727 $as_echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 { $as_echo "$as_me:$LINENO: result: no" >&5
14731 $as_echo "no" >&6; }
14742 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14743 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14746 cat confdefs.h - <<_ACEOF >conftest.c
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14759 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14760 #error "global_page_state needs NR_FREE_PAGES"
14763 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14764 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14765 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14766 #error "global_page_state needs NR_ACTIVE*"
14769 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14770 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14771 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14772 #error "global_page_state needs NR_INACTIVE*"
14782 rm -Rf build && mkdir -p build
14783 echo "obj-m := conftest.o" >build/Makefile
14784 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'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14796 { $as_echo "$as_me:$LINENO: result: no" >&5
14797 $as_echo "no" >&6; }
14800 $as_echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 { $as_echo "$as_me:$LINENO: result: yes" >&5
14804 $as_echo "yes" >&6; }
14806 cat >>confdefs.h <<\_ACEOF
14807 #define NEED_GET_ZONE_COUNTS 1
14811 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14812 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14813 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14814 $LINUX_OBJ/Module*.symvers 2>/dev/null
14816 if test $rc -ne 0; then
14819 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14820 "$LINUX_OBJ/$file" 2>/dev/null
14822 if test $rc -eq 0; then
14827 if test $export -eq 0; then
14828 { $as_echo "$as_me:$LINENO: result: no" >&5
14829 $as_echo "no" >&6; }
14832 { $as_echo "$as_me:$LINENO: result: yes" >&5
14833 $as_echo "yes" >&6; }
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_GET_ZONE_COUNTS 1
14841 { $as_echo "$as_me:$LINENO: result: yes" >&5
14842 $as_echo "yes" >&6; }
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_GET_ZONE_COUNTS 1
14860 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14861 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14862 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14863 $LINUX_OBJ/Module*.symvers 2>/dev/null
14865 if test $rc -ne 0; then
14868 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14869 "$LINUX_OBJ/$file" 2>/dev/null
14871 if test $rc -eq 0; then
14876 if test $export -eq 0; then
14877 { $as_echo "$as_me:$LINENO: result: no" >&5
14878 $as_echo "no" >&6; }
14881 { $as_echo "$as_me:$LINENO: result: yes" >&5
14882 $as_echo "yes" >&6; }
14884 cat >>confdefs.h <<\_ACEOF
14885 #define HAVE_USER_PATH_DIR 1
14890 { $as_echo "$as_me:$LINENO: result: yes" >&5
14891 $as_echo "yes" >&6; }
14893 cat >>confdefs.h <<\_ACEOF
14894 #define HAVE_USER_PATH_DIR 1
14901 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14902 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14903 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14904 $LINUX_OBJ/Module*.symvers 2>/dev/null
14906 if test $rc -ne 0; then
14909 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14910 "$LINUX_OBJ/$file" 2>/dev/null
14912 if test $rc -eq 0; then
14917 if test $export -eq 0; then
14918 { $as_echo "$as_me:$LINENO: result: no" >&5
14919 $as_echo "no" >&6; }
14922 { $as_echo "$as_me:$LINENO: result: yes" >&5
14923 $as_echo "yes" >&6; }
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_SET_FS_PWD 1
14931 { $as_echo "$as_me:$LINENO: result: yes" >&5
14932 $as_echo "yes" >&6; }
14934 cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_SET_FS_PWD 1
14941 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14942 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14945 cat confdefs.h - <<_ACEOF >conftest.c
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14953 #include <linux/sched.h>
14954 #include <linux/fs_struct.h>
14960 set_fs_pwd(NULL, NULL);
14969 rm -Rf build && mkdir -p build
14970 echo "obj-m := conftest.o" >build/Makefile
14971 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'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14983 { $as_echo "$as_me:$LINENO: result: yes" >&5
14984 $as_echo "yes" >&6; }
14986 cat >>confdefs.h <<\_ACEOF
14987 #define HAVE_2ARGS_SET_FS_PWD 1
14992 $as_echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 { $as_echo "$as_me:$LINENO: result: no" >&5
14996 $as_echo "no" >&6; }
15006 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15007 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15010 cat confdefs.h - <<_ACEOF >conftest.c
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15018 #include <linux/fs.h>
15024 vfs_unlink(NULL, NULL);
15033 rm -Rf build && mkdir -p build
15034 echo "obj-m := conftest.o" >build/Makefile
15035 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'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15047 { $as_echo "$as_me:$LINENO: result: yes" >&5
15048 $as_echo "yes" >&6; }
15050 cat >>confdefs.h <<\_ACEOF
15051 #define HAVE_2ARGS_VFS_UNLINK 1
15056 $as_echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 { $as_echo "$as_me:$LINENO: result: no" >&5
15060 $as_echo "no" >&6; }
15070 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15071 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15074 cat confdefs.h - <<_ACEOF >conftest.c
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15082 #include <linux/fs.h>
15088 vfs_rename(NULL, NULL, NULL, NULL);
15097 rm -Rf build && mkdir -p build
15098 echo "obj-m := conftest.o" >build/Makefile
15099 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'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15111 { $as_echo "$as_me:$LINENO: result: yes" >&5
15112 $as_echo "yes" >&6; }
15114 cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_4ARGS_VFS_RENAME 1
15120 $as_echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15123 { $as_echo "$as_me:$LINENO: result: no" >&5
15124 $as_echo "no" >&6; }
15135 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15136 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15137 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15138 $LINUX_OBJ/Module*.symvers 2>/dev/null
15140 if test $rc -ne 0; then
15142 for file in fs/sync.c; do
15143 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15144 "$LINUX_OBJ/$file" 2>/dev/null
15146 if test $rc -eq 0; then
15151 if test $export -eq 0; then
15152 { $as_echo "$as_me:$LINENO: result: no" >&5
15153 $as_echo "no" >&6; }
15156 { $as_echo "$as_me:$LINENO: result: yes" >&5
15157 $as_echo "yes" >&6; }
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_VFS_FSYNC 1
15165 { $as_echo "$as_me:$LINENO: result: yes" >&5
15166 $as_echo "yes" >&6; }
15168 cat >>confdefs.h <<\_ACEOF
15169 #define HAVE_VFS_FSYNC 1
15176 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15177 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15180 cat confdefs.h - <<_ACEOF >conftest.c
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15188 #include <linux/fs.h>
15194 vfs_fsync(NULL, 0);
15203 rm -Rf build && mkdir -p build
15204 echo "obj-m := conftest.o" >build/Makefile
15205 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'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15217 { $as_echo "$as_me:$LINENO: result: yes" >&5
15218 $as_echo "yes" >&6; }
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_2ARGS_VFS_FSYNC 1
15226 $as_echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 { $as_echo "$as_me:$LINENO: result: no" >&5
15230 $as_echo "no" >&6; }
15241 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15242 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
15243 tmp_flags="$EXTRA_KCFLAGS"
15244 EXTRA_KCFLAGS="-Werror"
15247 cat confdefs.h - <<_ACEOF >conftest.c
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15255 #include <linux/sched.h>
15256 #include <linux/fs_struct.h>
15262 struct fs_struct fs;
15263 spin_lock_init(&fs.lock);
15272 rm -Rf build && mkdir -p build
15273 echo "obj-m := conftest.o" >build/Makefile
15274 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'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15286 { $as_echo "$as_me:$LINENO: result: yes" >&5
15287 $as_echo "yes" >&6; }
15289 cat >>confdefs.h <<\_ACEOF
15290 #define HAVE_FS_STRUCT_SPINLOCK 1
15295 $as_echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 { $as_echo "$as_me:$LINENO: result: no" >&5
15299 $as_echo "no" >&6; }
15308 EXTRA_KCFLAGS="$tmp_flags"
15311 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15312 $as_echo_n "checking whether struct cred exists... " >&6; }
15315 cat confdefs.h - <<_ACEOF >conftest.c
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15323 #include <linux/cred.h>
15329 struct cred *cr __attribute__ ((unused));
15339 rm -Rf build && mkdir -p build
15340 echo "obj-m := conftest.o" >build/Makefile
15341 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'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15353 { $as_echo "$as_me:$LINENO: result: yes" >&5
15354 $as_echo "yes" >&6; }
15356 cat >>confdefs.h <<\_ACEOF
15357 #define HAVE_CRED_STRUCT 1
15362 $as_echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 { $as_echo "$as_me:$LINENO: result: no" >&5
15366 $as_echo "no" >&6; }
15377 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15378 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
15379 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15380 $LINUX_OBJ/Module*.symvers 2>/dev/null
15382 if test $rc -ne 0; then
15385 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15386 "$LINUX_OBJ/$file" 2>/dev/null
15388 if test $rc -eq 0; then
15393 if test $export -eq 0; then
15394 { $as_echo "$as_me:$LINENO: result: no" >&5
15395 $as_echo "no" >&6; }
15398 { $as_echo "$as_me:$LINENO: result: yes" >&5
15399 $as_echo "yes" >&6; }
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_GROUPS_SEARCH 1
15407 { $as_echo "$as_me:$LINENO: result: yes" >&5
15408 $as_echo "yes" >&6; }
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_GROUPS_SEARCH 1
15418 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15419 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
15420 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15421 $LINUX_OBJ/Module*.symvers 2>/dev/null
15423 if test $rc -ne 0; then
15426 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15427 "$LINUX_OBJ/$file" 2>/dev/null
15429 if test $rc -eq 0; then
15434 if test $export -eq 0; then
15435 { $as_echo "$as_me:$LINENO: result: no" >&5
15436 $as_echo "no" >&6; }
15439 { $as_echo "$as_me:$LINENO: result: yes" >&5
15440 $as_echo "yes" >&6; }
15442 cat >>confdefs.h <<\_ACEOF
15443 #define HAVE_PUT_TASK_STRUCT 1
15448 { $as_echo "$as_me:$LINENO: result: yes" >&5
15449 $as_echo "yes" >&6; }
15451 cat >>confdefs.h <<\_ACEOF
15452 #define HAVE_PUT_TASK_STRUCT 1
15459 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15460 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15463 cat confdefs.h - <<_ACEOF >conftest.c
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15471 #include <linux/sysctl.h>
15477 proc_dostring(NULL, 0, NULL, NULL, NULL);
15486 rm -Rf build && mkdir -p build
15487 echo "obj-m := conftest.o" >build/Makefile
15488 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'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15500 { $as_echo "$as_me:$LINENO: result: yes" >&5
15501 $as_echo "yes" >&6; }
15503 cat >>confdefs.h <<\_ACEOF
15504 #define HAVE_5ARGS_PROC_HANDLER 1
15509 $as_echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 { $as_echo "$as_me:$LINENO: result: no" >&5
15513 $as_echo "no" >&6; }
15524 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15525 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15526 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15527 $LINUX_OBJ/Module*.symvers 2>/dev/null
15529 if test $rc -ne 0; then
15532 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15533 "$LINUX_OBJ/$file" 2>/dev/null
15535 if test $rc -eq 0; then
15540 if test $export -eq 0; then
15541 { $as_echo "$as_me:$LINENO: result: no" >&5
15542 $as_echo "no" >&6; }
15545 { $as_echo "$as_me:$LINENO: result: yes" >&5
15546 $as_echo "yes" >&6; }
15548 cat >>confdefs.h <<\_ACEOF
15549 #define HAVE_KVASPRINTF 1
15554 { $as_echo "$as_me:$LINENO: result: yes" >&5
15555 $as_echo "yes" >&6; }
15557 cat >>confdefs.h <<\_ACEOF
15558 #define HAVE_KVASPRINTF 1
15565 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15566 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15567 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15568 $LINUX_OBJ/Module*.symvers 2>/dev/null
15570 if test $rc -ne 0; then
15572 for file in lib/rwsem-spinlock.c; do
15573 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15574 "$LINUX_OBJ/$file" 2>/dev/null
15576 if test $rc -eq 0; then
15581 if test $export -eq 0; then
15582 { $as_echo "$as_me:$LINENO: result: no" >&5
15583 $as_echo "no" >&6; }
15586 { $as_echo "$as_me:$LINENO: result: yes" >&5
15587 $as_echo "yes" >&6; }
15589 cat >>confdefs.h <<\_ACEOF
15590 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15595 { $as_echo "$as_me:$LINENO: result: yes" >&5
15596 $as_echo "yes" >&6; }
15598 cat >>confdefs.h <<\_ACEOF
15599 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15606 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15607 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15608 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15609 $LINUX_OBJ/Module*.symvers 2>/dev/null
15611 if test $rc -ne 0; then
15614 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15615 "$LINUX_OBJ/$file" 2>/dev/null
15617 if test $rc -eq 0; then
15622 if test $export -eq 0; then
15623 { $as_echo "$as_me:$LINENO: result: no" >&5
15624 $as_echo "no" >&6; }
15627 { $as_echo "$as_me:$LINENO: result: yes" >&5
15628 $as_echo "yes" >&6; }
15630 cat >>confdefs.h <<\_ACEOF
15631 #define HAVE_INVALIDATE_INODES 1
15636 { $as_echo "$as_me:$LINENO: result: yes" >&5
15637 $as_echo "yes" >&6; }
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_INVALIDATE_INODES 1
15645 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15646 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15647 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15648 $LINUX_OBJ/Module*.symvers 2>/dev/null
15650 if test $rc -ne 0; then
15653 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15654 "$LINUX_OBJ/$file" 2>/dev/null
15656 if test $rc -eq 0; then
15661 if test $export -eq 0; then
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663 $as_echo "no" >&6; }
15666 { $as_echo "$as_me:$LINENO: result: yes" >&5
15667 $as_echo "yes" >&6; }
15669 cat >>confdefs.h <<\_ACEOF
15670 #define HAVE_INVALIDATE_INODES_CHECK 1
15675 { $as_echo "$as_me:$LINENO: result: yes" >&5
15676 $as_echo "yes" >&6; }
15678 cat >>confdefs.h <<\_ACEOF
15679 #define HAVE_INVALIDATE_INODES_CHECK 1
15685 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15686 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15689 cat confdefs.h - <<_ACEOF >conftest.c
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15697 #include <linux/fs.h>
15703 return __invalidate_device(NULL, 0);
15712 rm -Rf build && mkdir -p build
15713 echo "obj-m := conftest.o" >build/Makefile
15714 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'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15726 { $as_echo "$as_me:$LINENO: result: yes" >&5
15727 $as_echo "yes" >&6; }
15729 cat >>confdefs.h <<\_ACEOF
15730 #define HAVE_2ARGS_INVALIDATE_INODES 1
15735 $as_echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 { $as_echo "$as_me:$LINENO: result: no" >&5
15739 $as_echo "no" >&6; }
15750 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15751 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15752 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15753 $LINUX_OBJ/Module*.symvers 2>/dev/null
15755 if test $rc -ne 0; then
15757 for file in fs/dcache.c; do
15758 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15759 "$LINUX_OBJ/$file" 2>/dev/null
15761 if test $rc -eq 0; then
15766 if test $export -eq 0; then
15767 { $as_echo "$as_me:$LINENO: result: no" >&5
15768 $as_echo "no" >&6; }
15771 { $as_echo "$as_me:$LINENO: result: yes" >&5
15772 $as_echo "yes" >&6; }
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_SHRINK_DCACHE_MEMORY 1
15780 { $as_echo "$as_me:$LINENO: result: yes" >&5
15781 $as_echo "yes" >&6; }
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_SHRINK_DCACHE_MEMORY 1
15791 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15792 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15793 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15794 $LINUX_OBJ/Module*.symvers 2>/dev/null
15796 if test $rc -ne 0; then
15798 for file in fs/inode.c; do
15799 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15800 "$LINUX_OBJ/$file" 2>/dev/null
15802 if test $rc -eq 0; then
15807 if test $export -eq 0; then
15808 { $as_echo "$as_me:$LINENO: result: no" >&5
15809 $as_echo "no" >&6; }
15812 { $as_echo "$as_me:$LINENO: result: yes" >&5
15813 $as_echo "yes" >&6; }
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_SHRINK_ICACHE_MEMORY 1
15821 { $as_echo "$as_me:$LINENO: result: yes" >&5
15822 $as_echo "yes" >&6; }
15824 cat >>confdefs.h <<\_ACEOF
15825 #define HAVE_SHRINK_ICACHE_MEMORY 1
15833 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15834 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15836 for file in include/linux/namei.h; do
15837 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15839 if test $rc -eq 0; then
15844 if test $header -eq 0; then
15845 { $as_echo "$as_me:$LINENO: result: no" >&5
15846 $as_echo "no" >&6; }
15849 { $as_echo "$as_me:$LINENO: result: yes" >&5
15850 $as_echo "yes" >&6; }
15852 cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_KERN_PATH_PARENT_HEADER 1
15860 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15861 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15862 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15863 $LINUX_OBJ/Module*.symvers 2>/dev/null
15865 if test $rc -ne 0; then
15867 for file in fs/namei.c; do
15868 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15869 "$LINUX_OBJ/$file" 2>/dev/null
15871 if test $rc -eq 0; then
15876 if test $export -eq 0; then
15877 { $as_echo "$as_me:$LINENO: result: no" >&5
15878 $as_echo "no" >&6; }
15881 { $as_echo "$as_me:$LINENO: result: yes" >&5
15882 $as_echo "yes" >&6; }
15884 cat >>confdefs.h <<\_ACEOF
15885 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15890 { $as_echo "$as_me:$LINENO: result: yes" >&5
15891 $as_echo "yes" >&6; }
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15900 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15901 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15904 cat confdefs.h - <<_ACEOF >conftest.c
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15912 #include <linux/zlib.h>
15918 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15927 rm -Rf build && mkdir -p build
15928 echo "obj-m := conftest.o" >build/Makefile
15929 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'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15941 { $as_echo "$as_me:$LINENO: result: yes" >&5
15942 $as_echo "yes" >&6; }
15944 cat >>confdefs.h <<\_ACEOF
15945 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15950 $as_echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 { $as_echo "$as_me:$LINENO: result: no" >&5
15954 $as_echo "no" >&6; }
15965 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15966 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
15969 cat confdefs.h - <<_ACEOF >conftest.c
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15977 #include <linux/mm.h>
15983 struct shrink_control sc __attribute__ ((unused));
15986 sc.gfp_mask = GFP_KERNEL;
15995 rm -Rf build && mkdir -p build
15996 echo "obj-m := conftest.o" >build/Makefile
15997 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'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16009 { $as_echo "$as_me:$LINENO: result: yes" >&5
16010 $as_echo "yes" >&6; }
16012 cat >>confdefs.h <<\_ACEOF
16013 #define HAVE_SHRINK_CONTROL_STRUCT 1
16018 $as_echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 { $as_echo "$as_me:$LINENO: result: no" >&5
16022 $as_echo "no" >&6; }
16033 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
16034 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16035 tmp_flags="$EXTRA_KCFLAGS"
16036 EXTRA_KCFLAGS="-Werror"
16039 cat confdefs.h - <<_ACEOF >conftest.c
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16047 #include <linux/rwsem.h>
16053 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16054 raw_spinlock_t dummy_lock __attribute__ ((unused));
16055 dummy_semaphore.wait_lock = dummy_lock;
16064 rm -Rf build && mkdir -p build
16065 echo "obj-m := conftest.o" >build/Makefile
16066 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'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16078 { $as_echo "$as_me:$LINENO: result: yes" >&5
16079 $as_echo "yes" >&6; }
16081 cat >>confdefs.h <<\_ACEOF
16082 #define RWSEM_SPINLOCK_IS_RAW 1
16087 $as_echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 { $as_echo "$as_me:$LINENO: result: no" >&5
16091 $as_echo "no" >&6; }
16100 EXTRA_KCFLAGS="$tmp_flags"
16107 # Check whether --with-linux was given.
16108 if test "${with_linux+set}" = set; then
16109 withval=$with_linux; kernelsrc="$withval"
16114 # Check whether --with-linux-obj was given.
16115 if test "${with_linux_obj+set}" = set; then
16116 withval=$with_linux_obj; kernelbuild="$withval"
16120 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16121 $as_echo_n "checking kernel source directory... " >&6; }
16122 if test -z "$kernelsrc"; then
16123 if test -e "/lib/modules/$(uname -r)/source"; then
16124 headersdir="/lib/modules/$(uname -r)/source"
16125 sourcelink=$(readlink -f "$headersdir")
16126 elif test -e "/lib/modules/$(uname -r)/build"; then
16127 headersdir="/lib/modules/$(uname -r)/build"
16128 sourcelink=$(readlink -f "$headersdir")
16130 sourcelink=$(ls -1d /usr/src/kernels/* \
16132 2>/dev/null | grep -v obj | tail -1)
16135 if test -n "$sourcelink" && test -e ${sourcelink}; then
16136 kernelsrc=`readlink -f ${sourcelink}`
16138 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16139 $as_echo "Not found" >&6; }
16140 { { $as_echo "$as_me:$LINENO: error:
16141 *** Please make sure the kernel devel package for your distribution
16142 *** is installed then try again. If that fails you can specify the
16143 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16144 $as_echo "$as_me: error:
16145 *** Please make sure the kernel devel package for your distribution
16146 *** is installed then try again. If that fails you can specify the
16147 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16148 { (exit 1); exit 1; }; }
16151 if test "$kernelsrc" = "NONE"; then
16156 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16157 $as_echo "$kernelsrc" >&6; }
16158 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16159 $as_echo_n "checking kernel build directory... " >&6; }
16160 if test -z "$kernelbuild"; then
16161 if test -e "/lib/modules/$(uname -r)/build"; then
16162 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16163 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16164 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16165 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16166 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16167 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16168 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16170 kernelbuild=${kernelsrc}
16173 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16174 $as_echo "$kernelbuild" >&6; }
16176 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16177 $as_echo_n "checking kernel source version... " >&6; }
16178 utsrelease1=$kernelbuild/include/linux/version.h
16179 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16180 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16181 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16182 utsrelease=linux/version.h
16183 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16184 utsrelease=linux/utsrelease.h
16185 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16186 utsrelease=generated/utsrelease.h
16189 if test "$utsrelease"; then
16190 kernsrcver=`(echo "#include <$utsrelease>";
16191 echo "kernsrcver=UTS_RELEASE") |
16192 cpp -I $kernelbuild/include |
16193 grep "^kernsrcver=" | cut -d \" -f 2`
16195 if test -z "$kernsrcver"; then
16196 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16197 $as_echo "Not found" >&6; }
16198 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16199 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16200 { (exit 1); exit 1; }; }
16203 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16204 $as_echo "Not found" >&6; }
16205 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16206 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16207 { (exit 1); exit 1; }; }
16210 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16211 $as_echo "$kernsrcver" >&6; }
16214 LINUX_OBJ=${kernelbuild}
16215 LINUX_VERSION=${kernsrcver}
16222 modpost=$LINUX/scripts/Makefile.modpost
16223 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16224 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16225 if test -f "$modpost"; then
16226 if grep -q Modules.symvers $modpost; then
16227 LINUX_SYMBOLS=Modules.symvers
16229 LINUX_SYMBOLS=Module.symvers
16232 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16233 { { $as_echo "$as_me:$LINENO: error:
16234 *** Please make sure the kernel devel package for your distribution
16235 *** is installed. If your building with a custom kernel make sure the
16236 *** kernel is configured, built, and the '--with-linux=PATH' configure
16237 *** option refers to the location of the kernel source." >&5
16238 $as_echo "$as_me: error:
16239 *** Please make sure the kernel devel package for your distribution
16240 *** is installed. If your building with a custom kernel make sure the
16241 *** kernel is configured, built, and the '--with-linux=PATH' configure
16242 *** option refers to the location of the kernel source." >&2;}
16243 { (exit 1); exit 1; }; }
16248 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16249 $as_echo "$LINUX_SYMBOLS" >&6; }
16254 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16255 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16258 cat confdefs.h - <<_ACEOF >conftest.c
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16266 #include <linux/module.h>
16272 #ifndef CONFIG_PREEMPT
16273 #error CONFIG_PREEMPT not #defined
16283 rm -Rf build && mkdir -p build
16284 echo "obj-m := conftest.o" >build/Makefile
16285 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'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16297 { $as_echo "$as_me:$LINENO: result: yes" >&5
16298 $as_echo "yes" >&6; }
16299 { { $as_echo "$as_me:$LINENO: error:
16300 *** Kernel built with CONFIG_PREEMPT which is not supported.
16301 ** You must rebuild your kernel without this option." >&5
16302 $as_echo "$as_me: error:
16303 *** Kernel built with CONFIG_PREEMPT which is not supported.
16304 ** You must rebuild your kernel without this option." >&2;}
16305 { (exit 1); exit 1; }; }
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 { $as_echo "$as_me:$LINENO: result: no" >&5
16312 $as_echo "no" >&6; }
16325 if test "${LINUX_OBJ}" != "${LINUX}"; then
16326 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16330 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16334 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16335 $as_echo_n "checking whether debugging is enabled... " >&6; }
16336 # Check whether --enable-debug was given.
16337 if test "${enable_debug+set}" = set; then
16338 enableval=$enable_debug;
16344 if test "x$enable_debug" = xyes; then
16346 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16347 DEBUG_CFLAGS="-DDEBUG -Werror"
16351 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16352 DEBUG_CFLAGS="-DNDEBUG"
16358 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16359 $as_echo "$enable_debug" >&6; }
16362 # Check whether --enable-debug-kmem was given.
16363 if test "${enable_debug_kmem+set}" = set; then
16364 enableval=$enable_debug_kmem;
16366 enable_debug_kmem=yes
16370 if test "x$enable_debug_kmem" = xyes; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define DEBUG_KMEM 1
16376 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16380 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16381 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16382 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16383 $as_echo "$enable_debug_kmem" >&6; }
16386 # Check whether --enable-debug-kmem-tracking was given.
16387 if test "${enable_debug_kmem_tracking+set}" = set; then
16388 enableval=$enable_debug_kmem_tracking;
16390 enable_debug_kmem_tracking=no
16394 if test "x$enable_debug_kmem_tracking" = xyes; then
16396 cat >>confdefs.h <<\_ACEOF
16397 #define DEBUG_KMEM_TRACKING 1
16400 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16404 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16405 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16406 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16407 $as_echo "$enable_debug_kmem_tracking" >&6; }
16410 # Check whether --enable-atomic-spinlocks was given.
16411 if test "${enable_atomic_spinlocks+set}" = set; then
16412 enableval=$enable_atomic_spinlocks;
16414 enable_atomic_spinlocks=check
16420 cat confdefs.h - <<_ACEOF >conftest.c
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16428 #include <asm/atomic.h>
16434 atomic64_t *ptr __attribute__ ((unused));
16443 rm -Rf build && mkdir -p build
16444 echo "obj-m := conftest.o" >build/Makefile
16445 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'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16457 have_atomic64_t=yes
16459 cat >>confdefs.h <<\_ACEOF
16460 #define HAVE_ATOMIC64_T 1
16465 $as_echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16478 if test "x$enable_atomic_spinlocks" = xcheck; then
16480 if test "x$have_atomic64_t" = xyes; then
16482 enable_atomic_spinlocks=no
16486 enable_atomic_spinlocks=yes
16494 if test "x$enable_atomic_spinlocks" = xyes; then
16497 cat >>confdefs.h <<\_ACEOF
16498 #define ATOMIC_SPINLOCK 1
16504 if test "x$have_atomic64_t" = xno; then
16506 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16508 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16509 See \`config.log' for more details." >&5
16510 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16511 See \`config.log' for more details." >&2;}
16512 { (exit 1); exit 1; }; }; }
16520 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16521 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16522 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16523 $as_echo "$enable_atomic_spinlocks" >&6; }
16525 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16526 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16527 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16528 $as_echo "$have_atomic64_t" >&6; }
16530 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16531 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16534 cat confdefs.h - <<_ACEOF >conftest.c
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16542 #include <asm/atomic.h>
16543 #include <asm/system.h>
16549 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16558 rm -Rf build && mkdir -p build
16559 echo "obj-m := conftest.o" >build/Makefile
16560 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'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16572 { $as_echo "$as_me:$LINENO: result: yes" >&5
16573 $as_echo "yes" >&6; }
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_ATOMIC64_CMPXCHG 1
16581 $as_echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 { $as_echo "$as_me:$LINENO: result: no" >&5
16585 $as_echo "no" >&6; }
16595 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16596 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
16599 cat confdefs.h - <<_ACEOF >conftest.c
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16607 #include <asm/atomic.h>
16613 atomic64_xchg((atomic64_t *)NULL, 0);
16622 rm -Rf build && mkdir -p build
16623 echo "obj-m := conftest.o" >build/Makefile
16624 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'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16636 { $as_echo "$as_me:$LINENO: result: yes" >&5
16637 $as_echo "yes" >&6; }
16639 cat >>confdefs.h <<\_ACEOF
16640 #define HAVE_ATOMIC64_XCHG 1
16645 $as_echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 { $as_echo "$as_me:$LINENO: result: no" >&5
16649 $as_echo "no" >&6; }
16659 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16660 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
16663 cat confdefs.h - <<_ACEOF >conftest.c
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16671 #include <linux/types.h>
16677 uintptr_t *ptr __attribute__ ((unused));
16686 rm -Rf build && mkdir -p build
16687 echo "obj-m := conftest.o" >build/Makefile
16688 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'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16700 { $as_echo "$as_me:$LINENO: result: yes" >&5
16701 $as_echo "yes" >&6; }
16703 cat >>confdefs.h <<\_ACEOF
16704 #define HAVE_UINTPTR_T 1
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 { $as_echo "$as_me:$LINENO: result: no" >&5
16713 $as_echo "no" >&6; }
16723 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16724 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
16727 cat confdefs.h - <<_ACEOF >conftest.c
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16735 #include <linux/workqueue.h>
16741 struct work_struct work __attribute__ ((unused));
16742 INIT_WORK(&work, NULL, NULL);
16751 rm -Rf build && mkdir -p build
16752 echo "obj-m := conftest.o" >build/Makefile
16753 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'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16765 { $as_echo "$as_me:$LINENO: result: yes" >&5
16766 $as_echo "yes" >&6; }
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_3ARGS_INIT_WORK 1
16774 $as_echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 { $as_echo "$as_me:$LINENO: result: no" >&5
16778 $as_echo "no" >&6; }
16788 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16789 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
16792 cat confdefs.h - <<_ACEOF >conftest.c
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16800 #include <linux/sysctl.h>
16806 (void) register_sysctl_table(NULL, 0);
16815 rm -Rf build && mkdir -p build
16816 echo "obj-m := conftest.o" >build/Makefile
16817 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'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16829 { $as_echo "$as_me:$LINENO: result: yes" >&5
16830 $as_echo "yes" >&6; }
16832 cat >>confdefs.h <<\_ACEOF
16833 #define HAVE_2ARGS_REGISTER_SYSCTL 1
16838 $as_echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 { $as_echo "$as_me:$LINENO: result: no" >&5
16842 $as_echo "no" >&6; }
16853 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16854 $as_echo_n "checking whether set_shrinker() available... " >&6; }
16857 cat confdefs.h - <<_ACEOF >conftest.c
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16865 #include <linux/mm.h>
16871 return set_shrinker(DEFAULT_SEEKS, NULL);
16880 rm -Rf build && mkdir -p build
16881 echo "obj-m := conftest.o" >build/Makefile
16882 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'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16894 { $as_echo "$as_me:$LINENO: result: yes" >&5
16895 $as_echo "yes" >&6; }
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_SET_SHRINKER 1
16903 $as_echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 { $as_echo "$as_me:$LINENO: result: no" >&5
16907 $as_echo "no" >&6; }
16917 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16918 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16919 tmp_flags="$EXTRA_KCFLAGS"
16920 EXTRA_KCFLAGS="-Werror"
16923 cat confdefs.h - <<_ACEOF >conftest.c
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16931 #include <linux/mm.h>
16933 int shrinker_cb(struct shrinker *, int, unsigned int);
16939 struct shrinker cache_shrinker = {
16940 .shrink = shrinker_cb,
16941 .seeks = DEFAULT_SEEKS,
16943 register_shrinker(&cache_shrinker);
16952 rm -Rf build && mkdir -p build
16953 echo "obj-m := conftest.o" >build/Makefile
16954 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'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16966 { $as_echo "$as_me:$LINENO: result: yes" >&5
16967 $as_echo "yes" >&6; }
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
16975 $as_echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 { $as_echo "$as_me:$LINENO: result: no" >&5
16979 $as_echo "no" >&6; }
16988 EXTRA_KCFLAGS="$tmp_flags"
16990 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
16991 $as_echo_n "checking whether struct path used in struct nameidata... " >&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/namei.h>
17008 struct nameidata nd __attribute__ ((unused));
17010 nd.path.mnt = NULL;
17011 nd.path.dentry = NULL;
17020 rm -Rf build && mkdir -p build
17021 echo "obj-m := conftest.o" >build/Makefile
17022 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'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17034 { $as_echo "$as_me:$LINENO: result: yes" >&5
17035 $as_echo "yes" >&6; }
17037 cat >>confdefs.h <<\_ACEOF
17038 #define HAVE_PATH_IN_NAMEIDATA 1
17043 $as_echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 { $as_echo "$as_me:$LINENO: result: no" >&5
17047 $as_echo "no" >&6; }
17058 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
17059 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
17060 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17061 $LINUX_OBJ/Module*.symvers 2>/dev/null
17063 if test $rc -ne 0; then
17065 for file in kernel/sched.c; do
17066 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17067 "$LINUX_OBJ/$file" 2>/dev/null
17069 if test $rc -eq 0; then
17074 if test $export -eq 0; then
17075 { $as_echo "$as_me:$LINENO: result: no" >&5
17076 $as_echo "no" >&6; }
17079 { $as_echo "$as_me:$LINENO: result: yes" >&5
17080 $as_echo "yes" >&6; }
17082 cat >>confdefs.h <<\_ACEOF
17083 #define HAVE_TASK_CURR 1
17088 { $as_echo "$as_me:$LINENO: result: yes" >&5
17089 $as_echo "yes" >&6; }
17091 cat >>confdefs.h <<\_ACEOF
17092 #define HAVE_TASK_CURR 1
17098 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17099 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17102 cat confdefs.h - <<_ACEOF >conftest.c
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17110 #include <linux/sysctl.h>
17116 #ifndef CTL_UNNUMBERED
17117 #error CTL_UNNUMBERED undefined
17127 rm -Rf build && mkdir -p build
17128 echo "obj-m := conftest.o" >build/Makefile
17129 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'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17141 { $as_echo "$as_me:$LINENO: result: yes" >&5
17142 $as_echo "yes" >&6; }
17144 cat >>confdefs.h <<\_ACEOF
17145 #define HAVE_CTL_UNNUMBERED 1
17150 $as_echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 { $as_echo "$as_me:$LINENO: result: no" >&5
17154 $as_echo "no" >&6; }
17165 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17166 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17169 cat confdefs.h - <<_ACEOF >conftest.c
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17177 #include <linux/sysctl.h>
17183 struct ctl_table ctl __attribute__ ((unused));
17193 rm -Rf build && mkdir -p build
17194 echo "obj-m := conftest.o" >build/Makefile
17195 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'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17207 { $as_echo "$as_me:$LINENO: result: yes" >&5
17208 $as_echo "yes" >&6; }
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_CTL_NAME 1
17216 $as_echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 { $as_echo "$as_me:$LINENO: result: no" >&5
17220 $as_echo "no" >&6; }
17230 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17231 $as_echo_n "checking whether fls64() is available... " >&6; }
17234 cat confdefs.h - <<_ACEOF >conftest.c
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17242 #include <linux/bitops.h>
17257 rm -Rf build && mkdir -p build
17258 echo "obj-m := conftest.o" >build/Makefile
17259 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'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17271 { $as_echo "$as_me:$LINENO: result: yes" >&5
17272 $as_echo "yes" >&6; }
17274 cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_FLS64 1
17280 $as_echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 { $as_echo "$as_me:$LINENO: result: no" >&5
17284 $as_echo "no" >&6; }
17295 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17296 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
17297 grep -q -E '[[:space:]]device_create[[:space:]]' \
17298 $LINUX_OBJ/Module*.symvers 2>/dev/null
17300 if test $rc -ne 0; then
17302 for file in drivers/base/core.c; do
17303 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17304 "$LINUX_OBJ/$file" 2>/dev/null
17306 if test $rc -eq 0; then
17311 if test $export -eq 0; then
17312 { $as_echo "$as_me:$LINENO: result: no" >&5
17313 $as_echo "no" >&6; }
17316 { $as_echo "$as_me:$LINENO: result: yes" >&5
17317 $as_echo "yes" >&6; }
17319 cat >>confdefs.h <<\_ACEOF
17320 #define HAVE_DEVICE_CREATE 1
17325 { $as_echo "$as_me:$LINENO: result: yes" >&5
17326 $as_echo "yes" >&6; }
17328 cat >>confdefs.h <<\_ACEOF
17329 #define HAVE_DEVICE_CREATE 1
17336 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17337 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17338 tmp_flags="$EXTRA_KCFLAGS"
17339 EXTRA_KCFLAGS="-Werror"
17342 cat confdefs.h - <<_ACEOF >conftest.c
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17350 #include <linux/device.h>
17356 device_create(NULL, NULL, 0, NULL, "%d", 1);
17365 rm -Rf build && mkdir -p build
17366 echo "obj-m := conftest.o" >build/Makefile
17367 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'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17379 { $as_echo "$as_me:$LINENO: result: yes" >&5
17380 $as_echo "yes" >&6; }
17382 cat >>confdefs.h <<\_ACEOF
17383 #define HAVE_5ARGS_DEVICE_CREATE 1
17388 $as_echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 { $as_echo "$as_me:$LINENO: result: no" >&5
17392 $as_echo "no" >&6; }
17401 EXTRA_KCFLAGS="$tmp_flags"
17404 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17405 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
17406 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17407 $LINUX_OBJ/Module*.symvers 2>/dev/null
17409 if test $rc -ne 0; then
17411 for file in drivers/base/class.c; do
17412 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17413 "$LINUX_OBJ/$file" 2>/dev/null
17415 if test $rc -eq 0; then
17420 if test $export -eq 0; then
17421 { $as_echo "$as_me:$LINENO: result: no" >&5
17422 $as_echo "no" >&6; }
17425 { $as_echo "$as_me:$LINENO: result: yes" >&5
17426 $as_echo "yes" >&6; }
17428 cat >>confdefs.h <<\_ACEOF
17429 #define HAVE_CLASS_DEVICE_CREATE 1
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435 $as_echo "yes" >&6; }
17437 cat >>confdefs.h <<\_ACEOF
17438 #define HAVE_CLASS_DEVICE_CREATE 1
17445 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17446 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
17447 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17448 $LINUX_OBJ/Module*.symvers 2>/dev/null
17450 if test $rc -ne 0; then
17452 for file in kernel/time.c; do
17453 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17454 "$LINUX_OBJ/$file" 2>/dev/null
17456 if test $rc -eq 0; then
17461 if test $export -eq 0; then
17462 { $as_echo "$as_me:$LINENO: result: no" >&5
17463 $as_echo "no" >&6; }
17466 { $as_echo "$as_me:$LINENO: result: yes" >&5
17467 $as_echo "yes" >&6; }
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17486 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17487 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17490 cat confdefs.h - <<_ACEOF >conftest.c
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17498 #include <linux/time.h>
17499 void set_normalized_timespec(struct timespec *ts,
17500 time_t sec, long nsec) { }
17513 rm -Rf build && mkdir -p build
17514 echo "obj-m := conftest.o" >build/Makefile
17515 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'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17527 { $as_echo "$as_me:$LINENO: result: no" >&5
17528 $as_echo "no" >&6; }
17531 $as_echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 { $as_echo "$as_me:$LINENO: result: yes" >&5
17535 $as_echo "yes" >&6; }
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17551 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17552 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
17555 cat confdefs.h - <<_ACEOF >conftest.c
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17563 #include <linux/time.h>
17569 struct timespec a = { 0 };
17570 struct timespec b = { 0 };
17571 struct timespec c __attribute__ ((unused));
17572 c = timespec_sub(a, b);
17581 rm -Rf build && mkdir -p build
17582 echo "obj-m := conftest.o" >build/Makefile
17583 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'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17595 { $as_echo "$as_me:$LINENO: result: yes" >&5
17596 $as_echo "yes" >&6; }
17598 cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_TIMESPEC_SUB 1
17604 $as_echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 { $as_echo "$as_me:$LINENO: result: no" >&5
17608 $as_echo "no" >&6; }
17619 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17620 $as_echo_n "checking whether init_utsname() is available... " >&6; }
17623 cat confdefs.h - <<_ACEOF >conftest.c
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17631 #include <linux/utsname.h>
17637 struct new_utsname *a __attribute__ ((unused));
17638 a = init_utsname();
17647 rm -Rf build && mkdir -p build
17648 echo "obj-m := conftest.o" >build/Makefile
17649 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'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17661 { $as_echo "$as_me:$LINENO: result: yes" >&5
17662 $as_echo "yes" >&6; }
17664 cat >>confdefs.h <<\_ACEOF
17665 #define HAVE_INIT_UTSNAME 1
17670 $as_echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 { $as_echo "$as_me:$LINENO: result: no" >&5
17674 $as_echo "no" >&6; }
17685 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17686 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
17689 cat confdefs.h - <<_ACEOF >conftest.c
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17697 #include <linux/fdtable.h>
17712 rm -Rf build && mkdir -p build
17713 echo "obj-m := conftest.o" >build/Makefile
17714 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'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17727 cat >>confdefs.h <<\_ACEOF
17728 #define HAVE_FDTABLE_HEADER 1
17731 { $as_echo "$as_me:$LINENO: result: yes" >&5
17732 $as_echo "yes" >&6; }
17736 $as_echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 { $as_echo "$as_me:$LINENO: result: no" >&5
17740 $as_echo "no" >&6; }
17753 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17754 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
17757 cat confdefs.h - <<_ACEOF >conftest.c
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17765 #include <linux/sched.h>
17766 #include <linux/file.h>
17767 #ifdef HAVE_FDTABLE_HEADER
17768 #include <linux/fdtable.h>
17775 struct files_struct *files = current->files;
17776 struct fdtable *fdt __attribute__ ((unused));
17777 fdt = files_fdtable(files);
17786 rm -Rf build && mkdir -p build
17787 echo "obj-m := conftest.o" >build/Makefile
17788 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'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17800 { $as_echo "$as_me:$LINENO: result: yes" >&5
17801 $as_echo "yes" >&6; }
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_FILES_FDTABLE 1
17809 $as_echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 { $as_echo "$as_me:$LINENO: result: no" >&5
17813 $as_echo "no" >&6; }
17824 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17825 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
17828 cat confdefs.h - <<_ACEOF >conftest.c
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17836 #include <linux/uaccess.h>
17851 rm -Rf build && mkdir -p build
17852 echo "obj-m := conftest.o" >build/Makefile
17853 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'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17866 cat >>confdefs.h <<\_ACEOF
17867 #define HAVE_UACCESS_HEADER 1
17870 { $as_echo "$as_me:$LINENO: result: yes" >&5
17871 $as_echo "yes" >&6; }
17875 $as_echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 { $as_echo "$as_me:$LINENO: result: no" >&5
17879 $as_echo "no" >&6; }
17892 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17893 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
17896 cat confdefs.h - <<_ACEOF >conftest.c
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17904 #include <linux/slab.h>
17910 void *a __attribute__ ((unused));
17911 a = kmalloc_node(1, GFP_KERNEL, 0);
17920 rm -Rf build && mkdir -p build
17921 echo "obj-m := conftest.o" >build/Makefile
17922 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17934 { $as_echo "$as_me:$LINENO: result: yes" >&5
17935 $as_echo "yes" >&6; }
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_KMALLOC_NODE 1
17943 $as_echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 { $as_echo "$as_me:$LINENO: result: no" >&5
17947 $as_echo "no" >&6; }
17958 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
17959 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
17960 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
17961 $LINUX_OBJ/Module*.symvers 2>/dev/null
17963 if test $rc -ne 0; then
17966 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
17967 "$LINUX_OBJ/$file" 2>/dev/null
17969 if test $rc -eq 0; then
17974 if test $export -eq 0; then
17975 { $as_echo "$as_me:$LINENO: result: no" >&5
17976 $as_echo "no" >&6; }
17979 { $as_echo "$as_me:$LINENO: result: yes" >&5
17980 $as_echo "yes" >&6; }
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_MONOTONIC_CLOCK 1
17988 { $as_echo "$as_me:$LINENO: result: yes" >&5
17989 $as_echo "yes" >&6; }
17991 cat >>confdefs.h <<\_ACEOF
17992 #define HAVE_MONOTONIC_CLOCK 1
17999 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
18000 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18003 cat confdefs.h - <<_ACEOF >conftest.c
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18011 #include <linux/fs.h>
18012 #include <linux/mutex.h>
18019 mutex_init(&i.i_mutex);
18028 rm -Rf build && mkdir -p build
18029 echo "obj-m := conftest.o" >build/Makefile
18030 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'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18042 { $as_echo "$as_me:$LINENO: result: yes" >&5
18043 $as_echo "yes" >&6; }
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_INODE_I_MUTEX 1
18051 $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 { $as_echo "$as_me:$LINENO: result: no" >&5
18055 $as_echo "no" >&6; }
18066 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
18067 $as_echo_n "checking whether struct mutex has owner... " >&6; }
18070 cat confdefs.h - <<_ACEOF >conftest.c
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18078 #include <linux/mutex.h>
18084 struct mutex mtx __attribute__ ((unused));
18094 rm -Rf build && mkdir -p build
18095 echo "obj-m := conftest.o" >build/Makefile
18096 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'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18108 { $as_echo "$as_me:$LINENO: result: yes" >&5
18109 $as_echo "yes" >&6; }
18111 cat >>confdefs.h <<\_ACEOF
18112 #define HAVE_MUTEX_OWNER 1
18117 $as_echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 { $as_echo "$as_me:$LINENO: result: no" >&5
18121 $as_echo "no" >&6; }
18132 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18133 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18134 tmp_flags="$EXTRA_KCFLAGS"
18135 EXTRA_KCFLAGS="-Werror"
18138 cat confdefs.h - <<_ACEOF >conftest.c
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18146 #include <linux/mutex.h>
18152 struct mutex mtx __attribute__ ((unused));
18153 mtx.owner = current;
18162 rm -Rf build && mkdir -p build
18163 echo "obj-m := conftest.o" >build/Makefile
18164 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'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18176 { $as_echo "$as_me:$LINENO: result: yes" >&5
18177 $as_echo "yes" >&6; }
18179 cat >>confdefs.h <<\_ACEOF
18180 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18185 $as_echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 { $as_echo "$as_me:$LINENO: result: no" >&5
18189 $as_echo "no" >&6; }
18198 EXTRA_KCFLAGS="$tmp_flags"
18201 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18202 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18205 cat confdefs.h - <<_ACEOF >conftest.c
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18213 #include <linux/mutex.h>
18219 struct mutex mutex;
18220 mutex_init(&mutex);
18221 mutex_lock_nested(&mutex, 0);
18230 rm -Rf build && mkdir -p build
18231 echo "obj-m := conftest.o" >build/Makefile
18232 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'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18244 { $as_echo "$as_me:$LINENO: result: yes" >&5
18245 $as_echo "yes" >&6; }
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_MUTEX_LOCK_NESTED 1
18253 $as_echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 { $as_echo "$as_me:$LINENO: result: no" >&5
18257 $as_echo "no" >&6; }
18268 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18269 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18272 cat confdefs.h - <<_ACEOF >conftest.c
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18280 #include <linux/smp.h>
18286 on_each_cpu(NULL, NULL, 0);
18295 rm -Rf build && mkdir -p build
18296 echo "obj-m := conftest.o" >build/Makefile
18297 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'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18309 { $as_echo "$as_me:$LINENO: result: yes" >&5
18310 $as_echo "yes" >&6; }
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_3ARGS_ON_EACH_CPU 1
18318 $as_echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 { $as_echo "$as_me:$LINENO: result: no" >&5
18322 $as_echo "no" >&6; }
18333 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18334 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18335 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18336 $LINUX_OBJ/Module*.symvers 2>/dev/null
18338 if test $rc -ne 0; then
18341 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18342 "$LINUX_OBJ/$file" 2>/dev/null
18344 if test $rc -eq 0; then
18349 if test $export -eq 0; then
18350 { $as_echo "$as_me:$LINENO: result: no" >&5
18351 $as_echo "no" >&6; }
18354 { $as_echo "$as_me:$LINENO: result: yes" >&5
18355 $as_echo "yes" >&6; }
18357 cat >>confdefs.h <<\_ACEOF
18358 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18363 { $as_echo "$as_me:$LINENO: result: yes" >&5
18364 $as_echo "yes" >&6; }
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18374 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18375 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18376 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18377 $LINUX_OBJ/Module*.symvers 2>/dev/null
18379 if test $rc -ne 0; then
18382 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18383 "$LINUX_OBJ/$file" 2>/dev/null
18385 if test $rc -eq 0; then
18390 if test $export -eq 0; then
18391 { $as_echo "$as_me:$LINENO: result: no" >&5
18392 $as_echo "no" >&6; }
18395 { $as_echo "$as_me:$LINENO: result: yes" >&5
18396 $as_echo "yes" >&6; }
18398 cat >>confdefs.h <<\_ACEOF
18399 #define HAVE_GET_VMALLOC_INFO 1
18404 { $as_echo "$as_me:$LINENO: result: yes" >&5
18405 $as_echo "yes" >&6; }
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_GET_VMALLOC_INFO 1
18415 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18416 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18417 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18419 if test $rc -eq 0; then
18420 { $as_echo "$as_me:$LINENO: result: yes" >&5
18421 $as_echo "yes" >&6; }
18423 cat >>confdefs.h <<\_ACEOF
18424 #define HAVE_PGDAT_HELPERS 1
18428 { $as_echo "$as_me:$LINENO: result: no" >&5
18429 $as_echo "no" >&6; }
18433 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18434 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18435 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18436 $LINUX_OBJ/Module*.symvers 2>/dev/null
18438 if test $rc -ne 0; then
18441 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18442 "$LINUX_OBJ/$file" 2>/dev/null
18444 if test $rc -eq 0; then
18449 if test $export -eq 0; then
18450 { $as_echo "$as_me:$LINENO: result: no" >&5
18451 $as_echo "no" >&6; }
18454 { $as_echo "$as_me:$LINENO: result: yes" >&5
18455 $as_echo "yes" >&6; }
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_FIRST_ONLINE_PGDAT 1
18463 { $as_echo "$as_me:$LINENO: result: yes" >&5
18464 $as_echo "yes" >&6; }
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_FIRST_ONLINE_PGDAT 1
18474 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18475 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18476 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18477 $LINUX_OBJ/Module*.symvers 2>/dev/null
18479 if test $rc -ne 0; then
18482 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18483 "$LINUX_OBJ/$file" 2>/dev/null
18485 if test $rc -eq 0; then
18490 if test $export -eq 0; then
18491 { $as_echo "$as_me:$LINENO: result: no" >&5
18492 $as_echo "no" >&6; }
18495 { $as_echo "$as_me:$LINENO: result: yes" >&5
18496 $as_echo "yes" >&6; }
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_NEXT_ONLINE_PGDAT 1
18504 { $as_echo "$as_me:$LINENO: result: yes" >&5
18505 $as_echo "yes" >&6; }
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_NEXT_ONLINE_PGDAT 1
18515 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18516 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18517 grep -q -E '[[:space:]]next_zone[[:space:]]' \
18518 $LINUX_OBJ/Module*.symvers 2>/dev/null
18520 if test $rc -ne 0; then
18523 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
18524 "$LINUX_OBJ/$file" 2>/dev/null
18526 if test $rc -eq 0; then
18531 if test $export -eq 0; then
18532 { $as_echo "$as_me:$LINENO: result: no" >&5
18533 $as_echo "no" >&6; }
18536 { $as_echo "$as_me:$LINENO: result: yes" >&5
18537 $as_echo "yes" >&6; }
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_NEXT_ZONE 1
18545 { $as_echo "$as_me:$LINENO: result: yes" >&5
18546 $as_echo "yes" >&6; }
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_NEXT_ZONE 1
18556 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18557 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18558 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
18559 $LINUX_OBJ/Module*.symvers 2>/dev/null
18561 if test $rc -ne 0; then
18564 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
18565 "$LINUX_OBJ/$file" 2>/dev/null
18567 if test $rc -eq 0; then
18572 if test $export -eq 0; then
18573 { $as_echo "$as_me:$LINENO: result: no" >&5
18574 $as_echo "no" >&6; }
18577 { $as_echo "$as_me:$LINENO: result: yes" >&5
18578 $as_echo "yes" >&6; }
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_PGDAT_LIST 1
18586 { $as_echo "$as_me:$LINENO: result: yes" >&5
18587 $as_echo "yes" >&6; }
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_PGDAT_LIST 1
18597 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18598 $as_echo_n "checking whether global_page_state() is available... " >&6; }
18601 cat confdefs.h - <<_ACEOF >conftest.c
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18609 #include <linux/mm.h>
18615 unsigned long state __attribute__ ((unused));
18616 state = global_page_state(0);
18625 rm -Rf build && mkdir -p build
18626 echo "obj-m := conftest.o" >build/Makefile
18627 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'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18639 { $as_echo "$as_me:$LINENO: result: yes" >&5
18640 $as_echo "yes" >&6; }
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE_GLOBAL_PAGE_STATE 1
18648 $as_echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 { $as_echo "$as_me:$LINENO: result: no" >&5
18652 $as_echo "no" >&6; }
18663 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18664 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
18667 cat confdefs.h - <<_ACEOF >conftest.c
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18675 #include <linux/mm.h>
18681 enum zone_stat_item zsi __attribute__ ((unused));
18682 zsi = NR_FREE_PAGES;
18691 rm -Rf build && mkdir -p build
18692 echo "obj-m := conftest.o" >build/Makefile
18693 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'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18705 { $as_echo "$as_me:$LINENO: result: yes" >&5
18706 $as_echo "yes" >&6; }
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
18714 $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 { $as_echo "$as_me:$LINENO: result: no" >&5
18718 $as_echo "no" >&6; }
18729 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18730 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
18733 cat confdefs.h - <<_ACEOF >conftest.c
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18741 #include <linux/mm.h>
18747 enum zone_stat_item zsi __attribute__ ((unused));
18757 rm -Rf build && mkdir -p build
18758 echo "obj-m := conftest.o" >build/Makefile
18759 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'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18771 { $as_echo "$as_me:$LINENO: result: yes" >&5
18772 $as_echo "yes" >&6; }
18774 cat >>confdefs.h <<\_ACEOF
18775 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 { $as_echo "$as_me:$LINENO: result: no" >&5
18784 $as_echo "no" >&6; }
18794 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18795 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18798 cat confdefs.h - <<_ACEOF >conftest.c
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18806 #include <linux/mm.h>
18812 enum zone_stat_item zsi __attribute__ ((unused));
18813 zsi = NR_INACTIVE_ANON;
18822 rm -Rf build && mkdir -p build
18823 echo "obj-m := conftest.o" >build/Makefile
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'
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_ZONE_STAT_ITEM_NR_INACTIVE_ANON 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; }
18859 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18860 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18863 cat confdefs.h - <<_ACEOF >conftest.c
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18871 #include <linux/mm.h>
18877 enum zone_stat_item zsi __attribute__ ((unused));
18878 zsi = NR_INACTIVE_FILE;
18887 rm -Rf build && mkdir -p build
18888 echo "obj-m := conftest.o" >build/Makefile
18889 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'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18901 { $as_echo "$as_me:$LINENO: result: yes" >&5
18902 $as_echo "yes" >&6; }
18904 cat >>confdefs.h <<\_ACEOF
18905 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
18910 $as_echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 { $as_echo "$as_me:$LINENO: result: no" >&5
18914 $as_echo "no" >&6; }
18925 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18926 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
18929 cat confdefs.h - <<_ACEOF >conftest.c
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18937 #include <linux/mm.h>
18943 enum zone_stat_item zsi __attribute__ ((unused));
18953 rm -Rf build && mkdir -p build
18954 echo "obj-m := conftest.o" >build/Makefile
18955 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'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18967 { $as_echo "$as_me:$LINENO: result: yes" >&5
18968 $as_echo "yes" >&6; }
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
18976 $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 { $as_echo "$as_me:$LINENO: result: no" >&5
18980 $as_echo "no" >&6; }
18990 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
18991 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
18994 cat confdefs.h - <<_ACEOF >conftest.c
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19002 #include <linux/mm.h>
19008 enum zone_stat_item zsi __attribute__ ((unused));
19009 zsi = NR_ACTIVE_ANON;
19018 rm -Rf build && mkdir -p build
19019 echo "obj-m := conftest.o" >build/Makefile
19020 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'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19032 { $as_echo "$as_me:$LINENO: result: yes" >&5
19033 $as_echo "yes" >&6; }
19035 cat >>confdefs.h <<\_ACEOF
19036 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
19041 $as_echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19044 { $as_echo "$as_me:$LINENO: result: no" >&5
19045 $as_echo "no" >&6; }
19055 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
19056 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
19059 cat confdefs.h - <<_ACEOF >conftest.c
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19067 #include <linux/mm.h>
19073 enum zone_stat_item zsi __attribute__ ((unused));
19074 zsi = NR_ACTIVE_FILE;
19083 rm -Rf build && mkdir -p build
19084 echo "obj-m := conftest.o" >build/Makefile
19085 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'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19097 { $as_echo "$as_me:$LINENO: result: yes" >&5
19098 $as_echo "yes" >&6; }
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
19106 $as_echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19109 { $as_echo "$as_me:$LINENO: result: no" >&5
19110 $as_echo "no" >&6; }
19121 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19122 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
19125 cat confdefs.h - <<_ACEOF >conftest.c
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19138 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19139 #error "global_page_state needs NR_FREE_PAGES"
19142 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19143 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19144 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19145 #error "global_page_state needs NR_ACTIVE*"
19148 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19149 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19150 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19151 #error "global_page_state needs NR_INACTIVE*"
19161 rm -Rf build && mkdir -p build
19162 echo "obj-m := conftest.o" >build/Makefile
19163 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'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19175 { $as_echo "$as_me:$LINENO: result: no" >&5
19176 $as_echo "no" >&6; }
19179 $as_echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 { $as_echo "$as_me:$LINENO: result: yes" >&5
19183 $as_echo "yes" >&6; }
19185 cat >>confdefs.h <<\_ACEOF
19186 #define NEED_GET_ZONE_COUNTS 1
19190 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19191 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19192 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19193 $LINUX_OBJ/Module*.symvers 2>/dev/null
19195 if test $rc -ne 0; then
19198 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19199 "$LINUX_OBJ/$file" 2>/dev/null
19201 if test $rc -eq 0; then
19206 if test $export -eq 0; then
19207 { $as_echo "$as_me:$LINENO: result: no" >&5
19208 $as_echo "no" >&6; }
19211 { $as_echo "$as_me:$LINENO: result: yes" >&5
19212 $as_echo "yes" >&6; }
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_GET_ZONE_COUNTS 1
19220 { $as_echo "$as_me:$LINENO: result: yes" >&5
19221 $as_echo "yes" >&6; }
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_GET_ZONE_COUNTS 1
19239 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19240 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19241 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19242 $LINUX_OBJ/Module*.symvers 2>/dev/null
19244 if test $rc -ne 0; then
19247 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19248 "$LINUX_OBJ/$file" 2>/dev/null
19250 if test $rc -eq 0; then
19255 if test $export -eq 0; then
19256 { $as_echo "$as_me:$LINENO: result: no" >&5
19257 $as_echo "no" >&6; }
19260 { $as_echo "$as_me:$LINENO: result: yes" >&5
19261 $as_echo "yes" >&6; }
19263 cat >>confdefs.h <<\_ACEOF
19264 #define HAVE_USER_PATH_DIR 1
19269 { $as_echo "$as_me:$LINENO: result: yes" >&5
19270 $as_echo "yes" >&6; }
19272 cat >>confdefs.h <<\_ACEOF
19273 #define HAVE_USER_PATH_DIR 1
19280 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19281 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19282 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19283 $LINUX_OBJ/Module*.symvers 2>/dev/null
19285 if test $rc -ne 0; then
19288 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19289 "$LINUX_OBJ/$file" 2>/dev/null
19291 if test $rc -eq 0; then
19296 if test $export -eq 0; then
19297 { $as_echo "$as_me:$LINENO: result: no" >&5
19298 $as_echo "no" >&6; }
19301 { $as_echo "$as_me:$LINENO: result: yes" >&5
19302 $as_echo "yes" >&6; }
19304 cat >>confdefs.h <<\_ACEOF
19305 #define HAVE_SET_FS_PWD 1
19310 { $as_echo "$as_me:$LINENO: result: yes" >&5
19311 $as_echo "yes" >&6; }
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_SET_FS_PWD 1
19320 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19321 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
19324 cat confdefs.h - <<_ACEOF >conftest.c
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19332 #include <linux/sched.h>
19333 #include <linux/fs_struct.h>
19339 set_fs_pwd(NULL, NULL);
19348 rm -Rf build && mkdir -p build
19349 echo "obj-m := conftest.o" >build/Makefile
19350 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'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19362 { $as_echo "$as_me:$LINENO: result: yes" >&5
19363 $as_echo "yes" >&6; }
19365 cat >>confdefs.h <<\_ACEOF
19366 #define HAVE_2ARGS_SET_FS_PWD 1
19371 $as_echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 { $as_echo "$as_me:$LINENO: result: no" >&5
19375 $as_echo "no" >&6; }
19385 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19386 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
19389 cat confdefs.h - <<_ACEOF >conftest.c
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19397 #include <linux/fs.h>
19403 vfs_unlink(NULL, NULL);
19412 rm -Rf build && mkdir -p build
19413 echo "obj-m := conftest.o" >build/Makefile
19414 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'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19426 { $as_echo "$as_me:$LINENO: result: yes" >&5
19427 $as_echo "yes" >&6; }
19429 cat >>confdefs.h <<\_ACEOF
19430 #define HAVE_2ARGS_VFS_UNLINK 1
19435 $as_echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 { $as_echo "$as_me:$LINENO: result: no" >&5
19439 $as_echo "no" >&6; }
19449 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19450 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
19453 cat confdefs.h - <<_ACEOF >conftest.c
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19461 #include <linux/fs.h>
19467 vfs_rename(NULL, NULL, NULL, NULL);
19476 rm -Rf build && mkdir -p build
19477 echo "obj-m := conftest.o" >build/Makefile
19478 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'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19490 { $as_echo "$as_me:$LINENO: result: yes" >&5
19491 $as_echo "yes" >&6; }
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_4ARGS_VFS_RENAME 1
19499 $as_echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 { $as_echo "$as_me:$LINENO: result: no" >&5
19503 $as_echo "no" >&6; }
19514 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19515 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19516 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19517 $LINUX_OBJ/Module*.symvers 2>/dev/null
19519 if test $rc -ne 0; then
19521 for file in fs/sync.c; do
19522 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19523 "$LINUX_OBJ/$file" 2>/dev/null
19525 if test $rc -eq 0; then
19530 if test $export -eq 0; then
19531 { $as_echo "$as_me:$LINENO: result: no" >&5
19532 $as_echo "no" >&6; }
19535 { $as_echo "$as_me:$LINENO: result: yes" >&5
19536 $as_echo "yes" >&6; }
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_VFS_FSYNC 1
19544 { $as_echo "$as_me:$LINENO: result: yes" >&5
19545 $as_echo "yes" >&6; }
19547 cat >>confdefs.h <<\_ACEOF
19548 #define HAVE_VFS_FSYNC 1
19555 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19556 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19559 cat confdefs.h - <<_ACEOF >conftest.c
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19567 #include <linux/fs.h>
19573 vfs_fsync(NULL, 0);
19582 rm -Rf build && mkdir -p build
19583 echo "obj-m := conftest.o" >build/Makefile
19584 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'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19596 { $as_echo "$as_me:$LINENO: result: yes" >&5
19597 $as_echo "yes" >&6; }
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_2ARGS_VFS_FSYNC 1
19605 $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 { $as_echo "$as_me:$LINENO: result: no" >&5
19609 $as_echo "no" >&6; }
19620 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19621 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
19622 tmp_flags="$EXTRA_KCFLAGS"
19623 EXTRA_KCFLAGS="-Werror"
19626 cat confdefs.h - <<_ACEOF >conftest.c
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19634 #include <linux/sched.h>
19635 #include <linux/fs_struct.h>
19641 struct fs_struct fs;
19642 spin_lock_init(&fs.lock);
19651 rm -Rf build && mkdir -p build
19652 echo "obj-m := conftest.o" >build/Makefile
19653 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'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19665 { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_FS_STRUCT_SPINLOCK 1
19674 $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 { $as_echo "$as_me:$LINENO: result: no" >&5
19678 $as_echo "no" >&6; }
19687 EXTRA_KCFLAGS="$tmp_flags"
19690 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19691 $as_echo_n "checking whether struct cred exists... " >&6; }
19694 cat confdefs.h - <<_ACEOF >conftest.c
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19702 #include <linux/cred.h>
19708 struct cred *cr __attribute__ ((unused));
19718 rm -Rf build && mkdir -p build
19719 echo "obj-m := conftest.o" >build/Makefile
19720 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'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19732 { $as_echo "$as_me:$LINENO: result: yes" >&5
19733 $as_echo "yes" >&6; }
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_CRED_STRUCT 1
19741 $as_echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 { $as_echo "$as_me:$LINENO: result: no" >&5
19745 $as_echo "no" >&6; }
19756 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19757 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19758 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19759 $LINUX_OBJ/Module*.symvers 2>/dev/null
19761 if test $rc -ne 0; then
19764 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19765 "$LINUX_OBJ/$file" 2>/dev/null
19767 if test $rc -eq 0; then
19772 if test $export -eq 0; then
19773 { $as_echo "$as_me:$LINENO: result: no" >&5
19774 $as_echo "no" >&6; }
19777 { $as_echo "$as_me:$LINENO: result: yes" >&5
19778 $as_echo "yes" >&6; }
19780 cat >>confdefs.h <<\_ACEOF
19781 #define HAVE_GROUPS_SEARCH 1
19786 { $as_echo "$as_me:$LINENO: result: yes" >&5
19787 $as_echo "yes" >&6; }
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_GROUPS_SEARCH 1
19797 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19798 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19799 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19800 $LINUX_OBJ/Module*.symvers 2>/dev/null
19802 if test $rc -ne 0; then
19805 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19806 "$LINUX_OBJ/$file" 2>/dev/null
19808 if test $rc -eq 0; then
19813 if test $export -eq 0; then
19814 { $as_echo "$as_me:$LINENO: result: no" >&5
19815 $as_echo "no" >&6; }
19818 { $as_echo "$as_me:$LINENO: result: yes" >&5
19819 $as_echo "yes" >&6; }
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_PUT_TASK_STRUCT 1
19827 { $as_echo "$as_me:$LINENO: result: yes" >&5
19828 $as_echo "yes" >&6; }
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_PUT_TASK_STRUCT 1
19838 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19839 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
19842 cat confdefs.h - <<_ACEOF >conftest.c
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19850 #include <linux/sysctl.h>
19856 proc_dostring(NULL, 0, NULL, NULL, NULL);
19865 rm -Rf build && mkdir -p build
19866 echo "obj-m := conftest.o" >build/Makefile
19867 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'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19879 { $as_echo "$as_me:$LINENO: result: yes" >&5
19880 $as_echo "yes" >&6; }
19882 cat >>confdefs.h <<\_ACEOF
19883 #define HAVE_5ARGS_PROC_HANDLER 1
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 { $as_echo "$as_me:$LINENO: result: no" >&5
19892 $as_echo "no" >&6; }
19903 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19904 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19905 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19906 $LINUX_OBJ/Module*.symvers 2>/dev/null
19908 if test $rc -ne 0; then
19911 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19912 "$LINUX_OBJ/$file" 2>/dev/null
19914 if test $rc -eq 0; then
19919 if test $export -eq 0; then
19920 { $as_echo "$as_me:$LINENO: result: no" >&5
19921 $as_echo "no" >&6; }
19924 { $as_echo "$as_me:$LINENO: result: yes" >&5
19925 $as_echo "yes" >&6; }
19927 cat >>confdefs.h <<\_ACEOF
19928 #define HAVE_KVASPRINTF 1
19933 { $as_echo "$as_me:$LINENO: result: yes" >&5
19934 $as_echo "yes" >&6; }
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE_KVASPRINTF 1
19944 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19945 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19946 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19947 $LINUX_OBJ/Module*.symvers 2>/dev/null
19949 if test $rc -ne 0; then
19951 for file in lib/rwsem-spinlock.c; do
19952 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
19953 "$LINUX_OBJ/$file" 2>/dev/null
19955 if test $rc -eq 0; then
19960 if test $export -eq 0; then
19961 { $as_echo "$as_me:$LINENO: result: no" >&5
19962 $as_echo "no" >&6; }
19965 { $as_echo "$as_me:$LINENO: result: yes" >&5
19966 $as_echo "yes" >&6; }
19968 cat >>confdefs.h <<\_ACEOF
19969 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19974 { $as_echo "$as_me:$LINENO: result: yes" >&5
19975 $as_echo "yes" >&6; }
19977 cat >>confdefs.h <<\_ACEOF
19978 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19985 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
19986 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
19987 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
19988 $LINUX_OBJ/Module*.symvers 2>/dev/null
19990 if test $rc -ne 0; then
19993 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
19994 "$LINUX_OBJ/$file" 2>/dev/null
19996 if test $rc -eq 0; then
20001 if test $export -eq 0; then
20002 { $as_echo "$as_me:$LINENO: result: no" >&5
20003 $as_echo "no" >&6; }
20006 { $as_echo "$as_me:$LINENO: result: yes" >&5
20007 $as_echo "yes" >&6; }
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_INVALIDATE_INODES 1
20015 { $as_echo "$as_me:$LINENO: result: yes" >&5
20016 $as_echo "yes" >&6; }
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_INVALIDATE_INODES 1
20024 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
20025 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
20026 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
20027 $LINUX_OBJ/Module*.symvers 2>/dev/null
20029 if test $rc -ne 0; then
20032 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
20033 "$LINUX_OBJ/$file" 2>/dev/null
20035 if test $rc -eq 0; then
20040 if test $export -eq 0; then
20041 { $as_echo "$as_me:$LINENO: result: no" >&5
20042 $as_echo "no" >&6; }
20045 { $as_echo "$as_me:$LINENO: result: yes" >&5
20046 $as_echo "yes" >&6; }
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_INVALIDATE_INODES_CHECK 1
20054 { $as_echo "$as_me:$LINENO: result: yes" >&5
20055 $as_echo "yes" >&6; }
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_INVALIDATE_INODES_CHECK 1
20064 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
20065 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
20068 cat confdefs.h - <<_ACEOF >conftest.c
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20076 #include <linux/fs.h>
20082 return __invalidate_device(NULL, 0);
20091 rm -Rf build && mkdir -p build
20092 echo "obj-m := conftest.o" >build/Makefile
20093 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'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20105 { $as_echo "$as_me:$LINENO: result: yes" >&5
20106 $as_echo "yes" >&6; }
20108 cat >>confdefs.h <<\_ACEOF
20109 #define HAVE_2ARGS_INVALIDATE_INODES 1
20114 $as_echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 { $as_echo "$as_me:$LINENO: result: no" >&5
20118 $as_echo "no" >&6; }
20129 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20130 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20131 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20132 $LINUX_OBJ/Module*.symvers 2>/dev/null
20134 if test $rc -ne 0; then
20136 for file in fs/dcache.c; do
20137 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20138 "$LINUX_OBJ/$file" 2>/dev/null
20140 if test $rc -eq 0; then
20145 if test $export -eq 0; then
20146 { $as_echo "$as_me:$LINENO: result: no" >&5
20147 $as_echo "no" >&6; }
20150 { $as_echo "$as_me:$LINENO: result: yes" >&5
20151 $as_echo "yes" >&6; }
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_SHRINK_DCACHE_MEMORY 1
20159 { $as_echo "$as_me:$LINENO: result: yes" >&5
20160 $as_echo "yes" >&6; }
20162 cat >>confdefs.h <<\_ACEOF
20163 #define HAVE_SHRINK_DCACHE_MEMORY 1
20170 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20171 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20172 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20173 $LINUX_OBJ/Module*.symvers 2>/dev/null
20175 if test $rc -ne 0; then
20177 for file in fs/inode.c; do
20178 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20179 "$LINUX_OBJ/$file" 2>/dev/null
20181 if test $rc -eq 0; then
20186 if test $export -eq 0; then
20187 { $as_echo "$as_me:$LINENO: result: no" >&5
20188 $as_echo "no" >&6; }
20191 { $as_echo "$as_me:$LINENO: result: yes" >&5
20192 $as_echo "yes" >&6; }
20194 cat >>confdefs.h <<\_ACEOF
20195 #define HAVE_SHRINK_ICACHE_MEMORY 1
20200 { $as_echo "$as_me:$LINENO: result: yes" >&5
20201 $as_echo "yes" >&6; }
20203 cat >>confdefs.h <<\_ACEOF
20204 #define HAVE_SHRINK_ICACHE_MEMORY 1
20212 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20213 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20215 for file in include/linux/namei.h; do
20216 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20218 if test $rc -eq 0; then
20223 if test $header -eq 0; then
20224 { $as_echo "$as_me:$LINENO: result: no" >&5
20225 $as_echo "no" >&6; }
20228 { $as_echo "$as_me:$LINENO: result: yes" >&5
20229 $as_echo "yes" >&6; }
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE_KERN_PATH_PARENT_HEADER 1
20239 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20240 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20241 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20242 $LINUX_OBJ/Module*.symvers 2>/dev/null
20244 if test $rc -ne 0; then
20246 for file in fs/namei.c; do
20247 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20248 "$LINUX_OBJ/$file" 2>/dev/null
20250 if test $rc -eq 0; then
20255 if test $export -eq 0; then
20256 { $as_echo "$as_me:$LINENO: result: no" >&5
20257 $as_echo "no" >&6; }
20260 { $as_echo "$as_me:$LINENO: result: yes" >&5
20261 $as_echo "yes" >&6; }
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20269 { $as_echo "$as_me:$LINENO: result: yes" >&5
20270 $as_echo "yes" >&6; }
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20279 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20280 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20283 cat confdefs.h - <<_ACEOF >conftest.c
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20291 #include <linux/zlib.h>
20297 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20306 rm -Rf build && mkdir -p build
20307 echo "obj-m := conftest.o" >build/Makefile
20308 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'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20320 { $as_echo "$as_me:$LINENO: result: yes" >&5
20321 $as_echo "yes" >&6; }
20323 cat >>confdefs.h <<\_ACEOF
20324 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20329 $as_echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 { $as_echo "$as_me:$LINENO: result: no" >&5
20333 $as_echo "no" >&6; }
20344 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20345 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
20348 cat confdefs.h - <<_ACEOF >conftest.c
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20356 #include <linux/mm.h>
20362 struct shrink_control sc __attribute__ ((unused));
20365 sc.gfp_mask = GFP_KERNEL;
20374 rm -Rf build && mkdir -p build
20375 echo "obj-m := conftest.o" >build/Makefile
20376 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'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20388 { $as_echo "$as_me:$LINENO: result: yes" >&5
20389 $as_echo "yes" >&6; }
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_SHRINK_CONTROL_STRUCT 1
20397 $as_echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 { $as_echo "$as_me:$LINENO: result: no" >&5
20401 $as_echo "no" >&6; }
20412 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
20413 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
20414 tmp_flags="$EXTRA_KCFLAGS"
20415 EXTRA_KCFLAGS="-Werror"
20418 cat confdefs.h - <<_ACEOF >conftest.c
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20426 #include <linux/rwsem.h>
20432 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
20433 raw_spinlock_t dummy_lock __attribute__ ((unused));
20434 dummy_semaphore.wait_lock = dummy_lock;
20443 rm -Rf build && mkdir -p build
20444 echo "obj-m := conftest.o" >build/Makefile
20445 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'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20457 { $as_echo "$as_me:$LINENO: result: yes" >&5
20458 $as_echo "yes" >&6; }
20460 cat >>confdefs.h <<\_ACEOF
20461 #define RWSEM_SPINLOCK_IS_RAW 1
20466 $as_echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 { $as_echo "$as_me:$LINENO: result: no" >&5
20470 $as_echo "no" >&6; }
20479 EXTRA_KCFLAGS="$tmp_flags"
20485 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20486 $as_echo "Error!" >&6; }
20487 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20488 user kernel|user|all|srpm" >&5
20489 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20490 user kernel|user|all|srpm" >&2;}
20491 { (exit 1); exit 1; }; } ;;
20494 if test "$SPL_CONFIG" = user ||
20495 test "$SPL_CONFIG" = all; then
20497 CONFIG_USER_FALSE='#'
20499 CONFIG_USER_TRUE='#'
20503 if test "$SPL_CONFIG" = kernel ||
20504 test "$SPL_CONFIG" = all; then
20505 CONFIG_KERNEL_TRUE=
20506 CONFIG_KERNEL_FALSE='#'
20508 CONFIG_KERNEL_TRUE='#'
20509 CONFIG_KERNEL_FALSE=
20514 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules"
20517 cat >confcache <<\_ACEOF
20518 # This file is a shell script that caches the results of configure
20519 # tests run on this system so they can be shared between configure
20520 # scripts and configure runs, see configure's option --config-cache.
20521 # It is not useful on other systems. If it contains results you don't
20522 # want to keep, you may remove or edit it.
20524 # config.status only pays attention to the cache file if you give it
20525 # the --recheck option to rerun configure.
20527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20529 # following values.
20533 # The following way of writing the cache mishandles newlines in values,
20534 # but we know of no workaround that is simple, portable, and efficient.
20535 # So, we kill variables containing newlines.
20536 # Ultrix sh set writes to stderr and can't be redirected directly,
20537 # and sets the high bit in the cache file unless we assign to the vars.
20539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20540 eval ac_val=\$$ac_var
20544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20548 _ | IFS | as_nl) ;; #(
20549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20550 *) $as_unset $ac_var ;;
20556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20557 *${as_nl}ac_space=\ *)
20558 # `set' does not quote correctly, so add quotes (double-quote
20559 # substitution turns \\\\ into \\, and sed turns \\ into \).
20562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20565 # `set' quotes correctly as required by POSIX, so do not add quotes.
20566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20580 if test -w "$cache_file"; then
20581 test "x$cache_file" != "x/dev/null" &&
20582 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20583 $as_echo "$as_me: updating cache $cache_file" >&6;}
20584 cat confcache >$cache_file
20586 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20593 # Let make expand exec_prefix.
20594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20596 DEFS=-DHAVE_CONFIG_H
20600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20601 # 1. Remove the extension, and $U if already installed.
20602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20605 # will be set to the directory where LIBOBJS objects are built.
20606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20609 LIBOBJS=$ac_libobjs
20611 LTLIBOBJS=$ac_ltlibobjs
20614 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20615 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20616 Usually this means the macro was only invoked conditionally." >&5
20617 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20618 Usually this means the macro was only invoked conditionally." >&2;}
20619 { (exit 1); exit 1; }; }
20621 if test -n "$EXEEXT"; then
20623 am__EXEEXT_FALSE='#'
20625 am__EXEEXT_TRUE='#'
20629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20630 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20631 Usually this means the macro was only invoked conditionally." >&5
20632 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20633 Usually this means the macro was only invoked conditionally." >&2;}
20634 { (exit 1); exit 1; }; }
20636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20637 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20638 Usually this means the macro was only invoked conditionally." >&5
20639 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20640 Usually this means the macro was only invoked conditionally." >&2;}
20641 { (exit 1); exit 1; }; }
20643 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20644 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20645 Usually this means the macro was only invoked conditionally." >&5
20646 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20647 Usually this means the macro was only invoked conditionally." >&2;}
20648 { (exit 1); exit 1; }; }
20650 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20651 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20652 Usually this means the macro was only invoked conditionally." >&5
20653 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20654 Usually this means the macro was only invoked conditionally." >&2;}
20655 { (exit 1); exit 1; }; }
20658 : ${CONFIG_STATUS=./config.status}
20660 ac_clean_files_save=$ac_clean_files
20661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20662 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20663 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20664 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20666 # Generated by $as_me.
20667 # Run this file to recreate the current configuration.
20668 # Compiler output produced by configure, useful for debugging
20669 # configure, is in config.log if it exists.
20672 ac_cs_recheck=false
20674 SHELL=\${CONFIG_SHELL-$SHELL}
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20678 ## --------------------- ##
20679 ## M4sh Initialization. ##
20680 ## --------------------- ##
20682 # Be more Bourne compatible
20683 DUALCASE=1; export DUALCASE # for MKS sh
20684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20688 # is contrary to our usage. Disable this feature.
20689 alias -g '${1+"$@"}'='"$@"'
20690 setopt NO_GLOB_SUBST
20692 case `(set -o) 2>/dev/null` in
20693 *posix*) set -o posix ;;
20702 # Avoid depending upon Character Ranges.
20703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20706 as_cr_digits='0123456789'
20707 as_cr_alnum=$as_cr_Letters$as_cr_digits
20712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20716 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20717 as_echo='printf %s\n'
20718 as_echo_n='printf %s'
20720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20722 as_echo_n='/usr/ucb/echo -n'
20724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20725 as_echo_n_body='eval
20729 expr "X$arg" : "X\\(.*\\)$as_nl";
20730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20734 export as_echo_n_body
20735 as_echo_n='sh -c $as_echo_n_body as_echo'
20737 export as_echo_body
20738 as_echo='sh -c $as_echo_body as_echo'
20741 # The user is always right.
20742 if test "${PATH_SEPARATOR+set}" != set; then
20744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20750 # Support unset when possible.
20751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20759 # We need space, tab and new line, in precisely that order. Quoting is
20760 # there to prevent editors from complaining about space-tab.
20761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20762 # splitting by setting IFS to empty value.)
20765 # Find who we are. Look in the path if we contain no directory separator.
20767 *[\\/]* ) as_myself=$0 ;;
20768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20769 for as_dir in $PATH
20772 test -z "$as_dir" && as_dir=.
20773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20779 # We did not find ourselves, most probably we were run as `sh COMMAND'
20780 # in which case we are not to be found in the path.
20781 if test "x$as_myself" = x; then
20784 if test ! -f "$as_myself"; then
20785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20786 { (exit 1); exit 1; }
20789 # Work around bugs in pre-3.0 UWIN ksh.
20790 for as_var in ENV MAIL MAILPATH
20791 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20803 # Required to use basename.
20804 if expr a : '\(a\)' >/dev/null 2>&1 &&
20805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20811 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20812 as_basename=basename
20818 # Name of the executable.
20819 as_me=`$as_basename -- "$0" ||
20820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20821 X"$0" : 'X\(//\)$' \| \
20822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20824 sed '/^.*\/\([^/][^/]*\)\/*$/{
20843 as_lineno_1=$LINENO
20844 as_lineno_2=$LINENO
20845 test "x$as_lineno_1" != "x$as_lineno_2" &&
20846 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20849 # uniformly replaced by the line number. The first 'sed' inserts a
20850 # line-number line after each line using $LINENO; the second 'sed'
20851 # does the real work. The second script uses 'N' to pair each
20852 # line-number line with the line containing $LINENO, and appends
20853 # trailing '-' during substitution so that $LINENO is not a special
20854 # case at line end.
20855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20856 # scripts with optimization help from Paolo Bonzini. Blame Lee
20857 # E. McMahon (1931-1989) for sed's syntax. :-)
20869 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20872 ' >$as_me.lineno &&
20873 chmod +x "$as_me.lineno" ||
20874 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20875 { (exit 1); exit 1; }; }
20877 # Don't try to exec as it changes $[0], causing all sort of problems
20878 # (the dirname of $[0] is not the place where we might find the
20879 # original and so on. Autoconf is especially sensitive to this).
20880 . "./$as_me.lineno"
20881 # Exit status is that of the last command.
20886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20892 ECHO_C= ECHO_N= ECHO_T=
20893 case `echo -n x` in
20895 case `echo 'x\c'` in
20896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20902 if expr a : '\(a\)' >/dev/null 2>&1 &&
20903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20909 rm -f conf$$ conf$$.exe conf$$.file
20910 if test -d conf$$.dir; then
20911 rm -f conf$$.dir/conf$$.file
20914 mkdir conf$$.dir 2>/dev/null
20916 if (echo >conf$$.file) 2>/dev/null; then
20917 if ln -s conf$$.file conf$$ 2>/dev/null; then
20919 # ... but there are two gotchas:
20920 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20921 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20922 # In both cases, we have to default to `cp -p'.
20923 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20925 elif ln conf$$.file conf$$ 2>/dev/null; then
20933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20934 rmdir conf$$.dir 2>/dev/null
20936 if mkdir -p . 2>/dev/null; then
20939 test -d ./-p && rmdir ./-p
20943 if test -x / >/dev/null 2>&1; then
20944 as_test_x='test -x'
20946 if ls -dL / >/dev/null 2>&1; then
20953 if test -d "$1"; then
20959 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20960 ???[sx]*):;;*)false;;esac;fi
20964 as_executable_p=$as_test_x
20966 # Sed expression to map a string onto a valid CPP name.
20967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20969 # Sed expression to map a string onto a valid variable name.
20970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20975 # Save the log message, to keep $[0] and so on meaningful, and to
20976 # report actual input values of CONFIG_FILES etc. instead of their
20977 # values after options handling.
20979 This file was extended by $as_me, which was
20980 generated by GNU Autoconf 2.63. Invocation command line was
20982 CONFIG_FILES = $CONFIG_FILES
20983 CONFIG_HEADERS = $CONFIG_HEADERS
20984 CONFIG_LINKS = $CONFIG_LINKS
20985 CONFIG_COMMANDS = $CONFIG_COMMANDS
20988 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20993 case $ac_config_files in *"
20994 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20997 case $ac_config_headers in *"
20998 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21003 # Files that config.status was made for.
21004 config_files="$ac_config_files"
21005 config_headers="$ac_config_headers"
21006 config_commands="$ac_config_commands"
21010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21012 \`$as_me' instantiates files from templates according to the
21013 current configuration.
21015 Usage: $0 [OPTION]... [FILE]...
21017 -h, --help print this help, then exit
21018 -V, --version print version number and configuration settings, then exit
21019 -q, --quiet, --silent
21020 do not print progress messages
21021 -d, --debug don't remove temporary files
21022 --recheck update $as_me by reconfiguring in the same conditions
21023 --file=FILE[:TEMPLATE]
21024 instantiate the configuration file FILE
21025 --header=FILE[:TEMPLATE]
21026 instantiate the configuration header FILE
21028 Configuration files:
21031 Configuration headers:
21034 Configuration commands:
21037 Report bugs to <bug-autoconf@gnu.org>."
21040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21043 configured by $0, generated by GNU Autoconf 2.63,
21044 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21046 Copyright (C) 2008 Free Software Foundation, Inc.
21047 This config.status script is free software; the Free Software Foundation
21048 gives unlimited permission to copy, distribute and modify it."
21055 test -n "\$AWK" || AWK=awk
21058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21059 # The default lists apply if the user does not specify any file.
21065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21066 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21077 # Handling of the options.
21078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21080 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21081 $as_echo "$ac_cs_version"; exit ;;
21082 --debug | --debu | --deb | --de | --d | -d )
21084 --file | --fil | --fi | --f )
21087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21089 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21090 ac_need_defaults=false;;
21091 --header | --heade | --head | --hea )
21094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21096 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21097 ac_need_defaults=false;;
21099 # Conflict between --help and --header
21100 { $as_echo "$as_me: error: ambiguous option: $1
21101 Try \`$0 --help' for more information." >&2
21102 { (exit 1); exit 1; }; };;
21103 --help | --hel | -h )
21104 $as_echo "$ac_cs_usage"; exit ;;
21105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21109 # This is an error.
21110 -*) { $as_echo "$as_me: error: unrecognized option: $1
21111 Try \`$0 --help' for more information." >&2
21112 { (exit 1); exit 1; }; } ;;
21114 *) ac_config_targets="$ac_config_targets $1"
21115 ac_need_defaults=false ;;
21121 ac_configure_extra_args=
21123 if $ac_cs_silent; then
21125 ac_configure_extra_args="$ac_configure_extra_args --silent"
21129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21130 if \$ac_cs_recheck; then
21131 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21134 CONFIG_SHELL='$SHELL'
21135 export CONFIG_SHELL
21140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21145 ## Running $as_me. ##
21151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21155 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21158 # The HP-UX ksh and POSIX shell print the target directory to stdout
21159 # if CDPATH is set.
21160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21162 sed_quote_subst='$sed_quote_subst'
21163 double_quote_subst='$double_quote_subst'
21164 delay_variable_subst='$delay_variable_subst'
21165 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21166 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21167 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21168 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21169 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21170 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21171 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21172 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21173 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21174 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21175 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21176 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21177 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21178 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21179 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21180 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21181 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21182 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21183 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21184 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21185 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21186 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21187 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21188 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21189 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21190 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21191 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21192 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21193 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21194 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21195 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21196 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21197 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21198 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21199 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21200 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21201 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21202 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21203 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21204 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21205 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21206 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21207 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21209 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"`'
21210 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"`'
21211 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21212 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21213 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21214 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21215 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21216 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21217 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21218 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21219 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21220 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21221 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21222 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21223 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21224 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21225 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21226 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21227 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21228 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21229 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21230 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21231 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21232 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21233 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21234 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21235 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21236 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21237 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21238 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21239 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21240 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21241 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21243 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21244 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21245 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21246 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21247 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21248 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21249 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21250 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21251 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21252 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21253 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21254 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21255 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21256 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21257 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21258 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21259 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21260 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21261 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21262 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21263 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21264 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21265 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21266 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21267 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21268 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21269 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21270 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21271 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21272 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21273 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21274 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21275 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21276 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21277 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21278 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21279 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21280 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21281 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21282 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21285 LTCFLAGS='$LTCFLAGS'
21286 compiler='$compiler_DEFAULT'
21288 # Quote evaled strings.
21300 deplibs_check_method \
21309 lt_cv_sys_global_symbol_pipe \
21310 lt_cv_sys_global_symbol_to_cdecl \
21311 lt_cv_sys_global_symbol_to_c_name_address \
21312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21315 lt_prog_compiler_no_builtin_flag \
21316 lt_prog_compiler_wl \
21317 lt_prog_compiler_pic \
21318 lt_prog_compiler_static \
21319 lt_cv_prog_compiler_c_o \
21327 export_dynamic_flag_spec \
21328 whole_archive_flag_spec \
21329 compiler_needs_object \
21331 allow_undefined_flag \
21332 no_undefined_flag \
21333 hardcode_libdir_flag_spec \
21334 hardcode_libdir_flag_spec_ld \
21335 hardcode_libdir_separator \
21340 variables_saved_for_relink \
21342 library_names_spec \
21347 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21348 *[\\\\\\\`\\"\\\$]*)
21349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21357 # Double-quote double-evaled strings.
21358 for var in reload_cmds \
21359 old_postinstall_cmds \
21360 old_postuninstall_cmds \
21362 extract_expsyms_cmds \
21363 old_archive_from_new_cmds \
21364 old_archive_from_expsyms_cmds \
21366 archive_expsym_cmds \
21368 module_expsym_cmds \
21369 export_symbols_cmds \
21372 postuninstall_cmds \
21374 sys_lib_search_path_spec \
21375 sys_lib_dlsearch_path_spec; do
21376 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21377 *[\\\\\\\`\\"\\\$]*)
21378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21386 # Fix-up fallback echo if it was mangled by the above quoting rules.
21388 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21392 ac_aux_dir='$ac_aux_dir'
21393 xsi_shell='$xsi_shell'
21394 lt_shell_append='$lt_shell_append'
21396 # See if we are running on zsh, and set the options which allow our
21397 # commands through without removal of \ escapes INIT.
21398 if test -n "\${ZSH_VERSION+set}" ; then
21399 setopt NO_GLOB_SUBST
21405 TIMESTAMP='$TIMESTAMP'
21414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21416 # Handling of arguments.
21417 for ac_config_target in $ac_config_targets
21419 case $ac_config_target in
21420 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21421 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21422 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21423 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21424 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21425 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21426 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21427 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21428 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21429 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21430 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21431 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21432 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
21433 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21434 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
21436 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21437 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21438 { (exit 1); exit 1; }; };;
21443 # If the user did not use the arguments to specify the items to instantiate,
21444 # then the envvar interface is used. Set only those that are not.
21445 # We use the long form for the default assignment because of an extremely
21446 # bizarre bug on SunOS 4.1.3.
21447 if $ac_need_defaults; then
21448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21453 # Have a temporary directory for convenience. Make it in the build tree
21454 # simply because there is no reason against having it here, and in addition,
21455 # creating and moving files from /tmp can sometimes cause problems.
21456 # Hook for its removal unless debugging.
21457 # Note that there is a small window in which the directory will not be cleaned:
21458 # after its creation but before its name has been assigned to `$tmp'.
21462 trap 'exit_status=$?
21463 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21465 trap '{ (exit 1); exit 1; }' 1 2 13 15
21467 # Create a (secure) tmp directory for tmp files.
21470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21471 test -n "$tmp" && test -d "$tmp"
21474 tmp=./conf$$-$RANDOM
21475 (umask 077 && mkdir "$tmp")
21478 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21479 { (exit 1); exit 1; }
21482 # Set up the scripts for CONFIG_FILES section.
21483 # No need to generate them if there are no CONFIG_FILES.
21484 # This happens for instance with `./config.status config.h'.
21485 if test -n "$CONFIG_FILES"; then
21489 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21490 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21493 ac_cs_awk_cr=$ac_cr
21496 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21501 echo "cat >conf$$subs.awk <<_ACEOF" &&
21502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21504 } >conf$$subs.sh ||
21505 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21506 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21507 { (exit 1); exit 1; }; }
21508 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21510 for ac_last_try in false false false false false :; do
21511 . ./conf$$subs.sh ||
21512 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21513 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21514 { (exit 1); exit 1; }; }
21516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21517 if test $ac_delim_n = $ac_delim_num; then
21519 elif $ac_last_try; then
21520 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21521 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21522 { (exit 1); exit 1; }; }
21524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21527 rm -f conf$$subs.sh
21529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21530 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21534 s/^/S["/; s/!.*/"]=/
21544 s/\(.\{148\}\).*/\1/
21546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21558 s/\(.\{148\}\).*/\1/
21560 s/["\\]/\\&/g; s/^/"/; s/$/"/
21564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21569 ' <conf$$subs.awk | sed '
21574 ' >>$CONFIG_STATUS || ac_write_fail=1
21575 rm -f conf$$subs.awk
21576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21578 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21579 for (key in S) S_is_set[key] = 1
21585 nfields = split(line, field, "@")
21587 len = length(field[1])
21588 for (i = 2; i < nfields; i++) {
21590 keylen = length(key)
21591 if (S_is_set[key]) {
21593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21594 len += length(value) + length(field[++i])
21605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21610 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21611 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21612 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21613 { (exit 1); exit 1; }; }
21616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21618 # trailing colons and then remove the whole line if VPATH becomes empty
21619 # (actually we leave an empty line to preserve line numbers).
21620 if test "x$srcdir" = x.; then
21621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21622 s/:*\$(srcdir):*/:/
21623 s/:*\${srcdir}:*/:/
21625 s/^\([^=]*=[ ]*\):*/\1/
21631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21632 fi # test -n "$CONFIG_FILES"
21634 # Set up the scripts for CONFIG_HEADERS section.
21635 # No need to generate them if there are no CONFIG_HEADERS.
21636 # This happens for instance with `./config.status Makefile'.
21637 if test -n "$CONFIG_HEADERS"; then
21638 cat >"$tmp/defines.awk" <<\_ACAWK ||
21642 # Transform confdefs.h into an awk script `defines.awk', embedded as
21643 # here-document in config.status, that substitutes the proper values into
21644 # config.h.in to produce config.h.
21646 # Create a delimiter string that does not exist in confdefs.h, to ease
21647 # handling of long lines.
21649 for ac_last_try in false false :; do
21650 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21651 if test -z "$ac_t"; then
21653 elif $ac_last_try; then
21654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21655 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21656 { (exit 1); exit 1; }; }
21658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21662 # For the awk script, D is an array of macro values keyed by name,
21663 # likewise P contains macro parameters if any. Preserve backslash
21664 # newline sequences.
21666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21668 s/.\{148\}/&'"$ac_delim"'/g
21671 s/^[ ]*#[ ]*define[ ][ ]*/ /
21678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21685 D["\1"]=" \3\\\\\\n"\\/p
21687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21692 s/.\{148\}/&'"$ac_delim"'/g
21697 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21700 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21702 ' <confdefs.h | sed '
21703 s/'"$ac_delim"'/"\\\
21704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21707 for (key in D) D_is_set[key] = 1
21710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21712 split(line, arg, " ")
21713 if (arg[1] == "#") {
21717 defundef = substr(arg[1], 2)
21720 split(mac1, mac2, "(") #)
21722 prefix = substr(line, 1, index(line, defundef) - 1)
21723 if (D_is_set[macro]) {
21724 # Preserve the white space surrounding the "#".
21725 print prefix "define", macro P[macro] D[macro]
21728 # Replace #undef with comments. This is necessary, for example,
21729 # in the case of _POSIX_SOURCE, which is predefined and required
21730 # on some systems where configure will not decide to define it.
21731 if (defundef == "undef") {
21732 print "/*", prefix defundef, macro, "*/"
21740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21741 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21742 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21743 { (exit 1); exit 1; }; }
21744 fi # test -n "$CONFIG_HEADERS"
21747 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21752 :[FHLC]) ac_mode=$ac_tag; continue;;
21754 case $ac_mode$ac_tag in
21756 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21757 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21758 { (exit 1); exit 1; }; };;
21759 :[FH]-) ac_tag=-:-;;
21760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21777 -) ac_f="$tmp/stdin";;
21778 *) # Look for the file first in the build tree, then in the source tree
21779 # (if the path is not absolute). The absolute path cannot be DOS-style,
21780 # because $ac_f cannot contain `:'.
21784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21786 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21787 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21788 { (exit 1); exit 1; }; };;
21790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21791 ac_file_inputs="$ac_file_inputs '$ac_f'"
21794 # Let's still pretend it is `configure' which instantiates (i.e., don't
21795 # use $as_me), people would be surprised to read:
21796 # /* config.h. Generated by config.status. */
21797 configure_input='Generated from '`
21798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21800 if test x"$ac_file" != x-; then
21801 configure_input="$ac_file. $configure_input"
21802 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21803 $as_echo "$as_me: creating $ac_file" >&6;}
21805 # Neutralize special characters interpreted by sed in replacement strings.
21806 case $configure_input in #(
21807 *\&* | *\|* | *\\* )
21808 ac_sed_conf_input=`$as_echo "$configure_input" |
21809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21810 *) ac_sed_conf_input=$configure_input;;
21814 *:-:* | *:-) cat >"$tmp/stdin" \
21815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21817 { (exit 1); exit 1; }; } ;;
21822 ac_dir=`$as_dirname -- "$ac_file" ||
21823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21824 X"$ac_file" : 'X\(//\)[^/]' \| \
21825 X"$ac_file" : 'X\(//\)$' \| \
21826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21827 $as_echo X"$ac_file" |
21828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21832 /^X\(\/\/\)[^/].*/{
21847 -*) as_dir=./$as_dir;;
21849 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21854 *) as_qdir=$as_dir;;
21856 as_dirs="'$as_qdir' $as_dirs"
21857 as_dir=`$as_dirname -- "$as_dir" ||
21858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21859 X"$as_dir" : 'X\(//\)[^/]' \| \
21860 X"$as_dir" : 'X\(//\)$' \| \
21861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21862 $as_echo X"$as_dir" |
21863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21867 /^X\(\/\/\)[^/].*/{
21880 test -d "$as_dir" && break
21882 test -z "$as_dirs" || eval "mkdir $as_dirs"
21883 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21884 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21885 { (exit 1); exit 1; }; }; }
21889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21892 # A ".." for each directory in $ac_dir_suffix.
21893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21894 case $ac_top_builddir_sub in
21895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21899 ac_abs_top_builddir=$ac_pwd
21900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21901 # for backward compatibility:
21902 ac_top_builddir=$ac_top_build_prefix
21905 .) # We are building in place.
21907 ac_top_srcdir=$ac_top_builddir_sub
21908 ac_abs_top_srcdir=$ac_pwd ;;
21909 [\\/]* | ?:[\\/]* ) # Absolute name.
21910 ac_srcdir=$srcdir$ac_dir_suffix;
21911 ac_top_srcdir=$srcdir
21912 ac_abs_top_srcdir=$srcdir ;;
21913 *) # Relative name.
21914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21915 ac_top_srcdir=$ac_top_build_prefix$srcdir
21916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21931 ac_MKDIR_P=$MKDIR_P
21933 [\\/$]* | ?:[\\/]* ) ;;
21934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21939 # If the template does not know about datarootdir, expand it.
21940 # FIXME: This hack should be removed a few years after 2.60.
21941 ac_datarootdir_hack=; ac_datarootdir_seen=
21954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21955 *datarootdir*) ac_datarootdir_seen=yes;;
21956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21957 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21961 ac_datarootdir_hack='
21962 s&@datadir@&$datadir&g
21963 s&@docdir@&$docdir&g
21964 s&@infodir@&$infodir&g
21965 s&@localedir@&$localedir&g
21966 s&@mandir@&$mandir&g
21967 s&\\\${datarootdir}&$datarootdir&g' ;;
21971 # Neutralize VPATH when `$srcdir' = `.'.
21972 # Shell code in configure.ac might set extrasub.
21973 # FIXME: do we really want to maintain this feature?
21974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21975 ac_sed_extra="$ac_vpsub
21978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21981 s|@configure_input@|$ac_sed_conf_input|;t t
21982 s&@top_builddir@&$ac_top_builddir_sub&;t t
21983 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21984 s&@srcdir@&$ac_srcdir&;t t
21985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21986 s&@top_srcdir@&$ac_top_srcdir&;t t
21987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21988 s&@builddir@&$ac_builddir&;t t
21989 s&@abs_builddir@&$ac_abs_builddir&;t t
21990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21991 s&@INSTALL@&$ac_INSTALL&;t t
21992 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21993 $ac_datarootdir_hack
21995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21996 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21997 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21998 { (exit 1); exit 1; }; }
22000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22001 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22003 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22004 which seems to be undefined. Please make sure it is defined." >&5
22005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22006 which seems to be undefined. Please make sure it is defined." >&2;}
22010 -) cat "$tmp/out" && rm -f "$tmp/out";;
22011 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22014 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22015 { (exit 1); exit 1; }; }
22021 if test x"$ac_file" != x-; then
22023 $as_echo "/* $configure_input */" \
22024 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22025 } >"$tmp/config.h" \
22026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22027 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22028 { (exit 1); exit 1; }; }
22029 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22030 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22031 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22034 mv "$tmp/config.h" "$ac_file" \
22035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22036 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22037 { (exit 1); exit 1; }; }
22040 $as_echo "/* $configure_input */" \
22041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22042 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22043 $as_echo "$as_me: error: could not create -" >&2;}
22044 { (exit 1); exit 1; }; }
22046 # Compute "$ac_file"'s index in $config_headers.
22049 for _am_header in $config_headers :; do
22050 case $_am_header in
22051 $_am_arg | $_am_arg:* )
22054 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22057 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22058 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22059 X"$_am_arg" : 'X\(//\)[^/]' \| \
22060 X"$_am_arg" : 'X\(//\)$' \| \
22061 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22062 $as_echo X"$_am_arg" |
22063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22067 /^X\(\/\/\)[^/].*/{
22079 s/.*/./; q'`/stamp-h$_am_stamp_count
22082 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22083 $as_echo "$as_me: executing $ac_file commands" >&6;}
22088 case $ac_file$ac_mode in
22090 (mv spl_config.h spl_config.h.tmp &&
22091 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
22092 rm spl_config.h.tmp) || exit 1 ;;
22093 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22094 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22095 # are listed without --file. Let's play safe and only enable the eval
22096 # if we detect the quoting.
22097 case $CONFIG_FILES in
22098 *\'*) eval set x "$CONFIG_FILES" ;;
22099 *) set x $CONFIG_FILES ;;
22104 # Strip MF so we end up with the name of the file.
22105 mf=`echo "$mf" | sed -e 's/:.*$//'`
22106 # Check whether this is an Automake generated Makefile or not.
22107 # We used to match only the files named `Makefile.in', but
22108 # some people rename them; so instead we look at the file content.
22109 # Grep'ing the first line is not enough: some people post-process
22110 # each Makefile.in and add a new line on top of each file to say so.
22111 # Grep'ing the whole file is not good either: AIX grep has a line
22112 # limit of 2048, but all sed's we know have understand at least 4000.
22113 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22114 dirpart=`$as_dirname -- "$mf" ||
22115 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22116 X"$mf" : 'X\(//\)[^/]' \| \
22117 X"$mf" : 'X\(//\)$' \| \
22118 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22124 /^X\(\/\/\)[^/].*/{
22140 # Extract the definition of DEPDIR, am__include, and am__quote
22141 # from the Makefile without running `make'.
22142 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22143 test -z "$DEPDIR" && continue
22144 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22145 test -z "am__include" && continue
22146 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22147 # When using ansi2knr, U may be empty or an underscore; expand it
22148 U=`sed -n 's/^U = //p' < "$mf"`
22149 # Find all dependency output files, they are included files with
22150 # $(DEPDIR) in their names. We invoke sed twice because it is the
22151 # simplest approach to changing $(DEPDIR) to its actual value in the
22153 for file in `sed -n "
22154 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22155 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22156 # Make sure the directory exists.
22157 test -f "$dirpart/$file" && continue
22158 fdir=`$as_dirname -- "$file" ||
22159 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22160 X"$file" : 'X\(//\)[^/]' \| \
22161 X"$file" : 'X\(//\)$' \| \
22162 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22163 $as_echo X"$file" |
22164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168 /^X\(\/\/\)[^/].*/{
22181 { as_dir=$dirpart/$fdir
22183 -*) as_dir=./$as_dir;;
22185 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22189 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22190 *) as_qdir=$as_dir;;
22192 as_dirs="'$as_qdir' $as_dirs"
22193 as_dir=`$as_dirname -- "$as_dir" ||
22194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22195 X"$as_dir" : 'X\(//\)[^/]' \| \
22196 X"$as_dir" : 'X\(//\)$' \| \
22197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22198 $as_echo X"$as_dir" |
22199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22203 /^X\(\/\/\)[^/].*/{
22216 test -d "$as_dir" && break
22218 test -z "$as_dirs" || eval "mkdir $as_dirs"
22219 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22220 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22221 { (exit 1); exit 1; }; }; }
22222 # echo "creating $dirpart/$file"
22223 echo '# dummy' > "$dirpart/$file"
22230 # See if we are running on zsh, and set the options which allow our
22231 # commands through without removal of \ escapes.
22232 if test -n "${ZSH_VERSION+set}" ; then
22233 setopt NO_GLOB_SUBST
22236 cfgfile="${ofile}T"
22237 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22240 cat <<_LT_EOF >> "$cfgfile"
22243 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22244 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22248 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22249 # 2006, 2007, 2008 Free Software Foundation, Inc.
22250 # Written by Gordon Matzigkeit, 1996
22252 # This file is part of GNU Libtool.
22254 # GNU Libtool is free software; you can redistribute it and/or
22255 # modify it under the terms of the GNU General Public License as
22256 # published by the Free Software Foundation; either version 2 of
22257 # the License, or (at your option) any later version.
22259 # As a special exception to the GNU General Public License,
22260 # if you distribute this file as part of a program or library that
22261 # is built using GNU Libtool, you may include this file under the
22262 # same distribution terms that you use for the rest of that program.
22264 # GNU Libtool is distributed in the hope that it will be useful,
22265 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22267 # GNU General Public License for more details.
22269 # You should have received a copy of the GNU General Public License
22270 # along with GNU Libtool; see the file COPYING. If not, a copy
22271 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22272 # obtained by writing to the Free Software Foundation, Inc.,
22273 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22276 # The names of the tagged configurations supported by this script.
22279 # ### BEGIN LIBTOOL CONFIG
22281 # Which release of libtool.m4 was used?
22282 macro_version=$macro_version
22283 macro_revision=$macro_revision
22285 # Whether or not to build shared libraries.
22286 build_libtool_libs=$enable_shared
22288 # Whether or not to build static libraries.
22289 build_old_libs=$enable_static
22291 # What type of objects to build.
22294 # Whether or not to optimize for fast installation.
22295 fast_install=$enable_fast_install
22298 host_alias=$host_alias
22302 # The build system.
22303 build_alias=$build_alias
22307 # A sed program that does not truncate output.
22310 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22311 Xsed="\$SED -e 1s/^X//"
22313 # A grep program that handles long lines.
22319 # A literal string matcher.
22322 # A BSD- or MS-compatible name lister.
22325 # Whether we need soft or hard links.
22328 # What is the maximum length of a command?
22329 max_cmd_len=$max_cmd_len
22331 # Object file suffix (normally "o").
22334 # Executable file suffix (normally "").
22337 # whether the shell understands "unset".
22340 # turn spaces into newlines.
22343 # turn newlines into spaces.
22346 # How to create reloadable object files.
22347 reload_flag=$lt_reload_flag
22348 reload_cmds=$lt_reload_cmds
22350 # An object symbol dumper.
22351 OBJDUMP=$lt_OBJDUMP
22353 # Method to check whether dependent libraries are shared objects.
22354 deplibs_check_method=$lt_deplibs_check_method
22356 # Command to use when deplibs_check_method == "file_magic".
22357 file_magic_cmd=$lt_file_magic_cmd
22361 AR_FLAGS=$lt_AR_FLAGS
22363 # A symbol stripping program.
22366 # Commands used to install an old-style archive.
22368 old_postinstall_cmds=$lt_old_postinstall_cmds
22369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22374 # LTCC compiler flags.
22375 LTCFLAGS=$lt_CFLAGS
22377 # Take the output of nm and produce a listing of raw symbols and C names.
22378 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22380 # Transform the output of nm in a proper C declaration.
22381 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22383 # Transform the output of nm in a C name address pair.
22384 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22386 # Transform the output of nm in a C name address pair when lib prefix is needed.
22387 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22389 # The name of the directory that contains temporary libtool files.
22392 # Shell to use when invoking shell scripts.
22395 # An echo program that does not interpret backslashes.
22398 # Used to examine libraries when file_magic_cmd begins with "file".
22399 MAGIC_CMD=$MAGIC_CMD
22401 # Must we lock files when doing compilation?
22402 need_locks=$lt_need_locks
22404 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22405 DSYMUTIL=$lt_DSYMUTIL
22407 # Tool to change global to local symbols on Mac OS X.
22410 # Tool to manipulate fat objects and archives on Mac OS X.
22413 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22416 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22417 OTOOL64=$lt_OTOOL64
22419 # Old archive suffix (normally "a").
22422 # Shared library suffix (normally ".so").
22423 shrext_cmds=$lt_shrext_cmds
22425 # The commands to extract the exported symbol list from a shared archive.
22426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22428 # Variables whose values should be saved in libtool wrapper scripts and
22429 # restored at link time.
22430 variables_saved_for_relink=$lt_variables_saved_for_relink
22432 # Do we need the "lib" prefix for modules?
22433 need_lib_prefix=$need_lib_prefix
22435 # Do we need a version for libraries?
22436 need_version=$need_version
22438 # Library versioning type.
22439 version_type=$version_type
22441 # Shared library runtime path variable.
22442 runpath_var=$runpath_var
22444 # Shared library path variable.
22445 shlibpath_var=$shlibpath_var
22447 # Is shlibpath searched before the hard-coded library search path?
22448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22450 # Format of library name prefix.
22451 libname_spec=$lt_libname_spec
22453 # List of archive names. First name is the real one, the rest are links.
22454 # The last name is the one that the linker finds with -lNAME
22455 library_names_spec=$lt_library_names_spec
22457 # The coded name of the library, if different from the real name.
22458 soname_spec=$lt_soname_spec
22460 # Command to use after installation of a shared archive.
22461 postinstall_cmds=$lt_postinstall_cmds
22463 # Command to use after uninstallation of a shared archive.
22464 postuninstall_cmds=$lt_postuninstall_cmds
22466 # Commands used to finish a libtool library installation in a directory.
22467 finish_cmds=$lt_finish_cmds
22469 # As "finish_cmds", except a single script fragment to be evaled but
22471 finish_eval=$lt_finish_eval
22473 # Whether we should hardcode library paths into libraries.
22474 hardcode_into_libs=$hardcode_into_libs
22476 # Compile-time system search path for libraries.
22477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22479 # Run-time system search path for libraries.
22480 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22482 # Whether dlopen is supported.
22483 dlopen_support=$enable_dlopen
22485 # Whether dlopen of programs is supported.
22486 dlopen_self=$enable_dlopen_self
22488 # Whether dlopen of statically linked programs is supported.
22489 dlopen_self_static=$enable_dlopen_self_static
22491 # Commands to strip libraries.
22492 old_striplib=$lt_old_striplib
22493 striplib=$lt_striplib
22496 # The linker used to build libraries.
22499 # Commands used to build an old-style archive.
22500 old_archive_cmds=$lt_old_archive_cmds
22502 # A language specific compiler.
22505 # Is the compiler the GNU compiler?
22508 # Compiler flag to turn off builtin functions.
22509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22511 # How to pass a linker flag through the compiler.
22512 wl=$lt_lt_prog_compiler_wl
22514 # Additional compiler flags for building library objects.
22515 pic_flag=$lt_lt_prog_compiler_pic
22517 # Compiler flag to prevent dynamic linking.
22518 link_static_flag=$lt_lt_prog_compiler_static
22520 # Does compiler simultaneously support -c and -o options?
22521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22523 # Whether or not to add -lc for building shared libraries.
22524 build_libtool_need_lc=$archive_cmds_need_lc
22526 # Whether or not to disallow shared libs when runtime libs are static.
22527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22529 # Compiler flag to allow reflexive dlopens.
22530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22532 # Compiler flag to generate shared objects directly from archives.
22533 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22535 # Whether the compiler copes with passing no objects directly.
22536 compiler_needs_object=$lt_compiler_needs_object
22538 # Create an old-style archive from a shared archive.
22539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22541 # Create a temporary old-style archive to link instead of a shared archive.
22542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22544 # Commands used to build a shared archive.
22545 archive_cmds=$lt_archive_cmds
22546 archive_expsym_cmds=$lt_archive_expsym_cmds
22548 # Commands used to build a loadable module if different from building
22549 # a shared archive.
22550 module_cmds=$lt_module_cmds
22551 module_expsym_cmds=$lt_module_expsym_cmds
22553 # Whether we are building with GNU ld or not.
22554 with_gnu_ld=$lt_with_gnu_ld
22556 # Flag that allows shared libraries with undefined symbols to be built.
22557 allow_undefined_flag=$lt_allow_undefined_flag
22559 # Flag that enforces no undefined symbols.
22560 no_undefined_flag=$lt_no_undefined_flag
22562 # Flag to hardcode \$libdir into a binary during linking.
22563 # This must work even if \$libdir does not exist
22564 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22566 # If ld is used when linking, flag to hardcode \$libdir into a binary
22567 # during linking. This must work even if \$libdir does not exist.
22568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22570 # Whether we need a single "-rpath" flag with a separated argument.
22571 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22573 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22574 # DIR into the resulting binary.
22575 hardcode_direct=$hardcode_direct
22577 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22578 # DIR into the resulting binary and the resulting library dependency is
22579 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22580 # library is relocated.
22581 hardcode_direct_absolute=$hardcode_direct_absolute
22583 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22584 # into the resulting binary.
22585 hardcode_minus_L=$hardcode_minus_L
22587 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22588 # into the resulting binary.
22589 hardcode_shlibpath_var=$hardcode_shlibpath_var
22591 # Set to "yes" if building a shared library automatically hardcodes DIR
22592 # into the library and all subsequent libraries and executables linked
22594 hardcode_automatic=$hardcode_automatic
22596 # Set to yes if linker adds runtime paths of dependent libraries
22597 # to runtime path list.
22598 inherit_rpath=$inherit_rpath
22600 # Whether libtool must link a program against all its dependency libraries.
22601 link_all_deplibs=$link_all_deplibs
22603 # Fix the shell variable \$srcfile for the compiler.
22604 fix_srcfile_path=$lt_fix_srcfile_path
22606 # Set to "yes" if exported symbols are required.
22607 always_export_symbols=$always_export_symbols
22609 # The commands to list exported symbols.
22610 export_symbols_cmds=$lt_export_symbols_cmds
22612 # Symbols that should not be listed in the preloaded symbols.
22613 exclude_expsyms=$lt_exclude_expsyms
22615 # Symbols that must always be exported.
22616 include_expsyms=$lt_include_expsyms
22618 # Commands necessary for linking programs (against libraries) with templates.
22619 prelink_cmds=$lt_prelink_cmds
22621 # Specify filename containing input files.
22622 file_list_spec=$lt_file_list_spec
22624 # How to hardcode a shared library path into an executable.
22625 hardcode_action=$hardcode_action
22627 # ### END LIBTOOL CONFIG
22633 cat <<\_LT_EOF >> "$cfgfile"
22634 # AIX sometimes has problems with the GCC collect2 program. For some
22635 # reason, if we set the COLLECT_NAMES environment variable, the problems
22636 # vanish in a puff of smoke.
22637 if test "X${COLLECT_NAMES+set}" != Xset; then
22639 export COLLECT_NAMES
22646 ltmain="$ac_aux_dir/ltmain.sh"
22649 # We use sed instead of cat because bash on DJGPP gets confused if
22650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22651 # text mode, it properly converts lines to CR/LF. This bash problem
22652 # is reportedly fixed, but why not run on old versions too?
22653 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22654 || (rm -f "$cfgfile"; exit 1)
22658 cat << \_LT_EOF >> "$cfgfile"
22660 # func_dirname file append nondir_replacement
22661 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22662 # otherwise set result to NONDIR_REPLACEMENT.
22666 */*) func_dirname_result="${1%/*}${2}" ;;
22667 * ) func_dirname_result="${3}" ;;
22671 # func_basename file
22674 func_basename_result="${1##*/}"
22677 # func_dirname_and_basename file append nondir_replacement
22678 # perform func_basename and func_dirname in a single function
22680 # dirname: Compute the dirname of FILE. If nonempty,
22681 # add APPEND to the result, otherwise set result
22682 # to NONDIR_REPLACEMENT.
22683 # value returned in "$func_dirname_result"
22684 # basename: Compute filename of FILE.
22685 # value retuned in "$func_basename_result"
22686 # Implementation must be kept synchronized with func_dirname
22687 # and func_basename. For efficiency, we do not delegate to
22688 # those functions but instead duplicate the functionality here.
22689 func_dirname_and_basename ()
22692 */*) func_dirname_result="${1%/*}${2}" ;;
22693 * ) func_dirname_result="${3}" ;;
22695 func_basename_result="${1##*/}"
22698 # func_stripname prefix suffix name
22699 # strip PREFIX and SUFFIX off of NAME.
22700 # PREFIX and SUFFIX must not contain globbing or regex special
22701 # characters, hashes, percent signs, but SUFFIX may contain a leading
22702 # dot (in which case that matches only a dot).
22705 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22706 # positional parameters, so assign one to ordinary parameter first.
22707 func_stripname_result=${3}
22708 func_stripname_result=${func_stripname_result#"${1}"}
22709 func_stripname_result=${func_stripname_result%"${2}"}
22715 func_opt_split_opt=${1%%=*}
22716 func_opt_split_arg=${1#*=}
22723 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22724 *) func_lo2o_result=${1} ;;
22728 # func_xform libobj-or-source
22731 func_xform_result=${1%.*}.lo
22734 # func_arith arithmetic-term...
22737 func_arith_result=$(( $* ))
22741 # STRING may not start with a hyphen.
22744 func_len_result=${#1}
22749 *) # Bourne compatible functions.
22750 cat << \_LT_EOF >> "$cfgfile"
22752 # func_dirname file append nondir_replacement
22753 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22754 # otherwise set result to NONDIR_REPLACEMENT.
22757 # Extract subdirectory from the argument.
22758 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22759 if test "X$func_dirname_result" = "X${1}"; then
22760 func_dirname_result="${3}"
22762 func_dirname_result="$func_dirname_result${2}"
22766 # func_basename file
22769 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22773 # func_stripname prefix suffix name
22774 # strip PREFIX and SUFFIX off of NAME.
22775 # PREFIX and SUFFIX must not contain globbing or regex special
22776 # characters, hashes, percent signs, but SUFFIX may contain a leading
22777 # dot (in which case that matches only a dot).
22778 # func_strip_suffix prefix name
22782 .*) func_stripname_result=`$ECHO "X${3}" \
22783 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22784 *) func_stripname_result=`$ECHO "X${3}" \
22785 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22790 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22791 my_sed_long_arg='1s/^-[^=]*=//'
22796 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22797 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22803 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22806 # func_xform libobj-or-source
22809 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22812 # func_arith arithmetic-term...
22815 func_arith_result=`expr "$@"`
22819 # STRING may not start with a hyphen.
22822 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22828 case $lt_shell_append in
22830 cat << \_LT_EOF >> "$cfgfile"
22832 # func_append var value
22833 # Append VALUE to the end of shell variable VAR.
22841 cat << \_LT_EOF >> "$cfgfile"
22843 # func_append var value
22844 # Append VALUE to the end of shell variable VAR.
22855 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22856 || (rm -f "$cfgfile"; exit 1)
22858 mv -f "$cfgfile" "$ofile" ||
22859 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22868 { (exit 0); exit 0; }
22870 chmod +x $CONFIG_STATUS
22871 ac_clean_files=$ac_clean_files_save
22873 test $ac_write_fail = 0 ||
22874 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22875 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22876 { (exit 1); exit 1; }; }
22879 # configure is writing to config.log, and then calls config.status.
22880 # config.status does its own redirection, appending to config.log.
22881 # Unfortunately, on DOS this fails, as config.log is still kept open
22882 # by configure, so config.status won't be able to write to it; its
22883 # output is simply discarded. So we exec the FD to /dev/null,
22884 # effectively closing config.log, so it can be properly (re)opened and
22885 # appended to by config.status. When coming back to configure, we
22886 # need to make the FD available again.
22887 if test "$no_create" != yes; then
22889 ac_config_status_args=
22890 test "$silent" = yes &&
22891 ac_config_status_args="$ac_config_status_args --quiet"
22893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22896 # would make configure fail if this is the last instruction.
22897 $ac_cs_success || { (exit 1); exit 1; }
22899 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22900 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22901 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}