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
846 INSTALL_STRIP_PROGRAM
864 MAINTAINER_MODE_FALSE
914 program_transform_name
926 enable_option_checking
927 enable_maintainer_mode
929 enable_dependency_tracking
941 enable_debug_kmem_tracking
942 enable_atomic_spinlocks
944 ac_precious_vars='build_alias
955 # Initialize some variables set by options.
957 ac_init_version=false
958 ac_unrecognized_opts=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
969 program_transform_name=s,x,x,
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE}'
994 infodir='${datarootdir}/info'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1015 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1021 case $ac_dashdash$ac_option in
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1045 -datadir | --datadir | --datadi | --datad)
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1057 -disable-* | --disable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_$ac_useropt"
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1072 eval enable_$ac_useropt=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1311 { (exit 1); exit 1; }; }
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1321 eval with_$ac_useropt=no ;;
1324 # Obsolete; use --with-x.
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1341 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1342 Try \`$0 --help' for more information." >&2
1343 { (exit 1); exit 1; }; }
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1350 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1351 { (exit 1); exit 1; }; }
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1369 { (exit 1); exit 1; }; }
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1375 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1376 { (exit 1); exit 1; }; } ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1394 # Be sure to have absolute directory names.
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1400 { (exit 1); exit 1; }; }
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1415 If a cross compiler is detected then cross compile mode will be used." >&2
1416 elif test "x$build_alias" != "x$host_alias"; then
1422 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424 test "$silent" = yes && exec 6>/dev/null
1427 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di=`ls -di .` &&
1429 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1430 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1431 { (exit 1); exit 1; }; }
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1434 { (exit 1); exit 1; }; }
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1469 ac_srcdir_defaulted=no
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1474 { (exit 1); exit 1; }; }
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1479 { (exit 1); exit 1; }; }
1481 # When building in place, set srcdir=.
1482 if test "$ac_abs_confdir" = "$ac_pwd"; then
1485 # Remove unnecessary trailing slashes from srcdir.
1486 # Double slashes in file names in object file debugging info
1487 # mess up M-x gdb in Emacs.
1489 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 for ac_var in $ac_precious_vars; do
1492 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_env_${ac_var}_value=\$${ac_var}
1494 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 # Report the --help message.
1501 if test "$ac_init_help" = "long"; then
1502 # Omit some internal or obsolete options to make the list less imposing.
1503 # This message is too long to be a string in the A/UX 3.1 sh.
1505 \`configure' configures this package to adapt to many kinds of systems.
1507 Usage: $0 [OPTION]... [VAR=VALUE]...
1509 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1510 VAR=VALUE. See below for descriptions of some of the useful variables.
1512 Defaults for the options are specified in brackets.
1515 -h, --help display this help and exit
1516 --help=short display options specific to this package
1517 --help=recursive display the short help of all the included packages
1518 -V, --version display version information and exit
1519 -q, --quiet, --silent do not print \`checking...' messages
1520 --cache-file=FILE cache test results in FILE [disabled]
1521 -C, --config-cache alias for \`--cache-file=config.cache'
1522 -n, --no-create do not create output files
1523 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525 Installation directories:
1526 --prefix=PREFIX install architecture-independent files in PREFIX
1527 [$ac_default_prefix]
1528 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1531 By default, \`make install' will install all the files in
1532 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1533 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1534 for instance \`--prefix=\$HOME'.
1536 For better control, use the options below.
1538 Fine tuning of the installation directories:
1539 --bindir=DIR user executables [EPREFIX/bin]
1540 --sbindir=DIR system admin executables [EPREFIX/sbin]
1541 --libexecdir=DIR program executables [EPREFIX/libexec]
1542 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1543 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1544 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1545 --libdir=DIR object code libraries [EPREFIX/lib]
1546 --includedir=DIR C header files [PREFIX/include]
1547 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1548 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1549 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1550 --infodir=DIR info documentation [DATAROOTDIR/info]
1551 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1552 --mandir=DIR man documentation [DATAROOTDIR/man]
1553 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1554 --htmldir=DIR html documentation [DOCDIR]
1555 --dvidir=DIR dvi documentation [DOCDIR]
1556 --pdfdir=DIR pdf documentation [DOCDIR]
1557 --psdir=DIR ps documentation [DOCDIR]
1563 --program-prefix=PREFIX prepend PREFIX to installed program names
1564 --program-suffix=SUFFIX append SUFFIX to installed program names
1565 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1568 --build=BUILD configure for building on BUILD [guessed]
1569 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1570 --target=TARGET configure for building compilers for TARGET [HOST]
1574 if test -n "$ac_init_help"; then
1579 --disable-option-checking ignore unrecognized --enable/--with options
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-maintainer-mode enable make rules and dependencies not useful
1583 (and sometimes confusing) to the casual installer
1584 --enable-silent-rules less verbose build output (undo: `make V=1')
1585 --disable-silent-rules verbose build output (undo: `make V=0')
1586 --disable-dependency-tracking speeds up one-time build
1587 --enable-dependency-tracking do not reject slow dependency extractors
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-static[=PKGS] build static libraries [default=yes]
1590 --enable-fast-install[=PKGS]
1591 optimize for fast installation [default=yes]
1592 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --enable-debug Enable generic debug support [default=no]
1594 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1595 --enable-debug-kmem-tracking
1596 Enable detailed kmem tracking [default=no]
1597 --enable-atomic-spinlocks
1598 Atomic types use spinlocks [default=check]
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic try to use only PIC/non-PIC objects [default=use
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1607 --with-linux=PATH Path to kernel source
1608 --with-linux-obj=PATH Path to kernel build objects
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf 2.63
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.63. Invocation command line was
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 $as_echo "PATH: $as_dir"
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1760 ac_must_keep_next=false
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1771 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 -* ) ac_must_keep_next=true ;;
1792 ac_configure_args="$ac_configure_args '$ac_arg'"
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1816 # The following way of writing the cache mishandles newlines in values,
1818 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819 eval ac_val=\$$ac_var
1823 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1827 _ | IFS | as_nl) ;; #(
1828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1829 *) $as_unset $ac_var ;;
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 $as_echo "$ac_var='\''$ac_val'\''"
1864 if test -n "$ac_subst_files"; then
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 $as_echo "$ac_var='\''$ac_val'\''"
1882 if test -s confdefs.h; then
1892 test "$ac_signal" != 0 &&
1893 $as_echo "$as_me: caught signal $ac_signal"
1894 $as_echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer an explicitly selected file to automatically selected ones.
1939 if test -n "$CONFIG_SITE"; then
1940 ac_site_file1=$CONFIG_SITE
1941 elif test "x$prefix" != xNONE; then
1942 ac_site_file1=$prefix/share/config.site
1943 ac_site_file2=$prefix/etc/config.site
1945 ac_site_file1=$ac_default_prefix/share/config.site
1946 ac_site_file2=$ac_default_prefix/etc/config.site
1948 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950 test "x$ac_site_file" = xNONE && continue
1951 if test -r "$ac_site_file"; then
1952 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1959 if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 $as_echo "$as_me: loading cache $cache_file" >&6;}
1966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967 *) . "./$cache_file";;
1971 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 $as_echo "$as_me: creating cache $cache_file" >&6;}
1976 # Check that the precious variables saved in the cache have kept the same
1978 ac_cache_corrupted=false
1979 for ac_var in $ac_precious_vars; do
1980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981 eval ac_new_set=\$ac_env_${ac_var}_set
1982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983 eval ac_new_val=\$ac_env_${ac_var}_value
1984 case $ac_old_set,$ac_new_set in
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted=: ;;
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
1996 # differences in whitespace do not lead to failure.
1997 ac_old_val_w=`echo x $ac_old_val`
1998 ac_new_val_w=`echo x $ac_new_val`
1999 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2001 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2002 ac_cache_corrupted=:
2004 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2005 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2006 eval $ac_var=\$ac_old_val
2008 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2009 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2010 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2011 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2017 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026 if $ac_cache_corrupted; then
2027 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033 { (exit 1); exit 1; }; }
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2067 $as_echo_n "checking metadata... " >&6; }
2070 _spl_ac_meta_got_file=no
2071 if test -f "$META"; then
2072 _spl_ac_meta_got_file=yes
2074 SPL_META_NAME=`perl -n\
2075 -e "BEGIN { \\$key=shift @ARGV; }"\
2076 -e "next unless s/^\s*\\$key[:=]//i;"\
2077 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2080 -e "s/^(['\"])(.*)\1/\\$2/;"\
2082 -e "END { print \\$val if defined \\$val; }"\
2083 '(?:NAME|PROJECT|PACKAGE)' $META`;
2084 if test -n "$SPL_META_NAME"; then
2086 cat >>confdefs.h <<_ACEOF
2087 #define SPL_META_NAME "$SPL_META_NAME"
2093 SPL_META_VERSION=`perl -n\
2094 -e "BEGIN { \\$key=shift @ARGV; }"\
2095 -e "next unless s/^\s*\\$key[:=]//i;"\
2096 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2099 -e "s/^(['\"])(.*)\1/\\$2/;"\
2101 -e "END { print \\$val if defined \\$val; }"\
2103 if test -n "$SPL_META_VERSION"; then
2105 cat >>confdefs.h <<_ACEOF
2106 #define SPL_META_VERSION "$SPL_META_VERSION"
2112 SPL_META_RELEASE=`perl -n\
2113 -e "BEGIN { \\$key=shift @ARGV; }"\
2114 -e "next unless s/^\s*\\$key[:=]//i;"\
2115 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2118 -e "s/^(['\"])(.*)\1/\\$2/;"\
2120 -e "END { print \\$val if defined \\$val; }"\
2122 if test -n "$SPL_META_RELEASE"; then
2124 cat >>confdefs.h <<_ACEOF
2125 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2131 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2132 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2133 test -n "$SPL_META_RELEASE" &&
2134 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2136 cat >>confdefs.h <<_ACEOF
2137 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2143 SPL_META_DATA=`perl -n\
2144 -e "BEGIN { \\$key=shift @ARGV; }"\
2145 -e "next unless s/^\s*\\$key[:=]//i;"\
2146 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2149 -e "s/^(['\"])(.*)\1/\\$2/;"\
2151 -e "END { print \\$val if defined \\$val; }"\
2153 if test -n "$SPL_META_DATA"; then
2155 cat >>confdefs.h <<_ACEOF
2156 #define SPL_META_DATA "$SPL_META_DATA"
2162 SPL_META_AUTHOR=`perl -n\
2163 -e "BEGIN { \\$key=shift @ARGV; }"\
2164 -e "next unless s/^\s*\\$key[:=]//i;"\
2165 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2168 -e "s/^(['\"])(.*)\1/\\$2/;"\
2170 -e "END { print \\$val if defined \\$val; }"\
2172 if test -n "$SPL_META_AUTHOR"; then
2174 cat >>confdefs.h <<_ACEOF
2175 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2182 SPL_META_LT_CURRENT=`perl -n\
2183 -e "BEGIN { \\$key=shift @ARGV; }"\
2184 -e "next unless s/^\s*\\$key[:=]//i;"\
2185 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2188 -e "s/^(['\"])(.*)\1/\\$2/;"\
2190 -e "END { print \\$val if defined \\$val; }"\
2191 'LT_CURRENT' $META`;
2192 SPL_META_LT_REVISION=`perl -n\
2193 -e "BEGIN { \\$key=shift @ARGV; }"\
2194 -e "next unless s/^\s*\\$key[:=]//i;"\
2195 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2198 -e "s/^(['\"])(.*)\1/\\$2/;"\
2200 -e "END { print \\$val if defined \\$val; }"\
2201 'LT_REVISION' $META`;
2202 SPL_META_LT_AGE=`perl -n\
2203 -e "BEGIN { \\$key=shift @ARGV; }"\
2204 -e "next unless s/^\s*\\$key[:=]//i;"\
2205 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2208 -e "s/^(['\"])(.*)\1/\\$2/;"\
2210 -e "END { print \\$val if defined \\$val; }"\
2212 if test -n "$SPL_META_LT_CURRENT" \
2213 -o -n "$SPL_META_LT_REVISION" \
2214 -o -n "$SPL_META_LT_AGE"; then
2215 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2216 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2217 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2219 cat >>confdefs.h <<_ACEOF
2220 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2224 cat >>confdefs.h <<_ACEOF
2225 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2229 cat >>confdefs.h <<_ACEOF
2230 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2239 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2240 $as_echo "$_spl_ac_meta_got_file" >&6; }
2244 for ac_dir in config "$srcdir"/config; do
2245 if test -f "$ac_dir/install-sh"; then
2247 ac_install_sh="$ac_aux_dir/install-sh -c"
2249 elif test -f "$ac_dir/install.sh"; then
2251 ac_install_sh="$ac_aux_dir/install.sh -c"
2253 elif test -f "$ac_dir/shtool"; then
2255 ac_install_sh="$ac_aux_dir/shtool install -c"
2259 if test -z "$ac_aux_dir"; then
2260 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2261 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2262 { (exit 1); exit 1; }; }
2265 # These three variables are undocumented and unsupported,
2266 # and are intended to be withdrawn in a future Autoconf release.
2267 # They can cause serious problems if a builder's source tree is in a directory
2268 # whose full name contains unusual characters.
2269 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2274 # Make sure we can run config.sub.
2275 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2276 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2277 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2278 { (exit 1); exit 1; }; }
2280 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2281 $as_echo_n "checking build system type... " >&6; }
2282 if test "${ac_cv_build+set}" = set; then
2283 $as_echo_n "(cached) " >&6
2285 ac_build_alias=$build_alias
2286 test "x$ac_build_alias" = x &&
2287 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2288 test "x$ac_build_alias" = x &&
2289 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2290 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2291 { (exit 1); exit 1; }; }
2292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2293 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2294 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2295 { (exit 1); exit 1; }; }
2298 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2299 $as_echo "$ac_cv_build" >&6; }
2300 case $ac_cv_build in
2302 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2303 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2304 { (exit 1); exit 1; }; };;
2307 ac_save_IFS=$IFS; IFS='-'
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2317 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2320 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2321 $as_echo_n "checking host system type... " >&6; }
2322 if test "${ac_cv_host+set}" = set; then
2323 $as_echo_n "(cached) " >&6
2325 if test "x$host_alias" = x; then
2326 ac_cv_host=$ac_cv_build
2328 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2329 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2330 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2331 { (exit 1); exit 1; }; }
2335 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2336 $as_echo "$ac_cv_host" >&6; }
2339 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2340 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2341 { (exit 1); exit 1; }; };;
2344 ac_save_IFS=$IFS; IFS='-'
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2357 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2358 $as_echo_n "checking target system type... " >&6; }
2359 if test "${ac_cv_target+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2362 if test "x$target_alias" = x; then
2363 ac_cv_target=$ac_cv_host
2365 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2366 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2367 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2368 { (exit 1); exit 1; }; }
2372 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2373 $as_echo "$ac_cv_target" >&6; }
2374 case $ac_cv_target in
2376 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2377 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2378 { (exit 1); exit 1; }; };;
2380 target=$ac_cv_target
2381 ac_save_IFS=$IFS; IFS='-'
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2391 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2394 # The aliases save the names the user supplied, while $host etc.
2395 # will get canonicalized.
2396 test -n "$target_alias" &&
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2399 program_prefix=${target_alias}-
2401 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2403 # Check whether --enable-maintainer-mode was given.
2404 if test "${enable_maintainer_mode+set}" = set; then
2405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2407 USE_MAINTAINER_MODE=no
2410 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2412 if test $USE_MAINTAINER_MODE = yes; then
2413 MAINTAINER_MODE_TRUE=
2414 MAINTAINER_MODE_FALSE='#'
2416 MAINTAINER_MODE_TRUE='#'
2417 MAINTAINER_MODE_FALSE=
2420 MAINT=$MAINTAINER_MODE_TRUE
2423 # Check whether --enable-silent-rules was given.
2424 if test "${enable_silent_rules+set}" = set; then
2425 enableval=$enable_silent_rules;
2428 case $enable_silent_rules in
2429 yes) AM_DEFAULT_VERBOSITY=0;;
2430 no) AM_DEFAULT_VERBOSITY=1;;
2431 *) AM_DEFAULT_VERBOSITY=1;;
2435 am__api_version='1.11'
2437 # Find a good install program. We prefer a C program (faster),
2438 # so one script is as good as another. But avoid the broken or
2439 # incompatible versions:
2440 # SysV /etc/install, /usr/sbin/install
2441 # SunOS /usr/etc/install
2442 # IRIX /sbin/install
2444 # AmigaOS /C/install, which installs bootblocks on floppy discs
2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2448 # OS/2's system install, which has a completely different semantic
2449 # ./install, which can be erroneously created by make from ./install.sh.
2450 # Reject install programs that cannot install multiple files.
2451 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2452 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2453 if test -z "$INSTALL"; then
2454 if test "${ac_cv_path_install+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 # Account for people who put trailing slashes in PATH elements.
2464 ./ | .// | /cC/* | \
2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2469 # OSF1 and SCO ODT 3.0 have their own names for install.
2470 # Don't use installbsd from OSF since it installs stuff as root
2472 for ac_prog in ginstall scoinst install; do
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2475 if test $ac_prog = install &&
2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # AIX install. It has an incompatible calling convention.
2479 elif test $ac_prog = install &&
2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # program-specific install script used by HP pwplus--don't use.
2484 rm -rf conftest.one conftest.two conftest.dir
2485 echo one > conftest.one
2486 echo two > conftest.two
2488 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2489 test -s conftest.one && test -s conftest.two &&
2490 test -s conftest.dir/conftest.one &&
2491 test -s conftest.dir/conftest.two
2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2506 rm -rf conftest.one conftest.two conftest.dir
2509 if test "${ac_cv_path_install+set}" = set; then
2510 INSTALL=$ac_cv_path_install
2512 # As a last resort, use the slow shell script. Don't cache a
2513 # value for INSTALL within a source directory, because that will
2514 # break other packages using the cache if that directory is
2515 # removed, or if the value is a relative name.
2516 INSTALL=$ac_install_sh
2519 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2520 $as_echo "$INSTALL" >&6; }
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2531 $as_echo_n "checking whether build environment is sane... " >&6; }
2534 echo timestamp > conftest.file
2535 # Reject unsafe characters in $srcdir or the absolute working directory
2536 # name. Accept space and tab only in the latter.
2540 *[\\\"\#\$\&\'\`$am_lf]*)
2541 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2542 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2543 { (exit 1); exit 1; }; };;
2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2547 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2548 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2549 { (exit 1); exit 1; }; };;
2552 # Do `set' in a subshell so we don't clobber the current shell's
2553 # arguments. Must try -L first in case configure is actually a
2554 # symlink; some systems play weird games with the mod time of symlinks
2555 # (eg FreeBSD returns the mod time of the symlink's containing
2558 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2559 if test "$*" = "X"; then
2561 set X `ls -t "$srcdir/configure" conftest.file`
2564 if test "$*" != "X $srcdir/configure conftest.file" \
2565 && test "$*" != "X conftest.file $srcdir/configure"; then
2567 # If neither matched, then we have a broken ls. This can happen
2568 # if, for instance, CONFIG_SHELL is bash and it inherits a
2569 # broken ls alias from the environment. This has actually
2570 # happened. Such a system could not be considered "sane".
2571 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2572 alias in your environment" >&5
2573 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2574 alias in your environment" >&2;}
2575 { (exit 1); exit 1; }; }
2578 test "$2" = conftest.file
2584 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2585 Check your system clock" >&5
2586 $as_echo "$as_me: error: newly created file is older than distributed files!
2587 Check your system clock" >&2;}
2588 { (exit 1); exit 1; }; }
2590 { $as_echo "$as_me:$LINENO: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 test "$program_prefix" != NONE &&
2593 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2594 # Use a double $ so make ignores it.
2595 test "$program_suffix" != NONE &&
2596 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2597 # Double any \ or $.
2598 # By default was `s,x,x', remove it if useless.
2599 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2600 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2602 # expand $ac_aux_dir to an absolute path
2603 am_aux_dir=`cd $ac_aux_dir && pwd`
2605 if test x"${MISSING+set}" != xset; then
2608 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2613 # Use eval to expand $SHELL
2614 if eval "$MISSING --run true"; then
2615 am_missing_run="$MISSING --run "
2618 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2619 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2622 if test x"${install_sh}" != xset; then
2625 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 install_sh="\${SHELL} $am_aux_dir/install-sh"
2631 # Installed binaries are usually stripped using `strip' when the user
2632 # run `make install-strip'. However `strip' might not be the right
2633 # tool to use in cross-compilation environments, therefore Automake
2634 # will honor the `STRIP' environment variable to overrule this program.
2635 if test "$cross_compiling" != no; then
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}strip; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_STRIP+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2644 if test -n "$STRIP"; then
2645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 STRIP=$ac_cv_prog_STRIP
2665 if test -n "$STRIP"; then
2666 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2667 $as_echo "$STRIP" >&6; }
2669 { $as_echo "$as_me:$LINENO: result: no" >&5
2670 $as_echo "no" >&6; }
2675 if test -z "$ac_cv_prog_STRIP"; then
2677 # Extract the first word of "strip", so it can be a program name with args.
2678 set dummy strip; ac_word=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$ac_ct_STRIP"; then
2685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_STRIP="strip"
2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2705 if test -n "$ac_ct_STRIP"; then
2706 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2707 $as_echo "$ac_ct_STRIP" >&6; }
2709 { $as_echo "$as_me:$LINENO: result: no" >&5
2710 $as_echo "no" >&6; }
2713 if test "x$ac_ct_STRIP" = x; then
2716 case $cross_compiling:$ac_tool_warned in
2718 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2725 STRIP="$ac_cv_prog_STRIP"
2729 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2732 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2733 if test -z "$MKDIR_P"; then
2734 if test "${ac_cv_path_mkdir+set}" = set; then
2735 $as_echo_n "(cached) " >&6
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2741 test -z "$as_dir" && as_dir=.
2742 for ac_prog in mkdir gmkdir; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2745 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2746 'mkdir (GNU coreutils) '* | \
2747 'mkdir (coreutils) '* | \
2748 'mkdir (fileutils) '4.1*)
2749 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759 if test "${ac_cv_path_mkdir+set}" = set; then
2760 MKDIR_P="$ac_cv_path_mkdir -p"
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for MKDIR_P within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 test -d ./--version && rmdir ./--version
2767 MKDIR_P="$ac_install_sh -d"
2770 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2771 $as_echo "$MKDIR_P" >&6; }
2775 [\\/$]* | ?:[\\/]*) ;;
2776 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2779 for ac_prog in gawk mawk nawk awk
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_AWK+set}" = set; then
2786 $as_echo_n "(cached) " >&6
2788 if test -n "$AWK"; then
2789 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_AWK="$ac_prog"
2799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 if test -n "$AWK"; then
2810 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2811 $as_echo "$AWK" >&6; }
2813 { $as_echo "$as_me:$LINENO: result: no" >&5
2814 $as_echo "no" >&6; }
2818 test -n "$AWK" && break
2821 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2822 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2824 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2825 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2826 $as_echo_n "(cached) " >&6
2828 cat >conftest.make <<\_ACEOF
2831 @echo '@@@%%%=$(MAKE)=@@@%%%'
2833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2834 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2836 eval ac_cv_prog_make_${ac_make}_set=yes;;
2838 eval ac_cv_prog_make_${ac_make}_set=no;;
2842 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2843 { $as_echo "$as_me:$LINENO: result: yes" >&5
2844 $as_echo "yes" >&6; }
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 SET_MAKE="MAKE=${MAKE-make}"
2852 rm -rf .tst 2>/dev/null
2853 mkdir .tst 2>/dev/null
2854 if test -d .tst; then
2859 rmdir .tst 2>/dev/null
2861 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2863 # is not polluted with repeated "-I."
2864 am__isrc=' -I$(srcdir)'
2865 # test to see if srcdir already configured
2866 if test -f $srcdir/config.status; then
2867 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2868 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2869 { (exit 1); exit 1; }; }
2873 # test whether we have cygpath
2874 if test -z "$CYGPATH_W"; then
2875 if (cygpath --version) >/dev/null 2>/dev/null; then
2876 CYGPATH_W='cygpath -w'
2883 # Define the identity of the package.
2884 PACKAGE=$SPL_META_NAME
2885 VERSION=$SPL_META_VERSION
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE "$PACKAGE"
2893 cat >>confdefs.h <<_ACEOF
2894 #define VERSION "$VERSION"
2897 # Some tools Automake needs.
2899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2913 # We need awk for the "check" target. The system "awk" is bad on
2915 # Always define AMTAR for backward compatibility.
2917 AMTAR=${AMTAR-"${am_missing_run}tar"}
2919 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2925 ac_config_headers="$ac_config_headers spl_config.h"
2928 # Find a good install program. We prefer a C program (faster),
2929 # so one script is as good as another. But avoid the broken or
2930 # incompatible versions:
2931 # SysV /etc/install, /usr/sbin/install
2932 # SunOS /usr/etc/install
2933 # IRIX /sbin/install
2935 # AmigaOS /C/install, which installs bootblocks on floppy discs
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # OS/2's system install, which has a completely different semantic
2940 # ./install, which can be erroneously created by make from ./install.sh.
2941 # Reject install programs that cannot install multiple files.
2942 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2944 if test -z "$INSTALL"; then
2945 if test "${ac_cv_path_install+set}" = set; then
2946 $as_echo_n "(cached) " >&6
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 # Account for people who put trailing slashes in PATH elements.
2955 ./ | .// | /cC/* | \
2956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2960 # OSF1 and SCO ODT 3.0 have their own names for install.
2961 # Don't use installbsd from OSF since it installs stuff as root
2963 for ac_prog in ginstall scoinst install; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2966 if test $ac_prog = install &&
2967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # AIX install. It has an incompatible calling convention.
2970 elif test $ac_prog = install &&
2971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # program-specific install script used by HP pwplus--don't use.
2975 rm -rf conftest.one conftest.two conftest.dir
2976 echo one > conftest.one
2977 echo two > conftest.two
2979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2980 test -s conftest.one && test -s conftest.two &&
2981 test -s conftest.dir/conftest.one &&
2982 test -s conftest.dir/conftest.two
2984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2997 rm -rf conftest.one conftest.two conftest.dir
3000 if test "${ac_cv_path_install+set}" = set; then
3001 INSTALL=$ac_cv_path_install
3003 # As a last resort, use the slow shell script. Don't cache a
3004 # value for INSTALL within a source directory, because that will
3005 # break other packages using the cache if that directory is
3006 # removed, or if the value is a relative name.
3007 INSTALL=$ac_install_sh
3010 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3011 $as_echo "$INSTALL" >&6; }
3013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3014 # It thinks the first close brace ends the variable substitution.
3015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3059 { $as_echo "$as_me:$LINENO: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$ac_cv_prog_CC"; then
3067 # Extract the first word of "gcc", so it can be a program name with args.
3068 set dummy gcc; ac_word=$2
3069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_CC="gcc"
3085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3099 { $as_echo "$as_me:$LINENO: result: no" >&5
3100 $as_echo "no" >&6; }
3103 if test "x$ac_ct_CC" = x; then
3106 case $cross_compiling:$ac_tool_warned in
3108 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}cc; ac_word=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_CC+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
3138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3159 if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161 set dummy cc; ac_word=$2
3162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected=yes
3183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy $ac_cv_prog_CC
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in cl.exe
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3251 { $as_echo "$as_me:$LINENO: result: no" >&5
3252 $as_echo "no" >&6; }
3256 test -n "$CC" && break
3259 if test -z "$CC"; then
3261 for ac_prog in cl.exe
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_CC="$ac_prog"
3281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3295 { $as_echo "$as_me:$LINENO: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$ac_ct_CC" && break
3303 if test "x$ac_ct_CC" = x; then
3306 case $cross_compiling:$ac_tool_warned in
3308 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3319 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3322 See \`config.log' for more details." >&5
3323 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3324 See \`config.log' for more details." >&2;}
3325 { (exit 1); exit 1; }; }; }
3327 # Provide some information about the compiler.
3328 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3331 { (ac_try="$ac_compiler --version >&5"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_compiler --version >&5") 2>&5
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }
3342 { (ac_try="$ac_compiler -v >&5"
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3348 $as_echo "$ac_try_echo") >&5
3349 (eval "$ac_compiler -v >&5") 2>&5
3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353 { (ac_try="$ac_compiler -V >&5"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3359 $as_echo "$ac_try_echo") >&5
3360 (eval "$ac_compiler -V >&5") 2>&5
3362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3380 ac_clean_files_save=$ac_clean_files
3381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3382 # Try to create an executable without -o first, disregard a.out.
3383 # It will help us diagnose broken compilers, and finding out an intuition
3385 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3386 $as_echo_n "checking for C compiler default output file name... " >&6; }
3387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389 # The possible output files:
3390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3393 for ac_file in $ac_files
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3402 if { (ac_try="$ac_link_default"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_link_default") 2>&5
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; then
3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3415 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3416 # so that the user can short-circuit this test for compilers unknown to
3418 for ac_file in $ac_files ''
3420 test -f "$ac_file" || continue
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3425 # We found the default executable, but exeext='' is most
3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 # We set ac_cv_exeext here because the later test for it is not
3434 # safe: cross compilers may not add the suffix if given an `-o'
3435 # argument, so we may need to know it at that point already.
3436 # Even if this section looks crufty: it has the advantage of
3443 test "$ac_cv_exeext" = no && ac_cv_exeext=
3449 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3450 $as_echo "$ac_file" >&6; }
3451 if test -z "$ac_file"; then
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3458 See \`config.log' for more details." >&5
3459 $as_echo "$as_me: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&2;}
3461 { (exit 77); exit 77; }; }; }
3464 ac_exeext=$ac_cv_exeext
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3469 $as_echo_n "checking whether the C compiler works... " >&6; }
3470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3471 # If not cross compiling, check that we can run a simple program.
3472 if test "$cross_compiling" != yes; then
3473 if { ac_try='./$ac_file'
3474 { (case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479 $as_echo "$ac_try_echo") >&5
3480 (eval "$ac_try") 2>&5
3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3486 if test "$cross_compiling" = maybe; then
3489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details." >&5
3494 $as_echo "$as_me: error: cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }; }
3501 { $as_echo "$as_me:$LINENO: result: yes" >&5
3502 $as_echo "yes" >&6; }
3504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505 ac_clean_files=$ac_clean_files_save
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3511 $as_echo "$cross_compiling" >&6; }
3513 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { (ac_try="$ac_link"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_link") 2>&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; then
3526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe'), while it won't with
3530 for ac_file in conftest.exe conftest conftest.*; do
3531 test -f "$ac_file" || continue
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&5
3544 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3545 See \`config.log' for more details." >&2;}
3546 { (exit 1); exit 1; }; }; }
3549 rm -f conftest$ac_cv_exeext
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3551 $as_echo "$ac_cv_exeext" >&6; }
3553 rm -f conftest.$ac_ext
3554 EXEEXT=$ac_cv_exeext
3556 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3557 $as_echo_n "checking for suffix of object files... " >&6; }
3558 if test "${ac_cv_objext+set}" = set; then
3559 $as_echo_n "(cached) " >&6
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.o conftest.obj
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_compile") 2>&5
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; then
3588 for ac_file in conftest.o conftest.obj conftest.*; do
3589 test -f "$ac_file" || continue;
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3597 $as_echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3600 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3603 See \`config.log' for more details." >&5
3604 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }; }
3609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3612 $as_echo "$ac_cv_objext" >&6; }
3613 OBJEXT=$ac_cv_objext
3615 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3616 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3618 $as_echo_n "(cached) " >&6
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3669 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3670 if test $ac_compiler_gnu = yes; then
3675 ac_test_CFLAGS=${CFLAGS+set}
3676 ac_save_CFLAGS=$CFLAGS
3677 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3678 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3679 if test "${ac_cv_prog_cc_g+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3682 ac_save_c_werror_flag=$ac_c_werror_flag
3683 ac_c_werror_flag=yes
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3747 $as_echo "$ac_try_echo") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3750 grep -v '^ *+' conftest.er1 >conftest.err
3752 cat conftest.err >&5
3753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3760 $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3815 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3816 $as_echo "$ac_cv_prog_cc_g" >&6; }
3817 if test "$ac_test_CFLAGS" = set; then
3818 CFLAGS=$ac_save_CFLAGS
3819 elif test $ac_cv_prog_cc_g = yes; then
3820 if test "$GCC" = yes; then
3826 if test "$GCC" = yes; then
3832 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3834 if test "${ac_cv_prog_cc_c89+set}" = set; then
3835 $as_echo_n "(cached) " >&6
3837 ac_cv_prog_cc_c89=no
3839 cat >conftest.$ac_ext <<_ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3863 s = g (p, va_arg (v,int));
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3869 function prototypes and stuff, but not '\xHH' hex character constants.
3870 These don't provoke an error unfortunately, instead are silently treated
3871 as 'x'. The following induces an error, until -std is added to get
3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3873 array size at least. It's necessary to write '\x00'==0 to get something
3874 that's true only with -std. */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878 inside strings and character constants. */
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 CC="$ac_save_CC $ac_arg"
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_compile") 2>conftest.er1
3910 grep -v '^ *+' conftest.er1 >conftest.err
3912 cat conftest.err >&5
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } && {
3915 test -z "$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 } && test -s conftest.$ac_objext; then
3918 ac_cv_prog_cc_c89=$ac_arg
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3926 rm -f core conftest.err conftest.$ac_objext
3927 test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 rm -f conftest.$ac_ext
3934 case "x$ac_cv_prog_cc_c89" in
3936 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3937 $as_echo "none needed" >&6; } ;;
3939 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3940 $as_echo "unsupported" >&6; } ;;
3942 CC="$CC $ac_cv_prog_cc_c89"
3943 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3944 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953 DEPDIR="${am__leading_dot}deps"
3955 ac_config_commands="$ac_config_commands depfiles"
3958 am_make=${MAKE-make}
3959 cat > confinc << 'END'
3961 @echo this is the am__doit target
3964 # If we don't find an include directive, just comment out the code.
3965 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3966 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3970 # First try GNU make style include.
3971 echo "include confinc" > confmf
3972 # Ignore all kinds of additional output from `make'.
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982 echo '.include "confinc"' > confmf
3983 case `$am_make -s -f confmf 2> /dev/null` in #(
3984 *the\ am__doit\ target*)
3985 am__include=.include
3993 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3994 $as_echo "$_am_result" >&6; }
3995 rm -f confinc confmf
3997 # Check whether --enable-dependency-tracking was given.
3998 if test "${enable_dependency_tracking+set}" = set; then
3999 enableval=$enable_dependency_tracking;
4002 if test "x$enable_dependency_tracking" != xno; then
4003 am_depcomp="$ac_aux_dir/depcomp"
4006 if test "x$enable_dependency_tracking" != xno; then
4016 depcc="$CC" am_compiler_list=
4018 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4019 $as_echo_n "checking dependency style of $depcc... " >&6; }
4020 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4021 $as_echo_n "(cached) " >&6
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
4027 # making a dummy file named `D' -- because `-MD' means `put the output
4030 # Copy depcomp to subdir because otherwise we won't find it if we're
4031 # using a relative directory.
4032 cp "$am_depcomp" conftest.dir
4034 # We will build objects and dependencies in a subdirectory because
4035 # it helps to detect inapplicable dependency modes. For instance
4036 # both Tru64's cc and ICC support -MD to output dependencies as a
4037 # side effect of compilation, but ICC will put the dependencies in
4038 # the current directory while Tru64 will put them in the object
4042 am_cv_CC_dependencies_compiler_type=none
4043 if test "$am_compiler_list" = ""; then
4044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4047 case " $depcc " in #(
4048 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4051 for depmode in $am_compiler_list; do
4052 # Setup a source with many dependencies, because some compilers
4053 # like to wrap large dependency lists on column 80 (with \), and
4054 # we should not choose a depcomp mode which is confused by this.
4056 # We need to recreate these files for each test, as the compiler may
4057 # overwrite some of them when testing with obscure command lines.
4058 # This happens at least with the AIX C compiler.
4060 for i in 1 2 3 4 5 6; do
4061 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063 # Solaris 8's {/usr,}/bin/sh.
4064 touch sub/conftst$i.h
4066 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4069 # mode. It turns out that the SunPro C++ compiler does not properly
4070 # handle `-M -o', and we need to detect this. Also, some Intel
4071 # versions had trouble with output in subdirs
4072 am__obj=sub/conftest.${OBJEXT-o}
4073 am__minus_obj="-o $am__obj"
4076 # This depmode causes a compiler race in universal mode.
4077 test "$am__universal" = false || continue
4080 # after this tag, mechanisms are not by side-effect, so they'll
4081 # only be used when explicitly requested
4082 if test "x$enable_dependency_tracking" = xyes; then
4088 msvisualcpp | msvcmsys)
4089 # This compiler won't grok `-c -o', but also, the minuso test has
4090 # not run yet. These depmodes are late enough in the game, and
4091 # so weak that their functioning should not be impacted.
4092 am__obj=conftest.${OBJEXT-o}
4097 if depmode=$depmode \
4098 source=sub/conftest.c object=$am__obj \
4099 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4100 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4101 >/dev/null 2>conftest.err &&
4102 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4103 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4104 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4105 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4106 # icc doesn't choke on unknown options, it will just issue warnings
4107 # or remarks (even with -Werror). So we grep stderr for any message
4108 # that says an option was ignored or not supported.
4109 # When given -MP, icc 7.0 and 7.1 complain thusly:
4110 # icc: Command line warning: ignoring option '-M'; no argument required
4111 # The diagnosis changed in icc 8.0:
4112 # icc: Command line remark: option '-MP' not supported
4113 if (grep 'ignoring option' conftest.err ||
4114 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4115 am_cv_CC_dependencies_compiler_type=$depmode
4124 am_cv_CC_dependencies_compiler_type=none
4128 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4129 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4130 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4133 test "x$enable_dependency_tracking" != xno \
4134 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4136 am__fastdepCC_FALSE='#'
4138 am__fastdepCC_TRUE='#'
4139 am__fastdepCC_FALSE=
4145 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4146 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4151 macro_version='2.2.6'
4152 macro_revision='1.3012'
4166 ltmain="$ac_aux_dir/ltmain.sh"
4168 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4170 if test "${ac_cv_path_SED+set}" = set; then
4171 $as_echo_n "(cached) " >&6
4173 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4174 for ac_i in 1 2 3 4 5 6 7; do
4175 ac_script="$ac_script$as_nl$ac_script"
4177 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4178 $as_unset ac_script || ac_script=
4179 if test -z "$SED"; then
4180 ac_path_SED_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in sed gsed; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4191 # Check for GNU ac_path_SED and select it if it is found.
4192 # Check for GNU $ac_path_SED
4193 case `"$ac_path_SED" --version 2>&1` in
4195 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4198 $as_echo_n 0123456789 >"conftest.in"
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 $as_echo '' >> "conftest.nl"
4205 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_SED_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_SED="$ac_path_SED"
4211 ac_path_SED_max=$ac_count
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 $ac_path_SED_found && break 3
4224 if test -z "$ac_cv_path_SED"; then
4225 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4226 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4227 { (exit 1); exit 1; }; }
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4235 $as_echo "$ac_cv_path_SED" >&6; }
4236 SED="$ac_cv_path_SED"
4239 test -z "$SED" && SED=sed
4240 Xsed="$SED -e 1s/^X//"
4252 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4254 if test "${ac_cv_path_GREP+set}" = set; then
4255 $as_echo_n "(cached) " >&6
4257 if test -z "$GREP"; then
4258 ac_path_GREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in grep ggrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4268 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4269 # Check for GNU ac_path_GREP and select it if it is found.
4270 # Check for GNU $ac_path_GREP
4271 case `"$ac_path_GREP" --version 2>&1` in
4273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4276 $as_echo_n 0123456789 >"conftest.in"
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 $as_echo 'GREP' >> "conftest.nl"
4283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 ac_count=`expr $ac_count + 1`
4286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_GREP="$ac_path_GREP"
4289 ac_path_GREP_max=$ac_count
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 $ac_path_GREP_found && break 3
4302 if test -z "$ac_cv_path_GREP"; then
4303 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4304 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4305 { (exit 1); exit 1; }; }
4308 ac_cv_path_GREP=$GREP
4312 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4313 $as_echo "$ac_cv_path_GREP" >&6; }
4314 GREP="$ac_cv_path_GREP"
4317 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4318 $as_echo_n "checking for egrep... " >&6; }
4319 if test "${ac_cv_path_EGREP+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4323 then ac_cv_path_EGREP="$GREP -E"
4325 if test -z "$EGREP"; then
4326 ac_path_EGREP_found=false
4327 # Loop through the user's path and test for each of PROGNAME-LIST
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in egrep; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4336 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4337 # Check for GNU ac_path_EGREP and select it if it is found.
4338 # Check for GNU $ac_path_EGREP
4339 case `"$ac_path_EGREP" --version 2>&1` in
4341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4344 $as_echo_n 0123456789 >"conftest.in"
4347 cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 mv "conftest.tmp" "conftest.in"
4349 cp "conftest.in" "conftest.nl"
4350 $as_echo 'EGREP' >> "conftest.nl"
4351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 ac_count=`expr $ac_count + 1`
4354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4355 # Best one so far, save it but keep looking for a better one
4356 ac_cv_path_EGREP="$ac_path_EGREP"
4357 ac_path_EGREP_max=$ac_count
4359 # 10*(2^10) chars as input seems more than enough
4360 test $ac_count -gt 10 && break
4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 $ac_path_EGREP_found && break 3
4370 if test -z "$ac_cv_path_EGREP"; then
4371 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4372 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4373 { (exit 1); exit 1; }; }
4376 ac_cv_path_EGREP=$EGREP
4381 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4382 $as_echo "$ac_cv_path_EGREP" >&6; }
4383 EGREP="$ac_cv_path_EGREP"
4386 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4387 $as_echo_n "checking for fgrep... " >&6; }
4388 if test "${ac_cv_path_FGREP+set}" = set; then
4389 $as_echo_n "(cached) " >&6
4391 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4392 then ac_cv_path_FGREP="$GREP -F"
4394 if test -z "$FGREP"; then
4395 ac_path_FGREP_found=false
4396 # Loop through the user's path and test for each of PROGNAME-LIST
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401 test -z "$as_dir" && as_dir=.
4402 for ac_prog in fgrep; do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4405 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4406 # Check for GNU ac_path_FGREP and select it if it is found.
4407 # Check for GNU $ac_path_FGREP
4408 case `"$ac_path_FGREP" --version 2>&1` in
4410 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4413 $as_echo_n 0123456789 >"conftest.in"
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 $as_echo 'FGREP' >> "conftest.nl"
4420 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 ac_count=`expr $ac_count + 1`
4423 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_FGREP="$ac_path_FGREP"
4426 ac_path_FGREP_max=$ac_count
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434 $ac_path_FGREP_found && break 3
4439 if test -z "$ac_cv_path_FGREP"; then
4440 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4441 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4442 { (exit 1); exit 1; }; }
4445 ac_cv_path_FGREP=$FGREP
4450 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4451 $as_echo "$ac_cv_path_FGREP" >&6; }
4452 FGREP="$ac_cv_path_FGREP"
4455 test -z "$GREP" && GREP=grep
4475 # Check whether --with-gnu-ld was given.
4476 if test "${with_gnu_ld+set}" = set; then
4477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4483 if test "$GCC" = yes; then
4484 # Check if gcc -print-prog-name=ld gives a path.
4485 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4486 $as_echo_n "checking for ld used by $CC... " >&6; }
4489 # gcc leaves a trailing carriage return which upsets mingw
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4495 # Accept absolute paths.
4497 re_direlt='/[^/][^/]*/\.\./'
4498 # Canonicalize the pathname of ld
4499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4503 test -z "$LD" && LD="$ac_prog"
4506 # If it fails, then pretend we aren't using GCC.
4510 # If it is relative, then search for the first ld in PATH.
4514 elif test "$with_gnu_ld" = yes; then
4515 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4516 $as_echo_n "checking for GNU ld... " >&6; }
4518 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4519 $as_echo_n "checking for non-GNU ld... " >&6; }
4521 if test "${lt_cv_path_LD+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4524 if test -z "$LD"; then
4525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526 for ac_dir in $PATH; do
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530 lt_cv_path_LD="$ac_dir/$ac_prog"
4531 # Check to see if the program is GNU ld. I'd rather use --version,
4532 # but apparently some variants of GNU ld only accept -v.
4533 # Break only if it was the GNU/non-GNU ld that we prefer.
4534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 test "$with_gnu_ld" != no && break
4539 test "$with_gnu_ld" != yes && break
4546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4551 if test -n "$LD"; then
4552 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4553 $as_echo "$LD" >&6; }
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4558 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4559 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4560 { (exit 1); exit 1; }; }
4561 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4563 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4566 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4567 case `$LD -v 2>&1 </dev/null` in
4568 *GNU* | *'with BFD'*)
4569 lt_cv_prog_gnu_ld=yes
4572 lt_cv_prog_gnu_ld=no
4576 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4577 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4578 with_gnu_ld=$lt_cv_prog_gnu_ld
4588 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4589 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4590 if test "${lt_cv_path_NM+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4593 if test -n "$NM"; then
4594 # Let the user override the test.
4597 lt_nm_to_check="${ac_tool_prefix}nm"
4598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4599 lt_nm_to_check="$lt_nm_to_check nm"
4601 for lt_tmp_nm in $lt_nm_to_check; do
4602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4605 test -z "$ac_dir" && ac_dir=.
4606 tmp_nm="$ac_dir/$lt_tmp_nm"
4607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4608 # Check to see if the nm accepts a BSD-compat flag.
4609 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4610 # nm: unknown option "B" ignored
4611 # Tru64's nm complains that /dev/null is an invalid object file
4612 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4613 */dev/null* | *'Invalid file or object type'*)
4614 lt_cv_path_NM="$tmp_nm -B"
4618 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4620 lt_cv_path_NM="$tmp_nm -p"
4624 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4625 continue # so that we can try to find one that supports BSD flags
4634 : ${lt_cv_path_NM=no}
4637 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4638 $as_echo "$lt_cv_path_NM" >&6; }
4639 if test "$lt_cv_path_NM" != "no"; then
4642 # Didn't find any BSD compatible name lister, look for dumpbin.
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4651 $as_echo_n "(cached) " >&6
4653 if test -n "$DUMPBIN"; then
4654 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 DUMPBIN=$ac_cv_prog_DUMPBIN
4674 if test -n "$DUMPBIN"; then
4675 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4676 $as_echo "$DUMPBIN" >&6; }
4678 { $as_echo "$as_me:$LINENO: result: no" >&5
4679 $as_echo "no" >&6; }
4683 test -n "$DUMPBIN" && break
4686 if test -z "$DUMPBIN"; then
4687 ac_ct_DUMPBIN=$DUMPBIN
4688 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$ac_ct_DUMPBIN"; then
4698 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4718 if test -n "$ac_ct_DUMPBIN"; then
4719 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4720 $as_echo "$ac_ct_DUMPBIN" >&6; }
4722 { $as_echo "$as_me:$LINENO: result: no" >&5
4723 $as_echo "no" >&6; }
4727 test -n "$ac_ct_DUMPBIN" && break
4730 if test "x$ac_ct_DUMPBIN" = x; then
4733 case $cross_compiling:$ac_tool_warned in
4735 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737 ac_tool_warned=yes ;;
4739 DUMPBIN=$ac_ct_DUMPBIN
4744 if test "$DUMPBIN" != ":"; then
4748 test -z "$NM" && NM=nm
4755 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4756 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4757 if test "${lt_cv_nm_interface+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4760 lt_cv_nm_interface="BSD nm"
4761 echo "int some_variable = 0;" > conftest.$ac_ext
4762 (eval echo "\"\$as_me:4762: $ac_compile\"" >&5)
4763 (eval "$ac_compile" 2>conftest.err)
4764 cat conftest.err >&5
4765 (eval echo "\"\$as_me:4765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:4768: output\"" >&5)
4769 cat conftest.out >&5
4770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4771 lt_cv_nm_interface="MS dumpbin"
4775 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4776 $as_echo "$lt_cv_nm_interface" >&6; }
4778 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4779 $as_echo_n "checking whether ln -s works... " >&6; }
4781 if test "$LN_S" = "ln -s"; then
4782 { $as_echo "$as_me:$LINENO: result: yes" >&5
4783 $as_echo "yes" >&6; }
4785 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4786 $as_echo "no, using $LN_S" >&6; }
4789 # find the maximum length of command line arguments
4790 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4791 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4792 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4793 $as_echo_n "(cached) " >&6
4800 # On DJGPP, this test can blow up pretty badly due to problems in libc
4801 # (any single argument exceeding 2000 bytes causes a buffer overrun
4802 # during glob expansion). Even if it were fixed, the result of this
4803 # check would be larger than it should be.
4804 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4808 # Under GNU Hurd, this test is not required because there is
4809 # no limit to the length of command line arguments.
4810 # Libtool will interpret -1 as no limit whatsoever
4811 lt_cv_sys_max_cmd_len=-1;
4814 cygwin* | mingw* | cegcc*)
4815 # On Win9x/ME, this test blows up -- it succeeds, but takes
4816 # about 5 minutes as the teststring grows exponentially.
4817 # Worse, since 9x/ME are not pre-emptively multitasking,
4818 # you end up with a "frozen" computer, even though with patience
4819 # the test eventually succeeds (with a max line length of 256k).
4820 # Instead, let's just punt: use the minimum linelength reported by
4821 # all of the supported platforms: 8192 (on NT/2K/XP).
4822 lt_cv_sys_max_cmd_len=8192;
4826 # On AmigaOS with pdksh, this test takes hours, literally.
4827 # So we just punt and use a minimum line length of 8192.
4828 lt_cv_sys_max_cmd_len=8192;
4831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4832 # This has been around since 386BSD, at least. Likely further.
4833 if test -x /sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4835 elif test -x /usr/sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4840 # And add a safety zone
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4847 lt_cv_sys_max_cmd_len=196608
4851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853 # nice to cause kernel panics so lets avoid the loop below.
4854 # First set a reasonable default.
4855 lt_cv_sys_max_cmd_len=16384
4857 if test -x /sbin/sysconfig; then
4858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864 lt_cv_sys_max_cmd_len=102400
4866 sysv5* | sco5v6* | sysv4.2uw2*)
4867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868 if test -n "$kargmax"; then
4869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4871 lt_cv_sys_max_cmd_len=32768
4875 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876 if test -n "$lt_cv_sys_max_cmd_len"; then
4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4880 # Make teststring a little bigger before we do anything with it.
4881 # a 1K string should be a reasonable start.
4882 for i in 1 2 3 4 5 6 7 8 ; do
4883 teststring=$teststring$teststring
4885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4886 # If test is not a shell built-in, we'll probably end up computing a
4887 # maximum length that is only half of the actual maximum length, but
4889 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4890 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4891 test $i != 17 # 1/2 MB should be enough
4894 teststring=$teststring$teststring
4896 # Only check the string length outside the loop.
4897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4899 # Add a significant safety factor because C++ compilers can tack on
4900 # massive amounts of additional arguments before passing them to the
4901 # linker. It appears as though 1/2 is a usable value.
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4909 if test -n $lt_cv_sys_max_cmd_len ; then
4910 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4911 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4913 { $as_echo "$as_me:$LINENO: result: none" >&5
4914 $as_echo "none" >&6; }
4916 max_cmd_len=$lt_cv_sys_max_cmd_len
4927 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4928 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4929 # Try some XSI features
4932 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4934 && eval 'test $(( 1 + 1 )) -eq 2 \
4935 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4937 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4938 $as_echo "$xsi_shell" >&6; }
4941 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4942 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4944 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4946 && lt_shell_append=yes
4947 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4948 $as_echo "$lt_shell_append" >&6; }
4951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4961 # test EBCDIC or ASCII
4962 case `echo X|tr X '\101'` in
4963 A) # ASCII based system
4964 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4965 lt_SP2NL='tr \040 \012'
4966 lt_NL2SP='tr \015\012 \040\040'
4968 *) # EBCDIC based system
4969 lt_SP2NL='tr \100 \n'
4970 lt_NL2SP='tr \r\n \100\100'
4982 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4983 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4984 if test "${lt_cv_ld_reload_flag+set}" = set; then
4985 $as_echo_n "(cached) " >&6
4987 lt_cv_ld_reload_flag='-r'
4989 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4990 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4991 reload_flag=$lt_cv_ld_reload_flag
4992 case $reload_flag in
4994 *) reload_flag=" $reload_flag" ;;
4996 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4999 if test "$GCC" = yes; then
5000 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5015 if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5017 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5023 if test -n "$OBJDUMP"; then
5024 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 OBJDUMP=$ac_cv_prog_OBJDUMP
5044 if test -n "$OBJDUMP"; then
5045 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5046 $as_echo "$OBJDUMP" >&6; }
5048 { $as_echo "$as_me:$LINENO: result: no" >&5
5049 $as_echo "no" >&6; }
5054 if test -z "$ac_cv_prog_OBJDUMP"; then
5055 ac_ct_OBJDUMP=$OBJDUMP
5056 # Extract the first word of "objdump", so it can be a program name with args.
5057 set dummy objdump; ac_word=$2
5058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5063 if test -n "$ac_ct_OBJDUMP"; then
5064 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5084 if test -n "$ac_ct_OBJDUMP"; then
5085 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5086 $as_echo "$ac_ct_OBJDUMP" >&6; }
5088 { $as_echo "$as_me:$LINENO: result: no" >&5
5089 $as_echo "no" >&6; }
5092 if test "x$ac_ct_OBJDUMP" = x; then
5095 case $cross_compiling:$ac_tool_warned in
5097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5101 OBJDUMP=$ac_ct_OBJDUMP
5104 OBJDUMP="$ac_cv_prog_OBJDUMP"
5107 test -z "$OBJDUMP" && OBJDUMP=objdump
5117 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5118 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5119 if test "${lt_cv_deplibs_check_method+set}" = set; then
5120 $as_echo_n "(cached) " >&6
5122 lt_cv_file_magic_cmd='$MAGIC_CMD'
5123 lt_cv_file_magic_test_file=
5124 lt_cv_deplibs_check_method='unknown'
5125 # Need to set the preceding variable on all platforms that support
5126 # interlibrary dependencies.
5127 # 'none' -- dependencies not supported.
5128 # `unknown' -- same as none, but documents that we really don't know.
5129 # 'pass_all' -- all dependencies passed with no checks.
5130 # 'test_compile' -- check by making test program.
5131 # 'file_magic [[regex]]' -- check by looking for files in library path
5132 # which responds to the $file_magic_cmd with a given extended regex.
5133 # If you have `file' or equivalent on your system and you're not sure
5134 # whether `pass_all' will *always* work, you probably want this one.
5138 lt_cv_deplibs_check_method=pass_all
5142 lt_cv_deplibs_check_method=pass_all
5146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5147 lt_cv_file_magic_cmd='/usr/bin/file -L'
5148 lt_cv_file_magic_test_file=/shlib/libc.so
5152 # func_win32_libid is a shell function defined in ltmain.sh
5153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5154 lt_cv_file_magic_cmd='func_win32_libid'
5158 # Base MSYS/MinGW do not provide the 'file' command needed by
5159 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5160 # unless we find 'file', for example because we are cross-compiling.
5161 if ( file / ) >/dev/null 2>&1; then
5162 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5163 lt_cv_file_magic_cmd='func_win32_libid'
5165 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5166 lt_cv_file_magic_cmd='$OBJDUMP -f'
5171 # use the weaker test based on 'objdump'. See mingw*.
5172 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5173 lt_cv_file_magic_cmd='$OBJDUMP -f'
5176 darwin* | rhapsody*)
5177 lt_cv_deplibs_check_method=pass_all
5180 freebsd* | dragonfly*)
5181 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5184 # Not sure whether the presence of OpenBSD here was a mistake.
5185 # Let's accept both of them until this is cleared up.
5186 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5192 lt_cv_deplibs_check_method=pass_all
5197 lt_cv_deplibs_check_method=pass_all
5200 hpux10.20* | hpux11*)
5201 lt_cv_file_magic_cmd=/usr/bin/file
5204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5205 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5208 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]'
5209 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5213 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5219 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5223 irix5* | irix6* | nonstopux*)
5225 *-32|*"-32 ") libmagic=32-bit;;
5226 *-n32|*"-n32 ") libmagic=N32;;
5227 *-64|*"-64 ") libmagic=64-bit;;
5228 *) libmagic=never-match;;
5230 lt_cv_deplibs_check_method=pass_all
5233 # This must be Linux ELF.
5234 linux* | k*bsd*-gnu)
5235 lt_cv_deplibs_check_method=pass_all
5239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5248 lt_cv_file_magic_cmd=/usr/bin/file
5249 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5253 lt_cv_deplibs_check_method=pass_all
5257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5264 osf3* | osf4* | osf5*)
5265 lt_cv_deplibs_check_method=pass_all
5269 lt_cv_deplibs_check_method=pass_all
5273 lt_cv_deplibs_check_method=pass_all
5276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5277 lt_cv_deplibs_check_method=pass_all
5281 case $host_vendor in
5283 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]'
5284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5287 lt_cv_deplibs_check_method=pass_all
5290 lt_cv_file_magic_cmd='/bin/file'
5291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5294 lt_cv_file_magic_cmd='/bin/file'
5295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5296 lt_cv_file_magic_test_file=/lib/libc.so
5299 lt_cv_deplibs_check_method=pass_all
5302 lt_cv_deplibs_check_method=pass_all
5308 lt_cv_deplibs_check_method=pass_all
5313 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5314 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5315 file_magic_cmd=$lt_cv_file_magic_cmd
5316 deplibs_check_method=$lt_cv_deplibs_check_method
5317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}ar; ac_word=$2
5333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_AR+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5338 if test -n "$AR"; then
5339 ac_cv_prog_AR="$AR" # Let the user override the test.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_AR="${ac_tool_prefix}ar"
5349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 if test -n "$AR"; then
5360 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5363 { $as_echo "$as_me:$LINENO: result: no" >&5
5364 $as_echo "no" >&6; }
5369 if test -z "$ac_cv_prog_AR"; then
5371 # Extract the first word of "ar", so it can be a program name with args.
5372 set dummy ar; ac_word=$2
5373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5376 $as_echo_n "(cached) " >&6
5378 if test -n "$ac_ct_AR"; then
5379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_AR="ar"
5389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5399 if test -n "$ac_ct_AR"; then
5400 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5401 $as_echo "$ac_ct_AR" >&6; }
5403 { $as_echo "$as_me:$LINENO: result: no" >&5
5404 $as_echo "no" >&6; }
5407 if test "x$ac_ct_AR" = x; then
5410 case $cross_compiling:$ac_tool_warned in
5412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414 ac_tool_warned=yes ;;
5422 test -z "$AR" && AR=ar
5423 test -z "$AR_FLAGS" && AR_FLAGS=cru
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5437 set dummy ${ac_tool_prefix}strip; ac_word=$2
5438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if test "${ac_cv_prog_STRIP+set}" = set; then
5441 $as_echo_n "(cached) " >&6
5443 if test -n "$STRIP"; then
5444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 STRIP=$ac_cv_prog_STRIP
5464 if test -n "$STRIP"; then
5465 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5466 $as_echo "$STRIP" >&6; }
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5474 if test -z "$ac_cv_prog_STRIP"; then
5476 # Extract the first word of "strip", so it can be a program name with args.
5477 set dummy strip; ac_word=$2
5478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$ac_ct_STRIP"; then
5484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_ac_ct_STRIP="strip"
5494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5504 if test -n "$ac_ct_STRIP"; then
5505 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5506 $as_echo "$ac_ct_STRIP" >&6; }
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5512 if test "x$ac_ct_STRIP" = x; then
5515 case $cross_compiling:$ac_tool_warned in
5517 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned=yes ;;
5524 STRIP="$ac_cv_prog_STRIP"
5527 test -z "$STRIP" && STRIP=:
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_prog_RANLIB+set}" = set; then
5540 $as_echo_n "(cached) " >&6
5542 if test -n "$RANLIB"; then
5543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 RANLIB=$ac_cv_prog_RANLIB
5563 if test -n "$RANLIB"; then
5564 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5565 $as_echo "$RANLIB" >&6; }
5567 { $as_echo "$as_me:$LINENO: result: no" >&5
5568 $as_echo "no" >&6; }
5573 if test -z "$ac_cv_prog_RANLIB"; then
5574 ac_ct_RANLIB=$RANLIB
5575 # Extract the first word of "ranlib", so it can be a program name with args.
5576 set dummy ranlib; ac_word=$2
5577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$ac_ct_RANLIB"; then
5583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_RANLIB="ranlib"
5593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5603 if test -n "$ac_ct_RANLIB"; then
5604 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5605 $as_echo "$ac_ct_RANLIB" >&6; }
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5611 if test "x$ac_ct_RANLIB" = x; then
5614 case $cross_compiling:$ac_tool_warned in
5616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5620 RANLIB=$ac_ct_RANLIB
5623 RANLIB="$ac_cv_prog_RANLIB"
5626 test -z "$RANLIB" && RANLIB=:
5633 # Determine commands to create old-style static archives.
5634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5635 old_postinstall_cmds='chmod 644 $oldlib'
5636 old_postuninstall_cmds=
5638 if test -n "$RANLIB"; then
5641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5683 # If no C compiler was specified, use CC.
5686 # If no C compiler flags were specified, use CFLAGS.
5687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5689 # Allow CC to be a program name with arguments.
5693 # Check for command to grab the raw symbol name followed by C symbol from nm.
5694 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5695 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5696 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5700 # These are sane defaults that work on at least a few old systems.
5701 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5703 # Character class describing NM global symbol codes.
5704 symcode='[BCDEGRST]'
5706 # Regexp to match symbols that can be accessed directly from C.
5707 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5709 # Define system-specific variables.
5714 cygwin* | mingw* | pw32* | cegcc*)
5715 symcode='[ABCDGISTW]'
5718 if test "$host_cpu" = ia64; then
5719 symcode='[ABCDEGRST]'
5723 symcode='[BCDEGRST]'
5726 symcode='[BCDEGQRST]'
5737 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5745 # If we're using GNU nm, then use its standard symbol codes.
5746 case `$NM -V 2>&1` in
5747 *GNU* | *'with BFD'*)
5748 symcode='[ABCDGIRSTW]' ;;
5751 # Transform an extracted symbol line into a proper C declaration.
5752 # Some systems (esp. on ia64) link data and code symbols differently,
5753 # so use this general approach.
5754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5756 # Transform an extracted symbol line into symbol name and symbol address
5757 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5758 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'"
5760 # Handle CRLF in mingw tool chain
5764 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5768 # Try without a prefix underscore, then with it.
5769 for ac_symprfx in "" "_"; do
5771 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5772 symxfrm="\\1 $ac_symprfx\\2 \\2"
5774 # Write the raw and C identifiers.
5775 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5776 # Fake it for dumpbin and say T for any non-static function
5777 # and D for any global variable.
5778 # Also find C++ and __fastcall symbols from MSVC++,
5779 # which start with @ or ?.
5780 lt_cv_sys_global_symbol_pipe="$AWK '"\
5781 " {last_section=section; section=\$ 3};"\
5782 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5783 " \$ 0!~/External *\|/{next};"\
5784 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5785 " {if(hide[section]) next};"\
5786 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5787 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5788 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5789 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5790 " ' prfx=^$ac_symprfx"
5792 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5795 # Check to see that the pipe works correctly.
5799 cat > conftest.$ac_ext <<_LT_EOF
5804 void nm_test_func(void);
5805 void nm_test_func(void){}
5809 int main(){nm_test_var='a';nm_test_func();return(0);}
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; then
5817 # Now try to grab the symbols.
5819 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5820 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && test -s "$nlist"; then
5824 # Try sorting and uniquifying the output.
5825 if sort "$nlist" | uniq > "$nlist"T; then
5826 mv -f "$nlist"T "$nlist"
5831 # Make sure that we snagged all the symbols we need.
5832 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5833 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5834 cat <<_LT_EOF > conftest.$ac_ext
5840 # Now generate the symbol file.
5841 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5843 cat <<_LT_EOF >> conftest.$ac_ext
5845 /* The mapping between symbol names and symbols. */
5850 lt__PROGRAM__LTX_preloaded_symbols[] =
5852 { "@PROGRAM@", (void *) 0 },
5854 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5855 cat <<\_LT_EOF >> conftest.$ac_ext
5859 /* This works around a problem in FreeBSD linker */
5860 #ifdef FREEBSD_WORKAROUND
5861 static const void *lt_preloaded_setup() {
5862 return lt__PROGRAM__LTX_preloaded_symbols;
5870 # Now try linking the two files.
5871 mv conftest.$ac_objext conftstm.$ac_objext
5872 lt_save_LIBS="$LIBS"
5873 lt_save_CFLAGS="$CFLAGS"
5874 LIBS="conftstm.$ac_objext"
5875 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>&5
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5883 LIBS="$lt_save_LIBS"
5884 CFLAGS="$lt_save_CFLAGS"
5886 echo "cannot find nm_test_func in $nlist" >&5
5889 echo "cannot find nm_test_var in $nlist" >&5
5892 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5895 echo "$progname: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 rm -rf conftest* conftst*
5900 # Do not use the global_symbol_pipe unless it works.
5901 if test "$pipe_works" = yes; then
5904 lt_cv_sys_global_symbol_pipe=
5910 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5911 lt_cv_sys_global_symbol_to_cdecl=
5913 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5914 { $as_echo "$as_me:$LINENO: result: failed" >&5
5915 $as_echo "failed" >&6; }
5917 { $as_echo "$as_me:$LINENO: result: ok" >&5
5918 $as_echo "ok" >&6; }
5943 # Check whether --enable-libtool-lock was given.
5944 if test "${enable_libtool_lock+set}" = set; then
5945 enableval=$enable_libtool_lock;
5948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5950 # Some flags need to be propagated to the compiler or linker for good
5954 # Find out which ABI we are using.
5955 echo 'int i;' > conftest.$ac_ext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957 (eval $ac_compile) 2>&5
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; then
5961 case `/usr/bin/file conftest.$ac_objext` in
5973 # Find out which ABI we are using.
5974 echo '#line 5974 "configure"' > conftest.$ac_ext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; then
5980 if test "$lt_cv_prog_gnu_ld" = yes; then
5981 case `/usr/bin/file conftest.$ac_objext` in
5983 LD="${LD-ld} -melf32bsmip"
5986 LD="${LD-ld} -melf32bmipn32"
5989 LD="${LD-ld} -melf64bmip"
5993 case `/usr/bin/file conftest.$ac_objext` in
6009 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6010 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6011 # Find out which ABI we are using.
6012 echo 'int i;' > conftest.$ac_ext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>&5
6016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; then
6018 case `/usr/bin/file conftest.o` in
6021 x86_64-*kfreebsd*-gnu)
6022 LD="${LD-ld} -m elf_i386_fbsd"
6025 LD="${LD-ld} -m elf_i386"
6027 ppc64-*linux*|powerpc64-*linux*)
6028 LD="${LD-ld} -m elf32ppclinux"
6031 LD="${LD-ld} -m elf_s390"
6034 LD="${LD-ld} -m elf32_sparc"
6040 x86_64-*kfreebsd*-gnu)
6041 LD="${LD-ld} -m elf_x86_64_fbsd"
6044 LD="${LD-ld} -m elf_x86_64"
6046 ppc*-*linux*|powerpc*-*linux*)
6047 LD="${LD-ld} -m elf64ppc"
6049 s390*-*linux*|s390*-*tpf*)
6050 LD="${LD-ld} -m elf64_s390"
6053 LD="${LD-ld} -m elf64_sparc"
6063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6064 SAVE_CFLAGS="$CFLAGS"
6065 CFLAGS="$CFLAGS -belf"
6066 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6067 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6068 if test "${lt_cv_cc_needs_belf+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (ac_try="$ac_link"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6099 $as_echo "$ac_try_echo") >&5
6100 (eval "$ac_link") 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest$ac_exeext && {
6110 test "$cross_compiling" = yes ||
6111 $as_test_x conftest$ac_exeext
6113 lt_cv_cc_needs_belf=yes
6115 $as_echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 lt_cv_cc_needs_belf=no
6121 rm -rf conftest.dSYM
6122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6123 conftest$ac_exeext conftest.$ac_ext
6125 ac_cpp='$CPP $CPPFLAGS'
6126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6131 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6132 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6133 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6134 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6135 CFLAGS="$SAVE_CFLAGS"
6139 # Find out which ABI we are using.
6140 echo 'int i;' > conftest.$ac_ext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; then
6146 case `/usr/bin/file conftest.o` in
6148 case $lt_cv_prog_gnu_ld in
6149 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6151 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6163 need_locks="$enable_libtool_lock"
6167 rhapsody* | darwin*)
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$DSYMUTIL"; then
6177 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6197 if test -n "$DSYMUTIL"; then
6198 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6199 $as_echo "$DSYMUTIL" >&6; }
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6207 if test -z "$ac_cv_prog_DSYMUTIL"; then
6208 ac_ct_DSYMUTIL=$DSYMUTIL
6209 # Extract the first word of "dsymutil", so it can be a program name with args.
6210 set dummy dsymutil; ac_word=$2
6211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$ac_ct_DSYMUTIL"; then
6217 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6237 if test -n "$ac_ct_DSYMUTIL"; then
6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6239 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6241 { $as_echo "$as_me:$LINENO: result: no" >&5
6242 $as_echo "no" >&6; }
6245 if test "x$ac_ct_DSYMUTIL" = x; then
6248 case $cross_compiling:$ac_tool_warned in
6250 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6254 DSYMUTIL=$ac_ct_DSYMUTIL
6257 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6260 if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6266 $as_echo_n "(cached) " >&6
6268 if test -n "$NMEDIT"; then
6269 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 NMEDIT=$ac_cv_prog_NMEDIT
6289 if test -n "$NMEDIT"; then
6290 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6291 $as_echo "$NMEDIT" >&6; }
6293 { $as_echo "$as_me:$LINENO: result: no" >&5
6294 $as_echo "no" >&6; }
6299 if test -z "$ac_cv_prog_NMEDIT"; then
6300 ac_ct_NMEDIT=$NMEDIT
6301 # Extract the first word of "nmedit", so it can be a program name with args.
6302 set dummy nmedit; ac_word=$2
6303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$ac_ct_NMEDIT"; then
6309 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6329 if test -n "$ac_ct_NMEDIT"; then
6330 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6331 $as_echo "$ac_ct_NMEDIT" >&6; }
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334 $as_echo "no" >&6; }
6337 if test "x$ac_ct_NMEDIT" = x; then
6340 case $cross_compiling:$ac_tool_warned in
6342 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6346 NMEDIT=$ac_ct_NMEDIT
6349 NMEDIT="$ac_cv_prog_NMEDIT"
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_LIPO+set}" = set; then
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$LIPO"; then
6361 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 LIPO=$ac_cv_prog_LIPO
6381 if test -n "$LIPO"; then
6382 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6383 $as_echo "$LIPO" >&6; }
6385 { $as_echo "$as_me:$LINENO: result: no" >&5
6386 $as_echo "no" >&6; }
6391 if test -z "$ac_cv_prog_LIPO"; then
6393 # Extract the first word of "lipo", so it can be a program name with args.
6394 set dummy lipo; ac_word=$2
6395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$ac_ct_LIPO"; then
6401 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_LIPO="lipo"
6411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6421 if test -n "$ac_ct_LIPO"; then
6422 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6423 $as_echo "$ac_ct_LIPO" >&6; }
6425 { $as_echo "$as_me:$LINENO: result: no" >&5
6426 $as_echo "no" >&6; }
6429 if test "x$ac_ct_LIPO" = x; then
6432 case $cross_compiling:$ac_tool_warned in
6434 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6441 LIPO="$ac_cv_prog_LIPO"
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}otool; ac_word=$2
6447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_OTOOL+set}" = set; then
6450 $as_echo_n "(cached) " >&6
6452 if test -n "$OTOOL"; then
6453 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 OTOOL=$ac_cv_prog_OTOOL
6473 if test -n "$OTOOL"; then
6474 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6475 $as_echo "$OTOOL" >&6; }
6477 { $as_echo "$as_me:$LINENO: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_OTOOL"; then
6485 # Extract the first word of "otool", so it can be a program name with args.
6486 set dummy otool; ac_word=$2
6487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6490 $as_echo_n "(cached) " >&6
6492 if test -n "$ac_ct_OTOOL"; then
6493 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_OTOOL="otool"
6503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6513 if test -n "$ac_ct_OTOOL"; then
6514 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6515 $as_echo "$ac_ct_OTOOL" >&6; }
6517 { $as_echo "$as_me:$LINENO: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_OTOOL" = x; then
6524 case $cross_compiling:$ac_tool_warned in
6526 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6533 OTOOL="$ac_cv_prog_OTOOL"
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6542 $as_echo_n "(cached) " >&6
6544 if test -n "$OTOOL64"; then
6545 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 OTOOL64=$ac_cv_prog_OTOOL64
6565 if test -n "$OTOOL64"; then
6566 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6567 $as_echo "$OTOOL64" >&6; }
6569 { $as_echo "$as_me:$LINENO: result: no" >&5
6570 $as_echo "no" >&6; }
6575 if test -z "$ac_cv_prog_OTOOL64"; then
6576 ac_ct_OTOOL64=$OTOOL64
6577 # Extract the first word of "otool64", so it can be a program name with args.
6578 set dummy otool64; ac_word=$2
6579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6582 $as_echo_n "(cached) " >&6
6584 if test -n "$ac_ct_OTOOL64"; then
6585 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_OTOOL64="otool64"
6595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6605 if test -n "$ac_ct_OTOOL64"; then
6606 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6607 $as_echo "$ac_ct_OTOOL64" >&6; }
6609 { $as_echo "$as_me:$LINENO: result: no" >&5
6610 $as_echo "no" >&6; }
6613 if test "x$ac_ct_OTOOL64" = x; then
6616 case $cross_compiling:$ac_tool_warned in
6618 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6622 OTOOL64=$ac_ct_OTOOL64
6625 OTOOL64="$ac_cv_prog_OTOOL64"
6654 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6655 $as_echo_n "checking for -single_module linker flag... " >&6; }
6656 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6659 lt_cv_apple_cc_single_mod=no
6660 if test -z "${LT_MULTI_MODULE}"; then
6661 # By default we will add the -single_module flag. You can override
6662 # by either setting the environment variable LT_MULTI_MODULE
6663 # non-empty at configure time, or by adding -multi_module to the
6665 rm -rf libconftest.dylib*
6666 echo "int foo(void){return 1;}" > conftest.c
6667 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6668 -dynamiclib -Wl,-single_module conftest.c" >&5
6669 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6670 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6672 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6673 lt_cv_apple_cc_single_mod=yes
6675 cat conftest.err >&5
6677 rm -rf libconftest.dylib*
6681 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6682 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6683 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6684 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6685 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6688 lt_cv_ld_exported_symbols_list=no
6689 save_LDFLAGS=$LDFLAGS
6690 echo "_main" > conftest.sym
6691 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_link") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1 >conftest.err
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest$ac_exeext && {
6725 test "$cross_compiling" = yes ||
6726 $as_test_x conftest$ac_exeext
6728 lt_cv_ld_exported_symbols_list=yes
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 lt_cv_ld_exported_symbols_list=no
6736 rm -rf conftest.dSYM
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LDFLAGS="$save_LDFLAGS"
6742 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6743 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6745 rhapsody* | darwin1.[012])
6746 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6748 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6749 darwin*) # darwin 5.x on
6750 # if running on 10.5 or later, the deployment target defaults
6751 # to the OS version, if on x86, and 10.4, the deployment
6752 # target defaults to 10.4. Don't you love it?
6753 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6754 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6755 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6757 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6759 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6763 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6764 _lt_dar_single_mod='$single_module'
6766 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6767 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6769 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771 if test "$DSYMUTIL" != ":"; then
6772 _lt_dsymutil='~$DSYMUTIL $lib || :'
6780 ac_cpp='$CPP $CPPFLAGS'
6781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6786 # On Suns, sometimes $CPP names a directory.
6787 if test -n "$CPP" && test -d "$CPP"; then
6790 if test -z "$CPP"; then
6791 if test "${ac_cv_prog_CPP+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6794 # Double quotes because CPP needs to be expanded
6795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6798 for ac_c_preproc_warn_flag in '' yes
6800 # Use a header file that comes with gcc, so configuring glibc
6801 # with a fresh cross-compiler works.
6802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6803 # <limits.h> exists even on freestanding compilers.
6804 # On the NeXT, cc -E runs the code through the compiler's parser,
6805 # not just through cpp. "Syntax error" is here to catch this case.
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6813 # include <limits.h>
6815 # include <assert.h>
6819 if { (ac_try="$ac_cpp conftest.$ac_ext"
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6825 $as_echo "$ac_try_echo") >&5
6826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6828 grep -v '^ *+' conftest.er1 >conftest.err
6830 cat conftest.err >&5
6831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null && {
6833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6834 test ! -s conftest.err
6838 $as_echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 # Broken: fails on valid input.
6845 rm -f conftest.err conftest.$ac_ext
6847 # OK, works on sane cases. Now check whether nonexistent headers
6848 # can be detected and how.
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #include <ac_nonexistent.h>
6857 if { (ac_try="$ac_cpp conftest.$ac_ext"
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6863 $as_echo "$ac_try_echo") >&5
6864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } >/dev/null && {
6871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6872 test ! -s conftest.err
6874 # Broken: success on invalid input.
6877 $as_echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 # Passes both tests.
6885 rm -f conftest.err conftest.$ac_ext
6888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6889 rm -f conftest.err conftest.$ac_ext
6890 if $ac_preproc_ok; then
6902 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6903 $as_echo "$CPP" >&6; }
6905 for ac_c_preproc_warn_flag in '' yes
6907 # Use a header file that comes with gcc, so configuring glibc
6908 # with a fresh cross-compiler works.
6909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910 # <limits.h> exists even on freestanding compilers.
6911 # On the NeXT, cc -E runs the code through the compiler's parser,
6912 # not just through cpp. "Syntax error" is here to catch this case.
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6920 # include <limits.h>
6922 # include <assert.h>
6926 if { (ac_try="$ac_cpp conftest.$ac_ext"
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6932 $as_echo "$ac_try_echo") >&5
6933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935 grep -v '^ *+' conftest.er1 >conftest.err
6937 cat conftest.err >&5
6938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } >/dev/null && {
6940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6945 $as_echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6948 # Broken: fails on valid input.
6952 rm -f conftest.err conftest.$ac_ext
6954 # OK, works on sane cases. Now check whether nonexistent headers
6955 # can be detected and how.
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <ac_nonexistent.h>
6964 if { (ac_try="$ac_cpp conftest.$ac_ext"
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } >/dev/null && {
6978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6981 # Broken: success on invalid input.
6984 $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 # Passes both tests.
6992 rm -f conftest.err conftest.$ac_ext
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
7000 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7002 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7003 See \`config.log' for more details." >&5
7004 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7005 See \`config.log' for more details." >&2;}
7006 { (exit 1); exit 1; }; }; }
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7017 $as_echo_n "checking for ANSI C header files... " >&6; }
7018 if test "${ac_cv_header_stdc+set}" = set; then
7019 $as_echo_n "(cached) " >&6
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_header_stdc=yes
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_header_stdc=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 if test $ac_cv_header_stdc = yes; then
7069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080 $EGREP "memchr" >/dev/null 2>&1; then
7083 ac_cv_header_stdc=no
7089 if test $ac_cv_header_stdc = yes; then
7090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "free" >/dev/null 2>&1; then
7104 ac_cv_header_stdc=no
7110 if test $ac_cv_header_stdc = yes; then
7111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112 if test "$cross_compiling" = yes; then
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7123 #if ((' ' & 0x0FF) == 0x020)
7124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7127 # define ISLOWER(c) \
7128 (('a' <= (c) && (c) <= 'i') \
7129 || ('j' <= (c) && (c) <= 'r') \
7130 || ('s' <= (c) && (c) <= 'z'))
7131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7139 for (i = 0; i < 256; i++)
7140 if (XOR (islower (i), ISLOWER (i))
7141 || toupper (i) != TOUPPER (i))
7146 rm -f conftest$ac_exeext
7147 if { (ac_try="$ac_link"
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7153 $as_echo "$ac_try_echo") >&5
7154 (eval "$ac_link") 2>&5
7156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7158 { (case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_try") 2>&5
7166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7170 $as_echo "$as_me: program exited with status $ac_status" >&5
7171 $as_echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_cv_header_stdc=no
7177 rm -rf conftest.dSYM
7178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7184 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7185 $as_echo "$ac_cv_header_stdc" >&6; }
7186 if test $ac_cv_header_stdc = yes; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define STDC_HEADERS 1
7194 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7204 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7205 inttypes.h stdint.h unistd.h
7207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7209 $as_echo_n "checking for $ac_header... " >&6; }
7210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7211 $as_echo_n "(cached) " >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 $ac_includes_default
7221 #include <$ac_header>
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7230 $as_echo "$ac_try_echo") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 eval "$as_ac_Header=yes"
7243 $as_echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 eval "$as_ac_Header=no"
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 ac_res=`eval 'as_val=${'$as_ac_Header'}
7252 $as_echo "$as_val"'`
7253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7254 $as_echo "$ac_res" >&6; }
7255 as_val=`eval 'as_val=${'$as_ac_Header'}
7256 $as_echo "$as_val"'`
7257 if test "x$as_val" = x""yes; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7268 for ac_header in dlfcn.h
7270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 $as_echo_n "checking for $ac_header... " >&6; }
7273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7274 $as_echo_n "(cached) " >&6
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 $ac_includes_default
7284 #include <$ac_header>
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 eval "$as_ac_Header=yes"
7306 $as_echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 eval "$as_ac_Header=no"
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 ac_res=`eval 'as_val=${'$as_ac_Header'}
7315 $as_echo "$as_val"'`
7316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7317 $as_echo "$ac_res" >&6; }
7318 as_val=`eval 'as_val=${'$as_ac_Header'}
7319 $as_echo "$as_val"'`
7320 if test "x$as_val" = x""yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341 # Check whether --enable-shared was given.
7342 if test "${enable_shared+set}" = set; then
7343 enableval=$enable_shared; p=${PACKAGE-default}
7345 yes) enable_shared=yes ;;
7346 no) enable_shared=no ;;
7349 # Look at the argument we got. We use all the common list separators.
7350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7351 for pkg in $enableval; do
7353 if test "X$pkg" = "X$p"; then
7372 # Check whether --enable-static was given.
7373 if test "${enable_static+set}" = set; then
7374 enableval=$enable_static; p=${PACKAGE-default}
7376 yes) enable_static=yes ;;
7377 no) enable_static=no ;;
7380 # Look at the argument we got. We use all the common list separators.
7381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7382 for pkg in $enableval; do
7384 if test "X$pkg" = "X$p"; then
7404 # Check whether --with-pic was given.
7405 if test "${with_pic+set}" = set; then
7406 withval=$with_pic; pic_mode="$withval"
7412 test -z "$pic_mode" && pic_mode=default
7420 # Check whether --enable-fast-install was given.
7421 if test "${enable_fast_install+set}" = set; then
7422 enableval=$enable_fast_install; p=${PACKAGE-default}
7424 yes) enable_fast_install=yes ;;
7425 no) enable_fast_install=no ;;
7427 enable_fast_install=no
7428 # Look at the argument we got. We use all the common list separators.
7429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7430 for pkg in $enableval; do
7432 if test "X$pkg" = "X$p"; then
7433 enable_fast_install=yes
7440 enable_fast_install=yes
7453 # This can be used to rebuild libtool when needed
7454 LIBTOOL_DEPS="$ltmain"
7456 # Always use our own libtool.
7457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7483 test -z "$LN_S" && LN_S="ln -s"
7498 if test -n "${ZSH_VERSION+set}" ; then
7499 setopt NO_GLOB_SUBST
7502 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7503 $as_echo_n "checking for objdir... " >&6; }
7504 if test "${lt_cv_objdir+set}" = set; then
7505 $as_echo_n "(cached) " >&6
7507 rm -f .libs 2>/dev/null
7508 mkdir .libs 2>/dev/null
7509 if test -d .libs; then
7512 # MS-DOS does not allow filenames that begin with a dot.
7515 rmdir .libs 2>/dev/null
7517 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7518 $as_echo "$lt_cv_objdir" >&6; }
7519 objdir=$lt_cv_objdir
7525 cat >>confdefs.h <<_ACEOF
7526 #define LT_OBJDIR "$lt_cv_objdir/"
7547 # AIX sometimes has problems with the GCC collect2 program. For some
7548 # reason, if we set the COLLECT_NAMES environment variable, the problems
7549 # vanish in a puff of smoke.
7550 if test "X${COLLECT_NAMES+set}" != Xset; then
7552 export COLLECT_NAMES
7557 # Sed substitution that helps us do robust quoting. It backslashifies
7558 # metacharacters that are still active within double-quoted strings.
7559 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7561 # Same as above, but do not quote variable references.
7562 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7564 # Sed substitution to delay expansion of an escaped shell variable in a
7565 # double_quote_subst'ed string.
7566 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7568 # Sed substitution to delay expansion of an escaped single quote.
7569 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7571 # Sed substitution to avoid accidental globbing in evaled expressions
7572 no_glob_subst='s/\*/\\\*/g'
7576 can_build_shared=yes
7578 # All known linkers require a `.a' archive for static linking (except MSVC,
7579 # which needs '.lib').
7582 with_gnu_ld="$lt_cv_prog_gnu_ld"
7585 old_CFLAGS="$CFLAGS"
7587 # Set sane defaults for various variables
7588 test -z "$CC" && CC=cc
7589 test -z "$LTCC" && LTCC=$CC
7590 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7591 test -z "$LD" && LD=ld
7592 test -z "$ac_objext" && ac_objext=o
7594 for cc_temp in $compiler""; do
7596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7602 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7605 # Only perform the check for file, if the check method requires it
7606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7607 case $deplibs_check_method in
7609 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7610 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7611 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7620 lt_save_MAGIC_CMD="$MAGIC_CMD"
7621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7622 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7623 for ac_dir in $ac_dummy; do
7625 test -z "$ac_dir" && ac_dir=.
7626 if test -f $ac_dir/${ac_tool_prefix}file; then
7627 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7628 if test -n "$file_magic_test_file"; then
7629 case $deplibs_check_method in
7631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7634 $EGREP "$file_magic_regex" > /dev/null; then
7639 *** Warning: the command libtool uses to detect shared libraries,
7640 *** $file_magic_cmd, produces output that libtool cannot recognize.
7641 *** The result is that libtool may fail to recognize shared libraries
7642 *** as such. This will affect the creation of libtool libraries that
7643 *** depend on shared libraries, but programs linked with such libtool
7644 *** libraries will work regardless of this problem. Nevertheless, you
7645 *** may want to report the problem to your system manager and/or to
7646 *** bug-libtool@gnu.org
7656 MAGIC_CMD="$lt_save_MAGIC_CMD"
7661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7662 if test -n "$MAGIC_CMD"; then
7663 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7664 $as_echo "$MAGIC_CMD" >&6; }
7666 { $as_echo "$as_me:$LINENO: result: no" >&5
7667 $as_echo "no" >&6; }
7674 if test -z "$lt_cv_path_MAGIC_CMD"; then
7675 if test -n "$ac_tool_prefix"; then
7676 { $as_echo "$as_me:$LINENO: checking for file" >&5
7677 $as_echo_n "checking for file... " >&6; }
7678 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7686 lt_save_MAGIC_CMD="$MAGIC_CMD"
7687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7689 for ac_dir in $ac_dummy; do
7691 test -z "$ac_dir" && ac_dir=.
7692 if test -f $ac_dir/file; then
7693 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7694 if test -n "$file_magic_test_file"; then
7695 case $deplibs_check_method in
7697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7700 $EGREP "$file_magic_regex" > /dev/null; then
7705 *** Warning: the command libtool uses to detect shared libraries,
7706 *** $file_magic_cmd, produces output that libtool cannot recognize.
7707 *** The result is that libtool may fail to recognize shared libraries
7708 *** as such. This will affect the creation of libtool libraries that
7709 *** depend on shared libraries, but programs linked with such libtool
7710 *** libraries will work regardless of this problem. Nevertheless, you
7711 *** may want to report the problem to your system manager and/or to
7712 *** bug-libtool@gnu.org
7722 MAGIC_CMD="$lt_save_MAGIC_CMD"
7727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728 if test -n "$MAGIC_CMD"; then
7729 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7730 $as_echo "$MAGIC_CMD" >&6; }
7732 { $as_echo "$as_me:$LINENO: result: no" >&5
7733 $as_echo "no" >&6; }
7746 # Use C for the default configuration in the libtool script
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756 # Source file extension for C test sources.
7759 # Object file extension for compiled C test sources.
7763 # Code to be used in simple compile tests
7764 lt_simple_compile_test_code="int some_variable = 0;"
7766 # Code to be used in simple link tests
7767 lt_simple_link_test_code='int main(){return(0);}'
7775 # If no C compiler was specified, use CC.
7778 # If no C compiler flags were specified, use CFLAGS.
7779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7781 # Allow CC to be a program name with arguments.
7784 # Save the default compiler, since it gets overwritten when the other
7785 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7786 compiler_DEFAULT=$CC
7788 # save warnings/boilerplate of simple test code
7789 ac_outfile=conftest.$ac_objext
7790 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7792 _lt_compiler_boilerplate=`cat conftest.err`
7795 ac_outfile=conftest.$ac_objext
7796 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7798 _lt_linker_boilerplate=`cat conftest.err`
7802 if test -n "$compiler"; then
7804 lt_prog_compiler_no_builtin_flag=
7806 if test "$GCC" = yes; then
7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7809 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7810 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7811 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7812 $as_echo_n "(cached) " >&6
7814 lt_cv_prog_compiler_rtti_exceptions=no
7815 ac_outfile=conftest.$ac_objext
7816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7817 lt_compiler_flag="-fno-rtti -fno-exceptions"
7818 # Insert the option either (1) after the last *FLAGS variable, or
7819 # (2) before a word containing "conftest.", or (3) at the end.
7820 # Note that $ac_compile itself does not contain backslashes and begins
7821 # with a dollar sign (not a hyphen), so the echo should work correctly.
7822 # The option is referenced via a variable to avoid confusing sed.
7823 lt_compile=`echo "$ac_compile" | $SED \
7824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7826 -e 's:$: $lt_compiler_flag:'`
7827 (eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
7828 (eval "$lt_compile" 2>conftest.err)
7830 cat conftest.err >&5
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 if (exit $ac_status) && test -s "$ac_outfile"; then
7833 # The compiler can only warn and ignore the option if not recognized
7834 # So say no if there are warnings other than the usual output.
7835 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7838 lt_cv_prog_compiler_rtti_exceptions=yes
7844 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7845 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7847 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7848 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7860 lt_prog_compiler_wl=
7861 lt_prog_compiler_pic=
7862 lt_prog_compiler_static=
7864 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7865 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7867 if test "$GCC" = yes; then
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_static='-static'
7873 # All AIX code is PIC.
7874 if test "$host_cpu" = ia64; then
7875 # AIX 5 now supports IA64 processor
7876 lt_prog_compiler_static='-Bstatic'
7883 # see comment about AmigaOS4 .so support
7884 lt_prog_compiler_pic='-fPIC'
7887 # FIXME: we need at least 68020 code to build shared libraries, but
7888 # adding the `-m68020' flag to GCC prevents building anything better,
7890 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7896 # PIC is the default for these OSes.
7899 mingw* | cygwin* | pw32* | os2* | cegcc*)
7900 # This hack is so that the source file can tell whether it is being
7901 # built for inclusion in a dll (and should export symbols for example).
7902 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7903 # (--disable-auto-import) libraries
7904 lt_prog_compiler_pic='-DDLL_EXPORT'
7907 darwin* | rhapsody*)
7908 # PIC is the default on this platform
7909 # Common symbols not allowed in MH_DYLIB files
7910 lt_prog_compiler_pic='-fno-common'
7914 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7915 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7916 # sets the default TLS model and affects inlining.
7922 lt_prog_compiler_pic='-fPIC'
7928 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7929 # Instead, we relocate shared libraries at runtime.
7933 # Just because we use GCC doesn't mean we suddenly get shared libraries
7934 # on systems that don't support them.
7935 lt_prog_compiler_can_build_shared=no
7940 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 lt_prog_compiler_pic='-fPIC -shared'
7946 if test -d /usr/nec; then
7947 lt_prog_compiler_pic=-Kconform_pic
7952 lt_prog_compiler_pic='-fPIC'
7956 # PORTME Check for flag to pass linker flags through the system compiler.
7959 lt_prog_compiler_wl='-Wl,'
7960 if test "$host_cpu" = ia64; then
7961 # AIX 5 now supports IA64 processor
7962 lt_prog_compiler_static='-Bstatic'
7964 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7968 mingw* | cygwin* | pw32* | os2* | cegcc*)
7969 # This hack is so that the source file can tell whether it is being
7970 # built for inclusion in a dll (and should export symbols for example).
7971 lt_prog_compiler_pic='-DDLL_EXPORT'
7974 hpux9* | hpux10* | hpux11*)
7975 lt_prog_compiler_wl='-Wl,'
7976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7983 lt_prog_compiler_pic='+Z'
7986 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7987 lt_prog_compiler_static='${wl}-a ${wl}archive'
7990 irix5* | irix6* | nonstopux*)
7991 lt_prog_compiler_wl='-Wl,'
7992 # PIC (with -KPIC) is the default.
7993 lt_prog_compiler_static='-non_shared'
7996 linux* | k*bsd*-gnu)
7997 case $cc_basename in
7998 # old Intel for x86_64 which still supported -KPIC.
8000 lt_prog_compiler_wl='-Wl,'
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-static'
8004 # icc used to be incompatible with GCC.
8005 # ICC 10 doesn't accept -KPIC any more.
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-fPIC'
8009 lt_prog_compiler_static='-static'
8011 # Lahey Fortran 8.1.
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='--shared'
8015 lt_prog_compiler_static='--static'
8017 pgcc* | pgf77* | pgf90* | pgf95*)
8018 # Portland Group compilers (*not* the Pentium gcc compiler,
8019 # which looks to be a dead project)
8020 lt_prog_compiler_wl='-Wl,'
8021 lt_prog_compiler_pic='-fpic'
8022 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_wl='-Wl,'
8026 # All Alpha code is PIC.
8027 lt_prog_compiler_static='-non_shared'
8030 # IBM XL C 8.0/Fortran 10.1 on PPC
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-qpic'
8033 lt_prog_compiler_static='-qstaticlink'
8036 case `$CC -V 2>&1 | sed 5q` in
8039 lt_prog_compiler_pic='-KPIC'
8040 lt_prog_compiler_static='-Bstatic'
8041 lt_prog_compiler_wl='-Wl,'
8044 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8045 lt_prog_compiler_pic='-KPIC'
8046 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_wl=''
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8060 # QNX uses GNU C++, but need to define -shared option too, otherwise
8062 lt_prog_compiler_pic='-fPIC -shared'
8065 osf3* | osf4* | osf5*)
8066 lt_prog_compiler_wl='-Wl,'
8067 # All OSF/1 code is PIC.
8068 lt_prog_compiler_static='-non_shared'
8072 lt_prog_compiler_static='-non_shared'
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 case $cc_basename in
8080 lt_prog_compiler_wl='-Qoption ld ';;
8082 lt_prog_compiler_wl='-Wl,';;
8087 lt_prog_compiler_wl='-Qoption ld '
8088 lt_prog_compiler_pic='-PIC'
8089 lt_prog_compiler_static='-Bstatic'
8092 sysv4 | sysv4.2uw2* | sysv4.3*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8099 if test -d /usr/nec ;then
8100 lt_prog_compiler_pic='-Kconform_pic'
8101 lt_prog_compiler_static='-Bstatic'
8105 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_can_build_shared=no
8117 lt_prog_compiler_pic='-pic'
8118 lt_prog_compiler_static='-Bstatic'
8122 lt_prog_compiler_can_build_shared=no
8128 # For platforms which do not support PIC, -DPIC is meaningless:
8130 lt_prog_compiler_pic=
8133 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8136 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8137 $as_echo "$lt_prog_compiler_pic" >&6; }
8145 # Check to make sure the PIC flag actually works.
8147 if test -n "$lt_prog_compiler_pic"; then
8148 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8149 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8150 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8153 lt_cv_prog_compiler_pic_works=no
8154 ac_outfile=conftest.$ac_objext
8155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8156 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8157 # Insert the option either (1) after the last *FLAGS variable, or
8158 # (2) before a word containing "conftest.", or (3) at the end.
8159 # Note that $ac_compile itself does not contain backslashes and begins
8160 # with a dollar sign (not a hyphen), so the echo should work correctly.
8161 # The option is referenced via a variable to avoid confusing sed.
8162 lt_compile=`echo "$ac_compile" | $SED \
8163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8165 -e 's:$: $lt_compiler_flag:'`
8166 (eval echo "\"\$as_me:8166: $lt_compile\"" >&5)
8167 (eval "$lt_compile" 2>conftest.err)
8169 cat conftest.err >&5
8170 echo "$as_me:8170: \$? = $ac_status" >&5
8171 if (exit $ac_status) && test -s "$ac_outfile"; then
8172 # The compiler can only warn and ignore the option if not recognized
8173 # So say no if there are warnings other than the usual output.
8174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8177 lt_cv_prog_compiler_pic_works=yes
8183 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8184 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8186 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8187 case $lt_prog_compiler_pic in
8189 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8192 lt_prog_compiler_pic=
8193 lt_prog_compiler_can_build_shared=no
8204 # Check to make sure the static flag actually works.
8206 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8207 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8208 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8209 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8210 $as_echo_n "(cached) " >&6
8212 lt_cv_prog_compiler_static_works=no
8213 save_LDFLAGS="$LDFLAGS"
8214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8217 # The linker can only warn and ignore the option if not recognized
8218 # So say no if there are warnings
8219 if test -s conftest.err; then
8220 # Append any errors to the config.log.
8221 cat conftest.err 1>&5
8222 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8224 if diff conftest.exp conftest.er2 >/dev/null; then
8225 lt_cv_prog_compiler_static_works=yes
8228 lt_cv_prog_compiler_static_works=yes
8232 LDFLAGS="$save_LDFLAGS"
8235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8236 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8238 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8241 lt_prog_compiler_static=
8250 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8252 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8253 $as_echo_n "(cached) " >&6
8255 lt_cv_prog_compiler_c_o=no
8256 $RM -r conftest 2>/dev/null
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262 lt_compiler_flag="-o out/conftest2.$ac_objext"
8263 # Insert the option either (1) after the last *FLAGS variable, or
8264 # (2) before a word containing "conftest.", or (3) at the end.
8265 # Note that $ac_compile itself does not contain backslashes and begins
8266 # with a dollar sign (not a hyphen), so the echo should work correctly.
8267 lt_compile=`echo "$ac_compile" | $SED \
8268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270 -e 's:$: $lt_compiler_flag:'`
8271 (eval echo "\"\$as_me:8271: $lt_compile\"" >&5)
8272 (eval "$lt_compile" 2>out/conftest.err)
8274 cat out/conftest.err >&5
8275 echo "$as_me:8275: \$? = $ac_status" >&5
8276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8278 # The compiler can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8283 lt_cv_prog_compiler_c_o=yes
8288 # SGI C++ compiler will create directory out/ii_files/ for
8289 # template instantiation
8290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8291 $RM out/* && rmdir out
8297 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8305 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8307 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8310 lt_cv_prog_compiler_c_o=no
8311 $RM -r conftest 2>/dev/null
8315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317 lt_compiler_flag="-o out/conftest2.$ac_objext"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 lt_compile=`echo "$ac_compile" | $SED \
8323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325 -e 's:$: $lt_compiler_flag:'`
8326 (eval echo "\"\$as_me:8326: $lt_compile\"" >&5)
8327 (eval "$lt_compile" 2>out/conftest.err)
8329 cat out/conftest.err >&5
8330 echo "$as_me:8330: \$? = $ac_status" >&5
8331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings
8335 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_c_o=yes
8343 # SGI C++ compiler will create directory out/ii_files/ for
8344 # template instantiation
8345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8346 $RM out/* && rmdir out
8352 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8358 hard_links="nottested"
8359 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8360 # do not overwrite the value of need_locks provided by the user
8361 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8362 $as_echo_n "checking if we can lock with hard links... " >&6; }
8365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8367 ln conftest.a conftest.b 2>&5 || hard_links=no
8368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8369 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8370 $as_echo "$hard_links" >&6; }
8371 if test "$hard_links" = no; then
8372 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8385 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8389 allow_undefined_flag=
8390 always_export_symbols=no
8392 archive_expsym_cmds=
8393 compiler_needs_object=no
8394 enable_shared_with_static_runtimes=no
8395 export_dynamic_flag_spec=
8396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8397 hardcode_automatic=no
8399 hardcode_direct_absolute=no
8400 hardcode_libdir_flag_spec=
8401 hardcode_libdir_flag_spec_ld=
8402 hardcode_libdir_separator=
8404 hardcode_shlibpath_var=unsupported
8406 link_all_deplibs=unknown
8409 old_archive_from_new_cmds=
8410 old_archive_from_expsyms_cmds=
8411 thread_safe_flag_spec=
8412 whole_archive_flag_spec=
8413 # include_expsyms should be a list of space-separated symbols to be *always*
8414 # included in the symbol list
8416 # exclude_expsyms can be an extended regexp of symbols to exclude
8417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8419 # as well as any symbol that contains `d'.
8420 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8422 # platforms (ab)use it in PIC code, but their linkers get confused if
8423 # the symbol is explicitly referenced. Since portable code cannot
8424 # rely on this symbol name, it's probably fine to never include it in
8425 # preloaded symbol tables.
8426 # Exclude shared library initialization/finalization symbols.
8427 extract_expsyms_cmds=
8430 cygwin* | mingw* | pw32* | cegcc*)
8431 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8432 # When not using gcc, we currently assume that we are using
8433 # Microsoft Visual C++.
8434 if test "$GCC" != yes; then
8439 # we just hope/assume this is gcc and not c89 (= MSVC++)
8448 if test "$with_gnu_ld" = yes; then
8449 # If archive_cmds runs LD, not CC, wlarc should be empty
8452 # Set some defaults for GNU ld with shared library support. These
8453 # are reset later if shared libraries are not supported. Putting them
8454 # here allows them to be overridden if necessary.
8455 runpath_var=LD_RUN_PATH
8456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8457 export_dynamic_flag_spec='${wl}--export-dynamic'
8458 # ancient GNU ld didn't support --whole-archive et. al.
8459 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8460 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8462 whole_archive_flag_spec=
8464 supports_anon_versioning=no
8465 case `$LD -v 2>&1` in
8466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8469 *\ 2.11.*) ;; # other 2.11 versions
8470 *) supports_anon_versioning=yes ;;
8473 # See if GNU ld supports shared libraries.
8476 # On AIX/PPC, the GNU linker is very broken
8477 if test "$host_cpu" != ia64; then
8481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8482 *** to be unable to reliably create shared libraries on AIX.
8483 *** Therefore, libtool is disabling shared libraries support. If you
8484 *** really care for shared libraries, you may want to modify your PATH
8485 *** so that a non-GNU linker is found, and then restart.
8494 # see comment about AmigaOS4 .so support
8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496 archive_expsym_cmds=''
8499 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)'
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 hardcode_minus_L=yes
8507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8508 allow_undefined_flag=unsupported
8509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8510 # support --undefined. This deserves some investigation. FIXME
8511 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 cygwin* | mingw* | pw32* | cegcc*)
8518 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8519 # as there is no search path for DLLs.
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 allow_undefined_flag=unsupported
8522 always_export_symbols=no
8523 enable_shared_with_static_runtimes=yes
8524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8528 # If the export-symbols file already is a .def file (1st line
8529 # is EXPORTS), use it as is; otherwise, prepend...
8530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8531 cp $export_symbols $output_objdir/$soname.def;
8533 echo EXPORTS > $output_objdir/$soname.def;
8534 cat $export_symbols >> $output_objdir/$soname.def;
8536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8544 hardcode_shlibpath_var=no
8545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8546 export_dynamic_flag_spec='${wl}-E'
8547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8548 # Instead, shared libraries are loaded at an image base (0x10000000 by
8549 # default) and relocated if they conflict, which is a slow very memory
8550 # consuming and fragmenting process. To avoid this, we pick a random,
8551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8554 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'
8557 gnu* | linux* | tpf* | k*bsd*-gnu)
8559 if test "$host_os" = linux-dietlibc; then
8560 case $cc_basename in
8561 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8564 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8565 && test "$tmp_diet" = no
8568 tmp_sharedflag='-shared'
8569 case $cc_basename,$host_cpu in
8570 pgcc*) # Portland Group C compiler
8571 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'
8572 tmp_addflag=' $pic_flag'
8574 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8575 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'
8576 tmp_addflag=' $pic_flag -Mnomain' ;;
8577 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8578 tmp_addflag=' -i_dynamic' ;;
8579 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8580 tmp_addflag=' -i_dynamic -nofor_main' ;;
8581 ifc* | ifort*) # Intel Fortran compiler
8582 tmp_addflag=' -nofor_main' ;;
8583 lf95*) # Lahey Fortran 8.1
8584 whole_archive_flag_spec=
8585 tmp_sharedflag='--shared' ;;
8586 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8587 tmp_sharedflag='-qmkshrobj'
8590 case `$CC -V 2>&1 | sed 5q` in
8591 *Sun\ C*) # Sun C 5.9
8592 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'
8593 compiler_needs_object=yes
8594 tmp_sharedflag='-G' ;;
8595 *Sun\ F*) # Sun Fortran 8.3
8596 tmp_sharedflag='-G' ;;
8598 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8607 case $cc_basename in
8609 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8610 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8611 hardcode_libdir_flag_spec=
8612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8613 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8614 if test "x$supports_anon_versioning" = xyes; then
8615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8617 echo "local: *; };" >> $output_objdir/$libname.ver~
8618 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8638 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8643 *** create shared libraries on Solaris systems. Therefore, libtool
8644 *** is disabling shared libraries support. We urge you to upgrade GNU
8645 *** binutils to release 2.9.1 or newer. Another option is to modify
8646 *** your PATH or compiler configuration so that the native linker is
8647 *** used, and then restart.
8650 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8659 case `$LD -v 2>&1` in
8660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8665 *** reliably create shared libraries on SCO systems. Therefore, libtool
8666 *** is disabling shared libraries support. We urge you to upgrade GNU
8667 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8668 *** your PATH or compiler configuration so that the native linker is
8669 *** used, and then restart.
8674 # For security reasons, it is highly recommended that you always
8675 # use absolute paths for naming shared libraries, and exclude the
8676 # DT_RUNPATH tag from executables and libraries. But doing so
8677 # requires that you compile everything twice, which is a pain.
8678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_shlibpath_var=no
8697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706 if test "$ld_shlibs" = no; then
8708 hardcode_libdir_flag_spec=
8709 export_dynamic_flag_spec=
8710 whole_archive_flag_spec=
8713 # PORTME fill in a description of your system's linker (not GNU ld)
8716 allow_undefined_flag=unsupported
8717 always_export_symbols=yes
8718 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'
8719 # Note: this linker hardcodes the directories in LIBPATH if there
8720 # are no directories specified by -L.
8721 hardcode_minus_L=yes
8722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8723 # Neither direct hardcoding nor static linking is supported with a
8725 hardcode_direct=unsupported
8730 if test "$host_cpu" = ia64; then
8731 # On IA64, the linker does run time linking by default, so we don't
8732 # have to do anything special.
8733 aix_use_runtimelinking=no
8734 exp_sym_flag='-Bexport'
8737 # If we're using GNU nm, then we don't want the "-C" option.
8738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8739 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8740 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'
8742 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'
8744 aix_use_runtimelinking=no
8746 # Test if we are trying to use run time linking or normal
8747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8748 # need to do runtime linking.
8749 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8750 for ld_flag in $LDFLAGS; do
8751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8752 aix_use_runtimelinking=yes
8759 exp_sym_flag='-bexport'
8760 no_entry_flag='-bnoentry'
8763 # When large executables or shared objects are built, AIX ld can
8764 # have problems creating the table of contents. If linking a library
8765 # or program results in "error TOC overflow" add -mminimal-toc to
8766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8771 hardcode_direct_absolute=yes
8772 hardcode_libdir_separator=':'
8773 link_all_deplibs=yes
8774 file_list_spec='${wl}-f,'
8776 if test "$GCC" = yes; then
8777 case $host_os in aix4.[012]|aix4.[012].*)
8778 # We only want to do this on AIX 4.2 and lower, the check
8779 # below for broken collect2 doesn't work under 4.3+
8780 collect2name=`${CC} -print-prog-name=collect2`
8781 if test -f "$collect2name" &&
8782 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8784 # We have reworked collect2
8787 # We have old collect2
8788 hardcode_direct=unsupported
8789 # It fails to find uninstalled libraries when the uninstalled
8790 # path is not listed in the libpath. Setting hardcode_minus_L
8791 # to unsupported forces relinking
8792 hardcode_minus_L=yes
8793 hardcode_libdir_flag_spec='-L$libdir'
8794 hardcode_libdir_separator=
8798 shared_flag='-shared'
8799 if test "$aix_use_runtimelinking" = yes; then
8800 shared_flag="$shared_flag "'${wl}-G'
8804 if test "$host_cpu" = ia64; then
8805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8806 # chokes on -Wl,-G. The following line is correct:
8809 if test "$aix_use_runtimelinking" = yes; then
8810 shared_flag='${wl}-G'
8812 shared_flag='${wl}-bM:SRE'
8817 export_dynamic_flag_spec='${wl}-bexpall'
8818 # It seems that -bexpall does not export symbols beginning with
8819 # underscore (_), so it is better to generate a list of symbols to export.
8820 always_export_symbols=yes
8821 if test "$aix_use_runtimelinking" = yes; then
8822 # Warning - without using the other runtime loading flags (-brtl),
8823 # -berok will link without error, but may produce a broken library.
8824 allow_undefined_flag='-berok'
8825 # Determine the default libpath from the value encoded in an
8827 cat >conftest.$ac_ext <<_ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (ac_try="$ac_link"
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8849 $as_echo "$ac_try_echo") >&5
8850 (eval "$ac_link") 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest$ac_exeext && {
8860 test "$cross_compiling" = yes ||
8861 $as_test_x conftest$ac_exeext
8864 lt_aix_libpath_sed='
8865 /Import File Strings/,/^$/ {
8871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8872 # Check for a 64-bit object if we didn't find anything.
8873 if test -z "$aix_libpath"; then
8874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8877 $as_echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8883 rm -rf conftest.dSYM
8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885 conftest$ac_exeext conftest.$ac_ext
8886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8888 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8889 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"
8891 if test "$host_cpu" = ia64; then
8892 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8893 allow_undefined_flag="-z nodefs"
8894 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"
8896 # Determine the default libpath from the value encoded in an
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8920 $as_echo "$ac_try_echo") >&5
8921 (eval "$ac_link") 2>conftest.er1
8923 grep -v '^ *+' conftest.er1 >conftest.err
8925 cat conftest.err >&5
8926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && {
8928 test -z "$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8930 } && test -s conftest$ac_exeext && {
8931 test "$cross_compiling" = yes ||
8932 $as_test_x conftest$ac_exeext
8935 lt_aix_libpath_sed='
8936 /Import File Strings/,/^$/ {
8942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8943 # Check for a 64-bit object if we didn't find anything.
8944 if test -z "$aix_libpath"; then
8945 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
8957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8960 # Warning - without using the other run time loading flags,
8961 # -berok will link without error, but may produce a broken library.
8962 no_undefined_flag=' ${wl}-bernotok'
8963 allow_undefined_flag=' ${wl}-berok'
8964 # Exported symbols can be pulled into shared objects from archives
8965 whole_archive_flag_spec='$convenience'
8966 archive_cmds_need_lc=yes
8967 # This is similar to how AIX traditionally builds its shared libraries.
8968 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'
8976 # see comment about AmigaOS4 .so support
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 archive_expsym_cmds=''
8981 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)'
8982 hardcode_libdir_flag_spec='-L$libdir'
8983 hardcode_minus_L=yes
8989 export_dynamic_flag_spec=-rdynamic
8992 cygwin* | mingw* | pw32* | cegcc*)
8993 # When not using gcc, we currently assume that we are using
8994 # Microsoft Visual C++.
8995 # hardcode_libdir_flag_spec is actually meaningless, as there is
8996 # no search path for DLLs.
8997 hardcode_libdir_flag_spec=' '
8998 allow_undefined_flag=unsupported
8999 # Tell ltmain to make .lib files, not .a files.
9001 # Tell ltmain to make .dll files, not .so files.
9003 # FIXME: Setting linknames here is a bad hack.
9004 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9005 # The linker will automatically build a .lib file if we build a DLL.
9006 old_archive_from_new_cmds='true'
9007 # FIXME: Should let the user specify the lib program.
9008 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9009 fix_srcfile_path='`cygpath -w "$srcfile"`'
9010 enable_shared_with_static_runtimes=yes
9013 darwin* | rhapsody*)
9016 archive_cmds_need_lc=no
9018 hardcode_automatic=yes
9019 hardcode_shlibpath_var=unsupported
9020 whole_archive_flag_spec=''
9021 link_all_deplibs=yes
9022 allow_undefined_flag="$_lt_dar_allow_undefined"
9023 case $cc_basename in
9024 ifort*) _lt_dar_can_shared=yes ;;
9025 *) _lt_dar_can_shared=$GCC ;;
9027 if test "$_lt_dar_can_shared" = "yes"; then
9028 output_verbose_link_cmd=echo
9029 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9030 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9031 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}"
9032 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}"
9041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_shlibpath_var=no
9050 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9051 # support. Future versions do this automatically, but an explicit c++rt0.o
9052 # does not break anything, and helps significantly (at the cost of a little
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9056 hardcode_libdir_flag_spec='-R$libdir'
9058 hardcode_shlibpath_var=no
9061 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9065 hardcode_minus_L=yes
9066 hardcode_shlibpath_var=no
9069 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9070 freebsd* | dragonfly*)
9071 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9072 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_shlibpath_var=no
9078 if test "$GCC" = yes; then
9079 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'
9081 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'
9083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9084 hardcode_libdir_separator=:
9087 # hardcode_minus_L: Not really in the search PATH,
9088 # but as the default location of the library.
9089 hardcode_minus_L=yes
9090 export_dynamic_flag_spec='${wl}-E'
9094 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9095 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9099 if test "$with_gnu_ld" = no; then
9100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9101 hardcode_libdir_flag_spec_ld='+b $libdir'
9102 hardcode_libdir_separator=:
9104 hardcode_direct_absolute=yes
9105 export_dynamic_flag_spec='${wl}-E'
9106 # hardcode_minus_L: Not really in the search PATH,
9107 # but as the default location of the library.
9108 hardcode_minus_L=yes
9113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9134 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9138 if test "$with_gnu_ld" = no; then
9139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140 hardcode_libdir_separator=:
9145 hardcode_shlibpath_var=no
9149 hardcode_direct_absolute=yes
9150 export_dynamic_flag_spec='${wl}-E'
9152 # hardcode_minus_L: Not really in the search PATH,
9153 # but as the default location of the library.
9154 hardcode_minus_L=yes
9160 irix5* | irix6* | nonstopux*)
9161 if test "$GCC" = yes; then
9162 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'
9163 # Try to use the -exported_symbol ld option, if it does not
9164 # work, assume that -exports_file does not work either and
9165 # implicitly export all symbols.
9166 save_LDFLAGS="$LDFLAGS"
9167 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9168 cat >conftest.$ac_ext <<_ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_link") 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest$ac_exeext && {
9189 test "$cross_compiling" = yes ||
9190 $as_test_x conftest$ac_exeext
9192 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'
9195 $as_echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9201 rm -rf conftest.dSYM
9202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LDFLAGS="$save_LDFLAGS"
9206 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'
9207 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'
9209 archive_cmds_need_lc='no'
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9213 link_all_deplibs=yes
9217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9220 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9222 hardcode_libdir_flag_spec='-R$libdir'
9224 hardcode_shlibpath_var=no
9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_shlibpath_var=no
9239 if test -f /usr/libexec/ld.so; then
9241 hardcode_shlibpath_var=no
9242 hardcode_direct_absolute=yes
9243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9245 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247 export_dynamic_flag_spec='${wl}-E'
9250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_libdir_flag_spec='-R$libdir'
9255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_minus_L=yes
9268 allow_undefined_flag=unsupported
9269 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'
9270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9274 if test "$GCC" = yes; then
9275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 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'
9278 allow_undefined_flag=' -expect_unresolved \*'
9279 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'
9281 archive_cmds_need_lc='no'
9282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283 hardcode_libdir_separator=:
9286 osf4* | osf5*) # as osf3* with the addition of -msym flag
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 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'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 allow_undefined_flag=' -expect_unresolved \*'
9293 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'
9294 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~
9295 $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'
9297 # Both c and cxx compiler support -rpath directly
9298 hardcode_libdir_flag_spec='-rpath $libdir'
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_separator=:
9305 no_undefined_flag=' -z defs'
9306 if test "$GCC" = yes; then
9308 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9312 case `$CC -V 2>&1` in
9315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_shlibpath_var=no
9330 solaris2.[0-5] | solaris2.[0-5].*) ;;
9332 # The compiler driver will combine and reorder linker options,
9333 # but understands `-z linker_flag'. GCC discards it without `$wl',
9334 # but is careful enough not to reorder.
9335 # Supported since Solaris 2.6 (maybe 2.5.1?)
9336 if test "$GCC" = yes; then
9337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9343 link_all_deplibs=yes
9347 if test "x$host_vendor" = xsequent; then
9348 # Use $CC to link under sequent, because it throws in some extra .o
9349 # files that make .init and .fini sections work.
9350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9361 case $host_vendor in
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes # is this really true???
9367 ## LD is ld it makes a PLAMLIB
9368 ## CC just makes a GrossModule.
9369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370 reload_cmds='$CC -r -o $output$reload_objs'
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9378 runpath_var='LD_RUN_PATH'
9379 hardcode_shlibpath_var=no
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_shlibpath_var=no
9385 export_dynamic_flag_spec='-Bexport'
9389 if test -d /usr/nec; then
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9392 runpath_var=LD_RUN_PATH
9393 hardcode_runpath_var=yes
9398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9399 no_undefined_flag='${wl}-z,text'
9400 archive_cmds_need_lc=no
9401 hardcode_shlibpath_var=no
9402 runpath_var='LD_RUN_PATH'
9404 if test "$GCC" = yes; then
9405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 sysv5* | sco3.2v5* | sco5v6*)
9414 # Note: We can NOT use -z defs as we might desire, because we do not
9415 # link with -lc, and that would cause any symbols used from libc to
9416 # always be unresolved, which means just about no library would
9417 # ever link correctly. If we're not using GNU ld we use -z text
9418 # though, which does catch some bad symbols but isn't as heavy-handed
9420 no_undefined_flag='${wl}-z,text'
9421 allow_undefined_flag='${wl}-z,nodefs'
9422 archive_cmds_need_lc=no
9423 hardcode_shlibpath_var=no
9424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 export_dynamic_flag_spec='${wl}-Bexport'
9428 runpath_var='LD_RUN_PATH'
9430 if test "$GCC" = yes; then
9431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_shlibpath_var=no
9450 if test x$host_vendor = xsni; then
9452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9453 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9460 $as_echo "$ld_shlibs" >&6; }
9461 test "$ld_shlibs" = no && can_build_shared=no
9463 with_gnu_ld=$with_gnu_ld
9480 # Do we need to explicitly link libc?
9482 case "x$archive_cmds_need_lc" in
9484 # Assume -lc should be added
9485 archive_cmds_need_lc=yes
9487 if test "$enable_shared" = yes && test "$GCC" = yes; then
9488 case $archive_cmds in
9490 # FIXME: we may have to deal with multi-command sequences.
9493 # Test whether the compiler implicitly links with -lc since on some
9494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9495 # to ld, don't add -lc before -lgcc.
9496 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } 2>conftest.err; then
9508 libobjs=conftest.$ac_objext
9510 wl=$lt_prog_compiler_wl
9511 pic_flag=$lt_prog_compiler_pic
9517 lt_save_allow_undefined_flag=$allow_undefined_flag
9518 allow_undefined_flag=
9519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }
9525 archive_cmds_need_lc=no
9527 archive_cmds_need_lc=yes
9529 allow_undefined_flag=$lt_save_allow_undefined_flag
9531 cat conftest.err 1>&5
9534 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9535 $as_echo "$archive_cmds_need_lc" >&6; }
9698 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9701 if test "$GCC" = yes; then
9703 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9704 *) lt_awk_arg="/^libraries:/" ;;
9706 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9707 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9708 # if the path contains ";" then we assume it to be the separator
9709 # otherwise default to the standard path separator (i.e. ":") - it is
9710 # assumed that no part of a normal pathname contains ";" but that should
9711 # okay in the real world where ";" in dirpaths is itself problematic.
9712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9716 # Ok, now we have the path, separated by spaces, we can step through it
9717 # and add multilib dir if necessary.
9718 lt_tmp_lt_search_path_spec=
9719 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9720 for lt_sys_path in $lt_search_path_spec; do
9721 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9724 test -d "$lt_sys_path" && \
9725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9728 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9729 BEGIN {RS=" "; FS="/|\n";} {
9732 for (lt_i = NF; lt_i > 0; lt_i--) {
9733 if ($lt_i != "" && $lt_i != ".") {
9734 if ($lt_i == "..") {
9737 if (lt_count == 0) {
9738 lt_foo="/" $lt_i lt_foo;
9745 if (lt_foo != "") { lt_freq[lt_foo]++; }
9746 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9748 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9753 libname_spec='lib$name'
9761 shlibpath_overrides_runpath=unknown
9763 dynamic_linker="$host_os ld.so"
9764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9765 need_lib_prefix=unknown
9766 hardcode_into_libs=no
9768 # when you set need_version to no, make sure it does not cause -set_version
9769 # flags to be left without arguments
9770 need_version=unknown
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9776 shlibpath_var=LIBPATH
9778 # AIX 3 has no versioning support, so we append a major version to the name.
9779 soname_spec='${libname}${release}${shared_ext}$major'
9786 hardcode_into_libs=yes
9787 if test "$host_cpu" = ia64; then
9788 # AIX 5 supports IA64
9789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9790 shlibpath_var=LD_LIBRARY_PATH
9792 # With GCC up to 2.95.x, collect2 would create an import file
9793 # for dependence libraries. The import file would start with
9794 # the line `#! .'. This would cause the generated library to
9795 # depend on `.', always an invalid library. This was fixed in
9796 # development snapshots of GCC prior to 3.0.
9798 aix4 | aix4.[01] | aix4.[01].*)
9799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9809 # soname into executable. Probably we can add versioning support to
9810 # collect2, so additional links can be useful in future.
9811 if test "$aix_use_runtimelinking" = yes; then
9812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9813 # instead of lib<name>.a to let people know that these are not
9814 # typical AIX shared libraries.
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 # We preserve .a as extension for shared libraries through AIX4.2
9818 # and later when we are not doing run time linking.
9819 library_names_spec='${libname}${release}.a $libname.a'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LIBPATH
9829 # Since July 2007 AmigaOS4 officially supports .so libraries.
9830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 library_names_spec='$libname.ixlibrary $libname.a'
9835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836 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'
9842 library_names_spec='${libname}${shared_ext}'
9843 dynamic_linker="$host_os ld.so"
9844 shlibpath_var=LIBRARY_PATH
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9856 # the default ld.so.conf also contains /usr/contrib/lib and
9857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9858 # libtool to hard-code these into programs
9861 cygwin* | mingw* | pw32* | cegcc*)
9862 version_type=windows
9867 case $GCC,$host_os in
9868 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9869 library_names_spec='$libname.dll.a'
9870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9871 postinstall_cmds='base_file=`basename \${file}`~
9872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9873 dldir=$destdir/`dirname \$dlpath`~
9874 test -d \$dldir || mkdir -p \$dldir~
9875 $install_prog $dir/$dlname \$dldir/$dlname~
9876 chmod a+x \$dldir/$dlname~
9877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9881 dlpath=$dir/\$dldll~
9883 shlibpath_overrides_runpath=yes
9887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9892 # MinGW DLLs use traditional 'lib' prefix
9893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9896 # It is most probably a Windows format PATH printed by
9897 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9898 # path with ; separators, and with drive letters. We can handle the
9899 # drive letters (cygwin fileutils understands them), so leave them,
9900 # especially as we might pass files found there to a mingw objdump,
9901 # which wouldn't understand a cygwinified path. Ahh.
9902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9908 # pw32 DLLs use 'pw' prefix rather than 'lib'
9909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9918 dynamic_linker='Win32 ld.exe'
9919 # FIXME: first we should search . and the directory the executable is in
9923 darwin* | rhapsody*)
9924 dynamic_linker="$host_os dyld"
9928 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9929 soname_spec='${libname}${release}${major}$shared_ext'
9930 shlibpath_overrides_runpath=yes
9931 shlibpath_var=DYLD_LIBRARY_PATH
9932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9943 soname_spec='${libname}${release}${shared_ext}$major'
9944 shlibpath_var=LD_LIBRARY_PATH
9951 freebsd* | dragonfly*)
9952 # DragonFly does not have aout. When/if they implement a new
9953 # versioning mechanism, adjust this.
9954 if test -x /usr/bin/objformat; then
9955 objformat=`/usr/bin/objformat`
9958 freebsd[123]*) objformat=aout ;;
9962 version_type=freebsd-$objformat
9963 case $version_type in
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9974 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9979 freebsd3.[01]* | freebsdelf3.[01]*)
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9988 *) # from 4.6 on, and DragonFly
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 hardcode_into_libs=yes
10005 hpux9* | hpux10* | hpux11*)
10006 # Give a soname corresponding to the major version so that dld.sl refuses to
10007 # link against other versions.
10014 hardcode_into_libs=yes
10015 dynamic_linker="$host_os dld.so"
10016 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 if test "X$HPUX_IA64_MODE" = X32; then
10021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10029 hardcode_into_libs=yes
10030 dynamic_linker="$host_os dld.sl"
10031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040 dynamic_linker="$host_os dld.sl"
10041 shlibpath_var=SHLIB_PATH
10042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10048 postinstall_cmds='chmod 555 $lib'
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10063 irix5* | irix6* | nonstopux*)
10065 nonstopux*) version_type=nonstopux ;;
10067 if test "$lt_cv_prog_gnu_ld" = yes; then
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 irix5* | nonstopux*)
10079 libsuff= shlibsuff=
10082 case $LD in # libtool.m4 will add one of these switches to LD
10083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10084 libsuff= shlibsuff= libmagic=32-bit;;
10085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10086 libsuff=32 shlibsuff=N32 libmagic=N32;;
10087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10089 *) libsuff= shlibsuff= libmagic=never-match;;
10093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10094 shlibpath_overrides_runpath=no
10095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10097 hardcode_into_libs=yes
10100 # No shared lib support for Linux oldld, aout, or coff.
10101 linux*oldld* | linux*aout* | linux*coff*)
10105 # This must be Linux ELF.
10106 linux* | k*bsd*-gnu)
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=no
10115 # Some binutils ld are patched to set DT_RUNPATH
10116 save_LDFLAGS=$LDFLAGS
10117 save_libdir=$libdir
10118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_link") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest$ac_exeext && {
10153 test "$cross_compiling" = yes ||
10154 $as_test_x conftest$ac_exeext
10156 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10157 shlibpath_overrides_runpath=yes
10161 $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10167 rm -rf conftest.dSYM
10168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LDFLAGS=$save_LDFLAGS
10171 libdir=$save_libdir
10173 # This implies no fast_install, which is unacceptable.
10174 # Some rework will be needed to allow for fast_install
10175 # before this can be enabled.
10176 hardcode_into_libs=yes
10178 # Add ABI-specific directories to the system library path.
10179 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10181 # Append ld.so.conf contents to the search path
10182 if test -f /etc/ld.so.conf; then
10183 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' ' '`
10184 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10187 # We used to test for /lib/ld.so.1 and disable shared libraries on
10188 # powerpc, because MkLinux only supported shared libraries with the
10189 # GNU dynamic linker. Since this was broken with cross compilers,
10190 # most powerpc-linux boxes support dynamic linking these days and
10191 # people can always --disable-shared, the test was removed, and we
10192 # assume the GNU/Linux dynamic linker is in use.
10193 dynamic_linker='GNU/Linux ld.so'
10200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10203 dynamic_linker='NetBSD (a.out) ld.so'
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 dynamic_linker='NetBSD ld.elf_so'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 hardcode_into_libs=yes
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=yes
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=no
10229 hardcode_into_libs=yes
10230 dynamic_linker='ldqnx.so'
10235 sys_lib_dlsearch_path_spec="/usr/lib"
10237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10240 *) need_version=no ;;
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10247 openbsd2.[89] | openbsd2.[89].*)
10248 shlibpath_overrides_runpath=no
10251 shlibpath_overrides_runpath=yes
10255 shlibpath_overrides_runpath=yes
10260 libname_spec='$name'
10263 library_names_spec='$libname${shared_ext} $libname.a'
10264 dynamic_linker='OS/2 ld.exe'
10265 shlibpath_var=LIBPATH
10268 osf3* | osf4* | osf5*)
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 # ldd complains unless libraries are executable
10293 postinstall_cmds='chmod +x $lib'
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 if test "$with_gnu_ld" = yes; then
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 case $host_vendor in
10315 shlibpath_overrides_runpath=no
10317 runpath_var=LD_RUN_PATH
10325 shlibpath_overrides_runpath=no
10326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10332 if test -d /usr/nec ;then
10334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10335 soname_spec='$libname${shared_ext}.$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10341 version_type=freebsd-elf
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes
10348 hardcode_into_libs=yes
10349 if test "$with_gnu_ld" = yes; then
10350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10355 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10359 sys_lib_dlsearch_path_spec='/usr/lib'
10363 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=no
10370 hardcode_into_libs=yes
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10384 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10385 $as_echo "$dynamic_linker" >&6; }
10386 test "$dynamic_linker" = no && can_build_shared=no
10388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10389 if test "$GCC" = yes; then
10390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10393 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10394 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10396 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10397 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10486 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10487 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10489 if test -n "$hardcode_libdir_flag_spec" ||
10490 test -n "$runpath_var" ||
10491 test "X$hardcode_automatic" = "Xyes" ; then
10493 # We can hardcode non-existent directories.
10494 if test "$hardcode_direct" != no &&
10495 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10496 # have to relink, otherwise we might link with an installed library
10497 # when we should be linking with a yet-to-be-installed one
10498 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10499 test "$hardcode_minus_L" != no; then
10500 # Linking always hardcodes the temporary library directory.
10501 hardcode_action=relink
10503 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10504 hardcode_action=immediate
10507 # We cannot hardcode anything, or else we can only hardcode existing
10509 hardcode_action=unsupported
10511 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10512 $as_echo "$hardcode_action" >&6; }
10514 if test "$hardcode_action" = relink ||
10515 test "$inherit_rpath" = yes; then
10516 # Fast installation is not supported
10517 enable_fast_install=no
10518 elif test "$shlibpath_overrides_runpath" = yes ||
10519 test "$enable_shared" = no; then
10520 # Fast installation is not necessary
10521 enable_fast_install=needless
10529 if test "x$enable_dlopen" != xyes; then
10530 enable_dlopen=unknown
10531 enable_dlopen_self=unknown
10532 enable_dlopen_self_static=unknown
10539 lt_cv_dlopen="load_add_on"
10541 lt_cv_dlopen_self=yes
10544 mingw* | pw32* | cegcc*)
10545 lt_cv_dlopen="LoadLibrary"
10550 lt_cv_dlopen="dlopen"
10555 # if libdl is installed we need to link against it
10556 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10559 $as_echo_n "(cached) " >&6
10561 ac_check_lib_save_LIBS=$LIBS
10563 cat >conftest.$ac_ext <<_ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10570 /* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (ac_try="$ac_link"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10592 $as_echo "$ac_try_echo") >&5
10593 (eval "$ac_link") 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } && {
10600 test -z "$ac_c_werror_flag" ||
10601 test ! -s conftest.err
10602 } && test -s conftest$ac_exeext && {
10603 test "$cross_compiling" = yes ||
10604 $as_test_x conftest$ac_exeext
10606 ac_cv_lib_dl_dlopen=yes
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_cv_lib_dl_dlopen=no
10614 rm -rf conftest.dSYM
10615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10619 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10621 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10625 lt_cv_dlopen="dyld"
10627 lt_cv_dlopen_self=yes
10634 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10635 $as_echo_n "checking for shl_load... " >&6; }
10636 if test "${ac_cv_func_shl_load+set}" = set; then
10637 $as_echo_n "(cached) " >&6
10639 cat >conftest.$ac_ext <<_ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10647 #define shl_load innocuous_shl_load
10649 /* System header to define __stub macros and hopefully few prototypes,
10650 which can conflict with char shl_load (); below.
10651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10652 <limits.h> exists even on freestanding compilers. */
10655 # include <limits.h>
10657 # include <assert.h>
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10669 /* The GNU C library defines this for functions which it implements
10670 to always fail with ENOSYS. Some functions are actually named
10671 something starting with __ and the normal name is an alias. */
10672 #if defined __stub_shl_load || defined __stub___shl_load
10679 return shl_load ();
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (ac_try="$ac_link"
10686 case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10691 $as_echo "$ac_try_echo") >&5
10692 (eval "$ac_link") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest$ac_exeext && {
10702 test "$cross_compiling" = yes ||
10703 $as_test_x conftest$ac_exeext
10705 ac_cv_func_shl_load=yes
10707 $as_echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_cv_func_shl_load=no
10713 rm -rf conftest.dSYM
10714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715 conftest$ac_exeext conftest.$ac_ext
10717 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10718 $as_echo "$ac_cv_func_shl_load" >&6; }
10719 if test "x$ac_cv_func_shl_load" = x""yes; then
10720 lt_cv_dlopen="shl_load"
10722 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10723 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10725 $as_echo_n "(cached) " >&6
10727 ac_check_lib_save_LIBS=$LIBS
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10746 return shl_load ();
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10758 $as_echo "$ac_try_echo") >&5
10759 (eval "$ac_link") 2>conftest.er1
10761 grep -v '^ *+' conftest.er1 >conftest.err
10763 cat conftest.err >&5
10764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext && {
10769 test "$cross_compiling" = yes ||
10770 $as_test_x conftest$ac_exeext
10772 ac_cv_lib_dld_shl_load=yes
10774 $as_echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10777 ac_cv_lib_dld_shl_load=no
10780 rm -rf conftest.dSYM
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10786 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10787 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10788 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10790 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10791 $as_echo_n "checking for dlopen... " >&6; }
10792 if test "${ac_cv_func_dlopen+set}" = set; then
10793 $as_echo_n "(cached) " >&6
10795 cat >conftest.$ac_ext <<_ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10803 #define dlopen innocuous_dlopen
10805 /* System header to define __stub macros and hopefully few prototypes,
10806 which can conflict with char dlopen (); below.
10807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10808 <limits.h> exists even on freestanding compilers. */
10811 # include <limits.h>
10813 # include <assert.h>
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10825 /* The GNU C library defines this for functions which it implements
10826 to always fail with ENOSYS. Some functions are actually named
10827 something starting with __ and the normal name is an alias. */
10828 #if defined __stub_dlopen || defined __stub___dlopen
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847 $as_echo "$ac_try_echo") >&5
10848 (eval "$ac_link") 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } && {
10855 test -z "$ac_c_werror_flag" ||
10856 test ! -s conftest.err
10857 } && test -s conftest$ac_exeext && {
10858 test "$cross_compiling" = yes ||
10859 $as_test_x conftest$ac_exeext
10861 ac_cv_func_dlopen=yes
10863 $as_echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_cv_func_dlopen=no
10869 rm -rf conftest.dSYM
10870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10871 conftest$ac_exeext conftest.$ac_ext
10873 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10874 $as_echo "$ac_cv_func_dlopen" >&6; }
10875 if test "x$ac_cv_func_dlopen" = x""yes; then
10876 lt_cv_dlopen="dlopen"
10878 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10881 $as_echo_n "(cached) " >&6
10883 ac_check_lib_save_LIBS=$LIBS
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10892 /* Override any GCC internal prototype to avoid an error.
10893 Use char because int might match the return type of a GCC
10894 builtin and then its argument prototype would still apply. */
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10914 $as_echo "$ac_try_echo") >&5
10915 (eval "$ac_link") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
10924 } && test -s conftest$ac_exeext && {
10925 test "$cross_compiling" = yes ||
10926 $as_test_x conftest$ac_exeext
10928 ac_cv_lib_dl_dlopen=yes
10930 $as_echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_cv_lib_dl_dlopen=no
10936 rm -rf conftest.dSYM
10937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10943 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10948 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10949 $as_echo_n "(cached) " >&6
10951 ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-lsvld $LIBS"
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10982 $as_echo "$ac_try_echo") >&5
10983 (eval "$ac_link") 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest$ac_exeext && {
10993 test "$cross_compiling" = yes ||
10994 $as_test_x conftest$ac_exeext
10996 ac_cv_lib_svld_dlopen=yes
10998 $as_echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_cv_lib_svld_dlopen=no
11004 rm -rf conftest.dSYM
11005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11010 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11011 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11014 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11015 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11017 $as_echo_n "(cached) " >&6
11019 ac_check_lib_save_LIBS=$LIBS
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11038 return dld_link ();
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (ac_try="$ac_link"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11050 $as_echo "$ac_try_echo") >&5
11051 (eval "$ac_link") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest$ac_exeext && {
11061 test "$cross_compiling" = yes ||
11062 $as_test_x conftest$ac_exeext
11064 ac_cv_lib_dld_dld_link=yes
11066 $as_echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_cv_lib_dld_dld_link=no
11072 rm -rf conftest.dSYM
11073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11078 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11079 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11101 if test "x$lt_cv_dlopen" != xno; then
11107 case $lt_cv_dlopen in
11109 save_CPPFLAGS="$CPPFLAGS"
11110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11112 save_LDFLAGS="$LDFLAGS"
11113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11116 LIBS="$lt_cv_dlopen_libs $LIBS"
11118 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11119 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11120 if test "${lt_cv_dlopen_self+set}" = set; then
11121 $as_echo_n "(cached) " >&6
11123 if test "$cross_compiling" = yes; then :
11124 lt_cv_dlopen_self=cross
11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127 lt_status=$lt_dlunknown
11128 cat > conftest.$ac_ext <<_LT_EOF
11129 #line 11129 "configure"
11130 #include "confdefs.h"
11139 # define LT_DLGLOBAL RTLD_GLOBAL
11142 # define LT_DLGLOBAL DL_GLOBAL
11144 # define LT_DLGLOBAL 0
11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149 find out it does not work in some platform. */
11150 #ifndef LT_DLLAZY_OR_NOW
11152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11155 # define LT_DLLAZY_OR_NOW DL_LAZY
11158 # define LT_DLLAZY_OR_NOW RTLD_NOW
11161 # define LT_DLLAZY_OR_NOW DL_NOW
11163 # define LT_DLLAZY_OR_NOW 0
11170 void fnord() { int i=42;}
11173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11174 int status = $lt_dlunknown;
11178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 /* dlclose (self); */
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>&5
11191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11193 (./conftest; exit; ) >&5 2>/dev/null
11195 case x$lt_status in
11196 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11197 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11198 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 # compilation failed
11202 lt_cv_dlopen_self=no
11209 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11210 $as_echo "$lt_cv_dlopen_self" >&6; }
11212 if test "x$lt_cv_dlopen_self" = xyes; then
11213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11214 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11215 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11216 if test "${lt_cv_dlopen_self_static+set}" = set; then
11217 $as_echo_n "(cached) " >&6
11219 if test "$cross_compiling" = yes; then :
11220 lt_cv_dlopen_self_static=cross
11222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11223 lt_status=$lt_dlunknown
11224 cat > conftest.$ac_ext <<_LT_EOF
11225 #line 11225 "configure"
11226 #include "confdefs.h"
11235 # define LT_DLGLOBAL RTLD_GLOBAL
11238 # define LT_DLGLOBAL DL_GLOBAL
11240 # define LT_DLGLOBAL 0
11244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11245 find out it does not work in some platform. */
11246 #ifndef LT_DLLAZY_OR_NOW
11248 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11251 # define LT_DLLAZY_OR_NOW DL_LAZY
11254 # define LT_DLLAZY_OR_NOW RTLD_NOW
11257 # define LT_DLLAZY_OR_NOW DL_NOW
11259 # define LT_DLLAZY_OR_NOW 0
11266 void fnord() { int i=42;}
11269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11270 int status = $lt_dlunknown;
11274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11276 /* dlclose (self); */
11284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11285 (eval $ac_link) 2>&5
11287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11297 # compilation failed
11298 lt_cv_dlopen_self_static=no
11305 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 CPPFLAGS="$save_CPPFLAGS"
11310 LDFLAGS="$save_LDFLAGS"
11315 case $lt_cv_dlopen_self in
11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11317 *) enable_dlopen_self=unknown ;;
11320 case $lt_cv_dlopen_self_static in
11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11322 *) enable_dlopen_self_static=unknown ;;
11344 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11349 { $as_echo "$as_me:$LINENO: result: yes" >&5
11350 $as_echo "yes" >&6; }
11352 # FIXME - insert some real tests, host_os isn't really good enough
11355 if test -n "$STRIP" ; then
11356 striplib="$STRIP -x"
11357 old_striplib="$STRIP -S"
11358 { $as_echo "$as_me:$LINENO: result: yes" >&5
11359 $as_echo "yes" >&6; }
11361 { $as_echo "$as_me:$LINENO: result: no" >&5
11362 $as_echo "no" >&6; }
11366 { $as_echo "$as_me:$LINENO: result: no" >&5
11367 $as_echo "no" >&6; }
11383 # Report which library types will actually be built
11384 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11386 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11387 $as_echo "$can_build_shared" >&6; }
11389 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11390 $as_echo_n "checking whether to build shared libraries... " >&6; }
11391 test "$can_build_shared" = "no" && enable_shared=no
11393 # On AIX, shared libraries and static libraries use the same namespace, and
11394 # are all built from PIC.
11397 test "$enable_shared" = yes && enable_static=no
11398 if test -n "$RANLIB"; then
11399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11400 postinstall_cmds='$RANLIB $lib'
11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11406 test "$enable_shared" = yes && enable_static=no
11410 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11411 $as_echo "$enable_shared" >&6; }
11413 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11414 $as_echo_n "checking whether to build static libraries... " >&6; }
11415 # Make sure either enable_shared or enable_static is yes.
11416 test "$enable_shared" = yes || enable_static=yes
11417 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11418 $as_echo "$enable_static" >&6; }
11425 ac_cpp='$CPP $CPPFLAGS'
11426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444 ac_config_commands="$ac_config_commands libtool"
11449 # Only expand once:
11454 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11455 $as_echo_n "checking spl license... " >&6; }
11457 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11458 $as_echo "$LICENSE" >&6; }
11459 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11465 # Check whether --with-config was given.
11466 if test "${with_config+set}" = set; then
11467 withval=$with_config; SPL_CONFIG="$withval"
11471 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11472 $as_echo_n "checking spl config... " >&6; }
11473 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11474 $as_echo "$SPL_CONFIG" >&6; };
11477 case "$SPL_CONFIG" in
11481 # Check whether --with-linux was given.
11482 if test "${with_linux+set}" = set; then
11483 withval=$with_linux; kernelsrc="$withval"
11488 # Check whether --with-linux-obj was given.
11489 if test "${with_linux_obj+set}" = set; then
11490 withval=$with_linux_obj; kernelbuild="$withval"
11494 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11495 $as_echo_n "checking kernel source directory... " >&6; }
11496 if test -z "$kernelsrc"; then
11497 headersdir="/lib/modules/$(uname -r)/build"
11498 if test -e "$headersdir"; then
11499 sourcelink=$(readlink -f "$headersdir")
11501 sourcelink=$(ls -1d /usr/src/kernels/* \
11503 2>/dev/null | grep -v obj | tail -1)
11506 if test -e ${sourcelink}; then
11507 kernelsrc=`readlink -f ${sourcelink}`
11509 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11510 $as_echo "Not found" >&6; }
11511 { { $as_echo "$as_me:$LINENO: error:
11512 *** Please specify the location of the kernel source
11513 *** with the '--with-linux=PATH' option" >&5
11514 $as_echo "$as_me: error:
11515 *** Please specify the location of the kernel source
11516 *** with the '--with-linux=PATH' option" >&2;}
11517 { (exit 1); exit 1; }; }
11520 if test "$kernelsrc" = "NONE"; then
11525 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11526 $as_echo "$kernelsrc" >&6; }
11527 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11528 $as_echo_n "checking kernel build directory... " >&6; }
11529 if test -z "$kernelbuild"; then
11530 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
11531 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
11532 elif test -d ${kernelsrc}-obj/`arch`/default; then
11533 kernelbuild=${kernelsrc}-obj/`arch`/default
11534 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
11535 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
11537 kernelbuild=${kernelsrc}
11540 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11541 $as_echo "$kernelbuild" >&6; }
11543 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11544 $as_echo_n "checking kernel source version... " >&6; }
11545 if test -r $kernelbuild/include/linux/version.h &&
11546 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
11548 kernsrcver=`(echo "#include <linux/version.h>";
11549 echo "kernsrcver=UTS_RELEASE") |
11550 cpp -I $kernelbuild/include |
11551 grep "^kernsrcver=" | cut -d \" -f 2`
11553 elif test -r $kernelbuild/include/linux/utsrelease.h &&
11554 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
11556 kernsrcver=`(echo "#include <linux/utsrelease.h>";
11557 echo "kernsrcver=UTS_RELEASE") |
11558 cpp -I $kernelbuild/include |
11559 grep "^kernsrcver=" | cut -d \" -f 2`
11562 if test -z "$kernsrcver"; then
11563 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11564 $as_echo "Not found" >&6; }
11565 { { $as_echo "$as_me:$LINENO: error:
11566 *** Cannot determine the version of the linux kernel source.
11567 *** Please prepare the kernel before running this script" >&5
11568 $as_echo "$as_me: error:
11569 *** Cannot determine the version of the linux kernel source.
11570 *** Please prepare the kernel before running this script" >&2;}
11571 { (exit 1); exit 1; }; }
11574 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11575 $as_echo "$kernsrcver" >&6; }
11578 LINUX_OBJ=${kernelbuild}
11579 LINUX_VERSION=${kernsrcver}
11586 modpost=$LINUX/scripts/Makefile.modpost
11587 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11588 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11589 if test -f "$modpost"; then
11590 if grep -q Modules.symvers $modpost; then
11591 LINUX_SYMBOLS=Modules.symvers
11593 LINUX_SYMBOLS=Module.symvers
11598 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11599 $as_echo "$LINUX_SYMBOLS" >&6; }
11604 abs_srcdir=`readlink -f ${srcdir}`
11605 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
11606 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
11607 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
11609 if test "${LINUX_OBJ}" != "${LINUX}"; then
11610 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11617 # Check whether --enable-debug was given.
11618 if test "${enable_debug+set}" = set; then
11619 enableval=$enable_debug;
11625 if test "x$enable_debug" = xyes; then
11626 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
11628 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11632 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11633 $as_echo_n "checking whether debugging is enabled... " >&6; }
11634 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11635 $as_echo "$enable_debug" >&6; }
11638 # Check whether --enable-debug-kmem was given.
11639 if test "${enable_debug_kmem+set}" = set; then
11640 enableval=$enable_debug_kmem;
11642 enable_debug_kmem=yes
11646 if test "x$enable_debug_kmem" = xyes; then
11648 cat >>confdefs.h <<\_ACEOF
11649 #define DEBUG_KMEM 1
11652 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11656 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11657 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11658 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11659 $as_echo "$enable_debug_kmem" >&6; }
11662 # Check whether --enable-debug-kmem-tracking was given.
11663 if test "${enable_debug_kmem_tracking+set}" = set; then
11664 enableval=$enable_debug_kmem_tracking;
11666 enable_debug_kmem_tracking=no
11670 if test "x$enable_debug_kmem_tracking" = xyes; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define DEBUG_KMEM_TRACKING 1
11676 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11680 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11681 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11682 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11683 $as_echo "$enable_debug_kmem_tracking" >&6; }
11686 # Check whether --enable-atomic-spinlocks was given.
11687 if test "${enable_atomic_spinlocks+set}" = set; then
11688 enableval=$enable_atomic_spinlocks;
11690 enable_atomic_spinlocks=check
11696 cat >conftest.c <<_ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11704 #include <asm/atomic.h>
11719 rm -Rf build && mkdir -p build
11720 echo "obj-m := conftest.o" >build/Makefile
11721 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11733 have_atomic64_t=yes
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_ATOMIC64_T 1
11741 $as_echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11754 if test "x$enable_atomic_spinlocks" = xcheck; then
11756 if test "x$have_atomic64_t" = xyes; then
11758 enable_atomic_spinlocks=no
11762 enable_atomic_spinlocks=yes
11770 if test "x$enable_atomic_spinlocks" = xyes; then
11773 cat >>confdefs.h <<\_ACEOF
11774 #define ATOMIC_SPINLOCK 1
11780 if test "x$have_atomic64_t" = xno; then
11782 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11784 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11785 See \`config.log' for more details." >&5
11786 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11787 See \`config.log' for more details." >&2;}
11788 { (exit 1); exit 1; }; }; }
11796 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
11797 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11798 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
11799 $as_echo "$enable_atomic_spinlocks" >&6; }
11801 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
11802 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11803 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
11804 $as_echo "$have_atomic64_t" >&6; }
11806 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
11807 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
11810 cat >conftest.c <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11818 #include <asm/atomic.h>
11824 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
11833 rm -Rf build && mkdir -p build
11834 echo "obj-m := conftest.o" >build/Makefile
11835 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11847 { $as_echo "$as_me:$LINENO: result: yes" >&5
11848 $as_echo "yes" >&6; }
11850 cat >>confdefs.h <<\_ACEOF
11851 #define HAVE_ATOMIC64_CMPXCHG 1
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 { $as_echo "$as_me:$LINENO: result: no" >&5
11860 $as_echo "no" >&6; }
11870 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
11871 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
11874 cat >conftest.c <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11882 #include <asm/atomic.h>
11888 atomic64_xchg((atomic64_t *)NULL, 0);
11897 rm -Rf build && mkdir -p build
11898 echo "obj-m := conftest.o" >build/Makefile
11899 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11911 { $as_echo "$as_me:$LINENO: result: yes" >&5
11912 $as_echo "yes" >&6; }
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_ATOMIC64_XCHG 1
11920 $as_echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 { $as_echo "$as_me:$LINENO: result: no" >&5
11924 $as_echo "no" >&6; }
11934 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
11935 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
11938 cat >conftest.c <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11946 #include <linux/types.h>
11961 rm -Rf build && mkdir -p build
11962 echo "obj-m := conftest.o" >build/Makefile
11963 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11975 { $as_echo "$as_me:$LINENO: result: yes" >&5
11976 $as_echo "yes" >&6; }
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_UINTPTR_T 1
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 { $as_echo "$as_me:$LINENO: result: no" >&5
11988 $as_echo "no" >&6; }
11998 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
11999 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12002 cat >conftest.c <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12010 #include <linux/workqueue.h>
12016 struct work_struct work;
12017 INIT_WORK(&work, NULL, NULL);
12026 rm -Rf build && mkdir -p build
12027 echo "obj-m := conftest.o" >build/Makefile
12028 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12040 { $as_echo "$as_me:$LINENO: result: yes" >&5
12041 $as_echo "yes" >&6; }
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_3ARGS_INIT_WORK 1
12049 $as_echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 { $as_echo "$as_me:$LINENO: result: no" >&5
12053 $as_echo "no" >&6; }
12063 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12064 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12067 cat >conftest.c <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12075 #include <linux/sysctl.h>
12081 return register_sysctl_table(NULL,0);
12090 rm -Rf build && mkdir -p build
12091 echo "obj-m := conftest.o" >build/Makefile
12092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12104 { $as_echo "$as_me:$LINENO: result: yes" >&5
12105 $as_echo "yes" >&6; }
12107 cat >>confdefs.h <<\_ACEOF
12108 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12113 $as_echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 { $as_echo "$as_me:$LINENO: result: no" >&5
12117 $as_echo "no" >&6; }
12128 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12129 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12132 cat >conftest.c <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12140 #include <linux/mm.h>
12146 return set_shrinker(DEFAULT_SEEKS, NULL);
12155 rm -Rf build && mkdir -p build
12156 echo "obj-m := conftest.o" >build/Makefile
12157 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12169 { $as_echo "$as_me:$LINENO: result: yes" >&5
12170 $as_echo "yes" >&6; }
12172 cat >>confdefs.h <<\_ACEOF
12173 #define HAVE_SET_SHRINKER 1
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 { $as_echo "$as_me:$LINENO: result: no" >&5
12182 $as_echo "no" >&6; }
12192 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12193 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12196 cat >conftest.c <<_ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12204 #include <linux/namei.h>
12210 struct nameidata nd;
12212 nd.path.mnt = NULL;
12213 nd.path.dentry = NULL;
12222 rm -Rf build && mkdir -p build
12223 echo "obj-m := conftest.o" >build/Makefile
12224 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12236 { $as_echo "$as_me:$LINENO: result: yes" >&5
12237 $as_echo "yes" >&6; }
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_PATH_IN_NAMEIDATA 1
12245 $as_echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 { $as_echo "$as_me:$LINENO: result: no" >&5
12249 $as_echo "no" >&6; }
12260 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12261 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12262 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12263 $LINUX_OBJ/Module*.symvers 2>/dev/null
12265 if test $rc -ne 0; then
12267 for file in kernel/sched.c; do
12268 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12269 "$LINUX_OBJ/$file" 2>/dev/null
12271 if test $rc -eq 0; then
12276 if test $export -eq 0; then
12277 { $as_echo "$as_me:$LINENO: result: no" >&5
12278 $as_echo "no" >&6; }
12281 { $as_echo "$as_me:$LINENO: result: yes" >&5
12282 $as_echo "yes" >&6; }
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_TASK_CURR 1
12290 { $as_echo "$as_me:$LINENO: result: yes" >&5
12291 $as_echo "yes" >&6; }
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_TASK_CURR 1
12300 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12301 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12304 cat >conftest.c <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12312 #include <linux/sysctl.h>
12318 #ifndef CTL_UNNUMBERED
12319 #error CTL_UNNUMBERED undefined
12329 rm -Rf build && mkdir -p build
12330 echo "obj-m := conftest.o" >build/Makefile
12331 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12343 { $as_echo "$as_me:$LINENO: result: yes" >&5
12344 $as_echo "yes" >&6; }
12346 cat >>confdefs.h <<\_ACEOF
12347 #define HAVE_CTL_UNNUMBERED 1
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 { $as_echo "$as_me:$LINENO: result: no" >&5
12356 $as_echo "no" >&6; }
12366 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12367 $as_echo_n "checking whether fls64() is available... " >&6; }
12370 cat >conftest.c <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12378 #include <linux/bitops.h>
12393 rm -Rf build && mkdir -p build
12394 echo "obj-m := conftest.o" >build/Makefile
12395 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12407 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408 $as_echo "yes" >&6; }
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_FLS64 1
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 { $as_echo "$as_me:$LINENO: result: no" >&5
12420 $as_echo "no" >&6; }
12431 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12432 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12433 grep -q -E '[[:space:]]device_create[[:space:]]' \
12434 $LINUX_OBJ/Module*.symvers 2>/dev/null
12436 if test $rc -ne 0; then
12438 for file in drivers/base/core.c; do
12439 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12440 "$LINUX_OBJ/$file" 2>/dev/null
12442 if test $rc -eq 0; then
12447 if test $export -eq 0; then
12448 { $as_echo "$as_me:$LINENO: result: no" >&5
12449 $as_echo "no" >&6; }
12452 { $as_echo "$as_me:$LINENO: result: yes" >&5
12453 $as_echo "yes" >&6; }
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_DEVICE_CREATE 1
12461 { $as_echo "$as_me:$LINENO: result: yes" >&5
12462 $as_echo "yes" >&6; }
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_DEVICE_CREATE 1
12472 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12473 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12474 tmp_flags="$EXTRA_KCFLAGS"
12475 EXTRA_KCFLAGS="-Werror"
12478 cat >conftest.c <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12486 #include <linux/device.h>
12492 device_create(NULL, NULL, 0, NULL, "%d", 1);
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_5ARGS_DEVICE_CREATE 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; }
12537 EXTRA_KCFLAGS="$tmp_flags"
12540 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12541 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
12542 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12543 $LINUX_OBJ/Module*.symvers 2>/dev/null
12545 if test $rc -ne 0; then
12547 for file in drivers/base/class.c; do
12548 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12549 "$LINUX_OBJ/$file" 2>/dev/null
12551 if test $rc -eq 0; then
12556 if test $export -eq 0; then
12557 { $as_echo "$as_me:$LINENO: result: no" >&5
12558 $as_echo "no" >&6; }
12561 { $as_echo "$as_me:$LINENO: result: yes" >&5
12562 $as_echo "yes" >&6; }
12564 cat >>confdefs.h <<\_ACEOF
12565 #define HAVE_CLASS_DEVICE_CREATE 1
12570 { $as_echo "$as_me:$LINENO: result: yes" >&5
12571 $as_echo "yes" >&6; }
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_CLASS_DEVICE_CREATE 1
12581 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
12582 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
12583 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12584 $LINUX_OBJ/Module*.symvers 2>/dev/null
12586 if test $rc -ne 0; then
12588 for file in kernel/time.c; do
12589 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12590 "$LINUX_OBJ/$file" 2>/dev/null
12592 if test $rc -eq 0; then
12597 if test $export -eq 0; then
12598 { $as_echo "$as_me:$LINENO: result: no" >&5
12599 $as_echo "no" >&6; }
12602 { $as_echo "$as_me:$LINENO: result: yes" >&5
12603 $as_echo "yes" >&6; }
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12611 { $as_echo "$as_me:$LINENO: result: yes" >&5
12612 $as_echo "yes" >&6; }
12614 cat >>confdefs.h <<\_ACEOF
12615 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12622 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
12623 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
12626 cat >conftest.c <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12634 #include <linux/time.h>
12635 void set_normalized_timespec(struct timespec *ts,
12636 time_t sec, long nsec) { }
12649 rm -Rf build && mkdir -p build
12650 echo "obj-m := conftest.o" >build/Makefile
12651 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12663 { $as_echo "$as_me:$LINENO: result: no" >&5
12664 $as_echo "no" >&6; }
12667 $as_echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 { $as_echo "$as_me:$LINENO: result: yes" >&5
12671 $as_echo "yes" >&6; }
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
12687 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
12688 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
12691 cat >conftest.c <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12699 #include <linux/time.h>
12705 struct timespec a, b, c = { 0 };
12706 c = timespec_sub(a, b);
12715 rm -Rf build && mkdir -p build
12716 echo "obj-m := conftest.o" >build/Makefile
12717 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12729 { $as_echo "$as_me:$LINENO: result: yes" >&5
12730 $as_echo "yes" >&6; }
12732 cat >>confdefs.h <<\_ACEOF
12733 #define HAVE_TIMESPEC_SUB 1
12738 $as_echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 { $as_echo "$as_me:$LINENO: result: no" >&5
12742 $as_echo "no" >&6; }
12753 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
12754 $as_echo_n "checking whether init_utsname() is available... " >&6; }
12757 cat >conftest.c <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12765 #include <linux/utsname.h>
12771 struct new_utsname *a = init_utsname();
12780 rm -Rf build && mkdir -p build
12781 echo "obj-m := conftest.o" >build/Makefile
12782 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12794 { $as_echo "$as_me:$LINENO: result: yes" >&5
12795 $as_echo "yes" >&6; }
12797 cat >>confdefs.h <<\_ACEOF
12798 #define HAVE_INIT_UTSNAME 1
12803 $as_echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 { $as_echo "$as_me:$LINENO: result: no" >&5
12807 $as_echo "no" >&6; }
12818 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
12819 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
12822 cat >conftest.c <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12830 #include <linux/fdtable.h>
12845 rm -Rf build && mkdir -p build
12846 echo "obj-m := conftest.o" >build/Makefile
12847 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_FDTABLE_HEADER 1
12864 { $as_echo "$as_me:$LINENO: result: yes" >&5
12865 $as_echo "yes" >&6; }
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 { $as_echo "$as_me:$LINENO: result: no" >&5
12873 $as_echo "no" >&6; }
12886 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
12887 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
12890 cat >conftest.c <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12898 #include <linux/sched.h>
12899 #include <linux/file.h>
12900 #ifdef HAVE_FDTABLE_HEADER
12901 #include <linux/fdtable.h>
12908 struct files_struct *files = current->files;
12909 struct fdtable *fdt = files_fdtable(files);
12918 rm -Rf build && mkdir -p build
12919 echo "obj-m := conftest.o" >build/Makefile
12920 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12932 { $as_echo "$as_me:$LINENO: result: yes" >&5
12933 $as_echo "yes" >&6; }
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_FILES_FDTABLE 1
12941 $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 { $as_echo "$as_me:$LINENO: result: no" >&5
12945 $as_echo "no" >&6; }
12956 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
12957 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
12960 cat >conftest.c <<_ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12968 #include <linux/uaccess.h>
12983 rm -Rf build && mkdir -p build
12984 echo "obj-m := conftest.o" >build/Makefile
12985 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12998 cat >>confdefs.h <<\_ACEOF
12999 #define HAVE_UACCESS_HEADER 1
13002 { $as_echo "$as_me:$LINENO: result: yes" >&5
13003 $as_echo "yes" >&6; }
13007 $as_echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 { $as_echo "$as_me:$LINENO: result: no" >&5
13011 $as_echo "no" >&6; }
13024 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13025 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13028 cat >conftest.c <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13036 #include <linux/slab.h>
13042 void *a = kmalloc_node(1, GFP_KERNEL, 0);
13051 rm -Rf build && mkdir -p build
13052 echo "obj-m := conftest.o" >build/Makefile
13053 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13065 { $as_echo "$as_me:$LINENO: result: yes" >&5
13066 $as_echo "yes" >&6; }
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_KMALLOC_NODE 1
13074 $as_echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 { $as_echo "$as_me:$LINENO: result: no" >&5
13078 $as_echo "no" >&6; }
13089 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13090 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13091 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13092 $LINUX_OBJ/Module*.symvers 2>/dev/null
13094 if test $rc -ne 0; then
13097 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13098 "$LINUX_OBJ/$file" 2>/dev/null
13100 if test $rc -eq 0; then
13105 if test $export -eq 0; then
13106 { $as_echo "$as_me:$LINENO: result: no" >&5
13107 $as_echo "no" >&6; }
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111 $as_echo "yes" >&6; }
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_MONOTONIC_CLOCK 1
13119 { $as_echo "$as_me:$LINENO: result: yes" >&5
13120 $as_echo "yes" >&6; }
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_MONOTONIC_CLOCK 1
13130 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13131 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13134 cat >conftest.c <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13142 #include <linux/fs.h>
13143 #include <linux/mutex.h>
13150 mutex_init(&i.i_mutex);
13159 rm -Rf build && mkdir -p build
13160 echo "obj-m := conftest.o" >build/Makefile
13161 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13173 { $as_echo "$as_me:$LINENO: result: yes" >&5
13174 $as_echo "yes" >&6; }
13176 cat >>confdefs.h <<\_ACEOF
13177 #define HAVE_INODE_I_MUTEX 1
13182 $as_echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 { $as_echo "$as_me:$LINENO: result: no" >&5
13186 $as_echo "no" >&6; }
13197 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13198 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13201 cat >conftest.c <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13209 #include <linux/mutex.h>
13225 rm -Rf build && mkdir -p build
13226 echo "obj-m := conftest.o" >build/Makefile
13227 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13239 { $as_echo "$as_me:$LINENO: result: yes" >&5
13240 $as_echo "yes" >&6; }
13242 cat >>confdefs.h <<\_ACEOF
13243 #define HAVE_MUTEX_OWNER 1
13248 $as_echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 { $as_echo "$as_me:$LINENO: result: no" >&5
13252 $as_echo "no" >&6; }
13263 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13264 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13267 cat >conftest.c <<_ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13275 #include <linux/mutex.h>
13281 struct mutex mutex;
13282 mutex_init(&mutex);
13283 mutex_lock_nested(&mutex, 0);
13292 rm -Rf build && mkdir -p build
13293 echo "obj-m := conftest.o" >build/Makefile
13294 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13306 { $as_echo "$as_me:$LINENO: result: yes" >&5
13307 $as_echo "yes" >&6; }
13309 cat >>confdefs.h <<\_ACEOF
13310 #define HAVE_MUTEX_LOCK_NESTED 1
13315 $as_echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 { $as_echo "$as_me:$LINENO: result: no" >&5
13319 $as_echo "no" >&6; }
13330 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
13331 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
13332 grep -q -E '[[:space:]]div64_64[[:space:]]' \
13333 $LINUX_OBJ/Module*.symvers 2>/dev/null
13335 if test $rc -ne 0; then
13338 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
13339 "$LINUX_OBJ/$file" 2>/dev/null
13341 if test $rc -eq 0; then
13346 if test $export -eq 0; then
13347 { $as_echo "$as_me:$LINENO: result: no" >&5
13348 $as_echo "no" >&6; }
13351 { $as_echo "$as_me:$LINENO: result: yes" >&5
13352 $as_echo "yes" >&6; }
13354 cat >>confdefs.h <<\_ACEOF
13355 #define HAVE_DIV64_64 1
13360 { $as_echo "$as_me:$LINENO: result: yes" >&5
13361 $as_echo "yes" >&6; }
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_DIV64_64 1
13371 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
13372 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
13373 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
13374 $LINUX_OBJ/Module*.symvers 2>/dev/null
13376 if test $rc -ne 0; then
13379 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
13380 "$LINUX_OBJ/$file" 2>/dev/null
13382 if test $rc -eq 0; then
13387 if test $export -eq 0; then
13388 { $as_echo "$as_me:$LINENO: result: no" >&5
13389 $as_echo "no" >&6; }
13392 { $as_echo "$as_me:$LINENO: result: yes" >&5
13393 $as_echo "yes" >&6; }
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_DIV64_U64 1
13401 { $as_echo "$as_me:$LINENO: result: yes" >&5
13402 $as_echo "yes" >&6; }
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_DIV64_U64 1
13412 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13413 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13416 cat >conftest.c <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13424 #include <linux/smp.h>
13430 on_each_cpu(NULL, NULL, 0);
13439 rm -Rf build && mkdir -p build
13440 echo "obj-m := conftest.o" >build/Makefile
13441 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13453 { $as_echo "$as_me:$LINENO: result: yes" >&5
13454 $as_echo "yes" >&6; }
13456 cat >>confdefs.h <<\_ACEOF
13457 #define HAVE_3ARGS_ON_EACH_CPU 1
13462 $as_echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 { $as_echo "$as_me:$LINENO: result: no" >&5
13466 $as_echo "no" >&6; }
13477 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13478 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13479 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13480 $LINUX_OBJ/Module*.symvers 2>/dev/null
13482 if test $rc -ne 0; then
13485 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13486 "$LINUX_OBJ/$file" 2>/dev/null
13488 if test $rc -eq 0; then
13493 if test $export -eq 0; then
13494 { $as_echo "$as_me:$LINENO: result: no" >&5
13495 $as_echo "no" >&6; }
13498 { $as_echo "$as_me:$LINENO: result: yes" >&5
13499 $as_echo "yes" >&6; }
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13507 { $as_echo "$as_me:$LINENO: result: yes" >&5
13508 $as_echo "yes" >&6; }
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13518 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13519 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13520 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13521 $LINUX_OBJ/Module*.symvers 2>/dev/null
13523 if test $rc -ne 0; then
13526 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13527 "$LINUX_OBJ/$file" 2>/dev/null
13529 if test $rc -eq 0; then
13534 if test $export -eq 0; then
13535 { $as_echo "$as_me:$LINENO: result: no" >&5
13536 $as_echo "no" >&6; }
13539 { $as_echo "$as_me:$LINENO: result: yes" >&5
13540 $as_echo "yes" >&6; }
13542 cat >>confdefs.h <<\_ACEOF
13543 #define HAVE_GET_VMALLOC_INFO 1
13548 { $as_echo "$as_me:$LINENO: result: yes" >&5
13549 $as_echo "yes" >&6; }
13551 cat >>confdefs.h <<\_ACEOF
13552 #define HAVE_GET_VMALLOC_INFO 1
13559 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13560 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13561 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13563 if test $rc -eq 0; then
13564 { $as_echo "$as_me:$LINENO: result: yes" >&5
13565 $as_echo "yes" >&6; }
13567 cat >>confdefs.h <<\_ACEOF
13568 #define HAVE_PGDAT_HELPERS 1
13572 { $as_echo "$as_me:$LINENO: result: no" >&5
13573 $as_echo "no" >&6; }
13577 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13578 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
13579 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13580 $LINUX_OBJ/Module*.symvers 2>/dev/null
13582 if test $rc -ne 0; then
13585 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13586 "$LINUX_OBJ/$file" 2>/dev/null
13588 if test $rc -eq 0; then
13593 if test $export -eq 0; then
13594 { $as_echo "$as_me:$LINENO: result: no" >&5
13595 $as_echo "no" >&6; }
13598 { $as_echo "$as_me:$LINENO: result: yes" >&5
13599 $as_echo "yes" >&6; }
13601 cat >>confdefs.h <<\_ACEOF
13602 #define HAVE_FIRST_ONLINE_PGDAT 1
13607 { $as_echo "$as_me:$LINENO: result: yes" >&5
13608 $as_echo "yes" >&6; }
13610 cat >>confdefs.h <<\_ACEOF
13611 #define HAVE_FIRST_ONLINE_PGDAT 1
13618 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
13619 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
13620 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13621 $LINUX_OBJ/Module*.symvers 2>/dev/null
13623 if test $rc -ne 0; then
13626 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13627 "$LINUX_OBJ/$file" 2>/dev/null
13629 if test $rc -eq 0; then
13634 if test $export -eq 0; then
13635 { $as_echo "$as_me:$LINENO: result: no" >&5
13636 $as_echo "no" >&6; }
13639 { $as_echo "$as_me:$LINENO: result: yes" >&5
13640 $as_echo "yes" >&6; }
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_NEXT_ONLINE_PGDAT 1
13648 { $as_echo "$as_me:$LINENO: result: yes" >&5
13649 $as_echo "yes" >&6; }
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_NEXT_ONLINE_PGDAT 1
13659 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
13660 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
13661 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13662 $LINUX_OBJ/Module*.symvers 2>/dev/null
13664 if test $rc -ne 0; then
13667 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13668 "$LINUX_OBJ/$file" 2>/dev/null
13670 if test $rc -eq 0; then
13675 if test $export -eq 0; then
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13680 { $as_echo "$as_me:$LINENO: result: yes" >&5
13681 $as_echo "yes" >&6; }
13683 cat >>confdefs.h <<\_ACEOF
13684 #define HAVE_NEXT_ZONE 1
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690 $as_echo "yes" >&6; }
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_NEXT_ZONE 1
13700 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
13701 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
13702 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13703 $LINUX_OBJ/Module*.symvers 2>/dev/null
13705 if test $rc -ne 0; then
13708 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13709 "$LINUX_OBJ/$file" 2>/dev/null
13711 if test $rc -eq 0; then
13716 if test $export -eq 0; then
13717 { $as_echo "$as_me:$LINENO: result: no" >&5
13718 $as_echo "no" >&6; }
13721 { $as_echo "$as_me:$LINENO: result: yes" >&5
13722 $as_echo "yes" >&6; }
13724 cat >>confdefs.h <<\_ACEOF
13725 #define HAVE_PGDAT_LIST 1
13730 { $as_echo "$as_me:$LINENO: result: yes" >&5
13731 $as_echo "yes" >&6; }
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_PGDAT_LIST 1
13741 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
13742 $as_echo_n "checking whether global_page_state() is available... " >&6; }
13745 cat >conftest.c <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13753 #include <linux/mm.h>
13759 unsigned long state;
13760 state = global_page_state(0);
13769 rm -Rf build && mkdir -p build
13770 echo "obj-m := conftest.o" >build/Makefile
13771 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13783 { $as_echo "$as_me:$LINENO: result: yes" >&5
13784 $as_echo "yes" >&6; }
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_GLOBAL_PAGE_STATE 1
13792 $as_echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 { $as_echo "$as_me:$LINENO: result: no" >&5
13796 $as_echo "no" >&6; }
13807 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
13808 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
13811 cat >conftest.c <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13819 #include <linux/mm.h>
13825 enum zone_stat_item zsi;
13826 zsi = NR_FREE_PAGES;
13835 rm -Rf build && mkdir -p build
13836 echo "obj-m := conftest.o" >build/Makefile
13837 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13849 { $as_echo "$as_me:$LINENO: result: yes" >&5
13850 $as_echo "yes" >&6; }
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
13858 $as_echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 { $as_echo "$as_me:$LINENO: result: no" >&5
13862 $as_echo "no" >&6; }
13873 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
13874 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
13877 cat >conftest.c <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13885 #include <linux/mm.h>
13891 enum zone_stat_item zsi;
13901 rm -Rf build && mkdir -p build
13902 echo "obj-m := conftest.o" >build/Makefile
13903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13915 { $as_echo "$as_me:$LINENO: result: yes" >&5
13916 $as_echo "yes" >&6; }
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
13924 $as_echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 { $as_echo "$as_me:$LINENO: result: no" >&5
13928 $as_echo "no" >&6; }
13938 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
13939 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
13942 cat >conftest.c <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13950 #include <linux/mm.h>
13956 enum zone_stat_item zsi;
13957 zsi = NR_INACTIVE_ANON;
13966 rm -Rf build && mkdir -p build
13967 echo "obj-m := conftest.o" >build/Makefile
13968 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13980 { $as_echo "$as_me:$LINENO: result: yes" >&5
13981 $as_echo "yes" >&6; }
13983 cat >>confdefs.h <<\_ACEOF
13984 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
13989 $as_echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 { $as_echo "$as_me:$LINENO: result: no" >&5
13993 $as_echo "no" >&6; }
14003 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14004 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14007 cat >conftest.c <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14015 #include <linux/mm.h>
14021 enum zone_stat_item zsi;
14022 zsi = NR_INACTIVE_FILE;
14031 rm -Rf build && mkdir -p build
14032 echo "obj-m := conftest.o" >build/Makefile
14033 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14045 { $as_echo "$as_me:$LINENO: result: yes" >&5
14046 $as_echo "yes" >&6; }
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14054 $as_echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 { $as_echo "$as_me:$LINENO: result: no" >&5
14058 $as_echo "no" >&6; }
14069 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14070 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14073 cat >conftest.c <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14081 #include <linux/mm.h>
14087 enum zone_stat_item zsi;
14097 rm -Rf build && mkdir -p build
14098 echo "obj-m := conftest.o" >build/Makefile
14099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14111 { $as_echo "$as_me:$LINENO: result: yes" >&5
14112 $as_echo "yes" >&6; }
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14120 $as_echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 { $as_echo "$as_me:$LINENO: result: no" >&5
14124 $as_echo "no" >&6; }
14134 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14135 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14138 cat >conftest.c <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14146 #include <linux/mm.h>
14152 enum zone_stat_item zsi;
14153 zsi = NR_ACTIVE_ANON;
14162 rm -Rf build && mkdir -p build
14163 echo "obj-m := conftest.o" >build/Makefile
14164 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14176 { $as_echo "$as_me:$LINENO: result: yes" >&5
14177 $as_echo "yes" >&6; }
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14185 $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 { $as_echo "$as_me:$LINENO: result: no" >&5
14189 $as_echo "no" >&6; }
14199 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14200 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14203 cat >conftest.c <<_ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14211 #include <linux/mm.h>
14217 enum zone_stat_item zsi;
14218 zsi = NR_ACTIVE_FILE;
14227 rm -Rf build && mkdir -p build
14228 echo "obj-m := conftest.o" >build/Makefile
14229 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14241 { $as_echo "$as_me:$LINENO: result: yes" >&5
14242 $as_echo "yes" >&6; }
14244 cat >>confdefs.h <<\_ACEOF
14245 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14250 $as_echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 { $as_echo "$as_me:$LINENO: result: no" >&5
14254 $as_echo "no" >&6; }
14265 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14266 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14269 cat >conftest.c <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14282 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14283 #error "global_page_state needs NR_FREE_PAGES"
14286 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14287 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14288 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14289 #error "global_page_state needs NR_ACTIVE*"
14292 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14293 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14294 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14295 #error "global_page_state needs NR_INACTIVE*"
14305 rm -Rf build && mkdir -p build
14306 echo "obj-m := conftest.o" >build/Makefile
14307 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14319 { $as_echo "$as_me:$LINENO: result: no" >&5
14320 $as_echo "no" >&6; }
14323 $as_echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 { $as_echo "$as_me:$LINENO: result: yes" >&5
14327 $as_echo "yes" >&6; }
14329 cat >>confdefs.h <<\_ACEOF
14330 #define NEED_GET_ZONE_COUNTS 1
14334 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14335 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14336 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14337 $LINUX_OBJ/Module*.symvers 2>/dev/null
14339 if test $rc -ne 0; then
14342 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14343 "$LINUX_OBJ/$file" 2>/dev/null
14345 if test $rc -eq 0; then
14350 if test $export -eq 0; then
14351 { $as_echo "$as_me:$LINENO: result: no" >&5
14352 $as_echo "no" >&6; }
14355 { $as_echo "$as_me:$LINENO: result: yes" >&5
14356 $as_echo "yes" >&6; }
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_GET_ZONE_COUNTS 1
14364 { $as_echo "$as_me:$LINENO: result: yes" >&5
14365 $as_echo "yes" >&6; }
14367 cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_GET_ZONE_COUNTS 1
14383 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14384 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14385 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14386 $LINUX_OBJ/Module*.symvers 2>/dev/null
14388 if test $rc -ne 0; then
14391 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14392 "$LINUX_OBJ/$file" 2>/dev/null
14394 if test $rc -eq 0; then
14399 if test $export -eq 0; then
14400 { $as_echo "$as_me:$LINENO: result: no" >&5
14401 $as_echo "no" >&6; }
14404 { $as_echo "$as_me:$LINENO: result: yes" >&5
14405 $as_echo "yes" >&6; }
14407 cat >>confdefs.h <<\_ACEOF
14408 #define HAVE_SET_FS_PWD 1
14413 { $as_echo "$as_me:$LINENO: result: yes" >&5
14414 $as_echo "yes" >&6; }
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_SET_FS_PWD 1
14423 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14424 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14427 cat >conftest.c <<_ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14435 #include <linux/sched.h>
14436 #include <linux/fs_struct.h>
14442 set_fs_pwd(NULL, NULL);
14451 rm -Rf build && mkdir -p build
14452 echo "obj-m := conftest.o" >build/Makefile
14453 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14465 { $as_echo "$as_me:$LINENO: result: yes" >&5
14466 $as_echo "yes" >&6; }
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_2ARGS_SET_FS_PWD 1
14474 $as_echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 { $as_echo "$as_me:$LINENO: result: no" >&5
14478 $as_echo "no" >&6; }
14488 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14489 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14492 cat >conftest.c <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14500 #include <linux/fs.h>
14506 vfs_unlink(NULL, NULL);
14515 rm -Rf build && mkdir -p build
14516 echo "obj-m := conftest.o" >build/Makefile
14517 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14529 { $as_echo "$as_me:$LINENO: result: yes" >&5
14530 $as_echo "yes" >&6; }
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_2ARGS_VFS_UNLINK 1
14538 $as_echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 { $as_echo "$as_me:$LINENO: result: no" >&5
14542 $as_echo "no" >&6; }
14552 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
14553 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
14556 cat >conftest.c <<_ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14564 #include <linux/fs.h>
14570 vfs_rename(NULL, NULL, NULL, NULL);
14579 rm -Rf build && mkdir -p build
14580 echo "obj-m := conftest.o" >build/Makefile
14581 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14593 { $as_echo "$as_me:$LINENO: result: yes" >&5
14594 $as_echo "yes" >&6; }
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_4ARGS_VFS_RENAME 1
14602 $as_echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 { $as_echo "$as_me:$LINENO: result: no" >&5
14606 $as_echo "no" >&6; }
14617 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
14618 $as_echo_n "checking whether struct cred exists... " >&6; }
14621 cat >conftest.c <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14629 #include <linux/cred.h>
14645 rm -Rf build && mkdir -p build
14646 echo "obj-m := conftest.o" >build/Makefile
14647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14659 { $as_echo "$as_me:$LINENO: result: yes" >&5
14660 $as_echo "yes" >&6; }
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_CRED_STRUCT 1
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 { $as_echo "$as_me:$LINENO: result: no" >&5
14672 $as_echo "no" >&6; }
14683 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
14684 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
14685 grep -q -E '[[:space:]]groups_search[[:space:]]' \
14686 $LINUX_OBJ/Module*.symvers 2>/dev/null
14688 if test $rc -ne 0; then
14691 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
14692 "$LINUX_OBJ/$file" 2>/dev/null
14694 if test $rc -eq 0; then
14699 if test $export -eq 0; then
14700 { $as_echo "$as_me:$LINENO: result: no" >&5
14701 $as_echo "no" >&6; }
14704 { $as_echo "$as_me:$LINENO: result: yes" >&5
14705 $as_echo "yes" >&6; }
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_GROUPS_SEARCH 1
14713 { $as_echo "$as_me:$LINENO: result: yes" >&5
14714 $as_echo "yes" >&6; }
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_GROUPS_SEARCH 1
14724 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
14725 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
14726 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14727 $LINUX_OBJ/Module*.symvers 2>/dev/null
14729 if test $rc -ne 0; then
14732 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14733 "$LINUX_OBJ/$file" 2>/dev/null
14735 if test $rc -eq 0; then
14740 if test $export -eq 0; then
14741 { $as_echo "$as_me:$LINENO: result: no" >&5
14742 $as_echo "no" >&6; }
14745 { $as_echo "$as_me:$LINENO: result: yes" >&5
14746 $as_echo "yes" >&6; }
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_PUT_TASK_STRUCT 1
14754 { $as_echo "$as_me:$LINENO: result: yes" >&5
14755 $as_echo "yes" >&6; }
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_PUT_TASK_STRUCT 1
14765 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
14766 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
14769 cat >conftest.c <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14777 #include <linux/sysctl.h>
14783 proc_dostring(NULL, 0, NULL, NULL, NULL);
14792 rm -Rf build && mkdir -p build
14793 echo "obj-m := conftest.o" >build/Makefile
14794 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14806 { $as_echo "$as_me:$LINENO: result: yes" >&5
14807 $as_echo "yes" >&6; }
14809 cat >>confdefs.h <<\_ACEOF
14810 #define HAVE_5ARGS_PROC_HANDLER 1
14815 $as_echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 { $as_echo "$as_me:$LINENO: result: no" >&5
14819 $as_echo "no" >&6; }
14834 # Check whether --with-linux was given.
14835 if test "${with_linux+set}" = set; then
14836 withval=$with_linux; kernelsrc="$withval"
14841 # Check whether --with-linux-obj was given.
14842 if test "${with_linux_obj+set}" = set; then
14843 withval=$with_linux_obj; kernelbuild="$withval"
14847 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14848 $as_echo_n "checking kernel source directory... " >&6; }
14849 if test -z "$kernelsrc"; then
14850 headersdir="/lib/modules/$(uname -r)/build"
14851 if test -e "$headersdir"; then
14852 sourcelink=$(readlink -f "$headersdir")
14854 sourcelink=$(ls -1d /usr/src/kernels/* \
14856 2>/dev/null | grep -v obj | tail -1)
14859 if test -e ${sourcelink}; then
14860 kernelsrc=`readlink -f ${sourcelink}`
14862 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14863 $as_echo "Not found" >&6; }
14864 { { $as_echo "$as_me:$LINENO: error:
14865 *** Please specify the location of the kernel source
14866 *** with the '--with-linux=PATH' option" >&5
14867 $as_echo "$as_me: error:
14868 *** Please specify the location of the kernel source
14869 *** with the '--with-linux=PATH' option" >&2;}
14870 { (exit 1); exit 1; }; }
14873 if test "$kernelsrc" = "NONE"; then
14878 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14879 $as_echo "$kernelsrc" >&6; }
14880 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14881 $as_echo_n "checking kernel build directory... " >&6; }
14882 if test -z "$kernelbuild"; then
14883 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
14884 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
14885 elif test -d ${kernelsrc}-obj/`arch`/default; then
14886 kernelbuild=${kernelsrc}-obj/`arch`/default
14887 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
14888 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
14890 kernelbuild=${kernelsrc}
14893 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
14894 $as_echo "$kernelbuild" >&6; }
14896 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
14897 $as_echo_n "checking kernel source version... " >&6; }
14898 if test -r $kernelbuild/include/linux/version.h &&
14899 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
14901 kernsrcver=`(echo "#include <linux/version.h>";
14902 echo "kernsrcver=UTS_RELEASE") |
14903 cpp -I $kernelbuild/include |
14904 grep "^kernsrcver=" | cut -d \" -f 2`
14906 elif test -r $kernelbuild/include/linux/utsrelease.h &&
14907 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
14909 kernsrcver=`(echo "#include <linux/utsrelease.h>";
14910 echo "kernsrcver=UTS_RELEASE") |
14911 cpp -I $kernelbuild/include |
14912 grep "^kernsrcver=" | cut -d \" -f 2`
14915 if test -z "$kernsrcver"; then
14916 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14917 $as_echo "Not found" >&6; }
14918 { { $as_echo "$as_me:$LINENO: error:
14919 *** Cannot determine the version of the linux kernel source.
14920 *** Please prepare the kernel before running this script" >&5
14921 $as_echo "$as_me: error:
14922 *** Cannot determine the version of the linux kernel source.
14923 *** Please prepare the kernel before running this script" >&2;}
14924 { (exit 1); exit 1; }; }
14927 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
14928 $as_echo "$kernsrcver" >&6; }
14931 LINUX_OBJ=${kernelbuild}
14932 LINUX_VERSION=${kernsrcver}
14939 modpost=$LINUX/scripts/Makefile.modpost
14940 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
14941 $as_echo_n "checking kernel file name for module symbols... " >&6; }
14942 if test -f "$modpost"; then
14943 if grep -q Modules.symvers $modpost; then
14944 LINUX_SYMBOLS=Modules.symvers
14946 LINUX_SYMBOLS=Module.symvers
14951 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14952 $as_echo "$LINUX_SYMBOLS" >&6; }
14957 abs_srcdir=`readlink -f ${srcdir}`
14958 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
14959 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
14960 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
14962 if test "${LINUX_OBJ}" != "${LINUX}"; then
14963 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14970 # Check whether --enable-debug was given.
14971 if test "${enable_debug+set}" = set; then
14972 enableval=$enable_debug;
14978 if test "x$enable_debug" = xyes; then
14979 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
14981 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
14985 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
14986 $as_echo_n "checking whether debugging is enabled... " >&6; }
14987 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
14988 $as_echo "$enable_debug" >&6; }
14991 # Check whether --enable-debug-kmem was given.
14992 if test "${enable_debug_kmem+set}" = set; then
14993 enableval=$enable_debug_kmem;
14995 enable_debug_kmem=yes
14999 if test "x$enable_debug_kmem" = xyes; then
15001 cat >>confdefs.h <<\_ACEOF
15002 #define DEBUG_KMEM 1
15005 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15009 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15010 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15011 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15012 $as_echo "$enable_debug_kmem" >&6; }
15015 # Check whether --enable-debug-kmem-tracking was given.
15016 if test "${enable_debug_kmem_tracking+set}" = set; then
15017 enableval=$enable_debug_kmem_tracking;
15019 enable_debug_kmem_tracking=no
15023 if test "x$enable_debug_kmem_tracking" = xyes; then
15025 cat >>confdefs.h <<\_ACEOF
15026 #define DEBUG_KMEM_TRACKING 1
15029 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15033 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15034 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15035 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15036 $as_echo "$enable_debug_kmem_tracking" >&6; }
15039 # Check whether --enable-atomic-spinlocks was given.
15040 if test "${enable_atomic_spinlocks+set}" = set; then
15041 enableval=$enable_atomic_spinlocks;
15043 enable_atomic_spinlocks=check
15049 cat >conftest.c <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15057 #include <asm/atomic.h>
15072 rm -Rf build && mkdir -p build
15073 echo "obj-m := conftest.o" >build/Makefile
15074 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15086 have_atomic64_t=yes
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_ATOMIC64_T 1
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15107 if test "x$enable_atomic_spinlocks" = xcheck; then
15109 if test "x$have_atomic64_t" = xyes; then
15111 enable_atomic_spinlocks=no
15115 enable_atomic_spinlocks=yes
15123 if test "x$enable_atomic_spinlocks" = xyes; then
15126 cat >>confdefs.h <<\_ACEOF
15127 #define ATOMIC_SPINLOCK 1
15133 if test "x$have_atomic64_t" = xno; then
15135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15137 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15138 See \`config.log' for more details." >&5
15139 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15140 See \`config.log' for more details." >&2;}
15141 { (exit 1); exit 1; }; }; }
15149 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15150 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15151 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15152 $as_echo "$enable_atomic_spinlocks" >&6; }
15154 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15155 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15156 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15157 $as_echo "$have_atomic64_t" >&6; }
15159 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
15160 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
15163 cat >conftest.c <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15171 #include <asm/atomic.h>
15177 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
15186 rm -Rf build && mkdir -p build
15187 echo "obj-m := conftest.o" >build/Makefile
15188 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15200 { $as_echo "$as_me:$LINENO: result: yes" >&5
15201 $as_echo "yes" >&6; }
15203 cat >>confdefs.h <<\_ACEOF
15204 #define HAVE_ATOMIC64_CMPXCHG 1
15209 $as_echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 { $as_echo "$as_me:$LINENO: result: no" >&5
15213 $as_echo "no" >&6; }
15223 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
15224 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
15227 cat >conftest.c <<_ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15235 #include <asm/atomic.h>
15241 atomic64_xchg((atomic64_t *)NULL, 0);
15250 rm -Rf build && mkdir -p build
15251 echo "obj-m := conftest.o" >build/Makefile
15252 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15264 { $as_echo "$as_me:$LINENO: result: yes" >&5
15265 $as_echo "yes" >&6; }
15267 cat >>confdefs.h <<\_ACEOF
15268 #define HAVE_ATOMIC64_XCHG 1
15273 $as_echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 { $as_echo "$as_me:$LINENO: result: no" >&5
15277 $as_echo "no" >&6; }
15287 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
15288 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
15291 cat >conftest.c <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15299 #include <linux/types.h>
15314 rm -Rf build && mkdir -p build
15315 echo "obj-m := conftest.o" >build/Makefile
15316 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15328 { $as_echo "$as_me:$LINENO: result: yes" >&5
15329 $as_echo "yes" >&6; }
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_UINTPTR_T 1
15337 $as_echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 { $as_echo "$as_me:$LINENO: result: no" >&5
15341 $as_echo "no" >&6; }
15351 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
15352 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
15355 cat >conftest.c <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15363 #include <linux/workqueue.h>
15369 struct work_struct work;
15370 INIT_WORK(&work, NULL, NULL);
15379 rm -Rf build && mkdir -p build
15380 echo "obj-m := conftest.o" >build/Makefile
15381 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15393 { $as_echo "$as_me:$LINENO: result: yes" >&5
15394 $as_echo "yes" >&6; }
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_3ARGS_INIT_WORK 1
15402 $as_echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15405 { $as_echo "$as_me:$LINENO: result: no" >&5
15406 $as_echo "no" >&6; }
15416 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
15417 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
15420 cat >conftest.c <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15428 #include <linux/sysctl.h>
15434 return register_sysctl_table(NULL,0);
15443 rm -Rf build && mkdir -p build
15444 echo "obj-m := conftest.o" >build/Makefile
15445 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15457 { $as_echo "$as_me:$LINENO: result: yes" >&5
15458 $as_echo "yes" >&6; }
15460 cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_2ARGS_REGISTER_SYSCTL 1
15466 $as_echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 { $as_echo "$as_me:$LINENO: result: no" >&5
15470 $as_echo "no" >&6; }
15481 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
15482 $as_echo_n "checking whether set_shrinker() available... " >&6; }
15485 cat >conftest.c <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15493 #include <linux/mm.h>
15499 return set_shrinker(DEFAULT_SEEKS, NULL);
15508 rm -Rf build && mkdir -p build
15509 echo "obj-m := conftest.o" >build/Makefile
15510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15522 { $as_echo "$as_me:$LINENO: result: yes" >&5
15523 $as_echo "yes" >&6; }
15525 cat >>confdefs.h <<\_ACEOF
15526 #define HAVE_SET_SHRINKER 1
15531 $as_echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 { $as_echo "$as_me:$LINENO: result: no" >&5
15535 $as_echo "no" >&6; }
15545 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
15546 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
15549 cat >conftest.c <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15557 #include <linux/namei.h>
15563 struct nameidata nd;
15565 nd.path.mnt = NULL;
15566 nd.path.dentry = NULL;
15575 rm -Rf build && mkdir -p build
15576 echo "obj-m := conftest.o" >build/Makefile
15577 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15589 { $as_echo "$as_me:$LINENO: result: yes" >&5
15590 $as_echo "yes" >&6; }
15592 cat >>confdefs.h <<\_ACEOF
15593 #define HAVE_PATH_IN_NAMEIDATA 1
15598 $as_echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 { $as_echo "$as_me:$LINENO: result: no" >&5
15602 $as_echo "no" >&6; }
15613 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
15614 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
15615 grep -q -E '[[:space:]]task_curr[[:space:]]' \
15616 $LINUX_OBJ/Module*.symvers 2>/dev/null
15618 if test $rc -ne 0; then
15620 for file in kernel/sched.c; do
15621 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
15622 "$LINUX_OBJ/$file" 2>/dev/null
15624 if test $rc -eq 0; then
15629 if test $export -eq 0; then
15630 { $as_echo "$as_me:$LINENO: result: no" >&5
15631 $as_echo "no" >&6; }
15634 { $as_echo "$as_me:$LINENO: result: yes" >&5
15635 $as_echo "yes" >&6; }
15637 cat >>confdefs.h <<\_ACEOF
15638 #define HAVE_TASK_CURR 1
15643 { $as_echo "$as_me:$LINENO: result: yes" >&5
15644 $as_echo "yes" >&6; }
15646 cat >>confdefs.h <<\_ACEOF
15647 #define HAVE_TASK_CURR 1
15653 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
15654 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
15657 cat >conftest.c <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15665 #include <linux/sysctl.h>
15671 #ifndef CTL_UNNUMBERED
15672 #error CTL_UNNUMBERED undefined
15682 rm -Rf build && mkdir -p build
15683 echo "obj-m := conftest.o" >build/Makefile
15684 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15696 { $as_echo "$as_me:$LINENO: result: yes" >&5
15697 $as_echo "yes" >&6; }
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_CTL_UNNUMBERED 1
15705 $as_echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 { $as_echo "$as_me:$LINENO: result: no" >&5
15709 $as_echo "no" >&6; }
15719 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
15720 $as_echo_n "checking whether fls64() is available... " >&6; }
15723 cat >conftest.c <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15731 #include <linux/bitops.h>
15746 rm -Rf build && mkdir -p build
15747 echo "obj-m := conftest.o" >build/Makefile
15748 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15760 { $as_echo "$as_me:$LINENO: result: yes" >&5
15761 $as_echo "yes" >&6; }
15763 cat >>confdefs.h <<\_ACEOF
15764 #define HAVE_FLS64 1
15769 $as_echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 { $as_echo "$as_me:$LINENO: result: no" >&5
15773 $as_echo "no" >&6; }
15784 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
15785 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
15786 grep -q -E '[[:space:]]device_create[[:space:]]' \
15787 $LINUX_OBJ/Module*.symvers 2>/dev/null
15789 if test $rc -ne 0; then
15791 for file in drivers/base/core.c; do
15792 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
15793 "$LINUX_OBJ/$file" 2>/dev/null
15795 if test $rc -eq 0; then
15800 if test $export -eq 0; then
15801 { $as_echo "$as_me:$LINENO: result: no" >&5
15802 $as_echo "no" >&6; }
15805 { $as_echo "$as_me:$LINENO: result: yes" >&5
15806 $as_echo "yes" >&6; }
15808 cat >>confdefs.h <<\_ACEOF
15809 #define HAVE_DEVICE_CREATE 1
15814 { $as_echo "$as_me:$LINENO: result: yes" >&5
15815 $as_echo "yes" >&6; }
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_DEVICE_CREATE 1
15825 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
15826 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
15827 tmp_flags="$EXTRA_KCFLAGS"
15828 EXTRA_KCFLAGS="-Werror"
15831 cat >conftest.c <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15839 #include <linux/device.h>
15845 device_create(NULL, NULL, 0, NULL, "%d", 1);
15854 rm -Rf build && mkdir -p build
15855 echo "obj-m := conftest.o" >build/Makefile
15856 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15868 { $as_echo "$as_me:$LINENO: result: yes" >&5
15869 $as_echo "yes" >&6; }
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HAVE_5ARGS_DEVICE_CREATE 1
15877 $as_echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 { $as_echo "$as_me:$LINENO: result: no" >&5
15881 $as_echo "no" >&6; }
15890 EXTRA_KCFLAGS="$tmp_flags"
15893 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
15894 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
15895 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
15896 $LINUX_OBJ/Module*.symvers 2>/dev/null
15898 if test $rc -ne 0; then
15900 for file in drivers/base/class.c; do
15901 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
15902 "$LINUX_OBJ/$file" 2>/dev/null
15904 if test $rc -eq 0; then
15909 if test $export -eq 0; then
15910 { $as_echo "$as_me:$LINENO: result: no" >&5
15911 $as_echo "no" >&6; }
15914 { $as_echo "$as_me:$LINENO: result: yes" >&5
15915 $as_echo "yes" >&6; }
15917 cat >>confdefs.h <<\_ACEOF
15918 #define HAVE_CLASS_DEVICE_CREATE 1
15923 { $as_echo "$as_me:$LINENO: result: yes" >&5
15924 $as_echo "yes" >&6; }
15926 cat >>confdefs.h <<\_ACEOF
15927 #define HAVE_CLASS_DEVICE_CREATE 1
15934 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
15935 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
15936 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
15937 $LINUX_OBJ/Module*.symvers 2>/dev/null
15939 if test $rc -ne 0; then
15941 for file in kernel/time.c; do
15942 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
15943 "$LINUX_OBJ/$file" 2>/dev/null
15945 if test $rc -eq 0; then
15950 if test $export -eq 0; then
15951 { $as_echo "$as_me:$LINENO: result: no" >&5
15952 $as_echo "no" >&6; }
15955 { $as_echo "$as_me:$LINENO: result: yes" >&5
15956 $as_echo "yes" >&6; }
15958 cat >>confdefs.h <<\_ACEOF
15959 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
15964 { $as_echo "$as_me:$LINENO: result: yes" >&5
15965 $as_echo "yes" >&6; }
15967 cat >>confdefs.h <<\_ACEOF
15968 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
15975 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
15976 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
15979 cat >conftest.c <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15987 #include <linux/time.h>
15988 void set_normalized_timespec(struct timespec *ts,
15989 time_t sec, long nsec) { }
16002 rm -Rf build && mkdir -p build
16003 echo "obj-m := conftest.o" >build/Makefile
16004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16016 { $as_echo "$as_me:$LINENO: result: no" >&5
16017 $as_echo "no" >&6; }
16020 $as_echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 { $as_echo "$as_me:$LINENO: result: yes" >&5
16024 $as_echo "yes" >&6; }
16026 cat >>confdefs.h <<\_ACEOF
16027 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
16040 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
16041 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
16044 cat >conftest.c <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16052 #include <linux/time.h>
16058 struct timespec a, b, c = { 0 };
16059 c = timespec_sub(a, b);
16068 rm -Rf build && mkdir -p build
16069 echo "obj-m := conftest.o" >build/Makefile
16070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16082 { $as_echo "$as_me:$LINENO: result: yes" >&5
16083 $as_echo "yes" >&6; }
16085 cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_TIMESPEC_SUB 1
16091 $as_echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 { $as_echo "$as_me:$LINENO: result: no" >&5
16095 $as_echo "no" >&6; }
16106 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
16107 $as_echo_n "checking whether init_utsname() is available... " >&6; }
16110 cat >conftest.c <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16118 #include <linux/utsname.h>
16124 struct new_utsname *a = init_utsname();
16133 rm -Rf build && mkdir -p build
16134 echo "obj-m := conftest.o" >build/Makefile
16135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16147 { $as_echo "$as_me:$LINENO: result: yes" >&5
16148 $as_echo "yes" >&6; }
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_INIT_UTSNAME 1
16156 $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 { $as_echo "$as_me:$LINENO: result: no" >&5
16160 $as_echo "no" >&6; }
16171 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
16172 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
16175 cat >conftest.c <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16183 #include <linux/fdtable.h>
16198 rm -Rf build && mkdir -p build
16199 echo "obj-m := conftest.o" >build/Makefile
16200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16213 cat >>confdefs.h <<\_ACEOF
16214 #define HAVE_FDTABLE_HEADER 1
16217 { $as_echo "$as_me:$LINENO: result: yes" >&5
16218 $as_echo "yes" >&6; }
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 { $as_echo "$as_me:$LINENO: result: no" >&5
16226 $as_echo "no" >&6; }
16239 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
16240 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
16243 cat >conftest.c <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16251 #include <linux/sched.h>
16252 #include <linux/file.h>
16253 #ifdef HAVE_FDTABLE_HEADER
16254 #include <linux/fdtable.h>
16261 struct files_struct *files = current->files;
16262 struct fdtable *fdt = files_fdtable(files);
16271 rm -Rf build && mkdir -p build
16272 echo "obj-m := conftest.o" >build/Makefile
16273 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16285 { $as_echo "$as_me:$LINENO: result: yes" >&5
16286 $as_echo "yes" >&6; }
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_FILES_FDTABLE 1
16294 $as_echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 { $as_echo "$as_me:$LINENO: result: no" >&5
16298 $as_echo "no" >&6; }
16309 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
16310 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
16313 cat >conftest.c <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16321 #include <linux/uaccess.h>
16336 rm -Rf build && mkdir -p build
16337 echo "obj-m := conftest.o" >build/Makefile
16338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_UACCESS_HEADER 1
16355 { $as_echo "$as_me:$LINENO: result: yes" >&5
16356 $as_echo "yes" >&6; }
16360 $as_echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 { $as_echo "$as_me:$LINENO: result: no" >&5
16364 $as_echo "no" >&6; }
16377 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
16378 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
16381 cat >conftest.c <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16389 #include <linux/slab.h>
16395 void *a = kmalloc_node(1, GFP_KERNEL, 0);
16404 rm -Rf build && mkdir -p build
16405 echo "obj-m := conftest.o" >build/Makefile
16406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16418 { $as_echo "$as_me:$LINENO: result: yes" >&5
16419 $as_echo "yes" >&6; }
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_KMALLOC_NODE 1
16427 $as_echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 { $as_echo "$as_me:$LINENO: result: no" >&5
16431 $as_echo "no" >&6; }
16442 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
16443 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
16444 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
16445 $LINUX_OBJ/Module*.symvers 2>/dev/null
16447 if test $rc -ne 0; then
16450 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
16451 "$LINUX_OBJ/$file" 2>/dev/null
16453 if test $rc -eq 0; then
16458 if test $export -eq 0; then
16459 { $as_echo "$as_me:$LINENO: result: no" >&5
16460 $as_echo "no" >&6; }
16463 { $as_echo "$as_me:$LINENO: result: yes" >&5
16464 $as_echo "yes" >&6; }
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_MONOTONIC_CLOCK 1
16472 { $as_echo "$as_me:$LINENO: result: yes" >&5
16473 $as_echo "yes" >&6; }
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_MONOTONIC_CLOCK 1
16483 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
16484 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
16487 cat >conftest.c <<_ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16495 #include <linux/fs.h>
16496 #include <linux/mutex.h>
16503 mutex_init(&i.i_mutex);
16512 rm -Rf build && mkdir -p build
16513 echo "obj-m := conftest.o" >build/Makefile
16514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16526 { $as_echo "$as_me:$LINENO: result: yes" >&5
16527 $as_echo "yes" >&6; }
16529 cat >>confdefs.h <<\_ACEOF
16530 #define HAVE_INODE_I_MUTEX 1
16535 $as_echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 { $as_echo "$as_me:$LINENO: result: no" >&5
16539 $as_echo "no" >&6; }
16550 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
16551 $as_echo_n "checking whether struct mutex has owner... " >&6; }
16554 cat >conftest.c <<_ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16562 #include <linux/mutex.h>
16578 rm -Rf build && mkdir -p build
16579 echo "obj-m := conftest.o" >build/Makefile
16580 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16592 { $as_echo "$as_me:$LINENO: result: yes" >&5
16593 $as_echo "yes" >&6; }
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_MUTEX_OWNER 1
16601 $as_echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 { $as_echo "$as_me:$LINENO: result: no" >&5
16605 $as_echo "no" >&6; }
16616 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
16617 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
16620 cat >conftest.c <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16628 #include <linux/mutex.h>
16634 struct mutex mutex;
16635 mutex_init(&mutex);
16636 mutex_lock_nested(&mutex, 0);
16645 rm -Rf build && mkdir -p build
16646 echo "obj-m := conftest.o" >build/Makefile
16647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16659 { $as_echo "$as_me:$LINENO: result: yes" >&5
16660 $as_echo "yes" >&6; }
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_MUTEX_LOCK_NESTED 1
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 { $as_echo "$as_me:$LINENO: result: no" >&5
16672 $as_echo "no" >&6; }
16683 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
16684 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
16685 grep -q -E '[[:space:]]div64_64[[:space:]]' \
16686 $LINUX_OBJ/Module*.symvers 2>/dev/null
16688 if test $rc -ne 0; then
16691 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
16692 "$LINUX_OBJ/$file" 2>/dev/null
16694 if test $rc -eq 0; then
16699 if test $export -eq 0; then
16700 { $as_echo "$as_me:$LINENO: result: no" >&5
16701 $as_echo "no" >&6; }
16704 { $as_echo "$as_me:$LINENO: result: yes" >&5
16705 $as_echo "yes" >&6; }
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_DIV64_64 1
16713 { $as_echo "$as_me:$LINENO: result: yes" >&5
16714 $as_echo "yes" >&6; }
16716 cat >>confdefs.h <<\_ACEOF
16717 #define HAVE_DIV64_64 1
16724 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
16725 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
16726 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
16727 $LINUX_OBJ/Module*.symvers 2>/dev/null
16729 if test $rc -ne 0; then
16732 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
16733 "$LINUX_OBJ/$file" 2>/dev/null
16735 if test $rc -eq 0; then
16740 if test $export -eq 0; then
16741 { $as_echo "$as_me:$LINENO: result: no" >&5
16742 $as_echo "no" >&6; }
16745 { $as_echo "$as_me:$LINENO: result: yes" >&5
16746 $as_echo "yes" >&6; }
16748 cat >>confdefs.h <<\_ACEOF
16749 #define HAVE_DIV64_U64 1
16754 { $as_echo "$as_me:$LINENO: result: yes" >&5
16755 $as_echo "yes" >&6; }
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_DIV64_U64 1
16765 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
16766 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
16769 cat >conftest.c <<_ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16777 #include <linux/smp.h>
16783 on_each_cpu(NULL, NULL, 0);
16792 rm -Rf build && mkdir -p build
16793 echo "obj-m := conftest.o" >build/Makefile
16794 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16806 { $as_echo "$as_me:$LINENO: result: yes" >&5
16807 $as_echo "yes" >&6; }
16809 cat >>confdefs.h <<\_ACEOF
16810 #define HAVE_3ARGS_ON_EACH_CPU 1
16815 $as_echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 { $as_echo "$as_me:$LINENO: result: no" >&5
16819 $as_echo "no" >&6; }
16830 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
16831 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
16832 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
16833 $LINUX_OBJ/Module*.symvers 2>/dev/null
16835 if test $rc -ne 0; then
16838 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
16839 "$LINUX_OBJ/$file" 2>/dev/null
16841 if test $rc -eq 0; then
16846 if test $export -eq 0; then
16847 { $as_echo "$as_me:$LINENO: result: no" >&5
16848 $as_echo "no" >&6; }
16851 { $as_echo "$as_me:$LINENO: result: yes" >&5
16852 $as_echo "yes" >&6; }
16854 cat >>confdefs.h <<\_ACEOF
16855 #define HAVE_KALLSYMS_LOOKUP_NAME 1
16860 { $as_echo "$as_me:$LINENO: result: yes" >&5
16861 $as_echo "yes" >&6; }
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_KALLSYMS_LOOKUP_NAME 1
16871 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
16872 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
16873 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
16874 $LINUX_OBJ/Module*.symvers 2>/dev/null
16876 if test $rc -ne 0; then
16879 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
16880 "$LINUX_OBJ/$file" 2>/dev/null
16882 if test $rc -eq 0; then
16887 if test $export -eq 0; then
16888 { $as_echo "$as_me:$LINENO: result: no" >&5
16889 $as_echo "no" >&6; }
16892 { $as_echo "$as_me:$LINENO: result: yes" >&5
16893 $as_echo "yes" >&6; }
16895 cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_GET_VMALLOC_INFO 1
16901 { $as_echo "$as_me:$LINENO: result: yes" >&5
16902 $as_echo "yes" >&6; }
16904 cat >>confdefs.h <<\_ACEOF
16905 #define HAVE_GET_VMALLOC_INFO 1
16912 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
16913 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
16914 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
16916 if test $rc -eq 0; then
16917 { $as_echo "$as_me:$LINENO: result: yes" >&5
16918 $as_echo "yes" >&6; }
16920 cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_PGDAT_HELPERS 1
16925 { $as_echo "$as_me:$LINENO: result: no" >&5
16926 $as_echo "no" >&6; }
16930 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
16931 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
16932 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
16933 $LINUX_OBJ/Module*.symvers 2>/dev/null
16935 if test $rc -ne 0; then
16938 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
16939 "$LINUX_OBJ/$file" 2>/dev/null
16941 if test $rc -eq 0; then
16946 if test $export -eq 0; then
16947 { $as_echo "$as_me:$LINENO: result: no" >&5
16948 $as_echo "no" >&6; }
16951 { $as_echo "$as_me:$LINENO: result: yes" >&5
16952 $as_echo "yes" >&6; }
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_FIRST_ONLINE_PGDAT 1
16960 { $as_echo "$as_me:$LINENO: result: yes" >&5
16961 $as_echo "yes" >&6; }
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_FIRST_ONLINE_PGDAT 1
16971 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
16972 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
16973 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
16974 $LINUX_OBJ/Module*.symvers 2>/dev/null
16976 if test $rc -ne 0; then
16979 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
16980 "$LINUX_OBJ/$file" 2>/dev/null
16982 if test $rc -eq 0; then
16987 if test $export -eq 0; then
16988 { $as_echo "$as_me:$LINENO: result: no" >&5
16989 $as_echo "no" >&6; }
16992 { $as_echo "$as_me:$LINENO: result: yes" >&5
16993 $as_echo "yes" >&6; }
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_NEXT_ONLINE_PGDAT 1
17001 { $as_echo "$as_me:$LINENO: result: yes" >&5
17002 $as_echo "yes" >&6; }
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_NEXT_ONLINE_PGDAT 1
17012 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
17013 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
17014 grep -q -E '[[:space:]]next_zone[[:space:]]' \
17015 $LINUX_OBJ/Module*.symvers 2>/dev/null
17017 if test $rc -ne 0; then
17020 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
17021 "$LINUX_OBJ/$file" 2>/dev/null
17023 if test $rc -eq 0; then
17028 if test $export -eq 0; then
17029 { $as_echo "$as_me:$LINENO: result: no" >&5
17030 $as_echo "no" >&6; }
17033 { $as_echo "$as_me:$LINENO: result: yes" >&5
17034 $as_echo "yes" >&6; }
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_NEXT_ZONE 1
17042 { $as_echo "$as_me:$LINENO: result: yes" >&5
17043 $as_echo "yes" >&6; }
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_NEXT_ZONE 1
17053 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
17054 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
17055 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
17056 $LINUX_OBJ/Module*.symvers 2>/dev/null
17058 if test $rc -ne 0; then
17061 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
17062 "$LINUX_OBJ/$file" 2>/dev/null
17064 if test $rc -eq 0; then
17069 if test $export -eq 0; then
17070 { $as_echo "$as_me:$LINENO: result: no" >&5
17071 $as_echo "no" >&6; }
17074 { $as_echo "$as_me:$LINENO: result: yes" >&5
17075 $as_echo "yes" >&6; }
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_PGDAT_LIST 1
17083 { $as_echo "$as_me:$LINENO: result: yes" >&5
17084 $as_echo "yes" >&6; }
17086 cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_PGDAT_LIST 1
17094 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
17095 $as_echo_n "checking whether global_page_state() is available... " >&6; }
17098 cat >conftest.c <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17106 #include <linux/mm.h>
17112 unsigned long state;
17113 state = global_page_state(0);
17122 rm -Rf build && mkdir -p build
17123 echo "obj-m := conftest.o" >build/Makefile
17124 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
17136 { $as_echo "$as_me:$LINENO: result: yes" >&5
17137 $as_echo "yes" >&6; }
17139 cat >>confdefs.h <<\_ACEOF
17140 #define HAVE_GLOBAL_PAGE_STATE 1
17145 $as_echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 { $as_echo "$as_me:$LINENO: result: no" >&5
17149 $as_echo "no" >&6; }
17160 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
17161 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
17164 cat >conftest.c <<_ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17172 #include <linux/mm.h>
17178 enum zone_stat_item zsi;
17179 zsi = NR_FREE_PAGES;
17188 rm -Rf build && mkdir -p build
17189 echo "obj-m := conftest.o" >build/Makefile
17190 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
17202 { $as_echo "$as_me:$LINENO: result: yes" >&5
17203 $as_echo "yes" >&6; }
17205 cat >>confdefs.h <<\_ACEOF
17206 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
17211 $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 { $as_echo "$as_me:$LINENO: result: no" >&5
17215 $as_echo "no" >&6; }
17226 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
17227 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
17230 cat >conftest.c <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17238 #include <linux/mm.h>
17244 enum zone_stat_item zsi;
17254 rm -Rf build && mkdir -p build
17255 echo "obj-m := conftest.o" >build/Makefile
17256 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17268 { $as_echo "$as_me:$LINENO: result: yes" >&5
17269 $as_echo "yes" >&6; }
17271 cat >>confdefs.h <<\_ACEOF
17272 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
17277 $as_echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 { $as_echo "$as_me:$LINENO: result: no" >&5
17281 $as_echo "no" >&6; }
17291 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
17292 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
17295 cat >conftest.c <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17303 #include <linux/mm.h>
17309 enum zone_stat_item zsi;
17310 zsi = NR_INACTIVE_ANON;
17319 rm -Rf build && mkdir -p build
17320 echo "obj-m := conftest.o" >build/Makefile
17321 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17333 { $as_echo "$as_me:$LINENO: result: yes" >&5
17334 $as_echo "yes" >&6; }
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
17342 $as_echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 { $as_echo "$as_me:$LINENO: result: no" >&5
17346 $as_echo "no" >&6; }
17356 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
17357 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
17360 cat >conftest.c <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17368 #include <linux/mm.h>
17374 enum zone_stat_item zsi;
17375 zsi = NR_INACTIVE_FILE;
17384 rm -Rf build && mkdir -p build
17385 echo "obj-m := conftest.o" >build/Makefile
17386 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17398 { $as_echo "$as_me:$LINENO: result: yes" >&5
17399 $as_echo "yes" >&6; }
17401 cat >>confdefs.h <<\_ACEOF
17402 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
17407 $as_echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 { $as_echo "$as_me:$LINENO: result: no" >&5
17411 $as_echo "no" >&6; }
17422 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
17423 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
17426 cat >conftest.c <<_ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17434 #include <linux/mm.h>
17440 enum zone_stat_item zsi;
17450 rm -Rf build && mkdir -p build
17451 echo "obj-m := conftest.o" >build/Makefile
17452 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17464 { $as_echo "$as_me:$LINENO: result: yes" >&5
17465 $as_echo "yes" >&6; }
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
17473 $as_echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17476 { $as_echo "$as_me:$LINENO: result: no" >&5
17477 $as_echo "no" >&6; }
17487 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
17488 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
17491 cat >conftest.c <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17499 #include <linux/mm.h>
17505 enum zone_stat_item zsi;
17506 zsi = NR_ACTIVE_ANON;
17515 rm -Rf build && mkdir -p build
17516 echo "obj-m := conftest.o" >build/Makefile
17517 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17529 { $as_echo "$as_me:$LINENO: result: yes" >&5
17530 $as_echo "yes" >&6; }
17532 cat >>confdefs.h <<\_ACEOF
17533 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
17538 $as_echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 { $as_echo "$as_me:$LINENO: result: no" >&5
17542 $as_echo "no" >&6; }
17552 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
17553 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
17556 cat >conftest.c <<_ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17564 #include <linux/mm.h>
17570 enum zone_stat_item zsi;
17571 zsi = NR_ACTIVE_FILE;
17580 rm -Rf build && mkdir -p build
17581 echo "obj-m := conftest.o" >build/Makefile
17582 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17594 { $as_echo "$as_me:$LINENO: result: yes" >&5
17595 $as_echo "yes" >&6; }
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
17603 $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 { $as_echo "$as_me:$LINENO: result: no" >&5
17607 $as_echo "no" >&6; }
17618 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
17619 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
17622 cat >conftest.c <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17635 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
17636 #error "global_page_state needs NR_FREE_PAGES"
17639 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
17640 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
17641 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
17642 #error "global_page_state needs NR_ACTIVE*"
17645 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
17646 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
17647 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
17648 #error "global_page_state needs NR_INACTIVE*"
17658 rm -Rf build && mkdir -p build
17659 echo "obj-m := conftest.o" >build/Makefile
17660 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17672 { $as_echo "$as_me:$LINENO: result: no" >&5
17673 $as_echo "no" >&6; }
17676 $as_echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 { $as_echo "$as_me:$LINENO: result: yes" >&5
17680 $as_echo "yes" >&6; }
17682 cat >>confdefs.h <<\_ACEOF
17683 #define NEED_GET_ZONE_COUNTS 1
17687 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
17688 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
17689 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
17690 $LINUX_OBJ/Module*.symvers 2>/dev/null
17692 if test $rc -ne 0; then
17695 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
17696 "$LINUX_OBJ/$file" 2>/dev/null
17698 if test $rc -eq 0; then
17703 if test $export -eq 0; then
17704 { $as_echo "$as_me:$LINENO: result: no" >&5
17705 $as_echo "no" >&6; }
17708 { $as_echo "$as_me:$LINENO: result: yes" >&5
17709 $as_echo "yes" >&6; }
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_GET_ZONE_COUNTS 1
17717 { $as_echo "$as_me:$LINENO: result: yes" >&5
17718 $as_echo "yes" >&6; }
17720 cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_GET_ZONE_COUNTS 1
17736 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
17737 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
17738 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
17739 $LINUX_OBJ/Module*.symvers 2>/dev/null
17741 if test $rc -ne 0; then
17744 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
17745 "$LINUX_OBJ/$file" 2>/dev/null
17747 if test $rc -eq 0; then
17752 if test $export -eq 0; then
17753 { $as_echo "$as_me:$LINENO: result: no" >&5
17754 $as_echo "no" >&6; }
17757 { $as_echo "$as_me:$LINENO: result: yes" >&5
17758 $as_echo "yes" >&6; }
17760 cat >>confdefs.h <<\_ACEOF
17761 #define HAVE_SET_FS_PWD 1
17766 { $as_echo "$as_me:$LINENO: result: yes" >&5
17767 $as_echo "yes" >&6; }
17769 cat >>confdefs.h <<\_ACEOF
17770 #define HAVE_SET_FS_PWD 1
17776 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
17777 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
17780 cat >conftest.c <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17788 #include <linux/sched.h>
17789 #include <linux/fs_struct.h>
17795 set_fs_pwd(NULL, NULL);
17804 rm -Rf build && mkdir -p build
17805 echo "obj-m := conftest.o" >build/Makefile
17806 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17818 { $as_echo "$as_me:$LINENO: result: yes" >&5
17819 $as_echo "yes" >&6; }
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_2ARGS_SET_FS_PWD 1
17827 $as_echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 { $as_echo "$as_me:$LINENO: result: no" >&5
17831 $as_echo "no" >&6; }
17841 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
17842 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
17845 cat >conftest.c <<_ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17853 #include <linux/fs.h>
17859 vfs_unlink(NULL, NULL);
17868 rm -Rf build && mkdir -p build
17869 echo "obj-m := conftest.o" >build/Makefile
17870 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17882 { $as_echo "$as_me:$LINENO: result: yes" >&5
17883 $as_echo "yes" >&6; }
17885 cat >>confdefs.h <<\_ACEOF
17886 #define HAVE_2ARGS_VFS_UNLINK 1
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 { $as_echo "$as_me:$LINENO: result: no" >&5
17895 $as_echo "no" >&6; }
17905 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
17906 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
17909 cat >conftest.c <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17917 #include <linux/fs.h>
17923 vfs_rename(NULL, NULL, NULL, NULL);
17932 rm -Rf build && mkdir -p build
17933 echo "obj-m := conftest.o" >build/Makefile
17934 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17946 { $as_echo "$as_me:$LINENO: result: yes" >&5
17947 $as_echo "yes" >&6; }
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_4ARGS_VFS_RENAME 1
17955 $as_echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 { $as_echo "$as_me:$LINENO: result: no" >&5
17959 $as_echo "no" >&6; }
17970 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
17971 $as_echo_n "checking whether struct cred exists... " >&6; }
17974 cat >conftest.c <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17982 #include <linux/cred.h>
17998 rm -Rf build && mkdir -p build
17999 echo "obj-m := conftest.o" >build/Makefile
18000 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18012 { $as_echo "$as_me:$LINENO: result: yes" >&5
18013 $as_echo "yes" >&6; }
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_CRED_STRUCT 1
18021 $as_echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 { $as_echo "$as_me:$LINENO: result: no" >&5
18025 $as_echo "no" >&6; }
18036 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
18037 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
18038 grep -q -E '[[:space:]]groups_search[[:space:]]' \
18039 $LINUX_OBJ/Module*.symvers 2>/dev/null
18041 if test $rc -ne 0; then
18044 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
18045 "$LINUX_OBJ/$file" 2>/dev/null
18047 if test $rc -eq 0; then
18052 if test $export -eq 0; then
18053 { $as_echo "$as_me:$LINENO: result: no" >&5
18054 $as_echo "no" >&6; }
18057 { $as_echo "$as_me:$LINENO: result: yes" >&5
18058 $as_echo "yes" >&6; }
18060 cat >>confdefs.h <<\_ACEOF
18061 #define HAVE_GROUPS_SEARCH 1
18066 { $as_echo "$as_me:$LINENO: result: yes" >&5
18067 $as_echo "yes" >&6; }
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_GROUPS_SEARCH 1
18077 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
18078 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
18079 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
18080 $LINUX_OBJ/Module*.symvers 2>/dev/null
18082 if test $rc -ne 0; then
18085 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
18086 "$LINUX_OBJ/$file" 2>/dev/null
18088 if test $rc -eq 0; then
18093 if test $export -eq 0; then
18094 { $as_echo "$as_me:$LINENO: result: no" >&5
18095 $as_echo "no" >&6; }
18098 { $as_echo "$as_me:$LINENO: result: yes" >&5
18099 $as_echo "yes" >&6; }
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE_PUT_TASK_STRUCT 1
18107 { $as_echo "$as_me:$LINENO: result: yes" >&5
18108 $as_echo "yes" >&6; }
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE_PUT_TASK_STRUCT 1
18118 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
18119 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
18122 cat >conftest.c <<_ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18130 #include <linux/sysctl.h>
18136 proc_dostring(NULL, 0, NULL, NULL, NULL);
18145 rm -Rf build && mkdir -p build
18146 echo "obj-m := conftest.o" >build/Makefile
18147 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18159 { $as_echo "$as_me:$LINENO: result: yes" >&5
18160 $as_echo "yes" >&6; }
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_5ARGS_PROC_HANDLER 1
18168 $as_echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 { $as_echo "$as_me:$LINENO: result: no" >&5
18172 $as_echo "no" >&6; }
18186 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18187 $as_echo "Error!" >&6; }
18188 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18189 user kernel|user|all|srpm" >&5
18190 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18191 user kernel|user|all|srpm" >&2;}
18192 { (exit 1); exit 1; }; } ;;
18195 if test "$SPL_CONFIG" = user ||
18196 test "$SPL_CONFIG" = all; then
18198 CONFIG_USER_FALSE='#'
18200 CONFIG_USER_TRUE='#'
18204 if test "$SPL_CONFIG" = kernel ||
18205 test "$SPL_CONFIG" = all; then
18206 CONFIG_KERNEL_TRUE=
18207 CONFIG_KERNEL_FALSE='#'
18209 CONFIG_KERNEL_TRUE='#'
18210 CONFIG_KERNEL_FALSE=
18215 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"
18218 cat >confcache <<\_ACEOF
18219 # This file is a shell script that caches the results of configure
18220 # tests run on this system so they can be shared between configure
18221 # scripts and configure runs, see configure's option --config-cache.
18222 # It is not useful on other systems. If it contains results you don't
18223 # want to keep, you may remove or edit it.
18225 # config.status only pays attention to the cache file if you give it
18226 # the --recheck option to rerun configure.
18228 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18229 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18230 # following values.
18234 # The following way of writing the cache mishandles newlines in values,
18235 # but we know of no workaround that is simple, portable, and efficient.
18236 # So, we kill variables containing newlines.
18237 # Ultrix sh set writes to stderr and can't be redirected directly,
18238 # and sets the high bit in the cache file unless we assign to the vars.
18240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18241 eval ac_val=\$$ac_var
18245 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18246 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18249 _ | IFS | as_nl) ;; #(
18250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18251 *) $as_unset $ac_var ;;
18257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18258 *${as_nl}ac_space=\ *)
18259 # `set' does not quote correctly, so add quotes (double-quote
18260 # substitution turns \\\\ into \\, and sed turns \\ into \).
18263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18266 # `set' quotes correctly as required by POSIX, so do not add quotes.
18267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18281 if test -w "$cache_file"; then
18282 test "x$cache_file" != "x/dev/null" &&
18283 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18284 $as_echo "$as_me: updating cache $cache_file" >&6;}
18285 cat confcache >$cache_file
18287 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18288 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18294 # Let make expand exec_prefix.
18295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18297 DEFS=-DHAVE_CONFIG_H
18301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18302 # 1. Remove the extension, and $U if already installed.
18303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18304 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18306 # will be set to the directory where LIBOBJS objects are built.
18307 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18308 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18310 LIBOBJS=$ac_libobjs
18312 LTLIBOBJS=$ac_ltlibobjs
18315 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18316 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18317 Usually this means the macro was only invoked conditionally." >&5
18318 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18319 Usually this means the macro was only invoked conditionally." >&2;}
18320 { (exit 1); exit 1; }; }
18322 if test -n "$EXEEXT"; then
18324 am__EXEEXT_FALSE='#'
18326 am__EXEEXT_TRUE='#'
18330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18331 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18332 Usually this means the macro was only invoked conditionally." >&5
18333 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18334 Usually this means the macro was only invoked conditionally." >&2;}
18335 { (exit 1); exit 1; }; }
18337 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18338 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18339 Usually this means the macro was only invoked conditionally." >&5
18340 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18341 Usually this means the macro was only invoked conditionally." >&2;}
18342 { (exit 1); exit 1; }; }
18344 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18345 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18346 Usually this means the macro was only invoked conditionally." >&5
18347 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18348 Usually this means the macro was only invoked conditionally." >&2;}
18349 { (exit 1); exit 1; }; }
18351 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18352 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18353 Usually this means the macro was only invoked conditionally." >&5
18354 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18355 Usually this means the macro was only invoked conditionally." >&2;}
18356 { (exit 1); exit 1; }; }
18359 : ${CONFIG_STATUS=./config.status}
18361 ac_clean_files_save=$ac_clean_files
18362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18363 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18365 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18367 # Generated by $as_me.
18368 # Run this file to recreate the current configuration.
18369 # Compiler output produced by configure, useful for debugging
18370 # configure, is in config.log if it exists.
18373 ac_cs_recheck=false
18375 SHELL=\${CONFIG_SHELL-$SHELL}
18378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18379 ## --------------------- ##
18380 ## M4sh Initialization. ##
18381 ## --------------------- ##
18383 # Be more Bourne compatible
18384 DUALCASE=1; export DUALCASE # for MKS sh
18385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18389 # is contrary to our usage. Disable this feature.
18390 alias -g '${1+"$@"}'='"$@"'
18391 setopt NO_GLOB_SUBST
18393 case `(set -o) 2>/dev/null` in
18394 *posix*) set -o posix ;;
18403 # Avoid depending upon Character Ranges.
18404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18407 as_cr_digits='0123456789'
18408 as_cr_alnum=$as_cr_Letters$as_cr_digits
18413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18417 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18418 as_echo='printf %s\n'
18419 as_echo_n='printf %s'
18421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18423 as_echo_n='/usr/ucb/echo -n'
18425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18426 as_echo_n_body='eval
18430 expr "X$arg" : "X\\(.*\\)$as_nl";
18431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18435 export as_echo_n_body
18436 as_echo_n='sh -c $as_echo_n_body as_echo'
18438 export as_echo_body
18439 as_echo='sh -c $as_echo_body as_echo'
18442 # The user is always right.
18443 if test "${PATH_SEPARATOR+set}" != set; then
18445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18451 # Support unset when possible.
18452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18460 # We need space, tab and new line, in precisely that order. Quoting is
18461 # there to prevent editors from complaining about space-tab.
18462 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18463 # splitting by setting IFS to empty value.)
18466 # Find who we are. Look in the path if we contain no directory separator.
18468 *[\\/]* ) as_myself=$0 ;;
18469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18470 for as_dir in $PATH
18473 test -z "$as_dir" && as_dir=.
18474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18480 # We did not find ourselves, most probably we were run as `sh COMMAND'
18481 # in which case we are not to be found in the path.
18482 if test "x$as_myself" = x; then
18485 if test ! -f "$as_myself"; then
18486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18487 { (exit 1); exit 1; }
18490 # Work around bugs in pre-3.0 UWIN ksh.
18491 for as_var in ENV MAIL MAILPATH
18492 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18504 # Required to use basename.
18505 if expr a : '\(a\)' >/dev/null 2>&1 &&
18506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18513 as_basename=basename
18519 # Name of the executable.
18520 as_me=`$as_basename -- "$0" ||
18521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18522 X"$0" : 'X\(//\)$' \| \
18523 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18525 sed '/^.*\/\([^/][^/]*\)\/*$/{
18544 as_lineno_1=$LINENO
18545 as_lineno_2=$LINENO
18546 test "x$as_lineno_1" != "x$as_lineno_2" &&
18547 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18550 # uniformly replaced by the line number. The first 'sed' inserts a
18551 # line-number line after each line using $LINENO; the second 'sed'
18552 # does the real work. The second script uses 'N' to pair each
18553 # line-number line with the line containing $LINENO, and appends
18554 # trailing '-' during substitution so that $LINENO is not a special
18555 # case at line end.
18556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18557 # scripts with optimization help from Paolo Bonzini. Blame Lee
18558 # E. McMahon (1931-1989) for sed's syntax. :-)
18570 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18573 ' >$as_me.lineno &&
18574 chmod +x "$as_me.lineno" ||
18575 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18576 { (exit 1); exit 1; }; }
18578 # Don't try to exec as it changes $[0], causing all sort of problems
18579 # (the dirname of $[0] is not the place where we might find the
18580 # original and so on. Autoconf is especially sensitive to this).
18581 . "./$as_me.lineno"
18582 # Exit status is that of the last command.
18587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18593 ECHO_C= ECHO_N= ECHO_T=
18594 case `echo -n x` in
18596 case `echo 'x\c'` in
18597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18603 if expr a : '\(a\)' >/dev/null 2>&1 &&
18604 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18610 rm -f conf$$ conf$$.exe conf$$.file
18611 if test -d conf$$.dir; then
18612 rm -f conf$$.dir/conf$$.file
18615 mkdir conf$$.dir 2>/dev/null
18617 if (echo >conf$$.file) 2>/dev/null; then
18618 if ln -s conf$$.file conf$$ 2>/dev/null; then
18620 # ... but there are two gotchas:
18621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18623 # In both cases, we have to default to `cp -p'.
18624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18626 elif ln conf$$.file conf$$ 2>/dev/null; then
18634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18635 rmdir conf$$.dir 2>/dev/null
18637 if mkdir -p . 2>/dev/null; then
18640 test -d ./-p && rmdir ./-p
18644 if test -x / >/dev/null 2>&1; then
18645 as_test_x='test -x'
18647 if ls -dL / >/dev/null 2>&1; then
18654 if test -d "$1"; then
18660 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18661 ???[sx]*):;;*)false;;esac;fi
18665 as_executable_p=$as_test_x
18667 # Sed expression to map a string onto a valid CPP name.
18668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18670 # Sed expression to map a string onto a valid variable name.
18671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18676 # Save the log message, to keep $[0] and so on meaningful, and to
18677 # report actual input values of CONFIG_FILES etc. instead of their
18678 # values after options handling.
18680 This file was extended by $as_me, which was
18681 generated by GNU Autoconf 2.63. Invocation command line was
18683 CONFIG_FILES = $CONFIG_FILES
18684 CONFIG_HEADERS = $CONFIG_HEADERS
18685 CONFIG_LINKS = $CONFIG_LINKS
18686 CONFIG_COMMANDS = $CONFIG_COMMANDS
18689 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18694 case $ac_config_files in *"
18695 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18698 case $ac_config_headers in *"
18699 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 # Files that config.status was made for.
18705 config_files="$ac_config_files"
18706 config_headers="$ac_config_headers"
18707 config_commands="$ac_config_commands"
18711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18713 \`$as_me' instantiates files from templates according to the
18714 current configuration.
18716 Usage: $0 [OPTION]... [FILE]...
18718 -h, --help print this help, then exit
18719 -V, --version print version number and configuration settings, then exit
18720 -q, --quiet, --silent
18721 do not print progress messages
18722 -d, --debug don't remove temporary files
18723 --recheck update $as_me by reconfiguring in the same conditions
18724 --file=FILE[:TEMPLATE]
18725 instantiate the configuration file FILE
18726 --header=FILE[:TEMPLATE]
18727 instantiate the configuration header FILE
18729 Configuration files:
18732 Configuration headers:
18735 Configuration commands:
18738 Report bugs to <bug-autoconf@gnu.org>."
18741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18744 configured by $0, generated by GNU Autoconf 2.63,
18745 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18747 Copyright (C) 2008 Free Software Foundation, Inc.
18748 This config.status script is free software; the Free Software Foundation
18749 gives unlimited permission to copy, distribute and modify it."
18756 test -n "\$AWK" || AWK=awk
18759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18760 # The default lists apply if the user does not specify any file.
18766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18778 # Handling of the options.
18779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18782 $as_echo "$ac_cs_version"; exit ;;
18783 --debug | --debu | --deb | --de | --d | -d )
18785 --file | --fil | --fi | --f )
18788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18790 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18791 ac_need_defaults=false;;
18792 --header | --heade | --head | --hea )
18795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18797 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18798 ac_need_defaults=false;;
18800 # Conflict between --help and --header
18801 { $as_echo "$as_me: error: ambiguous option: $1
18802 Try \`$0 --help' for more information." >&2
18803 { (exit 1); exit 1; }; };;
18804 --help | --hel | -h )
18805 $as_echo "$ac_cs_usage"; exit ;;
18806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18810 # This is an error.
18811 -*) { $as_echo "$as_me: error: unrecognized option: $1
18812 Try \`$0 --help' for more information." >&2
18813 { (exit 1); exit 1; }; } ;;
18815 *) ac_config_targets="$ac_config_targets $1"
18816 ac_need_defaults=false ;;
18822 ac_configure_extra_args=
18824 if $ac_cs_silent; then
18826 ac_configure_extra_args="$ac_configure_extra_args --silent"
18830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18831 if \$ac_cs_recheck; then
18832 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18834 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18835 CONFIG_SHELL='$SHELL'
18836 export CONFIG_SHELL
18841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18846 ## Running $as_me. ##
18852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18856 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18859 # The HP-UX ksh and POSIX shell print the target directory to stdout
18860 # if CDPATH is set.
18861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18863 sed_quote_subst='$sed_quote_subst'
18864 double_quote_subst='$double_quote_subst'
18865 delay_variable_subst='$delay_variable_subst'
18866 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18867 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18868 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18869 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18870 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18871 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18872 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18873 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18874 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18875 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18876 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18877 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18878 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18879 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18880 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18881 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18882 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18883 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18884 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18885 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18886 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18887 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18888 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18889 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18890 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18891 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18892 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18893 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18894 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18895 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18896 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18897 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18898 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18899 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18900 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18901 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18902 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18903 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18904 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18905 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18906 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18907 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18908 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18909 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18910 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"`'
18911 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"`'
18912 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18913 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18914 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18915 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18916 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18917 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18918 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18919 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18920 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18921 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18922 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18923 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18924 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18925 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18926 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18927 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18928 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18929 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18930 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18931 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18932 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18933 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18934 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18935 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18936 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18937 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18938 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18939 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18940 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18941 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18942 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18943 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18944 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18945 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18946 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18947 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18948 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18949 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18950 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18951 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18952 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18953 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18954 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18955 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18956 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18957 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18958 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18959 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18960 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18961 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18962 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18963 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18964 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18965 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18966 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18967 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18968 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18969 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18970 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18971 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18972 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18973 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18974 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18975 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18976 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18977 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18978 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18979 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18980 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18981 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18982 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18983 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18986 LTCFLAGS='$LTCFLAGS'
18987 compiler='$compiler_DEFAULT'
18989 # Quote evaled strings.
19001 deplibs_check_method \
19010 lt_cv_sys_global_symbol_pipe \
19011 lt_cv_sys_global_symbol_to_cdecl \
19012 lt_cv_sys_global_symbol_to_c_name_address \
19013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19016 lt_prog_compiler_no_builtin_flag \
19017 lt_prog_compiler_wl \
19018 lt_prog_compiler_pic \
19019 lt_prog_compiler_static \
19020 lt_cv_prog_compiler_c_o \
19028 export_dynamic_flag_spec \
19029 whole_archive_flag_spec \
19030 compiler_needs_object \
19032 allow_undefined_flag \
19033 no_undefined_flag \
19034 hardcode_libdir_flag_spec \
19035 hardcode_libdir_flag_spec_ld \
19036 hardcode_libdir_separator \
19041 variables_saved_for_relink \
19043 library_names_spec \
19048 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19049 *[\\\\\\\`\\"\\\$]*)
19050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19058 # Double-quote double-evaled strings.
19059 for var in reload_cmds \
19060 old_postinstall_cmds \
19061 old_postuninstall_cmds \
19063 extract_expsyms_cmds \
19064 old_archive_from_new_cmds \
19065 old_archive_from_expsyms_cmds \
19067 archive_expsym_cmds \
19069 module_expsym_cmds \
19070 export_symbols_cmds \
19073 postuninstall_cmds \
19075 sys_lib_search_path_spec \
19076 sys_lib_dlsearch_path_spec; do
19077 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19078 *[\\\\\\\`\\"\\\$]*)
19079 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19087 # Fix-up fallback echo if it was mangled by the above quoting rules.
19089 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19093 ac_aux_dir='$ac_aux_dir'
19094 xsi_shell='$xsi_shell'
19095 lt_shell_append='$lt_shell_append'
19097 # See if we are running on zsh, and set the options which allow our
19098 # commands through without removal of \ escapes INIT.
19099 if test -n "\${ZSH_VERSION+set}" ; then
19100 setopt NO_GLOB_SUBST
19106 TIMESTAMP='$TIMESTAMP'
19115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19117 # Handling of arguments.
19118 for ac_config_target in $ac_config_targets
19120 case $ac_config_target in
19121 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19125 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19126 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19127 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19128 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19129 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19130 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19131 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19132 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
19133 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
19135 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19136 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19137 { (exit 1); exit 1; }; };;
19142 # If the user did not use the arguments to specify the items to instantiate,
19143 # then the envvar interface is used. Set only those that are not.
19144 # We use the long form for the default assignment because of an extremely
19145 # bizarre bug on SunOS 4.1.3.
19146 if $ac_need_defaults; then
19147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19152 # Have a temporary directory for convenience. Make it in the build tree
19153 # simply because there is no reason against having it here, and in addition,
19154 # creating and moving files from /tmp can sometimes cause problems.
19155 # Hook for its removal unless debugging.
19156 # Note that there is a small window in which the directory will not be cleaned:
19157 # after its creation but before its name has been assigned to `$tmp'.
19161 trap 'exit_status=$?
19162 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19164 trap '{ (exit 1); exit 1; }' 1 2 13 15
19166 # Create a (secure) tmp directory for tmp files.
19169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19170 test -n "$tmp" && test -d "$tmp"
19173 tmp=./conf$$-$RANDOM
19174 (umask 077 && mkdir "$tmp")
19177 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19178 { (exit 1); exit 1; }
19181 # Set up the scripts for CONFIG_FILES section.
19182 # No need to generate them if there are no CONFIG_FILES.
19183 # This happens for instance with `./config.status config.h'.
19184 if test -n "$CONFIG_FILES"; then
19188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19192 ac_cs_awk_cr=$ac_cr
19195 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19200 echo "cat >conf$$subs.awk <<_ACEOF" &&
19201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19203 } >conf$$subs.sh ||
19204 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19205 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19206 { (exit 1); exit 1; }; }
19207 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19209 for ac_last_try in false false false false false :; do
19210 . ./conf$$subs.sh ||
19211 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19212 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19213 { (exit 1); exit 1; }; }
19215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19216 if test $ac_delim_n = $ac_delim_num; then
19218 elif $ac_last_try; then
19219 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19220 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19221 { (exit 1); exit 1; }; }
19223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19226 rm -f conf$$subs.sh
19228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19229 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19233 s/^/S["/; s/!.*/"]=/
19243 s/\(.\{148\}\).*/\1/
19245 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19257 s/\(.\{148\}\).*/\1/
19259 s/["\\]/\\&/g; s/^/"/; s/$/"/
19263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19268 ' <conf$$subs.awk | sed '
19273 ' >>$CONFIG_STATUS || ac_write_fail=1
19274 rm -f conf$$subs.awk
19275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19277 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19278 for (key in S) S_is_set[key] = 1
19284 nfields = split(line, field, "@")
19286 len = length(field[1])
19287 for (i = 2; i < nfields; i++) {
19289 keylen = length(key)
19290 if (S_is_set[key]) {
19292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19293 len += length(value) + length(field[++i])
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19306 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19309 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19310 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19311 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19312 { (exit 1); exit 1; }; }
19315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19317 # trailing colons and then remove the whole line if VPATH becomes empty
19318 # (actually we leave an empty line to preserve line numbers).
19319 if test "x$srcdir" = x.; then
19320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19321 s/:*\$(srcdir):*/:/
19322 s/:*\${srcdir}:*/:/
19324 s/^\([^=]*=[ ]*\):*/\1/
19330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19331 fi # test -n "$CONFIG_FILES"
19333 # Set up the scripts for CONFIG_HEADERS section.
19334 # No need to generate them if there are no CONFIG_HEADERS.
19335 # This happens for instance with `./config.status Makefile'.
19336 if test -n "$CONFIG_HEADERS"; then
19337 cat >"$tmp/defines.awk" <<\_ACAWK ||
19341 # Transform confdefs.h into an awk script `defines.awk', embedded as
19342 # here-document in config.status, that substitutes the proper values into
19343 # config.h.in to produce config.h.
19345 # Create a delimiter string that does not exist in confdefs.h, to ease
19346 # handling of long lines.
19348 for ac_last_try in false false :; do
19349 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19350 if test -z "$ac_t"; then
19352 elif $ac_last_try; then
19353 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19354 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19355 { (exit 1); exit 1; }; }
19357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19361 # For the awk script, D is an array of macro values keyed by name,
19362 # likewise P contains macro parameters if any. Preserve backslash
19363 # newline sequences.
19365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19367 s/.\{148\}/&'"$ac_delim"'/g
19370 s/^[ ]*#[ ]*define[ ][ ]*/ /
19377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19379 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19384 D["\1"]=" \3\\\\\\n"\\/p
19386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19391 s/.\{148\}/&'"$ac_delim"'/g
19396 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19399 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19401 ' <confdefs.h | sed '
19402 s/'"$ac_delim"'/"\\\
19403 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19406 for (key in D) D_is_set[key] = 1
19409 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19411 split(line, arg, " ")
19412 if (arg[1] == "#") {
19416 defundef = substr(arg[1], 2)
19419 split(mac1, mac2, "(") #)
19421 prefix = substr(line, 1, index(line, defundef) - 1)
19422 if (D_is_set[macro]) {
19423 # Preserve the white space surrounding the "#".
19424 print prefix "define", macro P[macro] D[macro]
19427 # Replace #undef with comments. This is necessary, for example,
19428 # in the case of _POSIX_SOURCE, which is predefined and required
19429 # on some systems where configure will not decide to define it.
19430 if (defundef == "undef") {
19431 print "/*", prefix defundef, macro, "*/"
19439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19440 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19441 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19442 { (exit 1); exit 1; }; }
19443 fi # test -n "$CONFIG_HEADERS"
19446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19451 :[FHLC]) ac_mode=$ac_tag; continue;;
19453 case $ac_mode$ac_tag in
19455 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19456 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19457 { (exit 1); exit 1; }; };;
19458 :[FH]-) ac_tag=-:-;;
19459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19476 -) ac_f="$tmp/stdin";;
19477 *) # Look for the file first in the build tree, then in the source tree
19478 # (if the path is not absolute). The absolute path cannot be DOS-style,
19479 # because $ac_f cannot contain `:'.
19483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19485 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19486 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19487 { (exit 1); exit 1; }; };;
19489 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19490 ac_file_inputs="$ac_file_inputs '$ac_f'"
19493 # Let's still pretend it is `configure' which instantiates (i.e., don't
19494 # use $as_me), people would be surprised to read:
19495 # /* config.h. Generated by config.status. */
19496 configure_input='Generated from '`
19497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19499 if test x"$ac_file" != x-; then
19500 configure_input="$ac_file. $configure_input"
19501 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19502 $as_echo "$as_me: creating $ac_file" >&6;}
19504 # Neutralize special characters interpreted by sed in replacement strings.
19505 case $configure_input in #(
19506 *\&* | *\|* | *\\* )
19507 ac_sed_conf_input=`$as_echo "$configure_input" |
19508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19509 *) ac_sed_conf_input=$configure_input;;
19513 *:-:* | *:-) cat >"$tmp/stdin" \
19514 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19516 { (exit 1); exit 1; }; } ;;
19521 ac_dir=`$as_dirname -- "$ac_file" ||
19522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19523 X"$ac_file" : 'X\(//\)[^/]' \| \
19524 X"$ac_file" : 'X\(//\)$' \| \
19525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19526 $as_echo X"$ac_file" |
19527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19531 /^X\(\/\/\)[^/].*/{
19546 -*) as_dir=./$as_dir;;
19548 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19553 *) as_qdir=$as_dir;;
19555 as_dirs="'$as_qdir' $as_dirs"
19556 as_dir=`$as_dirname -- "$as_dir" ||
19557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19558 X"$as_dir" : 'X\(//\)[^/]' \| \
19559 X"$as_dir" : 'X\(//\)$' \| \
19560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19561 $as_echo X"$as_dir" |
19562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19566 /^X\(\/\/\)[^/].*/{
19579 test -d "$as_dir" && break
19581 test -z "$as_dirs" || eval "mkdir $as_dirs"
19582 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19583 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19584 { (exit 1); exit 1; }; }; }
19588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19591 # A ".." for each directory in $ac_dir_suffix.
19592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19593 case $ac_top_builddir_sub in
19594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19598 ac_abs_top_builddir=$ac_pwd
19599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19600 # for backward compatibility:
19601 ac_top_builddir=$ac_top_build_prefix
19604 .) # We are building in place.
19606 ac_top_srcdir=$ac_top_builddir_sub
19607 ac_abs_top_srcdir=$ac_pwd ;;
19608 [\\/]* | ?:[\\/]* ) # Absolute name.
19609 ac_srcdir=$srcdir$ac_dir_suffix;
19610 ac_top_srcdir=$srcdir
19611 ac_abs_top_srcdir=$srcdir ;;
19612 *) # Relative name.
19613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19614 ac_top_srcdir=$ac_top_build_prefix$srcdir
19615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19630 ac_MKDIR_P=$MKDIR_P
19632 [\\/$]* | ?:[\\/]* ) ;;
19633 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19638 # If the template does not know about datarootdir, expand it.
19639 # FIXME: This hack should be removed a few years after 2.60.
19640 ac_datarootdir_hack=; ac_datarootdir_seen=
19653 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19654 *datarootdir*) ac_datarootdir_seen=yes;;
19655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19656 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19657 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19660 ac_datarootdir_hack='
19661 s&@datadir@&$datadir&g
19662 s&@docdir@&$docdir&g
19663 s&@infodir@&$infodir&g
19664 s&@localedir@&$localedir&g
19665 s&@mandir@&$mandir&g
19666 s&\\\${datarootdir}&$datarootdir&g' ;;
19670 # Neutralize VPATH when `$srcdir' = `.'.
19671 # Shell code in configure.ac might set extrasub.
19672 # FIXME: do we really want to maintain this feature?
19673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19674 ac_sed_extra="$ac_vpsub
19677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19680 s|@configure_input@|$ac_sed_conf_input|;t t
19681 s&@top_builddir@&$ac_top_builddir_sub&;t t
19682 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19683 s&@srcdir@&$ac_srcdir&;t t
19684 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19685 s&@top_srcdir@&$ac_top_srcdir&;t t
19686 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19687 s&@builddir@&$ac_builddir&;t t
19688 s&@abs_builddir@&$ac_abs_builddir&;t t
19689 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19690 s&@INSTALL@&$ac_INSTALL&;t t
19691 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19692 $ac_datarootdir_hack
19694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19697 { (exit 1); exit 1; }; }
19699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19702 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19703 which seems to be undefined. Please make sure it is defined." >&5
19704 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19705 which seems to be undefined. Please make sure it is defined." >&2;}
19709 -) cat "$tmp/out" && rm -f "$tmp/out";;
19710 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19712 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19713 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19714 { (exit 1); exit 1; }; }
19720 if test x"$ac_file" != x-; then
19722 $as_echo "/* $configure_input */" \
19723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19724 } >"$tmp/config.h" \
19725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19727 { (exit 1); exit 1; }; }
19728 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19729 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19730 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19733 mv "$tmp/config.h" "$ac_file" \
19734 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19736 { (exit 1); exit 1; }; }
19739 $as_echo "/* $configure_input */" \
19740 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19741 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19742 $as_echo "$as_me: error: could not create -" >&2;}
19743 { (exit 1); exit 1; }; }
19745 # Compute "$ac_file"'s index in $config_headers.
19748 for _am_header in $config_headers :; do
19749 case $_am_header in
19750 $_am_arg | $_am_arg:* )
19753 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19756 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19757 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19758 X"$_am_arg" : 'X\(//\)[^/]' \| \
19759 X"$_am_arg" : 'X\(//\)$' \| \
19760 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19761 $as_echo X"$_am_arg" |
19762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19766 /^X\(\/\/\)[^/].*/{
19778 s/.*/./; q'`/stamp-h$_am_stamp_count
19781 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19782 $as_echo "$as_me: executing $ac_file commands" >&6;}
19787 case $ac_file$ac_mode in
19789 (mv spl_config.h spl_config.h.tmp &&
19790 awk -f config/config.awk spl_config.h.tmp >spl_config.h &&
19791 rm spl_config.h.tmp) || exit 1 ;;
19792 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19793 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19794 # are listed without --file. Let's play safe and only enable the eval
19795 # if we detect the quoting.
19796 case $CONFIG_FILES in
19797 *\'*) eval set x "$CONFIG_FILES" ;;
19798 *) set x $CONFIG_FILES ;;
19803 # Strip MF so we end up with the name of the file.
19804 mf=`echo "$mf" | sed -e 's/:.*$//'`
19805 # Check whether this is an Automake generated Makefile or not.
19806 # We used to match only the files named `Makefile.in', but
19807 # some people rename them; so instead we look at the file content.
19808 # Grep'ing the first line is not enough: some people post-process
19809 # each Makefile.in and add a new line on top of each file to say so.
19810 # Grep'ing the whole file is not good either: AIX grep has a line
19811 # limit of 2048, but all sed's we know have understand at least 4000.
19812 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19813 dirpart=`$as_dirname -- "$mf" ||
19814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19815 X"$mf" : 'X\(//\)[^/]' \| \
19816 X"$mf" : 'X\(//\)$' \| \
19817 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19823 /^X\(\/\/\)[^/].*/{
19839 # Extract the definition of DEPDIR, am__include, and am__quote
19840 # from the Makefile without running `make'.
19841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19842 test -z "$DEPDIR" && continue
19843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19844 test -z "am__include" && continue
19845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19846 # When using ansi2knr, U may be empty or an underscore; expand it
19847 U=`sed -n 's/^U = //p' < "$mf"`
19848 # Find all dependency output files, they are included files with
19849 # $(DEPDIR) in their names. We invoke sed twice because it is the
19850 # simplest approach to changing $(DEPDIR) to its actual value in the
19852 for file in `sed -n "
19853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19855 # Make sure the directory exists.
19856 test -f "$dirpart/$file" && continue
19857 fdir=`$as_dirname -- "$file" ||
19858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19859 X"$file" : 'X\(//\)[^/]' \| \
19860 X"$file" : 'X\(//\)$' \| \
19861 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19862 $as_echo X"$file" |
19863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19867 /^X\(\/\/\)[^/].*/{
19880 { as_dir=$dirpart/$fdir
19882 -*) as_dir=./$as_dir;;
19884 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19888 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19889 *) as_qdir=$as_dir;;
19891 as_dirs="'$as_qdir' $as_dirs"
19892 as_dir=`$as_dirname -- "$as_dir" ||
19893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19894 X"$as_dir" : 'X\(//\)[^/]' \| \
19895 X"$as_dir" : 'X\(//\)$' \| \
19896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19897 $as_echo X"$as_dir" |
19898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19902 /^X\(\/\/\)[^/].*/{
19915 test -d "$as_dir" && break
19917 test -z "$as_dirs" || eval "mkdir $as_dirs"
19918 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19919 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19920 { (exit 1); exit 1; }; }; }
19921 # echo "creating $dirpart/$file"
19922 echo '# dummy' > "$dirpart/$file"
19929 # See if we are running on zsh, and set the options which allow our
19930 # commands through without removal of \ escapes.
19931 if test -n "${ZSH_VERSION+set}" ; then
19932 setopt NO_GLOB_SUBST
19935 cfgfile="${ofile}T"
19936 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19939 cat <<_LT_EOF >> "$cfgfile"
19942 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19943 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19945 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19947 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19948 # 2006, 2007, 2008 Free Software Foundation, Inc.
19949 # Written by Gordon Matzigkeit, 1996
19951 # This file is part of GNU Libtool.
19953 # GNU Libtool is free software; you can redistribute it and/or
19954 # modify it under the terms of the GNU General Public License as
19955 # published by the Free Software Foundation; either version 2 of
19956 # the License, or (at your option) any later version.
19958 # As a special exception to the GNU General Public License,
19959 # if you distribute this file as part of a program or library that
19960 # is built using GNU Libtool, you may include this file under the
19961 # same distribution terms that you use for the rest of that program.
19963 # GNU Libtool is distributed in the hope that it will be useful,
19964 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19965 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19966 # GNU General Public License for more details.
19968 # You should have received a copy of the GNU General Public License
19969 # along with GNU Libtool; see the file COPYING. If not, a copy
19970 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19971 # obtained by writing to the Free Software Foundation, Inc.,
19972 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19975 # The names of the tagged configurations supported by this script.
19978 # ### BEGIN LIBTOOL CONFIG
19980 # Which release of libtool.m4 was used?
19981 macro_version=$macro_version
19982 macro_revision=$macro_revision
19984 # Whether or not to build shared libraries.
19985 build_libtool_libs=$enable_shared
19987 # Whether or not to build static libraries.
19988 build_old_libs=$enable_static
19990 # What type of objects to build.
19993 # Whether or not to optimize for fast installation.
19994 fast_install=$enable_fast_install
19997 host_alias=$host_alias
20001 # The build system.
20002 build_alias=$build_alias
20006 # A sed program that does not truncate output.
20009 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20010 Xsed="\$SED -e 1s/^X//"
20012 # A grep program that handles long lines.
20018 # A literal string matcher.
20021 # A BSD- or MS-compatible name lister.
20024 # Whether we need soft or hard links.
20027 # What is the maximum length of a command?
20028 max_cmd_len=$max_cmd_len
20030 # Object file suffix (normally "o").
20033 # Executable file suffix (normally "").
20036 # whether the shell understands "unset".
20039 # turn spaces into newlines.
20042 # turn newlines into spaces.
20045 # How to create reloadable object files.
20046 reload_flag=$lt_reload_flag
20047 reload_cmds=$lt_reload_cmds
20049 # An object symbol dumper.
20050 OBJDUMP=$lt_OBJDUMP
20052 # Method to check whether dependent libraries are shared objects.
20053 deplibs_check_method=$lt_deplibs_check_method
20055 # Command to use when deplibs_check_method == "file_magic".
20056 file_magic_cmd=$lt_file_magic_cmd
20060 AR_FLAGS=$lt_AR_FLAGS
20062 # A symbol stripping program.
20065 # Commands used to install an old-style archive.
20067 old_postinstall_cmds=$lt_old_postinstall_cmds
20068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20073 # LTCC compiler flags.
20074 LTCFLAGS=$lt_CFLAGS
20076 # Take the output of nm and produce a listing of raw symbols and C names.
20077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20079 # Transform the output of nm in a proper C declaration.
20080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20082 # Transform the output of nm in a C name address pair.
20083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20085 # Transform the output of nm in a C name address pair when lib prefix is needed.
20086 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20088 # The name of the directory that contains temporary libtool files.
20091 # Shell to use when invoking shell scripts.
20094 # An echo program that does not interpret backslashes.
20097 # Used to examine libraries when file_magic_cmd begins with "file".
20098 MAGIC_CMD=$MAGIC_CMD
20100 # Must we lock files when doing compilation?
20101 need_locks=$lt_need_locks
20103 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20104 DSYMUTIL=$lt_DSYMUTIL
20106 # Tool to change global to local symbols on Mac OS X.
20109 # Tool to manipulate fat objects and archives on Mac OS X.
20112 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20115 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20116 OTOOL64=$lt_OTOOL64
20118 # Old archive suffix (normally "a").
20121 # Shared library suffix (normally ".so").
20122 shrext_cmds=$lt_shrext_cmds
20124 # The commands to extract the exported symbol list from a shared archive.
20125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20127 # Variables whose values should be saved in libtool wrapper scripts and
20128 # restored at link time.
20129 variables_saved_for_relink=$lt_variables_saved_for_relink
20131 # Do we need the "lib" prefix for modules?
20132 need_lib_prefix=$need_lib_prefix
20134 # Do we need a version for libraries?
20135 need_version=$need_version
20137 # Library versioning type.
20138 version_type=$version_type
20140 # Shared library runtime path variable.
20141 runpath_var=$runpath_var
20143 # Shared library path variable.
20144 shlibpath_var=$shlibpath_var
20146 # Is shlibpath searched before the hard-coded library search path?
20147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20149 # Format of library name prefix.
20150 libname_spec=$lt_libname_spec
20152 # List of archive names. First name is the real one, the rest are links.
20153 # The last name is the one that the linker finds with -lNAME
20154 library_names_spec=$lt_library_names_spec
20156 # The coded name of the library, if different from the real name.
20157 soname_spec=$lt_soname_spec
20159 # Command to use after installation of a shared archive.
20160 postinstall_cmds=$lt_postinstall_cmds
20162 # Command to use after uninstallation of a shared archive.
20163 postuninstall_cmds=$lt_postuninstall_cmds
20165 # Commands used to finish a libtool library installation in a directory.
20166 finish_cmds=$lt_finish_cmds
20168 # As "finish_cmds", except a single script fragment to be evaled but
20170 finish_eval=$lt_finish_eval
20172 # Whether we should hardcode library paths into libraries.
20173 hardcode_into_libs=$hardcode_into_libs
20175 # Compile-time system search path for libraries.
20176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20178 # Run-time system search path for libraries.
20179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20181 # Whether dlopen is supported.
20182 dlopen_support=$enable_dlopen
20184 # Whether dlopen of programs is supported.
20185 dlopen_self=$enable_dlopen_self
20187 # Whether dlopen of statically linked programs is supported.
20188 dlopen_self_static=$enable_dlopen_self_static
20190 # Commands to strip libraries.
20191 old_striplib=$lt_old_striplib
20192 striplib=$lt_striplib
20195 # The linker used to build libraries.
20198 # Commands used to build an old-style archive.
20199 old_archive_cmds=$lt_old_archive_cmds
20201 # A language specific compiler.
20204 # Is the compiler the GNU compiler?
20207 # Compiler flag to turn off builtin functions.
20208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20210 # How to pass a linker flag through the compiler.
20211 wl=$lt_lt_prog_compiler_wl
20213 # Additional compiler flags for building library objects.
20214 pic_flag=$lt_lt_prog_compiler_pic
20216 # Compiler flag to prevent dynamic linking.
20217 link_static_flag=$lt_lt_prog_compiler_static
20219 # Does compiler simultaneously support -c and -o options?
20220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20222 # Whether or not to add -lc for building shared libraries.
20223 build_libtool_need_lc=$archive_cmds_need_lc
20225 # Whether or not to disallow shared libs when runtime libs are static.
20226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20228 # Compiler flag to allow reflexive dlopens.
20229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20231 # Compiler flag to generate shared objects directly from archives.
20232 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20234 # Whether the compiler copes with passing no objects directly.
20235 compiler_needs_object=$lt_compiler_needs_object
20237 # Create an old-style archive from a shared archive.
20238 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20240 # Create a temporary old-style archive to link instead of a shared archive.
20241 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20243 # Commands used to build a shared archive.
20244 archive_cmds=$lt_archive_cmds
20245 archive_expsym_cmds=$lt_archive_expsym_cmds
20247 # Commands used to build a loadable module if different from building
20248 # a shared archive.
20249 module_cmds=$lt_module_cmds
20250 module_expsym_cmds=$lt_module_expsym_cmds
20252 # Whether we are building with GNU ld or not.
20253 with_gnu_ld=$lt_with_gnu_ld
20255 # Flag that allows shared libraries with undefined symbols to be built.
20256 allow_undefined_flag=$lt_allow_undefined_flag
20258 # Flag that enforces no undefined symbols.
20259 no_undefined_flag=$lt_no_undefined_flag
20261 # Flag to hardcode \$libdir into a binary during linking.
20262 # This must work even if \$libdir does not exist
20263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20265 # If ld is used when linking, flag to hardcode \$libdir into a binary
20266 # during linking. This must work even if \$libdir does not exist.
20267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20269 # Whether we need a single "-rpath" flag with a separated argument.
20270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20273 # DIR into the resulting binary.
20274 hardcode_direct=$hardcode_direct
20276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20277 # DIR into the resulting binary and the resulting library dependency is
20278 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20279 # library is relocated.
20280 hardcode_direct_absolute=$hardcode_direct_absolute
20282 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20283 # into the resulting binary.
20284 hardcode_minus_L=$hardcode_minus_L
20286 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20287 # into the resulting binary.
20288 hardcode_shlibpath_var=$hardcode_shlibpath_var
20290 # Set to "yes" if building a shared library automatically hardcodes DIR
20291 # into the library and all subsequent libraries and executables linked
20293 hardcode_automatic=$hardcode_automatic
20295 # Set to yes if linker adds runtime paths of dependent libraries
20296 # to runtime path list.
20297 inherit_rpath=$inherit_rpath
20299 # Whether libtool must link a program against all its dependency libraries.
20300 link_all_deplibs=$link_all_deplibs
20302 # Fix the shell variable \$srcfile for the compiler.
20303 fix_srcfile_path=$lt_fix_srcfile_path
20305 # Set to "yes" if exported symbols are required.
20306 always_export_symbols=$always_export_symbols
20308 # The commands to list exported symbols.
20309 export_symbols_cmds=$lt_export_symbols_cmds
20311 # Symbols that should not be listed in the preloaded symbols.
20312 exclude_expsyms=$lt_exclude_expsyms
20314 # Symbols that must always be exported.
20315 include_expsyms=$lt_include_expsyms
20317 # Commands necessary for linking programs (against libraries) with templates.
20318 prelink_cmds=$lt_prelink_cmds
20320 # Specify filename containing input files.
20321 file_list_spec=$lt_file_list_spec
20323 # How to hardcode a shared library path into an executable.
20324 hardcode_action=$hardcode_action
20326 # ### END LIBTOOL CONFIG
20332 cat <<\_LT_EOF >> "$cfgfile"
20333 # AIX sometimes has problems with the GCC collect2 program. For some
20334 # reason, if we set the COLLECT_NAMES environment variable, the problems
20335 # vanish in a puff of smoke.
20336 if test "X${COLLECT_NAMES+set}" != Xset; then
20338 export COLLECT_NAMES
20345 ltmain="$ac_aux_dir/ltmain.sh"
20348 # We use sed instead of cat because bash on DJGPP gets confused if
20349 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20350 # text mode, it properly converts lines to CR/LF. This bash problem
20351 # is reportedly fixed, but why not run on old versions too?
20352 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20353 || (rm -f "$cfgfile"; exit 1)
20357 cat << \_LT_EOF >> "$cfgfile"
20359 # func_dirname file append nondir_replacement
20360 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20361 # otherwise set result to NONDIR_REPLACEMENT.
20365 */*) func_dirname_result="${1%/*}${2}" ;;
20366 * ) func_dirname_result="${3}" ;;
20370 # func_basename file
20373 func_basename_result="${1##*/}"
20376 # func_dirname_and_basename file append nondir_replacement
20377 # perform func_basename and func_dirname in a single function
20379 # dirname: Compute the dirname of FILE. If nonempty,
20380 # add APPEND to the result, otherwise set result
20381 # to NONDIR_REPLACEMENT.
20382 # value returned in "$func_dirname_result"
20383 # basename: Compute filename of FILE.
20384 # value retuned in "$func_basename_result"
20385 # Implementation must be kept synchronized with func_dirname
20386 # and func_basename. For efficiency, we do not delegate to
20387 # those functions but instead duplicate the functionality here.
20388 func_dirname_and_basename ()
20391 */*) func_dirname_result="${1%/*}${2}" ;;
20392 * ) func_dirname_result="${3}" ;;
20394 func_basename_result="${1##*/}"
20397 # func_stripname prefix suffix name
20398 # strip PREFIX and SUFFIX off of NAME.
20399 # PREFIX and SUFFIX must not contain globbing or regex special
20400 # characters, hashes, percent signs, but SUFFIX may contain a leading
20401 # dot (in which case that matches only a dot).
20404 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20405 # positional parameters, so assign one to ordinary parameter first.
20406 func_stripname_result=${3}
20407 func_stripname_result=${func_stripname_result#"${1}"}
20408 func_stripname_result=${func_stripname_result%"${2}"}
20414 func_opt_split_opt=${1%%=*}
20415 func_opt_split_arg=${1#*=}
20422 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20423 *) func_lo2o_result=${1} ;;
20427 # func_xform libobj-or-source
20430 func_xform_result=${1%.*}.lo
20433 # func_arith arithmetic-term...
20436 func_arith_result=$(( $* ))
20440 # STRING may not start with a hyphen.
20443 func_len_result=${#1}
20448 *) # Bourne compatible functions.
20449 cat << \_LT_EOF >> "$cfgfile"
20451 # func_dirname file append nondir_replacement
20452 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20453 # otherwise set result to NONDIR_REPLACEMENT.
20456 # Extract subdirectory from the argument.
20457 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20458 if test "X$func_dirname_result" = "X${1}"; then
20459 func_dirname_result="${3}"
20461 func_dirname_result="$func_dirname_result${2}"
20465 # func_basename file
20468 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20472 # func_stripname prefix suffix name
20473 # strip PREFIX and SUFFIX off of NAME.
20474 # PREFIX and SUFFIX must not contain globbing or regex special
20475 # characters, hashes, percent signs, but SUFFIX may contain a leading
20476 # dot (in which case that matches only a dot).
20477 # func_strip_suffix prefix name
20481 .*) func_stripname_result=`$ECHO "X${3}" \
20482 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20483 *) func_stripname_result=`$ECHO "X${3}" \
20484 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20489 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20490 my_sed_long_arg='1s/^-[^=]*=//'
20495 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20496 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20502 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20505 # func_xform libobj-or-source
20508 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20511 # func_arith arithmetic-term...
20514 func_arith_result=`expr "$@"`
20518 # STRING may not start with a hyphen.
20521 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20527 case $lt_shell_append in
20529 cat << \_LT_EOF >> "$cfgfile"
20531 # func_append var value
20532 # Append VALUE to the end of shell variable VAR.
20540 cat << \_LT_EOF >> "$cfgfile"
20542 # func_append var value
20543 # Append VALUE to the end of shell variable VAR.
20554 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20555 || (rm -f "$cfgfile"; exit 1)
20557 mv -f "$cfgfile" "$ofile" ||
20558 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20567 { (exit 0); exit 0; }
20569 chmod +x $CONFIG_STATUS
20570 ac_clean_files=$ac_clean_files_save
20572 test $ac_write_fail = 0 ||
20573 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20574 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20575 { (exit 1); exit 1; }; }
20578 # configure is writing to config.log, and then calls config.status.
20579 # config.status does its own redirection, appending to config.log.
20580 # Unfortunately, on DOS this fails, as config.log is still kept open
20581 # by configure, so config.status won't be able to write to it; its
20582 # output is simply discarded. So we exec the FD to /dev/null,
20583 # effectively closing config.log, so it can be properly (re)opened and
20584 # appended to by config.status. When coming back to configure, we
20585 # need to make the FD available again.
20586 if test "$no_create" != yes; then
20588 ac_config_status_args=
20589 test "$silent" = yes &&
20590 ac_config_status_args="$ac_config_status_args --quiet"
20592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20595 # would make configure fail if this is the last instruction.
20596 $ac_cs_success || { (exit 1); exit 1; }
20598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20599 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}