]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
Imported Upstream version 0.6.5.8
[mirror_zfs-debian.git] / configure
CommitLineData
ea04106b
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
87dac73d 3# Generated by GNU Autoconf 2.68 for zfs 0.6.5.8.
ea04106b
AX
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='zfs'
569PACKAGE_TARNAME='zfs'
87dac73d
AX
570PACKAGE_VERSION='0.6.5.8'
571PACKAGE_STRING='zfs 0.6.5.8'
ea04106b
AX
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575# Factoring default headers for most tests.
576ac_includes_default="\
577#include <stdio.h>
578#ifdef HAVE_SYS_TYPES_H
579# include <sys/types.h>
580#endif
581#ifdef HAVE_SYS_STAT_H
582# include <sys/stat.h>
583#endif
584#ifdef STDC_HEADERS
585# include <stdlib.h>
586# include <stddef.h>
587#else
588# ifdef HAVE_STDLIB_H
589# include <stdlib.h>
590# endif
591#endif
592#ifdef HAVE_STRING_H
593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594# include <memory.h>
595# endif
596# include <string.h>
597#endif
598#ifdef HAVE_STRINGS_H
599# include <strings.h>
600#endif
601#ifdef HAVE_INTTYPES_H
602# include <inttypes.h>
603#endif
604#ifdef HAVE_STDINT_H
605# include <stdint.h>
606#endif
607#ifdef HAVE_UNISTD_H
608# include <unistd.h>
609#endif"
610
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615DEBUG_DMU_TX
616DEBUG_ZFS
617DEBUG_STACKFLAGS
618DEBUG_CFLAGS
619CONFIG_KERNEL_FALSE
620CONFIG_KERNEL_TRUE
621CONFIG_USER_FALSE
622CONFIG_USER_TRUE
623runstatedir
624FRAME_LARGER_THAN
625LIBBLKID
626LIBUUID
627ZLIB
628dracutdir
629ZFS_INIT_SYSV
630modulesloaddir
631systemdpresetdir
632systemdunitdir
633ZFS_MODULE_LOAD
634ZFS_INIT_SYSTEMD
635udevruledir
636udevdir
637mounthelperdir
638KERNELCPPFLAGS
639KERNELMAKE_PARAMS
640SPL_SYMBOLS
641SPL_VERSION
642SPL_OBJ
643SPL
644LINUX_SYMBOLS
645LINUX_VERSION
646LINUX_OBJ
647LINUX
e10b0808 648NO_BOOL_COMPARE
ea04106b
AX
649NO_UNUSED_BUT_SET_VARIABLE
650ZFS_CONFIG
651TARGET_ASM_DIR
652ALIEN_VERSION
653ALIEN
654HAVE_ALIEN
655DPKGBUILD_VERSION
656DPKGBUILD
657HAVE_DPKGBUILD
658DPKG_VERSION
659DPKG
660HAVE_DPKG
661SRPM_DEFINE_COMMON
662SRPM_DEFINE_DKMS
663SRPM_DEFINE_KMOD
664SRPM_DEFINE_UTIL
665RPM_DEFINE_COMMON
666RPM_DEFINE_DKMS
667RPM_DEFINE_KMOD
668RPM_DEFINE_UTIL
669RPM_SPEC_DIR
670RPMBUILD_VERSION
671RPMBUILD
672HAVE_RPMBUILD
673RPM_VERSION
674RPM
675HAVE_RPM
e10b0808
AX
676DEFINE_INITRAMFS
677DEFAULT_INITCONF_DIR
ea04106b
AX
678DEFAULT_INIT_SCRIPT
679DEFAULT_INIT_DIR
680DEFAULT_PACKAGE
681VENDOR
682am__fastdepCCAS_FALSE
683am__fastdepCCAS_TRUE
684CCASDEPMODE
685CCASFLAGS
686CCAS
687CPP
688OTOOL64
689OTOOL
690LIPO
691NMEDIT
692DSYMUTIL
693MANIFEST_TOOL
694RANLIB
695ac_ct_AR
696AR
697DLLTOOL
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
708LIBTOOL
709am__fastdepCC_FALSE
710am__fastdepCC_TRUE
711CCDEPMODE
712am__nodep
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
750AM_DEFAULT_V
751AM_V
752MAINT
753MAINTAINER_MODE_FALSE
754MAINTAINER_MODE_TRUE
755target_os
756target_vendor
757target_cpu
758target
759host_os
760host_vendor
761host_cpu
762host
763build_os
764build_vendor
765build_cpu
766build
767ZFS_META_LT_AGE
768ZFS_META_LT_REVISION
769ZFS_META_LT_CURRENT
770ZFS_META_AUTHOR
771ZFS_META_DATA
772ZFS_META_ALIAS
773ZFS_META_LICENSE
774RELEASE
775ZFS_META_RELEASE
776ZFS_META_VERSION
777ZFS_META_NAME
778AWK
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_maintainer_mode
821enable_silent_rules
822enable_dependency_tracking
823enable_shared
824enable_static
825with_pic
826enable_fast_install
827with_gnu_ld
828with_sysroot
829enable_libtool_lock
830with_spec
831with_config
832enable_linux_builtin
833with_linux
834with_linux_obj
835with_spl
836with_spl_obj
837with_spl_timeout
838with_mounthelperdir
839with_udevdir
840with_udevruledir
841enable_systemd
842with_systemdunitdir
843with_systemdpresetdir
844with_systemdmodulesloaddir
845enable_sysvinit
846with_dracutdir
847with_blkid
848enable_debug
849enable_debug_dmu_tx
850'
851 ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CPP
860CCAS
861CCASFLAGS'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used" >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347$as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369else
1370 ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
87dac73d 1404\`configure' configures zfs 0.6.5.8 to adapt to many kinds of systems.
ea04106b
AX
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457_ACEOF
1458
1459 cat <<\_ACEOF
1460
1461Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474 case $ac_init_help in
87dac73d 1475 short | recursive ) echo "Configuration of zfs 0.6.5.8:";;
ea04106b
AX
1476 esac
1477 cat <<\_ACEOF
1478
1479Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing) to the casual installer
1485 --enable-silent-rules less verbose build output (undo: `make V=1')
1486 --disable-silent-rules verbose build output (undo: `make V=0')
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-linux-builtin Configure for builtin in-tree kernel modules
1495 [default=no]
1496 --enable-systemd install systemd unit/preset files [[default: yes]]
1497 --enable-sysvinit install SysV init scripts [default: yes]
1498 --enable-debug Enable generic debug support [default=no]
1499 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot=DIR Search for dependent libraries within DIR
1508 (or the compiler's sysroot if not specified).
1509 --with-spec=SPEC Spec files 'generic|redhat'
1510 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1511 --with-linux=PATH Path to kernel source
1512 --with-linux-obj=PATH Path to kernel build objects
1513 --with-spl=PATH Path to spl source
1514 --with-spl-obj=PATH Path to spl build objects
1515 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1516 --with-mounthelperdir=DIR
1517 install mount.zfs in dir [[/sbin]]
1518 --with-udevdir=DIR install udev helpers [default=check]
1519 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1520 --with-systemdunitdir=DIR
1521 install systemd unit files in dir
1522 [[/usr/lib/systemd/system]]
1523 --with-systemdpresetdir=DIR
1524 install systemd preset files in dir
1525 [[/usr/lib/systemd/system-preset]]
1526 --with-systemdmodulesloaddir=DIR
1527 install systemd module load files into dir
1528 [[/usr/lib/modules-load.d]]
1529 --with-dracutdir=DIR install dracut helpers [default=check]
1530 --with-blkid support blkid caching [default=check]
1531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CPP C preprocessor
1541 CCAS assembler compiler command (defaults to CC)
1542 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1543
1544Use these variables to override the choices made by `configure' or to help
1545it to find libraries and programs with nonstandard names/locations.
1546
1547Report bugs to the package provider.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609 cat <<\_ACEOF
87dac73d 1610zfs configure 0.6.5.8
ea04106b
AX
1611generated by GNU Autoconf 2.68
1612
1613Copyright (C) 2010 Free Software Foundation, Inc.
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616_ACEOF
1617 exit
1618fi
1619
1620## ------------------------ ##
1621## Autoconf initialization. ##
1622## ------------------------ ##
1623
1624# ac_fn_c_try_compile LINENO
1625# --------------------------
1626# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_compile ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1632case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1650 ac_retval=0
1651else
1652 $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_compile
1661
1662# ac_fn_c_try_link LINENO
1663# -----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_link ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 $as_test_x conftest$ac_exeext
1690 }; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_link
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
1717if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h. */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727else
1728 eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_try_cpp LINENO
1740# ----------------------
1741# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_cpp ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770fi
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1773
1774} # ac_fn_c_try_cpp
1775
1776# ac_fn_c_try_run LINENO
1777# ----------------------
1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779# that executables *can* be run.
1780ac_fn_c_try_run ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1784case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1801 ac_status=$?
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=$ac_status
1811fi
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816} # ac_fn_c_try_run
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872else
1873 eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_func
1884
1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888# the include files in INCLUDES and setting the cache variable VAR
1889# accordingly.
1890ac_fn_c_check_header_mongrel ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if eval \${$3+:} false; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902else
1903 # Is the header compilable?
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905$as_echo_n "checking $2 usability... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913else
1914 ac_header_compiler=no
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918$as_echo "$ac_header_compiler" >&6; }
1919
1920# Is the header present?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922$as_echo_n "checking $2 presence... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929else
1930 ac_header_preproc=no
1931fi
1932rm -f conftest.err conftest.i conftest.$ac_ext
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934$as_echo "$ac_header_preproc" >&6; }
1935
1936# So? What about this header?
1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 eval "$3=\$ac_header_compiler"
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967fi
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_c_check_header_mongrel
1971cat >config.log <<_ACEOF
1972This file contains any messages produced by compilers while
1973running configure, to aid debugging if configure makes a mistake.
1974
87dac73d 1975It was created by zfs $as_me 0.6.5.8, which was
ea04106b
AX
1976generated by GNU Autoconf 2.68. Invocation command line was
1977
1978 $ $0 $@
1979
1980_ACEOF
1981exec 5>>config.log
1982{
1983cat <<_ASUNAME
1984## --------- ##
1985## Platform. ##
1986## --------- ##
1987
1988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005_ASUNAME
2006
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014IFS=$as_save_IFS
2015
2016} >&5
2017
2018cat >&5 <<_ACEOF
2019
2020
2021## ----------- ##
2022## Core tests. ##
2023## ----------- ##
2024
2025_ACEOF
2026
2027
2028# Keep a trace of the command line.
2029# Strip out --no-create and --no-recursion so they do not pile up.
2030# Strip out --silent because we don't want to record it for future runs.
2031# Also quote any args containing shell meta-characters.
2032# Make two passes to allow for proper duplicate-argument suppression.
2033ac_configure_args=
2034ac_configure_args0=
2035ac_configure_args1=
2036ac_must_keep_next=false
2037for ac_pass in 1 2
2038do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072done
2073{ ac_configure_args0=; unset ac_configure_args0;}
2074{ ac_configure_args1=; unset ac_configure_args1;}
2075
2076# When interrupted or exit'd, cleanup temporary files, and complete
2077# config.log. We remove comments because anyway the quotes in there
2078# would cause problems or look ugly.
2079# WARNING: Use '\'' to represent an apostrophe within the trap.
2080# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087## Cache variables. ##
2088## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091(
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119)
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123## Output variables. ##
2124## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138## File substitutions. ##
2139## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154## confdefs.h. ##
2155## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167' 0
2168for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170done
2171ac_signal=0
2172
2173# confdefs.h avoids OS command line length limits that DEFS can exceed.
2174rm -f -r conftest* confdefs.h
2175
2176$as_echo "/* confdefs.h */" > confdefs.h
2177
2178# Predefined preprocessor variables.
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_NAME "$PACKAGE_NAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_VERSION "$PACKAGE_VERSION"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_STRING "$PACKAGE_STRING"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_URL "$PACKAGE_URL"
2202_ACEOF
2203
2204
2205# Let the site file select an alternate cache file if it wants to.
2206# Prefer an explicitly selected file to automatically selected ones.
2207ac_site_file1=NONE
2208ac_site_file2=NONE
2209if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222fi
2223for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233as_fn_error $? "failed to load site script $ac_site_file
2234See \`config.log' for more details" "$LINENO" 5; }
2235 fi
2236done
2237
2238if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243$as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251$as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253fi
2254
2255# Check that the precious variables saved in the cache have kept the same
2256# value.
2257ac_cache_corrupted=false
2258for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304done
2305if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311fi
2312## -------------------- ##
2313## Main body of script. ##
2314## -------------------- ##
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323ac_ext=c
2324ac_cpp='$CPP $CPPFLAGS'
2325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328
2329
2330
2331
2332
2333 for ac_prog in gawk mawk nawk awk
2334do
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336set dummy $ac_prog; ac_word=$2
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338$as_echo_n "checking for $ac_word... " >&6; }
2339if ${ac_cv_prog_AWK+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341else
2342 if test -n "$AWK"; then
2343 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_AWK="$ac_prog"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357 done
2358IFS=$as_save_IFS
2359
2360fi
2361fi
2362AWK=$ac_cv_prog_AWK
2363if test -n "$AWK"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2365$as_echo "$AWK" >&6; }
2366else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368$as_echo "no" >&6; }
2369fi
2370
2371
2372 test -n "$AWK" && break
2373done
2374
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2376$as_echo_n "checking metadata... " >&6; }
2377
2378 META="$srcdir/META"
2379 _zfs_ac_meta_type="none"
2380 if test -f "$META"; then
2381 _zfs_ac_meta_type="META file"
2382
2383 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2384 if test -n "$ZFS_META_NAME"; then
2385
2386cat >>confdefs.h <<_ACEOF
2387#define ZFS_META_NAME "$ZFS_META_NAME"
2388_ACEOF
2389
2390
2391 fi
2392
2393 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2394 if test -n "$ZFS_META_VERSION"; then
2395
2396cat >>confdefs.h <<_ACEOF
2397#define ZFS_META_VERSION "$ZFS_META_VERSION"
2398_ACEOF
2399
2400
2401 fi
2402
2403 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2404 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2405 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2406 _alias=$(git describe --match=${_match} 2>/dev/null)
2407 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2408 if test -n "${_release}"; then
2409 ZFS_META_RELEASE=${_release}
2410 _zfs_ac_meta_type="git describe"
2411 fi
2412 fi
2413
2414 if test -n "$ZFS_META_RELEASE"; then
2415
2416cat >>confdefs.h <<_ACEOF
2417#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2418_ACEOF
2419
2420
2421
2422 RELEASE="$ZFS_META_RELEASE"
2423
2424 fi
2425
2426 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2427 if test -n "$ZFS_META_LICENSE"; then
2428
2429cat >>confdefs.h <<_ACEOF
2430#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2431_ACEOF
2432
2433
2434 fi
2435
2436 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2437 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2438 test -n "$ZFS_META_RELEASE" &&
2439 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2440
2441cat >>confdefs.h <<_ACEOF
2442#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2443_ACEOF
2444
2445
2446 fi
2447
2448 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_DATA"; then
2450
2451cat >>confdefs.h <<_ACEOF
2452#define ZFS_META_DATA "$ZFS_META_DATA"
2453_ACEOF
2454
2455
2456 fi
2457
2458 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_AUTHOR"; then
2460
2461cat >>confdefs.h <<_ACEOF
2462#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2463_ACEOF
2464
2465
2466 fi
2467
2468
2469 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2470 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2471 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2472 if test -n "$ZFS_META_LT_CURRENT" \
2473 -o -n "$ZFS_META_LT_REVISION" \
2474 -o -n "$ZFS_META_LT_AGE"; then
2475 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2476 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2477 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2478
2479cat >>confdefs.h <<_ACEOF
2480#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2481_ACEOF
2482
2483
2484cat >>confdefs.h <<_ACEOF
2485#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2486_ACEOF
2487
2488
2489cat >>confdefs.h <<_ACEOF
2490#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2491_ACEOF
2492
2493
2494
2495
2496 fi
2497 fi
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2500$as_echo "$_zfs_ac_meta_type" >&6; }
2501
2502
2503ac_aux_dir=
2504for ac_dir in config "$srcdir"/config; do
2505 if test -f "$ac_dir/install-sh"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/install-sh -c"
2508 break
2509 elif test -f "$ac_dir/install.sh"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/install.sh -c"
2512 break
2513 elif test -f "$ac_dir/shtool"; then
2514 ac_aux_dir=$ac_dir
2515 ac_install_sh="$ac_aux_dir/shtool install -c"
2516 break
2517 fi
2518done
2519if test -z "$ac_aux_dir"; then
2520 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2521fi
2522
2523# These three variables are undocumented and unsupported,
2524# and are intended to be withdrawn in a future Autoconf release.
2525# They can cause serious problems if a builder's source tree is in a directory
2526# whose full name contains unusual characters.
2527ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2530
2531
2532
2533# Make sure we can run config.sub.
2534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2535 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2538$as_echo_n "checking build system type... " >&6; }
2539if ${ac_cv_build+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541else
2542 ac_build_alias=$build_alias
2543test "x$ac_build_alias" = x &&
2544 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2545test "x$ac_build_alias" = x &&
2546 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2547ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2552$as_echo "$ac_cv_build" >&6; }
2553case $ac_cv_build in
2554*-*-*) ;;
2555*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2556esac
2557build=$ac_cv_build
2558ac_save_IFS=$IFS; IFS='-'
2559set x $ac_cv_build
2560shift
2561build_cpu=$1
2562build_vendor=$2
2563shift; shift
2564# Remember, the first character of IFS is used to create $*,
2565# except with old shells:
2566build_os=$*
2567IFS=$ac_save_IFS
2568case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2569
2570
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2572$as_echo_n "checking host system type... " >&6; }
2573if ${ac_cv_host+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test "x$host_alias" = x; then
2577 ac_cv_host=$ac_cv_build
2578else
2579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2581fi
2582
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2585$as_echo "$ac_cv_host" >&6; }
2586case $ac_cv_host in
2587*-*-*) ;;
2588*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2589esac
2590host=$ac_cv_host
2591ac_save_IFS=$IFS; IFS='-'
2592set x $ac_cv_host
2593shift
2594host_cpu=$1
2595host_vendor=$2
2596shift; shift
2597# Remember, the first character of IFS is used to create $*,
2598# except with old shells:
2599host_os=$*
2600IFS=$ac_save_IFS
2601case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2602
2603
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2605$as_echo_n "checking target system type... " >&6; }
2606if ${ac_cv_target+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608else
2609 if test "x$target_alias" = x; then
2610 ac_cv_target=$ac_cv_host
2611else
2612 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2613 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2614fi
2615
2616fi
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2618$as_echo "$ac_cv_target" >&6; }
2619case $ac_cv_target in
2620*-*-*) ;;
2621*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2622esac
2623target=$ac_cv_target
2624ac_save_IFS=$IFS; IFS='-'
2625set x $ac_cv_target
2626shift
2627target_cpu=$1
2628target_vendor=$2
2629shift; shift
2630# Remember, the first character of IFS is used to create $*,
2631# except with old shells:
2632target_os=$*
2633IFS=$ac_save_IFS
2634case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2635
2636
2637# The aliases save the names the user supplied, while $host etc.
2638# will get canonicalized.
2639test -n "$target_alias" &&
2640 test "$program_prefix$program_suffix$program_transform_name" = \
2641 NONENONEs,x,x, &&
2642 program_prefix=${target_alias}-
2643
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2646$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2647 # Check whether --enable-maintainer-mode was given.
2648if test "${enable_maintainer_mode+set}" = set; then :
2649 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2650else
2651 USE_MAINTAINER_MODE=no
2652fi
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2655$as_echo "$USE_MAINTAINER_MODE" >&6; }
2656 if test $USE_MAINTAINER_MODE = yes; then
2657 MAINTAINER_MODE_TRUE=
2658 MAINTAINER_MODE_FALSE='#'
2659else
2660 MAINTAINER_MODE_TRUE='#'
2661 MAINTAINER_MODE_FALSE=
2662fi
2663
2664 MAINT=$MAINTAINER_MODE_TRUE
2665
2666
2667# Check whether --enable-silent-rules was given.
2668if test "${enable_silent_rules+set}" = set; then :
2669 enableval=$enable_silent_rules;
2670fi
2671
2672case $enable_silent_rules in
2673yes) AM_DEFAULT_VERBOSITY=0;;
2674no) AM_DEFAULT_VERBOSITY=1;;
2675*) AM_DEFAULT_VERBOSITY=0;;
2676esac
2677am_make=${MAKE-make}
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2679$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2680if ${am_cv_make_support_nested_variables+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682else
2683 if $as_echo 'TRUE=$(BAR$(V))
2684BAR0=false
2685BAR1=true
2686V=1
2687am__doit:
2688 @$(TRUE)
2689.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2690 am_cv_make_support_nested_variables=yes
2691else
2692 am_cv_make_support_nested_variables=no
2693fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2696$as_echo "$am_cv_make_support_nested_variables" >&6; }
2697if test $am_cv_make_support_nested_variables = yes; then
2698 AM_V='$(V)'
2699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2700else
2701 AM_V=$AM_DEFAULT_VERBOSITY
2702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2703fi
2704AM_BACKSLASH='\'
2705
2706am__api_version='1.11'
2707
2708# Find a good install program. We prefer a C program (faster),
2709# so one script is as good as another. But avoid the broken or
2710# incompatible versions:
2711# SysV /etc/install, /usr/sbin/install
2712# SunOS /usr/etc/install
2713# IRIX /sbin/install
2714# AIX /bin/install
2715# AmigaOS /C/install, which installs bootblocks on floppy discs
2716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2719# OS/2's system install, which has a completely different semantic
2720# ./install, which can be erroneously created by make from ./install.sh.
2721# Reject install programs that cannot install multiple files.
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2723$as_echo_n "checking for a BSD-compatible install... " >&6; }
2724if test -z "$INSTALL"; then
2725if ${ac_cv_path_install+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 # Account for people who put trailing slashes in PATH elements.
2734case $as_dir/ in #((
2735 ./ | .// | /[cC]/* | \
2736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2738 /usr/ucb/* ) ;;
2739 *)
2740 # OSF1 and SCO ODT 3.0 have their own names for install.
2741 # Don't use installbsd from OSF since it installs stuff as root
2742 # by default.
2743 for ac_prog in ginstall scoinst install; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2746 if test $ac_prog = install &&
2747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # AIX install. It has an incompatible calling convention.
2749 :
2750 elif test $ac_prog = install &&
2751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2752 # program-specific install script used by HP pwplus--don't use.
2753 :
2754 else
2755 rm -rf conftest.one conftest.two conftest.dir
2756 echo one > conftest.one
2757 echo two > conftest.two
2758 mkdir conftest.dir
2759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2760 test -s conftest.one && test -s conftest.two &&
2761 test -s conftest.dir/conftest.one &&
2762 test -s conftest.dir/conftest.two
2763 then
2764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2765 break 3
2766 fi
2767 fi
2768 fi
2769 done
2770 done
2771 ;;
2772esac
2773
2774 done
2775IFS=$as_save_IFS
2776
2777rm -rf conftest.one conftest.two conftest.dir
2778
2779fi
2780 if test "${ac_cv_path_install+set}" = set; then
2781 INSTALL=$ac_cv_path_install
2782 else
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for INSTALL within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 INSTALL=$ac_install_sh
2788 fi
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2791$as_echo "$INSTALL" >&6; }
2792
2793# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2794# It thinks the first close brace ends the variable substitution.
2795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2796
2797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2798
2799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2802$as_echo_n "checking whether build environment is sane... " >&6; }
2803# Just in case
2804sleep 1
2805echo timestamp > conftest.file
2806# Reject unsafe characters in $srcdir or the absolute working directory
2807# name. Accept space and tab only in the latter.
2808am_lf='
2809'
2810case `pwd` in
2811 *[\\\"\#\$\&\'\`$am_lf]*)
2812 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2813esac
2814case $srcdir in
2815 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2816 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2817esac
2818
2819# Do `set' in a subshell so we don't clobber the current shell's
2820# arguments. Must try -L first in case configure is actually a
2821# symlink; some systems play weird games with the mod time of symlinks
2822# (eg FreeBSD returns the mod time of the symlink's containing
2823# directory).
2824if (
2825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2826 if test "$*" = "X"; then
2827 # -L didn't work.
2828 set X `ls -t "$srcdir/configure" conftest.file`
2829 fi
2830 rm -f conftest.file
2831 if test "$*" != "X $srcdir/configure conftest.file" \
2832 && test "$*" != "X conftest.file $srcdir/configure"; then
2833
2834 # If neither matched, then we have a broken ls. This can happen
2835 # if, for instance, CONFIG_SHELL is bash and it inherits a
2836 # broken ls alias from the environment. This has actually
2837 # happened. Such a system could not be considered "sane".
2838 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2839alias in your environment" "$LINENO" 5
2840 fi
2841
2842 test "$2" = conftest.file
2843 )
2844then
2845 # Ok.
2846 :
2847else
2848 as_fn_error $? "newly created file is older than distributed files!
2849Check your system clock" "$LINENO" 5
2850fi
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
2853test "$program_prefix" != NONE &&
2854 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2855# Use a double $ so make ignores it.
2856test "$program_suffix" != NONE &&
2857 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858# Double any \ or $.
2859# By default was `s,x,x', remove it if useless.
2860ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862
2863# expand $ac_aux_dir to an absolute path
2864am_aux_dir=`cd $ac_aux_dir && pwd`
2865
2866if test x"${MISSING+set}" != xset; then
2867 case $am_aux_dir in
2868 *\ * | *\ *)
2869 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870 *)
2871 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2872 esac
2873fi
2874# Use eval to expand $SHELL
2875if eval "$MISSING --run true"; then
2876 am_missing_run="$MISSING --run "
2877else
2878 am_missing_run=
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2880$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2881fi
2882
2883if test x"${install_sh}" != xset; then
2884 case $am_aux_dir in
2885 *\ * | *\ *)
2886 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887 *)
2888 install_sh="\${SHELL} $am_aux_dir/install-sh"
2889 esac
2890fi
2891
2892# Installed binaries are usually stripped using `strip' when the user
2893# run `make install-strip'. However `strip' might not be the right
2894# tool to use in cross-compilation environments, therefore Automake
2895# will honor the `STRIP' environment variable to overrule this program.
2896if test "$cross_compiling" != no; then
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}strip; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if ${ac_cv_prog_STRIP+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 if test -n "$STRIP"; then
2906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919done
2920 done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925STRIP=$ac_cv_prog_STRIP
2926if test -n "$STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928$as_echo "$STRIP" >&6; }
2929else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935fi
2936if test -z "$ac_cv_prog_STRIP"; then
2937 ac_ct_STRIP=$STRIP
2938 # Extract the first word of "strip", so it can be a program name with args.
2939set dummy strip; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944else
2945 if test -n "$ac_ct_STRIP"; then
2946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_STRIP="strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959done
2960 done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966if test -n "$ac_ct_STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968$as_echo "$ac_ct_STRIP" >&6; }
2969else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974 if test "x$ac_ct_STRIP" = x; then
2975 STRIP=":"
2976 else
2977 case $cross_compiling:$ac_tool_warned in
2978yes:)
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981ac_tool_warned=yes ;;
2982esac
2983 STRIP=$ac_ct_STRIP
2984 fi
2985else
2986 STRIP="$ac_cv_prog_STRIP"
2987fi
2988
2989fi
2990INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994if test -z "$MKDIR_P"; then
2995 if ${ac_cv_path_mkdir+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_prog in mkdir gmkdir; do
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007 'mkdir (GNU coreutils) '* | \
3008 'mkdir (coreutils) '* | \
3009 'mkdir (fileutils) '4.1*)
3010 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3011 break 3;;
3012 esac
3013 done
3014 done
3015 done
3016IFS=$as_save_IFS
3017
3018fi
3019
3020 test -d ./--version && rmdir ./--version
3021 if test "${ac_cv_path_mkdir+set}" = set; then
3022 MKDIR_P="$ac_cv_path_mkdir -p"
3023 else
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for MKDIR_P within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 MKDIR_P="$ac_install_sh -d"
3029 fi
3030fi
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032$as_echo "$MKDIR_P" >&6; }
3033
3034mkdir_p="$MKDIR_P"
3035case $mkdir_p in
3036 [\\/$]* | ?:[\\/]*) ;;
3037 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3038esac
3039
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3042set x ${MAKE-make}
3043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046else
3047 cat >conftest.make <<\_ACEOF
3048SHELL = /bin/sh
3049all:
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3051_ACEOF
3052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054 *@@@%%%=?*=@@@%%%*)
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3056 *)
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3058esac
3059rm -f conftest.make
3060fi
3061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063$as_echo "yes" >&6; }
3064 SET_MAKE=
3065else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3069fi
3070
3071rm -rf .tst 2>/dev/null
3072mkdir .tst 2>/dev/null
3073if test -d .tst; then
3074 am__leading_dot=.
3075else
3076 am__leading_dot=_
3077fi
3078rmdir .tst 2>/dev/null
3079
3080if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082 # is not polluted with repeated "-I."
3083 am__isrc=' -I$(srcdir)'
3084 # test to see if srcdir already configured
3085 if test -f $srcdir/config.status; then
3086 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3087 fi
3088fi
3089
3090# test whether we have cygpath
3091if test -z "$CYGPATH_W"; then
3092 if (cygpath --version) >/dev/null 2>/dev/null; then
3093 CYGPATH_W='cygpath -w'
3094 else
3095 CYGPATH_W=echo
3096 fi
3097fi
3098
3099
3100# Define the identity of the package.
3101 PACKAGE='zfs'
87dac73d 3102 VERSION='0.6.5.8'
ea04106b
AX
3103
3104
3105cat >>confdefs.h <<_ACEOF
3106#define PACKAGE "$PACKAGE"
3107_ACEOF
3108
3109
3110cat >>confdefs.h <<_ACEOF
3111#define VERSION "$VERSION"
3112_ACEOF
3113
3114# Some tools Automake needs.
3115
3116ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3117
3118
3119AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3120
3121
3122AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3123
3124
3125AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3126
3127
3128MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3129
3130# We need awk for the "check" target. The system "awk" is bad on
3131# some platforms.
3132# Always define AMTAR for backward compatibility. Yes, it's still used
3133# in the wild :-( We should find a proper way to deprecate it ...
3134AMTAR='$${TAR-tar}'
3135
3136am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3137
3138
3139
3140
3141
3142ac_config_headers="$ac_config_headers zfs_config.h"
3143
3144
3145
3146ac_ext=c
3147ac_cpp='$CPP $CPPFLAGS'
3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173done
3174 done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189fi
3190if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193set dummy gcc; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213done
3214 done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222$as_echo "$ac_ct_CC" >&6; }
3223else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232yes:)
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235ac_tool_warned=yes ;;
3236esac
3237 CC=$ac_ct_CC
3238 fi
3239else
3240 CC="$ac_cv_prog_CC"
3241fi
3242
3243if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}cc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267 done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282 fi
3283fi
3284if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286set dummy cc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294else
3295 ac_prog_rejected=no
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3306 fi
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311done
3312 done
3313IFS=$as_save_IFS
3314
3315if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 fi
3326fi
3327fi
3328fi
3329CC=$ac_cv_prog_CC
3330if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332$as_echo "$CC" >&6; }
3333else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338
3339fi
3340if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365done
3366 done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374$as_echo "$CC" >&6; }
3375else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
3378fi
3379
3380
3381 test -n "$CC" && break
3382 done
3383fi
3384if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389set dummy $ac_prog; ac_word=$2
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
3392if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409done
3410 done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418$as_echo "$ac_ct_CC" >&6; }
3419else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422fi
3423
3424
3425 test -n "$ac_ct_CC" && break
3426done
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432yes:)
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435ac_tool_warned=yes ;;
3436esac
3437 CC=$ac_ct_CC
3438 fi
3439fi
3440
3441fi
3442
3443
3444test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446as_fn_error $? "no acceptable C compiler found in \$PATH
3447See \`config.log' for more details" "$LINENO" 5; }
3448
3449# Provide some information about the compiler.
3450$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451set X $ac_compile
3452ac_compiler=$2
3453for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 fi
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472done
3473
3474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h. */
3476
3477int
3478main ()
3479{
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485ac_clean_files_save=$ac_clean_files
3486ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487# Try to create an executable without -o first, disregard a.out.
3488# It will help us diagnose broken compilers, and finding out an intuition
3489# of exeext.
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491$as_echo_n "checking whether the C compiler works... " >&6; }
3492ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493
3494# The possible output files:
3495ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496
3497ac_rmfiles=
3498for ac_file in $ac_files
3499do
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504done
3505rm -f $ac_rmfiles
3506
3507if { { ac_try="$ac_link_default"
3508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520# in a Makefile. We should not override ac_cv_exeext if it was cached,
3521# so that the user can short-circuit this test for compilers unknown to
3522# Autoconf.
3523for ac_file in $ac_files ''
3524do
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 ;;
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 fi
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3544 * )
3545 break;;
3546 esac
3547done
3548test "$ac_cv_exeext" = no && ac_cv_exeext=
3549
3550else
3551 ac_file=''
3552fi
3553if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556$as_echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561as_fn_error 77 "C compiler cannot create executables
3562See \`config.log' for more details" "$LINENO" 5; }
3563else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565$as_echo "yes" >&6; }
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568$as_echo_n "checking for C compiler default output file name... " >&6; }
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570$as_echo "$ac_file" >&6; }
3571ac_exeext=$ac_cv_exeext
3572
3573rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3574ac_clean_files=$ac_clean_files_save
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576$as_echo_n "checking for suffix of executables... " >&6; }
3577if { { ac_try="$ac_link"
3578case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590# work properly (i.e., refer to `conftest.exe'), while it won't with
3591# `rm'.
3592for ac_file in conftest.exe conftest conftest.*; do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 break;;
3598 * ) break;;
3599 esac
3600done
3601else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3605See \`config.log' for more details" "$LINENO" 5; }
3606fi
3607rm -f conftest conftest$ac_cv_exeext
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609$as_echo "$ac_cv_exeext" >&6; }
3610
3611rm -f conftest.$ac_ext
3612EXEEXT=$ac_cv_exeext
3613ac_exeext=$EXEEXT
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h. */
3616#include <stdio.h>
3617int
3618main ()
3619{
3620FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627ac_clean_files="$ac_clean_files conftest.out"
3628# Check that the compiler produces executables we can run. If not, either
3629# the compiler is broken, or we cross compile.
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631$as_echo_n "checking whether we are cross compiling... " >&6; }
3632if test "$cross_compiling" != yes; then
3633 { { ac_try="$ac_link"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639$as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3655 cross_compiling=no
3656 else
3657 if test "$cross_compiling" = maybe; then
3658 cross_compiling=yes
3659 else
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662as_fn_error $? "cannot run C compiled programs.
3663If you meant to cross compile, use \`--host'.
3664See \`config.log' for more details" "$LINENO" 5; }
3665 fi
3666 fi
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669$as_echo "$cross_compiling" >&6; }
3670
3671rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3672ac_clean_files=$ac_clean_files_save
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674$as_echo_n "checking for suffix of object files... " >&6; }
3675if ${ac_cv_objext+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h. */
3680
3681int
3682main ()
3683{
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.o conftest.obj
3690if { { ac_try="$ac_compile"
3691case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696$as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 break;;
3707 esac
3708done
3709else
3710 $as_echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "cannot compute suffix of object files: cannot compile
3716See \`config.log' for more details" "$LINENO" 5; }
3717fi
3718rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721$as_echo "$ac_cv_objext" >&6; }
3722OBJEXT=$ac_cv_objext
3723ac_objext=$OBJEXT
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726if ${ac_cv_c_compiler_gnu+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h. */
3731
3732int
3733main ()
3734{
3735#ifndef __GNUC__
3736 choke me
3737#endif
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_compiler_gnu=yes
3745else
3746 ac_compiler_gnu=no
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749ac_cv_c_compiler_gnu=$ac_compiler_gnu
3750
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754if test $ac_compiler_gnu = yes; then
3755 GCC=yes
3756else
3757 GCC=
3758fi
3759ac_test_CFLAGS=${CFLAGS+set}
3760ac_save_CFLAGS=$CFLAGS
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762$as_echo_n "checking whether $CC accepts -g... " >&6; }
3763if ${ac_cv_prog_cc_g+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h. */
3772
3773int
3774main ()
3775{
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783else
3784 CFLAGS=""
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787
3788int
3789main ()
3790{
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_compile "$LINENO"; then :
3797
3798else
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3800 CFLAGS="-g"
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807
3808 ;
3809 return 0;
3810}
3811_ACEOF
3812if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_g=yes
3814fi
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818fi
3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823$as_echo "$ac_cv_prog_cc_g" >&6; }
3824if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3831 fi
3832else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3837 fi
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841if ${ac_cv_prog_cc_c89+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843else
3844 ac_cv_prog_cc_c89=no
3845ac_save_CC=$CC
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h. */
3848#include <stdarg.h>
3849#include <stdio.h>
3850#include <sys/types.h>
3851#include <sys/stat.h>
3852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3853struct buf { int x; };
3854FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855static char *e (p, i)
3856 char **p;
3857 int i;
3858{
3859 return p[i];
3860}
3861static char *f (char * (*g) (char **, int), char **p, ...)
3862{
3863 char *s;
3864 va_list v;
3865 va_start (v,p);
3866 s = g (p, va_arg (v,int));
3867 va_end (v);
3868 return s;
3869}
3870
3871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3872 function prototypes and stuff, but not '\xHH' hex character constants.
3873 These don't provoke an error unfortunately, instead are silently treated
3874 as 'x'. The following induces an error, until -std is added to get
3875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3876 array size at least. It's necessary to write '\x00'==0 to get something
3877 that's true only with -std. */
3878int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879
3880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881 inside strings and character constants. */
3882#define FOO(x) 'x'
3883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884
3885int test (int i, double x);
3886struct s1 {int (*f) (int a);};
3887struct s2 {int (*f) (double a);};
3888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3889int argc;
3890char **argv;
3891int
3892main ()
3893{
3894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901do
3902 CC="$ac_save_CC $ac_arg"
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_c89=$ac_arg
3905fi
3906rm -f core conftest.err conftest.$ac_objext
3907 test "x$ac_cv_prog_cc_c89" != "xno" && break
3908done
3909rm -f conftest.$ac_ext
3910CC=$ac_save_CC
3911
3912fi
3913# AC_CACHE_VAL
3914case "x$ac_cv_prog_cc_c89" in
3915 x)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917$as_echo "none needed" >&6; } ;;
3918 xno)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920$as_echo "unsupported" >&6; } ;;
3921 *)
3922 CC="$CC $ac_cv_prog_cc_c89"
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925esac
3926if test "x$ac_cv_prog_cc_c89" != xno; then :
3927
3928fi
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935DEPDIR="${am__leading_dot}deps"
3936
3937ac_config_commands="$ac_config_commands depfiles"
3938
3939
3940am_make=${MAKE-make}
3941cat > confinc << 'END'
3942am__doit:
3943 @echo this is the am__doit target
3944.PHONY: am__doit
3945END
3946# If we don't find an include directive, just comment out the code.
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3948$as_echo_n "checking for style of include used by $am_make... " >&6; }
3949am__include="#"
3950am__quote=
3951_am_result=none
3952# First try GNU make style include.
3953echo "include confinc" > confmf
3954# Ignore all kinds of additional output from `make'.
3955case `$am_make -s -f confmf 2> /dev/null` in #(
3956*the\ am__doit\ target*)
3957 am__include=include
3958 am__quote=
3959 _am_result=GNU
3960 ;;
3961esac
3962# Now try BSD make style include.
3963if test "$am__include" = "#"; then
3964 echo '.include "confinc"' > confmf
3965 case `$am_make -s -f confmf 2> /dev/null` in #(
3966 *the\ am__doit\ target*)
3967 am__include=.include
3968 am__quote="\""
3969 _am_result=BSD
3970 ;;
3971 esac
3972fi
3973
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3976$as_echo "$_am_result" >&6; }
3977rm -f confinc confmf
3978
3979# Check whether --enable-dependency-tracking was given.
3980if test "${enable_dependency_tracking+set}" = set; then :
3981 enableval=$enable_dependency_tracking;
3982fi
3983
3984if test "x$enable_dependency_tracking" != xno; then
3985 am_depcomp="$ac_aux_dir/depcomp"
3986 AMDEPBACKSLASH='\'
3987 am__nodep='_no'
3988fi
3989 if test "x$enable_dependency_tracking" != xno; then
3990 AMDEP_TRUE=
3991 AMDEP_FALSE='#'
3992else
3993 AMDEP_TRUE='#'
3994 AMDEP_FALSE=
3995fi
3996
3997
3998
3999depcc="$CC" am_compiler_list=
4000
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4002$as_echo_n "checking dependency style of $depcc... " >&6; }
4003if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005else
4006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4007 # We make a subdir and do the tests there. Otherwise we can end up
4008 # making bogus files that we don't know about and never remove. For
4009 # instance it was reported that on HP-UX the gcc test will end up
4010 # making a dummy file named `D' -- because `-MD' means `put the output
4011 # in D'.
4012 rm -rf conftest.dir
4013 mkdir conftest.dir
4014 # Copy depcomp to subdir because otherwise we won't find it if we're
4015 # using a relative directory.
4016 cp "$am_depcomp" conftest.dir
4017 cd conftest.dir
4018 # We will build objects and dependencies in a subdirectory because
4019 # it helps to detect inapplicable dependency modes. For instance
4020 # both Tru64's cc and ICC support -MD to output dependencies as a
4021 # side effect of compilation, but ICC will put the dependencies in
4022 # the current directory while Tru64 will put them in the object
4023 # directory.
4024 mkdir sub
4025
4026 am_cv_CC_dependencies_compiler_type=none
4027 if test "$am_compiler_list" = ""; then
4028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4029 fi
4030 am__universal=false
4031 case " $depcc " in #(
4032 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4033 esac
4034
4035 for depmode in $am_compiler_list; do
4036 # Setup a source with many dependencies, because some compilers
4037 # like to wrap large dependency lists on column 80 (with \), and
4038 # we should not choose a depcomp mode which is confused by this.
4039 #
4040 # We need to recreate these files for each test, as the compiler may
4041 # overwrite some of them when testing with obscure command lines.
4042 # This happens at least with the AIX C compiler.
4043 : > sub/conftest.c
4044 for i in 1 2 3 4 5 6; do
4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047 # Solaris 8's {/usr,}/bin/sh.
4048 touch sub/conftst$i.h
4049 done
4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051
4052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4053 # mode. It turns out that the SunPro C++ compiler does not properly
4054 # handle `-M -o', and we need to detect this. Also, some Intel
4055 # versions had trouble with output in subdirs
4056 am__obj=sub/conftest.${OBJEXT-o}
4057 am__minus_obj="-o $am__obj"
4058 case $depmode in
4059 gcc)
4060 # This depmode causes a compiler race in universal mode.
4061 test "$am__universal" = false || continue
4062 ;;
4063 nosideeffect)
4064 # after this tag, mechanisms are not by side-effect, so they'll
4065 # only be used when explicitly requested
4066 if test "x$enable_dependency_tracking" = xyes; then
4067 continue
4068 else
4069 break
4070 fi
4071 ;;
4072 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4073 # This compiler won't grok `-c -o', but also, the minuso test has
4074 # not run yet. These depmodes are late enough in the game, and
4075 # so weak that their functioning should not be impacted.
4076 am__obj=conftest.${OBJEXT-o}
4077 am__minus_obj=
4078 ;;
4079 none) break ;;
4080 esac
4081 if depmode=$depmode \
4082 source=sub/conftest.c object=$am__obj \
4083 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4084 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4085 >/dev/null 2>conftest.err &&
4086 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4088 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4089 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4090 # icc doesn't choke on unknown options, it will just issue warnings
4091 # or remarks (even with -Werror). So we grep stderr for any message
4092 # that says an option was ignored or not supported.
4093 # When given -MP, icc 7.0 and 7.1 complain thusly:
4094 # icc: Command line warning: ignoring option '-M'; no argument required
4095 # The diagnosis changed in icc 8.0:
4096 # icc: Command line remark: option '-MP' not supported
4097 if (grep 'ignoring option' conftest.err ||
4098 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4099 am_cv_CC_dependencies_compiler_type=$depmode
4100 break
4101 fi
4102 fi
4103 done
4104
4105 cd ..
4106 rm -rf conftest.dir
4107else
4108 am_cv_CC_dependencies_compiler_type=none
4109fi
4110
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4113$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4114CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4115
4116 if
4117 test "x$enable_dependency_tracking" != xno \
4118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4119 am__fastdepCC_TRUE=
4120 am__fastdepCC_FALSE='#'
4121else
4122 am__fastdepCC_TRUE='#'
4123 am__fastdepCC_FALSE=
4124fi
4125
4126
4127case `pwd` in
4128 *\ * | *\ *)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4130$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4131esac
4132
4133
4134
4135macro_version='2.4.2'
4136macro_revision='1.3337'
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150ltmain="$ac_aux_dir/ltmain.sh"
4151
4152# Backslashify metacharacters that are still active within
4153# double-quoted strings.
4154sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4155
4156# Same as above, but do not quote variable references.
4157double_quote_subst='s/\(["`\\]\)/\\\1/g'
4158
4159# Sed substitution to delay expansion of an escaped shell variable in a
4160# double_quote_subst'ed string.
4161delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4162
4163# Sed substitution to delay expansion of an escaped single quote.
4164delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4165
4166# Sed substitution to avoid accidental globbing in evaled expressions
4167no_glob_subst='s/\*/\\\*/g'
4168
4169ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4170ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4171ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4174$as_echo_n "checking how to print strings... " >&6; }
4175# Test print first, because it will be a builtin if present.
4176if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4177 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4178 ECHO='print -r --'
4179elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4180 ECHO='printf %s\n'
4181else
4182 # Use this function as a fallback that always works.
4183 func_fallback_echo ()
4184 {
4185 eval 'cat <<_LTECHO_EOF
4186$1
4187_LTECHO_EOF'
4188 }
4189 ECHO='func_fallback_echo'
4190fi
4191
4192# func_echo_all arg...
4193# Invoke $ECHO with all args, space-separated.
4194func_echo_all ()
4195{
4196 $ECHO ""
4197}
4198
4199case "$ECHO" in
4200 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4201$as_echo "printf" >&6; } ;;
4202 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4203$as_echo "print -r" >&6; } ;;
4204 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4205$as_echo "cat" >&6; } ;;
4206esac
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4222$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4223if ${ac_cv_path_SED+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225else
4226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4227 for ac_i in 1 2 3 4 5 6 7; do
4228 ac_script="$ac_script$as_nl$ac_script"
4229 done
4230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4231 { ac_script=; unset ac_script;}
4232 if test -z "$SED"; then
4233 ac_path_SED_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in sed gsed; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4243 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4244# Check for GNU ac_path_SED and select it if it is found.
4245 # Check for GNU $ac_path_SED
4246case `"$ac_path_SED" --version 2>&1` in
4247*GNU*)
4248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4249*)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo '' >> "conftest.nl"
4258 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_SED_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_SED="$ac_path_SED"
4264 ac_path_SED_max=$ac_count
4265 fi
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272 $ac_path_SED_found && break 3
4273 done
4274 done
4275 done
4276IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_SED"; then
4278 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4279 fi
4280else
4281 ac_cv_path_SED=$SED
4282fi
4283
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4286$as_echo "$ac_cv_path_SED" >&6; }
4287 SED="$ac_cv_path_SED"
4288 rm -f conftest.sed
4289
4290test -z "$SED" && SED=sed
4291Xsed="$SED -e 1s/^X//"
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4304$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305if ${ac_cv_path_GREP+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307else
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320# Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322case `"$ac_path_GREP" --version 2>&1` in
4323*GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325*)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346esac
4347
4348 $ac_path_GREP_found && break 3
4349 done
4350 done
4351 done
4352IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_GREP"; then
4354 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356else
4357 ac_cv_path_GREP=$GREP
4358fi
4359
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4362$as_echo "$ac_cv_path_GREP" >&6; }
4363 GREP="$ac_cv_path_GREP"
4364
4365
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4367$as_echo_n "checking for egrep... " >&6; }
4368if ${ac_cv_path_EGREP+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370else
4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372 then ac_cv_path_EGREP="$GREP -E"
4373 else
4374 if test -z "$EGREP"; then
4375 ac_path_EGREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in egrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386# Check for GNU ac_path_EGREP and select it if it is found.
4387 # Check for GNU $ac_path_EGREP
4388case `"$ac_path_EGREP" --version 2>&1` in
4389*GNU*)
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4391*)
4392 ac_count=0
4393 $as_echo_n 0123456789 >"conftest.in"
4394 while :
4395 do
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo 'EGREP' >> "conftest.nl"
4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 as_fn_arith $ac_count + 1 && ac_count=$as_val
4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP="$ac_path_EGREP"
4406 ac_path_EGREP_max=$ac_count
4407 fi
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412esac
4413
4414 $ac_path_EGREP_found && break 3
4415 done
4416 done
4417 done
4418IFS=$as_save_IFS
4419 if test -z "$ac_cv_path_EGREP"; then
4420 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4421 fi
4422else
4423 ac_cv_path_EGREP=$EGREP
4424fi
4425
4426 fi
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4429$as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4431
4432
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4434$as_echo_n "checking for fgrep... " >&6; }
4435if ${ac_cv_path_FGREP+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4439 then ac_cv_path_FGREP="$GREP -F"
4440 else
4441 if test -z "$FGREP"; then
4442 ac_path_FGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in fgrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4453# Check for GNU ac_path_FGREP and select it if it is found.
4454 # Check for GNU $ac_path_FGREP
4455case `"$ac_path_FGREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4458*)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'FGREP' >> "conftest.nl"
4467 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_FGREP="$ac_path_FGREP"
4473 ac_path_FGREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481 $ac_path_FGREP_found && break 3
4482 done
4483 done
4484 done
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_FGREP"; then
4487 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 fi
4489else
4490 ac_cv_path_FGREP=$FGREP
4491fi
4492
4493 fi
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4496$as_echo "$ac_cv_path_FGREP" >&6; }
4497 FGREP="$ac_cv_path_FGREP"
4498
4499
4500test -z "$GREP" && GREP=grep
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520# Check whether --with-gnu-ld was given.
4521if test "${with_gnu_ld+set}" = set; then :
4522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4523else
4524 with_gnu_ld=no
4525fi
4526
4527ac_prog=ld
4528if test "$GCC" = yes; then
4529 # Check if gcc -print-prog-name=ld gives a path.
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531$as_echo_n "checking for ld used by $CC... " >&6; }
4532 case $host in
4533 *-*-mingw*)
4534 # gcc leaves a trailing carriage return which upsets mingw
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4536 *)
4537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4538 esac
4539 case $ac_prog in
4540 # Accept absolute paths.
4541 [\\/]* | ?:[\\/]*)
4542 re_direlt='/[^/][^/]*/\.\./'
4543 # Canonicalize the pathname of ld
4544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4547 done
4548 test -z "$LD" && LD="$ac_prog"
4549 ;;
4550 "")
4551 # If it fails, then pretend we aren't using GCC.
4552 ac_prog=ld
4553 ;;
4554 *)
4555 # If it is relative, then search for the first ld in PATH.
4556 with_gnu_ld=unknown
4557 ;;
4558 esac
4559elif test "$with_gnu_ld" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561$as_echo_n "checking for GNU ld... " >&6; }
4562else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564$as_echo_n "checking for non-GNU ld... " >&6; }
4565fi
4566if ${lt_cv_path_LD+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 if test -z "$LD"; then
4570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH; do
4572 IFS="$lt_save_ifs"
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575 lt_cv_path_LD="$ac_dir/$ac_prog"
4576 # Check to see if the program is GNU ld. I'd rather use --version,
4577 # but apparently some variants of GNU ld only accept -v.
4578 # Break only if it was the GNU/non-GNU ld that we prefer.
4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580 *GNU* | *'with BFD'*)
4581 test "$with_gnu_ld" != no && break
4582 ;;
4583 *)
4584 test "$with_gnu_ld" != yes && break
4585 ;;
4586 esac
4587 fi
4588 done
4589 IFS="$lt_save_ifs"
4590else
4591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4592fi
4593fi
4594
4595LD="$lt_cv_path_LD"
4596if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598$as_echo "$LD" >&6; }
4599else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4606if ${lt_cv_prog_gnu_ld+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608else
4609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4610case `$LD -v 2>&1 </dev/null` in
4611*GNU* | *'with BFD'*)
4612 lt_cv_prog_gnu_ld=yes
4613 ;;
4614*)
4615 lt_cv_prog_gnu_ld=no
4616 ;;
4617esac
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621with_gnu_ld=$lt_cv_prog_gnu_ld
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4632$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4633if ${lt_cv_path_NM+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$NM"; then
4637 # Let the user override the test.
4638 lt_cv_path_NM="$NM"
4639else
4640 lt_nm_to_check="${ac_tool_prefix}nm"
4641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4642 lt_nm_to_check="$lt_nm_to_check nm"
4643 fi
4644 for lt_tmp_nm in $lt_nm_to_check; do
4645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4647 IFS="$lt_save_ifs"
4648 test -z "$ac_dir" && ac_dir=.
4649 tmp_nm="$ac_dir/$lt_tmp_nm"
4650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4651 # Check to see if the nm accepts a BSD-compat flag.
4652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4653 # nm: unknown option "B" ignored
4654 # Tru64's nm complains that /dev/null is an invalid object file
4655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4656 */dev/null* | *'Invalid file or object type'*)
4657 lt_cv_path_NM="$tmp_nm -B"
4658 break
4659 ;;
4660 *)
4661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4662 */dev/null*)
4663 lt_cv_path_NM="$tmp_nm -p"
4664 break
4665 ;;
4666 *)
4667 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4668 continue # so that we can try to find one that supports BSD flags
4669 ;;
4670 esac
4671 ;;
4672 esac
4673 fi
4674 done
4675 IFS="$lt_save_ifs"
4676 done
4677 : ${lt_cv_path_NM=no}
4678fi
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4681$as_echo "$lt_cv_path_NM" >&6; }
4682if test "$lt_cv_path_NM" != "no"; then
4683 NM="$lt_cv_path_NM"
4684else
4685 # Didn't find any BSD compatible name lister, look for dumpbin.
4686 if test -n "$DUMPBIN"; then :
4687 # Let the user override the test.
4688 else
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in dumpbin "link -dump"
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695$as_echo_n "checking for $ac_word... " >&6; }
4696if ${ac_cv_prog_DUMPBIN+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698else
4699 if test -n "$DUMPBIN"; then
4700 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714 done
4715IFS=$as_save_IFS
4716
4717fi
4718fi
4719DUMPBIN=$ac_cv_prog_DUMPBIN
4720if test -n "$DUMPBIN"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4722$as_echo "$DUMPBIN" >&6; }
4723else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
4726fi
4727
4728
4729 test -n "$DUMPBIN" && break
4730 done
4731fi
4732if test -z "$DUMPBIN"; then
4733 ac_ct_DUMPBIN=$DUMPBIN
4734 for ac_prog in dumpbin "link -dump"
4735do
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737set dummy $ac_prog; ac_word=$2
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
4740if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742else
4743 if test -n "$ac_ct_DUMPBIN"; then
4744 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758 done
4759IFS=$as_save_IFS
4760
4761fi
4762fi
4763ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4764if test -n "$ac_ct_DUMPBIN"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4766$as_echo "$ac_ct_DUMPBIN" >&6; }
4767else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772
4773 test -n "$ac_ct_DUMPBIN" && break
4774done
4775
4776 if test "x$ac_ct_DUMPBIN" = x; then
4777 DUMPBIN=":"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780yes:)
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783ac_tool_warned=yes ;;
4784esac
4785 DUMPBIN=$ac_ct_DUMPBIN
4786 fi
4787fi
4788
4789 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4790 *COFF*)
4791 DUMPBIN="$DUMPBIN -symbols"
4792 ;;
4793 *)
4794 DUMPBIN=:
4795 ;;
4796 esac
4797 fi
4798
4799 if test "$DUMPBIN" != ":"; then
4800 NM="$DUMPBIN"
4801 fi
4802fi
4803test -z "$NM" && NM=nm
4804
4805
4806
4807
4808
4809
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4811$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4812if ${lt_cv_nm_interface+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814else
4815 lt_cv_nm_interface="BSD nm"
4816 echo "int some_variable = 0;" > conftest.$ac_ext
4817 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4818 (eval "$ac_compile" 2>conftest.err)
4819 cat conftest.err >&5
4820 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4821 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4822 cat conftest.err >&5
4823 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4824 cat conftest.out >&5
4825 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4826 lt_cv_nm_interface="MS dumpbin"
4827 fi
4828 rm -f conftest*
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4831$as_echo "$lt_cv_nm_interface" >&6; }
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4834$as_echo_n "checking whether ln -s works... " >&6; }
4835LN_S=$as_ln_s
4836if test "$LN_S" = "ln -s"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838$as_echo "yes" >&6; }
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4841$as_echo "no, using $LN_S" >&6; }
4842fi
4843
4844# find the maximum length of command line arguments
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4846$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4847if ${lt_cv_sys_max_cmd_len+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849else
4850 i=0
4851 teststring="ABCD"
4852
4853 case $build_os in
4854 msdosdjgpp*)
4855 # On DJGPP, this test can blow up pretty badly due to problems in libc
4856 # (any single argument exceeding 2000 bytes causes a buffer overrun
4857 # during glob expansion). Even if it were fixed, the result of this
4858 # check would be larger than it should be.
4859 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4860 ;;
4861
4862 gnu*)
4863 # Under GNU Hurd, this test is not required because there is
4864 # no limit to the length of command line arguments.
4865 # Libtool will interpret -1 as no limit whatsoever
4866 lt_cv_sys_max_cmd_len=-1;
4867 ;;
4868
4869 cygwin* | mingw* | cegcc*)
4870 # On Win9x/ME, this test blows up -- it succeeds, but takes
4871 # about 5 minutes as the teststring grows exponentially.
4872 # Worse, since 9x/ME are not pre-emptively multitasking,
4873 # you end up with a "frozen" computer, even though with patience
4874 # the test eventually succeeds (with a max line length of 256k).
4875 # Instead, let's just punt: use the minimum linelength reported by
4876 # all of the supported platforms: 8192 (on NT/2K/XP).
4877 lt_cv_sys_max_cmd_len=8192;
4878 ;;
4879
4880 mint*)
4881 # On MiNT this can take a long time and run out of memory.
4882 lt_cv_sys_max_cmd_len=8192;
4883 ;;
4884
4885 amigaos*)
4886 # On AmigaOS with pdksh, this test takes hours, literally.
4887 # So we just punt and use a minimum line length of 8192.
4888 lt_cv_sys_max_cmd_len=8192;
4889 ;;
4890
4891 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4892 # This has been around since 386BSD, at least. Likely further.
4893 if test -x /sbin/sysctl; then
4894 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4895 elif test -x /usr/sbin/sysctl; then
4896 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4897 else
4898 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4899 fi
4900 # And add a safety zone
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 ;;
4904
4905 interix*)
4906 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4907 lt_cv_sys_max_cmd_len=196608
4908 ;;
4909
4910 os2*)
4911 # The test takes a long time on OS/2.
4912 lt_cv_sys_max_cmd_len=8192
4913 ;;
4914
4915 osf*)
4916 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4917 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4918 # nice to cause kernel panics so lets avoid the loop below.
4919 # First set a reasonable default.
4920 lt_cv_sys_max_cmd_len=16384
4921 #
4922 if test -x /sbin/sysconfig; then
4923 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4924 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4925 esac
4926 fi
4927 ;;
4928 sco3.2v5*)
4929 lt_cv_sys_max_cmd_len=102400
4930 ;;
4931 sysv5* | sco5v6* | sysv4.2uw2*)
4932 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4933 if test -n "$kargmax"; then
4934 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4935 else
4936 lt_cv_sys_max_cmd_len=32768
4937 fi
4938 ;;
4939 *)
4940 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4941 if test -n "$lt_cv_sys_max_cmd_len"; then
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4944 else
4945 # Make teststring a little bigger before we do anything with it.
4946 # a 1K string should be a reasonable start.
4947 for i in 1 2 3 4 5 6 7 8 ; do
4948 teststring=$teststring$teststring
4949 done
4950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951 # If test is not a shell built-in, we'll probably end up computing a
4952 # maximum length that is only half of the actual maximum length, but
4953 # we can't tell.
4954 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4955 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4956 test $i != 17 # 1/2 MB should be enough
4957 do
4958 i=`expr $i + 1`
4959 teststring=$teststring$teststring
4960 done
4961 # Only check the string length outside the loop.
4962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4963 teststring=
4964 # Add a significant safety factor because C++ compilers can tack on
4965 # massive amounts of additional arguments before passing them to the
4966 # linker. It appears as though 1/2 is a usable value.
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4968 fi
4969 ;;
4970 esac
4971
4972fi
4973
4974if test -n $lt_cv_sys_max_cmd_len ; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4976$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4977else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4979$as_echo "none" >&6; }
4980fi
4981max_cmd_len=$lt_cv_sys_max_cmd_len
4982
4983
4984
4985
4986
4987
4988: ${CP="cp -f"}
4989: ${MV="mv -f"}
4990: ${RM="rm -f"}
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4993$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4994# Try some XSI features
4995xsi_shell=no
4996( _lt_dummy="a/b/c"
4997 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4998 = c,a/b,b/c, \
4999 && eval 'test $(( 1 + 1 )) -eq 2 \
5000 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5001 && xsi_shell=yes
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5003$as_echo "$xsi_shell" >&6; }
5004
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5007$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5008lt_shell_append=no
5009( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5010 >/dev/null 2>&1 \
5011 && lt_shell_append=yes
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5013$as_echo "$lt_shell_append" >&6; }
5014
5015
5016if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5017 lt_unset=unset
5018else
5019 lt_unset=false
5020fi
5021
5022
5023
5024
5025
5026# test EBCDIC or ASCII
5027case `echo X|tr X '\101'` in
5028 A) # ASCII based system
5029 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5030 lt_SP2NL='tr \040 \012'
5031 lt_NL2SP='tr \015\012 \040\040'
5032 ;;
5033 *) # EBCDIC based system
5034 lt_SP2NL='tr \100 \n'
5035 lt_NL2SP='tr \r\n \100\100'
5036 ;;
5037esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5048$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5049if ${lt_cv_to_host_file_cmd+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051else
5052 case $host in
5053 *-*-mingw* )
5054 case $build in
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5057 ;;
5058 *-*-cygwin* )
5059 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5060 ;;
5061 * ) # otherwise, assume *nix
5062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5063 ;;
5064 esac
5065 ;;
5066 *-*-cygwin* )
5067 case $build in
5068 *-*-mingw* ) # actually msys
5069 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5070 ;;
5071 *-*-cygwin* )
5072 lt_cv_to_host_file_cmd=func_convert_file_noop
5073 ;;
5074 * ) # otherwise, assume *nix
5075 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5076 ;;
5077 esac
5078 ;;
5079 * ) # unhandled hosts (and "normal" native builds)
5080 lt_cv_to_host_file_cmd=func_convert_file_noop
5081 ;;
5082esac
5083
5084fi
5085
5086to_host_file_cmd=$lt_cv_to_host_file_cmd
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5088$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5089
5090
5091
5092
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5095$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5096if ${lt_cv_to_tool_file_cmd+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098else
5099 #assume ordinary cross tools, or native build.
5100lt_cv_to_tool_file_cmd=func_convert_file_noop
5101case $host in
5102 *-*-mingw* )
5103 case $build in
5104 *-*-mingw* ) # actually msys
5105 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5106 ;;
5107 esac
5108 ;;
5109esac
5110
5111fi
5112
5113to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5115$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5116
5117
5118
5119
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5122$as_echo_n "checking for $LD option to reload object files... " >&6; }
5123if ${lt_cv_ld_reload_flag+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125else
5126 lt_cv_ld_reload_flag='-r'
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5129$as_echo "$lt_cv_ld_reload_flag" >&6; }
5130reload_flag=$lt_cv_ld_reload_flag
5131case $reload_flag in
5132"" | " "*) ;;
5133*) reload_flag=" $reload_flag" ;;
5134esac
5135reload_cmds='$LD$reload_flag -o $output$reload_objs'
5136case $host_os in
5137 cygwin* | mingw* | pw32* | cegcc*)
5138 if test "$GCC" != yes; then
5139 reload_cmds=false
5140 fi
5141 ;;
5142 darwin*)
5143 if test "$GCC" = yes; then
5144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5145 else
5146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5147 fi
5148 ;;
5149esac
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5161set dummy ${ac_tool_prefix}objdump; ac_word=$2
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
5164if ${ac_cv_prog_OBJDUMP+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166else
5167 if test -n "$OBJDUMP"; then
5168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182 done
5183IFS=$as_save_IFS
5184
5185fi
5186fi
5187OBJDUMP=$ac_cv_prog_OBJDUMP
5188if test -n "$OBJDUMP"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5190$as_echo "$OBJDUMP" >&6; }
5191else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193$as_echo "no" >&6; }
5194fi
5195
5196
5197fi
5198if test -z "$ac_cv_prog_OBJDUMP"; then
5199 ac_ct_OBJDUMP=$OBJDUMP
5200 # Extract the first word of "objdump", so it can be a program name with args.
5201set dummy objdump; ac_word=$2
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; }
5204if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206else
5207 if test -n "$ac_ct_OBJDUMP"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222 done
5223IFS=$as_save_IFS
5224
5225fi
5226fi
5227ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5228if test -n "$ac_ct_OBJDUMP"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5230$as_echo "$ac_ct_OBJDUMP" >&6; }
5231else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }
5234fi
5235
5236 if test "x$ac_ct_OBJDUMP" = x; then
5237 OBJDUMP="false"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240yes:)
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243ac_tool_warned=yes ;;
5244esac
5245 OBJDUMP=$ac_ct_OBJDUMP
5246 fi
5247else
5248 OBJDUMP="$ac_cv_prog_OBJDUMP"
5249fi
5250
5251test -z "$OBJDUMP" && OBJDUMP=objdump
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5262$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5263if ${lt_cv_deplibs_check_method+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265else
5266 lt_cv_file_magic_cmd='$MAGIC_CMD'
5267lt_cv_file_magic_test_file=
5268lt_cv_deplibs_check_method='unknown'
5269# Need to set the preceding variable on all platforms that support
5270# interlibrary dependencies.
5271# 'none' -- dependencies not supported.
5272# `unknown' -- same as none, but documents that we really don't know.
5273# 'pass_all' -- all dependencies passed with no checks.
5274# 'test_compile' -- check by making test program.
5275# 'file_magic [[regex]]' -- check by looking for files in library path
5276# which responds to the $file_magic_cmd with a given extended regex.
5277# If you have `file' or equivalent on your system and you're not sure
5278# whether `pass_all' will *always* work, you probably want this one.
5279
5280case $host_os in
5281aix[4-9]*)
5282 lt_cv_deplibs_check_method=pass_all
5283 ;;
5284
5285beos*)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288
5289bsdi[45]*)
5290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5291 lt_cv_file_magic_cmd='/usr/bin/file -L'
5292 lt_cv_file_magic_test_file=/shlib/libc.so
5293 ;;
5294
5295cygwin*)
5296 # func_win32_libid is a shell function defined in ltmain.sh
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5299 ;;
5300
5301mingw* | pw32*)
5302 # Base MSYS/MinGW do not provide the 'file' command needed by
5303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5304 # unless we find 'file', for example because we are cross-compiling.
5305 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5306 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5308 lt_cv_file_magic_cmd='func_win32_libid'
5309 else
5310 # Keep this pattern in sync with the one in func_win32_libid.
5311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5313 fi
5314 ;;
5315
5316cegcc*)
5317 # use the weaker test based on 'objdump'. See mingw*.
5318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5319 lt_cv_file_magic_cmd='$OBJDUMP -f'
5320 ;;
5321
5322darwin* | rhapsody*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326freebsd* | dragonfly*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328 case $host_cpu in
5329 i*86 )
5330 # Not sure whether the presence of OpenBSD here was a mistake.
5331 # Let's accept both of them until this is cleared up.
5332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5335 ;;
5336 esac
5337 else
5338 lt_cv_deplibs_check_method=pass_all
5339 fi
5340 ;;
5341
5342gnu*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346haiku*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350hpux10.20* | hpux11*)
5351 lt_cv_file_magic_cmd=/usr/bin/file
5352 case $host_cpu in
5353 ia64*)
5354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5356 ;;
5357 hppa*64*)
5358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5360 ;;
5361 *)
5362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5364 ;;
5365 esac
5366 ;;
5367
5368interix[3-9]*)
5369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5371 ;;
5372
5373irix5* | irix6* | nonstopux*)
5374 case $LD in
5375 *-32|*"-32 ") libmagic=32-bit;;
5376 *-n32|*"-n32 ") libmagic=N32;;
5377 *-64|*"-64 ") libmagic=64-bit;;
5378 *) libmagic=never-match;;
5379 esac
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382
5383# This must be glibc/ELF.
5384linux* | k*bsd*-gnu | kopensolaris*-gnu)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388netbsd* | netbsdelf*-gnu)
5389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5393 fi
5394 ;;
5395
5396newos6*)
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5400 ;;
5401
5402*nto* | *qnx*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405
5406openbsd*)
5407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5409 else
5410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5411 fi
5412 ;;
5413
5414osf3* | osf4* | osf5*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
5418rdos*)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421
5422solaris*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430sysv4 | sysv4.3*)
5431 case $host_vendor in
5432 motorola)
5433 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]'
5434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5435 ;;
5436 ncr)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439 sequent)
5440 lt_cv_file_magic_cmd='/bin/file'
5441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5442 ;;
5443 sni)
5444 lt_cv_file_magic_cmd='/bin/file'
5445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5446 lt_cv_file_magic_test_file=/lib/libc.so
5447 ;;
5448 siemens)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451 pc)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454 esac
5455 ;;
5456
5457tpf*)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460esac
5461
5462fi
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5464$as_echo "$lt_cv_deplibs_check_method" >&6; }
5465
5466file_magic_glob=
5467want_nocaseglob=no
5468if test "$build" = "$host"; then
5469 case $host_os in
5470 mingw* | pw32*)
5471 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5472 want_nocaseglob=yes
5473 else
5474 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5475 fi
5476 ;;
5477 esac
5478fi
5479
5480file_magic_cmd=$lt_cv_file_magic_cmd
5481deplibs_check_method=$lt_cv_deplibs_check_method
5482test -z "$deplibs_check_method" && deplibs_check_method=unknown
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5507set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
5510if ${ac_cv_prog_DLLTOOL+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512else
5513 if test -n "$DLLTOOL"; then
5514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528 done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
5533DLLTOOL=$ac_cv_prog_DLLTOOL
5534if test -n "$DLLTOOL"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5536$as_echo "$DLLTOOL" >&6; }
5537else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542
5543fi
5544if test -z "$ac_cv_prog_DLLTOOL"; then
5545 ac_ct_DLLTOOL=$DLLTOOL
5546 # Extract the first word of "dlltool", so it can be a program name with args.
5547set dummy dlltool; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552else
5553 if test -n "$ac_ct_DLLTOOL"; then
5554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568 done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5574if test -n "$ac_ct_DLLTOOL"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5576$as_echo "$ac_ct_DLLTOOL" >&6; }
5577else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582 if test "x$ac_ct_DLLTOOL" = x; then
5583 DLLTOOL="false"
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586yes:)
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589ac_tool_warned=yes ;;
5590esac
5591 DLLTOOL=$ac_ct_DLLTOOL
5592 fi
5593else
5594 DLLTOOL="$ac_cv_prog_DLLTOOL"
5595fi
5596
5597test -z "$DLLTOOL" && DLLTOOL=dlltool
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5609$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5610if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 lt_cv_sharedlib_from_linklib_cmd='unknown'
5614
5615case $host_os in
5616cygwin* | mingw* | pw32* | cegcc*)
5617 # two different shell functions defined in ltmain.sh
5618 # decide which to use based on capabilities of $DLLTOOL
5619 case `$DLLTOOL --help 2>&1` in
5620 *--identify-strict*)
5621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5622 ;;
5623 *)
5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5625 ;;
5626 esac
5627 ;;
5628*)
5629 # fallback: assume linklib IS sharedlib
5630 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5631 ;;
5632esac
5633
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5636$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5637sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5638test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5639
5640
5641
5642
5643
5644
5645
5646
5647if test -n "$ac_tool_prefix"; then
5648 for ac_prog in ar
5649 do
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if ${ac_cv_prog_AR+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656else
5657 if test -n "$AR"; then
5658 ac_cv_prog_AR="$AR" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671done
5672 done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677AR=$ac_cv_prog_AR
5678if test -n "$AR"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5680$as_echo "$AR" >&6; }
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686
5687 test -n "$AR" && break
5688 done
5689fi
5690if test -z "$AR"; then
5691 ac_ct_AR=$AR
5692 for ac_prog in ar
5693do
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695set dummy $ac_prog; ac_word=$2
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697$as_echo_n "checking for $ac_word... " >&6; }
5698if ${ac_cv_prog_ac_ct_AR+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700else
5701 if test -n "$ac_ct_AR"; then
5702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_AR="$ac_prog"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715done
5716 done
5717IFS=$as_save_IFS
5718
5719fi
5720fi
5721ac_ct_AR=$ac_cv_prog_ac_ct_AR
5722if test -n "$ac_ct_AR"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5724$as_echo "$ac_ct_AR" >&6; }
5725else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
5728fi
5729
5730
5731 test -n "$ac_ct_AR" && break
5732done
5733
5734 if test "x$ac_ct_AR" = x; then
5735 AR="false"
5736 else
5737 case $cross_compiling:$ac_tool_warned in
5738yes:)
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741ac_tool_warned=yes ;;
5742esac
5743 AR=$ac_ct_AR
5744 fi
5745fi
5746
5747: ${AR=ar}
5748: ${AR_FLAGS=cru}
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5761$as_echo_n "checking for archiver @FILE support... " >&6; }
5762if ${lt_cv_ar_at_file+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764else
5765 lt_cv_ar_at_file=no
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768
5769int
5770main ()
5771{
5772
5773 ;
5774 return 0;
5775}
5776_ACEOF
5777if ac_fn_c_try_compile "$LINENO"; then :
5778 echo conftest.$ac_objext > conftest.lst
5779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5782 ac_status=$?
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test "$ac_status" -eq 0; then
5786 # Ensure the archiver fails upon bogus file names.
5787 rm -f conftest.$ac_objext libconftest.a
5788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5789 (eval $lt_ar_try) 2>&5
5790 ac_status=$?
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5792 test $ac_status = 0; }
5793 if test "$ac_status" -ne 0; then
5794 lt_cv_ar_at_file=@
5795 fi
5796 fi
5797 rm -f conftest.* libconftest.a
5798
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5804$as_echo "$lt_cv_ar_at_file" >&6; }
5805
5806if test "x$lt_cv_ar_at_file" = xno; then
5807 archiver_list_spec=
5808else
5809 archiver_list_spec=$lt_cv_ar_at_file
5810fi
5811
5812
5813
5814
5815
5816
5817
5818if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}strip; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if ${ac_cv_prog_STRIP+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825else
5826 if test -n "$STRIP"; then
5827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841 done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846STRIP=$ac_cv_prog_STRIP
5847if test -n "$STRIP"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5849$as_echo "$STRIP" >&6; }
5850else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856fi
5857if test -z "$ac_cv_prog_STRIP"; then
5858 ac_ct_STRIP=$STRIP
5859 # Extract the first word of "strip", so it can be a program name with args.
5860set dummy strip; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865else
5866 if test -n "$ac_ct_STRIP"; then
5867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_STRIP="strip"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880done
5881 done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5887if test -n "$ac_ct_STRIP"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5889$as_echo "$ac_ct_STRIP" >&6; }
5890else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895 if test "x$ac_ct_STRIP" = x; then
5896 STRIP=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904 STRIP=$ac_ct_STRIP
5905 fi
5906else
5907 STRIP="$ac_cv_prog_STRIP"
5908fi
5909
5910test -z "$STRIP" && STRIP=:
5911
5912
5913
5914
5915
5916
5917if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
5922if ${ac_cv_prog_RANLIB+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924else
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940 done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945RANLIB=$ac_cv_prog_RANLIB
5946if test -n "$RANLIB"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5948$as_echo "$RANLIB" >&6; }
5949else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954
5955fi
5956if test -z "$ac_cv_prog_RANLIB"; then
5957 ac_ct_RANLIB=$RANLIB
5958 # Extract the first word of "ranlib", so it can be a program name with args.
5959set dummy ranlib; ac_word=$2
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961$as_echo_n "checking for $ac_word... " >&6; }
5962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964else
5965 if test -n "$ac_ct_RANLIB"; then
5966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_RANLIB="ranlib"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980 done
5981IFS=$as_save_IFS
5982
5983fi
5984fi
5985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5986if test -n "$ac_ct_RANLIB"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5988$as_echo "$ac_ct_RANLIB" >&6; }
5989else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991$as_echo "no" >&6; }
5992fi
5993
5994 if test "x$ac_ct_RANLIB" = x; then
5995 RANLIB=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998yes:)
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001ac_tool_warned=yes ;;
6002esac
6003 RANLIB=$ac_ct_RANLIB
6004 fi
6005else
6006 RANLIB="$ac_cv_prog_RANLIB"
6007fi
6008
6009test -z "$RANLIB" && RANLIB=:
6010
6011
6012
6013
6014
6015
6016# Determine commands to create old-style static archives.
6017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6018old_postinstall_cmds='chmod 644 $oldlib'
6019old_postuninstall_cmds=
6020
6021if test -n "$RANLIB"; then
6022 case $host_os in
6023 openbsd*)
6024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6025 ;;
6026 *)
6027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6028 ;;
6029 esac
6030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6031fi
6032
6033case $host_os in
6034 darwin*)
6035 lock_old_archive_extraction=yes ;;
6036 *)
6037 lock_old_archive_extraction=no ;;
6038esac
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078# If no C compiler was specified, use CC.
6079LTCC=${LTCC-"$CC"}
6080
6081# If no C compiler flags were specified, use CFLAGS.
6082LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6083
6084# Allow CC to be a program name with arguments.
6085compiler=$CC
6086
6087
6088# Check for command to grab the raw symbol name followed by C symbol from nm.
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6091if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093else
6094
6095# These are sane defaults that work on at least a few old systems.
6096# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6097
6098# Character class describing NM global symbol codes.
6099symcode='[BCDEGRST]'
6100
6101# Regexp to match symbols that can be accessed directly from C.
6102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6103
6104# Define system-specific variables.
6105case $host_os in
6106aix*)
6107 symcode='[BCDT]'
6108 ;;
6109cygwin* | mingw* | pw32* | cegcc*)
6110 symcode='[ABCDGISTW]'
6111 ;;
6112hpux*)
6113 if test "$host_cpu" = ia64; then
6114 symcode='[ABCDEGRST]'
6115 fi
6116 ;;
6117irix* | nonstopux*)
6118 symcode='[BCDEGRST]'
6119 ;;
6120osf*)
6121 symcode='[BCDEGQRST]'
6122 ;;
6123solaris*)
6124 symcode='[BDRT]'
6125 ;;
6126sco3.2v5*)
6127 symcode='[DT]'
6128 ;;
6129sysv4.2uw2*)
6130 symcode='[DT]'
6131 ;;
6132sysv5* | sco5v6* | unixware* | OpenUNIX*)
6133 symcode='[ABDT]'
6134 ;;
6135sysv4)
6136 symcode='[DFNSTU]'
6137 ;;
6138esac
6139
6140# If we're using GNU nm, then use its standard symbol codes.
6141case `$NM -V 2>&1` in
6142*GNU* | *'with BFD'*)
6143 symcode='[ABCDGIRSTW]' ;;
6144esac
6145
6146# Transform an extracted symbol line into a proper C declaration.
6147# Some systems (esp. on ia64) link data and code symbols differently,
6148# so use this general approach.
6149lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6150
6151# Transform an extracted symbol line into symbol name and symbol address
6152lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6153lt_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'"
6154
6155# Handle CRLF in mingw tool chain
6156opt_cr=
6157case $build_os in
6158mingw*)
6159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6160 ;;
6161esac
6162
6163# Try without a prefix underscore, then with it.
6164for ac_symprfx in "" "_"; do
6165
6166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6167 symxfrm="\\1 $ac_symprfx\\2 \\2"
6168
6169 # Write the raw and C identifiers.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6171 # Fake it for dumpbin and say T for any non-static function
6172 # and D for any global variable.
6173 # Also find C++ and __fastcall symbols from MSVC++,
6174 # which start with @ or ?.
6175 lt_cv_sys_global_symbol_pipe="$AWK '"\
6176" {last_section=section; section=\$ 3};"\
6177" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6178" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6179" \$ 0!~/External *\|/{next};"\
6180" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6181" {if(hide[section]) next};"\
6182" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6183" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6184" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6185" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6186" ' prfx=^$ac_symprfx"
6187 else
6188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6189 fi
6190 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6191
6192 # Check to see that the pipe works correctly.
6193 pipe_works=no
6194
6195 rm -f conftest*
6196 cat > conftest.$ac_ext <<_LT_EOF
6197#ifdef __cplusplus
6198extern "C" {
6199#endif
6200char nm_test_var;
6201void nm_test_func(void);
6202void nm_test_func(void){}
6203#ifdef __cplusplus
6204}
6205#endif
6206int main(){nm_test_var='a';nm_test_func();return(0);}
6207_LT_EOF
6208
6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 # Now try to grab the symbols.
6215 nlist=conftest.nm
6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; } && test -s "$nlist"; then
6221 # Try sorting and uniquifying the output.
6222 if sort "$nlist" | uniq > "$nlist"T; then
6223 mv -f "$nlist"T "$nlist"
6224 else
6225 rm -f "$nlist"T
6226 fi
6227
6228 # Make sure that we snagged all the symbols we need.
6229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6231 cat <<_LT_EOF > conftest.$ac_ext
6232/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6233#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6234/* DATA imports from DLLs on WIN32 con't be const, because runtime
6235 relocations are performed -- see ld's documentation on pseudo-relocs. */
6236# define LT_DLSYM_CONST
6237#elif defined(__osf__)
6238/* This system does not cope well with relocations in const data. */
6239# define LT_DLSYM_CONST
6240#else
6241# define LT_DLSYM_CONST const
6242#endif
6243
6244#ifdef __cplusplus
6245extern "C" {
6246#endif
6247
6248_LT_EOF
6249 # Now generate the symbol file.
6250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6251
6252 cat <<_LT_EOF >> conftest.$ac_ext
6253
6254/* The mapping between symbol names and symbols. */
6255LT_DLSYM_CONST struct {
6256 const char *name;
6257 void *address;
6258}
6259lt__PROGRAM__LTX_preloaded_symbols[] =
6260{
6261 { "@PROGRAM@", (void *) 0 },
6262_LT_EOF
6263 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6264 cat <<\_LT_EOF >> conftest.$ac_ext
6265 {0, (void *) 0}
6266};
6267
6268/* This works around a problem in FreeBSD linker */
6269#ifdef FREEBSD_WORKAROUND
6270static const void *lt_preloaded_setup() {
6271 return lt__PROGRAM__LTX_preloaded_symbols;
6272}
6273#endif
6274
6275#ifdef __cplusplus
6276}
6277#endif
6278_LT_EOF
6279 # Now try linking the two files.
6280 mv conftest.$ac_objext conftstm.$ac_objext
6281 lt_globsym_save_LIBS=$LIBS
6282 lt_globsym_save_CFLAGS=$CFLAGS
6283 LIBS="conftstm.$ac_objext"
6284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6286 (eval $ac_link) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6290 pipe_works=yes
6291 fi
6292 LIBS=$lt_globsym_save_LIBS
6293 CFLAGS=$lt_globsym_save_CFLAGS
6294 else
6295 echo "cannot find nm_test_func in $nlist" >&5
6296 fi
6297 else
6298 echo "cannot find nm_test_var in $nlist" >&5
6299 fi
6300 else
6301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6302 fi
6303 else
6304 echo "$progname: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 fi
6307 rm -rf conftest* conftst*
6308
6309 # Do not use the global_symbol_pipe unless it works.
6310 if test "$pipe_works" = yes; then
6311 break
6312 else
6313 lt_cv_sys_global_symbol_pipe=
6314 fi
6315done
6316
6317fi
6318
6319if test -z "$lt_cv_sys_global_symbol_pipe"; then
6320 lt_cv_sys_global_symbol_to_cdecl=
6321fi
6322if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6324$as_echo "failed" >&6; }
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6327$as_echo "ok" >&6; }
6328fi
6329
6330# Response file support.
6331if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6332 nm_file_list_spec='@'
6333elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6334 nm_file_list_spec='@'
6335fi
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6364$as_echo_n "checking for sysroot... " >&6; }
6365
6366# Check whether --with-sysroot was given.
6367if test "${with_sysroot+set}" = set; then :
6368 withval=$with_sysroot;
6369else
6370 with_sysroot=no
6371fi
6372
6373
6374lt_sysroot=
6375case ${with_sysroot} in #(
6376 yes)
6377 if test "$GCC" = yes; then
6378 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6379 fi
6380 ;; #(
6381 /*)
6382 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6383 ;; #(
6384 no|'')
6385 ;; #(
6386 *)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6388$as_echo "${with_sysroot}" >&6; }
6389 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6390 ;;
6391esac
6392
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6394$as_echo "${lt_sysroot:-no}" >&6; }
6395
6396
6397
6398
6399
6400# Check whether --enable-libtool-lock was given.
6401if test "${enable_libtool_lock+set}" = set; then :
6402 enableval=$enable_libtool_lock;
6403fi
6404
6405test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6406
6407# Some flags need to be propagated to the compiler or linker for good
6408# libtool support.
6409case $host in
6410ia64-*-hpux*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *ELF-32*)
6420 HPUX_IA64_MODE="32"
6421 ;;
6422 *ELF-64*)
6423 HPUX_IA64_MODE="64"
6424 ;;
6425 esac
6426 fi
6427 rm -rf conftest*
6428 ;;
6429*-*-irix6*)
6430 # Find out which ABI we are using.
6431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 if test "$lt_cv_prog_gnu_ld" = yes; then
6438 case `/usr/bin/file conftest.$ac_objext` in
6439 *32-bit*)
6440 LD="${LD-ld} -melf32bsmip"
6441 ;;
6442 *N32*)
6443 LD="${LD-ld} -melf32bmipn32"
6444 ;;
6445 *64-bit*)
6446 LD="${LD-ld} -melf64bmip"
6447 ;;
6448 esac
6449 else
6450 case `/usr/bin/file conftest.$ac_objext` in
6451 *32-bit*)
6452 LD="${LD-ld} -32"
6453 ;;
6454 *N32*)
6455 LD="${LD-ld} -n32"
6456 ;;
6457 *64-bit*)
6458 LD="${LD-ld} -64"
6459 ;;
6460 esac
6461 fi
6462 fi
6463 rm -rf conftest*
6464 ;;
6465
6466x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6467s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6468 # Find out which ABI we are using.
6469 echo 'int i;' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 case `/usr/bin/file conftest.o` in
6476 *32-bit*)
6477 case $host in
6478 x86_64-*kfreebsd*-gnu)
6479 LD="${LD-ld} -m elf_i386_fbsd"
6480 ;;
6481 x86_64-*linux*)
6482 LD="${LD-ld} -m elf_i386"
6483 ;;
6484 ppc64-*linux*|powerpc64-*linux*)
6485 LD="${LD-ld} -m elf32ppclinux"
6486 ;;
6487 s390x-*linux*)
6488 LD="${LD-ld} -m elf_s390"
6489 ;;
6490 sparc64-*linux*)
6491 LD="${LD-ld} -m elf32_sparc"
6492 ;;
6493 esac
6494 ;;
6495 *64-bit*)
6496 case $host in
6497 x86_64-*kfreebsd*-gnu)
6498 LD="${LD-ld} -m elf_x86_64_fbsd"
6499 ;;
6500 x86_64-*linux*)
6501 LD="${LD-ld} -m elf_x86_64"
6502 ;;
6503 ppc*-*linux*|powerpc*-*linux*)
6504 LD="${LD-ld} -m elf64ppc"
6505 ;;
6506 s390*-*linux*|s390*-*tpf*)
6507 LD="${LD-ld} -m elf64_s390"
6508 ;;
6509 sparc*-*linux*)
6510 LD="${LD-ld} -m elf64_sparc"
6511 ;;
6512 esac
6513 ;;
6514 esac
6515 fi
6516 rm -rf conftest*
6517 ;;
6518
6519*-*-sco3.2v5*)
6520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6521 SAVE_CFLAGS="$CFLAGS"
6522 CFLAGS="$CFLAGS -belf"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6524$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6525if ${lt_cv_cc_needs_belf+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527else
6528 ac_ext=c
6529ac_cpp='$CPP $CPPFLAGS'
6530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_link "$LINENO"; then :
6546 lt_cv_cc_needs_belf=yes
6547else
6548 lt_cv_cc_needs_belf=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552 ac_ext=c
6553ac_cpp='$CPP $CPPFLAGS'
6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557
6558fi
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6560$as_echo "$lt_cv_cc_needs_belf" >&6; }
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6564 fi
6565 ;;
6566*-*solaris*)
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 case `/usr/bin/file conftest.o` in
6575 *64-bit*)
6576 case $lt_cv_prog_gnu_ld in
6577 yes*)
6578 case $host in
6579 i?86-*-solaris*)
6580 LD="${LD-ld} -m elf_x86_64"
6581 ;;
6582 sparc*-*-solaris*)
6583 LD="${LD-ld} -m elf64_sparc"
6584 ;;
6585 esac
6586 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6587 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6588 LD="${LD-ld}_sol2"
6589 fi
6590 ;;
6591 *)
6592 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6593 LD="${LD-ld} -64"
6594 fi
6595 ;;
6596 esac
6597 ;;
6598 esac
6599 fi
6600 rm -rf conftest*
6601 ;;
6602esac
6603
6604need_locks="$enable_libtool_lock"
6605
6606if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6608set dummy ${ac_tool_prefix}mt; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613else
6614 if test -n "$MANIFEST_TOOL"; then
6615 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629 done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
6634MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6635if test -n "$MANIFEST_TOOL"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6637$as_echo "$MANIFEST_TOOL" >&6; }
6638else
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
6643
6644fi
6645if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6646 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6647 # Extract the first word of "mt", so it can be a program name with args.
6648set dummy mt; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653else
6654 if test -n "$ac_ct_MANIFEST_TOOL"; then
6655 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669 done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6675if test -n "$ac_ct_MANIFEST_TOOL"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6677$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6678else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6684 MANIFEST_TOOL=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687yes:)
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690ac_tool_warned=yes ;;
6691esac
6692 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6693 fi
6694else
6695 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6696fi
6697
6698test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6700$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6701if ${lt_cv_path_mainfest_tool+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703else
6704 lt_cv_path_mainfest_tool=no
6705 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6706 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6707 cat conftest.err >&5
6708 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6709 lt_cv_path_mainfest_tool=yes
6710 fi
6711 rm -f conftest*
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6714$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6715if test "x$lt_cv_path_mainfest_tool" != xyes; then
6716 MANIFEST_TOOL=:
6717fi
6718
6719
6720
6721
6722
6723
6724 case $host_os in
6725 rhapsody* | darwin*)
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if ${ac_cv_prog_DSYMUTIL+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733else
6734 if test -n "$DSYMUTIL"; then
6735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748done
6749 done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754DSYMUTIL=$ac_cv_prog_DSYMUTIL
6755if test -n "$DSYMUTIL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6757$as_echo "$DSYMUTIL" >&6; }
6758else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_DSYMUTIL"; then
6766 ac_ct_DSYMUTIL=$DSYMUTIL
6767 # Extract the first word of "dsymutil", so it can be a program name with args.
6768set dummy dsymutil; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773else
6774 if test -n "$ac_ct_DSYMUTIL"; then
6775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788done
6789 done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6795if test -n "$ac_ct_DSYMUTIL"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6797$as_echo "$ac_ct_DSYMUTIL" >&6; }
6798else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803 if test "x$ac_ct_DSYMUTIL" = x; then
6804 DSYMUTIL=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812 DSYMUTIL=$ac_ct_DSYMUTIL
6813 fi
6814else
6815 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6816fi
6817
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if ${ac_cv_prog_NMEDIT+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$NMEDIT"; then
6827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841 done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846NMEDIT=$ac_cv_prog_NMEDIT
6847if test -n "$NMEDIT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6849$as_echo "$NMEDIT" >&6; }
6850else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_NMEDIT"; then
6858 ac_ct_NMEDIT=$NMEDIT
6859 # Extract the first word of "nmedit", so it can be a program name with args.
6860set dummy nmedit; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865else
6866 if test -n "$ac_ct_NMEDIT"; then
6867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881 done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6887if test -n "$ac_ct_NMEDIT"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6889$as_echo "$ac_ct_NMEDIT" >&6; }
6890else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895 if test "x$ac_ct_NMEDIT" = x; then
6896 NMEDIT=":"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904 NMEDIT=$ac_ct_NMEDIT
6905 fi
6906else
6907 NMEDIT="$ac_cv_prog_NMEDIT"
6908fi
6909
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6912set dummy ${ac_tool_prefix}lipo; ac_word=$2
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914$as_echo_n "checking for $ac_word... " >&6; }
6915if ${ac_cv_prog_LIPO+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917else
6918 if test -n "$LIPO"; then
6919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933 done
6934IFS=$as_save_IFS
6935
6936fi
6937fi
6938LIPO=$ac_cv_prog_LIPO
6939if test -n "$LIPO"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6941$as_echo "$LIPO" >&6; }
6942else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944$as_echo "no" >&6; }
6945fi
6946
6947
6948fi
6949if test -z "$ac_cv_prog_LIPO"; then
6950 ac_ct_LIPO=$LIPO
6951 # Extract the first word of "lipo", so it can be a program name with args.
6952set dummy lipo; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957else
6958 if test -n "$ac_ct_LIPO"; then
6959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_LIPO="lipo"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973 done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6979if test -n "$ac_ct_LIPO"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6981$as_echo "$ac_ct_LIPO" >&6; }
6982else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987 if test "x$ac_ct_LIPO" = x; then
6988 LIPO=":"
6989 else
6990 case $cross_compiling:$ac_tool_warned in
6991yes:)
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996 LIPO=$ac_ct_LIPO
6997 fi
6998else
6999 LIPO="$ac_cv_prog_LIPO"
7000fi
7001
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7004set dummy ${ac_tool_prefix}otool; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
7007if ${ac_cv_prog_OTOOL+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009else
7010 if test -n "$OTOOL"; then
7011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024done
7025 done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030OTOOL=$ac_cv_prog_OTOOL
7031if test -n "$OTOOL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7033$as_echo "$OTOOL" >&6; }
7034else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039
7040fi
7041if test -z "$ac_cv_prog_OTOOL"; then
7042 ac_ct_OTOOL=$OTOOL
7043 # Extract the first word of "otool", so it can be a program name with args.
7044set dummy otool; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049else
7050 if test -n "$ac_ct_OTOOL"; then
7051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_ac_ct_OTOOL="otool"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065 done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7071if test -n "$ac_ct_OTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7073$as_echo "$ac_ct_OTOOL" >&6; }
7074else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079 if test "x$ac_ct_OTOOL" = x; then
7080 OTOOL=":"
7081 else
7082 case $cross_compiling:$ac_tool_warned in
7083yes:)
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086ac_tool_warned=yes ;;
7087esac
7088 OTOOL=$ac_ct_OTOOL
7089 fi
7090else
7091 OTOOL="$ac_cv_prog_OTOOL"
7092fi
7093
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}otool64; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
7099if ${ac_cv_prog_OTOOL64+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101else
7102 if test -n "$OTOOL64"; then
7103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117 done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122OTOOL64=$ac_cv_prog_OTOOL64
7123if test -n "$OTOOL64"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7125$as_echo "$OTOOL64" >&6; }
7126else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_OTOOL64"; then
7134 ac_ct_OTOOL64=$OTOOL64
7135 # Extract the first word of "otool64", so it can be a program name with args.
7136set dummy otool64; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141else
7142 if test -n "$ac_ct_OTOOL64"; then
7143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_OTOOL64="otool64"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157 done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7163if test -n "$ac_ct_OTOOL64"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7165$as_echo "$ac_ct_OTOOL64" >&6; }
7166else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171 if test "x$ac_ct_OTOOL64" = x; then
7172 OTOOL64=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180 OTOOL64=$ac_ct_OTOOL64
7181 fi
7182else
7183 OTOOL64="$ac_cv_prog_OTOOL64"
7184fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7213$as_echo_n "checking for -single_module linker flag... " >&6; }
7214if ${lt_cv_apple_cc_single_mod+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216else
7217 lt_cv_apple_cc_single_mod=no
7218 if test -z "${LT_MULTI_MODULE}"; then
7219 # By default we will add the -single_module flag. You can override
7220 # by either setting the environment variable LT_MULTI_MODULE
7221 # non-empty at configure time, or by adding -multi_module to the
7222 # link flags.
7223 rm -rf libconftest.dylib*
7224 echo "int foo(void){return 1;}" > conftest.c
7225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226-dynamiclib -Wl,-single_module conftest.c" >&5
7227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7229 _lt_result=$?
7230 # If there is a non-empty error log, and "single_module"
7231 # appears in it, assume the flag caused a linker warning
7232 if test -s conftest.err && $GREP single_module conftest.err; then
7233 cat conftest.err >&5
7234 # Otherwise, if the output was created with a 0 exit code from
7235 # the compiler, it worked.
7236 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7237 lt_cv_apple_cc_single_mod=yes
7238 else
7239 cat conftest.err >&5
7240 fi
7241 rm -rf libconftest.dylib*
7242 rm -f conftest.*
7243 fi
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7246$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7249$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7250if ${lt_cv_ld_exported_symbols_list+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252else
7253 lt_cv_ld_exported_symbols_list=no
7254 save_LDFLAGS=$LDFLAGS
7255 echo "_main" > conftest.sym
7256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h. */
7259
7260int
7261main ()
7262{
7263
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_link "$LINENO"; then :
7269 lt_cv_ld_exported_symbols_list=yes
7270else
7271 lt_cv_ld_exported_symbols_list=no
7272fi
7273rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 LDFLAGS="$save_LDFLAGS"
7276
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7279$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7282$as_echo_n "checking for -force_load linker flag... " >&6; }
7283if ${lt_cv_ld_force_load+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285else
7286 lt_cv_ld_force_load=no
7287 cat > conftest.c << _LT_EOF
7288int forced_loaded() { return 2;}
7289_LT_EOF
7290 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7291 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7292 echo "$AR cru libconftest.a conftest.o" >&5
7293 $AR cru libconftest.a conftest.o 2>&5
7294 echo "$RANLIB libconftest.a" >&5
7295 $RANLIB libconftest.a 2>&5
7296 cat > conftest.c << _LT_EOF
7297int main() { return 0;}
7298_LT_EOF
7299 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7300 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7301 _lt_result=$?
7302 if test -s conftest.err && $GREP force_load conftest.err; then
7303 cat conftest.err >&5
7304 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7305 lt_cv_ld_force_load=yes
7306 else
7307 cat conftest.err >&5
7308 fi
7309 rm -f conftest.err libconftest.a conftest conftest.c
7310 rm -rf conftest.dSYM
7311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7314$as_echo "$lt_cv_ld_force_load" >&6; }
7315 case $host_os in
7316 rhapsody* | darwin1.[012])
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7318 darwin1.*)
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 darwin*) # darwin 5.x on
7321 # if running on 10.5 or later, the deployment target defaults
7322 # to the OS version, if on x86, and 10.4, the deployment
7323 # target defaults to 10.4. Don't you love it?
7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327 10.[012]*)
7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7329 10.*)
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331 esac
7332 ;;
7333 esac
7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335 _lt_dar_single_mod='$single_module'
7336 fi
7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7339 else
7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7341 fi
7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7343 _lt_dsymutil='~$DSYMUTIL $lib || :'
7344 else
7345 _lt_dsymutil=
7346 fi
7347 ;;
7348 esac
7349
7350ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7356$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357# On Suns, sometimes $CPP names a directory.
7358if test -n "$CPP" && test -d "$CPP"; then
7359 CPP=
7360fi
7361if test -z "$CPP"; then
7362 if ${ac_cv_prog_CPP+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364else
7365 # Double quotes because CPP needs to be expanded
7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7367 do
7368 ac_preproc_ok=false
7369for ac_c_preproc_warn_flag in '' yes
7370do
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h. */
7379#ifdef __STDC__
7380# include <limits.h>
7381#else
7382# include <assert.h>
7383#endif
7384 Syntax error
7385_ACEOF
7386if ac_fn_c_try_cpp "$LINENO"; then :
7387
7388else
7389 # Broken: fails on valid input.
7390continue
7391fi
7392rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h. */
7398#include <ac_nonexistent.h>
7399_ACEOF
7400if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7402continue
7403else
7404 # Passes both tests.
7405ac_preproc_ok=:
7406break
7407fi
7408rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410done
7411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412rm -f conftest.i conftest.err conftest.$ac_ext
7413if $ac_preproc_ok; then :
7414 break
7415fi
7416
7417 done
7418 ac_cv_prog_CPP=$CPP
7419
7420fi
7421 CPP=$ac_cv_prog_CPP
7422else
7423 ac_cv_prog_CPP=$CPP
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7426$as_echo "$CPP" >&6; }
7427ac_preproc_ok=false
7428for ac_c_preproc_warn_flag in '' yes
7429do
7430 # Use a header file that comes with gcc, so configuring glibc
7431 # with a fresh cross-compiler works.
7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 # <limits.h> exists even on freestanding compilers.
7434 # On the NeXT, cc -E runs the code through the compiler's parser,
7435 # not just through cpp. "Syntax error" is here to catch this case.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h. */
7438#ifdef __STDC__
7439# include <limits.h>
7440#else
7441# include <assert.h>
7442#endif
7443 Syntax error
7444_ACEOF
7445if ac_fn_c_try_cpp "$LINENO"; then :
7446
7447else
7448 # Broken: fails on valid input.
7449continue
7450fi
7451rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453 # OK, works on sane cases. Now check whether nonexistent headers
7454 # can be detected and how.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h. */
7457#include <ac_nonexistent.h>
7458_ACEOF
7459if ac_fn_c_try_cpp "$LINENO"; then :
7460 # Broken: success on invalid input.
7461continue
7462else
7463 # Passes both tests.
7464ac_preproc_ok=:
7465break
7466fi
7467rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469done
7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471rm -f conftest.i conftest.err conftest.$ac_ext
7472if $ac_preproc_ok; then :
7473
7474else
7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7478See \`config.log' for more details" "$LINENO" 5; }
7479fi
7480
7481ac_ext=c
7482ac_cpp='$CPP $CPPFLAGS'
7483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7489$as_echo_n "checking for ANSI C header files... " >&6; }
7490if ${ac_cv_header_stdc+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h. */
7495#include <stdlib.h>
7496#include <stdarg.h>
7497#include <string.h>
7498#include <float.h>
7499
7500int
7501main ()
7502{
7503
7504 ;
7505 return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"; then :
7509 ac_cv_header_stdc=yes
7510else
7511 ac_cv_header_stdc=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514
7515if test $ac_cv_header_stdc = yes; then
7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519#include <string.h>
7520
7521_ACEOF
7522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523 $EGREP "memchr" >/dev/null 2>&1; then :
7524
7525else
7526 ac_cv_header_stdc=no
7527fi
7528rm -f conftest*
7529
7530fi
7531
7532if test $ac_cv_header_stdc = yes; then
7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h. */
7536#include <stdlib.h>
7537
7538_ACEOF
7539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540 $EGREP "free" >/dev/null 2>&1; then :
7541
7542else
7543 ac_cv_header_stdc=no
7544fi
7545rm -f conftest*
7546
7547fi
7548
7549if test $ac_cv_header_stdc = yes; then
7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551 if test "$cross_compiling" = yes; then :
7552 :
7553else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h. */
7556#include <ctype.h>
7557#include <stdlib.h>
7558#if ((' ' & 0x0FF) == 0x020)
7559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7561#else
7562# define ISLOWER(c) \
7563 (('a' <= (c) && (c) <= 'i') \
7564 || ('j' <= (c) && (c) <= 'r') \
7565 || ('s' <= (c) && (c) <= 'z'))
7566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7567#endif
7568
7569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7570int
7571main ()
7572{
7573 int i;
7574 for (i = 0; i < 256; i++)
7575 if (XOR (islower (i), ISLOWER (i))
7576 || toupper (i) != TOUPPER (i))
7577 return 2;
7578 return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_run "$LINENO"; then :
7582
7583else
7584 ac_cv_header_stdc=no
7585fi
7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
7588fi
7589
7590fi
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7593$as_echo "$ac_cv_header_stdc" >&6; }
7594if test $ac_cv_header_stdc = yes; then
7595
7596$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7597
7598fi
7599
7600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7602 inttypes.h stdint.h unistd.h
7603do :
7604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7606"
7607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7608 cat >>confdefs.h <<_ACEOF
7609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610_ACEOF
7611
7612fi
7613
7614done
7615
7616
7617for ac_header in dlfcn.h
7618do :
7619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7620"
7621if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7622 cat >>confdefs.h <<_ACEOF
7623#define HAVE_DLFCN_H 1
7624_ACEOF
7625
7626fi
7627
7628done
7629
7630
7631
7632
7633
7634# Set options
7635
7636
7637
7638 enable_dlopen=no
7639
7640
7641 enable_win32_dll=no
7642
7643
7644 # Check whether --enable-shared was given.
7645if test "${enable_shared+set}" = set; then :
7646 enableval=$enable_shared; p=${PACKAGE-default}
7647 case $enableval in
7648 yes) enable_shared=yes ;;
7649 no) enable_shared=no ;;
7650 *)
7651 enable_shared=no
7652 # Look at the argument we got. We use all the common list separators.
7653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654 for pkg in $enableval; do
7655 IFS="$lt_save_ifs"
7656 if test "X$pkg" = "X$p"; then
7657 enable_shared=yes
7658 fi
7659 done
7660 IFS="$lt_save_ifs"
7661 ;;
7662 esac
7663else
7664 enable_shared=yes
7665fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # Check whether --enable-static was given.
7676if test "${enable_static+set}" = set; then :
7677 enableval=$enable_static; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_static=yes ;;
7680 no) enable_static=no ;;
7681 *)
7682 enable_static=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_static=yes
7689 fi
7690 done
7691 IFS="$lt_save_ifs"
7692 ;;
7693 esac
7694else
7695 enable_static=yes
7696fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707# Check whether --with-pic was given.
7708if test "${with_pic+set}" = set; then :
7709 withval=$with_pic; lt_p=${PACKAGE-default}
7710 case $withval in
7711 yes|no) pic_mode=$withval ;;
7712 *)
7713 pic_mode=default
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for lt_pkg in $withval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$lt_pkg" = "X$lt_p"; then
7719 pic_mode=yes
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 ;;
7724 esac
7725else
7726 pic_mode=default
7727fi
7728
7729
7730test -z "$pic_mode" && pic_mode=default
7731
7732
7733
7734
7735
7736
7737
7738 # Check whether --enable-fast-install was given.
7739if test "${enable_fast_install+set}" = set; then :
7740 enableval=$enable_fast_install; p=${PACKAGE-default}
7741 case $enableval in
7742 yes) enable_fast_install=yes ;;
7743 no) enable_fast_install=no ;;
7744 *)
7745 enable_fast_install=no
7746 # Look at the argument we got. We use all the common list separators.
7747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7748 for pkg in $enableval; do
7749 IFS="$lt_save_ifs"
7750 if test "X$pkg" = "X$p"; then
7751 enable_fast_install=yes
7752 fi
7753 done
7754 IFS="$lt_save_ifs"
7755 ;;
7756 esac
7757else
7758 enable_fast_install=yes
7759fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771# This can be used to rebuild libtool when needed
7772LIBTOOL_DEPS="$ltmain"
7773
7774# Always use our own libtool.
7775LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806test -z "$LN_S" && LN_S="ln -s"
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821if test -n "${ZSH_VERSION+set}" ; then
7822 setopt NO_GLOB_SUBST
7823fi
7824
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7826$as_echo_n "checking for objdir... " >&6; }
7827if ${lt_cv_objdir+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829else
7830 rm -f .libs 2>/dev/null
7831mkdir .libs 2>/dev/null
7832if test -d .libs; then
7833 lt_cv_objdir=.libs
7834else
7835 # MS-DOS does not allow filenames that begin with a dot.
7836 lt_cv_objdir=_libs
7837fi
7838rmdir .libs 2>/dev/null
7839fi
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7841$as_echo "$lt_cv_objdir" >&6; }
7842objdir=$lt_cv_objdir
7843
7844
7845
7846
7847
7848cat >>confdefs.h <<_ACEOF
7849#define LT_OBJDIR "$lt_cv_objdir/"
7850_ACEOF
7851
7852
7853
7854
7855case $host_os in
7856aix3*)
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7861 COLLECT_NAMES=
7862 export COLLECT_NAMES
7863 fi
7864 ;;
7865esac
7866
7867# Global variables:
7868ofile=libtool
7869can_build_shared=yes
7870
7871# All known linkers require a `.a' archive for static linking (except MSVC,
7872# which needs '.lib').
7873libext=a
7874
7875with_gnu_ld="$lt_cv_prog_gnu_ld"
7876
7877old_CC="$CC"
7878old_CFLAGS="$CFLAGS"
7879
7880# Set sane defaults for various variables
7881test -z "$CC" && CC=cc
7882test -z "$LTCC" && LTCC=$CC
7883test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7884test -z "$LD" && LD=ld
7885test -z "$ac_objext" && ac_objext=o
7886
7887for cc_temp in $compiler""; do
7888 case $cc_temp in
7889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7891 \-*) ;;
7892 *) break;;
7893 esac
7894done
7895cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7896
7897
7898# Only perform the check for file, if the check method requires it
7899test -z "$MAGIC_CMD" && MAGIC_CMD=file
7900case $deplibs_check_method in
7901file_magic*)
7902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7904$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7905if ${lt_cv_path_MAGIC_CMD+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907else
7908 case $MAGIC_CMD in
7909[\\/*] | ?:[\\/]*)
7910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7911 ;;
7912*)
7913 lt_save_MAGIC_CMD="$MAGIC_CMD"
7914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7916 for ac_dir in $ac_dummy; do
7917 IFS="$lt_save_ifs"
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/${ac_tool_prefix}file; then
7920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7921 if test -n "$file_magic_test_file"; then
7922 case $deplibs_check_method in
7923 "file_magic "*)
7924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7927 $EGREP "$file_magic_regex" > /dev/null; then
7928 :
7929 else
7930 cat <<_LT_EOF 1>&2
7931
7932*** Warning: the command libtool uses to detect shared libraries,
7933*** $file_magic_cmd, produces output that libtool cannot recognize.
7934*** The result is that libtool may fail to recognize shared libraries
7935*** as such. This will affect the creation of libtool libraries that
7936*** depend on shared libraries, but programs linked with such libtool
7937*** libraries will work regardless of this problem. Nevertheless, you
7938*** may want to report the problem to your system manager and/or to
7939*** bug-libtool@gnu.org
7940
7941_LT_EOF
7942 fi ;;
7943 esac
7944 fi
7945 break
7946 fi
7947 done
7948 IFS="$lt_save_ifs"
7949 MAGIC_CMD="$lt_save_MAGIC_CMD"
7950 ;;
7951esac
7952fi
7953
7954MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955if test -n "$MAGIC_CMD"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7957$as_echo "$MAGIC_CMD" >&6; }
7958else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
7961fi
7962
7963
7964
7965
7966
7967if test -z "$lt_cv_path_MAGIC_CMD"; then
7968 if test -n "$ac_tool_prefix"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7970$as_echo_n "checking for file... " >&6; }
7971if ${lt_cv_path_MAGIC_CMD+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973else
7974 case $MAGIC_CMD in
7975[\\/*] | ?:[\\/]*)
7976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7977 ;;
7978*)
7979 lt_save_MAGIC_CMD="$MAGIC_CMD"
7980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7982 for ac_dir in $ac_dummy; do
7983 IFS="$lt_save_ifs"
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/file; then
7986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7987 if test -n "$file_magic_test_file"; then
7988 case $deplibs_check_method in
7989 "file_magic "*)
7990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7993 $EGREP "$file_magic_regex" > /dev/null; then
7994 :
7995 else
7996 cat <<_LT_EOF 1>&2
7997
7998*** Warning: the command libtool uses to detect shared libraries,
7999*** $file_magic_cmd, produces output that libtool cannot recognize.
8000*** The result is that libtool may fail to recognize shared libraries
8001*** as such. This will affect the creation of libtool libraries that
8002*** depend on shared libraries, but programs linked with such libtool
8003*** libraries will work regardless of this problem. Nevertheless, you
8004*** may want to report the problem to your system manager and/or to
8005*** bug-libtool@gnu.org
8006
8007_LT_EOF
8008 fi ;;
8009 esac
8010 fi
8011 break
8012 fi
8013 done
8014 IFS="$lt_save_ifs"
8015 MAGIC_CMD="$lt_save_MAGIC_CMD"
8016 ;;
8017esac
8018fi
8019
8020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021if test -n "$MAGIC_CMD"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8023$as_echo "$MAGIC_CMD" >&6; }
8024else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029
8030 else
8031 MAGIC_CMD=:
8032 fi
8033fi
8034
8035 fi
8036 ;;
8037esac
8038
8039# Use C for the default configuration in the libtool script
8040
8041lt_save_CC="$CC"
8042ac_ext=c
8043ac_cpp='$CPP $CPPFLAGS'
8044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048
8049# Source file extension for C test sources.
8050ac_ext=c
8051
8052# Object file extension for compiled C test sources.
8053objext=o
8054objext=$objext
8055
8056# Code to be used in simple compile tests
8057lt_simple_compile_test_code="int some_variable = 0;"
8058
8059# Code to be used in simple link tests
8060lt_simple_link_test_code='int main(){return(0);}'
8061
8062
8063
8064
8065
8066
8067
8068# If no C compiler was specified, use CC.
8069LTCC=${LTCC-"$CC"}
8070
8071# If no C compiler flags were specified, use CFLAGS.
8072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8073
8074# Allow CC to be a program name with arguments.
8075compiler=$CC
8076
8077# Save the default compiler, since it gets overwritten when the other
8078# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8079compiler_DEFAULT=$CC
8080
8081# save warnings/boilerplate of simple test code
8082ac_outfile=conftest.$ac_objext
8083echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8085_lt_compiler_boilerplate=`cat conftest.err`
8086$RM conftest*
8087
8088ac_outfile=conftest.$ac_objext
8089echo "$lt_simple_link_test_code" >conftest.$ac_ext
8090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091_lt_linker_boilerplate=`cat conftest.err`
8092$RM -r conftest*
8093
8094
8095## CAVEAT EMPTOR:
8096## There is no encapsulation within the following macros, do not change
8097## the running order or otherwise move them around unless you know exactly
8098## what you are doing...
8099if test -n "$compiler"; then
8100
8101lt_prog_compiler_no_builtin_flag=
8102
8103if test "$GCC" = yes; then
8104 case $cc_basename in
8105 nvcc*)
8106 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8107 *)
8108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8109 esac
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8113if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115else
8116 lt_cv_prog_compiler_rtti_exceptions=no
8117 ac_outfile=conftest.$ac_objext
8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8119 lt_compiler_flag="-fno-rtti -fno-exceptions"
8120 # Insert the option either (1) after the last *FLAGS variable, or
8121 # (2) before a word containing "conftest.", or (3) at the end.
8122 # Note that $ac_compile itself does not contain backslashes and begins
8123 # with a dollar sign (not a hyphen), so the echo should work correctly.
8124 # The option is referenced via a variable to avoid confusing sed.
8125 lt_compile=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
8129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8130 (eval "$lt_compile" 2>conftest.err)
8131 ac_status=$?
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 if (exit $ac_status) && test -s "$ac_outfile"; then
8135 # The compiler can only warn and ignore the option if not recognized
8136 # So say no if there are warnings other than the usual output.
8137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140 lt_cv_prog_compiler_rtti_exceptions=yes
8141 fi
8142 fi
8143 $RM conftest*
8144
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8148
8149if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8151else
8152 :
8153fi
8154
8155fi
8156
8157
8158
8159
8160
8161
8162 lt_prog_compiler_wl=
8163lt_prog_compiler_pic=
8164lt_prog_compiler_static=
8165
8166
8167 if test "$GCC" = yes; then
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_static='-static'
8170
8171 case $host_os in
8172 aix*)
8173 # All AIX code is PIC.
8174 if test "$host_cpu" = ia64; then
8175 # AIX 5 now supports IA64 processor
8176 lt_prog_compiler_static='-Bstatic'
8177 fi
8178 ;;
8179
8180 amigaos*)
8181 case $host_cpu in
8182 powerpc)
8183 # see comment about AmigaOS4 .so support
8184 lt_prog_compiler_pic='-fPIC'
8185 ;;
8186 m68k)
8187 # FIXME: we need at least 68020 code to build shared libraries, but
8188 # adding the `-m68020' flag to GCC prevents building anything better,
8189 # like `-m68040'.
8190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8191 ;;
8192 esac
8193 ;;
8194
8195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8196 # PIC is the default for these OSes.
8197 ;;
8198
8199 mingw* | cygwin* | pw32* | os2* | cegcc*)
8200 # This hack is so that the source file can tell whether it is being
8201 # built for inclusion in a dll (and should export symbols for example).
8202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8203 # (--disable-auto-import) libraries
8204 lt_prog_compiler_pic='-DDLL_EXPORT'
8205 ;;
8206
8207 darwin* | rhapsody*)
8208 # PIC is the default on this platform
8209 # Common symbols not allowed in MH_DYLIB files
8210 lt_prog_compiler_pic='-fno-common'
8211 ;;
8212
8213 haiku*)
8214 # PIC is the default for Haiku.
8215 # The "-static" flag exists, but is broken.
8216 lt_prog_compiler_static=
8217 ;;
8218
8219 hpux*)
8220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8222 # sets the default TLS model and affects inlining.
8223 case $host_cpu in
8224 hppa*64*)
8225 # +Z the default
8226 ;;
8227 *)
8228 lt_prog_compiler_pic='-fPIC'
8229 ;;
8230 esac
8231 ;;
8232
8233 interix[3-9]*)
8234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8235 # Instead, we relocate shared libraries at runtime.
8236 ;;
8237
8238 msdosdjgpp*)
8239 # Just because we use GCC doesn't mean we suddenly get shared libraries
8240 # on systems that don't support them.
8241 lt_prog_compiler_can_build_shared=no
8242 enable_shared=no
8243 ;;
8244
8245 *nto* | *qnx*)
8246 # QNX uses GNU C++, but need to define -shared option too, otherwise
8247 # it will coredump.
8248 lt_prog_compiler_pic='-fPIC -shared'
8249 ;;
8250
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 lt_prog_compiler_pic=-Kconform_pic
8254 fi
8255 ;;
8256
8257 *)
8258 lt_prog_compiler_pic='-fPIC'
8259 ;;
8260 esac
8261
8262 case $cc_basename in
8263 nvcc*) # Cuda Compiler Driver 2.2
8264 lt_prog_compiler_wl='-Xlinker '
8265 if test -n "$lt_prog_compiler_pic"; then
8266 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8267 fi
8268 ;;
8269 esac
8270 else
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8272 case $host_os in
8273 aix*)
8274 lt_prog_compiler_wl='-Wl,'
8275 if test "$host_cpu" = ia64; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static='-Bstatic'
8278 else
8279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 fi
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 hpux9* | hpux10* | hpux11*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292 # not for PA HP-UX.
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='+Z'
8299 ;;
8300 esac
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 ;;
8304
8305 irix5* | irix6* | nonstopux*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8314 ecc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-static'
8318 ;;
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8321 icc* | ifort*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 # Lahey Fortran 8.1.
8327 lf95*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='--shared'
8330 lt_prog_compiler_static='--static'
8331 ;;
8332 nagfor*)
8333 # NAG Fortran compiler
8334 lt_prog_compiler_wl='-Wl,-Wl,,'
8335 lt_prog_compiler_pic='-PIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8339 # Portland Group compilers (*not* the Pentium gcc compiler,
8340 # which looks to be a dead project)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fpic'
8343 lt_prog_compiler_static='-Bstatic'
8344 ;;
8345 ccc*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All Alpha code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
8350 xl* | bgxl* | bgf* | mpixl*)
8351 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-qpic'
8354 lt_prog_compiler_static='-qstaticlink'
8355 ;;
8356 *)
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8359 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl=''
8363 ;;
8364 *Sun\ F* | *Sun*Fortran*)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl='-Qoption ld '
8368 ;;
8369 *Sun\ C*)
8370 # Sun C 5.9
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 lt_prog_compiler_wl='-Wl,'
8374 ;;
8375 *Intel*\ [CF]*Compiler*)
8376 lt_prog_compiler_wl='-Wl,'
8377 lt_prog_compiler_pic='-fPIC'
8378 lt_prog_compiler_static='-static'
8379 ;;
8380 *Portland\ Group*)
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-fpic'
8383 lt_prog_compiler_static='-Bstatic'
8384 ;;
8385 esac
8386 ;;
8387 esac
8388 ;;
8389
8390 newsos6)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 *nto* | *qnx*)
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8397 # it will coredump.
8398 lt_prog_compiler_pic='-fPIC -shared'
8399 ;;
8400
8401 osf3* | osf4* | osf5*)
8402 lt_prog_compiler_wl='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static='-non_shared'
8405 ;;
8406
8407 rdos*)
8408 lt_prog_compiler_static='-non_shared'
8409 ;;
8410
8411 solaris*)
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 case $cc_basename in
8415 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8416 lt_prog_compiler_wl='-Qoption ld ';;
8417 *)
8418 lt_prog_compiler_wl='-Wl,';;
8419 esac
8420 ;;
8421
8422 sunos4*)
8423 lt_prog_compiler_wl='-Qoption ld '
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427
8428 sysv4 | sysv4.2uw2* | sysv4.3*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433
8434 sysv4*MP*)
8435 if test -d /usr/nec ;then
8436 lt_prog_compiler_pic='-Kconform_pic'
8437 lt_prog_compiler_static='-Bstatic'
8438 fi
8439 ;;
8440
8441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 ;;
8446
8447 unicos*)
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_can_build_shared=no
8450 ;;
8451
8452 uts4*)
8453 lt_prog_compiler_pic='-pic'
8454 lt_prog_compiler_static='-Bstatic'
8455 ;;
8456
8457 *)
8458 lt_prog_compiler_can_build_shared=no
8459 ;;
8460 esac
8461 fi
8462
8463case $host_os in
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8465 *djgpp*)
8466 lt_prog_compiler_pic=
8467 ;;
8468 *)
8469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8470 ;;
8471esac
8472
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8474$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8475if ${lt_cv_prog_compiler_pic+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477else
8478 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8481$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8482lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8483
8484#
8485# Check to make sure the PIC flag actually works.
8486#
8487if test -n "$lt_prog_compiler_pic"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8490if ${lt_cv_prog_compiler_pic_works+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492else
8493 lt_cv_prog_compiler_pic_works=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_pic_works=yes
8518 fi
8519 fi
8520 $RM conftest*
8521
8522fi
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8525
8526if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8527 case $lt_prog_compiler_pic in
8528 "" | " "*) ;;
8529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8530 esac
8531else
8532 lt_prog_compiler_pic=
8533 lt_prog_compiler_can_build_shared=no
8534fi
8535
8536fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548#
8549# Check to make sure the static flag actually works.
8550#
8551wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8553$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8554if ${lt_cv_prog_compiler_static_works+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556else
8557 lt_cv_prog_compiler_static_works=no
8558 save_LDFLAGS="$LDFLAGS"
8559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8562 # The linker can only warn and ignore the option if not recognized
8563 # So say no if there are warnings
8564 if test -s conftest.err; then
8565 # Append any errors to the config.log.
8566 cat conftest.err 1>&5
8567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_static_works=yes
8571 fi
8572 else
8573 lt_cv_prog_compiler_static_works=yes
8574 fi
8575 fi
8576 $RM -r conftest*
8577 LDFLAGS="$save_LDFLAGS"
8578
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8581$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8582
8583if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8584 :
8585else
8586 lt_prog_compiler_static=
8587fi
8588
8589
8590
8591
8592
8593
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8596$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8597if ${lt_cv_prog_compiler_c_o+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600 lt_cv_prog_compiler_c_o=no
8601 $RM -r conftest 2>/dev/null
8602 mkdir conftest
8603 cd conftest
8604 mkdir out
8605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606
8607 lt_compiler_flag="-o out/conftest2.$ac_objext"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 lt_compile=`echo "$ac_compile" | $SED \
8613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8615 -e 's:$: $lt_compiler_flag:'`
8616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8617 (eval "$lt_compile" 2>out/conftest.err)
8618 ac_status=$?
8619 cat out/conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8622 then
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings
8625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8628 lt_cv_prog_compiler_c_o=yes
8629 fi
8630 fi
8631 chmod u+w . 2>&5
8632 $RM conftest*
8633 # SGI C++ compiler will create directory out/ii_files/ for
8634 # template instantiation
8635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8636 $RM out/* && rmdir out
8637 cd ..
8638 $RM -r conftest
8639 $RM conftest*
8640
8641fi
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8643$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8644
8645
8646
8647
8648
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8652if ${lt_cv_prog_compiler_c_o+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 lt_cv_prog_compiler_c_o=no
8656 $RM -r conftest 2>/dev/null
8657 mkdir conftest
8658 cd conftest
8659 mkdir out
8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8661
8662 lt_compiler_flag="-o out/conftest2.$ac_objext"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 lt_compile=`echo "$ac_compile" | $SED \
8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670 -e 's:$: $lt_compiler_flag:'`
8671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8672 (eval "$lt_compile" 2>out/conftest.err)
8673 ac_status=$?
8674 cat out/conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8677 then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_c_o=yes
8684 fi
8685 fi
8686 chmod u+w . 2>&5
8687 $RM conftest*
8688 # SGI C++ compiler will create directory out/ii_files/ for
8689 # template instantiation
8690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8691 $RM out/* && rmdir out
8692 cd ..
8693 $RM -r conftest
8694 $RM conftest*
8695
8696fi
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8699
8700
8701
8702
8703hard_links="nottested"
8704if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8705 # do not overwrite the value of need_locks provided by the user
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8707$as_echo_n "checking if we can lock with hard links... " >&6; }
8708 hard_links=yes
8709 $RM conftest*
8710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8711 touch conftest.a
8712 ln conftest.a conftest.b 2>&5 || hard_links=no
8713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8715$as_echo "$hard_links" >&6; }
8716 if test "$hard_links" = no; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8718$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8719 need_locks=warn
8720 fi
8721else
8722 need_locks=no
8723fi
8724
8725
8726
8727
8728
8729
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8731$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8732
8733 runpath_var=
8734 allow_undefined_flag=
8735 always_export_symbols=no
8736 archive_cmds=
8737 archive_expsym_cmds=
8738 compiler_needs_object=no
8739 enable_shared_with_static_runtimes=no
8740 export_dynamic_flag_spec=
8741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8742 hardcode_automatic=no
8743 hardcode_direct=no
8744 hardcode_direct_absolute=no
8745 hardcode_libdir_flag_spec=
8746 hardcode_libdir_separator=
8747 hardcode_minus_L=no
8748 hardcode_shlibpath_var=unsupported
8749 inherit_rpath=no
8750 link_all_deplibs=unknown
8751 module_cmds=
8752 module_expsym_cmds=
8753 old_archive_from_new_cmds=
8754 old_archive_from_expsyms_cmds=
8755 thread_safe_flag_spec=
8756 whole_archive_flag_spec=
8757 # include_expsyms should be a list of space-separated symbols to be *always*
8758 # included in the symbol list
8759 include_expsyms=
8760 # exclude_expsyms can be an extended regexp of symbols to exclude
8761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8763 # as well as any symbol that contains `d'.
8764 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8766 # platforms (ab)use it in PIC code, but their linkers get confused if
8767 # the symbol is explicitly referenced. Since portable code cannot
8768 # rely on this symbol name, it's probably fine to never include it in
8769 # preloaded symbol tables.
8770 # Exclude shared library initialization/finalization symbols.
8771 extract_expsyms_cmds=
8772
8773 case $host_os in
8774 cygwin* | mingw* | pw32* | cegcc*)
8775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8776 # When not using gcc, we currently assume that we are using
8777 # Microsoft Visual C++.
8778 if test "$GCC" != yes; then
8779 with_gnu_ld=no
8780 fi
8781 ;;
8782 interix*)
8783 # we just hope/assume this is gcc and not c89 (= MSVC++)
8784 with_gnu_ld=yes
8785 ;;
8786 openbsd*)
8787 with_gnu_ld=no
8788 ;;
8789 linux* | k*bsd*-gnu | gnu*)
8790 link_all_deplibs=no
8791 ;;
8792 esac
8793
8794 ld_shlibs=yes
8795
8796 # On some targets, GNU ld is compatible enough with the native linker
8797 # that we're better off using the native interface for both.
8798 lt_use_gnu_ld_interface=no
8799 if test "$with_gnu_ld" = yes; then
8800 case $host_os in
8801 aix*)
8802 # The AIX port of GNU ld has always aspired to compatibility
8803 # with the native linker. However, as the warning in the GNU ld
8804 # block says, versions before 2.19.5* couldn't really create working
8805 # shared libraries, regardless of the interface used.
8806 case `$LD -v 2>&1` in
8807 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8808 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8809 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8810 *)
8811 lt_use_gnu_ld_interface=yes
8812 ;;
8813 esac
8814 ;;
8815 *)
8816 lt_use_gnu_ld_interface=yes
8817 ;;
8818 esac
8819 fi
8820
8821 if test "$lt_use_gnu_ld_interface" = yes; then
8822 # If archive_cmds runs LD, not CC, wlarc should be empty
8823 wlarc='${wl}'
8824
8825 # Set some defaults for GNU ld with shared library support. These
8826 # are reset later if shared libraries are not supported. Putting them
8827 # here allows them to be overridden if necessary.
8828 runpath_var=LD_RUN_PATH
8829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830 export_dynamic_flag_spec='${wl}--export-dynamic'
8831 # ancient GNU ld didn't support --whole-archive et. al.
8832 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8834 else
8835 whole_archive_flag_spec=
8836 fi
8837 supports_anon_versioning=no
8838 case `$LD -v 2>&1` in
8839 *GNU\ gold*) supports_anon_versioning=yes ;;
8840 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8841 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8842 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8843 *\ 2.11.*) ;; # other 2.11 versions
8844 *) supports_anon_versioning=yes ;;
8845 esac
8846
8847 # See if GNU ld supports shared libraries.
8848 case $host_os in
8849 aix[3-9]*)
8850 # On AIX/PPC, the GNU linker is very broken
8851 if test "$host_cpu" != ia64; then
8852 ld_shlibs=no
8853 cat <<_LT_EOF 1>&2
8854
8855*** Warning: the GNU linker, at least up to release 2.19, is reported
8856*** to be unable to reliably create shared libraries on AIX.
8857*** Therefore, libtool is disabling shared libraries support. If you
8858*** really care for shared libraries, you may want to install binutils
8859*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8860*** You will then need to restart the configuration process.
8861
8862_LT_EOF
8863 fi
8864 ;;
8865
8866 amigaos*)
8867 case $host_cpu in
8868 powerpc)
8869 # see comment about AmigaOS4 .so support
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds=''
8872 ;;
8873 m68k)
8874 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)'
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_minus_L=yes
8877 ;;
8878 esac
8879 ;;
8880
8881 beos*)
8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8883 allow_undefined_flag=unsupported
8884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885 # support --undefined. This deserves some investigation. FIXME
8886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 else
8888 ld_shlibs=no
8889 fi
8890 ;;
8891
8892 cygwin* | mingw* | pw32* | cegcc*)
8893 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894 # as there is no search path for DLLs.
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 export_dynamic_flag_spec='${wl}--export-all-symbols'
8897 allow_undefined_flag=unsupported
8898 always_export_symbols=no
8899 enable_shared_with_static_runtimes=yes
8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8901 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8902
8903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905 # If the export-symbols file already is a .def file (1st line
8906 # is EXPORTS), use it as is; otherwise, prepend...
8907 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8908 cp $export_symbols $output_objdir/$soname.def;
8909 else
8910 echo EXPORTS > $output_objdir/$soname.def;
8911 cat $export_symbols >> $output_objdir/$soname.def;
8912 fi~
8913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8914 else
8915 ld_shlibs=no
8916 fi
8917 ;;
8918
8919 haiku*)
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 link_all_deplibs=yes
8922 ;;
8923
8924 interix[3-9]*)
8925 hardcode_direct=no
8926 hardcode_shlibpath_var=no
8927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8928 export_dynamic_flag_spec='${wl}-E'
8929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8930 # Instead, shared libraries are loaded at an image base (0x10000000 by
8931 # default) and relocated if they conflict, which is a slow very memory
8932 # consuming and fragmenting process. To avoid this, we pick a random,
8933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8936 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'
8937 ;;
8938
8939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8940 tmp_diet=no
8941 if test "$host_os" = linux-dietlibc; then
8942 case $cc_basename in
8943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8944 esac
8945 fi
8946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8947 && test "$tmp_diet" = no
8948 then
8949 tmp_addflag=' $pic_flag'
8950 tmp_sharedflag='-shared'
8951 case $cc_basename,$host_cpu in
8952 pgcc*) # Portland Group C compiler
8953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8954 tmp_addflag=' $pic_flag'
8955 ;;
8956 pgf77* | pgf90* | pgf95* | pgfortran*)
8957 # Portland Group f77 and f90 compilers
8958 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8959 tmp_addflag=' $pic_flag -Mnomain' ;;
8960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8961 tmp_addflag=' -i_dynamic' ;;
8962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8963 tmp_addflag=' -i_dynamic -nofor_main' ;;
8964 ifc* | ifort*) # Intel Fortran compiler
8965 tmp_addflag=' -nofor_main' ;;
8966 lf95*) # Lahey Fortran 8.1
8967 whole_archive_flag_spec=
8968 tmp_sharedflag='--shared' ;;
8969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8970 tmp_sharedflag='-qmkshrobj'
8971 tmp_addflag= ;;
8972 nvcc*) # Cuda Compiler Driver 2.2
8973 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8974 compiler_needs_object=yes
8975 ;;
8976 esac
8977 case `$CC -V 2>&1 | sed 5q` in
8978 *Sun\ C*) # Sun C 5.9
8979 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8980 compiler_needs_object=yes
8981 tmp_sharedflag='-G' ;;
8982 *Sun\ F*) # Sun Fortran 8.3
8983 tmp_sharedflag='-G' ;;
8984 esac
8985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986
8987 if test "x$supports_anon_versioning" = xyes; then
8988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8990 echo "local: *; };" >> $output_objdir/$libname.ver~
8991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8992 fi
8993
8994 case $cc_basename in
8995 xlf* | bgf* | bgxlf* | mpixlf*)
8996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9000 if test "x$supports_anon_versioning" = xyes; then
9001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
9004 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9005 fi
9006 ;;
9007 esac
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
9012
9013 netbsd* | netbsdelf*-gnu)
9014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9016 wlarc=
9017 else
9018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 fi
9021 ;;
9022
9023 solaris*)
9024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9025 ld_shlibs=no
9026 cat <<_LT_EOF 1>&2
9027
9028*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9029*** create shared libraries on Solaris systems. Therefore, libtool
9030*** is disabling shared libraries support. We urge you to upgrade GNU
9031*** binutils to release 2.9.1 or newer. Another option is to modify
9032*** your PATH or compiler configuration so that the native linker is
9033*** used, and then restart.
9034
9035_LT_EOF
9036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 else
9040 ld_shlibs=no
9041 fi
9042 ;;
9043
9044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9045 case `$LD -v 2>&1` in
9046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9047 ld_shlibs=no
9048 cat <<_LT_EOF 1>&2
9049
9050*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9051*** reliably create shared libraries on SCO systems. Therefore, libtool
9052*** is disabling shared libraries support. We urge you to upgrade GNU
9053*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9054*** your PATH or compiler configuration so that the native linker is
9055*** used, and then restart.
9056
9057_LT_EOF
9058 ;;
9059 *)
9060 # For security reasons, it is highly recommended that you always
9061 # use absolute paths for naming shared libraries, and exclude the
9062 # DT_RUNPATH tag from executables and libraries. But doing so
9063 # requires that you compile everything twice, which is a pain.
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068 else
9069 ld_shlibs=no
9070 fi
9071 ;;
9072 esac
9073 ;;
9074
9075 sunos4*)
9076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9077 wlarc=
9078 hardcode_direct=yes
9079 hardcode_shlibpath_var=no
9080 ;;
9081
9082 *)
9083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9086 else
9087 ld_shlibs=no
9088 fi
9089 ;;
9090 esac
9091
9092 if test "$ld_shlibs" = no; then
9093 runpath_var=
9094 hardcode_libdir_flag_spec=
9095 export_dynamic_flag_spec=
9096 whole_archive_flag_spec=
9097 fi
9098 else
9099 # PORTME fill in a description of your system's linker (not GNU ld)
9100 case $host_os in
9101 aix3*)
9102 allow_undefined_flag=unsupported
9103 always_export_symbols=yes
9104 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'
9105 # Note: this linker hardcodes the directories in LIBPATH if there
9106 # are no directories specified by -L.
9107 hardcode_minus_L=yes
9108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9109 # Neither direct hardcoding nor static linking is supported with a
9110 # broken collect2.
9111 hardcode_direct=unsupported
9112 fi
9113 ;;
9114
9115 aix[4-9]*)
9116 if test "$host_cpu" = ia64; then
9117 # On IA64, the linker does run time linking by default, so we don't
9118 # have to do anything special.
9119 aix_use_runtimelinking=no
9120 exp_sym_flag='-Bexport'
9121 no_entry_flag=""
9122 else
9123 # If we're using GNU nm, then we don't want the "-C" option.
9124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9125 # Also, AIX nm treats weak defined symbols like other global
9126 # defined symbols, whereas GNU nm marks them as "W".
9127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9128 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9129 else
9130 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'
9131 fi
9132 aix_use_runtimelinking=no
9133
9134 # Test if we are trying to use run time linking or normal
9135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9136 # need to do runtime linking.
9137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9138 for ld_flag in $LDFLAGS; do
9139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9140 aix_use_runtimelinking=yes
9141 break
9142 fi
9143 done
9144 ;;
9145 esac
9146
9147 exp_sym_flag='-bexport'
9148 no_entry_flag='-bnoentry'
9149 fi
9150
9151 # When large executables or shared objects are built, AIX ld can
9152 # have problems creating the table of contents. If linking a library
9153 # or program results in "error TOC overflow" add -mminimal-toc to
9154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9156
9157 archive_cmds=''
9158 hardcode_direct=yes
9159 hardcode_direct_absolute=yes
9160 hardcode_libdir_separator=':'
9161 link_all_deplibs=yes
9162 file_list_spec='${wl}-f,'
9163
9164 if test "$GCC" = yes; then
9165 case $host_os in aix4.[012]|aix4.[012].*)
9166 # We only want to do this on AIX 4.2 and lower, the check
9167 # below for broken collect2 doesn't work under 4.3+
9168 collect2name=`${CC} -print-prog-name=collect2`
9169 if test -f "$collect2name" &&
9170 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9171 then
9172 # We have reworked collect2
9173 :
9174 else
9175 # We have old collect2
9176 hardcode_direct=unsupported
9177 # It fails to find uninstalled libraries when the uninstalled
9178 # path is not listed in the libpath. Setting hardcode_minus_L
9179 # to unsupported forces relinking
9180 hardcode_minus_L=yes
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_libdir_separator=
9183 fi
9184 ;;
9185 esac
9186 shared_flag='-shared'
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag="$shared_flag "'${wl}-G'
9189 fi
9190 link_all_deplibs=no
9191 else
9192 # not using gcc
9193 if test "$host_cpu" = ia64; then
9194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9195 # chokes on -Wl,-G. The following line is correct:
9196 shared_flag='-G'
9197 else
9198 if test "$aix_use_runtimelinking" = yes; then
9199 shared_flag='${wl}-G'
9200 else
9201 shared_flag='${wl}-bM:SRE'
9202 fi
9203 fi
9204 fi
9205
9206 export_dynamic_flag_spec='${wl}-bexpall'
9207 # It seems that -bexpall does not export symbols beginning with
9208 # underscore (_), so it is better to generate a list of symbols to export.
9209 always_export_symbols=yes
9210 if test "$aix_use_runtimelinking" = yes; then
9211 # Warning - without using the other runtime loading flags (-brtl),
9212 # -berok will link without error, but may produce a broken library.
9213 allow_undefined_flag='-berok'
9214 # Determine the default libpath from the value encoded in an
9215 # empty executable.
9216 if test "${lt_cv_aix_libpath+set}" = set; then
9217 aix_libpath=$lt_cv_aix_libpath
9218else
9219 if ${lt_cv_aix_libpath_+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221else
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h. */
9224
9225int
9226main ()
9227{
9228
9229 ;
9230 return 0;
9231}
9232_ACEOF
9233if ac_fn_c_try_link "$LINENO"; then :
9234
9235 lt_aix_libpath_sed='
9236 /Import File Strings/,/^$/ {
9237 /^0/ {
9238 s/^0 *\([^ ]*\) *$/\1/
9239 p
9240 }
9241 }'
9242 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$lt_cv_aix_libpath_"; then
9245 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 fi
9247fi
9248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 if test -z "$lt_cv_aix_libpath_"; then
9251 lt_cv_aix_libpath_="/usr/lib:/lib"
9252 fi
9253
9254fi
9255
9256 aix_libpath=$lt_cv_aix_libpath_
9257fi
9258
9259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9260 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9261 else
9262 if test "$host_cpu" = ia64; then
9263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9264 allow_undefined_flag="-z nodefs"
9265 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"
9266 else
9267 # Determine the default libpath from the value encoded in an
9268 # empty executable.
9269 if test "${lt_cv_aix_libpath+set}" = set; then
9270 aix_libpath=$lt_cv_aix_libpath
9271else
9272 if ${lt_cv_aix_libpath_+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274else
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h. */
9277
9278int
9279main ()
9280{
9281
9282 ;
9283 return 0;
9284}
9285_ACEOF
9286if ac_fn_c_try_link "$LINENO"; then :
9287
9288 lt_aix_libpath_sed='
9289 /Import File Strings/,/^$/ {
9290 /^0/ {
9291 s/^0 *\([^ ]*\) *$/\1/
9292 p
9293 }
9294 }'
9295 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296 # Check for a 64-bit object if we didn't find anything.
9297 if test -z "$lt_cv_aix_libpath_"; then
9298 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299 fi
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 if test -z "$lt_cv_aix_libpath_"; then
9304 lt_cv_aix_libpath_="/usr/lib:/lib"
9305 fi
9306
9307fi
9308
9309 aix_libpath=$lt_cv_aix_libpath_
9310fi
9311
9312 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313 # Warning - without using the other run time loading flags,
9314 # -berok will link without error, but may produce a broken library.
9315 no_undefined_flag=' ${wl}-bernotok'
9316 allow_undefined_flag=' ${wl}-berok'
9317 if test "$with_gnu_ld" = yes; then
9318 # We only use this code for GNU lds that support --whole-archive.
9319 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9320 else
9321 # Exported symbols can be pulled into shared objects from archives
9322 whole_archive_flag_spec='$convenience'
9323 fi
9324 archive_cmds_need_lc=yes
9325 # This is similar to how AIX traditionally builds its shared libraries.
9326 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'
9327 fi
9328 fi
9329 ;;
9330
9331 amigaos*)
9332 case $host_cpu in
9333 powerpc)
9334 # see comment about AmigaOS4 .so support
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds=''
9337 ;;
9338 m68k)
9339 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)'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_minus_L=yes
9342 ;;
9343 esac
9344 ;;
9345
9346 bsdi[45]*)
9347 export_dynamic_flag_spec=-rdynamic
9348 ;;
9349
9350 cygwin* | mingw* | pw32* | cegcc*)
9351 # When not using gcc, we currently assume that we are using
9352 # Microsoft Visual C++.
9353 # hardcode_libdir_flag_spec is actually meaningless, as there is
9354 # no search path for DLLs.
9355 case $cc_basename in
9356 cl*)
9357 # Native MSVC
9358 hardcode_libdir_flag_spec=' '
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=yes
9361 file_list_spec='@'
9362 # Tell ltmain to make .lib files, not .a files.
9363 libext=lib
9364 # Tell ltmain to make .dll files, not .so files.
9365 shrext_cmds=".dll"
9366 # FIXME: Setting linknames here is a bad hack.
9367 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9369 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9370 else
9371 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9372 fi~
9373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9374 linknames='
9375 # The linker will not automatically build a static lib if we build a DLL.
9376 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9377 enable_shared_with_static_runtimes=yes
9378 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9380 # Don't use ranlib
9381 old_postinstall_cmds='chmod 644 $oldlib'
9382 postlink_cmds='lt_outputfile="@OUTPUT@"~
9383 lt_tool_outputfile="@TOOL_OUTPUT@"~
9384 case $lt_outputfile in
9385 *.exe|*.EXE) ;;
9386 *)
9387 lt_outputfile="$lt_outputfile.exe"
9388 lt_tool_outputfile="$lt_tool_outputfile.exe"
9389 ;;
9390 esac~
9391 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9393 $RM "$lt_outputfile.manifest";
9394 fi'
9395 ;;
9396 *)
9397 # Assume MSVC wrapper
9398 hardcode_libdir_flag_spec=' '
9399 allow_undefined_flag=unsupported
9400 # Tell ltmain to make .lib files, not .a files.
9401 libext=lib
9402 # Tell ltmain to make .dll files, not .so files.
9403 shrext_cmds=".dll"
9404 # FIXME: Setting linknames here is a bad hack.
9405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406 # The linker will automatically build a .lib file if we build a DLL.
9407 old_archive_from_new_cmds='true'
9408 # FIXME: Should let the user specify the lib program.
9409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410 enable_shared_with_static_runtimes=yes
9411 ;;
9412 esac
9413 ;;
9414
9415 darwin* | rhapsody*)
9416
9417
9418 archive_cmds_need_lc=no
9419 hardcode_direct=no
9420 hardcode_automatic=yes
9421 hardcode_shlibpath_var=unsupported
9422 if test "$lt_cv_ld_force_load" = "yes"; then
9423 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9424
9425 else
9426 whole_archive_flag_spec=''
9427 fi
9428 link_all_deplibs=yes
9429 allow_undefined_flag="$_lt_dar_allow_undefined"
9430 case $cc_basename in
9431 ifort*) _lt_dar_can_shared=yes ;;
9432 *) _lt_dar_can_shared=$GCC ;;
9433 esac
9434 if test "$_lt_dar_can_shared" = "yes"; then
9435 output_verbose_link_cmd=func_echo_all
9436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9438 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}"
9439 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}"
9440
9441 else
9442 ld_shlibs=no
9443 fi
9444
9445 ;;
9446
9447 dgux*)
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_shlibpath_var=no
9451 ;;
9452
9453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9454 # support. Future versions do this automatically, but an explicit c++rt0.o
9455 # does not break anything, and helps significantly (at the cost of a little
9456 # extra space).
9457 freebsd2.2*)
9458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9459 hardcode_libdir_flag_spec='-R$libdir'
9460 hardcode_direct=yes
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9465 freebsd2.*)
9466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_direct=yes
9468 hardcode_minus_L=yes
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9473 freebsd* | dragonfly*)
9474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9475 hardcode_libdir_flag_spec='-R$libdir'
9476 hardcode_direct=yes
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 hpux9*)
9481 if test "$GCC" = yes; then
9482 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9483 else
9484 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'
9485 fi
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488 hardcode_direct=yes
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 export_dynamic_flag_spec='${wl}-E'
9494 ;;
9495
9496 hpux10*)
9497 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9498 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9499 else
9500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9501 fi
9502 if test "$with_gnu_ld" = no; then
9503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 hardcode_direct=yes
9506 hardcode_direct_absolute=yes
9507 export_dynamic_flag_spec='${wl}-E'
9508 # hardcode_minus_L: Not really in the search PATH,
9509 # but as the default location of the library.
9510 hardcode_minus_L=yes
9511 fi
9512 ;;
9513
9514 hpux11*)
9515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9516 case $host_cpu in
9517 hppa*64*)
9518 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 ;;
9520 ia64*)
9521 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9522 ;;
9523 *)
9524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9525 ;;
9526 esac
9527 else
9528 case $host_cpu in
9529 hppa*64*)
9530 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 ;;
9532 ia64*)
9533 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9534 ;;
9535 *)
9536
9537 # Older versions of the 11.00 compiler do not understand -b yet
9538 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9540$as_echo_n "checking if $CC understands -b... " >&6; }
9541if ${lt_cv_prog_compiler__b+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543else
9544 lt_cv_prog_compiler__b=no
9545 save_LDFLAGS="$LDFLAGS"
9546 LDFLAGS="$LDFLAGS -b"
9547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9549 # The linker can only warn and ignore the option if not recognized
9550 # So say no if there are warnings
9551 if test -s conftest.err; then
9552 # Append any errors to the config.log.
9553 cat conftest.err 1>&5
9554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9556 if diff conftest.exp conftest.er2 >/dev/null; then
9557 lt_cv_prog_compiler__b=yes
9558 fi
9559 else
9560 lt_cv_prog_compiler__b=yes
9561 fi
9562 fi
9563 $RM -r conftest*
9564 LDFLAGS="$save_LDFLAGS"
9565
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9568$as_echo "$lt_cv_prog_compiler__b" >&6; }
9569
9570if test x"$lt_cv_prog_compiler__b" = xyes; then
9571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9572else
9573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9574fi
9575
9576 ;;
9577 esac
9578 fi
9579 if test "$with_gnu_ld" = no; then
9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_separator=:
9582
9583 case $host_cpu in
9584 hppa*64*|ia64*)
9585 hardcode_direct=no
9586 hardcode_shlibpath_var=no
9587 ;;
9588 *)
9589 hardcode_direct=yes
9590 hardcode_direct_absolute=yes
9591 export_dynamic_flag_spec='${wl}-E'
9592
9593 # hardcode_minus_L: Not really in the search PATH,
9594 # but as the default location of the library.
9595 hardcode_minus_L=yes
9596 ;;
9597 esac
9598 fi
9599 ;;
9600
9601 irix5* | irix6* | nonstopux*)
9602 if test "$GCC" = yes; then
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9604 # Try to use the -exported_symbol ld option, if it does not
9605 # work, assume that -exports_file does not work either and
9606 # implicitly export all symbols.
9607 # This should be the same for all languages, so no per-tag cache variable.
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9609$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9610if ${lt_cv_irix_exported_symbol+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612else
9613 save_LDFLAGS="$LDFLAGS"
9614 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h. */
9617int foo (void) { return 0; }
9618_ACEOF
9619if ac_fn_c_try_link "$LINENO"; then :
9620 lt_cv_irix_exported_symbol=yes
9621else
9622 lt_cv_irix_exported_symbol=no
9623fi
9624rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 LDFLAGS="$save_LDFLAGS"
9627fi
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9629$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9630 if test "$lt_cv_irix_exported_symbol" = yes; then
9631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9632 fi
9633 else
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9636 fi
9637 archive_cmds_need_lc='no'
9638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639 hardcode_libdir_separator=:
9640 inherit_rpath=yes
9641 link_all_deplibs=yes
9642 ;;
9643
9644 netbsd* | netbsdelf*-gnu)
9645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9647 else
9648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9649 fi
9650 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_direct=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 newsos6)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659 hardcode_libdir_separator=:
9660 hardcode_shlibpath_var=no
9661 ;;
9662
9663 *nto* | *qnx*)
9664 ;;
9665
9666 openbsd*)
9667 if test -f /usr/libexec/ld.so; then
9668 hardcode_direct=yes
9669 hardcode_shlibpath_var=no
9670 hardcode_direct_absolute=yes
9671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9675 export_dynamic_flag_spec='${wl}-E'
9676 else
9677 case $host_os in
9678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_libdir_flag_spec='-R$libdir'
9681 ;;
9682 *)
9683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9685 ;;
9686 esac
9687 fi
9688 else
9689 ld_shlibs=no
9690 fi
9691 ;;
9692
9693 os2*)
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9696 allow_undefined_flag=unsupported
9697 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'
9698 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9699 ;;
9700
9701 osf3*)
9702 if test "$GCC" = yes; then
9703 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9704 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9705 else
9706 allow_undefined_flag=' -expect_unresolved \*'
9707 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9708 fi
9709 archive_cmds_need_lc='no'
9710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711 hardcode_libdir_separator=:
9712 ;;
9713
9714 osf4* | osf5*) # as osf3* with the addition of -msym flag
9715 if test "$GCC" = yes; then
9716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9717 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719 else
9720 allow_undefined_flag=' -expect_unresolved \*'
9721 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9722 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~
9723 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9724
9725 # Both c and cxx compiler support -rpath directly
9726 hardcode_libdir_flag_spec='-rpath $libdir'
9727 fi
9728 archive_cmds_need_lc='no'
9729 hardcode_libdir_separator=:
9730 ;;
9731
9732 solaris*)
9733 no_undefined_flag=' -z defs'
9734 if test "$GCC" = yes; then
9735 wlarc='${wl}'
9736 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9739 else
9740 case `$CC -V 2>&1` in
9741 *"Compilers 5.0"*)
9742 wlarc=''
9743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9746 ;;
9747 *)
9748 wlarc='${wl}'
9749 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9752 ;;
9753 esac
9754 fi
9755 hardcode_libdir_flag_spec='-R$libdir'
9756 hardcode_shlibpath_var=no
9757 case $host_os in
9758 solaris2.[0-5] | solaris2.[0-5].*) ;;
9759 *)
9760 # The compiler driver will combine and reorder linker options,
9761 # but understands `-z linker_flag'. GCC discards it without `$wl',
9762 # but is careful enough not to reorder.
9763 # Supported since Solaris 2.6 (maybe 2.5.1?)
9764 if test "$GCC" = yes; then
9765 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9766 else
9767 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9768 fi
9769 ;;
9770 esac
9771 link_all_deplibs=yes
9772 ;;
9773
9774 sunos4*)
9775 if test "x$host_vendor" = xsequent; then
9776 # Use $CC to link under sequent, because it throws in some extra .o
9777 # files that make .init and .fini sections work.
9778 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9781 fi
9782 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_direct=yes
9784 hardcode_minus_L=yes
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 sysv4)
9789 case $host_vendor in
9790 sni)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes # is this really true???
9793 ;;
9794 siemens)
9795 ## LD is ld it makes a PLAMLIB
9796 ## CC just makes a GrossModule.
9797 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9798 reload_cmds='$CC -r -o $output$reload_objs'
9799 hardcode_direct=no
9800 ;;
9801 motorola)
9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9804 ;;
9805 esac
9806 runpath_var='LD_RUN_PATH'
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 sysv4.3*)
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var=no
9813 export_dynamic_flag_spec='-Bexport'
9814 ;;
9815
9816 sysv4*MP*)
9817 if test -d /usr/nec; then
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_shlibpath_var=no
9820 runpath_var=LD_RUN_PATH
9821 hardcode_runpath_var=yes
9822 ld_shlibs=yes
9823 fi
9824 ;;
9825
9826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9827 no_undefined_flag='${wl}-z,text'
9828 archive_cmds_need_lc=no
9829 hardcode_shlibpath_var=no
9830 runpath_var='LD_RUN_PATH'
9831
9832 if test "$GCC" = yes; then
9833 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835 else
9836 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 fi
9839 ;;
9840
9841 sysv5* | sco3.2v5* | sco5v6*)
9842 # Note: We can NOT use -z defs as we might desire, because we do not
9843 # link with -lc, and that would cause any symbols used from libc to
9844 # always be unresolved, which means just about no library would
9845 # ever link correctly. If we're not using GNU ld we use -z text
9846 # though, which does catch some bad symbols but isn't as heavy-handed
9847 # as -z defs.
9848 no_undefined_flag='${wl}-z,text'
9849 allow_undefined_flag='${wl}-z,nodefs'
9850 archive_cmds_need_lc=no
9851 hardcode_shlibpath_var=no
9852 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9853 hardcode_libdir_separator=':'
9854 link_all_deplibs=yes
9855 export_dynamic_flag_spec='${wl}-Bexport'
9856 runpath_var='LD_RUN_PATH'
9857
9858 if test "$GCC" = yes; then
9859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 else
9862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 fi
9865 ;;
9866
9867 uts4*)
9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_libdir_flag_spec='-L$libdir'
9870 hardcode_shlibpath_var=no
9871 ;;
9872
9873 *)
9874 ld_shlibs=no
9875 ;;
9876 esac
9877
9878 if test x$host_vendor = xsni; then
9879 case $host in
9880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9881 export_dynamic_flag_spec='${wl}-Blargedynsym'
9882 ;;
9883 esac
9884 fi
9885 fi
9886
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9888$as_echo "$ld_shlibs" >&6; }
9889test "$ld_shlibs" = no && can_build_shared=no
9890
9891with_gnu_ld=$with_gnu_ld
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907#
9908# Do we need to explicitly link libc?
9909#
9910case "x$archive_cmds_need_lc" in
9911x|xyes)
9912 # Assume -lc should be added
9913 archive_cmds_need_lc=yes
9914
9915 if test "$enable_shared" = yes && test "$GCC" = yes; then
9916 case $archive_cmds in
9917 *'~'*)
9918 # FIXME: we may have to deal with multi-command sequences.
9919 ;;
9920 '$CC '*)
9921 # Test whether the compiler implicitly links with -lc since on some
9922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9923 # to ld, don't add -lc before -lgcc.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9925$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9926if ${lt_cv_archive_cmds_need_lc+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929 $RM conftest*
9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9931
9932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9933 (eval $ac_compile) 2>&5
9934 ac_status=$?
9935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9936 test $ac_status = 0; } 2>conftest.err; then
9937 soname=conftest
9938 lib=conftest
9939 libobjs=conftest.$ac_objext
9940 deplibs=
9941 wl=$lt_prog_compiler_wl
9942 pic_flag=$lt_prog_compiler_pic
9943 compiler_flags=-v
9944 linker_flags=-v
9945 verstring=
9946 output_objdir=.
9947 libname=conftest
9948 lt_save_allow_undefined_flag=$allow_undefined_flag
9949 allow_undefined_flag=
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9951 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9952 ac_status=$?
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }
9955 then
9956 lt_cv_archive_cmds_need_lc=no
9957 else
9958 lt_cv_archive_cmds_need_lc=yes
9959 fi
9960 allow_undefined_flag=$lt_save_allow_undefined_flag
9961 else
9962 cat conftest.err 1>&5
9963 fi
9964 $RM conftest*
9965
9966fi
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9968$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9969 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9970 ;;
9971 esac
9972 fi
9973 ;;
9974esac
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10128$as_echo_n "checking dynamic linker characteristics... " >&6; }
10129
10130if test "$GCC" = yes; then
10131 case $host_os in
10132 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10133 *) lt_awk_arg="/^libraries:/" ;;
10134 esac
10135 case $host_os in
10136 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10137 *) lt_sed_strip_eq="s,=/,/,g" ;;
10138 esac
10139 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10140 case $lt_search_path_spec in
10141 *\;*)
10142 # if the path contains ";" then we assume it to be the separator
10143 # otherwise default to the standard path separator (i.e. ":") - it is
10144 # assumed that no part of a normal pathname contains ";" but that should
10145 # okay in the real world where ";" in dirpaths is itself problematic.
10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10147 ;;
10148 *)
10149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10150 ;;
10151 esac
10152 # Ok, now we have the path, separated by spaces, we can step through it
10153 # and add multilib dir if necessary.
10154 lt_tmp_lt_search_path_spec=
10155 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10156 for lt_sys_path in $lt_search_path_spec; do
10157 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10159 else
10160 test -d "$lt_sys_path" && \
10161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10162 fi
10163 done
10164 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10165BEGIN {RS=" "; FS="/|\n";} {
10166 lt_foo="";
10167 lt_count=0;
10168 for (lt_i = NF; lt_i > 0; lt_i--) {
10169 if ($lt_i != "" && $lt_i != ".") {
10170 if ($lt_i == "..") {
10171 lt_count++;
10172 } else {
10173 if (lt_count == 0) {
10174 lt_foo="/" $lt_i lt_foo;
10175 } else {
10176 lt_count--;
10177 }
10178 }
10179 }
10180 }
10181 if (lt_foo != "") { lt_freq[lt_foo]++; }
10182 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10183}'`
10184 # AWK program above erroneously prepends '/' to C:/dos/paths
10185 # for these hosts.
10186 case $host_os in
10187 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10188 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10189 esac
10190 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10191else
10192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10193fi
10194library_names_spec=
10195libname_spec='lib$name'
10196soname_spec=
10197shrext_cmds=".so"
10198postinstall_cmds=
10199postuninstall_cmds=
10200finish_cmds=
10201finish_eval=
10202shlibpath_var=
10203shlibpath_overrides_runpath=unknown
10204version_type=none
10205dynamic_linker="$host_os ld.so"
10206sys_lib_dlsearch_path_spec="/lib /usr/lib"
10207need_lib_prefix=unknown
10208hardcode_into_libs=no
10209
10210# when you set need_version to no, make sure it does not cause -set_version
10211# flags to be left without arguments
10212need_version=unknown
10213
10214case $host_os in
10215aix3*)
10216 version_type=linux # correct to gnu/linux during the next big refactor
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10218 shlibpath_var=LIBPATH
10219
10220 # AIX 3 has no versioning support, so we append a major version to the name.
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 ;;
10223
10224aix[4-9]*)
10225 version_type=linux # correct to gnu/linux during the next big refactor
10226 need_lib_prefix=no
10227 need_version=no
10228 hardcode_into_libs=yes
10229 if test "$host_cpu" = ia64; then
10230 # AIX 5 supports IA64
10231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 else
10234 # With GCC up to 2.95.x, collect2 would create an import file
10235 # for dependence libraries. The import file would start with
10236 # the line `#! .'. This would cause the generated library to
10237 # depend on `.', always an invalid library. This was fixed in
10238 # development snapshots of GCC prior to 3.0.
10239 case $host_os in
10240 aix4 | aix4.[01] | aix4.[01].*)
10241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10242 echo ' yes '
10243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10244 :
10245 else
10246 can_build_shared=no
10247 fi
10248 ;;
10249 esac
10250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10251 # soname into executable. Probably we can add versioning support to
10252 # collect2, so additional links can be useful in future.
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10255 # instead of lib<name>.a to let people know that these are not
10256 # typical AIX shared libraries.
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 else
10259 # We preserve .a as extension for shared libraries through AIX4.2
10260 # and later when we are not doing run time linking.
10261 library_names_spec='${libname}${release}.a $libname.a'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 fi
10264 shlibpath_var=LIBPATH
10265 fi
10266 ;;
10267
10268amigaos*)
10269 case $host_cpu in
10270 powerpc)
10271 # Since July 2007 AmigaOS4 officially supports .so libraries.
10272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 ;;
10275 m68k)
10276 library_names_spec='$libname.ixlibrary $libname.a'
10277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10278 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10279 ;;
10280 esac
10281 ;;
10282
10283beos*)
10284 library_names_spec='${libname}${shared_ext}'
10285 dynamic_linker="$host_os ld.so"
10286 shlibpath_var=LIBRARY_PATH
10287 ;;
10288
10289bsdi[45]*)
10290 version_type=linux # correct to gnu/linux during the next big refactor
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10298 # the default ld.so.conf also contains /usr/contrib/lib and
10299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10300 # libtool to hard-code these into programs
10301 ;;
10302
10303cygwin* | mingw* | pw32* | cegcc*)
10304 version_type=windows
10305 shrext_cmds=".dll"
10306 need_version=no
10307 need_lib_prefix=no
10308
10309 case $GCC,$cc_basename in
10310 yes,*)
10311 # gcc
10312 library_names_spec='$libname.dll.a'
10313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10314 postinstall_cmds='base_file=`basename \${file}`~
10315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10316 dldir=$destdir/`dirname \$dlpath`~
10317 test -d \$dldir || mkdir -p \$dldir~
10318 $install_prog $dir/$dlname \$dldir/$dlname~
10319 chmod a+x \$dldir/$dlname~
10320 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10321 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10322 fi'
10323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10324 dlpath=$dir/\$dldll~
10325 $RM \$dlpath'
10326 shlibpath_overrides_runpath=yes
10327
10328 case $host_os in
10329 cygwin*)
10330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332
10333 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10334 ;;
10335 mingw* | cegcc*)
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 ;;
10339 pw32*)
10340 # pw32 DLLs use 'pw' prefix rather than 'lib'
10341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10342 ;;
10343 esac
10344 dynamic_linker='Win32 ld.exe'
10345 ;;
10346
10347 *,cl*)
10348 # Native MSVC
10349 libname_spec='$name'
10350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 library_names_spec='${libname}.dll.lib'
10352
10353 case $build_os in
10354 mingw*)
10355 sys_lib_search_path_spec=
10356 lt_save_ifs=$IFS
10357 IFS=';'
10358 for lt_path in $LIB
10359 do
10360 IFS=$lt_save_ifs
10361 # Let DOS variable expansion print the short 8.3 style file name.
10362 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10363 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10364 done
10365 IFS=$lt_save_ifs
10366 # Convert to MSYS style.
10367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10368 ;;
10369 cygwin*)
10370 # Convert to unix form, then to dos form, then back to unix form
10371 # but this time dos style (no spaces!) so that the unix form looks
10372 # like /cygdrive/c/PROGRA~1:/cygdr...
10373 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10374 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10375 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10376 ;;
10377 *)
10378 sys_lib_search_path_spec="$LIB"
10379 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10380 # It is most probably a Windows format PATH.
10381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10382 else
10383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10384 fi
10385 # FIXME: find the short name or the path components, as spaces are
10386 # common. (e.g. "Program Files" -> "PROGRA~1")
10387 ;;
10388 esac
10389
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname'
10396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10397 dlpath=$dir/\$dldll~
10398 $RM \$dlpath'
10399 shlibpath_overrides_runpath=yes
10400 dynamic_linker='Win32 link.exe'
10401 ;;
10402
10403 *)
10404 # Assume MSVC wrapper
10405 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10406 dynamic_linker='Win32 ld.exe'
10407 ;;
10408 esac
10409 # FIXME: first we should search . and the directory the executable is in
10410 shlibpath_var=PATH
10411 ;;
10412
10413darwin* | rhapsody*)
10414 dynamic_linker="$host_os dyld"
10415 version_type=darwin
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10419 soname_spec='${libname}${release}${major}$shared_ext'
10420 shlibpath_overrides_runpath=yes
10421 shlibpath_var=DYLD_LIBRARY_PATH
10422 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10423
10424 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10426 ;;
10427
10428dgux*)
10429 version_type=linux # correct to gnu/linux during the next big refactor
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 ;;
10436
10437freebsd* | dragonfly*)
10438 # DragonFly does not have aout. When/if they implement a new
10439 # versioning mechanism, adjust this.
10440 if test -x /usr/bin/objformat; then
10441 objformat=`/usr/bin/objformat`
10442 else
10443 case $host_os in
10444 freebsd[23].*) objformat=aout ;;
10445 *) objformat=elf ;;
10446 esac
10447 fi
10448 version_type=freebsd-$objformat
10449 case $version_type in
10450 freebsd-elf*)
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10452 need_version=no
10453 need_lib_prefix=no
10454 ;;
10455 freebsd-*)
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10457 need_version=yes
10458 ;;
10459 esac
10460 shlibpath_var=LD_LIBRARY_PATH
10461 case $host_os in
10462 freebsd2.*)
10463 shlibpath_overrides_runpath=yes
10464 ;;
10465 freebsd3.[01]* | freebsdelf3.[01]*)
10466 shlibpath_overrides_runpath=yes
10467 hardcode_into_libs=yes
10468 ;;
10469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 ;;
10474 *) # from 4.6 on, and DragonFly
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10477 ;;
10478 esac
10479 ;;
10480
10481gnu*)
10482 version_type=linux # correct to gnu/linux during the next big refactor
10483 need_lib_prefix=no
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=no
10489 hardcode_into_libs=yes
10490 ;;
10491
10492haiku*)
10493 version_type=linux # correct to gnu/linux during the next big refactor
10494 need_lib_prefix=no
10495 need_version=no
10496 dynamic_linker="$host_os runtime_loader"
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10502 hardcode_into_libs=yes
10503 ;;
10504
10505hpux9* | hpux10* | hpux11*)
10506 # Give a soname corresponding to the major version so that dld.sl refuses to
10507 # link against other versions.
10508 version_type=sunos
10509 need_lib_prefix=no
10510 need_version=no
10511 case $host_cpu in
10512 ia64*)
10513 shrext_cmds='.so'
10514 hardcode_into_libs=yes
10515 dynamic_linker="$host_os dld.so"
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 if test "X$HPUX_IA64_MODE" = X32; then
10521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10522 else
10523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10524 fi
10525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10526 ;;
10527 hppa*64*)
10528 shrext_cmds='.sl'
10529 hardcode_into_libs=yes
10530 dynamic_linker="$host_os dld.sl"
10531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10537 ;;
10538 *)
10539 shrext_cmds='.sl'
10540 dynamic_linker="$host_os dld.sl"
10541 shlibpath_var=SHLIB_PATH
10542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 ;;
10546 esac
10547 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10548 postinstall_cmds='chmod 555 $lib'
10549 # or fails outright, so override atomically:
10550 install_override_mode=555
10551 ;;
10552
10553interix[3-9]*)
10554 version_type=linux # correct to gnu/linux during the next big refactor
10555 need_lib_prefix=no
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 ;;
10564
10565irix5* | irix6* | nonstopux*)
10566 case $host_os in
10567 nonstopux*) version_type=nonstopux ;;
10568 *)
10569 if test "$lt_cv_prog_gnu_ld" = yes; then
10570 version_type=linux # correct to gnu/linux during the next big refactor
10571 else
10572 version_type=irix
10573 fi ;;
10574 esac
10575 need_lib_prefix=no
10576 need_version=no
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10579 case $host_os in
10580 irix5* | nonstopux*)
10581 libsuff= shlibsuff=
10582 ;;
10583 *)
10584 case $LD in # libtool.m4 will add one of these switches to LD
10585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10586 libsuff= shlibsuff= libmagic=32-bit;;
10587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10588 libsuff=32 shlibsuff=N32 libmagic=N32;;
10589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10591 *) libsuff= shlibsuff= libmagic=never-match;;
10592 esac
10593 ;;
10594 esac
10595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10596 shlibpath_overrides_runpath=no
10597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10599 hardcode_into_libs=yes
10600 ;;
10601
10602# No shared lib support for Linux oldld, aout, or coff.
10603linux*oldld* | linux*aout* | linux*coff*)
10604 dynamic_linker=no
10605 ;;
10606
10607# This must be glibc/ELF.
10608linux* | k*bsd*-gnu | kopensolaris*-gnu)
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=no
10617
10618 # Some binutils ld are patched to set DT_RUNPATH
10619 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621else
10622 lt_cv_shlibpath_overrides_runpath=no
10623 save_LDFLAGS=$LDFLAGS
10624 save_libdir=$libdir
10625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h. */
10629
10630int
10631main ()
10632{
10633
10634 ;
10635 return 0;
10636}
10637_ACEOF
10638if ac_fn_c_try_link "$LINENO"; then :
10639 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10640 lt_cv_shlibpath_overrides_runpath=yes
10641fi
10642fi
10643rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LDFLAGS=$save_LDFLAGS
10646 libdir=$save_libdir
10647
10648fi
10649
10650 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10651
10652 # This implies no fast_install, which is unacceptable.
10653 # Some rework will be needed to allow for fast_install
10654 # before this can be enabled.
10655 hardcode_into_libs=yes
10656
10657 # Append ld.so.conf contents to the search path
10658 if test -f /etc/ld.so.conf; then
10659 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10661 fi
10662
10663 # We used to test for /lib/ld.so.1 and disable shared libraries on
10664 # powerpc, because MkLinux only supported shared libraries with the
10665 # GNU dynamic linker. Since this was broken with cross compilers,
10666 # most powerpc-linux boxes support dynamic linking these days and
10667 # people can always --disable-shared, the test was removed, and we
10668 # assume the GNU/Linux dynamic linker is in use.
10669 dynamic_linker='GNU/Linux ld.so'
10670 ;;
10671
10672netbsdelf*-gnu)
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=no
10680 hardcode_into_libs=yes
10681 dynamic_linker='NetBSD ld.elf_so'
10682 ;;
10683
10684netbsd*)
10685 version_type=sunos
10686 need_lib_prefix=no
10687 need_version=no
10688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691 dynamic_linker='NetBSD (a.out) ld.so'
10692 else
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 dynamic_linker='NetBSD ld.elf_so'
10696 fi
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=yes
10699 hardcode_into_libs=yes
10700 ;;
10701
10702newsos6)
10703 version_type=linux # correct to gnu/linux during the next big refactor
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 ;;
10708
10709*nto* | *qnx*)
10710 version_type=qnx
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=no
10717 hardcode_into_libs=yes
10718 dynamic_linker='ldqnx.so'
10719 ;;
10720
10721openbsd*)
10722 version_type=sunos
10723 sys_lib_dlsearch_path_spec="/usr/lib"
10724 need_lib_prefix=no
10725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10726 case $host_os in
10727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10728 *) need_version=no ;;
10729 esac
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10734 case $host_os in
10735 openbsd2.[89] | openbsd2.[89].*)
10736 shlibpath_overrides_runpath=no
10737 ;;
10738 *)
10739 shlibpath_overrides_runpath=yes
10740 ;;
10741 esac
10742 else
10743 shlibpath_overrides_runpath=yes
10744 fi
10745 ;;
10746
10747os2*)
10748 libname_spec='$name'
10749 shrext_cmds=".dll"
10750 need_lib_prefix=no
10751 library_names_spec='$libname${shared_ext} $libname.a'
10752 dynamic_linker='OS/2 ld.exe'
10753 shlibpath_var=LIBPATH
10754 ;;
10755
10756osf3* | osf4* | osf5*)
10757 version_type=osf
10758 need_lib_prefix=no
10759 need_version=no
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10765 ;;
10766
10767rdos*)
10768 dynamic_linker=no
10769 ;;
10770
10771solaris*)
10772 version_type=linux # correct to gnu/linux during the next big refactor
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10780 # ldd complains unless libraries are executable
10781 postinstall_cmds='chmod +x $lib'
10782 ;;
10783
10784sunos4*)
10785 version_type=sunos
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10790 if test "$with_gnu_ld" = yes; then
10791 need_lib_prefix=no
10792 fi
10793 need_version=yes
10794 ;;
10795
10796sysv4 | sysv4.3*)
10797 version_type=linux # correct to gnu/linux during the next big refactor
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 case $host_vendor in
10802 sni)
10803 shlibpath_overrides_runpath=no
10804 need_lib_prefix=no
10805 runpath_var=LD_RUN_PATH
10806 ;;
10807 siemens)
10808 need_lib_prefix=no
10809 ;;
10810 motorola)
10811 need_lib_prefix=no
10812 need_version=no
10813 shlibpath_overrides_runpath=no
10814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10815 ;;
10816 esac
10817 ;;
10818
10819sysv4*MP*)
10820 if test -d /usr/nec ;then
10821 version_type=linux # correct to gnu/linux during the next big refactor
10822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10823 soname_spec='$libname${shared_ext}.$major'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 fi
10826 ;;
10827
10828sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10829 version_type=freebsd-elf
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=yes
10836 hardcode_into_libs=yes
10837 if test "$with_gnu_ld" = yes; then
10838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10839 else
10840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10841 case $host_os in
10842 sco3.2v5*)
10843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10844 ;;
10845 esac
10846 fi
10847 sys_lib_dlsearch_path_spec='/usr/lib'
10848 ;;
10849
10850tpf*)
10851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 need_lib_prefix=no
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 ;;
10860
10861uts4*)
10862 version_type=linux # correct to gnu/linux during the next big refactor
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 ;;
10867
10868*)
10869 dynamic_linker=no
10870 ;;
10871esac
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10873$as_echo "$dynamic_linker" >&6; }
10874test "$dynamic_linker" = no && can_build_shared=no
10875
10876variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10877if test "$GCC" = yes; then
10878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10879fi
10880
10881if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10882 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10883fi
10884if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10885 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10886fi
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10980$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10981hardcode_action=
10982if test -n "$hardcode_libdir_flag_spec" ||
10983 test -n "$runpath_var" ||
10984 test "X$hardcode_automatic" = "Xyes" ; then
10985
10986 # We can hardcode non-existent directories.
10987 if test "$hardcode_direct" != no &&
10988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10989 # have to relink, otherwise we might link with an installed library
10990 # when we should be linking with a yet-to-be-installed one
10991 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10992 test "$hardcode_minus_L" != no; then
10993 # Linking always hardcodes the temporary library directory.
10994 hardcode_action=relink
10995 else
10996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10997 hardcode_action=immediate
10998 fi
10999else
11000 # We cannot hardcode anything, or else we can only hardcode existing
11001 # directories.
11002 hardcode_action=unsupported
11003fi
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11005$as_echo "$hardcode_action" >&6; }
11006
11007if test "$hardcode_action" = relink ||
11008 test "$inherit_rpath" = yes; then
11009 # Fast installation is not supported
11010 enable_fast_install=no
11011elif test "$shlibpath_overrides_runpath" = yes ||
11012 test "$enable_shared" = no; then
11013 # Fast installation is not necessary
11014 enable_fast_install=needless
11015fi
11016
11017
11018
11019
11020
11021
11022 if test "x$enable_dlopen" != xyes; then
11023 enable_dlopen=unknown
11024 enable_dlopen_self=unknown
11025 enable_dlopen_self_static=unknown
11026else
11027 lt_cv_dlopen=no
11028 lt_cv_dlopen_libs=
11029
11030 case $host_os in
11031 beos*)
11032 lt_cv_dlopen="load_add_on"
11033 lt_cv_dlopen_libs=
11034 lt_cv_dlopen_self=yes
11035 ;;
11036
11037 mingw* | pw32* | cegcc*)
11038 lt_cv_dlopen="LoadLibrary"
11039 lt_cv_dlopen_libs=
11040 ;;
11041
11042 cygwin*)
11043 lt_cv_dlopen="dlopen"
11044 lt_cv_dlopen_libs=
11045 ;;
11046
11047 darwin*)
11048 # if libdl is installed we need to link against it
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11050$as_echo_n "checking for dlopen in -ldl... " >&6; }
11051if ${ac_cv_lib_dl_dlopen+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053else
11054 ac_check_lib_save_LIBS=$LIBS
11055LIBS="-ldl $LIBS"
11056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057/* end confdefs.h. */
11058
11059/* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11062#ifdef __cplusplus
11063extern "C"
11064#endif
11065char dlopen ();
11066int
11067main ()
11068{
11069return dlopen ();
11070 ;
11071 return 0;
11072}
11073_ACEOF
11074if ac_fn_c_try_link "$LINENO"; then :
11075 ac_cv_lib_dl_dlopen=yes
11076else
11077 ac_cv_lib_dl_dlopen=no
11078fi
11079rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081LIBS=$ac_check_lib_save_LIBS
11082fi
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11084$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11085if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11087else
11088
11089 lt_cv_dlopen="dyld"
11090 lt_cv_dlopen_libs=
11091 lt_cv_dlopen_self=yes
11092
11093fi
11094
11095 ;;
11096
11097 *)
11098 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11099if test "x$ac_cv_func_shl_load" = xyes; then :
11100 lt_cv_dlopen="shl_load"
11101else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11103$as_echo_n "checking for shl_load in -ldld... " >&6; }
11104if ${ac_cv_lib_dld_shl_load+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106else
11107 ac_check_lib_save_LIBS=$LIBS
11108LIBS="-ldld $LIBS"
11109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h. */
11111
11112/* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118char shl_load ();
11119int
11120main ()
11121{
11122return shl_load ();
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_lib_dld_shl_load=yes
11129else
11130 ac_cv_lib_dld_shl_load=no
11131fi
11132rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134LIBS=$ac_check_lib_save_LIBS
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11137$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11138if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11140else
11141 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11142if test "x$ac_cv_func_dlopen" = xyes; then :
11143 lt_cv_dlopen="dlopen"
11144else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11146$as_echo_n "checking for dlopen in -ldl... " >&6; }
11147if ${ac_cv_lib_dl_dlopen+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149else
11150 ac_check_lib_save_LIBS=$LIBS
11151LIBS="-ldl $LIBS"
11152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153/* end confdefs.h. */
11154
11155/* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158#ifdef __cplusplus
11159extern "C"
11160#endif
11161char dlopen ();
11162int
11163main ()
11164{
11165return dlopen ();
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170if ac_fn_c_try_link "$LINENO"; then :
11171 ac_cv_lib_dl_dlopen=yes
11172else
11173 ac_cv_lib_dl_dlopen=no
11174fi
11175rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177LIBS=$ac_check_lib_save_LIBS
11178fi
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11180$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11181if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11183else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11185$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11186if ${ac_cv_lib_svld_dlopen+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188else
11189 ac_check_lib_save_LIBS=$LIBS
11190LIBS="-lsvld $LIBS"
11191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h. */
11193
11194/* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197#ifdef __cplusplus
11198extern "C"
11199#endif
11200char dlopen ();
11201int
11202main ()
11203{
11204return dlopen ();
11205 ;
11206 return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_svld_dlopen=yes
11211else
11212 ac_cv_lib_svld_dlopen=no
11213fi
11214rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216LIBS=$ac_check_lib_save_LIBS
11217fi
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11219$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11220if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11222else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11224$as_echo_n "checking for dld_link in -ldld... " >&6; }
11225if ${ac_cv_lib_dld_dld_link+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227else
11228 ac_check_lib_save_LIBS=$LIBS
11229LIBS="-ldld $LIBS"
11230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231/* end confdefs.h. */
11232
11233/* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236#ifdef __cplusplus
11237extern "C"
11238#endif
11239char dld_link ();
11240int
11241main ()
11242{
11243return dld_link ();
11244 ;
11245 return 0;
11246}
11247_ACEOF
11248if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_dld_dld_link=yes
11250else
11251 ac_cv_lib_dld_dld_link=no
11252fi
11253rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255LIBS=$ac_check_lib_save_LIBS
11256fi
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11258$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11259if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11260 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11261fi
11262
11263
11264fi
11265
11266
11267fi
11268
11269
11270fi
11271
11272
11273fi
11274
11275
11276fi
11277
11278 ;;
11279 esac
11280
11281 if test "x$lt_cv_dlopen" != xno; then
11282 enable_dlopen=yes
11283 else
11284 enable_dlopen=no
11285 fi
11286
11287 case $lt_cv_dlopen in
11288 dlopen)
11289 save_CPPFLAGS="$CPPFLAGS"
11290 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11291
11292 save_LDFLAGS="$LDFLAGS"
11293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11294
11295 save_LIBS="$LIBS"
11296 LIBS="$lt_cv_dlopen_libs $LIBS"
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11299$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11300if ${lt_cv_dlopen_self+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302else
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self=cross
11305else
11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11307 lt_status=$lt_dlunknown
11308 cat > conftest.$ac_ext <<_LT_EOF
11309#line $LINENO "configure"
11310#include "confdefs.h"
11311
11312#if HAVE_DLFCN_H
11313#include <dlfcn.h>
11314#endif
11315
11316#include <stdio.h>
11317
11318#ifdef RTLD_GLOBAL
11319# define LT_DLGLOBAL RTLD_GLOBAL
11320#else
11321# ifdef DL_GLOBAL
11322# define LT_DLGLOBAL DL_GLOBAL
11323# else
11324# define LT_DLGLOBAL 0
11325# endif
11326#endif
11327
11328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330#ifndef LT_DLLAZY_OR_NOW
11331# ifdef RTLD_LAZY
11332# define LT_DLLAZY_OR_NOW RTLD_LAZY
11333# else
11334# ifdef DL_LAZY
11335# define LT_DLLAZY_OR_NOW DL_LAZY
11336# else
11337# ifdef RTLD_NOW
11338# define LT_DLLAZY_OR_NOW RTLD_NOW
11339# else
11340# ifdef DL_NOW
11341# define LT_DLLAZY_OR_NOW DL_NOW
11342# else
11343# define LT_DLLAZY_OR_NOW 0
11344# endif
11345# endif
11346# endif
11347# endif
11348#endif
11349
11350/* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353int fnord () __attribute__((visibility("default")));
11354#endif
11355
11356int fnord () { return 42; }
11357int main ()
11358{
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11361
11362 if (self)
11363 {
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11365 else
11366 {
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11369 }
11370 /* dlclose (self); */
11371 }
11372 else
11373 puts (dlerror ());
11374
11375 return status;
11376}
11377_LT_EOF
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11379 (eval $ac_link) 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11383 (./conftest; exit; ) >&5 2>/dev/null
11384 lt_status=$?
11385 case x$lt_status in
11386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11388 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11389 esac
11390 else :
11391 # compilation failed
11392 lt_cv_dlopen_self=no
11393 fi
11394fi
11395rm -fr conftest*
11396
11397
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11400$as_echo "$lt_cv_dlopen_self" >&6; }
11401
11402 if test "x$lt_cv_dlopen_self" = xyes; then
11403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11405$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11406if ${lt_cv_dlopen_self_static+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408else
11409 if test "$cross_compiling" = yes; then :
11410 lt_cv_dlopen_self_static=cross
11411else
11412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11413 lt_status=$lt_dlunknown
11414 cat > conftest.$ac_ext <<_LT_EOF
11415#line $LINENO "configure"
11416#include "confdefs.h"
11417
11418#if HAVE_DLFCN_H
11419#include <dlfcn.h>
11420#endif
11421
11422#include <stdio.h>
11423
11424#ifdef RTLD_GLOBAL
11425# define LT_DLGLOBAL RTLD_GLOBAL
11426#else
11427# ifdef DL_GLOBAL
11428# define LT_DLGLOBAL DL_GLOBAL
11429# else
11430# define LT_DLGLOBAL 0
11431# endif
11432#endif
11433
11434/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11435 find out it does not work in some platform. */
11436#ifndef LT_DLLAZY_OR_NOW
11437# ifdef RTLD_LAZY
11438# define LT_DLLAZY_OR_NOW RTLD_LAZY
11439# else
11440# ifdef DL_LAZY
11441# define LT_DLLAZY_OR_NOW DL_LAZY
11442# else
11443# ifdef RTLD_NOW
11444# define LT_DLLAZY_OR_NOW RTLD_NOW
11445# else
11446# ifdef DL_NOW
11447# define LT_DLLAZY_OR_NOW DL_NOW
11448# else
11449# define LT_DLLAZY_OR_NOW 0
11450# endif
11451# endif
11452# endif
11453# endif
11454#endif
11455
11456/* When -fvisbility=hidden is used, assume the code has been annotated
11457 correspondingly for the symbols needed. */
11458#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11459int fnord () __attribute__((visibility("default")));
11460#endif
11461
11462int fnord () { return 42; }
11463int main ()
11464{
11465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11466 int status = $lt_dlunknown;
11467
11468 if (self)
11469 {
11470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11471 else
11472 {
11473 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11474 else puts (dlerror ());
11475 }
11476 /* dlclose (self); */
11477 }
11478 else
11479 puts (dlerror ());
11480
11481 return status;
11482}
11483_LT_EOF
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11485 (eval $ac_link) 2>&5
11486 ac_status=$?
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11489 (./conftest; exit; ) >&5 2>/dev/null
11490 lt_status=$?
11491 case x$lt_status in
11492 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11493 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11494 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11495 esac
11496 else :
11497 # compilation failed
11498 lt_cv_dlopen_self_static=no
11499 fi
11500fi
11501rm -fr conftest*
11502
11503
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11506$as_echo "$lt_cv_dlopen_self_static" >&6; }
11507 fi
11508
11509 CPPFLAGS="$save_CPPFLAGS"
11510 LDFLAGS="$save_LDFLAGS"
11511 LIBS="$save_LIBS"
11512 ;;
11513 esac
11514
11515 case $lt_cv_dlopen_self in
11516 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11517 *) enable_dlopen_self=unknown ;;
11518 esac
11519
11520 case $lt_cv_dlopen_self_static in
11521 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11522 *) enable_dlopen_self_static=unknown ;;
11523 esac
11524fi
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542striplib=
11543old_striplib=
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11545$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11546if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11547 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11548 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550$as_echo "yes" >&6; }
11551else
11552# FIXME - insert some real tests, host_os isn't really good enough
11553 case $host_os in
11554 darwin*)
11555 if test -n "$STRIP" ; then
11556 striplib="$STRIP -x"
11557 old_striplib="$STRIP -S"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559$as_echo "yes" >&6; }
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
11563 fi
11564 ;;
11565 *)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
11568 ;;
11569 esac
11570fi
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583 # Report which library types will actually be built
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11585$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11587$as_echo "$can_build_shared" >&6; }
11588
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11590$as_echo_n "checking whether to build shared libraries... " >&6; }
11591 test "$can_build_shared" = "no" && enable_shared=no
11592
11593 # On AIX, shared libraries and static libraries use the same namespace, and
11594 # are all built from PIC.
11595 case $host_os in
11596 aix3*)
11597 test "$enable_shared" = yes && enable_static=no
11598 if test -n "$RANLIB"; then
11599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11600 postinstall_cmds='$RANLIB $lib'
11601 fi
11602 ;;
11603
11604 aix[4-9]*)
11605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11606 test "$enable_shared" = yes && enable_static=no
11607 fi
11608 ;;
11609 esac
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11611$as_echo "$enable_shared" >&6; }
11612
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11614$as_echo_n "checking whether to build static libraries... " >&6; }
11615 # Make sure either enable_shared or enable_static is yes.
11616 test "$enable_shared" = yes || enable_static=yes
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11618$as_echo "$enable_static" >&6; }
11619
11620
11621
11622
11623fi
11624ac_ext=c
11625ac_cpp='$CPP $CPPFLAGS'
11626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629
11630CC="$lt_save_CC"
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 ac_config_commands="$ac_config_commands libtool"
11647
11648
11649
11650
11651# Only expand once:
11652
11653
11654# By default we simply use the C compiler to build assembly code.
11655
11656test "${CCAS+set}" = set || CCAS=$CC
11657test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11658
11659
11660
11661depcc="$CCAS" am_compiler_list=
11662
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11664$as_echo_n "checking dependency style of $depcc... " >&6; }
11665if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667else
11668 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11669 # We make a subdir and do the tests there. Otherwise we can end up
11670 # making bogus files that we don't know about and never remove. For
11671 # instance it was reported that on HP-UX the gcc test will end up
11672 # making a dummy file named `D' -- because `-MD' means `put the output
11673 # in D'.
11674 rm -rf conftest.dir
11675 mkdir conftest.dir
11676 # Copy depcomp to subdir because otherwise we won't find it if we're
11677 # using a relative directory.
11678 cp "$am_depcomp" conftest.dir
11679 cd conftest.dir
11680 # We will build objects and dependencies in a subdirectory because
11681 # it helps to detect inapplicable dependency modes. For instance
11682 # both Tru64's cc and ICC support -MD to output dependencies as a
11683 # side effect of compilation, but ICC will put the dependencies in
11684 # the current directory while Tru64 will put them in the object
11685 # directory.
11686 mkdir sub
11687
11688 am_cv_CCAS_dependencies_compiler_type=none
11689 if test "$am_compiler_list" = ""; then
11690 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11691 fi
11692 am__universal=false
11693
11694
11695 for depmode in $am_compiler_list; do
11696 # Setup a source with many dependencies, because some compilers
11697 # like to wrap large dependency lists on column 80 (with \), and
11698 # we should not choose a depcomp mode which is confused by this.
11699 #
11700 # We need to recreate these files for each test, as the compiler may
11701 # overwrite some of them when testing with obscure command lines.
11702 # This happens at least with the AIX C compiler.
11703 : > sub/conftest.c
11704 for i in 1 2 3 4 5 6; do
11705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11707 # Solaris 8's {/usr,}/bin/sh.
11708 touch sub/conftst$i.h
11709 done
11710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11711
11712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11713 # mode. It turns out that the SunPro C++ compiler does not properly
11714 # handle `-M -o', and we need to detect this. Also, some Intel
11715 # versions had trouble with output in subdirs
11716 am__obj=sub/conftest.${OBJEXT-o}
11717 am__minus_obj="-o $am__obj"
11718 case $depmode in
11719 gcc)
11720 # This depmode causes a compiler race in universal mode.
11721 test "$am__universal" = false || continue
11722 ;;
11723 nosideeffect)
11724 # after this tag, mechanisms are not by side-effect, so they'll
11725 # only be used when explicitly requested
11726 if test "x$enable_dependency_tracking" = xyes; then
11727 continue
11728 else
11729 break
11730 fi
11731 ;;
11732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11733 # This compiler won't grok `-c -o', but also, the minuso test has
11734 # not run yet. These depmodes are late enough in the game, and
11735 # so weak that their functioning should not be impacted.
11736 am__obj=conftest.${OBJEXT-o}
11737 am__minus_obj=
11738 ;;
11739 none) break ;;
11740 esac
11741 if depmode=$depmode \
11742 source=sub/conftest.c object=$am__obj \
11743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11745 >/dev/null 2>conftest.err &&
11746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11750 # icc doesn't choke on unknown options, it will just issue warnings
11751 # or remarks (even with -Werror). So we grep stderr for any message
11752 # that says an option was ignored or not supported.
11753 # When given -MP, icc 7.0 and 7.1 complain thusly:
11754 # icc: Command line warning: ignoring option '-M'; no argument required
11755 # The diagnosis changed in icc 8.0:
11756 # icc: Command line remark: option '-MP' not supported
11757 if (grep 'ignoring option' conftest.err ||
11758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11759 am_cv_CCAS_dependencies_compiler_type=$depmode
11760 break
11761 fi
11762 fi
11763 done
11764
11765 cd ..
11766 rm -rf conftest.dir
11767else
11768 am_cv_CCAS_dependencies_compiler_type=none
11769fi
11770
11771fi
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11773$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11774CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11775
11776 if
11777 test "x$enable_dependency_tracking" != xno \
11778 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11779 am__fastdepCCAS_TRUE=
11780 am__fastdepCCAS_FALSE='#'
11781else
11782 am__fastdepCCAS_TRUE='#'
11783 am__fastdepCCAS_FALSE=
11784fi
11785
11786
11787
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
11790$as_echo_n "checking zfs author... " >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
11792$as_echo "$ZFS_META_AUTHOR" >&6; }
11793
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
11795$as_echo_n "checking zfs license... " >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
11797$as_echo "$ZFS_META_LICENSE" >&6; }
11798
11799
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11802$as_echo_n "checking linux distribution... " >&6; }
11803 if test -f /etc/toss-release ; then
11804 VENDOR=toss ;
11805 elif test -f /etc/fedora-release ; then
11806 VENDOR=fedora ;
11807 elif test -f /etc/redhat-release ; then
11808 VENDOR=redhat ;
11809 elif test -f /etc/gentoo-release ; then
11810 VENDOR=gentoo ;
11811 elif test -f /etc/arch-release ; then
11812 VENDOR=arch ;
11813 elif test -f /etc/SuSE-release ; then
11814 VENDOR=sles ;
11815 elif test -f /etc/slackware-version ; then
11816 VENDOR=slackware ;
11817 elif test -f /etc/lunar.release ; then
11818 VENDOR=lunar ;
11819 elif test -f /etc/lsb-release ; then
11820 VENDOR=ubuntu ;
11821 elif test -f /etc/debian_version ; then
11822 VENDOR=debian ;
11823 else
11824 VENDOR= ;
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11827$as_echo "$VENDOR" >&6; }
11828
11829
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11831$as_echo_n "checking default package type... " >&6; }
11832 case "$VENDOR" in
11833 toss) DEFAULT_PACKAGE=rpm ;;
11834 redhat) DEFAULT_PACKAGE=rpm ;;
11835 fedora) DEFAULT_PACKAGE=rpm ;;
11836 gentoo) DEFAULT_PACKAGE=tgz ;;
11837 arch) DEFAULT_PACKAGE=tgz ;;
11838 sles) DEFAULT_PACKAGE=rpm ;;
11839 slackware) DEFAULT_PACKAGE=tgz ;;
11840 lunar) DEFAULT_PACKAGE=tgz ;;
11841 ubuntu) DEFAULT_PACKAGE=deb ;;
11842 debian) DEFAULT_PACKAGE=deb ;;
11843 *) DEFAULT_PACKAGE=rpm ;;
11844 esac
ea04106b
AX
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11846$as_echo "$DEFAULT_PACKAGE" >&6; }
11847
11848
11849 DEFAULT_INIT_DIR=$sysconfdir/init.d
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11851$as_echo_n "checking default init directory... " >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11853$as_echo "$DEFAULT_INIT_DIR" >&6; }
11854
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11857$as_echo_n "checking default init script type... " >&6; }
11858 case "$VENDOR" in
11859 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11860 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11861 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11862 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11863 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11864 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11865 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11866 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11867 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11868 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11869 *) DEFAULT_INIT_SCRIPT=lsb ;;
11870 esac
ea04106b
AX
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11872$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11873
11874
e10b0808
AX
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
11876$as_echo_n "checking default init config direectory... " >&6; }
11877 case "$VENDOR" in
11878 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
11879 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11880 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11881 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11882 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11883 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
11884 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
11885 *) DEFAULT_INITCONF_DIR=/etc/default ;;
11886 esac
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
11888$as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11889
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
11892$as_echo_n "checking whether initramfs-tools is available... " >&6; }
11893 if test -d /usr/share/initramfs-tools ; then
11894 DEFINE_INITRAMFS='--define "_initramfs 1"'
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896$as_echo "yes" >&6; }
11897 else
11898 DEFINE_INITRAMFS=''
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901 fi
11902
11903
ea04106b
AX
11904
11905 RPM=rpm
11906 RPMBUILD=rpmbuild
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11909$as_echo_n "checking whether $RPM is available... " >&6; }
11910 if tmp=$($RPM --version 2>/dev/null); then :
11911
11912 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11913 HAVE_RPM=yes
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11915$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11916
11917else
11918
11919 HAVE_RPM=no
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11921$as_echo "$HAVE_RPM" >&6; }
11922
11923fi
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11926$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11927 if tmp=$($RPMBUILD --version 2>/dev/null); then :
11928
11929 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11930 HAVE_RPMBUILD=yes
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11932$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11933
11934else
11935
11936 HAVE_RPMBUILD=no
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11938$as_echo "$HAVE_RPMBUILD" >&6; }
11939
11940fi
11941
11942 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
e10b0808 11943 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
ea04106b
AX
11944 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11945 RPM_DEFINE_DKMS=
11946
11947 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11948 SRPM_DEFINE_UTIL=
11949 SRPM_DEFINE_KMOD=
11950 SRPM_DEFINE_DKMS=
11951
11952 RPM_SPEC_DIR="rpm/generic"
11953
11954# Check whether --with-spec was given.
11955if test "${with_spec+set}" = set; then :
11956 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11957fi
11958
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11961$as_echo_n "checking whether spec files are available... " >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11963$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 DPKG=dpkg
11985 DPKGBUILD=dpkg-buildpackage
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11988$as_echo_n "checking whether $DPKG is available... " >&6; }
11989 if tmp=$($DPKG --version 2>/dev/null); then :
11990
11991 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11992 HAVE_DPKG=yes
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11994$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11995
11996else
11997
11998 HAVE_DPKG=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12000$as_echo "$HAVE_DPKG" >&6; }
12001
12002fi
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12005$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12006 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12007
12008 DPKGBUILD_VERSION=$(echo $tmp | \
12009 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12010 HAVE_DPKGBUILD=yes
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12012$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12013
12014else
12015
12016 HAVE_DPKGBUILD=no
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12018$as_echo "$HAVE_DPKGBUILD" >&6; }
12019
12020fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031 ALIEN=alien
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12034$as_echo_n "checking whether $ALIEN is available... " >&6; }
12035 if tmp=$($ALIEN --version 2>/dev/null); then :
12036
12037 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12038 HAVE_ALIEN=yes
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12040$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12041
12042else
12043
12044 HAVE_ALIEN=no
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12046$as_echo "$HAVE_ALIEN" >&6; }
12047
12048fi
12049
12050
12051
12052
12053
12054
12055
12056 TARGET_ASM_DIR=asm-generic
12057
12058
12059 ZFS_CONFIG=all
12060
12061# Check whether --with-config was given.
12062if test "${with_config+set}" = set; then :
12063 withval=$with_config; ZFS_CONFIG="$withval"
12064fi
12065
12066 # Check whether --enable-linux-builtin was given.
12067if test "${enable_linux_builtin+set}" = set; then :
12068 enableval=$enable_linux_builtin;
12069else
12070 enable_linux_builtin=no
12071fi
12072
12073
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12075$as_echo_n "checking zfs config... " >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12077$as_echo "$ZFS_CONFIG" >&6; };
12078
12079
12080
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12083$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12084
12085 saved_flags="$CFLAGS"
12086 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12087
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h. */
12090
12091int
12092main ()
12093{
12094
12095 ;
12096 return 0;
12097}
12098_ACEOF
12099if ac_fn_c_try_compile "$LINENO"; then :
12100
12101 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12103$as_echo "yes" >&6; }
12104
12105else
12106
12107 NO_UNUSED_BUT_SET_VARIABLE=
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110
12111fi
12112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113
12114 CFLAGS="$saved_flags"
12115
12116
12117
e10b0808
AX
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12119$as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12120
12121 saved_flags="$CFLAGS"
12122 CFLAGS="$CFLAGS -Wbool-compare"
12123
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125/* end confdefs.h. */
12126
12127int
12128main ()
12129{
12130
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135if ac_fn_c_try_compile "$LINENO"; then :
12136
12137 NO_BOOL_COMPARE=-Wno-bool-compare
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139$as_echo "yes" >&6; }
12140
12141else
12142
12143 NO_BOOL_COMPARE=
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146
12147fi
12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149
12150 CFLAGS="$saved_flags"
12151
12152
12153
ea04106b
AX
12154
12155 case "$ZFS_CONFIG" in
12156 kernel)
12157
12158
12159# Check whether --with-linux was given.
12160if test "${with_linux+set}" = set; then :
12161 withval=$with_linux; kernelsrc="$withval"
12162fi
12163
12164
12165
12166# Check whether --with-linux-obj was given.
12167if test "${with_linux_obj+set}" = set; then :
12168 withval=$with_linux_obj; kernelbuild="$withval"
12169fi
12170
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12173$as_echo_n "checking kernel source directory... " >&6; }
12174 if test -z "$kernelsrc"; then :
12175
12176 if test -e "/lib/modules/$(uname -r)/source"; then :
12177
12178 headersdir="/lib/modules/$(uname -r)/source"
12179 sourcelink=$(readlink -f "$headersdir")
12180
12181elif test -e "/lib/modules/$(uname -r)/build"; then :
12182
12183 headersdir="/lib/modules/$(uname -r)/build"
12184 sourcelink=$(readlink -f "$headersdir")
12185
12186else
12187
12188 sourcelink=$(ls -1d /usr/src/kernels/* \
12189 /usr/src/linux-* \
12190 2>/dev/null | grep -v obj | tail -1)
12191
12192fi
12193
12194 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12195
12196 kernelsrc=`readlink -f ${sourcelink}`
12197
12198else
12199
12200 kernelsrc="Not found"
12201
12202fi
12203
12204else
12205
12206 if test "$kernelsrc" = "NONE"; then :
12207
12208 kernsrcver=NONE
12209
12210fi
12211
12212fi
12213
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12215$as_echo "$kernelsrc" >&6; }
12216 if test ! -d "$kernelsrc"; then :
12217
12218 as_fn_error $? "
12219 *** Please make sure the kernel devel package for your distribution
12220 *** is installed and then try again. If that fails, you can specify the
12221 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12222
12223fi
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12226$as_echo_n "checking kernel build directory... " >&6; }
12227 if test -z "$kernelbuild"; then :
12228
12229 if test -e "/lib/modules/$(uname -r)/build"; then :
12230
12231 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12232
12233elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12234
12235 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12236
12237elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
12238
12239 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12240
12241elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
12242
12243 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12244
12245else
12246
12247 kernelbuild=${kernelsrc}
12248
12249fi
12250
12251fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12253$as_echo "$kernelbuild" >&6; }
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12256$as_echo_n "checking kernel source version... " >&6; }
12257 utsrelease1=$kernelbuild/include/linux/version.h
12258 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12259 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12260 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
12261
12262 utsrelease=linux/version.h
12263
12264elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
12265
12266 utsrelease=linux/utsrelease.h
12267
12268elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
12269
12270 utsrelease=generated/utsrelease.h
12271
12272fi
12273
12274 if test "$utsrelease"; then :
12275
12276 kernsrcver=`(echo "#include <$utsrelease>";
12277 echo "kernsrcver=UTS_RELEASE") |
12278 cpp -I $kernelbuild/include |
12279 grep "^kernsrcver=" | cut -d \" -f 2`
12280
12281 if test -z "$kernsrcver"; then :
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12284$as_echo "Not found" >&6; }
12285 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12286
12287fi
12288
12289else
12290
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12292$as_echo "Not found" >&6; }
12293 if test "x$enable_linux_builtin" != xyes; then
12294 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12295 else
12296 as_fn_error $? "
12297 *** Cannot find UTS_RELEASE definition.
12298 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12299 fi
12300
12301fi
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12304$as_echo "$kernsrcver" >&6; }
12305
12306 LINUX=${kernelsrc}
12307 LINUX_OBJ=${kernelbuild}
12308 LINUX_VERSION=${kernsrcver}
12309
12310
12311
12312
12313
12314
12315 modpost=$LINUX/scripts/Makefile.modpost
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12317$as_echo_n "checking kernel file name for module symbols... " >&6; }
12318 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
12319
12320 if grep -q Modules.symvers $modpost; then :
12321
12322 LINUX_SYMBOLS=Modules.symvers
12323
12324else
12325
12326 LINUX_SYMBOLS=Module.symvers
12327
12328fi
12329
12330 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12331
12332 as_fn_error $? "
12333 *** Please make sure the kernel devel package for your distribution
12334 *** is installed. If you are building with a custom kernel, make sure the
12335 *** kernel is configured, built, and the '--with-linux=PATH' configure
12336 *** option refers to the location of the kernel source." "$LINENO" 5
12337
12338fi
12339
12340else
12341
12342 LINUX_SYMBOLS=NONE
12343
12344fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12346$as_echo "$LINUX_SYMBOLS" >&6; }
12347
12348
12349
12350
12351
12352# Check whether --with-spl was given.
12353if test "${with_spl+set}" = set; then :
12354 withval=$with_spl; splsrc="$withval"
12355fi
12356
12357
12358
12359# Check whether --with-spl-obj was given.
12360if test "${with_spl_obj+set}" = set; then :
12361 withval=$with_spl_obj; splbuild="$withval"
12362fi
12363
12364
12365
12366# Check whether --with-spl-timeout was given.
12367if test "${with_spl_timeout+set}" = set; then :
12368 withval=$with_spl_timeout; timeout="$withval"
12369else
12370 timeout=0
12371fi
12372
12373
12374 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
12375 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12376 splsrc2="/usr/local/src/spl-${VERSION}"
12377 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12378 splsrc4="/usr/src/spl-${VERSION}"
12379 splsrc5="../spl/"
12380 splsrc6="$LINUX"
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
12383$as_echo_n "checking spl source directory... " >&6; }
12384 if test -z "${splsrc}"; then :
12385
12386 if test -e "${splsrc0}/spl.release.in"; then :
12387
12388 splsrc=${splsrc0}
12389
12390elif test -e "${splsrc1}/spl.release.in"; then :
12391
12392 splsrc=${splsrc1}
12393
12394elif test -e "${splsrc2}/spl.release.in"; then :
12395
12396 splsrc=${splsrc2}
12397
12398elif test -e "${splsrc3}/spl.release.in"; then :
12399
12400 splsrc=$(readlink -f "${splsrc3}")
12401
12402elif test -e "${splsrc4}/spl.release.in" ; then :
12403
12404 splsrc=${splsrc4}
12405
12406elif test -e "${splsrc5}/spl.release.in"; then :
12407
12408 splsrc=$(readlink -f "${splsrc5}")
12409
12410elif test -e "${splsrc6}/spl.release.in" ; then :
12411
12412 splsrc=${splsrc6}
12413
12414else
12415
12416 splsrc="Not found"
12417
12418fi
12419
12420else
12421
12422 if test "$splsrc" = "NONE"; then :
12423
12424 splbuild=NONE
12425 splsrcver=NONE
12426
12427fi
12428
12429fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
12432$as_echo "$splsrc" >&6; }
12433 if test ! -e "$splsrc/spl.release.in"; then :
12434
12435 as_fn_error $? "
12436 *** Please make sure the kmod spl devel package for your distribution
12437 *** is installed then try again. If that fails you can specify the
12438 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
12439
12440fi
12441
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
12443$as_echo_n "checking spl build directory... " >&6; }
12444 while true; do
12445 if test -z "$splbuild"; then :
12446
12447 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
12448
12449 splbuild="${splsrc}/${LINUX_VERSION}"
12450
12451elif test -e "${splsrc}/spl_config.h" ; then :
12452
12453 splbuild="${splsrc}"
12454
e10b0808
AX
12455elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
12456
12457 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
12458
ea04106b
AX
12459else
12460
12461 splbuild="Not found"
12462
12463fi
12464
12465fi
12466 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
12467
12468 break;
12469
12470else
12471
12472 sleep 1
12473 timeout=$((timeout-1))
12474
12475fi
12476 done
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
12479$as_echo "$splbuild" >&6; }
12480 if ! test -e "$splbuild/spl_config.h"; then :
12481
12482 as_fn_error $? "
12483 *** Please make sure the kmod spl devel <kernel> package for your
12484 *** distribution is installed then try again. If that fails you
12485 *** can specify the location of the spl objects with the
12486 *** '--with-spl-obj=PATH' option." "$LINENO" 5
12487
12488fi
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
12491$as_echo_n "checking spl source version... " >&6; }
12492 if test -r $splbuild/spl_config.h &&
12493 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
12494
12495
12496 splsrcver=`(echo "#include <spl_config.h>";
12497 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12498 cpp -I $splbuild |
12499 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12500
12501fi
12502
12503 if test -z "$splsrcver"; then :
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12506$as_echo "Not found" >&6; }
12507 as_fn_error $? "
12508 *** Cannot determine the version of the spl source.
12509 *** Please prepare the spl source before running this script" "$LINENO" 5
12510
12511fi
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
12514$as_echo "$splsrcver" >&6; }
12515
12516 SPL=${splsrc}
12517 SPL_OBJ=${splbuild}
12518 SPL_VERSION=${splsrcver}
12519
12520
12521
12522
12523
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
12525$as_echo_n "checking spl file name for module symbols... " >&6; }
12526 SPL_SYMBOLS=NONE
12527
12528 while true; do
12529 if test -r $SPL_OBJ/Module.symvers; then :
12530
12531 SPL_SYMBOLS=Module.symvers
12532
12533elif test -r $SPL_OBJ/Modules.symvers; then :
12534
12535 SPL_SYMBOLS=Modules.symvers
12536
12537elif test -r $SPL_OBJ/module/Module.symvers; then :
12538
12539 SPL_SYMBOLS=Module.symvers
12540
12541elif test -r $SPL_OBJ/module/Modules.symvers; then :
12542
12543 SPL_SYMBOLS=Modules.symvers
12544
12545fi
12546
12547 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
12548
12549 break;
12550
12551else
12552
12553 sleep 1
12554 timeout=$((timeout-1))
12555
12556fi
12557 done
12558
12559 if test "$SPL_SYMBOLS" = NONE; then :
12560
12561 SPL_SYMBOLS=$LINUX_SYMBOLS
12562
12563fi
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
12566$as_echo "$SPL_SYMBOLS" >&6; }
12567
12568
12569
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12571$as_echo_n "checking whether modules can be built... " >&6; }
12572
12573
12574cat confdefs.h - <<_ACEOF >conftest.c
12575
12576
12577int
12578main (void)
12579{
12580
12581 ;
12582 return 0;
12583}
12584
12585_ACEOF
12586
12587
12588
12589cat - <<_ACEOF >conftest.h
12590
12591_ACEOF
12592
12593
12594 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12595 echo "obj-m := conftest.o" >build/Makefile
12596 modpost_flag=''
12597 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12598 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }; }; then :
12609
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611$as_echo "yes" >&6; }
12612
12613else
12614 $as_echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619 if test "x$enable_linux_builtin" != xyes; then
12620 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12621 else
12622 as_fn_error $? "
12623 *** Unable to build an empty module.
12624 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12625 fi
12626
12627
12628
12629fi
12630 rm -Rf build
12631
12632
12633
12634
94a40997
AX
12635 if test "x$cross_compiling" != xyes; then :
12636
12637 if test "$cross_compiling" = yes; then :
ea04106b
AX
12638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12640as_fn_error $? "cannot run test program while cross compiling
12641See \`config.log' for more details" "$LINENO" 5; }
12642else
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h. */
12645
12646
94a40997 12647 #include "$LINUX/include/linux/license.h"
ea04106b
AX
12648
12649int
12650main ()
12651{
12652
94a40997 12653 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
ea04106b
AX
12654
12655 ;
12656 return 0;
12657}
12658
12659_ACEOF
12660if ac_fn_c_try_run "$LINENO"; then :
12661
12662
12663$as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
12664
12665
12666fi
12667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668 conftest.$ac_objext conftest.beam conftest.$ac_ext
12669fi
12670
12671
94a40997
AX
12672fi
12673
ea04106b
AX
12674
12675
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12677$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12678
12679
12680cat confdefs.h - <<_ACEOF >conftest.c
12681
12682
12683 #include <linux/module.h>
12684
12685int
12686main (void)
12687{
12688
12689 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12690 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12691 #endif
12692
12693 ;
12694 return 0;
12695}
12696
12697_ACEOF
12698
12699
12700
12701cat - <<_ACEOF >conftest.h
12702
12703_ACEOF
12704
12705
12706 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12707 echo "obj-m := conftest.o" >build/Makefile
12708 modpost_flag=''
12709 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12710 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12715 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; }; then :
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12723$as_echo "yes" >&6; }
12724
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
12726$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12727 tmp_flags="$EXTRA_KCFLAGS"
12728
12729
12730cat confdefs.h - <<_ACEOF >conftest.c
12731
12732
12733 #include <linux/module.h>
12734 #include <linux/mutex.h>
12735
12736 MODULE_LICENSE("$ZFS_META_LICENSE");
12737
12738int
12739main (void)
12740{
12741
12742 struct mutex lock;
12743
12744 mutex_init(&lock);
12745 mutex_lock(&lock);
12746 mutex_unlock(&lock);
12747
12748 ;
12749 return 0;
12750}
12751
12752_ACEOF
12753
12754
12755
12756cat - <<_ACEOF >conftest.h
12757
12758_ACEOF
12759
12760
12761 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12762 echo "obj-m := conftest.o" >build/Makefile
12763 modpost_flag=''
12764 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12765 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775 test $ac_status = 0; }; }; then :
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
12779
12780else
12781 $as_echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785$as_echo "yes" >&6; }
12786 as_fn_error $? "
12787 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12788 *** with the CDDL license and will prevent the module linking stage
12789 *** from succeeding. You must rebuild your kernel without this
12790 *** option enabled." "$LINENO" 5
12791
12792
12793
12794fi
12795 rm -Rf build
12796
12797
12798 EXTRA_KCFLAGS="$tmp_flags"
12799
12800
12801else
12802 $as_echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806$as_echo "no" >&6; }
12807
12808
12809
12810
12811fi
12812 rm -Rf build
12813
12814
12815
12816
12817
12818
12819 tmp_flags="$EXTRA_KCFLAGS"
12820 EXTRA_KCFLAGS="-I\$(src)"
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
12823$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
12824
12825
12826cat confdefs.h - <<_ACEOF >conftest.c
12827
12828
12829 #include <linux/module.h>
12830 MODULE_LICENSE(ZFS_META_LICENSE);
12831
12832 #define CREATE_TRACE_POINTS
12833 #include "conftest.h"
12834
12835int
12836main (void)
12837{
12838
12839 trace_zfs_autoconf_event_one(1UL);
12840 trace_zfs_autoconf_event_two(2UL);
12841
12842 ;
12843 return 0;
12844}
12845
12846_ACEOF
12847
12848
12849
12850cat - <<_ACEOF >conftest.h
12851
12852 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12853 #define _CONFTEST_H
12854
12855 #undef TRACE_SYSTEM
12856 #define TRACE_SYSTEM zfs
12857 #include <linux/tracepoint.h>
12858
12859 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12860 TP_PROTO(unsigned long i),
12861 TP_ARGS(i),
12862 TP_STRUCT__entry(
12863 __field(unsigned long, i)
12864 ),
12865 TP_fast_assign(
12866 __entry->i = i;
12867 ),
12868 TP_printk("i = %lu", __entry->i)
12869 );
12870
12871 #define DEFINE_AUTOCONF_EVENT(name) \
12872 DEFINE_EVENT(zfs_autoconf_event_class, name, \
12873 TP_PROTO(unsigned long i), \
12874 TP_ARGS(i))
12875 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
12876 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
12877
12878 #endif /* _CONFTEST_H */
12879
12880 #undef TRACE_INCLUDE_PATH
12881 #define TRACE_INCLUDE_PATH .
12882 #define TRACE_INCLUDE_FILE conftest
12883 #include <trace/define_trace.h>
12884
12885_ACEOF
12886
12887
12888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12889 echo "obj-m := conftest.o" >build/Makefile
12890 modpost_flag=''
12891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; }; }; then :
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12905$as_echo "yes" >&6; }
12906
12907$as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
12908
12909
12910else
12911 $as_echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915$as_echo "no" >&6; }
12916
12917
12918
12919fi
12920 rm -Rf build
12921
12922
12923 EXTRA_KCFLAGS="$tmp_flags"
12924
12925
e10b0808
AX
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
12927$as_echo_n "checking whether current->bio_tail exists... " >&6; }
12928
12929
12930cat confdefs.h - <<_ACEOF >conftest.c
12931
12932
12933 #include <linux/sched.h>
12934
12935int
12936main (void)
12937{
12938
12939 current->bio_tail = (struct bio **) NULL;
12940
12941 ;
12942 return 0;
12943}
12944
12945_ACEOF
12946
12947
12948
12949cat - <<_ACEOF >conftest.h
12950
12951_ACEOF
12952
12953
12954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12955 echo "obj-m := conftest.o" >build/Makefile
12956 modpost_flag=''
12957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; }; }; then :
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971$as_echo "yes" >&6; }
12972
12973$as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
12974
12975
12976else
12977 $as_echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981$as_echo "no" >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
12983$as_echo_n "checking whether current->bio_list exists... " >&6; }
12984
12985
12986cat confdefs.h - <<_ACEOF >conftest.c
12987
12988
12989 #include <linux/sched.h>
12990
12991int
12992main (void)
12993{
12994
12995 current->bio_list = (struct bio_list *) NULL;
12996
12997 ;
12998 return 0;
12999}
13000
13001_ACEOF
13002
13003
13004
13005cat - <<_ACEOF >conftest.h
13006
13007_ACEOF
13008
13009
13010 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13011 echo "obj-m := conftest.o" >build/Makefile
13012 modpost_flag=''
13013 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13014 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13024 test $ac_status = 0; }; }; then :
13025
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027$as_echo "yes" >&6; }
13028
13029$as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
13030
13031
13032else
13033 $as_echo "$as_me: failed program was:" >&5
13034sed 's/^/| /' conftest.$ac_ext >&5
13035
13036 as_fn_error $? "no - Please file a bug report at
13037 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
13038
13039
13040
13041fi
13042 rm -Rf build
13043
13044
13045
13046
13047
87dac73d
AX
13048fi
13049 rm -Rf build
13050
13051
13052
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
13055$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
13056
13057
13058cat confdefs.h - <<_ACEOF >conftest.c
13059
13060
13061 #include <linux/bio.h>
13062
13063int
13064main (void)
13065{
13066
13067 blk_qc_t blk_qc;
13068 struct bio *bio = NULL;
13069 blk_qc = submit_bio(bio);
13070
13071 ;
13072 return 0;
13073}
13074
13075_ACEOF
13076
13077
13078
13079cat - <<_ACEOF >conftest.h
13080
13081_ACEOF
13082
13083
13084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13085 echo "obj-m := conftest.o" >build/Makefile
13086 modpost_flag=''
13087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13090 (eval $ac_try) 2>&5
13091 ac_status=$?
13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13098 test $ac_status = 0; }; }; then :
13099
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13101$as_echo "yes" >&6; }
13102
13103$as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
13104
13105
13106else
13107 $as_echo "$as_me: failed program was:" >&5
13108sed 's/^/| /' conftest.$ac_ext >&5
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112
13113
13114
e10b0808
AX
13115fi
13116 rm -Rf build
13117
13118
13119
13120
ea04106b
AX
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
13122$as_echo_n "checking block device operation prototypes... " >&6; }
13123 tmp_flags="$EXTRA_KCFLAGS"
13124 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13125
13126
13127cat confdefs.h - <<_ACEOF >conftest.c
13128
13129
13130 #include <linux/blkdev.h>
13131
13132 int blk_open(struct block_device *bdev, fmode_t mode)
13133 { return 0; }
13134 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13135 unsigned x, unsigned long y) { return 0; }
13136 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13137 unsigned x, unsigned long y) { return 0; }
13138
13139 static const struct block_device_operations
13140 bops __attribute__ ((unused)) = {
13141 .open = blk_open,
13142 .release = NULL,
13143 .ioctl = blk_ioctl,
13144 .compat_ioctl = blk_compat_ioctl,
13145 };
13146
13147int
13148main (void)
13149{
13150
13151
13152 ;
13153 return 0;
13154}
13155
13156_ACEOF
13157
13158
13159
13160cat - <<_ACEOF >conftest.h
13161
13162_ACEOF
13163
13164
13165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13166 echo "obj-m := conftest.o" >build/Makefile
13167 modpost_flag=''
13168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13174 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; }; then :
13180
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
13182$as_echo "struct block_device" >&6; }
13183
13184$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
13185
13186
13187else
13188 $as_echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
13192$as_echo "struct inode" >&6; }
13193
13194
13195
13196fi
13197 rm -Rf build
13198
13199
13200 EXTRA_KCFLAGS="$tmp_flags"
13201
13202
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
13204$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13205 tmp_flags="$EXTRA_KCFLAGS"
13206 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13207
13208
13209cat confdefs.h - <<_ACEOF >conftest.c
13210
13211
13212 #include <linux/blkdev.h>
13213
13214 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13215
13216 static const struct block_device_operations
13217 bops __attribute__ ((unused)) = {
13218 .open = NULL,
13219 .release = blk_release,
13220 .ioctl = NULL,
13221 .compat_ioctl = NULL,
13222 };
13223
13224int
13225main (void)
13226{
13227
13228
13229 ;
13230 return 0;
13231}
13232
13233_ACEOF
13234
13235
13236
13237cat - <<_ACEOF >conftest.h
13238
13239_ACEOF
13240
13241
13242 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13243 echo "obj-m := conftest.o" >build/Makefile
13244 modpost_flag=''
13245 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13246 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13256 test $ac_status = 0; }; }; then :
13257
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
13259$as_echo "void" >&6; }
13260
13261$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
13262
13263
13264else
13265 $as_echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13269$as_echo "int" >&6; }
13270
13271
13272
13273fi
13274 rm -Rf build
13275
13276
13277 EXTRA_KCFLAGS="$tmp_flags"
13278
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13280$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13281
13282
13283cat confdefs.h - <<_ACEOF >conftest.c
13284
13285
13286 #include <linux/types.h>
13287
13288int
13289main (void)
13290{
13291
13292 fmode_t *ptr __attribute__ ((unused));
13293
13294 ;
13295 return 0;
13296}
13297
13298_ACEOF
13299
13300
13301
13302cat - <<_ACEOF >conftest.h
13303
13304_ACEOF
13305
13306
13307 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13308 echo "obj-m := conftest.o" >build/Makefile
13309 modpost_flag=''
13310 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13311 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13316 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13321 test $ac_status = 0; }; }; then :
13322
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13324$as_echo "yes" >&6; }
13325
13326$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
13327
13328
13329else
13330 $as_echo "$as_me: failed program was:" >&5
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335
13336
13337
13338fi
13339 rm -Rf build
13340
13341
13342
13343
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
13345$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13346
13347
13348cat confdefs.h - <<_ACEOF >conftest.c
13349
13350
13351 #include <linux/kobject.h>
13352
13353int
13354main (void)
13355{
13356
13357 int val __attribute__ ((unused));
13358 val = KOBJ_NAME_LEN;
13359
13360 ;
13361 return 0;
13362}
13363
13364_ACEOF
13365
13366
13367
13368cat - <<_ACEOF >conftest.h
13369
13370_ACEOF
13371
13372
13373 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13374 echo "obj-m := conftest.o" >build/Makefile
13375 modpost_flag=''
13376 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13377 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13387 test $ac_status = 0; }; }; then :
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13390$as_echo "yes" >&6; }
13391
13392$as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
13393
13394
13395else
13396 $as_echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400$as_echo "no" >&6; }
13401
13402
13403
13404fi
13405 rm -Rf build
13406
13407
13408
13409
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
13411$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13412
13413
13414cat confdefs.h - <<_ACEOF >conftest.c
13415
13416
13417 #include <linux/fs.h>
13418
13419int
13420main (void)
13421{
13422
13423 struct block_device *bdev = NULL;
13424 (void) blkdev_get(bdev, 0, NULL);
13425
13426 ;
13427 return 0;
13428}
13429
13430_ACEOF
13431
13432
13433
13434cat - <<_ACEOF >conftest.h
13435
13436_ACEOF
13437
13438
13439 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13440 echo "obj-m := conftest.o" >build/Makefile
13441 modpost_flag=''
13442 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13443 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13448 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13453 test $ac_status = 0; }; }; then :
13454
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13456$as_echo "yes" >&6; }
13457
13458$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
13459
13460
13461else
13462 $as_echo "$as_me: failed program was:" >&5
13463sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466$as_echo "no" >&6; }
13467
13468
13469
13470fi
13471 rm -Rf build
13472
13473
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
13476$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13477
13478
13479
13480cat confdefs.h - <<_ACEOF >conftest.c
13481
13482
13483 #include <linux/fs.h>
13484
13485int
13486main (void)
13487{
13488
13489 blkdev_get_by_path(NULL, 0, NULL);
13490
13491 ;
13492 return 0;
13493}
13494
13495_ACEOF
13496
13497
13498
13499cat - <<_ACEOF >conftest.h
13500
13501_ACEOF
13502
13503
13504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13505 echo "obj-m := conftest.o" >build/Makefile
13506 modpost_flag=''
13507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13508 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13513 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13518 test $ac_status = 0; }; }; then :
13519 rc=0
13520else
13521 $as_echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523 rc=1
13524
13525
13526fi
13527 rm -Rf build
13528
13529
13530 if test $rc -ne 0; then :
13531
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533$as_echo "no" >&6; }
13534
13535 else
13536 if test "x$enable_linux_builtin" != xyes; then
13537
13538 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13539 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13540 rc=$?
13541 if test $rc -ne 0; then
13542 export=0
13543 for file in fs/block_dev.c; do
13544 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13545 "$LINUX/$file" 2>/dev/null
13546 rc=$?
13547 if test $rc -eq 0; then
13548 export=1
13549 break;
13550 fi
13551 done
13552 if test $export -eq 0; then :
13553 rc=1
13554 else :
13555 rc=0
13556 fi
13557 else :
13558 rc=0
13559 fi
13560
13561 fi
13562 if test $rc -ne 0; then :
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565$as_echo "no" >&6; }
13566
13567 else :
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570$as_echo "yes" >&6; }
13571
13572$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
13573
13574
13575 fi
13576 fi
13577
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
13580$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13581
13582
13583
13584cat confdefs.h - <<_ACEOF >conftest.c
13585
13586
13587 #include <linux/fs.h>
13588
13589int
13590main (void)
13591{
13592
13593 open_bdev_exclusive(NULL, 0, NULL);
13594
13595 ;
13596 return 0;
13597}
13598
13599_ACEOF
13600
13601
13602
13603cat - <<_ACEOF >conftest.h
13604
13605_ACEOF
13606
13607
13608 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13609 echo "obj-m := conftest.o" >build/Makefile
13610 modpost_flag=''
13611 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13612 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13617 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622 test $ac_status = 0; }; }; then :
13623 rc=0
13624else
13625 $as_echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627 rc=1
13628
13629
13630fi
13631 rm -Rf build
13632
13633
13634 if test $rc -ne 0; then :
13635
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
13638
13639 else
13640 if test "x$enable_linux_builtin" != xyes; then
13641
13642 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13643 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13644 rc=$?
13645 if test $rc -ne 0; then
13646 export=0
13647 for file in fs/block_dev.c; do
13648 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13649 "$LINUX/$file" 2>/dev/null
13650 rc=$?
13651 if test $rc -eq 0; then
13652 export=1
13653 break;
13654 fi
13655 done
13656 if test $export -eq 0; then :
13657 rc=1
13658 else :
13659 rc=0
13660 fi
13661 else :
13662 rc=0
13663 fi
13664
13665 fi
13666 if test $rc -ne 0; then :
13667
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669$as_echo "no" >&6; }
13670
13671 else :
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13674$as_echo "yes" >&6; }
13675
13676$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
13677
13678
13679 fi
13680 fi
13681
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
13684$as_echo_n "checking whether lookup_bdev() is available... " >&6; }
13685
13686
13687
13688cat confdefs.h - <<_ACEOF >conftest.c
13689
13690
13691 #include <linux/fs.h>
13692
13693int
13694main (void)
13695{
13696
13697 lookup_bdev(NULL);
13698
13699 ;
13700 return 0;
13701}
13702
13703_ACEOF
13704
13705
13706
13707cat - <<_ACEOF >conftest.h
13708
13709_ACEOF
13710
13711
13712 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13713 echo "obj-m := conftest.o" >build/Makefile
13714 modpost_flag=''
13715 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13716 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13721 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; }; }; then :
13727 rc=0
13728else
13729 $as_echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731 rc=1
13732
13733
13734fi
13735 rm -Rf build
13736
13737
13738 if test $rc -ne 0; then :
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741$as_echo "no" >&6; }
13742
13743 else
13744 if test "x$enable_linux_builtin" != xyes; then
13745
13746 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
13747 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13748 rc=$?
13749 if test $rc -ne 0; then
13750 export=0
13751 for file in fs/block_dev.c; do
13752 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
13753 "$LINUX/$file" 2>/dev/null
13754 rc=$?
13755 if test $rc -eq 0; then
13756 export=1
13757 break;
13758 fi
13759 done
13760 if test $export -eq 0; then :
13761 rc=1
13762 else :
13763 rc=0
13764 fi
13765 else :
13766 rc=0
13767 fi
13768
13769 fi
13770 if test $rc -ne 0; then :
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773$as_echo "no" >&6; }
13774
13775 else :
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778$as_echo "yes" >&6; }
13779
13780$as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
13781
13782
13783 fi
13784 fi
13785
13786
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
13789$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13790
13791
13792cat confdefs.h - <<_ACEOF >conftest.c
13793
13794
13795 #include <linux/buffer_head.h>
13796
13797int
13798main (void)
13799{
13800
13801 struct block_device *bdev = NULL;
13802 invalidate_bdev(bdev);
13803
13804 ;
13805 return 0;
13806}
13807
13808_ACEOF
13809
13810
13811
13812cat - <<_ACEOF >conftest.h
13813
13814_ACEOF
13815
13816
13817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13818 echo "obj-m := conftest.o" >build/Makefile
13819 modpost_flag=''
13820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13821 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13831 test $ac_status = 0; }; }; then :
13832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13834$as_echo "yes" >&6; }
13835
13836$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
13837
13838
13839else
13840 $as_echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844$as_echo "no" >&6; }
13845
13846
13847
13848fi
13849 rm -Rf build
13850
13851
13852
13853
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
13855$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13856 tmp_flags="$EXTRA_KCFLAGS"
13857 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13858
13859
13860cat confdefs.h - <<_ACEOF >conftest.c
13861
13862
13863 #include <linux/blkdev.h>
13864
13865int
13866main (void)
13867{
13868
13869 struct block_device *bdev = NULL;
13870 bdev_logical_block_size(bdev);
13871
13872 ;
13873 return 0;
13874}
13875
13876_ACEOF
13877
13878
13879
13880cat - <<_ACEOF >conftest.h
13881
13882_ACEOF
13883
13884
13885 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13886 echo "obj-m := conftest.o" >build/Makefile
13887 modpost_flag=''
13888 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13889 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13899 test $ac_status = 0; }; }; then :
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13902$as_echo "yes" >&6; }
13903
13904$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
13905
13906
13907else
13908 $as_echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912$as_echo "no" >&6; }
13913
13914
13915
13916fi
13917 rm -Rf build
13918
13919
13920 EXTRA_KCFLAGS="$tmp_flags"
13921
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
13924$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
13925 tmp_flags="$EXTRA_KCFLAGS"
13926 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13927
13928
13929cat confdefs.h - <<_ACEOF >conftest.c
13930
13931
13932 #include <linux/blkdev.h>
13933
13934int
13935main (void)
13936{
13937
13938 struct block_device *bdev = NULL;
13939 bdev_physical_block_size(bdev);
13940
13941 ;
13942 return 0;
13943}
13944
13945_ACEOF
13946
13947
13948
13949cat - <<_ACEOF >conftest.h
13950
13951_ACEOF
13952
13953
13954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13955 echo "obj-m := conftest.o" >build/Makefile
13956 modpost_flag=''
13957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; }; }; then :
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13971$as_echo "yes" >&6; }
13972
13973$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13974
13975
13976else
13977 $as_echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981$as_echo "no" >&6; }
13982
13983
13984
13985fi
13986 rm -Rf build
13987
13988
13989 EXTRA_KCFLAGS="$tmp_flags"
13990
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
13993$as_echo_n "checking whether bio has bi_iter... " >&6; }
13994
13995
13996cat confdefs.h - <<_ACEOF >conftest.c
13997
13998
13999 #include <linux/bio.h>
14000
14001int
14002main (void)
14003{
14004
14005 struct bio bio;
14006 bio.bi_iter.bi_sector = 0;
14007
14008 ;
14009 return 0;
14010}
14011
14012_ACEOF
14013
14014
14015
14016cat - <<_ACEOF >conftest.h
14017
14018_ACEOF
14019
14020
14021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14022 echo "obj-m := conftest.o" >build/Makefile
14023 modpost_flag=''
14024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }; }; then :
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14038$as_echo "yes" >&6; }
14039
14040$as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
14041
14042
14043else
14044 $as_echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048$as_echo "no" >&6; }
14049
14050
14051
14052fi
14053 rm -Rf build
14054
14055
14056
14057
e10b0808
AX
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
14059$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
ea04106b
AX
14060
14061
14062cat confdefs.h - <<_ACEOF >conftest.c
14063
14064
14065 #include <linux/bio.h>
14066
14067int
14068main (void)
14069{
14070
14071 int flags __attribute__ ((unused));
e10b0808
AX
14072 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14073 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14074 (1 << BIO_RW_FAILFAST_DRIVER));
ea04106b
AX
14075
14076 ;
14077 return 0;
14078}
14079
14080_ACEOF
14081
14082
14083
14084cat - <<_ACEOF >conftest.h
14085
14086_ACEOF
14087
14088
14089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14090 echo "obj-m := conftest.o" >build/Makefile
14091 modpost_flag=''
14092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14093 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14098 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14103 test $ac_status = 0; }; }; then :
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14106$as_echo "yes" >&6; }
14107
e10b0808 14108$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
ea04106b
AX
14109
14110
14111else
14112 $as_echo "$as_me: failed program was:" >&5
14113sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116$as_echo "no" >&6; }
14117
14118
14119
14120fi
14121 rm -Rf build
14122
14123
14124
14125
e10b0808
AX
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
14127$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
ea04106b
AX
14128
14129
14130cat confdefs.h - <<_ACEOF >conftest.c
14131
14132
14133 #include <linux/bio.h>
14134
14135int
14136main (void)
14137{
14138
14139 int flags __attribute__ ((unused));
e10b0808 14140 flags = REQ_FAILFAST_MASK;
ea04106b
AX
14141
14142 ;
14143 return 0;
14144}
14145
14146_ACEOF
14147
14148
14149
14150cat - <<_ACEOF >conftest.h
14151
14152_ACEOF
14153
14154
14155 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14156 echo "obj-m := conftest.o" >build/Makefile
14157 modpost_flag=''
14158 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14159 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14164 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169 test $ac_status = 0; }; }; then :
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14172$as_echo "yes" >&6; }
14173
e10b0808 14174$as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
ea04106b
AX
14175
14176
14177else
14178 $as_echo "$as_me: failed program was:" >&5
14179sed 's/^/| /' conftest.$ac_ext >&5
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182$as_echo "no" >&6; }
14183
14184
14185
14186fi
14187 rm -Rf build
14188
14189
14190
14191
87dac73d
AX
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
14193$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
ea04106b
AX
14194
14195
14196cat confdefs.h - <<_ACEOF >conftest.c
14197
14198
87dac73d 14199 #include <linux/blk_types.h>
e10b0808 14200
ea04106b
AX
14201int
14202main (void)
14203{
14204
87dac73d 14205 enum req_op op __attribute__ ((unused)) = REQ_OP_DISCARD;
ea04106b
AX
14206
14207 ;
14208 return 0;
14209}
14210
14211_ACEOF
14212
14213
14214
14215cat - <<_ACEOF >conftest.h
14216
14217_ACEOF
14218
14219
14220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14221 echo "obj-m := conftest.o" >build/Makefile
14222 modpost_flag=''
14223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14229 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234 test $ac_status = 0; }; }; then :
14235
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14237$as_echo "yes" >&6; }
14238
87dac73d 14239$as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
ea04106b
AX
14240
14241
14242else
14243 $as_echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247$as_echo "no" >&6; }
14248
14249
14250
14251fi
14252 rm -Rf build
14253
14254
14255
14256
87dac73d
AX
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
14258$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
ea04106b
AX
14259
14260
14261cat confdefs.h - <<_ACEOF >conftest.c
14262
14263
87dac73d 14264 #include <linux/blk_types.h>
ea04106b 14265
ea04106b
AX
14266int
14267main (void)
14268{
14269
87dac73d 14270 enum req_op op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
ea04106b
AX
14271
14272 ;
14273 return 0;
14274}
14275
14276_ACEOF
14277
14278
14279
14280cat - <<_ACEOF >conftest.h
14281
14282_ACEOF
14283
14284
14285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14286 echo "obj-m := conftest.o" >build/Makefile
14287 modpost_flag=''
14288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14294 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299 test $ac_status = 0; }; }; then :
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302$as_echo "yes" >&6; }
14303
87dac73d 14304$as_echo "#define HAVE_REQ_OP_SECURE_DISCARD 1" >>confdefs.h
ea04106b
AX
14305
14306
14307else
14308 $as_echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312$as_echo "no" >&6; }
14313
14314
14315
14316fi
14317 rm -Rf build
14318
14319
14320
14321
87dac73d
AX
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
14323$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
ea04106b
AX
14324
14325
14326cat confdefs.h - <<_ACEOF >conftest.c
14327
14328
87dac73d 14329 #include <linux/blk_types.h>
ea04106b
AX
14330
14331int
14332main (void)
14333{
14334
87dac73d 14335 enum req_op op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b
AX
14336
14337 ;
14338 return 0;
14339}
14340
14341_ACEOF
14342
14343
14344
14345cat - <<_ACEOF >conftest.h
14346
14347_ACEOF
14348
14349
14350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14351 echo "obj-m := conftest.o" >build/Makefile
14352 modpost_flag=''
14353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14359 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364 test $ac_status = 0; }; }; then :
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14367$as_echo "yes" >&6; }
14368
87dac73d 14369$as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
ea04106b
AX
14370
14371
14372else
14373 $as_echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377$as_echo "no" >&6; }
14378
14379
14380
14381fi
14382 rm -Rf build
14383
14384
14385
14386
87dac73d
AX
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
14388$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
ea04106b
AX
14389
14390
14391cat confdefs.h - <<_ACEOF >conftest.c
14392
14393
87dac73d 14394 #include <linux/bio.h>
ea04106b
AX
14395
14396int
14397main (void)
14398{
14399
87dac73d
AX
14400 struct bio bio __attribute__ ((unused));
14401 bio.bi_opf = 0;
ea04106b
AX
14402
14403 ;
14404 return 0;
14405}
14406
14407_ACEOF
14408
14409
14410
14411cat - <<_ACEOF >conftest.h
14412
14413_ACEOF
14414
14415
14416 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14417 echo "obj-m := conftest.o" >build/Makefile
14418 modpost_flag=''
14419 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14420 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; }; }; then :
14431
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14433$as_echo "yes" >&6; }
14434
87dac73d 14435$as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
ea04106b
AX
14436
14437
14438else
14439 $as_echo "$as_me: failed program was:" >&5
14440sed 's/^/| /' conftest.$ac_ext >&5
14441
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443$as_echo "no" >&6; }
14444
14445
14446
14447fi
14448 rm -Rf build
14449
14450
14451
ea04106b 14452
87dac73d
AX
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
14454$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
ea04106b
AX
14455
14456
14457cat confdefs.h - <<_ACEOF >conftest.c
14458
14459
87dac73d 14460 #include <linux/bio.h>
ea04106b 14461
87dac73d 14462 void wanted_end_io(struct bio *bio) { return; }
ea04106b 14463
87dac73d 14464 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
ea04106b 14465
ea04106b
AX
14466int
14467main (void)
14468{
14469
ea04106b
AX
14470
14471 ;
14472 return 0;
14473}
14474
14475_ACEOF
14476
14477
14478
14479cat - <<_ACEOF >conftest.h
14480
14481_ACEOF
14482
14483
14484 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14485 echo "obj-m := conftest.o" >build/Makefile
14486 modpost_flag=''
14487 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14488 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14493 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14498 test $ac_status = 0; }; }; then :
14499
e10b0808
AX
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14501$as_echo "yes" >&6; }
14502
87dac73d 14503$as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
e10b0808 14504
ea04106b
AX
14505
14506else
14507 $as_echo "$as_me: failed program was:" >&5
14508sed 's/^/| /' conftest.$ac_ext >&5
14509
e10b0808
AX
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511$as_echo "no" >&6; }
ea04106b
AX
14512
14513
14514
14515fi
14516 rm -Rf build
14517
14518
ea04106b
AX
14519
14520
87dac73d
AX
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
14522$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
ea04106b
AX
14523
14524
14525cat confdefs.h - <<_ACEOF >conftest.c
14526
14527
87dac73d 14528 #include <linux/bio.h>
ea04106b
AX
14529
14530int
14531main (void)
14532{
14533
87dac73d
AX
14534 int flags __attribute__ ((unused));
14535 flags = BIO_RW_BARRIER;
ea04106b
AX
14536
14537 ;
14538 return 0;
14539}
14540
14541_ACEOF
14542
14543
14544
14545cat - <<_ACEOF >conftest.h
14546
14547_ACEOF
14548
14549
14550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14551 echo "obj-m := conftest.o" >build/Makefile
14552 modpost_flag=''
14553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14554 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14564 test $ac_status = 0; }; }; then :
14565
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14567$as_echo "yes" >&6; }
14568
87dac73d 14569$as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
ea04106b
AX
14570
14571
14572else
14573 $as_echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577$as_echo "no" >&6; }
14578
14579
14580
14581fi
14582 rm -Rf build
14583
14584
14585
ea04106b 14586
87dac73d
AX
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
14588$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
ea04106b 14589
ea04106b 14590
e10b0808 14591cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 14592
ea04106b 14593
87dac73d 14594 #include <linux/bio.h>
ea04106b
AX
14595
14596int
14597main (void)
14598{
14599
87dac73d
AX
14600 int flags __attribute__ ((unused));
14601 flags = BIO_RW_DISCARD;
14602
14603 ;
14604 return 0;
14605}
14606
14607_ACEOF
14608
14609
14610
14611cat - <<_ACEOF >conftest.h
14612
14613_ACEOF
14614
14615
14616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14617 echo "obj-m := conftest.o" >build/Makefile
14618 modpost_flag=''
14619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14630 test $ac_status = 0; }; }; then :
14631
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14633$as_echo "yes" >&6; }
14634
14635$as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
14636
14637
14638else
14639 $as_echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643$as_echo "no" >&6; }
14644
14645
14646
14647fi
14648 rm -Rf build
14649
14650
14651
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
14654$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14655 tmp_flags="$EXTRA_KCFLAGS"
14656 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14657
14658
14659cat confdefs.h - <<_ACEOF >conftest.c
14660
14661
14662 #include <linux/blkdev.h>
14663
14664int
14665main (void)
14666{
14667
14668 struct request_queue *q = NULL;
14669 (void) blk_queue_flush(q, REQ_FLUSH);
14670
14671 ;
14672 return 0;
14673}
14674
14675_ACEOF
14676
14677
14678
14679cat - <<_ACEOF >conftest.h
14680
14681_ACEOF
14682
14683
14684 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14685 echo "obj-m := conftest.o" >build/Makefile
14686 modpost_flag=''
14687 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14688 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14693 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14698 test $ac_status = 0; }; }; then :
14699
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14701$as_echo "yes" >&6; }
14702
14703$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
14704
14705
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
14707$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14708
14709
14710cat confdefs.h - <<_ACEOF >conftest.c
14711
14712
14713 #include <linux/module.h>
14714 #include <linux/blkdev.h>
14715
14716 MODULE_LICENSE("$ZFS_META_LICENSE");
14717
14718int
14719main (void)
14720{
14721
14722 struct request_queue *q = NULL;
14723 (void) blk_queue_flush(q, REQ_FLUSH);
14724
14725 ;
14726 return 0;
14727}
14728
14729_ACEOF
14730
14731
14732
14733cat - <<_ACEOF >conftest.h
14734
14735_ACEOF
14736
14737
14738 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14739 echo "obj-m := conftest.o" >build/Makefile
14740 modpost_flag=''
14741 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14742 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14747 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752 test $ac_status = 0; }; }; then :
14753
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755$as_echo "no" >&6; }
14756
14757else
14758 $as_echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762$as_echo "yes" >&6; }
14763
14764$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
14765
14766
14767
14768
14769fi
14770 rm -Rf build
14771
14772
14773
14774else
14775 $as_echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779$as_echo "no" >&6; }
14780
14781
14782
14783fi
14784 rm -Rf build
14785
14786
14787
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
14789$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
14790
14791
14792cat confdefs.h - <<_ACEOF >conftest.c
14793
14794
14795 #include <linux/kernel.h>
14796 #include <linux/blkdev.h>
14797
14798
14799int
14800main (void)
14801{
14802
14803 struct request_queue *q = NULL;
14804 blk_queue_write_cache(q, true, true);
14805
14806 ;
14807 return 0;
14808}
14809
14810_ACEOF
14811
14812
14813
14814cat - <<_ACEOF >conftest.h
14815
14816_ACEOF
14817
14818
14819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14820 echo "obj-m := conftest.o" >build/Makefile
14821 modpost_flag=''
14822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14823 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14833 test $ac_status = 0; }; }; then :
14834
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14836$as_echo "yes" >&6; }
14837
14838$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
14839
14840
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
14842$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
14843
14844
14845cat confdefs.h - <<_ACEOF >conftest.c
14846
14847
14848 #include <linux/kernel.h>
14849 #include <linux/module.h>
14850 #include <linux/blkdev.h>
14851
14852 MODULE_LICENSE("$ZFS_META_LICENSE");
14853
14854int
14855main (void)
14856{
14857
14858 struct request_queue *q = NULL;
14859 blk_queue_write_cache(q, true, true);
14860
14861 ;
14862 return 0;
14863}
14864
14865_ACEOF
14866
14867
14868
14869cat - <<_ACEOF >conftest.h
14870
14871_ACEOF
14872
14873
14874 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14875 echo "obj-m := conftest.o" >build/Makefile
14876 modpost_flag=''
14877 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14878 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14883 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; }; }; then :
14889
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891$as_echo "no" >&6; }
14892
14893else
14894 $as_echo "$as_me: failed program was:" >&5
14895sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14898$as_echo "yes" >&6; }
14899
14900$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
14901
14902
14903
14904
14905fi
14906 rm -Rf build
14907
14908
14909
14910else
14911 $as_echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915$as_echo "no" >&6; }
14916
14917
14918
14919fi
14920 rm -Rf build
14921
14922
14923
14924 EXTRA_KCFLAGS="$tmp_flags"
14925
14926
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
14928$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14929 tmp_flags="$EXTRA_KCFLAGS"
14930 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14931
14932
14933cat confdefs.h - <<_ACEOF >conftest.c
14934
14935
14936 #include <linux/blkdev.h>
14937
14938int
14939main (void)
14940{
14941
14942 struct request_queue *q = NULL;
14943 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14944
14945 ;
14946 return 0;
14947}
14948
14949_ACEOF
14950
14951
14952
14953cat - <<_ACEOF >conftest.h
14954
14955_ACEOF
14956
14957
14958 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14959 echo "obj-m := conftest.o" >build/Makefile
14960 modpost_flag=''
14961 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14962 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14967 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14972 test $ac_status = 0; }; }; then :
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14975$as_echo "yes" >&6; }
14976
14977$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
14978
14979
14980else
14981 $as_echo "$as_me: failed program was:" >&5
14982sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14985$as_echo "no" >&6; }
14986
14987
14988
14989fi
14990 rm -Rf build
14991
14992
14993 EXTRA_KCFLAGS="$tmp_flags"
14994
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
14997$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14998 tmp_flags="$EXTRA_KCFLAGS"
14999 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15000
15001
15002cat confdefs.h - <<_ACEOF >conftest.c
15003
15004
15005 #include <linux/blkdev.h>
15006
15007int
15008main (void)
15009{
15010
15011 struct request_queue *q = NULL;
15012 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
15013
15014 ;
15015 return 0;
15016}
15017
15018_ACEOF
15019
15020
15021
15022cat - <<_ACEOF >conftest.h
15023
15024_ACEOF
15025
15026
15027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15028 echo "obj-m := conftest.o" >build/Makefile
15029 modpost_flag=''
15030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15031 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15036 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 test $ac_status = 0; }; }; then :
15042
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15044$as_echo "yes" >&6; }
15045
15046$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
15047
15048
15049else
15050 $as_echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054$as_echo "no" >&6; }
15055
15056
15057
15058fi
15059 rm -Rf build
15060
15061
15062 EXTRA_KCFLAGS="$tmp_flags"
15063
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
15066$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15067 tmp_flags="$EXTRA_KCFLAGS"
15068 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15069
15070
15071cat confdefs.h - <<_ACEOF >conftest.c
15072
15073
15074 #include <linux/blkdev.h>
15075
15076int
15077main (void)
15078{
15079
15080 struct gendisk *disk = NULL;
15081 (void) get_disk_ro(disk);
15082
15083 ;
15084 return 0;
15085}
15086
15087_ACEOF
15088
15089
15090
15091cat - <<_ACEOF >conftest.h
15092
15093_ACEOF
15094
15095
15096 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15097 echo "obj-m := conftest.o" >build/Makefile
15098 modpost_flag=''
15099 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15100 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15102 (eval $ac_try) 2>&5
15103 ac_status=$?
15104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15107 (eval $ac_try) 2>&5
15108 ac_status=$?
15109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110 test $ac_status = 0; }; }; then :
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15113$as_echo "yes" >&6; }
15114
15115$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
15116
15117
15118else
15119 $as_echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15123$as_echo "no" >&6; }
15124
15125
15126
15127fi
15128 rm -Rf build
15129
15130
15131 EXTRA_KCFLAGS="$tmp_flags"
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
15134$as_echo_n "checking whether get_gendisk() is available... " >&6; }
15135
15136
15137
15138cat confdefs.h - <<_ACEOF >conftest.c
15139
15140
15141 #include <linux/genhd.h>
15142
15143int
15144main (void)
15145{
15146
15147 get_gendisk(0, NULL);
ea04106b
AX
15148
15149 ;
15150 return 0;
15151}
15152
15153_ACEOF
15154
15155
15156
15157cat - <<_ACEOF >conftest.h
15158
15159_ACEOF
15160
15161
15162 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15163 echo "obj-m := conftest.o" >build/Makefile
15164 modpost_flag=''
15165 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15166 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15171 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15176 test $ac_status = 0; }; }; then :
e10b0808
AX
15177 rc=0
15178else
15179 $as_echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181 rc=1
15182
15183
15184fi
15185 rm -Rf build
15186
15187
15188 if test $rc -ne 0; then :
ea04106b
AX
15189
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191$as_echo "no" >&6; }
15192
e10b0808
AX
15193 else
15194 if test "x$enable_linux_builtin" != xyes; then
ea04106b 15195
e10b0808
AX
15196 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15197 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15198 rc=$?
15199 if test $rc -ne 0; then
15200 export=0
15201 for file in block/genhd.c; do
15202 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15203 "$LINUX/$file" 2>/dev/null
15204 rc=$?
15205 if test $rc -eq 0; then
15206 export=1
15207 break;
15208 fi
15209 done
15210 if test $export -eq 0; then :
15211 rc=1
15212 else :
15213 rc=0
15214 fi
15215 else :
15216 rc=0
15217 fi
ea04106b 15218
e10b0808
AX
15219 fi
15220 if test $rc -ne 0; then :
ea04106b 15221
e10b0808
AX
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15223$as_echo "no" >&6; }
ea04106b 15224
e10b0808 15225 else :
ea04106b 15226
e10b0808
AX
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15228$as_echo "yes" >&6; }
ea04106b 15229
e10b0808 15230$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
ea04106b
AX
15231
15232
e10b0808
AX
15233 fi
15234 fi
ea04106b
AX
15235
15236
e10b0808
AX
15237
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
15239$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
ea04106b
AX
15240
15241
15242cat confdefs.h - <<_ACEOF >conftest.c
15243
15244
15245 #include <linux/blkdev.h>
15246
15247int
15248main (void)
15249{
15250
e10b0808
AX
15251 struct queue_limits ql __attribute__ ((unused));
15252
15253 ql.discard_granularity = 0;
ea04106b
AX
15254
15255 ;
15256 return 0;
15257}
15258
15259_ACEOF
15260
15261
15262
15263cat - <<_ACEOF >conftest.h
15264
15265_ACEOF
15266
15267
15268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15269 echo "obj-m := conftest.o" >build/Makefile
15270 modpost_flag=''
15271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15277 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15279 (eval $ac_try) 2>&5
15280 ac_status=$?
15281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15282 test $ac_status = 0; }; }; then :
15283
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285$as_echo "yes" >&6; }
15286
e10b0808 15287$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
ea04106b
AX
15288
15289
15290else
15291 $as_echo "$as_me: failed program was:" >&5
15292sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295$as_echo "no" >&6; }
15296
15297
15298
15299fi
15300 rm -Rf build
15301
15302
ea04106b 15303
4d815aed
AX
15304
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
15306$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
ea04106b
AX
15307
15308
15309cat confdefs.h - <<_ACEOF >conftest.c
15310
15311
e10b0808
AX
15312 #include <linux/fs.h>
15313 #include <linux/xattr.h>
15314
15315 const struct xattr_handler xattr_test_handler = {
15316 .prefix = "test",
15317 .get = NULL,
15318 .set = NULL,
15319 };
15320
15321 const struct xattr_handler *xattr_handlers[] = {
15322 &xattr_test_handler,
15323 };
15324
15325 const struct super_block sb __attribute__ ((unused)) = {
15326 .s_xattr = xattr_handlers,
15327 };
ea04106b
AX
15328
15329int
15330main (void)
15331{
15332
ea04106b
AX
15333
15334 ;
15335 return 0;
15336}
15337
15338_ACEOF
15339
15340
15341
15342cat - <<_ACEOF >conftest.h
15343
15344_ACEOF
15345
15346
15347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15348 echo "obj-m := conftest.o" >build/Makefile
15349 modpost_flag=''
15350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15351 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15356 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15361 test $ac_status = 0; }; }; then :
15362
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364$as_echo "yes" >&6; }
15365
e10b0808 15366$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
ea04106b
AX
15367
15368
15369else
15370 $as_echo "$as_me: failed program was:" >&5
15371sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15374$as_echo "no" >&6; }
15375
15376
15377
5eacc075
AX
15378fi
15379 rm -Rf build
15380
15381
15382
15383
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
15385$as_echo_n "checking whether xattr_handler has name... " >&6; }
15386
15387
15388cat confdefs.h - <<_ACEOF >conftest.c
15389
15390
15391 #include <linux/xattr.h>
15392
15393 static const struct xattr_handler
15394 xops __attribute__ ((unused)) = {
15395 .name = XATTR_NAME_POSIX_ACL_ACCESS,
15396 };
15397
15398int
15399main (void)
15400{
15401
15402
15403 ;
15404 return 0;
15405}
15406
15407_ACEOF
15408
15409
15410
15411cat - <<_ACEOF >conftest.h
15412
15413_ACEOF
15414
15415
15416 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15417 echo "obj-m := conftest.o" >build/Makefile
15418 modpost_flag=''
15419 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15420 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15430 test $ac_status = 0; }; }; then :
15431
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15433$as_echo "yes" >&6; }
15434
15435$as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
15436
15437
15438else
15439 $as_echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443$as_echo "no" >&6; }
15444
15445
15446
ea04106b
AX
15447fi
15448 rm -Rf build
15449
15450
ea04106b
AX
15451
15452
87dac73d
AX
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
15454$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
ea04106b
AX
15455
15456
15457cat confdefs.h - <<_ACEOF >conftest.c
15458
15459
e10b0808
AX
15460 #include <linux/xattr.h>
15461
4d815aed 15462 int get(const struct xattr_handler *handler,
87dac73d
AX
15463 struct dentry *dentry, struct inode *inode,
15464 const char *name, void *buffer, size_t size) { return 0; }
e10b0808
AX
15465 static const struct xattr_handler
15466 xops __attribute__ ((unused)) = {
15467 .get = get,
15468 };
ea04106b
AX
15469
15470int
15471main (void)
15472{
15473
ea04106b
AX
15474
15475 ;
15476 return 0;
15477}
15478
15479_ACEOF
15480
15481
15482
15483cat - <<_ACEOF >conftest.h
15484
15485_ACEOF
15486
15487
15488 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15489 echo "obj-m := conftest.o" >build/Makefile
15490 modpost_flag=''
15491 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15492 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15497 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15502 test $ac_status = 0; }; }; then :
15503
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15505$as_echo "yes" >&6; }
15506
87dac73d 15507$as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
ea04106b
AX
15508
15509
15510else
15511 $as_echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
87dac73d
AX
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
15515$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
94a40997
AX
15516
15517
15518cat confdefs.h - <<_ACEOF >conftest.c
15519
15520
15521 #include <linux/xattr.h>
15522
87dac73d
AX
15523 int get(const struct xattr_handler *handler,
15524 struct dentry *dentry, const char *name,
15525 void *buffer, size_t size) { return 0; }
94a40997
AX
15526 static const struct xattr_handler
15527 xops __attribute__ ((unused)) = {
15528 .get = get,
15529 };
15530
15531int
15532main (void)
15533{
15534
15535
15536 ;
15537 return 0;
15538}
15539
15540_ACEOF
15541
15542
15543
15544cat - <<_ACEOF >conftest.h
15545
15546_ACEOF
15547
15548
15549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15550 echo "obj-m := conftest.o" >build/Makefile
15551 modpost_flag=''
15552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15553 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 test $ac_status = 0; }; }; then :
15564
87dac73d
AX
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566$as_echo "yes" >&6; }
15567
15568$as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
15569
15570
15571else
15572 $as_echo "$as_me: failed program was:" >&5
15573sed 's/^/| /' conftest.$ac_ext >&5
15574
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576$as_echo "no" >&6; }
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
15578$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15579
15580
15581cat confdefs.h - <<_ACEOF >conftest.c
15582
15583
15584 #include <linux/xattr.h>
15585
15586 int get(struct dentry *dentry, const char *name,
15587 void *buffer, size_t size, int handler_flags)
15588 { return 0; }
15589 static const struct xattr_handler
15590 xops __attribute__ ((unused)) = {
15591 .get = get,
15592 };
15593
15594int
15595main (void)
15596{
15597
15598
15599 ;
15600 return 0;
15601}
15602
15603_ACEOF
15604
15605
15606
15607cat - <<_ACEOF >conftest.h
15608
15609_ACEOF
15610
15611
15612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15613 echo "obj-m := conftest.o" >build/Makefile
15614 modpost_flag=''
15615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15626 test $ac_status = 0; }; }; then :
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15629$as_echo "yes" >&6; }
15630
15631$as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
15632
15633
15634else
15635 $as_echo "$as_me: failed program was:" >&5
15636sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639$as_echo "no" >&6; }
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
15641$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
15642
15643
15644cat confdefs.h - <<_ACEOF >conftest.c
15645
15646
15647 #include <linux/xattr.h>
15648
15649 int get(struct inode *ip, const char *name,
15650 void *buffer, size_t size) { return 0; }
15651 static const struct xattr_handler
15652 xops __attribute__ ((unused)) = {
15653 .get = get,
15654 };
15655
15656int
15657main (void)
15658{
15659
15660
15661 ;
15662 return 0;
15663}
15664
15665_ACEOF
15666
15667
15668
15669cat - <<_ACEOF >conftest.h
15670
15671_ACEOF
15672
15673
15674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15675 echo "obj-m := conftest.o" >build/Makefile
15676 modpost_flag=''
15677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15688 test $ac_status = 0; }; }; then :
15689
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94a40997
AX
15691$as_echo "yes" >&6; }
15692
87dac73d 15693$as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
94a40997
AX
15694
15695
15696else
15697 $as_echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
87dac73d
AX
15700 as_fn_error $? "no; please file a bug report" "$LINENO" 5
15701
15702
15703
15704fi
15705 rm -Rf build
15706
15707
15708
15709
15710
15711fi
15712 rm -Rf build
15713
15714
15715
15716
15717
15718fi
15719 rm -Rf build
15720
15721
15722
15723
15724
15725fi
15726 rm -Rf build
15727
15728
15729
15730
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
15732$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
4d815aed
AX
15733
15734
15735cat confdefs.h - <<_ACEOF >conftest.c
15736
15737
87dac73d 15738 #include <linux/xattr.h>
4d815aed 15739
87dac73d
AX
15740 int set(const struct xattr_handler *handler,
15741 struct dentry *dentry, struct inode *inode,
15742 const char *name, const void *buffer,
15743 size_t size, int flags)
15744 { return 0; }
15745 static const struct xattr_handler
15746 xops __attribute__ ((unused)) = {
15747 .set = set,
15748 };
4d815aed
AX
15749
15750int
15751main (void)
15752{
15753
15754
15755 ;
15756 return 0;
15757}
15758
15759_ACEOF
15760
15761
15762
15763cat - <<_ACEOF >conftest.h
15764
15765_ACEOF
15766
15767
15768 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15769 echo "obj-m := conftest.o" >build/Makefile
15770 modpost_flag=''
15771 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15772 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15777 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15782 test $ac_status = 0; }; }; then :
15783
87dac73d 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4d815aed
AX
15785$as_echo "yes" >&6; }
15786
87dac73d 15787$as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
4d815aed
AX
15788
15789
15790else
15791 $as_echo "$as_me: failed program was:" >&5
15792sed 's/^/| /' conftest.$ac_ext >&5
15793
87dac73d 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
4d815aed 15795$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
ea04106b
AX
15796
15797
15798cat confdefs.h - <<_ACEOF >conftest.c
15799
15800
87dac73d 15801 #include <linux/xattr.h>
e10b0808 15802
87dac73d
AX
15803 int set(const struct xattr_handler *handler,
15804 struct dentry *dentry, const char *name,
15805 const void *buffer, size_t size, int flags)
15806 { return 0; }
15807 static const struct xattr_handler
15808 xops __attribute__ ((unused)) = {
15809 .set = set,
15810 };
ea04106b
AX
15811
15812int
15813main (void)
15814{
15815
ea04106b
AX
15816
15817 ;
15818 return 0;
15819}
15820
15821_ACEOF
15822
15823
15824
15825cat - <<_ACEOF >conftest.h
15826
15827_ACEOF
15828
15829
15830 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15831 echo "obj-m := conftest.o" >build/Makefile
15832 modpost_flag=''
15833 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15834 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15839 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15844 test $ac_status = 0; }; }; then :
15845
87dac73d 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
15847$as_echo "yes" >&6; }
15848
4d815aed 15849$as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
ea04106b
AX
15850
15851
15852else
15853 $as_echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
87dac73d 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 15857$as_echo "no" >&6; }
87dac73d 15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
4d815aed 15859$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
94a40997
AX
15860
15861
15862cat confdefs.h - <<_ACEOF >conftest.c
15863
15864
87dac73d 15865 #include <linux/xattr.h>
94a40997 15866
87dac73d
AX
15867 int set(struct dentry *dentry, const char *name,
15868 const void *buffer, size_t size, int flags,
15869 int handler_flags) { return 0; }
15870 static const struct xattr_handler
15871 xops __attribute__ ((unused)) = {
15872 .set = set,
15873 };
94a40997
AX
15874
15875int
15876main (void)
15877{
15878
15879
15880 ;
15881 return 0;
15882}
15883
15884_ACEOF
15885
15886
15887
15888cat - <<_ACEOF >conftest.h
15889
15890_ACEOF
15891
15892
15893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15894 echo "obj-m := conftest.o" >build/Makefile
15895 modpost_flag=''
15896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15897 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15902 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 test $ac_status = 0; }; }; then :
15908
87dac73d 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94a40997
AX
15910$as_echo "yes" >&6; }
15911
4d815aed 15912$as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
94a40997
AX
15913
15914
15915else
15916 $as_echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
87dac73d 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94a40997 15920$as_echo "no" >&6; }
87dac73d 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
4d815aed
AX
15922$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
15923
15924
15925cat confdefs.h - <<_ACEOF >conftest.c
15926
15927
87dac73d 15928 #include <linux/xattr.h>
4d815aed 15929
87dac73d
AX
15930 int set(struct inode *ip, const char *name,
15931 const void *buffer, size_t size, int flags)
15932 { return 0; }
15933 static const struct xattr_handler
15934 xops __attribute__ ((unused)) = {
15935 .set = set,
15936 };
4d815aed
AX
15937
15938int
15939main (void)
15940{
15941
15942
15943 ;
15944 return 0;
15945}
15946
15947_ACEOF
15948
15949
15950
15951cat - <<_ACEOF >conftest.h
15952
15953_ACEOF
15954
15955
15956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15957 echo "obj-m := conftest.o" >build/Makefile
15958 modpost_flag=''
15959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 test $ac_status = 0; }; }; then :
15971
87dac73d 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4d815aed
AX
15973$as_echo "yes" >&6; }
15974
15975$as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
15976
15977
15978else
15979 $as_echo "$as_me: failed program was:" >&5
15980sed 's/^/| /' conftest.$ac_ext >&5
15981
87dac73d
AX
15982 as_fn_error $? "no; please file a bug report" "$LINENO" 5
15983
15984
15985
15986fi
15987 rm -Rf build
15988
15989
94a40997
AX
15990
15991
15992
15993fi
15994 rm -Rf build
15995
15996
ea04106b
AX
15997
15998
15999
16000fi
16001 rm -Rf build
16002
16003
ea04106b
AX
16004
16005
4d815aed
AX
16006
16007fi
16008 rm -Rf build
16009
16010
16011
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
16014$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
ea04106b
AX
16015
16016
16017cat confdefs.h - <<_ACEOF >conftest.c
16018
16019
e10b0808
AX
16020 #include <linux/xattr.h>
16021
4d815aed 16022 bool list(struct dentry *dentry) { return 0; }
e10b0808
AX
16023 static const struct xattr_handler
16024 xops __attribute__ ((unused)) = {
16025 .list = list,
16026 };
ea04106b
AX
16027
16028int
16029main (void)
16030{
16031
ea04106b
AX
16032
16033 ;
16034 return 0;
16035}
16036
16037_ACEOF
16038
16039
16040
16041cat - <<_ACEOF >conftest.h
16042
16043_ACEOF
16044
16045
16046 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16047 echo "obj-m := conftest.o" >build/Makefile
16048 modpost_flag=''
16049 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16050 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16055 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060 test $ac_status = 0; }; }; then :
16061
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16063$as_echo "yes" >&6; }
16064
4d815aed 16065$as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
ea04106b
AX
16066
16067
16068else
16069 $as_echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
4d815aed 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 16073$as_echo "no" >&6; }
94a40997
AX
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
16075$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
16076
16077
16078cat confdefs.h - <<_ACEOF >conftest.c
16079
16080
16081 #include <linux/xattr.h>
16082
4d815aed
AX
16083 size_t list(const struct xattr_handler *handler,
16084 struct dentry *dentry, char *list, size_t list_size,
16085 const char *name, size_t name_len) { return 0; }
94a40997
AX
16086 static const struct xattr_handler
16087 xops __attribute__ ((unused)) = {
16088 .list = list,
16089 };
16090
16091int
16092main (void)
16093{
16094
16095
16096 ;
16097 return 0;
16098}
16099
16100_ACEOF
16101
16102
16103
16104cat - <<_ACEOF >conftest.h
16105
16106_ACEOF
16107
16108
16109 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16110 echo "obj-m := conftest.o" >build/Makefile
16111 modpost_flag=''
16112 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16113 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16118 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16123 test $ac_status = 0; }; }; then :
16124
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16126$as_echo "yes" >&6; }
16127
4d815aed 16128$as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
94a40997
AX
16129
16130
16131else
16132 $as_echo "$as_me: failed program was:" >&5
16133sed 's/^/| /' conftest.$ac_ext >&5
16134
4d815aed
AX
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136$as_echo "no" >&6; }
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
16138$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
16139
16140
16141cat confdefs.h - <<_ACEOF >conftest.c
16142
16143
16144 #include <linux/xattr.h>
16145
16146 size_t list(struct dentry *dentry,
16147 char *list, size_t list_size,
16148 const char *name, size_t name_len,
16149 int handler_flags) { return 0; }
16150 static const struct xattr_handler
16151 xops __attribute__ ((unused)) = {
16152 .list = list,
16153 };
16154
16155int
16156main (void)
16157{
16158
16159
16160 ;
16161 return 0;
16162}
16163
16164_ACEOF
16165
16166
16167
16168cat - <<_ACEOF >conftest.h
16169
16170_ACEOF
16171
16172
16173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16174 echo "obj-m := conftest.o" >build/Makefile
16175 modpost_flag=''
16176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16177 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16182 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16187 test $ac_status = 0; }; }; then :
16188
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16190$as_echo "yes" >&6; }
16191
16192$as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
16193
16194
16195else
16196 $as_echo "$as_me: failed program was:" >&5
16197sed 's/^/| /' conftest.$ac_ext >&5
16198
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94a40997 16200$as_echo "no" >&6; }
4d815aed
AX
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
16202$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
16203
16204
16205cat confdefs.h - <<_ACEOF >conftest.c
16206
16207
16208 #include <linux/xattr.h>
16209
16210 size_t list(struct inode *ip, char *lst,
16211 size_t list_size, const char *name,
16212 size_t name_len) { return 0; }
16213 static const struct xattr_handler
16214 xops __attribute__ ((unused)) = {
16215 .list = list,
16216 };
16217
16218int
16219main (void)
16220{
16221
16222
16223 ;
16224 return 0;
16225}
16226
16227_ACEOF
16228
16229
16230
16231cat - <<_ACEOF >conftest.h
16232
16233_ACEOF
16234
16235
16236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16237 echo "obj-m := conftest.o" >build/Makefile
16238 modpost_flag=''
16239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16240 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16242 (eval $ac_try) 2>&5
16243 ac_status=$?
16244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16250 test $ac_status = 0; }; }; then :
16251
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16253$as_echo "yes" >&6; }
16254
16255$as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
16256
16257
16258else
16259 $as_echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 as_fn_error $? "no; please file a bug report" "$LINENO" 5
16263
16264
16265
16266fi
16267 rm -Rf build
16268
16269
16270
16271
16272
16273fi
16274 rm -Rf build
16275
16276
94a40997
AX
16277
16278
16279
16280fi
16281 rm -Rf build
16282
16283
ea04106b
AX
16284
16285
16286
16287fi
16288 rm -Rf build
16289
16290
ea04106b
AX
16291
16292
e10b0808
AX
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
16294$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
ea04106b
AX
16295
16296
16297cat confdefs.h - <<_ACEOF >conftest.c
16298
16299
e10b0808 16300 #include <linux/fs.h>
ea04106b
AX
16301
16302int
16303main (void)
16304{
16305
e10b0808
AX
16306 struct inode *ip = NULL;
16307 (void) inode_owner_or_capable(ip);
ea04106b
AX
16308
16309 ;
16310 return 0;
16311}
16312
16313_ACEOF
16314
16315
16316
16317cat - <<_ACEOF >conftest.h
16318
16319_ACEOF
16320
16321
16322 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16323 echo "obj-m := conftest.o" >build/Makefile
16324 modpost_flag=''
16325 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16326 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16331 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336 test $ac_status = 0; }; }; then :
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339$as_echo "yes" >&6; }
16340
e10b0808 16341$as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
ea04106b
AX
16342
16343
16344else
16345 $as_echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16349$as_echo "no" >&6; }
e10b0808
AX
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
16351$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
ea04106b
AX
16352
16353
16354cat confdefs.h - <<_ACEOF >conftest.c
16355
16356
e10b0808
AX
16357 #include <linux/fs.h>
16358 #include <linux/sched.h>
ea04106b
AX
16359
16360int
16361main (void)
16362{
16363
e10b0808
AX
16364 struct inode *ip = NULL;
16365 (void) is_owner_or_cap(ip);
ea04106b
AX
16366
16367 ;
16368 return 0;
16369}
16370
16371_ACEOF
16372
16373
16374
16375cat - <<_ACEOF >conftest.h
16376
16377_ACEOF
16378
16379
16380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16381 echo "obj-m := conftest.o" >build/Makefile
16382 modpost_flag=''
16383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16384 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16389 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16394 test $ac_status = 0; }; }; then :
16395
e10b0808 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
16397$as_echo "yes" >&6; }
16398
e10b0808 16399$as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
ea04106b
AX
16400
16401
16402else
16403 $as_echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
e10b0808
AX
16406 as_fn_error $? "no - Please file a bug report at
16407 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
ea04106b
AX
16408
16409
16410
16411fi
16412 rm -Rf build
16413
16414
ea04106b
AX
16415
16416
e10b0808
AX
16417
16418fi
16419 rm -Rf build
16420
16421
16422
16423
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
16425$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
ea04106b
AX
16426
16427
16428cat confdefs.h - <<_ACEOF >conftest.c
16429
16430
e10b0808
AX
16431 #include <linux/cred.h>
16432 #include <linux/fs.h>
16433 #include <linux/posix_acl_xattr.h>
ea04106b
AX
16434
16435int
16436main (void)
16437{
16438
e10b0808 16439 posix_acl_from_xattr(&init_user_ns, NULL, 0);
ea04106b
AX
16440
16441 ;
16442 return 0;
16443}
16444
16445_ACEOF
16446
16447
16448
16449cat - <<_ACEOF >conftest.h
16450
16451_ACEOF
16452
16453
16454 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16455 echo "obj-m := conftest.o" >build/Makefile
16456 modpost_flag=''
16457 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16458 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16463 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16468 test $ac_status = 0; }; }; then :
16469
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16471$as_echo "yes" >&6; }
16472
e10b0808 16473$as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
ea04106b
AX
16474
16475
16476else
16477 $as_echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481$as_echo "no" >&6; }
16482
16483
16484
16485fi
16486 rm -Rf build
16487
16488
ea04106b
AX
16489
16490
e10b0808
AX
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
16492$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
ea04106b
AX
16493
16494
16495cat confdefs.h - <<_ACEOF >conftest.c
16496
16497
e10b0808
AX
16498 #include <linux/cred.h>
16499 #include <linux/fs.h>
16500 #include <linux/posix_acl.h>
ea04106b
AX
16501
16502int
16503main (void)
16504{
16505
e10b0808
AX
16506 struct posix_acl* tmp = posix_acl_alloc(1, 0);
16507 posix_acl_release(tmp);
ea04106b
AX
16508
16509 ;
16510 return 0;
16511}
16512
16513_ACEOF
16514
16515
16516
16517cat - <<_ACEOF >conftest.h
16518
16519_ACEOF
16520
16521
16522 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16523 echo "obj-m := conftest.o" >build/Makefile
16524 modpost_flag=''
16525 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16526 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16531 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16536 test $ac_status = 0; }; }; then :
16537
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539$as_echo "yes" >&6; }
16540
e10b0808 16541$as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
ea04106b
AX
16542
16543
16544else
16545 $as_echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549$as_echo "no" >&6; }
16550
16551
16552
16553fi
16554 rm -Rf build
16555
16556
16557
e10b0808
AX
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
16559$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
ea04106b
AX
16560
16561
16562cat confdefs.h - <<_ACEOF >conftest.c
16563
16564
e10b0808
AX
16565 #include <linux/cred.h>
16566 #include <linux/fs.h>
16567 #include <linux/posix_acl.h>
ea04106b
AX
16568
16569 MODULE_LICENSE("$ZFS_META_LICENSE");
16570
16571int
16572main (void)
16573{
16574
e10b0808
AX
16575 struct posix_acl* tmp = posix_acl_alloc(1, 0);
16576 posix_acl_release(tmp);
ea04106b
AX
16577
16578 ;
16579 return 0;
16580}
16581
16582_ACEOF
16583
16584
16585
16586cat - <<_ACEOF >conftest.h
16587
16588_ACEOF
16589
16590
16591 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16592 echo "obj-m := conftest.o" >build/Makefile
16593 modpost_flag=''
16594 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16595 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16600 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16605 test $ac_status = 0; }; }; then :
16606
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16608$as_echo "no" >&6; }
16609
16610else
16611 $as_echo "$as_me: failed program was:" >&5
16612sed 's/^/| /' conftest.$ac_ext >&5
16613
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615$as_echo "yes" >&6; }
16616
e10b0808 16617$as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
ea04106b
AX
16618
16619
16620
16621
16622fi
16623 rm -Rf build
16624
16625
ea04106b
AX
16626
16627
e10b0808
AX
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
16629$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
ea04106b
AX
16630
16631
16632cat confdefs.h - <<_ACEOF >conftest.c
16633
16634
e10b0808
AX
16635 #include <linux/fs.h>
16636 #include <linux/posix_acl.h>
ea04106b
AX
16637
16638int
16639main (void)
16640{
16641
e10b0808 16642 posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
16643
16644 ;
16645 return 0;
16646}
16647
16648_ACEOF
16649
16650
16651
16652cat - <<_ACEOF >conftest.h
16653
16654_ACEOF
16655
16656
16657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16658 echo "obj-m := conftest.o" >build/Makefile
16659 modpost_flag=''
16660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16661 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16666 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16671 test $ac_status = 0; }; }; then :
16672
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16674$as_echo "yes" >&6; }
16675
e10b0808 16676$as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
ea04106b
AX
16677
16678
16679else
16680 $as_echo "$as_me: failed program was:" >&5
16681sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684$as_echo "no" >&6; }
16685
16686
16687
16688fi
16689 rm -Rf build
16690
16691
ea04106b 16692
e10b0808
AX
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
16694$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
ea04106b
AX
16695
16696
16697cat confdefs.h - <<_ACEOF >conftest.c
16698
16699
e10b0808
AX
16700 #include <linux/fs.h>
16701 #include <linux/posix_acl.h>
ea04106b
AX
16702
16703int
16704main (void)
16705{
16706
e10b0808 16707 __posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
16708
16709 ;
16710 return 0;
16711}
16712
16713_ACEOF
16714
16715
16716
16717cat - <<_ACEOF >conftest.h
16718
16719_ACEOF
16720
16721
16722 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16723 echo "obj-m := conftest.o" >build/Makefile
16724 modpost_flag=''
16725 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16726 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16731 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16736 test $ac_status = 0; }; }; then :
16737
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16739$as_echo "yes" >&6; }
16740
e10b0808 16741$as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
ea04106b
AX
16742
16743
16744else
16745 $as_echo "$as_me: failed program was:" >&5
16746sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749$as_echo "no" >&6; }
16750
16751
16752
16753fi
16754 rm -Rf build
16755
16756
ea04106b
AX
16757
16758
87dac73d
AX
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
16760$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
ea04106b
AX
16761
16762
16763cat confdefs.h - <<_ACEOF >conftest.c
16764
16765
e10b0808 16766 #include <linux/fs.h>
87dac73d 16767 #include <linux/posix_acl.h>
ea04106b
AX
16768
16769int
16770main (void)
16771{
16772
87dac73d
AX
16773 umode_t tmp;
16774 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
16775
16776 ;
16777 return 0;
16778}
16779
16780_ACEOF
16781
16782
16783
16784cat - <<_ACEOF >conftest.h
16785
16786_ACEOF
16787
16788
16789 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16790 echo "obj-m := conftest.o" >build/Makefile
16791 modpost_flag=''
16792 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16793 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16798 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16803 test $ac_status = 0; }; }; then :
16804
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16806$as_echo "yes" >&6; }
16807
87dac73d 16808$as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
ea04106b
AX
16809
16810
16811else
16812 $as_echo "$as_me: failed program was:" >&5
16813sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816$as_echo "no" >&6; }
16817
16818
16819
16820fi
16821 rm -Rf build
16822
16823
ea04106b 16824
ea04106b 16825
87dac73d
AX
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
16827$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
ea04106b
AX
16828
16829
16830cat confdefs.h - <<_ACEOF >conftest.c
16831
16832
e10b0808
AX
16833 #include <linux/fs.h>
16834 #include <linux/posix_acl.h>
ea04106b
AX
16835
16836int
16837main (void)
16838{
16839
87dac73d
AX
16840 struct user_namespace *user_ns = NULL;
16841 const struct posix_acl *acl = NULL;
16842 int error;
16843
16844 error = posix_acl_valid(user_ns, acl);
ea04106b
AX
16845
16846 ;
16847 return 0;
16848}
16849
16850_ACEOF
16851
16852
16853
16854cat - <<_ACEOF >conftest.h
16855
16856_ACEOF
16857
16858
16859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16860 echo "obj-m := conftest.o" >build/Makefile
16861 modpost_flag=''
16862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16873 test $ac_status = 0; }; }; then :
ea04106b 16874
e10b0808
AX
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16876$as_echo "yes" >&6; }
ea04106b 16877
87dac73d 16878$as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
ea04106b
AX
16879
16880
e10b0808
AX
16881else
16882 $as_echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886$as_echo "no" >&6; }
16887
ea04106b 16888
ea04106b 16889
e10b0808
AX
16890fi
16891 rm -Rf build
ea04106b 16892
ea04106b
AX
16893
16894
ea04106b 16895
e10b0808
AX
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
16897$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
16898
16899
e10b0808 16900cat confdefs.h - <<_ACEOF >conftest.c
ea04106b
AX
16901
16902
e10b0808 16903 #include <linux/fs.h>
ea04106b 16904
e10b0808 16905 int permission_fn(struct inode *inode, int mask) { return 0; }
ea04106b 16906
e10b0808
AX
16907 static const struct inode_operations
16908 iops __attribute__ ((unused)) = {
16909 .permission = permission_fn,
16910 };
ea04106b
AX
16911
16912int
16913main (void)
16914{
16915
ea04106b
AX
16916
16917 ;
16918 return 0;
16919}
16920
16921_ACEOF
16922
16923
16924
16925cat - <<_ACEOF >conftest.h
16926
16927_ACEOF
16928
16929
16930 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16931 echo "obj-m := conftest.o" >build/Makefile
16932 modpost_flag=''
16933 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16934 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16939 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; }; then :
16945
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16947$as_echo "yes" >&6; }
16948
e10b0808 16949$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
ea04106b
AX
16950
16951
16952else
16953 $as_echo "$as_me: failed program was:" >&5
16954sed 's/^/| /' conftest.$ac_ext >&5
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957$as_echo "no" >&6; }
16958
16959
16960
16961fi
16962 rm -Rf build
16963
16964
ea04106b 16965
ea04106b 16966
e10b0808
AX
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
16968$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
ea04106b
AX
16969
16970
16971cat confdefs.h - <<_ACEOF >conftest.c
16972
16973
e10b0808
AX
16974 #include <linux/fs.h>
16975
16976 int permission_fn(struct inode *inode, int mask,
16977 struct nameidata *nd) { return 0; }
16978
16979 static const struct inode_operations
16980 iops __attribute__ ((unused)) = {
16981 .permission = permission_fn,
16982 };
ea04106b
AX
16983
16984int
16985main (void)
16986{
16987
ea04106b
AX
16988
16989 ;
16990 return 0;
16991}
16992
16993_ACEOF
16994
16995
16996
16997cat - <<_ACEOF >conftest.h
16998
16999_ACEOF
17000
17001
17002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17003 echo "obj-m := conftest.o" >build/Makefile
17004 modpost_flag=''
17005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17006 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17011 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17016 test $ac_status = 0; }; }; then :
17017
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17019$as_echo "yes" >&6; }
17020
e10b0808 17021$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
ea04106b
AX
17022
17023
e10b0808 17024$as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
17025
17026
17027else
17028 $as_echo "$as_me: failed program was:" >&5
17029sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032$as_echo "no" >&6; }
17033
17034
17035
17036fi
17037 rm -Rf build
17038
17039
17040
e10b0808
AX
17041
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
17043$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
ea04106b
AX
17044
17045
17046cat confdefs.h - <<_ACEOF >conftest.c
17047
17048
e10b0808
AX
17049 #include <linux/fs.h>
17050
17051 int check_acl_fn(struct inode *inode, int mask) { return 0; }
17052
17053 static const struct inode_operations
17054 iops __attribute__ ((unused)) = {
17055 .check_acl = check_acl_fn,
17056 };
ea04106b
AX
17057
17058int
17059main (void)
17060{
17061
ea04106b
AX
17062
17063 ;
17064 return 0;
17065}
17066
17067_ACEOF
17068
17069
17070
17071cat - <<_ACEOF >conftest.h
17072
17073_ACEOF
17074
17075
17076 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17077 echo "obj-m := conftest.o" >build/Makefile
17078 modpost_flag=''
17079 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17080 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17085 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 test $ac_status = 0; }; }; then :
17091
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17093$as_echo "yes" >&6; }
17094
e10b0808 17095$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
ea04106b
AX
17096
17097
17098else
17099 $as_echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103$as_echo "no" >&6; }
17104
17105
17106
17107fi
17108 rm -Rf build
17109
17110
17111
ea04106b 17112
e10b0808
AX
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
17114$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
ea04106b
AX
17115
17116
17117cat confdefs.h - <<_ACEOF >conftest.c
17118
17119
e10b0808
AX
17120 #include <linux/fs.h>
17121
17122 int check_acl_fn(struct inode *inode, int mask,
17123 unsigned int flags) { return 0; }
17124
17125 static const struct inode_operations
17126 iops __attribute__ ((unused)) = {
17127 .check_acl = check_acl_fn,
17128 };
ea04106b
AX
17129
17130int
17131main (void)
17132{
17133
ea04106b
AX
17134
17135 ;
17136 return 0;
17137}
17138
17139_ACEOF
17140
17141
17142
17143cat - <<_ACEOF >conftest.h
17144
17145_ACEOF
17146
17147
17148 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17149 echo "obj-m := conftest.o" >build/Makefile
17150 modpost_flag=''
17151 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17152 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17162 test $ac_status = 0; }; }; then :
17163
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17165$as_echo "yes" >&6; }
17166
e10b0808
AX
17167$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
17168
17169
17170$as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
ea04106b
AX
17171
17172
17173else
17174 $as_echo "$as_me: failed program was:" >&5
17175sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17178$as_echo "no" >&6; }
17179
17180
17181
17182fi
17183 rm -Rf build
17184
17185
17186
e10b0808
AX
17187
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
17189$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
ea04106b
AX
17190
17191
17192cat confdefs.h - <<_ACEOF >conftest.c
17193
17194
17195 #include <linux/fs.h>
ea04106b 17196
e10b0808
AX
17197 struct posix_acl *get_acl_fn(struct inode *inode, int type)
17198 { return NULL; }
ea04106b 17199
e10b0808
AX
17200 static const struct inode_operations
17201 iops __attribute__ ((unused)) = {
17202 .get_acl = get_acl_fn,
ea04106b
AX
17203 };
17204
17205int
17206main (void)
17207{
17208
17209
17210 ;
17211 return 0;
17212}
17213
17214_ACEOF
17215
17216
17217
17218cat - <<_ACEOF >conftest.h
17219
17220_ACEOF
17221
17222
17223 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17224 echo "obj-m := conftest.o" >build/Makefile
17225 modpost_flag=''
17226 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17227 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17232 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17237 test $ac_status = 0; }; }; then :
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17240$as_echo "yes" >&6; }
17241
e10b0808 17242$as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
ea04106b
AX
17243
17244
17245else
17246 $as_echo "$as_me: failed program was:" >&5
17247sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17250$as_echo "no" >&6; }
17251
17252
17253
17254fi
17255 rm -Rf build
17256
17257
17258
17259
87dac73d
AX
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
17261$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
17262
17263
17264cat confdefs.h - <<_ACEOF >conftest.c
17265
17266
e10b0808 17267 #include <linux/fs.h>
ea04106b
AX
17268
17269int
17270main (void)
17271{
17272
87dac73d 17273 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
17274
17275 ;
17276 return 0;
17277}
17278
17279_ACEOF
17280
17281
17282
17283cat - <<_ACEOF >conftest.h
17284
17285_ACEOF
17286
17287
17288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17289 echo "obj-m := conftest.o" >build/Makefile
17290 modpost_flag=''
17291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17292 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17297 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17302 test $ac_status = 0; }; }; then :
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17305$as_echo "yes" >&6; }
17306
87dac73d 17307$as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
ea04106b
AX
17308
17309
17310else
17311 $as_echo "$as_me: failed program was:" >&5
17312sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
17316
17317
17318
17319fi
17320 rm -Rf build
17321
17322
17323
17324
e10b0808
AX
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
17326$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
17327
ea04106b
AX
17328
17329
17330cat confdefs.h - <<_ACEOF >conftest.c
17331
17332
e10b0808 17333 #include <linux/fs.h>
ea04106b 17334
e10b0808
AX
17335 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
17336 static struct super_operations sops __attribute__ ((unused)) = {
17337 .show_options = show_options,
ea04106b
AX
17338 };
17339
17340int
17341main (void)
17342{
17343
17344
17345 ;
17346 return 0;
17347}
17348
17349_ACEOF
17350
17351
17352
17353cat - <<_ACEOF >conftest.h
17354
17355_ACEOF
17356
17357
17358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17359 echo "obj-m := conftest.o" >build/Makefile
17360 modpost_flag=''
17361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17362 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17372 test $ac_status = 0; }; }; then :
17373
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375$as_echo "yes" >&6; }
17376
e10b0808 17377$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
ea04106b
AX
17378
17379
17380else
17381 $as_echo "$as_me: failed program was:" >&5
17382sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17385$as_echo "no" >&6; }
17386
17387
17388
17389fi
17390 rm -Rf build
17391
17392
17393
17394
e10b0808
AX
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
17396$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
17397
17398
17399cat confdefs.h - <<_ACEOF >conftest.c
17400
17401
e10b0808 17402 #include <linux/fs.h>
ea04106b
AX
17403
17404int
17405main (void)
17406{
17407
e10b0808
AX
17408 struct file *f = NULL;
17409 file_inode(f);
ea04106b
AX
17410
17411 ;
17412 return 0;
17413}
17414
17415_ACEOF
17416
17417
17418
17419cat - <<_ACEOF >conftest.h
17420
17421_ACEOF
17422
17423
17424 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17425 echo "obj-m := conftest.o" >build/Makefile
17426 modpost_flag=''
17427 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17428 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17433 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17438 test $ac_status = 0; }; }; then :
17439
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17441$as_echo "yes" >&6; }
17442
e10b0808 17443$as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
ea04106b
AX
17444
17445
17446else
17447 $as_echo "$as_me: failed program was:" >&5
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451$as_echo "no" >&6; }
17452
17453
17454
17455fi
17456 rm -Rf build
17457
17458
17459
17460
e10b0808
AX
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
17462$as_echo_n "checking whether fops->fsync() wants... " >&6; }
17463
ea04106b
AX
17464
17465
17466cat confdefs.h - <<_ACEOF >conftest.c
17467
17468
17469 #include <linux/fs.h>
17470
e10b0808
AX
17471 int test_fsync(struct file *f, struct dentry *dentry, int x)
17472 { return 0; }
17473
17474 static const struct file_operations
17475 fops __attribute__ ((unused)) = {
17476 .fsync = test_fsync,
17477 };
17478
ea04106b
AX
17479int
17480main (void)
17481{
17482
ea04106b
AX
17483
17484 ;
17485 return 0;
17486}
17487
17488_ACEOF
17489
17490
17491
17492cat - <<_ACEOF >conftest.h
17493
17494_ACEOF
17495
17496
17497 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17498 echo "obj-m := conftest.o" >build/Makefile
17499 modpost_flag=''
17500 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17501 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17506 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17511 test $ac_status = 0; }; }; then :
17512
e10b0808
AX
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
17514$as_echo "dentry" >&6; }
ea04106b 17515
e10b0808 17516$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
ea04106b
AX
17517
17518
17519else
17520 $as_echo "$as_me: failed program was:" >&5
17521sed 's/^/| /' conftest.$ac_ext >&5
17522
e10b0808
AX
17523
17524
17525
17526fi
17527 rm -Rf build
17528
17529
17530
17531
ea04106b
AX
17532
17533
17534cat confdefs.h - <<_ACEOF >conftest.c
17535
17536
e10b0808
AX
17537 #include <linux/fs.h>
17538
17539 int test_fsync(struct file *f, int x) { return 0; }
17540
17541 static const struct file_operations
17542 fops __attribute__ ((unused)) = {
17543 .fsync = test_fsync,
17544 };
ea04106b
AX
17545
17546int
17547main (void)
17548{
17549
ea04106b
AX
17550
17551 ;
17552 return 0;
17553}
17554
17555_ACEOF
17556
17557
17558
17559cat - <<_ACEOF >conftest.h
17560
17561_ACEOF
17562
17563
17564 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17565 echo "obj-m := conftest.o" >build/Makefile
17566 modpost_flag=''
17567 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17568 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17573 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17578 test $ac_status = 0; }; }; then :
17579
e10b0808
AX
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
17581$as_echo "no dentry" >&6; }
ea04106b 17582
e10b0808 17583$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
ea04106b
AX
17584
17585
17586else
17587 $as_echo "$as_me: failed program was:" >&5
17588sed 's/^/| /' conftest.$ac_ext >&5
17589
ea04106b
AX
17590
17591
17592
17593fi
17594 rm -Rf build
17595
17596
17597
17598
ea04106b
AX
17599
17600
17601cat confdefs.h - <<_ACEOF >conftest.c
17602
17603
ea04106b 17604 #include <linux/fs.h>
e10b0808
AX
17605
17606 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
17607 { return 0; }
17608
17609 static const struct file_operations
17610 fops __attribute__ ((unused)) = {
17611 .fsync = test_fsync,
17612 };
ea04106b
AX
17613
17614int
17615main (void)
17616{
17617
ea04106b
AX
17618
17619 ;
17620 return 0;
17621}
17622
17623_ACEOF
17624
17625
17626
17627cat - <<_ACEOF >conftest.h
17628
17629_ACEOF
17630
17631
17632 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17633 echo "obj-m := conftest.o" >build/Makefile
17634 modpost_flag=''
17635 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17636 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17641 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17646 test $ac_status = 0; }; }; then :
17647
e10b0808
AX
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
17649$as_echo "range" >&6; }
ea04106b 17650
e10b0808 17651$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
ea04106b
AX
17652
17653
17654else
17655 $as_echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
ea04106b
AX
17658
17659
17660
17661fi
17662 rm -Rf build
17663
17664
17665
17666
e10b0808
AX
17667
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
17669$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
ea04106b
AX
17670
17671
17672cat confdefs.h - <<_ACEOF >conftest.c
17673
17674
ea04106b 17675 #include <linux/fs.h>
e10b0808
AX
17676 void evict_inode (struct inode * t) { return; }
17677 static struct super_operations sops __attribute__ ((unused)) = {
17678 .evict_inode = evict_inode,
17679 };
ea04106b
AX
17680
17681int
17682main (void)
17683{
17684
ea04106b
AX
17685
17686 ;
17687 return 0;
17688}
17689
17690_ACEOF
17691
17692
17693
17694cat - <<_ACEOF >conftest.h
17695
17696_ACEOF
17697
17698
17699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17700 echo "obj-m := conftest.o" >build/Makefile
17701 modpost_flag=''
17702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; }; }; then :
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716$as_echo "yes" >&6; }
17717
e10b0808 17718$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
ea04106b
AX
17719
17720
17721else
17722 $as_echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726$as_echo "no" >&6; }
17727
17728
17729
17730fi
17731 rm -Rf build
17732
17733
17734
e10b0808
AX
17735
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
17737$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
ea04106b
AX
17738
17739
17740cat confdefs.h - <<_ACEOF >conftest.c
17741
17742
ea04106b 17743 #include <linux/fs.h>
ea04106b 17744
e10b0808
AX
17745 void dirty_inode(struct inode *a, int b) { return; }
17746
17747 static const struct super_operations
17748 sops __attribute__ ((unused)) = {
17749 .dirty_inode = dirty_inode,
17750 };
ea04106b
AX
17751
17752int
17753main (void)
17754{
17755
ea04106b
AX
17756
17757 ;
17758 return 0;
17759}
17760
17761_ACEOF
17762
17763
17764
17765cat - <<_ACEOF >conftest.h
17766
17767_ACEOF
17768
17769
17770 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17771 echo "obj-m := conftest.o" >build/Makefile
17772 modpost_flag=''
17773 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17774 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17779 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17784 test $ac_status = 0; }; }; then :
17785
e10b0808
AX
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17787$as_echo "yes" >&6; }
17788
17789$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
17790
ea04106b
AX
17791
17792else
17793 $as_echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
e10b0808
AX
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17797$as_echo "no" >&6; }
ea04106b
AX
17798
17799
17800
17801fi
17802 rm -Rf build
17803
17804
17805
17806
e10b0808
AX
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
17808$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
ea04106b
AX
17809
17810
17811cat confdefs.h - <<_ACEOF >conftest.c
17812
17813
17814 #include <linux/fs.h>
e10b0808
AX
17815
17816 int nr_cached_objects(struct super_block *sb) { return 0; }
17817
17818 static const struct super_operations
17819 sops __attribute__ ((unused)) = {
17820 .nr_cached_objects = nr_cached_objects,
17821 };
ea04106b
AX
17822
17823int
17824main (void)
17825{
17826
ea04106b
AX
17827
17828 ;
17829 return 0;
17830}
17831
17832_ACEOF
17833
17834
17835
17836cat - <<_ACEOF >conftest.h
17837
17838_ACEOF
17839
17840
17841 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17842 echo "obj-m := conftest.o" >build/Makefile
17843 modpost_flag=''
17844 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17845 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17850 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17855 test $ac_status = 0; }; }; then :
17856
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17858$as_echo "yes" >&6; }
17859
e10b0808 17860$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
ea04106b
AX
17861
17862
17863else
17864 $as_echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17868$as_echo "no" >&6; }
17869
17870
17871
17872fi
17873 rm -Rf build
17874
17875
17876
e10b0808
AX
17877
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
17879$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
ea04106b
AX
17880
17881
17882cat confdefs.h - <<_ACEOF >conftest.c
17883
17884
17885 #include <linux/fs.h>
e10b0808
AX
17886
17887 void free_cached_objects(struct super_block *sb, int x)
17888 { return; }
17889
17890 static const struct super_operations
17891 sops __attribute__ ((unused)) = {
17892 .free_cached_objects = free_cached_objects,
17893 };
ea04106b
AX
17894
17895int
17896main (void)
17897{
17898
ea04106b
AX
17899
17900 ;
17901 return 0;
17902}
17903
17904_ACEOF
17905
17906
17907
17908cat - <<_ACEOF >conftest.h
17909
17910_ACEOF
17911
17912
17913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17914 echo "obj-m := conftest.o" >build/Makefile
17915 modpost_flag=''
17916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17917 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17922 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927 test $ac_status = 0; }; }; then :
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930$as_echo "yes" >&6; }
17931
e10b0808 17932$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
ea04106b
AX
17933
17934
17935else
17936 $as_echo "$as_me: failed program was:" >&5
17937sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940$as_echo "no" >&6; }
17941
17942
17943
17944fi
17945 rm -Rf build
17946
17947
17948
17949
e10b0808
AX
17950
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17952$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
ea04106b
AX
17953
17954
17955cat confdefs.h - <<_ACEOF >conftest.c
17956
17957
17958 #include <linux/fs.h>
17959
e10b0808
AX
17960 long test_fallocate(struct file *file, int mode,
17961 loff_t offset, loff_t len) { return 0; }
17962
17963 static const struct file_operations
17964 fops __attribute__ ((unused)) = {
17965 .fallocate = test_fallocate,
17966 };
17967
ea04106b
AX
17968int
17969main (void)
17970{
17971
ea04106b
AX
17972
17973 ;
17974 return 0;
17975}
17976
17977_ACEOF
17978
17979
17980
17981cat - <<_ACEOF >conftest.h
17982
17983_ACEOF
17984
17985
17986 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17987 echo "obj-m := conftest.o" >build/Makefile
17988 modpost_flag=''
17989 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17990 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18000 test $ac_status = 0; }; }; then :
18001
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18003$as_echo "yes" >&6; }
18004
e10b0808 18005$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
ea04106b
AX
18006
18007
18008else
18009 $as_echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18013$as_echo "no" >&6; }
18014
18015
18016
18017fi
18018 rm -Rf build
18019
18020
18021
18022
e10b0808
AX
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
18024$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
ea04106b
AX
18025
18026
18027cat confdefs.h - <<_ACEOF >conftest.c
18028
18029
18030 #include <linux/fs.h>
e10b0808
AX
18031
18032 long test_fallocate(struct inode *inode, int mode,
18033 loff_t offset, loff_t len) { return 0; }
18034
18035 static const struct inode_operations
18036 fops __attribute__ ((unused)) = {
18037 .fallocate = test_fallocate,
18038 };
ea04106b
AX
18039
18040int
18041main (void)
18042{
18043
ea04106b
AX
18044
18045 ;
18046 return 0;
18047}
18048
18049_ACEOF
18050
18051
18052
18053cat - <<_ACEOF >conftest.h
18054
18055_ACEOF
18056
18057
18058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18059 echo "obj-m := conftest.o" >build/Makefile
18060 modpost_flag=''
18061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18067 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18072 test $ac_status = 0; }; }; then :
18073
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075$as_echo "yes" >&6; }
18076
e10b0808 18077$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
ea04106b
AX
18078
18079
18080else
18081 $as_echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18085$as_echo "no" >&6; }
18086
18087
18088
18089fi
18090 rm -Rf build
18091
18092
18093
18094
e10b0808
AX
18095
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
18097$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
ea04106b
AX
18098
18099
18100cat confdefs.h - <<_ACEOF >conftest.c
18101
18102
18103 #include <linux/fs.h>
18104
e10b0808
AX
18105 int mkdir(struct inode *inode, struct dentry *dentry,
18106 umode_t umode) { return 0; }
ea04106b
AX
18107
18108 static const struct inode_operations
18109 iops __attribute__ ((unused)) = {
e10b0808 18110 .mkdir = mkdir,
ea04106b
AX
18111 };
18112
18113int
18114main (void)
18115{
18116
18117
18118 ;
18119 return 0;
18120}
18121
18122_ACEOF
18123
18124
18125
18126cat - <<_ACEOF >conftest.h
18127
18128_ACEOF
18129
18130
18131 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18132 echo "obj-m := conftest.o" >build/Makefile
18133 modpost_flag=''
18134 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18135 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18140 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18145 test $ac_status = 0; }; }; then :
18146
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18148$as_echo "yes" >&6; }
18149
e10b0808 18150$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
ea04106b
AX
18151
18152
18153else
18154 $as_echo "$as_me: failed program was:" >&5
18155sed 's/^/| /' conftest.$ac_ext >&5
18156
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18158$as_echo "no" >&6; }
18159
18160
18161
18162fi
18163 rm -Rf build
18164
18165
18166
18167
e10b0808
AX
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
18169$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
ea04106b
AX
18170
18171
18172cat confdefs.h - <<_ACEOF >conftest.c
18173
18174
18175 #include <linux/fs.h>
18176
e10b0808
AX
18177 struct dentry *inode_lookup(struct inode *inode,
18178 struct dentry *dentry, struct nameidata *nidata)
18179 { return NULL; }
ea04106b 18180
e10b0808
AX
18181 static const struct inode_operations iops
18182 __attribute__ ((unused)) = {
18183 .lookup = inode_lookup,
ea04106b
AX
18184 };
18185
18186int
18187main (void)
18188{
18189
18190
18191 ;
18192 return 0;
18193}
18194
18195_ACEOF
18196
18197
18198
18199cat - <<_ACEOF >conftest.h
18200
18201_ACEOF
18202
18203
18204 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18205 echo "obj-m := conftest.o" >build/Makefile
18206 modpost_flag=''
18207 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18208 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18213 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18218 test $ac_status = 0; }; }; then :
18219
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18221$as_echo "yes" >&6; }
18222
e10b0808 18223$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
18224
18225
18226else
18227 $as_echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18231$as_echo "no" >&6; }
18232
18233
18234
18235fi
18236 rm -Rf build
18237
18238
18239
18240
e10b0808
AX
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
18242$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
18243
18244
18245cat confdefs.h - <<_ACEOF >conftest.c
18246
18247
18248 #include <linux/fs.h>
18249
e10b0808
AX
18250 #ifdef HAVE_MKDIR_UMODE_T
18251 int inode_create(struct inode *inode ,struct dentry *dentry,
18252 umode_t umode, struct nameidata *nidata) { return 0; }
18253 #else
18254 int inode_create(struct inode *inode,struct dentry *dentry,
18255 int umode, struct nameidata * nidata) { return 0; }
18256 #endif
ea04106b
AX
18257
18258 static const struct inode_operations
18259 iops __attribute__ ((unused)) = {
e10b0808 18260 .create = inode_create,
ea04106b
AX
18261 };
18262
18263int
18264main (void)
18265{
18266
18267
18268 ;
18269 return 0;
18270}
18271
18272_ACEOF
18273
18274
18275
18276cat - <<_ACEOF >conftest.h
18277
18278_ACEOF
18279
18280
18281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18282 echo "obj-m := conftest.o" >build/Makefile
18283 modpost_flag=''
18284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18285 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18290 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18295 test $ac_status = 0; }; }; then :
18296
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18298$as_echo "yes" >&6; }
18299
e10b0808 18300$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
18301
18302
18303else
18304 $as_echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308$as_echo "no" >&6; }
18309
18310
18311
18312fi
18313 rm -Rf build
18314
18315
18316
18317
4d815aed
AX
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
18319$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
ea04106b
AX
18320
18321
18322cat confdefs.h - <<_ACEOF >conftest.c
18323
18324
18325 #include <linux/fs.h>
4d815aed
AX
18326 const char *get_link(struct dentry *de, struct inode *ip,
18327 struct delayed_call *done) { return "symlink"; }
18328 static struct inode_operations
18329 iops __attribute__ ((unused)) = {
18330 .get_link = get_link,
ea04106b
AX
18331 };
18332
18333int
18334main (void)
18335{
18336
18337
18338 ;
18339 return 0;
18340}
18341
18342_ACEOF
18343
18344
18345
18346cat - <<_ACEOF >conftest.h
18347
18348_ACEOF
18349
18350
18351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18352 echo "obj-m := conftest.o" >build/Makefile
18353 modpost_flag=''
18354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18355 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18360 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18365 test $ac_status = 0; }; }; then :
18366
4d815aed
AX
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18368$as_echo "yes" >&6; }
ea04106b 18369
4d815aed 18370$as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
ea04106b
AX
18371
18372
4d815aed
AX
18373else
18374 $as_echo "$as_me: failed program was:" >&5
18375sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18376
4d815aed
AX
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18378$as_echo "no" >&6; }
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
18380$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
ea04106b
AX
18381
18382
18383cat confdefs.h - <<_ACEOF >conftest.c
18384
18385
4d815aed
AX
18386 #include <linux/fs.h>
18387 const char *get_link(struct dentry *de, struct
18388 inode *ip, void **cookie) { return "symlink"; }
18389 static struct inode_operations
18390 iops __attribute__ ((unused)) = {
18391 .get_link = get_link,
18392 };
ea04106b
AX
18393
18394int
18395main (void)
18396{
18397
18398
18399 ;
18400 return 0;
18401}
18402
18403_ACEOF
18404
18405
18406
18407cat - <<_ACEOF >conftest.h
18408
18409_ACEOF
18410
18411
18412 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18413 echo "obj-m := conftest.o" >build/Makefile
18414 modpost_flag=''
18415 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18416 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18421 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18426 test $ac_status = 0; }; }; then :
18427
4d815aed 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e10b0808
AX
18429$as_echo "yes" >&6; }
18430
4d815aed 18431$as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
ea04106b
AX
18432
18433
4d815aed
AX
18434else
18435 $as_echo "$as_me: failed program was:" >&5
18436sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18437
4d815aed
AX
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18439$as_echo "no" >&6; }
ea04106b 18440
4d815aed
AX
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
18442$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
ea04106b
AX
18443
18444
18445cat confdefs.h - <<_ACEOF >conftest.c
18446
18447
18448 #include <linux/fs.h>
4d815aed
AX
18449 const char *follow_link(struct dentry *de,
18450 void **cookie) { return "symlink"; }
18451 static struct inode_operations
18452 iops __attribute__ ((unused)) = {
18453 .follow_link = follow_link,
e10b0808 18454 };
ea04106b
AX
18455
18456int
18457main (void)
18458{
18459
ea04106b
AX
18460
18461 ;
18462 return 0;
18463}
18464
18465_ACEOF
18466
18467
18468
18469cat - <<_ACEOF >conftest.h
18470
18471_ACEOF
18472
18473
18474 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18475 echo "obj-m := conftest.o" >build/Makefile
18476 modpost_flag=''
18477 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18478 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18483 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18488 test $ac_status = 0; }; }; then :
18489
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18491$as_echo "yes" >&6; }
18492
4d815aed 18493$as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
ea04106b
AX
18494
18495
18496else
18497 $as_echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
4d815aed 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 18501$as_echo "no" >&6; }
4d815aed
AX
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
18503$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
ea04106b
AX
18504
18505
18506cat confdefs.h - <<_ACEOF >conftest.c
18507
18508
4d815aed
AX
18509 #include <linux/fs.h>
18510 void *follow_link(struct dentry *de, struct
18511 nameidata *nd) { return (void *)NULL; }
18512 static struct inode_operations
18513 iops __attribute__ ((unused)) = {
18514 .follow_link = follow_link,
18515 };
ea04106b
AX
18516
18517int
18518main (void)
18519{
18520
18521
18522 ;
18523 return 0;
18524}
18525
18526_ACEOF
18527
18528
18529
18530cat - <<_ACEOF >conftest.h
18531
18532_ACEOF
18533
18534
18535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18536 echo "obj-m := conftest.o" >build/Makefile
18537 modpost_flag=''
18538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18549 test $ac_status = 0; }; }; then :
18550
4d815aed 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
18552$as_echo "yes" >&6; }
18553
4d815aed 18554$as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
18555
18556
18557else
18558 $as_echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
4d815aed
AX
18561 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18562
18563
18564
18565fi
18566 rm -Rf build
18567
18568
18569
18570
18571
18572fi
18573 rm -Rf build
18574
18575
18576
18577
18578
18579
18580fi
18581 rm -Rf build
18582
18583
ea04106b
AX
18584
18585
18586
18587fi
18588 rm -Rf build
18589
18590
18591
18592
ea04106b
AX
18593
18594
18595cat confdefs.h - <<_ACEOF >conftest.c
18596
18597
4d815aed
AX
18598 #if !defined(HAVE_GET_LINK_DELAYED)
18599 #error "Expecting get_link() delayed done"
18600 #endif
ea04106b
AX
18601
18602int
18603main (void)
18604{
18605
ea04106b
AX
18606
18607 ;
18608 return 0;
18609}
18610
18611_ACEOF
18612
18613
18614
18615cat - <<_ACEOF >conftest.h
18616
18617_ACEOF
18618
18619
18620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18621 echo "obj-m := conftest.o" >build/Makefile
18622 modpost_flag=''
18623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18624 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18629 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18634 test $ac_status = 0; }; }; then :
18635
ea04106b 18636
4d815aed 18637$as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
ea04106b
AX
18638
18639
18640else
18641 $as_echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
4d815aed
AX
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
18645$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
ea04106b
AX
18646
18647
18648cat confdefs.h - <<_ACEOF >conftest.c
18649
18650
4d815aed
AX
18651 #include <linux/fs.h>
18652 void put_link(struct inode *ip, void *cookie)
18653 { return; }
18654 static struct inode_operations
18655 iops __attribute__ ((unused)) = {
18656 .put_link = put_link,
18657 };
ea04106b
AX
18658
18659int
18660main (void)
18661{
18662
18663
18664 ;
18665 return 0;
18666}
18667
18668_ACEOF
18669
18670
18671
18672cat - <<_ACEOF >conftest.h
18673
18674_ACEOF
18675
18676
18677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18678 echo "obj-m := conftest.o" >build/Makefile
18679 modpost_flag=''
18680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18686 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691 test $ac_status = 0; }; }; then :
18692
4d815aed 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e10b0808 18694$as_echo "yes" >&6; }
ea04106b 18695
4d815aed 18696$as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
ea04106b
AX
18697
18698
18699else
18700 $as_echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
4d815aed 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e10b0808 18704$as_echo "no" >&6; }
4d815aed
AX
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
18706$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
ea04106b
AX
18707
18708
18709cat confdefs.h - <<_ACEOF >conftest.c
18710
18711
4d815aed
AX
18712 #include <linux/fs.h>
18713 void put_link(struct dentry *de, struct
18714 nameidata *nd, void *ptr) { return; }
18715 static struct inode_operations
18716 iops __attribute__ ((unused)) = {
18717 .put_link = put_link,
18718 };
ea04106b 18719
ea04106b
AX
18720int
18721main (void)
18722{
18723
18724
18725 ;
18726 return 0;
18727}
18728
18729_ACEOF
18730
18731
18732
18733cat - <<_ACEOF >conftest.h
18734
18735_ACEOF
18736
18737
18738 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18739 echo "obj-m := conftest.o" >build/Makefile
18740 modpost_flag=''
18741 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18742 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18747 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18752 test $ac_status = 0; }; }; then :
4d815aed
AX
18753
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18755$as_echo "yes" >&6; }
18756
18757$as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
18758
18759
e10b0808
AX
18760else
18761 $as_echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
4d815aed
AX
18763
18764 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18765
ea04106b 18766
ea04106b 18767
e10b0808
AX
18768fi
18769 rm -Rf build
ea04106b
AX
18770
18771
e10b0808 18772
e10b0808 18773
ea04106b 18774
4d815aed
AX
18775fi
18776 rm -Rf build
ea04106b
AX
18777
18778
18779
ea04106b
AX
18780
18781
4d815aed
AX
18782fi
18783 rm -Rf build
ea04106b
AX
18784
18785
18786
18787
4d815aed
AX
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
18789$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
ea04106b
AX
18790
18791
e10b0808 18792cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 18793
ea04106b 18794
e10b0808 18795 #include <linux/fs.h>
4d815aed
AX
18796 void truncate_range(struct inode *inode, loff_t start,
18797 loff_t end) { return; }
18798 static struct inode_operations iops __attribute__ ((unused)) = {
18799 .truncate_range = truncate_range,
18800 };
ea04106b
AX
18801
18802int
18803main (void)
18804{
18805
18806
18807 ;
18808 return 0;
18809}
18810
18811_ACEOF
18812
18813
18814
18815cat - <<_ACEOF >conftest.h
18816
18817_ACEOF
18818
18819
18820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18821 echo "obj-m := conftest.o" >build/Makefile
18822 modpost_flag=''
18823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18824 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18829 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18834 test $ac_status = 0; }; }; then :
4d815aed
AX
18835
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18837$as_echo "yes" >&6; }
18838
18839$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
18840
18841
e10b0808
AX
18842else
18843 $as_echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
4d815aed
AX
18845
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18847$as_echo "no" >&6; }
18848
ea04106b 18849
ea04106b 18850
e10b0808
AX
18851fi
18852 rm -Rf build
ea04106b
AX
18853
18854
e10b0808 18855
e10b0808 18856
4d815aed
AX
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
18858$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
e10b0808 18859
ea04106b 18860
4d815aed 18861cat confdefs.h - <<_ACEOF >conftest.c
ea04106b
AX
18862
18863
4d815aed
AX
18864 #include <linux/dcache.h>
18865 struct vfsmount *d_automount(struct path *p) { return NULL; }
18866 struct dentry_operations dops __attribute__ ((unused)) = {
18867 .d_automount = d_automount,
18868 };
18869
18870int
18871main (void)
18872{
18873
18874
18875 ;
18876 return 0;
18877}
18878
18879_ACEOF
18880
18881
18882
18883cat - <<_ACEOF >conftest.h
18884
18885_ACEOF
18886
18887
18888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18889 echo "obj-m := conftest.o" >build/Makefile
18890 modpost_flag=''
18891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18897 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18902 test $ac_status = 0; }; }; then :
ea04106b 18903
e10b0808
AX
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18905$as_echo "yes" >&6; }
ea04106b 18906
4d815aed 18907$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
ea04106b
AX
18908
18909
4d815aed
AX
18910else
18911 $as_echo "$as_me: failed program was:" >&5
18912sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18913
4d815aed
AX
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915$as_echo "no" >&6; }
ea04106b 18916
e10b0808 18917
ea04106b 18918
4d815aed
AX
18919fi
18920 rm -Rf build
18921
18922
18923
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
18926$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
18927
ea04106b
AX
18928
18929cat confdefs.h - <<_ACEOF >conftest.c
18930
18931
4d815aed
AX
18932 #include <linux/exportfs.h>
18933 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
18934 struct inode *parent) { return 0; }
18935 static struct export_operations eops __attribute__ ((unused))={
18936 .encode_fh = encode_fh,
18937 };
ea04106b
AX
18938
18939int
18940main (void)
18941{
18942
18943
18944 ;
18945 return 0;
18946}
18947
18948_ACEOF
18949
18950
18951
18952cat - <<_ACEOF >conftest.h
18953
18954_ACEOF
18955
18956
18957 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18958 echo "obj-m := conftest.o" >build/Makefile
18959 modpost_flag=''
18960 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18961 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18966 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18971 test $ac_status = 0; }; }; then :
4d815aed
AX
18972
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18974$as_echo "yes" >&6; }
18975
18976$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
18977
18978
ea04106b
AX
18979else
18980 $as_echo "$as_me: failed program was:" >&5
18981sed 's/^/| /' conftest.$ac_ext >&5
4d815aed
AX
18982
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984$as_echo "no" >&6; }
18985
ea04106b
AX
18986
18987
18988fi
18989 rm -Rf build
18990
18991
18992
18993
4d815aed
AX
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
18995$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
ea04106b
AX
18996
18997
4d815aed 18998cat confdefs.h - <<_ACEOF >conftest.c
ea04106b
AX
18999
19000
4d815aed
AX
19001 #include <linux/exportfs.h>
19002 int commit_metadata(struct inode *inode) { return 0; }
19003 static struct export_operations eops __attribute__ ((unused))={
19004 .commit_metadata = commit_metadata,
19005 };
19006
19007int
19008main (void)
19009{
19010
19011
19012 ;
19013 return 0;
19014}
19015
19016_ACEOF
19017
19018
19019
19020cat - <<_ACEOF >conftest.h
19021
19022_ACEOF
19023
19024
19025 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19026 echo "obj-m := conftest.o" >build/Makefile
19027 modpost_flag=''
19028 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19029 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19034 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19039 test $ac_status = 0; }; }; then :
ea04106b
AX
19040
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19042$as_echo "yes" >&6; }
19043
4d815aed 19044$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
ea04106b 19045
ea04106b 19046
4d815aed
AX
19047else
19048 $as_echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052$as_echo "no" >&6; }
ea04106b
AX
19053
19054
4d815aed
AX
19055
19056fi
19057 rm -Rf build
19058
19059
19060
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
19062$as_echo_n "checking whether clear_inode() is available... " >&6; }
ea04106b 19063
ea04106b
AX
19064
19065
19066cat confdefs.h - <<_ACEOF >conftest.c
19067
19068
4d815aed 19069 #include <linux/fs.h>
ea04106b
AX
19070
19071int
19072main (void)
19073{
19074
4d815aed 19075 clear_inode(NULL);
ea04106b
AX
19076
19077 ;
19078 return 0;
19079}
19080
19081_ACEOF
19082
19083
19084
19085cat - <<_ACEOF >conftest.h
19086
19087_ACEOF
19088
19089
19090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19091 echo "obj-m := conftest.o" >build/Makefile
19092 modpost_flag=''
19093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19094 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19099 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19104 test $ac_status = 0; }; }; then :
e10b0808
AX
19105 rc=0
19106else
19107 $as_echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109 rc=1
ea04106b 19110
ea04106b 19111
e10b0808
AX
19112fi
19113 rm -Rf build
ea04106b
AX
19114
19115
e10b0808 19116 if test $rc -ne 0; then :
ea04106b
AX
19117
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19119$as_echo "no" >&6; }
19120
e10b0808
AX
19121 else
19122 if test "x$enable_linux_builtin" != xyes; then
19123
4d815aed 19124 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
e10b0808
AX
19125 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19126 rc=$?
19127 if test $rc -ne 0; then
19128 export=0
4d815aed
AX
19129 for file in fs/inode.c; do
19130 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
e10b0808
AX
19131 "$LINUX/$file" 2>/dev/null
19132 rc=$?
19133 if test $rc -eq 0; then
19134 export=1
19135 break;
19136 fi
19137 done
19138 if test $export -eq 0; then :
19139 rc=1
19140 else :
19141 rc=0
19142 fi
19143 else :
19144 rc=0
19145 fi
19146
19147 fi
19148 if test $rc -ne 0; then :
ea04106b 19149
e10b0808
AX
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151$as_echo "no" >&6; }
ea04106b 19152
e10b0808 19153 else :
ea04106b 19154
e10b0808
AX
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19156$as_echo "yes" >&6; }
ea04106b 19157
4d815aed 19158$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
ea04106b
AX
19159
19160
e10b0808
AX
19161 fi
19162 fi
ea04106b
AX
19163
19164
4d815aed
AX
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
19166$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
ea04106b
AX
19167
19168
ea04106b 19169
e10b0808 19170cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 19171
e10b0808 19172
4d815aed 19173 #include <linux/fs.h>
ea04106b
AX
19174
19175int
19176main (void)
19177{
19178
4d815aed 19179 insert_inode_locked(NULL);
ea04106b
AX
19180
19181 ;
19182 return 0;
19183}
19184
19185_ACEOF
19186
19187
19188
19189cat - <<_ACEOF >conftest.h
19190
19191_ACEOF
19192
19193
19194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19195 echo "obj-m := conftest.o" >build/Makefile
19196 modpost_flag=''
19197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19198 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19203 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19208 test $ac_status = 0; }; }; then :
e10b0808
AX
19209 rc=0
19210else
19211 $as_echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213 rc=1
ea04106b 19214
ea04106b 19215
e10b0808
AX
19216fi
19217 rm -Rf build
ea04106b
AX
19218
19219
e10b0808 19220 if test $rc -ne 0; then :
ea04106b
AX
19221
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223$as_echo "no" >&6; }
19224
e10b0808
AX
19225 else
19226 if test "x$enable_linux_builtin" != xyes; then
19227
4d815aed 19228 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
e10b0808
AX
19229 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19230 rc=$?
19231 if test $rc -ne 0; then
19232 export=0
4d815aed
AX
19233 for file in fs/inode.c; do
19234 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
e10b0808
AX
19235 "$LINUX/$file" 2>/dev/null
19236 rc=$?
19237 if test $rc -eq 0; then
19238 export=1
19239 break;
19240 fi
19241 done
19242 if test $export -eq 0; then :
19243 rc=1
19244 else :
19245 rc=0
19246 fi
19247 else :
19248 rc=0
19249 fi
19250
19251 fi
19252 if test $rc -ne 0; then :
ea04106b 19253
e10b0808
AX
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19255$as_echo "no" >&6; }
ea04106b 19256
e10b0808 19257 else :
ea04106b 19258
e10b0808
AX
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260$as_echo "yes" >&6; }
ea04106b 19261
4d815aed 19262$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
ea04106b
AX
19263
19264
e10b0808
AX
19265 fi
19266 fi
ea04106b 19267
ea04106b 19268
4d815aed
AX
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
19270$as_echo_n "checking whether d_make_root() is available... " >&6; }
ea04106b 19271
ea04106b
AX
19272
19273
e10b0808 19274cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 19275
ea04106b 19276
e10b0808 19277 #include <linux/dcache.h>
ea04106b
AX
19278
19279int
19280main (void)
19281{
19282
4d815aed 19283 d_make_root(NULL);
ea04106b
AX
19284
19285 ;
19286 return 0;
19287}
19288
19289_ACEOF
19290
19291
19292
19293cat - <<_ACEOF >conftest.h
19294
19295_ACEOF
19296
19297
19298 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19299 echo "obj-m := conftest.o" >build/Makefile
19300 modpost_flag=''
19301 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19302 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19307 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19312 test $ac_status = 0; }; }; then :
e10b0808 19313 rc=0
ea04106b
AX
19314else
19315 $as_echo "$as_me: failed program was:" >&5
19316sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 19317 rc=1
ea04106b
AX
19318
19319
19320fi
19321 rm -Rf build
19322
19323
e10b0808 19324 if test $rc -ne 0; then :
ea04106b 19325
e10b0808
AX
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327$as_echo "no" >&6; }
ea04106b 19328
e10b0808
AX
19329 else
19330 if test "x$enable_linux_builtin" != xyes; then
ea04106b 19331
4d815aed 19332 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
e10b0808
AX
19333 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19334 rc=$?
19335 if test $rc -ne 0; then
19336 export=0
19337 for file in fs/dcache.c; do
4d815aed 19338 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
e10b0808
AX
19339 "$LINUX/$file" 2>/dev/null
19340 rc=$?
19341 if test $rc -eq 0; then
19342 export=1
19343 break;
19344 fi
19345 done
19346 if test $export -eq 0; then :
19347 rc=1
19348 else :
19349 rc=0
19350 fi
19351 else :
19352 rc=0
19353 fi
ea04106b 19354
e10b0808
AX
19355 fi
19356 if test $rc -ne 0; then :
ea04106b 19357
e10b0808
AX
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19359$as_echo "no" >&6; }
ea04106b 19360
e10b0808
AX
19361 else :
19362
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19364$as_echo "yes" >&6; }
19365
4d815aed 19366$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
e10b0808
AX
19367
19368
19369 fi
19370 fi
19371
19372
4d815aed
AX
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
19374$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
e10b0808 19375
e10b0808
AX
19376
19377
19378cat confdefs.h - <<_ACEOF >conftest.c
19379
19380
19381 #include <linux/dcache.h>
19382
ea04106b
AX
19383int
19384main (void)
19385{
19386
4d815aed 19387 d_obtain_alias(NULL);
ea04106b
AX
19388
19389 ;
19390 return 0;
19391}
19392
19393_ACEOF
19394
19395
19396
19397cat - <<_ACEOF >conftest.h
19398
19399_ACEOF
19400
19401
19402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19403 echo "obj-m := conftest.o" >build/Makefile
19404 modpost_flag=''
19405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19406 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19411 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19416 test $ac_status = 0; }; }; then :
4d815aed 19417 rc=0
ea04106b
AX
19418else
19419 $as_echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 19421 rc=1
ea04106b
AX
19422
19423
19424fi
19425 rm -Rf build
19426
19427
4d815aed 19428 if test $rc -ne 0; then :
ea04106b 19429
4d815aed
AX
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431$as_echo "no" >&6; }
ea04106b 19432
4d815aed
AX
19433 else
19434 if test "x$enable_linux_builtin" != xyes; then
ea04106b 19435
4d815aed
AX
19436 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
19437 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19438 rc=$?
19439 if test $rc -ne 0; then
19440 export=0
19441 for file in fs/dcache.c; do
19442 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
19443 "$LINUX/$file" 2>/dev/null
19444 rc=$?
19445 if test $rc -eq 0; then
19446 export=1
19447 break;
19448 fi
19449 done
19450 if test $export -eq 0; then :
19451 rc=1
19452 else :
19453 rc=0
19454 fi
19455 else :
19456 rc=0
19457 fi
ea04106b 19458
4d815aed
AX
19459 fi
19460 if test $rc -ne 0; then :
ea04106b 19461
4d815aed
AX
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19463$as_echo "no" >&6; }
ea04106b 19464
4d815aed 19465 else :
ea04106b
AX
19466
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19468$as_echo "yes" >&6; }
19469
4d815aed 19470$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
ea04106b 19471
ea04106b 19472
4d815aed
AX
19473 fi
19474 fi
ea04106b
AX
19475
19476
4d815aed
AX
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
19478$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
ea04106b 19479
ea04106b
AX
19480
19481
19482cat confdefs.h - <<_ACEOF >conftest.c
19483
19484
4d815aed 19485 #include <linux/dcache.h>
ea04106b 19486
ea04106b
AX
19487int
19488main (void)
19489{
19490
4d815aed
AX
19491 struct inode *ip = NULL;
19492 d_prune_aliases(ip);
ea04106b
AX
19493
19494 ;
19495 return 0;
19496}
19497
19498_ACEOF
19499
19500
19501
19502cat - <<_ACEOF >conftest.h
19503
19504_ACEOF
19505
19506
19507 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19508 echo "obj-m := conftest.o" >build/Makefile
19509 modpost_flag=''
19510 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19511 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19516 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19521 test $ac_status = 0; }; }; then :
e10b0808
AX
19522 rc=0
19523else
19524 $as_echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526 rc=1
ea04106b 19527
ea04106b 19528
e10b0808
AX
19529fi
19530 rm -Rf build
ea04106b
AX
19531
19532
e10b0808 19533 if test $rc -ne 0; then :
ea04106b
AX
19534
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536$as_echo "no" >&6; }
19537
e10b0808
AX
19538 else
19539 if test "x$enable_linux_builtin" != xyes; then
19540
4d815aed 19541 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
e10b0808
AX
19542 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19543 rc=$?
19544 if test $rc -ne 0; then
19545 export=0
4d815aed
AX
19546 for file in fs/dcache.c; do
19547 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
e10b0808
AX
19548 "$LINUX/$file" 2>/dev/null
19549 rc=$?
19550 if test $rc -eq 0; then
19551 export=1
19552 break;
19553 fi
19554 done
19555 if test $export -eq 0; then :
19556 rc=1
19557 else :
19558 rc=0
19559 fi
19560 else :
19561 rc=0
19562 fi
19563
19564 fi
19565 if test $rc -ne 0; then :
ea04106b 19566
e10b0808
AX
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19568$as_echo "no" >&6; }
ea04106b 19569
e10b0808 19570 else :
ea04106b 19571
e10b0808
AX
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19573$as_echo "yes" >&6; }
ea04106b 19574
4d815aed 19575$as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
ea04106b
AX
19576
19577
e10b0808
AX
19578 fi
19579 fi
ea04106b
AX
19580
19581
4d815aed
AX
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
19583$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
ea04106b
AX
19584
19585
ea04106b 19586
e10b0808 19587cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 19588
e10b0808 19589
4d815aed 19590 #include <linux/dcache.h>
ea04106b
AX
19591
19592int
19593main (void)
19594{
19595
4d815aed 19596 d_set_d_op(NULL, NULL);
ea04106b
AX
19597
19598 ;
19599 return 0;
19600}
19601
19602_ACEOF
19603
19604
19605
19606cat - <<_ACEOF >conftest.h
19607
19608_ACEOF
19609
19610
19611 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19612 echo "obj-m := conftest.o" >build/Makefile
19613 modpost_flag=''
19614 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19615 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19620 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19625 test $ac_status = 0; }; }; then :
e10b0808
AX
19626 rc=0
19627else
19628 $as_echo "$as_me: failed program was:" >&5
19629sed 's/^/| /' conftest.$ac_ext >&5
19630 rc=1
ea04106b 19631
ea04106b 19632
e10b0808
AX
19633fi
19634 rm -Rf build
ea04106b
AX
19635
19636
e10b0808
AX
19637 if test $rc -ne 0; then :
19638
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640$as_echo "no" >&6; }
19641
19642 else
19643 if test "x$enable_linux_builtin" != xyes; then
19644
4d815aed 19645 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
e10b0808
AX
19646 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19647 rc=$?
19648 if test $rc -ne 0; then
19649 export=0
4d815aed
AX
19650 for file in fs/dcache.c; do
19651 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
e10b0808
AX
19652 "$LINUX/$file" 2>/dev/null
19653 rc=$?
19654 if test $rc -eq 0; then
19655 export=1
19656 break;
19657 fi
19658 done
19659 if test $export -eq 0; then :
19660 rc=1
19661 else :
19662 rc=0
19663 fi
19664 else :
19665 rc=0
19666 fi
19667
19668 fi
19669 if test $rc -ne 0; then :
ea04106b
AX
19670
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19672$as_echo "no" >&6; }
19673
e10b0808 19674 else :
ea04106b 19675
e10b0808
AX
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19677$as_echo "yes" >&6; }
ea04106b 19678
4d815aed 19679$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
ea04106b
AX
19680
19681
e10b0808
AX
19682 fi
19683 fi
ea04106b
AX
19684
19685
e10b0808 19686
4d815aed
AX
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
19688$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
ea04106b
AX
19689
19690
19691cat confdefs.h - <<_ACEOF >conftest.c
19692
19693
4d815aed
AX
19694 #include <linux/dcache.h>
19695
19696 int revalidate (struct dentry *dentry,
19697 struct nameidata *nidata) { return 0; }
19698
19699 static const struct dentry_operations
19700 dops __attribute__ ((unused)) = {
19701 .d_revalidate = revalidate,
19702 };
ea04106b
AX
19703
19704int
19705main (void)
19706{
19707
19708
19709 ;
19710 return 0;
19711}
19712
19713_ACEOF
19714
19715
19716
19717cat - <<_ACEOF >conftest.h
19718
19719_ACEOF
19720
19721
19722 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19723 echo "obj-m := conftest.o" >build/Makefile
19724 modpost_flag=''
19725 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19726 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19731 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19736 test $ac_status = 0; }; }; then :
19737
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19739$as_echo "yes" >&6; }
19740
4d815aed 19741$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
19742
19743
19744else
19745 $as_echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749$as_echo "no" >&6; }
19750
19751
19752
19753fi
19754 rm -Rf build
19755
19756
19757
19758
4d815aed
AX
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
19760$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
ea04106b
AX
19761
19762
19763cat confdefs.h - <<_ACEOF >conftest.c
19764
19765
4d815aed
AX
19766 #include <linux/dcache.h>
19767
19768 const struct dentry_operations test_d_op = {
19769 .d_revalidate = NULL,
19770 };
ea04106b
AX
19771
19772int
19773main (void)
19774{
19775
4d815aed 19776 struct dentry d __attribute__ ((unused));
ea04106b 19777
4d815aed 19778 d.d_op = &test_d_op;
e10b0808
AX
19779
19780 ;
ea04106b
AX
19781 return 0;
19782}
19783
19784_ACEOF
19785
19786
19787
19788cat - <<_ACEOF >conftest.h
19789
19790_ACEOF
19791
19792
19793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19794 echo "obj-m := conftest.o" >build/Makefile
19795 modpost_flag=''
19796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19802 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19807 test $ac_status = 0; }; }; then :
19808
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19810$as_echo "yes" >&6; }
19811
4d815aed 19812$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
ea04106b
AX
19813
19814
19815else
19816 $as_echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19820$as_echo "no" >&6; }
19821
19822
19823
19824fi
19825 rm -Rf build
19826
19827
19828
4d815aed
AX
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
19830$as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
ea04106b 19831
ea04106b
AX
19832
19833
19834cat confdefs.h - <<_ACEOF >conftest.c
19835
19836
e10b0808 19837 #include <linux/fs.h>
ea04106b
AX
19838
19839int
19840main (void)
19841{
19842
4d815aed 19843 check_disk_size_change(NULL, NULL);
ea04106b
AX
19844
19845 ;
19846 return 0;
19847}
19848
19849_ACEOF
19850
19851
19852
19853cat - <<_ACEOF >conftest.h
19854
19855_ACEOF
19856
19857
19858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19859 echo "obj-m := conftest.o" >build/Makefile
19860 modpost_flag=''
19861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19862 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19867 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19872 test $ac_status = 0; }; }; then :
e10b0808
AX
19873 rc=0
19874else
19875 $as_echo "$as_me: failed program was:" >&5
19876sed 's/^/| /' conftest.$ac_ext >&5
19877 rc=1
ea04106b 19878
ea04106b 19879
e10b0808
AX
19880fi
19881 rm -Rf build
ea04106b
AX
19882
19883
e10b0808 19884 if test $rc -ne 0; then :
ea04106b
AX
19885
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887$as_echo "no" >&6; }
19888
e10b0808
AX
19889 else
19890 if test "x$enable_linux_builtin" != xyes; then
19891
4d815aed 19892 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
e10b0808
AX
19893 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19894 rc=$?
19895 if test $rc -ne 0; then
19896 export=0
4d815aed
AX
19897 for file in fs/block_dev.c; do
19898 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
e10b0808
AX
19899 "$LINUX/$file" 2>/dev/null
19900 rc=$?
19901 if test $rc -eq 0; then
19902 export=1
19903 break;
19904 fi
19905 done
19906 if test $export -eq 0; then :
19907 rc=1
19908 else :
19909 rc=0
19910 fi
19911 else :
19912 rc=0
19913 fi
19914
19915 fi
19916 if test $rc -ne 0; then :
ea04106b 19917
e10b0808
AX
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19919$as_echo "no" >&6; }
ea04106b 19920
e10b0808 19921 else :
ea04106b 19922
e10b0808
AX
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19924$as_echo "yes" >&6; }
ea04106b 19925
4d815aed 19926$as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
ea04106b
AX
19927
19928
e10b0808
AX
19929 fi
19930 fi
19931
19932
4d815aed
AX
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
19934$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
e10b0808 19935
ea04106b
AX
19936
19937
19938cat confdefs.h - <<_ACEOF >conftest.c
19939
19940
4d815aed 19941 #include <linux/mm.h>
ea04106b
AX
19942
19943int
19944main (void)
19945{
19946
4d815aed 19947 truncate_setsize(NULL, 0);
ea04106b
AX
19948
19949 ;
19950 return 0;
19951}
19952
19953_ACEOF
19954
19955
19956
19957cat - <<_ACEOF >conftest.h
19958
19959_ACEOF
19960
19961
19962 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19963 echo "obj-m := conftest.o" >build/Makefile
19964 modpost_flag=''
19965 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19966 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19971 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19976 test $ac_status = 0; }; }; then :
4d815aed
AX
19977 rc=0
19978else
19979 $as_echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981 rc=1
ea04106b 19982
ea04106b 19983
4d815aed
AX
19984fi
19985 rm -Rf build
e10b0808 19986
ea04106b 19987
4d815aed 19988 if test $rc -ne 0; then :
ea04106b 19989
4d815aed
AX
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991$as_echo "no" >&6; }
19992
19993 else
19994 if test "x$enable_linux_builtin" != xyes; then
19995
19996 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
19997 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19998 rc=$?
19999 if test $rc -ne 0; then
20000 export=0
20001 for file in mm/truncate.c; do
20002 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
20003 "$LINUX/$file" 2>/dev/null
20004 rc=$?
20005 if test $rc -eq 0; then
20006 export=1
20007 break;
20008 fi
20009 done
20010 if test $export -eq 0; then :
20011 rc=1
20012 else :
20013 rc=0
20014 fi
20015 else :
20016 rc=0
20017 fi
20018
20019 fi
20020 if test $rc -ne 0; then :
ea04106b
AX
20021
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20023$as_echo "no" >&6; }
20024
4d815aed 20025 else :
ea04106b 20026
4d815aed
AX
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20028$as_echo "yes" >&6; }
ea04106b 20029
4d815aed 20030$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
ea04106b
AX
20031
20032
4d815aed
AX
20033 fi
20034 fi
20035
ea04106b 20036
ea04106b 20037
4d815aed
AX
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
20039$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
ea04106b
AX
20040
20041
20042cat confdefs.h - <<_ACEOF >conftest.c
20043
20044
4d815aed 20045 #include <linux/security.h>
ea04106b
AX
20046
20047int
20048main (void)
20049{
20050
4d815aed
AX
20051 struct inode *ip __attribute__ ((unused)) = NULL;
20052 struct inode *dip __attribute__ ((unused)) = NULL;
20053 const struct qstr *str __attribute__ ((unused)) = NULL;
20054 char *name __attribute__ ((unused)) = NULL;
20055 void *value __attribute__ ((unused)) = NULL;
20056 size_t len __attribute__ ((unused)) = 0;
20057
20058 security_inode_init_security(ip, dip, str, &name, &value, &len);
20059
20060 ;
ea04106b
AX
20061 return 0;
20062}
20063
20064_ACEOF
20065
20066
20067
20068cat - <<_ACEOF >conftest.h
20069
20070_ACEOF
20071
20072
20073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20074 echo "obj-m := conftest.o" >build/Makefile
20075 modpost_flag=''
20076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20077 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20082 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20087 test $ac_status = 0; }; }; then :
ea04106b 20088
e10b0808
AX
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20090$as_echo "yes" >&6; }
ea04106b 20091
4d815aed 20092$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
ea04106b 20093
ea04106b 20094
e10b0808
AX
20095else
20096 $as_echo "$as_me: failed program was:" >&5
20097sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
20098
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100$as_echo "no" >&6; }
20101
ea04106b 20102
ea04106b 20103
e10b0808
AX
20104fi
20105 rm -Rf build
ea04106b 20106
ea04106b
AX
20107
20108
ea04106b 20109
4d815aed
AX
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
20111$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
ea04106b
AX
20112
20113
20114cat confdefs.h - <<_ACEOF >conftest.c
20115
20116
4d815aed 20117 #include <linux/security.h>
ea04106b
AX
20118
20119int
20120main (void)
20121{
20122
4d815aed
AX
20123 struct inode *ip __attribute__ ((unused)) = NULL;
20124 struct inode *dip __attribute__ ((unused)) = NULL;
20125 const struct qstr *str __attribute__ ((unused)) = NULL;
20126 initxattrs func __attribute__ ((unused)) = NULL;
e10b0808 20127
4d815aed 20128 security_inode_init_security(ip, dip, str, func, NULL);
ea04106b
AX
20129
20130 ;
20131 return 0;
20132}
20133
20134_ACEOF
20135
20136
20137
20138cat - <<_ACEOF >conftest.h
20139
20140_ACEOF
20141
20142
20143 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20144 echo "obj-m := conftest.o" >build/Makefile
20145 modpost_flag=''
20146 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20147 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20152 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20157 test $ac_status = 0; }; }; then :
ea04106b 20158
e10b0808
AX
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20160$as_echo "yes" >&6; }
ea04106b 20161
4d815aed 20162$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
ea04106b 20163
ea04106b 20164
e10b0808
AX
20165else
20166 $as_echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
20168
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20170$as_echo "no" >&6; }
20171
ea04106b
AX
20172
20173
e10b0808
AX
20174fi
20175 rm -Rf build
ea04106b
AX
20176
20177
ea04106b 20178
4d815aed
AX
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
20180$as_echo_n "checking whether mount_nodev() is available... " >&6; }
20181
ea04106b
AX
20182
20183
20184cat confdefs.h - <<_ACEOF >conftest.c
20185
20186
e10b0808 20187 #include <linux/fs.h>
ea04106b
AX
20188
20189int
20190main (void)
20191{
20192
4d815aed 20193 mount_nodev(NULL, 0, NULL, NULL);
ea04106b
AX
20194
20195 ;
20196 return 0;
20197}
20198
20199_ACEOF
20200
20201
20202
20203cat - <<_ACEOF >conftest.h
20204
20205_ACEOF
20206
20207
20208 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20209 echo "obj-m := conftest.o" >build/Makefile
20210 modpost_flag=''
20211 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20212 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20214 (eval $ac_try) 2>&5
20215 ac_status=$?
20216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20217 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20222 test $ac_status = 0; }; }; then :
4d815aed
AX
20223 rc=0
20224else
20225 $as_echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227 rc=1
e10b0808 20228
e10b0808 20229
4d815aed
AX
20230fi
20231 rm -Rf build
e10b0808
AX
20232
20233
4d815aed
AX
20234 if test $rc -ne 0; then :
20235
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20237$as_echo "no" >&6; }
20238
20239 else
20240 if test "x$enable_linux_builtin" != xyes; then
20241
20242 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
20243 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20244 rc=$?
20245 if test $rc -ne 0; then
20246 export=0
20247 for file in fs/super.c; do
20248 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
20249 "$LINUX/$file" 2>/dev/null
20250 rc=$?
20251 if test $rc -eq 0; then
20252 export=1
20253 break;
20254 fi
20255 done
20256 if test $export -eq 0; then :
20257 rc=1
20258 else :
20259 rc=0
20260 fi
20261 else :
20262 rc=0
20263 fi
20264
20265 fi
20266 if test $rc -ne 0; then :
e10b0808
AX
20267
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269$as_echo "no" >&6; }
20270
4d815aed 20271 else :
ea04106b 20272
4d815aed
AX
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20274$as_echo "yes" >&6; }
ea04106b 20275
4d815aed 20276$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
ea04106b
AX
20277
20278
4d815aed
AX
20279 fi
20280 fi
ea04106b 20281
ea04106b 20282
ea04106b 20283
4d815aed
AX
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
20285$as_echo_n "checking whether super_block has s_shrink... " >&6; }
ea04106b
AX
20286
20287
20288cat confdefs.h - <<_ACEOF >conftest.c
20289
20290
4d815aed
AX
20291 #include <linux/fs.h>
20292
20293 int shrink(struct shrinker *s, struct shrink_control *sc)
20294 { return 0; }
20295
20296 static const struct super_block
20297 sb __attribute__ ((unused)) = {
20298 .s_shrink.shrink = shrink,
20299 .s_shrink.seeks = DEFAULT_SEEKS,
20300 .s_shrink.batch = 0,
20301 };
ea04106b
AX
20302
20303int
20304main (void)
20305{
20306
ea04106b
AX
20307
20308 ;
20309 return 0;
20310}
20311
20312_ACEOF
20313
20314
20315
20316cat - <<_ACEOF >conftest.h
20317
20318_ACEOF
20319
20320
20321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20322 echo "obj-m := conftest.o" >build/Makefile
20323 modpost_flag=''
20324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20325 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20330 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20335 test $ac_status = 0; }; }; then :
4d815aed
AX
20336
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20338$as_echo "yes" >&6; }
20339
20340$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
20341
20342
20343
ea04106b
AX
20344else
20345 $as_echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
4d815aed
AX
20347
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349$as_echo "no" >&6; }
20350
ea04106b
AX
20351
20352
20353fi
20354 rm -Rf build
20355
20356
ea04106b 20357
ea04106b 20358
4d815aed
AX
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
20360$as_echo_n "checking whether shrink_control has nid... " >&6; }
ea04106b
AX
20361
20362
20363cat confdefs.h - <<_ACEOF >conftest.c
20364
20365
4d815aed 20366 #include <linux/fs.h>
ea04106b
AX
20367
20368int
20369main (void)
20370{
20371
4d815aed
AX
20372 struct shrink_control sc __attribute__ ((unused));
20373 unsigned long scnidsize __attribute__ ((unused)) =
20374 sizeof(sc.nid);
ea04106b
AX
20375
20376 ;
20377 return 0;
20378}
20379
20380_ACEOF
20381
20382
20383
20384cat - <<_ACEOF >conftest.h
20385
20386_ACEOF
20387
20388
20389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20390 echo "obj-m := conftest.o" >build/Makefile
20391 modpost_flag=''
20392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20393 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20398 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20403 test $ac_status = 0; }; }; then :
ea04106b 20404
4d815aed
AX
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20406$as_echo "yes" >&6; }
ea04106b 20407
4d815aed 20408$as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
ea04106b 20409
ea04106b 20410
4d815aed
AX
20411else
20412 $as_echo "$as_me: failed program was:" >&5
20413sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20414
4d815aed 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
20416$as_echo "no" >&6; }
20417
ea04106b
AX
20418
20419
4d815aed
AX
20420fi
20421 rm -Rf build
e10b0808 20422
e10b0808 20423
e10b0808 20424
ea04106b 20425
4d815aed
AX
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
20427$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
ea04106b
AX
20428
20429
20430cat confdefs.h - <<_ACEOF >conftest.c
20431
20432
4d815aed 20433 #include <linux/fs.h>
ea04106b
AX
20434
20435int
20436main (void)
20437{
20438
4d815aed
AX
20439 struct super_block sb __attribute__ ((unused));
20440
20441 INIT_LIST_HEAD(&sb.s_instances);
ea04106b
AX
20442
20443 ;
20444 return 0;
20445}
20446
20447_ACEOF
20448
20449
20450
20451cat - <<_ACEOF >conftest.h
20452
20453_ACEOF
20454
20455
20456 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20457 echo "obj-m := conftest.o" >build/Makefile
20458 modpost_flag=''
20459 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20460 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20465 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20470 test $ac_status = 0; }; }; then :
4d815aed
AX
20471
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20473$as_echo "yes" >&6; }
20474
20475$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
20476
20477
ea04106b
AX
20478else
20479 $as_echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
4d815aed
AX
20481
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20483$as_echo "no" >&6; }
20484
ea04106b
AX
20485
20486
20487fi
20488 rm -Rf build
20489
20490
ea04106b 20491
4d815aed
AX
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
20493$as_echo_n "checking whether super_block has s_d_op... " >&6; }
e10b0808
AX
20494
20495
20496cat confdefs.h - <<_ACEOF >conftest.c
20497
20498
20499 #include <linux/fs.h>
ea04106b
AX
20500
20501int
20502main (void)
20503{
20504
4d815aed
AX
20505 struct super_block sb __attribute__ ((unused));
20506 sb.s_d_op = NULL;
ea04106b
AX
20507
20508 ;
20509 return 0;
20510}
20511
20512_ACEOF
20513
20514
20515
20516cat - <<_ACEOF >conftest.h
20517
20518_ACEOF
20519
20520
20521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20522 echo "obj-m := conftest.o" >build/Makefile
20523 modpost_flag=''
20524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20525 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20530 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20535 test $ac_status = 0; }; }; then :
20536
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20538$as_echo "yes" >&6; }
20539
4d815aed 20540$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
ea04106b
AX
20541
20542
20543else
20544 $as_echo "$as_me: failed program was:" >&5
20545sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20548$as_echo "no" >&6; }
20549
20550
20551
20552fi
20553 rm -Rf build
20554
20555
20556
20557
4d815aed
AX
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
20559$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
20560
ea04106b
AX
20561
20562
20563cat confdefs.h - <<_ACEOF >conftest.c
20564
20565
4d815aed
AX
20566 #include <linux/backing-dev.h>
20567 struct backing_dev_info bdi;
ea04106b
AX
20568
20569int
20570main (void)
20571{
20572
4d815aed
AX
20573 char *name = "bdi";
20574 int error __attribute__((unused)) =
20575 bdi_setup_and_register(&bdi, name);
ea04106b
AX
20576
20577 ;
20578 return 0;
20579}
20580
20581_ACEOF
20582
20583
20584
20585cat - <<_ACEOF >conftest.h
20586
20587_ACEOF
20588
20589
20590 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20591 echo "obj-m := conftest.o" >build/Makefile
20592 modpost_flag=''
20593 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20594 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20599 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20604 test $ac_status = 0; }; }; then :
4d815aed 20605 rc=0
ea04106b
AX
20606else
20607 $as_echo "$as_me: failed program was:" >&5
20608sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20609 rc=1
ea04106b
AX
20610
20611
20612fi
20613 rm -Rf build
20614
20615
4d815aed
AX
20616 if test $rc -ne 0; then :
20617
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20619$as_echo "no" >&6; }
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20621$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b 20622
ea04106b
AX
20623
20624
20625cat confdefs.h - <<_ACEOF >conftest.c
20626
20627
4d815aed
AX
20628 #include <linux/backing-dev.h>
20629 struct backing_dev_info bdi;
ea04106b
AX
20630
20631int
20632main (void)
20633{
20634
4d815aed
AX
20635 char *name = "bdi";
20636 unsigned int cap = BDI_CAP_MAP_COPY;
20637 int error __attribute__((unused)) =
20638 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
20639
20640 ;
20641 return 0;
20642}
20643
20644_ACEOF
20645
20646
20647
20648cat - <<_ACEOF >conftest.h
20649
20650_ACEOF
20651
20652
20653 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20654 echo "obj-m := conftest.o" >build/Makefile
20655 modpost_flag=''
20656 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20657 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20662 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; }; }; then :
4d815aed
AX
20668 rc=0
20669else
20670 $as_echo "$as_me: failed program was:" >&5
20671sed 's/^/| /' conftest.$ac_ext >&5
20672 rc=1
e10b0808 20673
e10b0808 20674
4d815aed
AX
20675fi
20676 rm -Rf build
e10b0808
AX
20677
20678
4d815aed 20679 if test $rc -ne 0; then :
e10b0808 20680
4d815aed
AX
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682$as_echo "no" >&6; }
20683
20684 else
20685 if test "x$enable_linux_builtin" != xyes; then
20686
20687 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20688 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20689 rc=$?
20690 if test $rc -ne 0; then
20691 export=0
20692 for file in mm/backing-dev.c; do
20693 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20694 "$LINUX/$file" 2>/dev/null
20695 rc=$?
20696 if test $rc -eq 0; then
20697 export=1
20698 break;
20699 fi
20700 done
20701 if test $export -eq 0; then :
20702 rc=1
20703 else :
20704 rc=0
20705 fi
20706 else :
20707 rc=0
20708 fi
20709
20710 fi
20711 if test $rc -ne 0; then :
20712
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e10b0808
AX
20714$as_echo "no" >&6; }
20715
4d815aed 20716 else :
ea04106b 20717
4d815aed
AX
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20719$as_echo "yes" >&6; }
ea04106b 20720
4d815aed 20721$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
ea04106b
AX
20722
20723
4d815aed
AX
20724 fi
20725 fi
20726
ea04106b 20727
4d815aed
AX
20728 else
20729 if test "x$enable_linux_builtin" != xyes; then
20730
20731 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20733 rc=$?
20734 if test $rc -ne 0; then
20735 export=0
20736 for file in mm/backing-dev.c; do
20737 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20738 "$LINUX/$file" 2>/dev/null
20739 rc=$?
20740 if test $rc -eq 0; then
20741 export=1
20742 break;
20743 fi
20744 done
20745 if test $export -eq 0; then :
20746 rc=1
20747 else :
20748 rc=0
20749 fi
20750 else :
20751 rc=0
20752 fi
20753
20754 fi
20755 if test $rc -ne 0; then :
20756
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20758$as_echo "no" >&6; }
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20760$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
20761
20762
20763
20764cat confdefs.h - <<_ACEOF >conftest.c
20765
20766
4d815aed
AX
20767 #include <linux/backing-dev.h>
20768 struct backing_dev_info bdi;
ea04106b
AX
20769
20770int
20771main (void)
20772{
20773
4d815aed
AX
20774 char *name = "bdi";
20775 unsigned int cap = BDI_CAP_MAP_COPY;
20776 int error __attribute__((unused)) =
20777 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
20778
20779 ;
20780 return 0;
20781}
20782
20783_ACEOF
20784
20785
20786
20787cat - <<_ACEOF >conftest.h
20788
20789_ACEOF
20790
20791
20792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20793 echo "obj-m := conftest.o" >build/Makefile
20794 modpost_flag=''
20795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20798 (eval $ac_try) 2>&5
20799 ac_status=$?
20800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20801 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20806 test $ac_status = 0; }; }; then :
20807 rc=0
20808else
20809 $as_echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811 rc=1
20812
20813
20814fi
20815 rm -Rf build
20816
20817
20818 if test $rc -ne 0; then :
20819
4d815aed 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
20821$as_echo "no" >&6; }
20822
20823 else
20824 if test "x$enable_linux_builtin" != xyes; then
20825
4d815aed 20826 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
ea04106b
AX
20827 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20828 rc=$?
20829 if test $rc -ne 0; then
20830 export=0
4d815aed
AX
20831 for file in mm/backing-dev.c; do
20832 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
ea04106b
AX
20833 "$LINUX/$file" 2>/dev/null
20834 rc=$?
20835 if test $rc -eq 0; then
20836 export=1
20837 break;
20838 fi
20839 done
20840 if test $export -eq 0; then :
20841 rc=1
20842 else :
20843 rc=0
20844 fi
20845 else :
20846 rc=0
20847 fi
20848
20849 fi
20850 if test $rc -ne 0; then :
20851
4d815aed 20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
20853$as_echo "no" >&6; }
20854
20855 else :
20856
4d815aed 20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
20858$as_echo "yes" >&6; }
20859
4d815aed 20860$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
ea04106b
AX
20861
20862
20863 fi
20864 fi
20865
20866
4d815aed 20867 else :
ea04106b 20868
4d815aed
AX
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20870$as_echo "yes" >&6; }
ea04106b 20871
4d815aed 20872$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
ea04106b 20873
ea04106b 20874
4d815aed
AX
20875 fi
20876 fi
ea04106b 20877
e10b0808 20878
4d815aed
AX
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
20881$as_echo_n "checking whether set_nlink() is available... " >&6; }
20882
20883
20884cat confdefs.h - <<_ACEOF >conftest.c
20885
20886
20887 #include <linux/fs.h>
ea04106b
AX
20888
20889int
20890main (void)
20891{
20892
4d815aed
AX
20893 struct inode node;
20894 unsigned int link = 0;
20895 (void) set_nlink(&node, link);
ea04106b
AX
20896
20897 ;
20898 return 0;
20899}
20900
20901_ACEOF
20902
20903
20904
20905cat - <<_ACEOF >conftest.h
20906
20907_ACEOF
20908
20909
20910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20911 echo "obj-m := conftest.o" >build/Makefile
20912 modpost_flag=''
20913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20914 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20924 test $ac_status = 0; }; }; then :
20925
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20927$as_echo "yes" >&6; }
20928
4d815aed 20929$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
ea04106b
AX
20930
20931
20932else
20933 $as_echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20937$as_echo "no" >&6; }
20938
ea04106b
AX
20939
20940
4d815aed
AX
20941fi
20942 rm -Rf build
ea04106b
AX
20943
20944
e10b0808 20945
4d815aed
AX
20946
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
20948$as_echo_n "checking whether elevator_change() is available... " >&6; }
20949 tmp_flags="$EXTRA_KCFLAGS"
20950 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20951
20952
20953cat confdefs.h - <<_ACEOF >conftest.c
20954
20955
20956 #include <linux/blkdev.h>
20957 #include <linux/elevator.h>
ea04106b
AX
20958
20959int
20960main (void)
20961{
20962
4d815aed
AX
20963 int ret;
20964 struct request_queue *q = NULL;
20965 char *elevator = NULL;
20966 ret = elevator_change(q, elevator);
ea04106b
AX
20967
20968 ;
20969 return 0;
20970}
20971
20972_ACEOF
20973
20974
20975
20976cat - <<_ACEOF >conftest.h
20977
20978_ACEOF
20979
20980
20981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20982 echo "obj-m := conftest.o" >build/Makefile
20983 modpost_flag=''
20984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20985 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995 test $ac_status = 0; }; }; then :
20996
4d815aed 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
20998$as_echo "yes" >&6; }
20999
4d815aed 21000$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
ea04106b
AX
21001
21002
21003else
21004 $as_echo "$as_me: failed program was:" >&5
21005sed 's/^/| /' conftest.$ac_ext >&5
21006
4d815aed
AX
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21008$as_echo "no" >&6; }
ea04106b
AX
21009
21010
21011
e10b0808
AX
21012fi
21013 rm -Rf build
21014
21015
4d815aed 21016 EXTRA_KCFLAGS="$tmp_flags"
e10b0808 21017
4d815aed
AX
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
21019$as_echo_n "checking whether sget() wants 5 args... " >&6; }
e10b0808
AX
21020
21021
ea04106b
AX
21022cat confdefs.h - <<_ACEOF >conftest.c
21023
21024
21025 #include <linux/fs.h>
21026
21027int
21028main (void)
21029{
21030
4d815aed
AX
21031 struct file_system_type *type = NULL;
21032 int (*test)(struct super_block *,void *) = NULL;
21033 int (*set)(struct super_block *,void *) = NULL;
21034 int flags = 0;
21035 void *data = NULL;
21036 (void) sget(type, test, set, flags, data);
ea04106b
AX
21037
21038 ;
21039 return 0;
21040}
21041
21042_ACEOF
21043
21044
21045
21046cat - <<_ACEOF >conftest.h
21047
21048_ACEOF
21049
21050
21051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21052 echo "obj-m := conftest.o" >build/Makefile
21053 modpost_flag=''
21054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21065 test $ac_status = 0; }; }; then :
ea04106b 21066
e10b0808
AX
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21068$as_echo "yes" >&6; }
ea04106b 21069
4d815aed 21070$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
ea04106b 21071
ea04106b 21072
e10b0808
AX
21073else
21074 $as_echo "$as_me: failed program was:" >&5
21075sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
21076
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21078$as_echo "no" >&6; }
21079
ea04106b 21080
ea04106b 21081
e10b0808
AX
21082fi
21083 rm -Rf build
ea04106b 21084
ea04106b
AX
21085
21086
4d815aed
AX
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
21088$as_echo_n "checking whether lseek_execute() is available... " >&6; }
ea04106b 21089
ea04106b
AX
21090
21091
21092cat confdefs.h - <<_ACEOF >conftest.c
21093
21094
4d815aed 21095 #include <linux/fs.h>
ea04106b
AX
21096
21097int
21098main (void)
21099{
21100
4d815aed
AX
21101 struct file *fp __attribute__ ((unused)) = NULL;
21102 struct inode *ip __attribute__ ((unused)) = NULL;
21103 loff_t offset __attribute__ ((unused)) = 0;
21104 loff_t maxsize __attribute__ ((unused)) = 0;
21105
21106 lseek_execute(fp, ip, offset, maxsize);
ea04106b
AX
21107
21108 ;
21109 return 0;
21110}
21111
21112_ACEOF
21113
21114
21115
21116cat - <<_ACEOF >conftest.h
21117
21118_ACEOF
21119
21120
21121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21122 echo "obj-m := conftest.o" >build/Makefile
21123 modpost_flag=''
21124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21125 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21132 (eval $ac_try) 2>&5
21133 ac_status=$?
21134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21135 test $ac_status = 0; }; }; then :
4d815aed
AX
21136 rc=0
21137else
21138 $as_echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140 rc=1
ea04106b 21141
ea04106b 21142
4d815aed
AX
21143fi
21144 rm -Rf build
ea04106b
AX
21145
21146
4d815aed
AX
21147 if test $rc -ne 0; then :
21148
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21150$as_echo "no" >&6; }
21151
21152 else
21153 if test "x$enable_linux_builtin" != xyes; then
21154
21155 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
21156 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21157 rc=$?
21158 if test $rc -ne 0; then
21159 export=0
21160 for file in fs/read_write.c; do
21161 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
21162 "$LINUX/$file" 2>/dev/null
21163 rc=$?
21164 if test $rc -eq 0; then
21165 export=1
21166 break;
21167 fi
21168 done
21169 if test $export -eq 0; then :
21170 rc=1
21171 else :
21172 rc=0
21173 fi
21174 else :
21175 rc=0
21176 fi
21177
21178 fi
21179 if test $rc -ne 0; then :
ea04106b
AX
21180
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21182$as_echo "no" >&6; }
21183
4d815aed 21184 else :
ea04106b 21185
4d815aed
AX
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21187$as_echo "yes" >&6; }
ea04106b 21188
4d815aed 21189$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
ea04106b
AX
21190
21191
4d815aed
AX
21192 fi
21193 fi
21194
ea04106b
AX
21195
21196
87dac73d
AX
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
21198$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
ea04106b
AX
21199
21200
21201cat confdefs.h - <<_ACEOF >conftest.c
21202
21203
4d815aed
AX
21204 #include <linux/fs.h>
21205 int iterate(struct file *filp, struct dir_context * context)
21206 { return 0; }
21207
21208 static const struct file_operations fops
21209 __attribute__ ((unused)) = {
87dac73d 21210 .iterate_shared = iterate,
4d815aed 21211 };
ea04106b
AX
21212
21213int
21214main (void)
21215{
21216
ea04106b
AX
21217
21218 ;
21219 return 0;
21220}
21221
21222_ACEOF
21223
21224
21225
21226cat - <<_ACEOF >conftest.h
21227
21228_ACEOF
21229
21230
21231 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21232 echo "obj-m := conftest.o" >build/Makefile
21233 modpost_flag=''
21234 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21235 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21240 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21245 test $ac_status = 0; }; }; then :
21246
87dac73d
AX
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21248$as_echo "yes" >&6; }
21249
21250$as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
21251
21252
21253else
21254 $as_echo "$as_me: failed program was:" >&5
21255sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21258$as_echo "no" >&6; }
21259
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
21261$as_echo_n "checking whether fops->iterate() is available... " >&6; }
21262
21263
21264cat confdefs.h - <<_ACEOF >conftest.c
21265
21266
21267 #include <linux/fs.h>
21268 int iterate(struct file *filp, struct dir_context * context)
21269 { return 0; }
21270
21271 static const struct file_operations fops
21272 __attribute__ ((unused)) = {
21273 .iterate = iterate,
21274 };
21275
21276int
21277main (void)
21278{
21279
21280
21281 ;
21282 return 0;
21283}
21284
21285_ACEOF
21286
21287
21288
21289cat - <<_ACEOF >conftest.h
21290
21291_ACEOF
21292
21293
21294 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21295 echo "obj-m := conftest.o" >build/Makefile
21296 modpost_flag=''
21297 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21298 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
21302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21303 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21308 test $ac_status = 0; }; }; then :
21309
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21311$as_echo "yes" >&6; }
21312
21313$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
21314
21315
21316else
21317 $as_echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21321$as_echo "no" >&6; }
21322
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
21324$as_echo_n "checking whether fops->readdir() is available... " >&6; }
21325
21326
21327cat confdefs.h - <<_ACEOF >conftest.c
21328
21329
21330 #include <linux/fs.h>
21331 int readdir(struct file *filp, void *entry, filldir_t func)
21332 { return 0; }
21333
21334 static const struct file_operations fops
21335 __attribute__ ((unused)) = {
21336 .readdir = readdir,
21337 };
21338
21339int
21340main (void)
21341{
21342
21343
21344 ;
21345 return 0;
21346}
21347
21348_ACEOF
21349
21350
21351
21352cat - <<_ACEOF >conftest.h
21353
21354_ACEOF
21355
21356
21357 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21358 echo "obj-m := conftest.o" >build/Makefile
21359 modpost_flag=''
21360 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21361 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21366 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21371 test $ac_status = 0; }; }; then :
21372
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
21374$as_echo "yes" >&6; }
21375
87dac73d 21376$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
ea04106b
AX
21377
21378
21379else
21380 $as_echo "$as_me: failed program was:" >&5
21381sed 's/^/| /' conftest.$ac_ext >&5
21382
87dac73d 21383 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
ea04106b
AX
21384
21385
ea04106b 21386
87dac73d
AX
21387fi
21388 rm -Rf build
ea04106b 21389
ea04106b 21390
4d815aed
AX
21391
21392
21393
21394fi
21395 rm -Rf build
21396
21397
21398
21399
21400
4d815aed
AX
21401fi
21402 rm -Rf build
21403
21404
21405
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
21407$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
ea04106b
AX
21408
21409
21410cat confdefs.h - <<_ACEOF >conftest.c
21411
21412
4d815aed 21413 #include <linux/fs.h>
e10b0808 21414
4d815aed
AX
21415 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
21416 { return 0; }
21417 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
21418 { return 0; }
21419
21420 static const struct file_operations
21421 fops __attribute__ ((unused)) = {
21422 .read_iter = test_read,
21423 .write_iter = test_write,
21424 };
ea04106b
AX
21425
21426int
21427main (void)
21428{
21429
ea04106b
AX
21430
21431 ;
21432 return 0;
21433}
21434
21435_ACEOF
21436
21437
21438
21439cat - <<_ACEOF >conftest.h
21440
21441_ACEOF
21442
21443
21444 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21445 echo "obj-m := conftest.o" >build/Makefile
21446 modpost_flag=''
21447 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21448 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21453 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21458 test $ac_status = 0; }; }; then :
21459
4d815aed 21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
21461$as_echo "yes" >&6; }
21462
4d815aed 21463$as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
ea04106b
AX
21464
21465
21466else
21467 $as_echo "$as_me: failed program was:" >&5
21468sed 's/^/| /' conftest.$ac_ext >&5
21469
4d815aed 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94a40997 21471$as_echo "no" >&6; }
94a40997
AX
21472
21473
94a40997 21474
4d815aed
AX
21475fi
21476 rm -Rf build
94a40997 21477
94a40997 21478
4d815aed
AX
21479
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
21482$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
21483
21484
21485cat confdefs.h - <<_ACEOF >conftest.c
21486
21487
21488 #include <linux/pagemap.h>
94a40997
AX
21489
21490int
21491main (void)
21492{
21493
4d815aed
AX
21494 struct page page;
21495 kmap_atomic(&page);
94a40997
AX
21496
21497 ;
21498 return 0;
21499}
21500
21501_ACEOF
21502
21503
21504
21505cat - <<_ACEOF >conftest.h
21506
21507_ACEOF
21508
21509
21510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21511 echo "obj-m := conftest.o" >build/Makefile
21512 modpost_flag=''
21513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21524 test $ac_status = 0; }; }; then :
21525
4d815aed 21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94a40997
AX
21527$as_echo "yes" >&6; }
21528
4d815aed 21529$as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
94a40997
AX
21530
21531
21532else
21533 $as_echo "$as_me: failed program was:" >&5
21534sed 's/^/| /' conftest.$ac_ext >&5
21535
4d815aed
AX
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21537$as_echo "no" >&6; }
ea04106b
AX
21538
21539
ea04106b 21540
e10b0808
AX
21541fi
21542 rm -Rf build
ea04106b
AX
21543
21544
ea04106b 21545
ea04106b 21546
4d815aed
AX
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
21548$as_echo_n "checking whether follow_down_one() is available... " >&6; }
ea04106b
AX
21549
21550
21551cat confdefs.h - <<_ACEOF >conftest.c
21552
21553
4d815aed 21554 #include <linux/namei.h>
ea04106b
AX
21555
21556int
21557main (void)
21558{
21559
4d815aed
AX
21560 struct path *p = NULL;
21561 follow_down_one(p);
ea04106b
AX
21562
21563 ;
21564 return 0;
21565}
21566
21567_ACEOF
21568
21569
21570
21571cat - <<_ACEOF >conftest.h
21572
21573_ACEOF
21574
21575
21576 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21577 echo "obj-m := conftest.o" >build/Makefile
21578 modpost_flag=''
21579 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21580 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21585 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21590 test $ac_status = 0; }; }; then :
ea04106b 21591
4d815aed
AX
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21593$as_echo "yes" >&6; }
ea04106b 21594
4d815aed 21595$as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
ea04106b
AX
21596
21597
4d815aed
AX
21598else
21599 $as_echo "$as_me: failed program was:" >&5
21600sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21601
e10b0808 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
21603$as_echo "no" >&6; }
21604
ea04106b 21605
ea04106b 21606
4d815aed
AX
21607fi
21608 rm -Rf build
ea04106b 21609
ea04106b 21610
ea04106b 21611
ea04106b 21612
4d815aed
AX
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
21614$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
ea04106b
AX
21615
21616
4d815aed 21617cat confdefs.h - <<_ACEOF >conftest.c
ea04106b
AX
21618
21619
4d815aed 21620 #include <linux/blkdev.h>
ea04106b 21621
4d815aed
AX
21622 int make_request(struct request_queue *q, struct bio *bio)
21623 {
21624 return (0);
21625 }
ea04106b 21626
4d815aed
AX
21627int
21628main (void)
21629{
ea04106b 21630
4d815aed 21631 blk_queue_make_request(NULL, &make_request);
ea04106b 21632
4d815aed
AX
21633 ;
21634 return 0;
21635}
ea04106b 21636
4d815aed 21637_ACEOF
ea04106b 21638
ea04106b 21639
ea04106b 21640
4d815aed 21641cat - <<_ACEOF >conftest.h
ea04106b 21642
4d815aed 21643_ACEOF
ea04106b 21644
ea04106b 21645
4d815aed
AX
21646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21647 echo "obj-m := conftest.o" >build/Makefile
21648 modpost_flag=''
21649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21650 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21655 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660 test $ac_status = 0; }; }; then :
ea04106b 21661
4d815aed
AX
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21663$as_echo "yes" >&6; }
ea04106b 21664
4d815aed 21665$as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
ea04106b 21666
ea04106b 21667
4d815aed
AX
21668$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
21669
ea04106b 21670
ea04106b 21671else
4d815aed
AX
21672 $as_echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21674
4d815aed
AX
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676$as_echo "no" >&6; }
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
21678$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
ea04106b 21679
ea04106b 21680
4d815aed 21681cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 21682
ea04106b 21683
4d815aed 21684 #include <linux/blkdev.h>
ea04106b 21685
4d815aed
AX
21686 void make_request(struct request_queue *q, struct bio *bio)
21687 {
21688 return;
21689 }
ea04106b 21690
4d815aed
AX
21691int
21692main (void)
21693{
ea04106b 21694
4d815aed 21695 blk_queue_make_request(NULL, &make_request);
ea04106b 21696
4d815aed
AX
21697 ;
21698 return 0;
21699}
ea04106b 21700
4d815aed 21701_ACEOF
ea04106b 21702
ea04106b 21703
ea04106b 21704
4d815aed 21705cat - <<_ACEOF >conftest.h
ea04106b 21706
4d815aed 21707_ACEOF
ea04106b
AX
21708
21709
4d815aed
AX
21710 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21711 echo "obj-m := conftest.o" >build/Makefile
21712 modpost_flag=''
21713 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21714 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21719 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21724 test $ac_status = 0; }; }; then :
21725
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21727$as_echo "yes" >&6; }
21728
21729$as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
ea04106b 21730
ea04106b 21731
e10b0808 21732else
4d815aed
AX
21733 $as_echo "$as_me: failed program was:" >&5
21734sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21735
4d815aed
AX
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21737$as_echo "no" >&6; }
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
21739$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
ea04106b 21740
ea04106b 21741
4d815aed 21742cat confdefs.h - <<_ACEOF >conftest.c
ea04106b
AX
21743
21744
4d815aed 21745 #include <linux/blkdev.h>
ea04106b 21746
4d815aed
AX
21747 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
21748 {
21749 return (BLK_QC_T_NONE);
21750 }
ea04106b 21751
4d815aed
AX
21752int
21753main (void)
21754{
ea04106b 21755
4d815aed 21756 blk_queue_make_request(NULL, &make_request);
ea04106b 21757
4d815aed
AX
21758 ;
21759 return 0;
21760}
ea04106b 21761
4d815aed 21762_ACEOF
ea04106b
AX
21763
21764
ea04106b 21765
4d815aed 21766cat - <<_ACEOF >conftest.h
ea04106b 21767
4d815aed 21768_ACEOF
ea04106b 21769
ea04106b 21770
4d815aed
AX
21771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21772 echo "obj-m := conftest.o" >build/Makefile
21773 modpost_flag=''
21774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21775 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21785 test $ac_status = 0; }; }; then :
ea04106b 21786
4d815aed
AX
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21788$as_echo "yes" >&6; }
ea04106b 21789
4d815aed 21790$as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
ea04106b 21791
ea04106b 21792
4d815aed 21793$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
ea04106b 21794
ea04106b 21795
4d815aed
AX
21796else
21797 $as_echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21799
4d815aed
AX
21800 as_fn_error $? "no - Please file a bug report at
21801 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
ea04106b
AX
21802
21803
ea04106b 21804
e10b0808 21805fi
4d815aed 21806 rm -Rf build
ea04106b 21807
ea04106b 21808
ea04106b 21809
ea04106b 21810
ea04106b 21811
e10b0808 21812fi
4d815aed 21813 rm -Rf build
ea04106b 21814
ea04106b
AX
21815
21816
21817
ea04106b 21818
4d815aed
AX
21819fi
21820 rm -Rf build
ea04106b
AX
21821
21822
ea04106b 21823
ea04106b 21824
4d815aed
AX
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
21826$as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
ea04106b 21827
e10b0808 21828
ea04106b 21829
4d815aed 21830cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 21831
ea04106b 21832
4d815aed 21833 #include <linux/bio.h>
ea04106b 21834
4d815aed
AX
21835 void (*generic_start_io_acct_f)(int, unsigned long,
21836 struct hd_struct *) = &generic_start_io_acct;
21837 void (*generic_end_io_acct_f)(int, struct hd_struct *,
21838 unsigned long) = &generic_end_io_acct;
ea04106b 21839
e10b0808 21840int
4d815aed 21841main (void)
e10b0808 21842{
4d815aed
AX
21843
21844 generic_start_io_acct(0, 0, NULL);
21845 generic_end_io_acct(0, NULL, 0);
21846
e10b0808
AX
21847 ;
21848 return 0;
21849}
ea04106b 21850
4d815aed 21851_ACEOF
ea04106b 21852
ea04106b
AX
21853
21854
4d815aed 21855cat - <<_ACEOF >conftest.h
ea04106b 21856
ea04106b
AX
21857_ACEOF
21858
21859
4d815aed
AX
21860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21861 echo "obj-m := conftest.o" >build/Makefile
21862 modpost_flag=''
21863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21866 (eval $ac_try) 2>&5
21867 ac_status=$?
21868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21869 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874 test $ac_status = 0; }; }; then :
21875 rc=0
e10b0808 21876else
4d815aed
AX
21877 $as_echo "$as_me: failed program was:" >&5
21878sed 's/^/| /' conftest.$ac_ext >&5
21879 rc=1
21880
21881
e10b0808 21882fi
4d815aed 21883 rm -Rf build
ea04106b
AX
21884
21885
4d815aed
AX
21886 if test $rc -ne 0; then :
21887
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889$as_echo "no" >&6; }
21890
21891 else
21892 if test "x$enable_linux_builtin" != xyes; then
21893
21894 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
21895 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21896 rc=$?
21897 if test $rc -ne 0; then
21898 export=0
21899 for file in block/bio.c; do
21900 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
21901 "$LINUX/$file" 2>/dev/null
21902 rc=$?
21903 if test $rc -eq 0; then
21904 export=1
21905 break;
21906 fi
21907 done
21908 if test $export -eq 0; then :
21909 rc=1
21910 else :
21911 rc=0
21912 fi
21913 else :
21914 rc=0
21915 fi
21916
21917 fi
21918 if test $rc -ne 0; then :
21919
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921$as_echo "no" >&6; }
21922
21923 else :
21924
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21926$as_echo "yes" >&6; }
21927
21928$as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
21929
21930
21931 fi
21932 fi
21933
21934
21935
21936 if test "$LINUX_OBJ" != "$LINUX"; then :
21937
21938 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
ea04106b 21939
ea04106b 21940fi
4d815aed
AX
21941
21942
21943
21944 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
21945 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
21946 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
21947 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
21948
21949
21950 ;;
21951 user)
21952
21953
21954# Check whether --with-mounthelperdir was given.
21955if test "${with_mounthelperdir+set}" = set; then :
21956 withval=$with_mounthelperdir; mounthelperdir=$withval
21957else
21958 mounthelperdir=/sbin
ea04106b 21959fi
ea04106b 21960
ea04106b 21961
4d815aed
AX
21962
21963
21964
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
21966$as_echo_n "checking for udev directories... " >&6; }
21967
21968# Check whether --with-udevdir was given.
21969if test "${with_udevdir+set}" = set; then :
21970 withval=$with_udevdir; udevdir=$withval
ea04106b 21971else
4d815aed 21972 udevdir=check
e10b0808 21973fi
ea04106b 21974
ea04106b 21975
4d815aed 21976 if test "x$udevdir" = xcheck; then :
ea04106b 21977
4d815aed
AX
21978 path1=/lib/udev
21979 path2=/usr/lib/udev
21980 default=$path2
ea04106b 21981
4d815aed
AX
21982 if test -d "$path1"; then :
21983 udevdir="$path1"
21984else
ea04106b 21985
4d815aed
AX
21986 if test -d "$path2"; then :
21987 udevdir="$path2"
21988else
21989 udevdir="$default"
21990fi
ea04106b 21991
4d815aed 21992fi
ea04106b 21993
4d815aed 21994fi
ea04106b
AX
21995
21996
4d815aed
AX
21997# Check whether --with-udevruledir was given.
21998if test "${with_udevruledir+set}" = set; then :
21999 withval=$with_udevruledir; udevruledir=$withval
e10b0808 22000else
4d815aed 22001 udevruledir="${udevdir}/rules.d"
e10b0808 22002fi
ea04106b
AX
22003
22004
ea04106b 22005
4d815aed
AX
22006
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
22008$as_echo "$udevdir;$udevruledir" >&6; }
22009
22010
22011 # Check whether --enable-systemd was given.
22012if test "${enable_systemd+set}" = set; then :
22013 enableval=$enable_systemd;
e10b0808 22014else
4d815aed
AX
22015 enable_systemd=yes
22016fi
ea04106b 22017
4d815aed
AX
22018
22019
22020# Check whether --with-systemdunitdir was given.
22021if test "${with_systemdunitdir+set}" = set; then :
22022 withval=$with_systemdunitdir; systemdunitdir=$withval
e10b0808 22023else
4d815aed 22024 systemdunitdir=/usr/lib/systemd/system
e10b0808 22025fi
4d815aed
AX
22026
22027
22028
22029# Check whether --with-systemdpresetdir was given.
22030if test "${with_systemdpresetdir+set}" = set; then :
22031 withval=$with_systemdpresetdir; systemdpresetdir=$withval
22032else
22033 systemdpresetdir=/usr/lib/systemd/system-preset
e10b0808 22034fi
ea04106b 22035
ea04106b 22036
4d815aed
AX
22037
22038# Check whether --with-systemdmodulesloaddir was given.
22039if test "${with_systemdmodulesloaddir+set}" = set; then :
22040 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
e10b0808 22041else
4d815aed 22042 systemdmodulesloaddir=/usr/lib/modules-load.d
e10b0808 22043fi
ea04106b 22044
ea04106b 22045
4d815aed
AX
22046
22047 if test "x$enable_systemd" = xyes; then :
22048
22049 ZFS_INIT_SYSTEMD=systemd
22050 ZFS_MODULE_LOAD=modules-load.d
22051 modulesloaddir=$systemdmodulesloaddir
22052
22053fi
22054
22055
22056
22057
22058
22059
22060
22061
22062 # Check whether --enable-sysvinit was given.
22063if test "${enable_sysvinit+set}" = set; then :
22064 enableval=$enable_sysvinit;
e10b0808 22065else
4d815aed
AX
22066 enable_sysvinit=yes
22067fi
ea04106b 22068
4d815aed
AX
22069
22070 if test "x$enable_sysvinit" = xyes; then :
22071 ZFS_INIT_SYSV=init.d
22072fi
22073
22074
22075
22076
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
22078$as_echo_n "checking for dracut directory... " >&6; }
22079
22080# Check whether --with-dracutdir was given.
22081if test "${with_dracutdir+set}" = set; then :
22082 withval=$with_dracutdir; dracutdir=$withval
22083else
22084 dracutdir=check
22085fi
22086
22087
22088 if test "x$dracutdir" = xcheck; then :
22089
22090 path1=/usr/share/dracut
22091 path2=/usr/lib/dracut
22092 default=$path2
22093
22094 if test -d "$path1"; then :
22095 dracutdir="$path1"
22096else
22097
22098 if test -d "$path2"; then :
22099 dracutdir="$path2"
22100else
22101 dracutdir="$default"
22102fi
22103
22104fi
22105
22106fi
22107
22108
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
22110$as_echo "$dracutdir" >&6; }
22111
22112
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
22114$as_echo_n "checking for target asm dir... " >&6; }
22115 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
22116
22117 case $TARGET_ARCH in
22118 i386|x86_64)
22119 TARGET_ASM_DIR=asm-${TARGET_ARCH}
22120 ;;
22121 *)
22122 TARGET_ASM_DIR=asm-generic
22123 ;;
22124 esac
22125
22126
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
22128$as_echo "$TARGET_ASM_DIR" >&6; }
22129
22130
22131 ZLIB=
22132
22133 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22134if test "x$ac_cv_header_zlib_h" = xyes; then :
22135
22136else
22137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22139as_fn_error $? "
22140 *** zlib.h missing, zlib-devel package required
22141See \`config.log' for more details" "$LINENO" 5; }
22142fi
22143
22144
22145
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
22147$as_echo_n "checking for compress2 in -lz... " >&6; }
22148if ${ac_cv_lib_z_compress2+:} false; then :
22149 $as_echo_n "(cached) " >&6
22150else
22151 ac_check_lib_save_LIBS=$LIBS
22152LIBS="-lz $LIBS"
22153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154/* end confdefs.h. */
22155
22156/* Override any GCC internal prototype to avoid an error.
22157 Use char because int might match the return type of a GCC
22158 builtin and then its argument prototype would still apply. */
22159#ifdef __cplusplus
22160extern "C"
22161#endif
22162char compress2 ();
22163int
22164main ()
22165{
22166return compress2 ();
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171if ac_fn_c_try_link "$LINENO"; then :
22172 ac_cv_lib_z_compress2=yes
22173else
22174 ac_cv_lib_z_compress2=no
22175fi
22176rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22178LIBS=$ac_check_lib_save_LIBS
22179fi
22180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
22181$as_echo "$ac_cv_lib_z_compress2" >&6; }
22182if test "x$ac_cv_lib_z_compress2" = xyes; then :
22183 cat >>confdefs.h <<_ACEOF
22184#define HAVE_LIBZ 1
22185_ACEOF
22186
22187 LIBS="-lz $LIBS"
22188
22189else
22190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22192as_fn_error $? "
22193 *** compress2() missing, zlib-devel package required
22194See \`config.log' for more details" "$LINENO" 5; }
22195fi
22196
22197
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
22199$as_echo_n "checking for uncompress in -lz... " >&6; }
22200if ${ac_cv_lib_z_uncompress+:} false; then :
22201 $as_echo_n "(cached) " >&6
22202else
22203 ac_check_lib_save_LIBS=$LIBS
22204LIBS="-lz $LIBS"
22205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206/* end confdefs.h. */
22207
22208/* Override any GCC internal prototype to avoid an error.
22209 Use char because int might match the return type of a GCC
22210 builtin and then its argument prototype would still apply. */
22211#ifdef __cplusplus
22212extern "C"
22213#endif
22214char uncompress ();
22215int
22216main ()
22217{
22218return uncompress ();
22219 ;
22220 return 0;
22221}
22222_ACEOF
22223if ac_fn_c_try_link "$LINENO"; then :
22224 ac_cv_lib_z_uncompress=yes
22225else
22226 ac_cv_lib_z_uncompress=no
22227fi
22228rm -f core conftest.err conftest.$ac_objext \
22229 conftest$ac_exeext conftest.$ac_ext
22230LIBS=$ac_check_lib_save_LIBS
22231fi
22232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
22233$as_echo "$ac_cv_lib_z_uncompress" >&6; }
22234if test "x$ac_cv_lib_z_uncompress" = xyes; then :
22235 cat >>confdefs.h <<_ACEOF
22236#define HAVE_LIBZ 1
22237_ACEOF
22238
22239 LIBS="-lz $LIBS"
22240
22241else
22242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22244as_fn_error $? "
22245 *** uncompress() missing, zlib-devel package required
22246See \`config.log' for more details" "$LINENO" 5; }
22247fi
22248
22249
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
22251$as_echo_n "checking for crc32 in -lz... " >&6; }
22252if ${ac_cv_lib_z_crc32+:} false; then :
22253 $as_echo_n "(cached) " >&6
22254else
22255 ac_check_lib_save_LIBS=$LIBS
22256LIBS="-lz $LIBS"
22257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22258/* end confdefs.h. */
22259
22260/* Override any GCC internal prototype to avoid an error.
22261 Use char because int might match the return type of a GCC
22262 builtin and then its argument prototype would still apply. */
22263#ifdef __cplusplus
22264extern "C"
22265#endif
22266char crc32 ();
22267int
22268main ()
22269{
22270return crc32 ();
22271 ;
22272 return 0;
22273}
22274_ACEOF
22275if ac_fn_c_try_link "$LINENO"; then :
22276 ac_cv_lib_z_crc32=yes
22277else
22278 ac_cv_lib_z_crc32=no
22279fi
22280rm -f core conftest.err conftest.$ac_objext \
22281 conftest$ac_exeext conftest.$ac_ext
22282LIBS=$ac_check_lib_save_LIBS
22283fi
22284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
22285$as_echo "$ac_cv_lib_z_crc32" >&6; }
22286if test "x$ac_cv_lib_z_crc32" = xyes; then :
22287 cat >>confdefs.h <<_ACEOF
22288#define HAVE_LIBZ 1
22289_ACEOF
22290
22291 LIBS="-lz $LIBS"
22292
22293else
22294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22296as_fn_error $? "
22297 *** crc32() missing, zlib-devel package required
22298See \`config.log' for more details" "$LINENO" 5; }
22299fi
22300
22301
22302 ZLIB="-lz"
22303
22304
22305$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
22306
22307
22308
22309 LIBUUID=
22310
22311 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
22312if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
22313
22314else
22315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22317as_fn_error $? "
22318 *** uuid/uuid.h missing, libuuid-devel package required
22319See \`config.log' for more details" "$LINENO" 5; }
22320fi
22321
22322
22323
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
22325$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
22326if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
22327 $as_echo_n "(cached) " >&6
22328else
22329 ac_check_lib_save_LIBS=$LIBS
22330LIBS="-luuid $LIBS"
22331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332/* end confdefs.h. */
22333
22334/* Override any GCC internal prototype to avoid an error.
22335 Use char because int might match the return type of a GCC
22336 builtin and then its argument prototype would still apply. */
22337#ifdef __cplusplus
22338extern "C"
22339#endif
22340char uuid_generate ();
22341int
22342main ()
22343{
22344return uuid_generate ();
22345 ;
22346 return 0;
22347}
22348_ACEOF
22349if ac_fn_c_try_link "$LINENO"; then :
22350 ac_cv_lib_uuid_uuid_generate=yes
22351else
22352 ac_cv_lib_uuid_uuid_generate=no
22353fi
22354rm -f core conftest.err conftest.$ac_objext \
22355 conftest$ac_exeext conftest.$ac_ext
22356LIBS=$ac_check_lib_save_LIBS
22357fi
22358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
22359$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
22360if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
22361 cat >>confdefs.h <<_ACEOF
22362#define HAVE_LIBUUID 1
22363_ACEOF
22364
22365 LIBS="-luuid $LIBS"
22366
22367else
22368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22370as_fn_error $? "
22371 *** uuid_generate() missing, libuuid-devel package required
22372See \`config.log' for more details" "$LINENO" 5; }
22373fi
22374
22375
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
22377$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
22378if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
22379 $as_echo_n "(cached) " >&6
22380else
22381 ac_check_lib_save_LIBS=$LIBS
22382LIBS="-luuid $LIBS"
22383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384/* end confdefs.h. */
22385
22386/* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22389#ifdef __cplusplus
22390extern "C"
22391#endif
22392char uuid_is_null ();
22393int
22394main ()
22395{
22396return uuid_is_null ();
22397 ;
22398 return 0;
22399}
22400_ACEOF
22401if ac_fn_c_try_link "$LINENO"; then :
22402 ac_cv_lib_uuid_uuid_is_null=yes
e10b0808
AX
22403else
22404 ac_cv_lib_uuid_uuid_is_null=no
22405fi
4d815aed
AX
22406rm -f core conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
22408LIBS=$ac_check_lib_save_LIBS
22409fi
22410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
22411$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
22412if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
22413 cat >>confdefs.h <<_ACEOF
22414#define HAVE_LIBUUID 1
22415_ACEOF
22416
22417 LIBS="-luuid $LIBS"
22418
22419else
22420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22422as_fn_error $? "
22423 *** uuid_is_null() missing, libuuid-devel package required
22424See \`config.log' for more details" "$LINENO" 5; }
22425fi
22426
22427
22428 LIBUUID="-luuid"
22429
22430
22431$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
22432
22433
22434
22435
22436# Check whether --with-blkid was given.
22437if test "${with_blkid+set}" = set; then :
22438 withval=$with_blkid;
22439else
22440 with_blkid=check
22441fi
22442
22443
22444 LIBBLKID=
22445 if test "x$with_blkid" = xyes; then :
22446
22447 LIBBLKID="-lblkid"
22448
22449
22450$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
22451
22452
22453fi
22454
22455 if test "x$with_blkid" = xcheck; then :
22456
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
22458$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
22459if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
22460 $as_echo_n "(cached) " >&6
22461else
22462 ac_check_lib_save_LIBS=$LIBS
22463LIBS="-lblkid $LIBS"
22464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465/* end confdefs.h. */
22466
22467/* Override any GCC internal prototype to avoid an error.
22468 Use char because int might match the return type of a GCC
22469 builtin and then its argument prototype would still apply. */
22470#ifdef __cplusplus
22471extern "C"
22472#endif
22473char blkid_get_cache ();
22474int
22475main ()
22476{
22477return blkid_get_cache ();
22478 ;
22479 return 0;
22480}
22481_ACEOF
22482if ac_fn_c_try_link "$LINENO"; then :
22483 ac_cv_lib_blkid_blkid_get_cache=yes
22484else
22485 ac_cv_lib_blkid_blkid_get_cache=no
22486fi
22487rm -f core conftest.err conftest.$ac_objext \
22488 conftest$ac_exeext conftest.$ac_ext
22489LIBS=$ac_check_lib_save_LIBS
22490fi
22491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22492$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22493if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
22494
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
22496$as_echo_n "checking for blkid zfs support... " >&6; }
22497
22498 ZFS_DEV=`mktemp`
22499 truncate -s 64M $ZFS_DEV
22500 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
22501 dd of=$ZFS_DEV bs=1k count=8 \
22502 seek=128 conv=notrunc &>/dev/null \
22503 >/dev/null 2>/dev/null
22504 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
22505 dd of=$ZFS_DEV bs=1k count=8 \
22506 seek=132 conv=notrunc &>/dev/null \
22507 >/dev/null 2>/dev/null
22508 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
22509 dd of=$ZFS_DEV bs=1k count=8 \
22510 seek=136 conv=notrunc &>/dev/null \
22511 >/dev/null 2>/dev/null
22512 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
22513 dd of=$ZFS_DEV bs=1k count=8 \
22514 seek=140 conv=notrunc &>/dev/null \
22515 >/dev/null 2>/dev/null
22516
22517 saved_LIBS="$LIBS"
22518 LIBS="-lblkid"
22519
22520 if test "$cross_compiling" = yes; then :
22521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22523as_fn_error $? "cannot run test program while cross compiling
22524See \`config.log' for more details" "$LINENO" 5; }
22525else
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527/* end confdefs.h. */
22528
22529 #include <stdio.h>
22530 #include <stdlib.h>
22531 #include <blkid/blkid.h>
22532
22533int
22534main ()
22535{
22536
22537 blkid_cache cache;
22538 char *value;
22539
22540 if (blkid_get_cache(&cache, NULL) < 0)
22541 return 1;
22542
22543 value = blkid_get_tag_value(cache, "TYPE",
22544 "$ZFS_DEV");
22545 if (!value) {
22546 blkid_put_cache(cache);
22547 return 2;
22548 }
22549
22550 if (strcmp(value, "zfs_member")) {
22551 free(value);
22552 blkid_put_cache(cache);
22553 return 0;
22554 }
22555
22556 free(value);
22557 blkid_put_cache(cache);
22558
22559 ;
22560 return 0;
22561}
22562_ACEOF
22563if ac_fn_c_try_run "$LINENO"; then :
22564
22565 rm -f $ZFS_DEV
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22567$as_echo "yes" >&6; }
22568 LIBBLKID="-lblkid"
22569
22570
22571$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
22572
22573
22574else
22575
22576 rm -f $ZFS_DEV
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22578$as_echo "no" >&6; }
22579 if test "x$with_blkid" != xcheck; then :
22580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22582as_fn_error $? "--with-blkid given but unavailable
22583See \`config.log' for more details" "$LINENO" 5; }
22584fi
22585
22586fi
22587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22588 conftest.$ac_objext conftest.beam conftest.$ac_ext
22589fi
22590
22591
22592 LIBS="$saved_LIBS"
22593
22594else
22595
22596 if test "x$with_blkid" != xcheck; then :
22597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22599as_fn_error $? "--with-blkid given but unavailable
22600See \`config.log' for more details" "$LINENO" 5; }
22601fi
22602
22603
22604fi
22605
22606
22607fi
22608
22609
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
22611$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
22612
22613 saved_flags="$CFLAGS"
22614 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
22615
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617/* end confdefs.h. */
22618
22619int
22620main ()
22621{
22622
22623 ;
22624 return 0;
22625}
22626_ACEOF
22627if ac_fn_c_try_compile "$LINENO"; then :
22628
22629 FRAME_LARGER_THAN=-Wframe-larger-than=1024
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22631$as_echo "yes" >&6; }
22632
22633else
22634
22635 FRAME_LARGER_THAN=
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22637$as_echo "no" >&6; }
22638
22639fi
22640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641
22642 CFLAGS="$saved_flags"
22643
22644
22645
22646 if test "x$runstatedir" = x; then
22647 runstatedir='${localstatedir}/run'
22648
22649 fi
22650
22651 for ac_func in mlockall
22652do :
22653 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
22654if test "x$ac_cv_func_mlockall" = xyes; then :
22655 cat >>confdefs.h <<_ACEOF
22656#define HAVE_MLOCKALL 1
22657_ACEOF
22658
22659fi
22660done
22661
22662 ;;
22663 all)
22664
22665
22666# Check whether --with-linux was given.
22667if test "${with_linux+set}" = set; then :
22668 withval=$with_linux; kernelsrc="$withval"
22669fi
22670
22671
22672
22673# Check whether --with-linux-obj was given.
22674if test "${with_linux_obj+set}" = set; then :
22675 withval=$with_linux_obj; kernelbuild="$withval"
22676fi
22677
22678
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
22680$as_echo_n "checking kernel source directory... " >&6; }
22681 if test -z "$kernelsrc"; then :
22682
22683 if test -e "/lib/modules/$(uname -r)/source"; then :
22684
22685 headersdir="/lib/modules/$(uname -r)/source"
22686 sourcelink=$(readlink -f "$headersdir")
22687
22688elif test -e "/lib/modules/$(uname -r)/build"; then :
22689
22690 headersdir="/lib/modules/$(uname -r)/build"
22691 sourcelink=$(readlink -f "$headersdir")
22692
22693else
22694
22695 sourcelink=$(ls -1d /usr/src/kernels/* \
22696 /usr/src/linux-* \
22697 2>/dev/null | grep -v obj | tail -1)
22698
22699fi
22700
22701 if test -n "$sourcelink" && test -e ${sourcelink}; then :
22702
22703 kernelsrc=`readlink -f ${sourcelink}`
22704
22705else
22706
22707 kernelsrc="Not found"
22708
22709fi
22710
22711else
22712
22713 if test "$kernelsrc" = "NONE"; then :
22714
22715 kernsrcver=NONE
22716
22717fi
22718
22719fi
22720
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
22722$as_echo "$kernelsrc" >&6; }
22723 if test ! -d "$kernelsrc"; then :
22724
22725 as_fn_error $? "
22726 *** Please make sure the kernel devel package for your distribution
22727 *** is installed and then try again. If that fails, you can specify the
22728 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
22729
22730fi
22731
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
22733$as_echo_n "checking kernel build directory... " >&6; }
22734 if test -z "$kernelbuild"; then :
22735
22736 if test -e "/lib/modules/$(uname -r)/build"; then :
22737
22738 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
22739
22740elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
22741
22742 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
22743
22744elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
22745
22746 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
22747
22748elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
22749
22750 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
22751
22752else
22753
22754 kernelbuild=${kernelsrc}
22755
22756fi
22757
22758fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
22760$as_echo "$kernelbuild" >&6; }
22761
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
22763$as_echo_n "checking kernel source version... " >&6; }
22764 utsrelease1=$kernelbuild/include/linux/version.h
22765 utsrelease2=$kernelbuild/include/linux/utsrelease.h
22766 utsrelease3=$kernelbuild/include/generated/utsrelease.h
22767 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
22768
22769 utsrelease=linux/version.h
22770
22771elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
22772
22773 utsrelease=linux/utsrelease.h
22774
22775elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
22776
22777 utsrelease=generated/utsrelease.h
22778
22779fi
22780
22781 if test "$utsrelease"; then :
22782
22783 kernsrcver=`(echo "#include <$utsrelease>";
22784 echo "kernsrcver=UTS_RELEASE") |
22785 cpp -I $kernelbuild/include |
22786 grep "^kernsrcver=" | cut -d \" -f 2`
22787
22788 if test -z "$kernsrcver"; then :
22789
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22791$as_echo "Not found" >&6; }
22792 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
22793
22794fi
22795
22796else
22797
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22799$as_echo "Not found" >&6; }
22800 if test "x$enable_linux_builtin" != xyes; then
22801 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
22802 else
22803 as_fn_error $? "
22804 *** Cannot find UTS_RELEASE definition.
22805 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
22806 fi
22807
22808fi
22809
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
22811$as_echo "$kernsrcver" >&6; }
22812
22813 LINUX=${kernelsrc}
22814 LINUX_OBJ=${kernelbuild}
22815 LINUX_VERSION=${kernsrcver}
22816
22817
22818
22819
22820
22821
22822 modpost=$LINUX/scripts/Makefile.modpost
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
22824$as_echo_n "checking kernel file name for module symbols... " >&6; }
22825 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
22826
22827 if grep -q Modules.symvers $modpost; then :
22828
22829 LINUX_SYMBOLS=Modules.symvers
22830
22831else
22832
22833 LINUX_SYMBOLS=Module.symvers
22834
22835fi
22836
22837 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
22838
22839 as_fn_error $? "
22840 *** Please make sure the kernel devel package for your distribution
22841 *** is installed. If you are building with a custom kernel, make sure the
22842 *** kernel is configured, built, and the '--with-linux=PATH' configure
22843 *** option refers to the location of the kernel source." "$LINENO" 5
22844
22845fi
22846
22847else
22848
22849 LINUX_SYMBOLS=NONE
22850
22851fi
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
22853$as_echo "$LINUX_SYMBOLS" >&6; }
22854
22855
22856
22857
22858
22859# Check whether --with-spl was given.
22860if test "${with_spl+set}" = set; then :
22861 withval=$with_spl; splsrc="$withval"
22862fi
22863
22864
22865
22866# Check whether --with-spl-obj was given.
22867if test "${with_spl_obj+set}" = set; then :
22868 withval=$with_spl_obj; splbuild="$withval"
22869fi
22870
22871
22872
22873# Check whether --with-spl-timeout was given.
22874if test "${with_spl_timeout+set}" = set; then :
22875 withval=$with_spl_timeout; timeout="$withval"
22876else
22877 timeout=0
22878fi
22879
22880
22881 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
22882 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
22883 splsrc2="/usr/local/src/spl-${VERSION}"
22884 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
22885 splsrc4="/usr/src/spl-${VERSION}"
22886 splsrc5="../spl/"
22887 splsrc6="$LINUX"
22888
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
22890$as_echo_n "checking spl source directory... " >&6; }
22891 if test -z "${splsrc}"; then :
22892
22893 if test -e "${splsrc0}/spl.release.in"; then :
22894
22895 splsrc=${splsrc0}
22896
22897elif test -e "${splsrc1}/spl.release.in"; then :
22898
22899 splsrc=${splsrc1}
22900
22901elif test -e "${splsrc2}/spl.release.in"; then :
22902
22903 splsrc=${splsrc2}
22904
22905elif test -e "${splsrc3}/spl.release.in"; then :
22906
22907 splsrc=$(readlink -f "${splsrc3}")
22908
22909elif test -e "${splsrc4}/spl.release.in" ; then :
22910
22911 splsrc=${splsrc4}
22912
22913elif test -e "${splsrc5}/spl.release.in"; then :
22914
22915 splsrc=$(readlink -f "${splsrc5}")
22916
22917elif test -e "${splsrc6}/spl.release.in" ; then :
22918
22919 splsrc=${splsrc6}
22920
22921else
22922
22923 splsrc="Not found"
22924
22925fi
22926
22927else
22928
22929 if test "$splsrc" = "NONE"; then :
22930
22931 splbuild=NONE
22932 splsrcver=NONE
22933
22934fi
22935
22936fi
22937
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
22939$as_echo "$splsrc" >&6; }
22940 if test ! -e "$splsrc/spl.release.in"; then :
22941
22942 as_fn_error $? "
22943 *** Please make sure the kmod spl devel package for your distribution
22944 *** is installed then try again. If that fails you can specify the
22945 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
22946
22947fi
22948
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
22950$as_echo_n "checking spl build directory... " >&6; }
22951 while true; do
22952 if test -z "$splbuild"; then :
22953
22954 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
22955
22956 splbuild="${splsrc}/${LINUX_VERSION}"
22957
22958elif test -e "${splsrc}/spl_config.h" ; then :
22959
22960 splbuild="${splsrc}"
22961
22962elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
22963
22964 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
22965
22966else
22967
22968 splbuild="Not found"
22969
22970fi
22971
22972fi
22973 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
22974
22975 break;
22976
22977else
22978
22979 sleep 1
22980 timeout=$((timeout-1))
22981
22982fi
22983 done
22984
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
22986$as_echo "$splbuild" >&6; }
22987 if ! test -e "$splbuild/spl_config.h"; then :
22988
22989 as_fn_error $? "
22990 *** Please make sure the kmod spl devel <kernel> package for your
22991 *** distribution is installed then try again. If that fails you
22992 *** can specify the location of the spl objects with the
22993 *** '--with-spl-obj=PATH' option." "$LINENO" 5
22994
22995fi
22996
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
22998$as_echo_n "checking spl source version... " >&6; }
22999 if test -r $splbuild/spl_config.h &&
23000 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
23001
23002
23003 splsrcver=`(echo "#include <spl_config.h>";
23004 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
23005 cpp -I $splbuild |
23006 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
23007
e10b0808 23008fi
ea04106b 23009
4d815aed
AX
23010 if test -z "$splsrcver"; then :
23011
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23013$as_echo "Not found" >&6; }
23014 as_fn_error $? "
23015 *** Cannot determine the version of the spl source.
23016 *** Please prepare the spl source before running this script" "$LINENO" 5
ea04106b 23017
e10b0808 23018fi
ea04106b 23019
4d815aed
AX
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
23021$as_echo "$splsrcver" >&6; }
ea04106b 23022
4d815aed
AX
23023 SPL=${splsrc}
23024 SPL_OBJ=${splbuild}
23025 SPL_VERSION=${splsrcver}
ea04106b 23026
ea04106b 23027
ea04106b 23028
ea04106b 23029
ea04106b 23030
4d815aed
AX
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
23032$as_echo_n "checking spl file name for module symbols... " >&6; }
23033 SPL_SYMBOLS=NONE
ea04106b 23034
4d815aed
AX
23035 while true; do
23036 if test -r $SPL_OBJ/Module.symvers; then :
ea04106b 23037
4d815aed 23038 SPL_SYMBOLS=Module.symvers
ea04106b 23039
4d815aed 23040elif test -r $SPL_OBJ/Modules.symvers; then :
ea04106b 23041
4d815aed
AX
23042 SPL_SYMBOLS=Modules.symvers
23043
23044elif test -r $SPL_OBJ/module/Module.symvers; then :
ea04106b 23045
4d815aed 23046 SPL_SYMBOLS=Module.symvers
ea04106b 23047
4d815aed 23048elif test -r $SPL_OBJ/module/Modules.symvers; then :
ea04106b 23049
4d815aed 23050 SPL_SYMBOLS=Modules.symvers
ea04106b 23051
e10b0808 23052fi
ea04106b 23053
4d815aed
AX
23054 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
23055
23056 break;
ea04106b 23057
e10b0808 23058else
ea04106b 23059
4d815aed
AX
23060 sleep 1
23061 timeout=$((timeout-1))
23062
23063fi
23064 done
23065
23066 if test "$SPL_SYMBOLS" = NONE; then :
23067
23068 SPL_SYMBOLS=$LINUX_SYMBOLS
23069
23070fi
23071
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
23073$as_echo "$SPL_SYMBOLS" >&6; }
23074
23075
23076
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
23078$as_echo_n "checking whether modules can be built... " >&6; }
23079
23080
23081cat confdefs.h - <<_ACEOF >conftest.c
23082
23083
e10b0808 23084int
4d815aed 23085main (void)
e10b0808 23086{
4d815aed 23087
e10b0808
AX
23088 ;
23089 return 0;
23090}
4d815aed 23091
e10b0808 23092_ACEOF
4d815aed
AX
23093
23094
23095
23096cat - <<_ACEOF >conftest.h
23097
23098_ACEOF
23099
23100
23101 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23102 echo "obj-m := conftest.o" >build/Makefile
23103 modpost_flag=''
23104 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23105 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23112 (eval $ac_try) 2>&5
23113 ac_status=$?
23114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23115 test $ac_status = 0; }; }; then :
23116
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23118$as_echo "yes" >&6; }
23119
e10b0808 23120else
4d815aed
AX
23121 $as_echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23125$as_echo "no" >&6; }
23126 if test "x$enable_linux_builtin" != xyes; then
23127 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
23128 else
23129 as_fn_error $? "
23130 *** Unable to build an empty module.
23131 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
23132 fi
23133
23134
23135
e10b0808 23136fi
4d815aed 23137 rm -Rf build
ea04106b
AX
23138
23139
ea04106b
AX
23140
23141
4d815aed
AX
23142 if test "x$cross_compiling" != xyes; then :
23143
23144 if test "$cross_compiling" = yes; then :
e10b0808
AX
23145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23147as_fn_error $? "cannot run test program while cross compiling
23148See \`config.log' for more details" "$LINENO" 5; }
23149else
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151/* end confdefs.h. */
ea04106b 23152
4d815aed
AX
23153
23154 #include "$LINUX/include/linux/license.h"
ea04106b 23155
e10b0808
AX
23156int
23157main ()
23158{
ea04106b 23159
4d815aed 23160 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
ea04106b
AX
23161
23162 ;
23163 return 0;
23164}
4d815aed 23165
ea04106b 23166_ACEOF
e10b0808 23167if ac_fn_c_try_run "$LINENO"; then :
ea04106b 23168
ea04106b 23169
4d815aed 23170$as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
ea04106b 23171
ea04106b 23172
e10b0808
AX
23173fi
23174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23175 conftest.$ac_objext conftest.beam conftest.$ac_ext
23176fi
ea04106b 23177
ea04106b 23178
ea04106b 23179fi
ea04106b
AX
23180
23181
ea04106b 23182
4d815aed
AX
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
23184$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
ea04106b
AX
23185
23186
4d815aed 23187cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 23188
ea04106b 23189
4d815aed 23190 #include <linux/module.h>
ea04106b
AX
23191
23192int
4d815aed 23193main (void)
ea04106b
AX
23194{
23195
4d815aed
AX
23196 #ifndef CONFIG_DEBUG_LOCK_ALLOC
23197 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
23198 #endif
23199
ea04106b
AX
23200 ;
23201 return 0;
23202}
ea04106b 23203
4d815aed 23204_ACEOF
ea04106b 23205
ea04106b
AX
23206
23207
4d815aed 23208cat - <<_ACEOF >conftest.h
ea04106b 23209
4d815aed 23210_ACEOF
ea04106b 23211
ea04106b 23212
4d815aed
AX
23213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23214 echo "obj-m := conftest.o" >build/Makefile
23215 modpost_flag=''
23216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227 test $ac_status = 0; }; }; then :
ea04106b 23228
4d815aed
AX
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23230$as_echo "yes" >&6; }
ea04106b 23231
4d815aed
AX
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
23233$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
23234 tmp_flags="$EXTRA_KCFLAGS"
ea04106b 23235
ea04106b 23236
4d815aed 23237cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 23238
ea04106b 23239
4d815aed
AX
23240 #include <linux/module.h>
23241 #include <linux/mutex.h>
ea04106b 23242
4d815aed 23243 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b 23244
4d815aed
AX
23245int
23246main (void)
23247{
ea04106b 23248
4d815aed 23249 struct mutex lock;
ea04106b 23250
4d815aed
AX
23251 mutex_init(&lock);
23252 mutex_lock(&lock);
23253 mutex_unlock(&lock);
ea04106b 23254
4d815aed
AX
23255 ;
23256 return 0;
23257}
ea04106b 23258
4d815aed 23259_ACEOF
ea04106b
AX
23260
23261
23262
4d815aed 23263cat - <<_ACEOF >conftest.h
ea04106b 23264
4d815aed 23265_ACEOF
ea04106b
AX
23266
23267
4d815aed
AX
23268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23269 echo "obj-m := conftest.o" >build/Makefile
23270 modpost_flag=''
23271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23282 test $ac_status = 0; }; }; then :
ea04106b 23283
4d815aed
AX
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23285$as_echo "no" >&6; }
ea04106b 23286
4d815aed
AX
23287else
23288 $as_echo "$as_me: failed program was:" >&5
23289sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23290
4d815aed
AX
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23292$as_echo "yes" >&6; }
23293 as_fn_error $? "
23294 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
23295 *** with the CDDL license and will prevent the module linking stage
23296 *** from succeeding. You must rebuild your kernel without this
23297 *** option enabled." "$LINENO" 5
ea04106b
AX
23298
23299
ea04106b 23300
e10b0808 23301fi
4d815aed 23302 rm -Rf build
ea04106b 23303
ea04106b 23304
4d815aed 23305 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 23306
ea04106b 23307
4d815aed
AX
23308else
23309 $as_echo "$as_me: failed program was:" >&5
23310sed 's/^/| /' conftest.$ac_ext >&5
23311
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23313$as_echo "no" >&6; }
ea04106b
AX
23314
23315
ea04106b 23316
ea04106b 23317
e10b0808 23318fi
4d815aed 23319 rm -Rf build
ea04106b 23320
ea04106b 23321
ea04106b 23322
ea04106b
AX
23323
23324
ea04106b 23325
4d815aed
AX
23326 tmp_flags="$EXTRA_KCFLAGS"
23327 EXTRA_KCFLAGS="-I\$(src)"
ea04106b 23328
4d815aed
AX
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
23330$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
ea04106b
AX
23331
23332
4d815aed 23333cat confdefs.h - <<_ACEOF >conftest.c
ea04106b
AX
23334
23335
4d815aed
AX
23336 #include <linux/module.h>
23337 MODULE_LICENSE(ZFS_META_LICENSE);
ea04106b 23338
4d815aed
AX
23339 #define CREATE_TRACE_POINTS
23340 #include "conftest.h"
ea04106b 23341
4d815aed
AX
23342int
23343main (void)
23344{
ea04106b 23345
4d815aed
AX
23346 trace_zfs_autoconf_event_one(1UL);
23347 trace_zfs_autoconf_event_two(2UL);
ea04106b 23348
4d815aed
AX
23349 ;
23350 return 0;
23351}
ea04106b 23352
4d815aed 23353_ACEOF
ea04106b 23354
ea04106b 23355
ea04106b 23356
4d815aed 23357cat - <<_ACEOF >conftest.h
ea04106b 23358
4d815aed
AX
23359 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
23360 #define _CONFTEST_H
ea04106b 23361
4d815aed
AX
23362 #undef TRACE_SYSTEM
23363 #define TRACE_SYSTEM zfs
23364 #include <linux/tracepoint.h>
ea04106b 23365
4d815aed
AX
23366 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
23367 TP_PROTO(unsigned long i),
23368 TP_ARGS(i),
23369 TP_STRUCT__entry(
23370 __field(unsigned long, i)
23371 ),
23372 TP_fast_assign(
23373 __entry->i = i;
23374 ),
23375 TP_printk("i = %lu", __entry->i)
23376 );
ea04106b 23377
4d815aed
AX
23378 #define DEFINE_AUTOCONF_EVENT(name) \
23379 DEFINE_EVENT(zfs_autoconf_event_class, name, \
23380 TP_PROTO(unsigned long i), \
23381 TP_ARGS(i))
23382 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
23383 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
ea04106b 23384
4d815aed 23385 #endif /* _CONFTEST_H */
ea04106b 23386
4d815aed
AX
23387 #undef TRACE_INCLUDE_PATH
23388 #define TRACE_INCLUDE_PATH .
23389 #define TRACE_INCLUDE_FILE conftest
23390 #include <trace/define_trace.h>
ea04106b 23391
4d815aed 23392_ACEOF
ea04106b 23393
ea04106b 23394
4d815aed
AX
23395 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23396 echo "obj-m := conftest.o" >build/Makefile
23397 modpost_flag=''
23398 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23399 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23404 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }; then :
ea04106b 23410
4d815aed
AX
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23412$as_echo "yes" >&6; }
ea04106b 23413
4d815aed 23414$as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
ea04106b 23415
ea04106b 23416
4d815aed
AX
23417else
23418 $as_echo "$as_me: failed program was:" >&5
23419sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23420
4d815aed
AX
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23422$as_echo "no" >&6; }
ea04106b
AX
23423
23424
ea04106b 23425
4d815aed
AX
23426fi
23427 rm -Rf build
ea04106b
AX
23428
23429
4d815aed 23430 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
23431
23432
4d815aed
AX
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
23434$as_echo_n "checking whether current->bio_tail exists... " >&6; }
ea04106b 23435
ea04106b 23436
4d815aed 23437cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 23438
ea04106b 23439
4d815aed 23440 #include <linux/sched.h>
ea04106b 23441
4d815aed
AX
23442int
23443main (void)
23444{
ea04106b 23445
4d815aed 23446 current->bio_tail = (struct bio **) NULL;
ea04106b 23447
4d815aed
AX
23448 ;
23449 return 0;
23450}
ea04106b 23451
4d815aed 23452_ACEOF
ea04106b
AX
23453
23454
ea04106b 23455
4d815aed 23456cat - <<_ACEOF >conftest.h
ea04106b 23457
4d815aed 23458_ACEOF
ea04106b 23459
ea04106b 23460
4d815aed
AX
23461 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23462 echo "obj-m := conftest.o" >build/Makefile
23463 modpost_flag=''
23464 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23465 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23472 (eval $ac_try) 2>&5
23473 ac_status=$?
23474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23475 test $ac_status = 0; }; }; then :
ea04106b 23476
4d815aed
AX
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23478$as_echo "yes" >&6; }
ea04106b 23479
4d815aed 23480$as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
ea04106b 23481
ea04106b 23482
e10b0808 23483else
4d815aed
AX
23484 $as_echo "$as_me: failed program was:" >&5
23485sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23486
4d815aed
AX
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23488$as_echo "no" >&6; }
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
23490$as_echo_n "checking whether current->bio_list exists... " >&6; }
ea04106b 23491
ea04106b 23492
4d815aed 23493cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 23494
ea04106b 23495
4d815aed 23496 #include <linux/sched.h>
ea04106b 23497
4d815aed
AX
23498int
23499main (void)
23500{
ea04106b 23501
4d815aed 23502 current->bio_list = (struct bio_list *) NULL;
ea04106b 23503
4d815aed
AX
23504 ;
23505 return 0;
23506}
ea04106b 23507
4d815aed 23508_ACEOF
ea04106b
AX
23509
23510
ea04106b 23511
4d815aed 23512cat - <<_ACEOF >conftest.h
ea04106b 23513
4d815aed 23514_ACEOF
ea04106b 23515
ea04106b 23516
4d815aed
AX
23517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23518 echo "obj-m := conftest.o" >build/Makefile
23519 modpost_flag=''
23520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23521 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23528 (eval $ac_try) 2>&5
23529 ac_status=$?
23530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23531 test $ac_status = 0; }; }; then :
ea04106b 23532
4d815aed
AX
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23534$as_echo "yes" >&6; }
23535
23536$as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
ea04106b 23537
ea04106b 23538
e10b0808 23539else
4d815aed
AX
23540 $as_echo "$as_me: failed program was:" >&5
23541sed 's/^/| /' conftest.$ac_ext >&5
23542
23543 as_fn_error $? "no - Please file a bug report at
23544 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
23545
ea04106b 23546
ea04106b 23547
e10b0808 23548fi
4d815aed 23549 rm -Rf build
ea04106b
AX
23550
23551
23552
ea04106b 23553
ea04106b 23554
87dac73d
AX
23555fi
23556 rm -Rf build
23557
23558
23559
23560
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
23562$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
23563
23564
23565cat confdefs.h - <<_ACEOF >conftest.c
23566
23567
23568 #include <linux/bio.h>
23569
23570int
23571main (void)
23572{
23573
23574 blk_qc_t blk_qc;
23575 struct bio *bio = NULL;
23576 blk_qc = submit_bio(bio);
23577
23578 ;
23579 return 0;
23580}
23581
23582_ACEOF
23583
23584
23585
23586cat - <<_ACEOF >conftest.h
23587
23588_ACEOF
23589
23590
23591 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23592 echo "obj-m := conftest.o" >build/Makefile
23593 modpost_flag=''
23594 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23595 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597 (eval $ac_try) 2>&5
23598 ac_status=$?
23599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23605 test $ac_status = 0; }; }; then :
23606
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23608$as_echo "yes" >&6; }
23609
23610$as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
23611
23612
23613else
23614 $as_echo "$as_me: failed program was:" >&5
23615sed 's/^/| /' conftest.$ac_ext >&5
23616
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23618$as_echo "no" >&6; }
23619
23620
23621
e10b0808 23622fi
4d815aed 23623 rm -Rf build
ea04106b 23624
ea04106b
AX
23625
23626
ea04106b 23627
4d815aed
AX
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
23629$as_echo_n "checking block device operation prototypes... " >&6; }
23630 tmp_flags="$EXTRA_KCFLAGS"
23631 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b 23632
ea04106b 23633
4d815aed 23634cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 23635
ea04106b 23636
4d815aed 23637 #include <linux/blkdev.h>
ea04106b 23638
4d815aed
AX
23639 int blk_open(struct block_device *bdev, fmode_t mode)
23640 { return 0; }
23641 int blk_ioctl(struct block_device *bdev, fmode_t mode,
23642 unsigned x, unsigned long y) { return 0; }
23643 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
23644 unsigned x, unsigned long y) { return 0; }
ea04106b 23645
4d815aed
AX
23646 static const struct block_device_operations
23647 bops __attribute__ ((unused)) = {
23648 .open = blk_open,
23649 .release = NULL,
23650 .ioctl = blk_ioctl,
23651 .compat_ioctl = blk_compat_ioctl,
23652 };
ea04106b 23653
4d815aed
AX
23654int
23655main (void)
23656{
ea04106b 23657
ea04106b 23658
4d815aed
AX
23659 ;
23660 return 0;
23661}
ea04106b 23662
4d815aed 23663_ACEOF
ea04106b 23664
ea04106b
AX
23665
23666
4d815aed 23667cat - <<_ACEOF >conftest.h
ea04106b 23668
4d815aed 23669_ACEOF
ea04106b
AX
23670
23671
4d815aed
AX
23672 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23673 echo "obj-m := conftest.o" >build/Makefile
23674 modpost_flag=''
23675 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23676 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23681 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23686 test $ac_status = 0; }; }; then :
ea04106b 23687
4d815aed
AX
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
23689$as_echo "struct block_device" >&6; }
ea04106b 23690
4d815aed
AX
23691$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
23692
23693
23694else
23695 $as_echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
23699$as_echo "struct inode" >&6; }
ea04106b 23700
ea04106b 23701
ea04106b 23702
e10b0808 23703fi
4d815aed 23704 rm -Rf build
ea04106b 23705
ea04106b 23706
4d815aed 23707 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
23708
23709
4d815aed
AX
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
23711$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
23712 tmp_flags="$EXTRA_KCFLAGS"
23713 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b 23714
ea04106b 23715
4d815aed 23716cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 23717
ea04106b 23718
4d815aed 23719 #include <linux/blkdev.h>
ea04106b 23720
4d815aed 23721 void blk_release(struct gendisk *g, fmode_t mode) { return; }
ea04106b 23722
4d815aed
AX
23723 static const struct block_device_operations
23724 bops __attribute__ ((unused)) = {
23725 .open = NULL,
23726 .release = blk_release,
23727 .ioctl = NULL,
23728 .compat_ioctl = NULL,
23729 };
ea04106b 23730
4d815aed
AX
23731int
23732main (void)
23733{
ea04106b 23734
ea04106b 23735
4d815aed
AX
23736 ;
23737 return 0;
23738}
ea04106b 23739
4d815aed 23740_ACEOF
ea04106b 23741
e10b0808 23742
e10b0808 23743
4d815aed 23744cat - <<_ACEOF >conftest.h
e10b0808 23745
4d815aed 23746_ACEOF
e10b0808 23747
e10b0808 23748
4d815aed
AX
23749 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23750 echo "obj-m := conftest.o" >build/Makefile
23751 modpost_flag=''
23752 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23753 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23760 (eval $ac_try) 2>&5
23761 ac_status=$?
23762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23763 test $ac_status = 0; }; }; then :
e10b0808 23764
4d815aed
AX
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
23766$as_echo "void" >&6; }
e10b0808 23767
4d815aed 23768$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
ea04106b 23769
ea04106b 23770
4d815aed
AX
23771else
23772 $as_echo "$as_me: failed program was:" >&5
23773sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23774
4d815aed
AX
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
23776$as_echo "int" >&6; }
ea04106b 23777
ea04106b
AX
23778
23779
4d815aed
AX
23780fi
23781 rm -Rf build
ea04106b
AX
23782
23783
4d815aed 23784 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 23785
4d815aed
AX
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
23787$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
ea04106b
AX
23788
23789
23790cat confdefs.h - <<_ACEOF >conftest.c
23791
23792
4d815aed
AX
23793 #include <linux/types.h>
23794
ea04106b
AX
23795int
23796main (void)
23797{
23798
4d815aed
AX
23799 fmode_t *ptr __attribute__ ((unused));
23800
ea04106b
AX
23801 ;
23802 return 0;
23803}
23804
23805_ACEOF
23806
23807
23808
23809cat - <<_ACEOF >conftest.h
23810
23811_ACEOF
23812
23813
23814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23815 echo "obj-m := conftest.o" >build/Makefile
23816 modpost_flag=''
23817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23818 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23820 (eval $ac_try) 2>&5
23821 ac_status=$?
23822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23823 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }; then :
23829
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23831$as_echo "yes" >&6; }
23832
4d815aed
AX
23833$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
23834
23835
ea04106b
AX
23836else
23837 $as_echo "$as_me: failed program was:" >&5
23838sed 's/^/| /' conftest.$ac_ext >&5
23839
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23841$as_echo "no" >&6; }
23842
23843
23844
23845fi
23846 rm -Rf build
23847
23848
23849
23850
4d815aed
AX
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
23852$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
94a40997 23853
4d815aed
AX
23854
23855cat confdefs.h - <<_ACEOF >conftest.c
e10b0808
AX
23856
23857
4d815aed 23858 #include <linux/kobject.h>
e10b0808
AX
23859
23860int
4d815aed 23861main (void)
e10b0808
AX
23862{
23863
4d815aed
AX
23864 int val __attribute__ ((unused));
23865 val = KOBJ_NAME_LEN;
e10b0808
AX
23866
23867 ;
23868 return 0;
23869}
23870
23871_ACEOF
e10b0808
AX
23872
23873
e10b0808 23874
4d815aed
AX
23875cat - <<_ACEOF >conftest.h
23876
23877_ACEOF
23878
23879
23880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23881 echo "obj-m := conftest.o" >build/Makefile
23882 modpost_flag=''
23883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23887 ac_status=$?
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891 (eval $ac_try) 2>&5
23892 ac_status=$?
23893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894 test $ac_status = 0; }; }; then :
23895
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23897$as_echo "yes" >&6; }
23898
23899$as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
23900
23901
23902else
23903 $as_echo "$as_me: failed program was:" >&5
23904sed 's/^/| /' conftest.$ac_ext >&5
23905
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23907$as_echo "no" >&6; }
e10b0808 23908
e10b0808
AX
23909
23910
94a40997 23911fi
4d815aed 23912 rm -Rf build
94a40997 23913
e10b0808
AX
23914
23915
4d815aed
AX
23916
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
23918$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
ea04106b
AX
23919
23920
23921cat confdefs.h - <<_ACEOF >conftest.c
23922
23923
4d815aed 23924 #include <linux/fs.h>
ea04106b
AX
23925
23926int
23927main (void)
23928{
23929
4d815aed
AX
23930 struct block_device *bdev = NULL;
23931 (void) blkdev_get(bdev, 0, NULL);
ea04106b
AX
23932
23933 ;
23934 return 0;
23935}
23936
23937_ACEOF
23938
23939
23940
23941cat - <<_ACEOF >conftest.h
23942
23943_ACEOF
23944
23945
23946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23947 echo "obj-m := conftest.o" >build/Makefile
23948 modpost_flag=''
23949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23950 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23952 (eval $ac_try) 2>&5
23953 ac_status=$?
23954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23957 (eval $ac_try) 2>&5
23958 ac_status=$?
23959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960 test $ac_status = 0; }; }; then :
23961
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23963$as_echo "yes" >&6; }
23964
4d815aed 23965$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
ea04106b
AX
23966
23967
4d815aed
AX
23968else
23969 $as_echo "$as_me: failed program was:" >&5
23970sed 's/^/| /' conftest.$ac_ext >&5
23971
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23973$as_echo "no" >&6; }
ea04106b
AX
23974
23975
e10b0808 23976
4d815aed
AX
23977fi
23978 rm -Rf build
23979
23980
23981
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
23983$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
23984
23985
23986
23987cat confdefs.h - <<_ACEOF >conftest.c
23988
23989
23990 #include <linux/fs.h>
ea04106b
AX
23991
23992int
23993main (void)
23994{
23995
4d815aed 23996 blkdev_get_by_path(NULL, 0, NULL);
ea04106b
AX
23997
23998 ;
23999 return 0;
24000}
24001
24002_ACEOF
24003
24004
24005
24006cat - <<_ACEOF >conftest.h
24007
24008_ACEOF
24009
24010
24011 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24012 echo "obj-m := conftest.o" >build/Makefile
24013 modpost_flag=''
24014 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24015 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025 test $ac_status = 0; }; }; then :
4d815aed 24026 rc=0
e10b0808
AX
24027else
24028 $as_echo "$as_me: failed program was:" >&5
24029sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 24030 rc=1
e10b0808
AX
24031
24032
24033fi
24034 rm -Rf build
24035
24036
4d815aed
AX
24037 if test $rc -ne 0; then :
24038
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040$as_echo "no" >&6; }
ea04106b 24041
4d815aed
AX
24042 else
24043 if test "x$enable_linux_builtin" != xyes; then
24044
24045 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
24046 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24047 rc=$?
24048 if test $rc -ne 0; then
24049 export=0
24050 for file in fs/block_dev.c; do
24051 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
24052 "$LINUX/$file" 2>/dev/null
24053 rc=$?
24054 if test $rc -eq 0; then
24055 export=1
24056 break;
24057 fi
24058 done
24059 if test $export -eq 0; then :
24060 rc=1
24061 else :
24062 rc=0
24063 fi
24064 else :
24065 rc=0
24066 fi
ea04106b 24067
4d815aed
AX
24068 fi
24069 if test $rc -ne 0; then :
ea04106b
AX
24070
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24072$as_echo "no" >&6; }
24073
4d815aed 24074 else :
ea04106b 24075
4d815aed
AX
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24077$as_echo "yes" >&6; }
ea04106b 24078
4d815aed 24079$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
ea04106b
AX
24080
24081
4d815aed
AX
24082 fi
24083 fi
e10b0808
AX
24084
24085
4d815aed
AX
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
24087$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
e10b0808 24088
ea04106b
AX
24089
24090
24091cat confdefs.h - <<_ACEOF >conftest.c
24092
24093
4d815aed 24094 #include <linux/fs.h>
ea04106b
AX
24095
24096int
24097main (void)
24098{
24099
4d815aed 24100 open_bdev_exclusive(NULL, 0, NULL);
ea04106b
AX
24101
24102 ;
24103 return 0;
24104}
24105
24106_ACEOF
24107
24108
24109
24110cat - <<_ACEOF >conftest.h
24111
24112_ACEOF
24113
24114
24115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24116 echo "obj-m := conftest.o" >build/Makefile
24117 modpost_flag=''
24118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24119 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }; then :
4d815aed
AX
24130 rc=0
24131else
24132 $as_echo "$as_me: failed program was:" >&5
24133sed 's/^/| /' conftest.$ac_ext >&5
24134 rc=1
ea04106b 24135
ea04106b 24136
4d815aed
AX
24137fi
24138 rm -Rf build
ea04106b
AX
24139
24140
4d815aed 24141 if test $rc -ne 0; then :
ea04106b
AX
24142
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24144$as_echo "no" >&6; }
24145
4d815aed
AX
24146 else
24147 if test "x$enable_linux_builtin" != xyes; then
24148
24149 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
24150 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24151 rc=$?
24152 if test $rc -ne 0; then
24153 export=0
24154 for file in fs/block_dev.c; do
24155 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
24156 "$LINUX/$file" 2>/dev/null
24157 rc=$?
24158 if test $rc -eq 0; then
24159 export=1
24160 break;
24161 fi
24162 done
24163 if test $export -eq 0; then :
24164 rc=1
24165 else :
24166 rc=0
24167 fi
24168 else :
24169 rc=0
24170 fi
24171
24172 fi
24173 if test $rc -ne 0; then :
ea04106b 24174
4d815aed
AX
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24176$as_echo "no" >&6; }
ea04106b 24177
4d815aed 24178 else :
ea04106b 24179
4d815aed
AX
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24181$as_echo "yes" >&6; }
ea04106b 24182
4d815aed 24183$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
ea04106b
AX
24184
24185
4d815aed
AX
24186 fi
24187 fi
24188
24189
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
24191$as_echo_n "checking whether lookup_bdev() is available... " >&6; }
24192
ea04106b
AX
24193
24194
24195cat confdefs.h - <<_ACEOF >conftest.c
24196
24197
4d815aed 24198 #include <linux/fs.h>
ea04106b
AX
24199
24200int
24201main (void)
24202{
24203
4d815aed 24204 lookup_bdev(NULL);
ea04106b
AX
24205
24206 ;
24207 return 0;
24208}
24209
24210_ACEOF
24211
24212
24213
24214cat - <<_ACEOF >conftest.h
24215
24216_ACEOF
24217
24218
24219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24220 echo "obj-m := conftest.o" >build/Makefile
24221 modpost_flag=''
24222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24228 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24233 test $ac_status = 0; }; }; then :
4d815aed
AX
24234 rc=0
24235else
24236 $as_echo "$as_me: failed program was:" >&5
24237sed 's/^/| /' conftest.$ac_ext >&5
24238 rc=1
ea04106b 24239
ea04106b 24240
4d815aed
AX
24241fi
24242 rm -Rf build
ea04106b
AX
24243
24244
4d815aed 24245 if test $rc -ne 0; then :
ea04106b
AX
24246
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24248$as_echo "no" >&6; }
4d815aed
AX
24249
24250 else
24251 if test "x$enable_linux_builtin" != xyes; then
24252
24253 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24254 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24255 rc=$?
24256 if test $rc -ne 0; then
24257 export=0
24258 for file in fs/block_dev.c; do
24259 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24260 "$LINUX/$file" 2>/dev/null
24261 rc=$?
24262 if test $rc -eq 0; then
24263 export=1
24264 break;
24265 fi
24266 done
24267 if test $export -eq 0; then :
24268 rc=1
24269 else :
24270 rc=0
24271 fi
24272 else :
24273 rc=0
24274 fi
24275
24276 fi
24277 if test $rc -ne 0; then :
24278
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24280$as_echo "no" >&6; }
24281
24282 else :
24283
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24285$as_echo "yes" >&6; }
24286
24287$as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
24288
24289
24290 fi
24291 fi
24292
24293
24294
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
24296$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
ea04106b
AX
24297
24298
24299cat confdefs.h - <<_ACEOF >conftest.c
24300
24301
4d815aed 24302 #include <linux/buffer_head.h>
ea04106b
AX
24303
24304int
24305main (void)
24306{
24307
4d815aed
AX
24308 struct block_device *bdev = NULL;
24309 invalidate_bdev(bdev);
ea04106b
AX
24310
24311 ;
24312 return 0;
24313}
24314
24315_ACEOF
24316
24317
24318
24319cat - <<_ACEOF >conftest.h
24320
24321_ACEOF
24322
24323
24324 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24325 echo "obj-m := conftest.o" >build/Makefile
24326 modpost_flag=''
24327 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24328 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335 (eval $ac_try) 2>&5
24336 ac_status=$?
24337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338 test $ac_status = 0; }; }; then :
24339
4d815aed 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
24341$as_echo "yes" >&6; }
24342
4d815aed 24343$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
ea04106b
AX
24344
24345
24346else
24347 $as_echo "$as_me: failed program was:" >&5
24348sed 's/^/| /' conftest.$ac_ext >&5
24349
4d815aed
AX
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24351$as_echo "no" >&6; }
ea04106b
AX
24352
24353
e10b0808
AX
24354
24355fi
24356 rm -Rf build
24357
24358
24359
24360
4d815aed
AX
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
24362$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
e10b0808
AX
24363 tmp_flags="$EXTRA_KCFLAGS"
24364 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
24365
24366
24367cat confdefs.h - <<_ACEOF >conftest.c
24368
24369
e10b0808
AX
24370 #include <linux/blkdev.h>
24371
ea04106b
AX
24372int
24373main (void)
24374{
24375
4d815aed
AX
24376 struct block_device *bdev = NULL;
24377 bdev_logical_block_size(bdev);
ea04106b
AX
24378
24379 ;
24380 return 0;
24381}
24382
24383_ACEOF
24384
24385
24386
24387cat - <<_ACEOF >conftest.h
24388
24389_ACEOF
24390
24391
24392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24393 echo "obj-m := conftest.o" >build/Makefile
24394 modpost_flag=''
24395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24396 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406 test $ac_status = 0; }; }; then :
24407
4d815aed
AX
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24409$as_echo "yes" >&6; }
ea04106b 24410
4d815aed 24411$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
ea04106b
AX
24412
24413
24414else
24415 $as_echo "$as_me: failed program was:" >&5
24416sed 's/^/| /' conftest.$ac_ext >&5
24417
4d815aed
AX
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24419$as_echo "no" >&6; }
ea04106b
AX
24420
24421
24422
24423fi
24424 rm -Rf build
24425
24426
e10b0808 24427 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
24428
24429
4d815aed
AX
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
24431$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
e10b0808
AX
24432 tmp_flags="$EXTRA_KCFLAGS"
24433 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
24434
24435
24436cat confdefs.h - <<_ACEOF >conftest.c
24437
24438
e10b0808 24439 #include <linux/blkdev.h>
ea04106b 24440
ea04106b
AX
24441int
24442main (void)
24443{
24444
4d815aed
AX
24445 struct block_device *bdev = NULL;
24446 bdev_physical_block_size(bdev);
ea04106b
AX
24447
24448 ;
24449 return 0;
24450}
24451
24452_ACEOF
24453
24454
24455
24456cat - <<_ACEOF >conftest.h
24457
24458_ACEOF
24459
24460
24461 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24462 echo "obj-m := conftest.o" >build/Makefile
24463 modpost_flag=''
24464 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24465 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24467 (eval $ac_try) 2>&5
24468 ac_status=$?
24469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24470 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24475 test $ac_status = 0; }; }; then :
24476
4d815aed
AX
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24478$as_echo "yes" >&6; }
ea04106b 24479
87dac73d
AX
24480$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
24481
24482
24483else
24484 $as_echo "$as_me: failed program was:" >&5
24485sed 's/^/| /' conftest.$ac_ext >&5
24486
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24488$as_echo "no" >&6; }
24489
24490
24491
24492fi
24493 rm -Rf build
24494
24495
24496 EXTRA_KCFLAGS="$tmp_flags"
24497
24498
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
24500$as_echo_n "checking whether bio has bi_iter... " >&6; }
24501
24502
24503cat confdefs.h - <<_ACEOF >conftest.c
24504
24505
24506 #include <linux/bio.h>
24507
24508int
24509main (void)
24510{
24511
24512 struct bio bio;
24513 bio.bi_iter.bi_sector = 0;
24514
24515 ;
24516 return 0;
24517}
24518
24519_ACEOF
24520
24521
24522
24523cat - <<_ACEOF >conftest.h
24524
24525_ACEOF
24526
24527
24528 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24529 echo "obj-m := conftest.o" >build/Makefile
24530 modpost_flag=''
24531 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24532 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542 test $ac_status = 0; }; }; then :
24543
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24545$as_echo "yes" >&6; }
24546
24547$as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
24548
24549
24550else
24551 $as_echo "$as_me: failed program was:" >&5
24552sed 's/^/| /' conftest.$ac_ext >&5
24553
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24555$as_echo "no" >&6; }
24556
24557
24558
24559fi
24560 rm -Rf build
24561
24562
24563
24564
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
24566$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
24567
24568
24569cat confdefs.h - <<_ACEOF >conftest.c
24570
24571
24572 #include <linux/bio.h>
24573
24574int
24575main (void)
24576{
24577
24578 int flags __attribute__ ((unused));
24579 flags = ((1 << BIO_RW_FAILFAST_DEV) |
24580 (1 << BIO_RW_FAILFAST_TRANSPORT) |
24581 (1 << BIO_RW_FAILFAST_DRIVER));
24582
24583 ;
24584 return 0;
24585}
24586
24587_ACEOF
24588
24589
24590
24591cat - <<_ACEOF >conftest.h
24592
24593_ACEOF
24594
24595
24596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24597 echo "obj-m := conftest.o" >build/Makefile
24598 modpost_flag=''
24599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24600 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }; then :
24611
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24613$as_echo "yes" >&6; }
24614
24615$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
ea04106b
AX
24616
24617
24618else
24619 $as_echo "$as_me: failed program was:" >&5
24620sed 's/^/| /' conftest.$ac_ext >&5
24621
4d815aed
AX
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24623$as_echo "no" >&6; }
ea04106b
AX
24624
24625
24626
24627fi
24628 rm -Rf build
24629
24630
24631
4d815aed 24632
87dac73d
AX
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
24634$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
ea04106b
AX
24635
24636
24637cat confdefs.h - <<_ACEOF >conftest.c
24638
24639
4d815aed 24640 #include <linux/bio.h>
ea04106b
AX
24641
24642int
24643main (void)
24644{
24645
87dac73d
AX
24646 int flags __attribute__ ((unused));
24647 flags = REQ_FAILFAST_MASK;
ea04106b
AX
24648
24649 ;
24650 return 0;
24651}
24652
24653_ACEOF
24654
24655
24656
24657cat - <<_ACEOF >conftest.h
24658
24659_ACEOF
24660
24661
24662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24663 echo "obj-m := conftest.o" >build/Makefile
24664 modpost_flag=''
24665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24666 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }; then :
24677
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24679$as_echo "yes" >&6; }
24680
87dac73d 24681$as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
ea04106b
AX
24682
24683
24684else
24685 $as_echo "$as_me: failed program was:" >&5
24686sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24689$as_echo "no" >&6; }
24690
24691
24692
24693fi
24694 rm -Rf build
24695
24696
24697
24698
87dac73d
AX
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
24700$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
ea04106b
AX
24701
24702
24703cat confdefs.h - <<_ACEOF >conftest.c
24704
24705
87dac73d 24706 #include <linux/blk_types.h>
ea04106b
AX
24707
24708int
24709main (void)
24710{
24711
87dac73d 24712 enum req_op op __attribute__ ((unused)) = REQ_OP_DISCARD;
ea04106b
AX
24713
24714 ;
24715 return 0;
24716}
24717
24718_ACEOF
24719
24720
24721
24722cat - <<_ACEOF >conftest.h
24723
24724_ACEOF
24725
24726
24727 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24728 echo "obj-m := conftest.o" >build/Makefile
24729 modpost_flag=''
24730 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24731 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24738 (eval $ac_try) 2>&5
24739 ac_status=$?
24740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24741 test $ac_status = 0; }; }; then :
24742
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24744$as_echo "yes" >&6; }
24745
87dac73d 24746$as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
ea04106b
AX
24747
24748
24749else
24750 $as_echo "$as_me: failed program was:" >&5
24751sed 's/^/| /' conftest.$ac_ext >&5
24752
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24754$as_echo "no" >&6; }
24755
24756
24757
24758fi
24759 rm -Rf build
24760
24761
24762
24763
87dac73d
AX
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
24765$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
24766
24767
24768cat confdefs.h - <<_ACEOF >conftest.c
24769
24770
24771 #include <linux/blk_types.h>
24772
24773int
24774main (void)
24775{
24776
24777 enum req_op op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
24778
24779 ;
24780 return 0;
24781}
24782
24783_ACEOF
24784
24785
24786
24787cat - <<_ACEOF >conftest.h
24788
24789_ACEOF
24790
24791
24792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24793 echo "obj-m := conftest.o" >build/Makefile
24794 modpost_flag=''
24795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24806 test $ac_status = 0; }; }; then :
24807
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24809$as_echo "yes" >&6; }
24810
24811$as_echo "#define HAVE_REQ_OP_SECURE_DISCARD 1" >>confdefs.h
24812
24813
24814else
24815 $as_echo "$as_me: failed program was:" >&5
24816sed 's/^/| /' conftest.$ac_ext >&5
24817
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24819$as_echo "no" >&6; }
24820
24821
24822
24823fi
24824 rm -Rf build
24825
24826
24827
24828
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
24830$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
24831
24832
24833cat confdefs.h - <<_ACEOF >conftest.c
24834
24835
24836 #include <linux/blk_types.h>
24837
24838int
24839main (void)
24840{
24841
24842 enum req_op op __attribute__ ((unused)) = REQ_OP_FLUSH;
24843
24844 ;
24845 return 0;
24846}
24847
24848_ACEOF
24849
24850
24851
24852cat - <<_ACEOF >conftest.h
24853
24854_ACEOF
24855
24856
24857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24858 echo "obj-m := conftest.o" >build/Makefile
24859 modpost_flag=''
24860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24861 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }; then :
24872
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24874$as_echo "yes" >&6; }
24875
24876$as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
24877
24878
24879else
24880 $as_echo "$as_me: failed program was:" >&5
24881sed 's/^/| /' conftest.$ac_ext >&5
24882
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24884$as_echo "no" >&6; }
24885
24886
24887
24888fi
24889 rm -Rf build
24890
24891
24892
24893
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
24895$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
ea04106b
AX
24896
24897
24898cat confdefs.h - <<_ACEOF >conftest.c
24899
24900
4d815aed 24901 #include <linux/bio.h>
ea04106b
AX
24902
24903int
24904main (void)
24905{
24906
87dac73d
AX
24907 struct bio bio __attribute__ ((unused));
24908 bio.bi_opf = 0;
ea04106b
AX
24909
24910 ;
24911 return 0;
24912}
24913
24914_ACEOF
24915
24916
24917
24918cat - <<_ACEOF >conftest.h
24919
24920_ACEOF
24921
24922
24923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24924 echo "obj-m := conftest.o" >build/Makefile
24925 modpost_flag=''
24926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }; then :
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24940$as_echo "yes" >&6; }
24941
87dac73d 24942$as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
ea04106b
AX
24943
24944
24945else
24946 $as_echo "$as_me: failed program was:" >&5
24947sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24950$as_echo "no" >&6; }
24951
24952
24953
24954fi
24955 rm -Rf build
24956
24957
24958
24959
4d815aed
AX
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
24961$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
ea04106b
AX
24962
24963
24964cat confdefs.h - <<_ACEOF >conftest.c
24965
24966
4d815aed
AX
24967 #include <linux/bio.h>
24968
24969 void wanted_end_io(struct bio *bio) { return; }
24970
24971 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
ea04106b
AX
24972
24973int
24974main (void)
24975{
24976
ea04106b
AX
24977
24978 ;
24979 return 0;
24980}
24981
24982_ACEOF
24983
24984
24985
24986cat - <<_ACEOF >conftest.h
24987
24988_ACEOF
24989
24990
24991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24992 echo "obj-m := conftest.o" >build/Makefile
24993 modpost_flag=''
24994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24995 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25005 test $ac_status = 0; }; }; then :
ea04106b 25006
4d815aed
AX
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25008$as_echo "yes" >&6; }
ea04106b 25009
4d815aed 25010$as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
e10b0808 25011
ea04106b 25012
4d815aed
AX
25013else
25014 $as_echo "$as_me: failed program was:" >&5
25015sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 25016
e10b0808
AX
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018$as_echo "no" >&6; }
ea04106b 25019
ea04106b 25020
ea04106b 25021
4d815aed
AX
25022fi
25023 rm -Rf build
ea04106b 25024
ea04106b
AX
25025
25026
ea04106b 25027
4d815aed
AX
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
25029$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
e10b0808
AX
25030
25031
25032cat confdefs.h - <<_ACEOF >conftest.c
25033
25034
4d815aed 25035 #include <linux/bio.h>
ea04106b
AX
25036
25037int
25038main (void)
25039{
25040
4d815aed
AX
25041 int flags __attribute__ ((unused));
25042 flags = BIO_RW_BARRIER;
ea04106b
AX
25043
25044 ;
25045 return 0;
25046}
25047
25048_ACEOF
25049
25050
25051
25052cat - <<_ACEOF >conftest.h
25053
25054_ACEOF
25055
25056
25057 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25058 echo "obj-m := conftest.o" >build/Makefile
25059 modpost_flag=''
25060 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25061 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25064 ac_status=$?
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }; then :
e10b0808 25072
4d815aed
AX
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25074$as_echo "yes" >&6; }
e10b0808 25075
4d815aed 25076$as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
ea04106b 25077
ea04106b 25078
4d815aed
AX
25079else
25080 $as_echo "$as_me: failed program was:" >&5
25081sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 25082
e10b0808
AX
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25084$as_echo "no" >&6; }
ea04106b 25085
ea04106b 25086
ea04106b 25087
4d815aed
AX
25088fi
25089 rm -Rf build
ea04106b 25090
ea04106b
AX
25091
25092
e10b0808 25093
4d815aed
AX
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
25095$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
ea04106b
AX
25096
25097
25098cat confdefs.h - <<_ACEOF >conftest.c
25099
25100
4d815aed 25101 #include <linux/bio.h>
ea04106b
AX
25102
25103int
25104main (void)
25105{
25106
4d815aed
AX
25107 int flags __attribute__ ((unused));
25108 flags = BIO_RW_DISCARD;
ea04106b
AX
25109
25110 ;
25111 return 0;
25112}
25113
25114_ACEOF
25115
25116
25117
25118cat - <<_ACEOF >conftest.h
25119
25120_ACEOF
25121
25122
25123 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25124 echo "obj-m := conftest.o" >build/Makefile
25125 modpost_flag=''
25126 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25127 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25135 ac_status=$?
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }; then :
ea04106b 25138
4d815aed
AX
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25140$as_echo "yes" >&6; }
ea04106b 25141
4d815aed 25142$as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
e10b0808 25143
e10b0808 25144
4d815aed
AX
25145else
25146 $as_echo "$as_me: failed program was:" >&5
25147sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
25148
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150$as_echo "no" >&6; }
25151
e10b0808 25152
ea04106b 25153
4d815aed
AX
25154fi
25155 rm -Rf build
ea04106b 25156
ea04106b
AX
25157
25158
25159
4d815aed
AX
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
25161$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
25162 tmp_flags="$EXTRA_KCFLAGS"
25163 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
25164
25165
25166cat confdefs.h - <<_ACEOF >conftest.c
25167
25168
4d815aed 25169 #include <linux/blkdev.h>
ea04106b
AX
25170
25171int
25172main (void)
25173{
25174
4d815aed
AX
25175 struct request_queue *q = NULL;
25176 (void) blk_queue_flush(q, REQ_FLUSH);
ea04106b
AX
25177
25178 ;
25179 return 0;
25180}
25181
25182_ACEOF
25183
25184
25185
25186cat - <<_ACEOF >conftest.h
25187
25188_ACEOF
25189
25190
25191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25192 echo "obj-m := conftest.o" >build/Makefile
25193 modpost_flag=''
25194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25195 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25197 (eval $ac_try) 2>&5
25198 ac_status=$?
25199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25200 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25205 test $ac_status = 0; }; }; then :
25206
e10b0808
AX
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25208$as_echo "yes" >&6; }
25209
4d815aed 25210$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
e10b0808 25211
ea04106b 25212
87dac73d
AX
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
25214$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
25215
25216
25217cat confdefs.h - <<_ACEOF >conftest.c
25218
25219
25220 #include <linux/module.h>
25221 #include <linux/blkdev.h>
25222
25223 MODULE_LICENSE("$ZFS_META_LICENSE");
25224
25225int
25226main (void)
25227{
25228
25229 struct request_queue *q = NULL;
25230 (void) blk_queue_flush(q, REQ_FLUSH);
25231
25232 ;
25233 return 0;
25234}
25235
25236_ACEOF
25237
25238
25239
25240cat - <<_ACEOF >conftest.h
25241
25242_ACEOF
25243
25244
25245 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25246 echo "obj-m := conftest.o" >build/Makefile
25247 modpost_flag=''
25248 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25249 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25254 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }; then :
25260
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25262$as_echo "no" >&6; }
25263
25264else
25265 $as_echo "$as_me: failed program was:" >&5
25266sed 's/^/| /' conftest.$ac_ext >&5
25267
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25269$as_echo "yes" >&6; }
25270
25271$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
25272
25273
25274
25275
25276fi
25277 rm -Rf build
25278
25279
25280
ea04106b
AX
25281else
25282 $as_echo "$as_me: failed program was:" >&5
25283sed 's/^/| /' conftest.$ac_ext >&5
25284
e10b0808
AX
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25286$as_echo "no" >&6; }
ea04106b
AX
25287
25288
25289
25290fi
25291 rm -Rf build
25292
25293
ea04106b 25294
87dac73d
AX
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
25296$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
ea04106b
AX
25297
25298
25299cat confdefs.h - <<_ACEOF >conftest.c
25300
25301
87dac73d 25302 #include <linux/kernel.h>
ea04106b
AX
25303 #include <linux/blkdev.h>
25304
4d815aed 25305
ea04106b
AX
25306int
25307main (void)
25308{
25309
4d815aed 25310 struct request_queue *q = NULL;
87dac73d
AX
25311 blk_queue_write_cache(q, true, true);
25312
25313 ;
25314 return 0;
25315}
25316
25317_ACEOF
25318
25319
25320
25321cat - <<_ACEOF >conftest.h
25322
25323_ACEOF
25324
25325
25326 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25327 echo "obj-m := conftest.o" >build/Makefile
25328 modpost_flag=''
25329 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25330 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25335 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340 test $ac_status = 0; }; }; then :
25341
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25343$as_echo "yes" >&6; }
25344
25345$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
25346
25347
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
25349$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
25350
25351
25352cat confdefs.h - <<_ACEOF >conftest.c
25353
25354
25355 #include <linux/kernel.h>
25356 #include <linux/module.h>
25357 #include <linux/blkdev.h>
25358
25359 MODULE_LICENSE("$ZFS_META_LICENSE");
25360
25361int
25362main (void)
25363{
25364
25365 struct request_queue *q = NULL;
25366 blk_queue_write_cache(q, true, true);
ea04106b
AX
25367
25368 ;
25369 return 0;
25370}
25371
25372_ACEOF
25373
25374
25375
25376cat - <<_ACEOF >conftest.h
25377
25378_ACEOF
25379
25380
25381 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25382 echo "obj-m := conftest.o" >build/Makefile
25383 modpost_flag=''
25384 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25385 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }; then :
25396
87dac73d 25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4d815aed 25398$as_echo "no" >&6; }
ea04106b
AX
25399
25400else
25401 $as_echo "$as_me: failed program was:" >&5
25402sed 's/^/| /' conftest.$ac_ext >&5
25403
87dac73d 25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4d815aed
AX
25405$as_echo "yes" >&6; }
25406
87dac73d 25407$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
4d815aed 25408
ea04106b
AX
25409
25410
25411
25412fi
25413 rm -Rf build
25414
25415
87dac73d
AX
25416
25417else
25418 $as_echo "$as_me: failed program was:" >&5
25419sed 's/^/| /' conftest.$ac_ext >&5
25420
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25422$as_echo "no" >&6; }
25423
25424
25425
25426fi
25427 rm -Rf build
25428
25429
25430
ea04106b
AX
25431 EXTRA_KCFLAGS="$tmp_flags"
25432
25433
4d815aed
AX
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
25435$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
ea04106b
AX
25436 tmp_flags="$EXTRA_KCFLAGS"
25437 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25438
25439
25440cat confdefs.h - <<_ACEOF >conftest.c
25441
25442
25443 #include <linux/blkdev.h>
25444
25445int
25446main (void)
25447{
25448
4d815aed
AX
25449 struct request_queue *q = NULL;
25450 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
ea04106b
AX
25451
25452 ;
25453 return 0;
25454}
25455
25456_ACEOF
25457
25458
25459
25460cat - <<_ACEOF >conftest.h
25461
25462_ACEOF
25463
25464
25465 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25466 echo "obj-m := conftest.o" >build/Makefile
25467 modpost_flag=''
25468 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25469 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }; then :
25480
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25482$as_echo "yes" >&6; }
25483
4d815aed 25484$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
ea04106b
AX
25485
25486
25487else
25488 $as_echo "$as_me: failed program was:" >&5
25489sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25492$as_echo "no" >&6; }
25493
25494
25495
25496fi
25497 rm -Rf build
25498
25499
25500 EXTRA_KCFLAGS="$tmp_flags"
25501
25502
4d815aed
AX
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
25504$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
25505 tmp_flags="$EXTRA_KCFLAGS"
25506 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
25507
25508
25509cat confdefs.h - <<_ACEOF >conftest.c
25510
25511
4d815aed 25512 #include <linux/blkdev.h>
ea04106b
AX
25513
25514int
25515main (void)
25516{
25517
4d815aed
AX
25518 struct request_queue *q = NULL;
25519 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
ea04106b
AX
25520
25521 ;
25522 return 0;
25523}
25524
25525_ACEOF
25526
25527
25528
25529cat - <<_ACEOF >conftest.h
25530
25531_ACEOF
25532
25533
25534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25535 echo "obj-m := conftest.o" >build/Makefile
25536 modpost_flag=''
25537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25543 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }; then :
25549
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25551$as_echo "yes" >&6; }
25552
4d815aed 25553$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
ea04106b
AX
25554
25555
25556else
25557 $as_echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
25559
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25561$as_echo "no" >&6; }
25562
25563
25564
25565fi
25566 rm -Rf build
25567
25568
4d815aed 25569 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
25570
25571
4d815aed
AX
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
25573$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
25574 tmp_flags="$EXTRA_KCFLAGS"
25575 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
25576
25577
25578cat confdefs.h - <<_ACEOF >conftest.c
25579
25580
4d815aed 25581 #include <linux/blkdev.h>
ea04106b
AX
25582
25583int
25584main (void)
25585{
25586
4d815aed
AX
25587 struct gendisk *disk = NULL;
25588 (void) get_disk_ro(disk);
ea04106b
AX
25589
25590 ;
25591 return 0;
25592}
25593
25594_ACEOF
25595
25596
25597
25598cat - <<_ACEOF >conftest.h
25599
25600_ACEOF
25601
25602
25603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25604 echo "obj-m := conftest.o" >build/Makefile
25605 modpost_flag=''
25606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25607 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25609 (eval $ac_try) 2>&5
25610 ac_status=$?
25611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25612 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }; then :
25618
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25620$as_echo "yes" >&6; }
25621
4d815aed 25622$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
ea04106b
AX
25623
25624
25625else
25626 $as_echo "$as_me: failed program was:" >&5
25627sed 's/^/| /' conftest.$ac_ext >&5
25628
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630$as_echo "no" >&6; }
25631
25632
25633
25634fi
25635 rm -Rf build
25636
25637
4d815aed 25638 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 25639
4d815aed
AX
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
25641$as_echo_n "checking whether get_gendisk() is available... " >&6; }
ea04106b 25642
ea04106b
AX
25643
25644
25645cat confdefs.h - <<_ACEOF >conftest.c
25646
25647
4d815aed 25648 #include <linux/genhd.h>
ea04106b
AX
25649
25650int
25651main (void)
25652{
25653
4d815aed 25654 get_gendisk(0, NULL);
ea04106b
AX
25655
25656 ;
25657 return 0;
25658}
25659
25660_ACEOF
25661
25662
25663
25664cat - <<_ACEOF >conftest.h
25665
25666_ACEOF
25667
25668
25669 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25670 echo "obj-m := conftest.o" >build/Makefile
25671 modpost_flag=''
25672 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25673 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25678 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25683 test $ac_status = 0; }; }; then :
4d815aed
AX
25684 rc=0
25685else
25686 $as_echo "$as_me: failed program was:" >&5
25687sed 's/^/| /' conftest.$ac_ext >&5
25688 rc=1
ea04106b 25689
ea04106b 25690
4d815aed
AX
25691fi
25692 rm -Rf build
ea04106b
AX
25693
25694
4d815aed 25695 if test $rc -ne 0; then :
ea04106b
AX
25696
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25698$as_echo "no" >&6; }
25699
4d815aed
AX
25700 else
25701 if test "x$enable_linux_builtin" != xyes; then
25702
25703 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
25704 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25705 rc=$?
25706 if test $rc -ne 0; then
25707 export=0
25708 for file in block/genhd.c; do
25709 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
25710 "$LINUX/$file" 2>/dev/null
25711 rc=$?
25712 if test $rc -eq 0; then
25713 export=1
25714 break;
25715 fi
25716 done
25717 if test $export -eq 0; then :
25718 rc=1
25719 else :
25720 rc=0
25721 fi
25722 else :
25723 rc=0
25724 fi
25725
25726 fi
25727 if test $rc -ne 0; then :
ea04106b 25728
4d815aed
AX
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25730$as_echo "no" >&6; }
ea04106b 25731
4d815aed 25732 else :
ea04106b 25733
4d815aed
AX
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25735$as_echo "yes" >&6; }
ea04106b 25736
4d815aed 25737$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
ea04106b
AX
25738
25739
4d815aed
AX
25740 fi
25741 fi
ea04106b
AX
25742
25743
ea04106b 25744
4d815aed
AX
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
25746$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
ea04106b 25747
e10b0808 25748
4d815aed 25749cat confdefs.h - <<_ACEOF >conftest.c
e10b0808 25750
4d815aed
AX
25751
25752 #include <linux/blkdev.h>
ea04106b
AX
25753
25754int
25755main (void)
25756{
25757
4d815aed
AX
25758 struct queue_limits ql __attribute__ ((unused));
25759
25760 ql.discard_granularity = 0;
ea04106b
AX
25761
25762 ;
25763 return 0;
25764}
25765
25766_ACEOF
25767
25768
25769
25770cat - <<_ACEOF >conftest.h
25771
25772_ACEOF
25773
25774
25775 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25776 echo "obj-m := conftest.o" >build/Makefile
25777 modpost_flag=''
25778 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25779 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }; then :
25790
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25792$as_echo "yes" >&6; }
25793
4d815aed 25794$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
ea04106b
AX
25795
25796
25797else
25798 $as_echo "$as_me: failed program was:" >&5
25799sed 's/^/| /' conftest.$ac_ext >&5
25800
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25802$as_echo "no" >&6; }
25803
25804
25805
25806fi
25807 rm -Rf build
25808
25809
ea04106b
AX
25810
25811
4d815aed
AX
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
25813$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
ea04106b
AX
25814
25815
25816cat confdefs.h - <<_ACEOF >conftest.c
25817
25818
4d815aed
AX
25819 #include <linux/fs.h>
25820 #include <linux/xattr.h>
25821
25822 const struct xattr_handler xattr_test_handler = {
25823 .prefix = "test",
25824 .get = NULL,
25825 .set = NULL,
25826 };
25827
25828 const struct xattr_handler *xattr_handlers[] = {
25829 &xattr_test_handler,
25830 };
25831
25832 const struct super_block sb __attribute__ ((unused)) = {
25833 .s_xattr = xattr_handlers,
25834 };
ea04106b
AX
25835
25836int
25837main (void)
25838{
25839
ea04106b
AX
25840
25841 ;
25842 return 0;
25843}
25844
25845_ACEOF
25846
25847
25848
25849cat - <<_ACEOF >conftest.h
25850
25851_ACEOF
25852
25853
25854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25855 echo "obj-m := conftest.o" >build/Makefile
25856 modpost_flag=''
25857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25858 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25863 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }; then :
25869
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25871$as_echo "yes" >&6; }
25872
4d815aed 25873$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
ea04106b
AX
25874
25875
25876else
25877 $as_echo "$as_me: failed program was:" >&5
25878sed 's/^/| /' conftest.$ac_ext >&5
25879
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25881$as_echo "no" >&6; }
25882
25883
25884
5eacc075
AX
25885fi
25886 rm -Rf build
25887
25888
25889
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
25892$as_echo_n "checking whether xattr_handler has name... " >&6; }
25893
25894
25895cat confdefs.h - <<_ACEOF >conftest.c
25896
25897
25898 #include <linux/xattr.h>
25899
25900 static const struct xattr_handler
25901 xops __attribute__ ((unused)) = {
25902 .name = XATTR_NAME_POSIX_ACL_ACCESS,
25903 };
25904
25905int
25906main (void)
25907{
25908
25909
25910 ;
25911 return 0;
25912}
25913
25914_ACEOF
25915
25916
25917
25918cat - <<_ACEOF >conftest.h
25919
25920_ACEOF
25921
25922
25923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25924 echo "obj-m := conftest.o" >build/Makefile
25925 modpost_flag=''
25926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }; then :
25938
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25940$as_echo "yes" >&6; }
25941
25942$as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
25943
25944
25945else
25946 $as_echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25950$as_echo "no" >&6; }
25951
25952
25953
ea04106b
AX
25954fi
25955 rm -Rf build
25956
25957
ea04106b
AX
25958
25959
87dac73d
AX
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
25961$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
ea04106b
AX
25962
25963
25964cat confdefs.h - <<_ACEOF >conftest.c
25965
25966
4d815aed
AX
25967 #include <linux/xattr.h>
25968
25969 int get(const struct xattr_handler *handler,
87dac73d
AX
25970 struct dentry *dentry, struct inode *inode,
25971 const char *name, void *buffer, size_t size) { return 0; }
4d815aed
AX
25972 static const struct xattr_handler
25973 xops __attribute__ ((unused)) = {
25974 .get = get,
25975 };
ea04106b
AX
25976
25977int
25978main (void)
25979{
25980
ea04106b
AX
25981
25982 ;
25983 return 0;
25984}
25985
25986_ACEOF
25987
25988
25989
25990cat - <<_ACEOF >conftest.h
25991
25992_ACEOF
25993
25994
25995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25996 echo "obj-m := conftest.o" >build/Makefile
25997 modpost_flag=''
25998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25999 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26002 ac_status=$?
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26006 (eval $ac_try) 2>&5
26007 ac_status=$?
26008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009 test $ac_status = 0; }; }; then :
26010
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26012$as_echo "yes" >&6; }
26013
87dac73d 26014$as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
ea04106b
AX
26015
26016
26017else
26018 $as_echo "$as_me: failed program was:" >&5
26019sed 's/^/| /' conftest.$ac_ext >&5
26020
87dac73d
AX
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
26022$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
ea04106b
AX
26023
26024
26025cat confdefs.h - <<_ACEOF >conftest.c
26026
26027
4d815aed
AX
26028 #include <linux/xattr.h>
26029
87dac73d
AX
26030 int get(const struct xattr_handler *handler,
26031 struct dentry *dentry, const char *name,
26032 void *buffer, size_t size) { return 0; }
4d815aed
AX
26033 static const struct xattr_handler
26034 xops __attribute__ ((unused)) = {
26035 .get = get,
26036 };
ea04106b
AX
26037
26038int
26039main (void)
26040{
26041
ea04106b
AX
26042
26043 ;
26044 return 0;
26045}
26046
26047_ACEOF
26048
26049
26050
26051cat - <<_ACEOF >conftest.h
26052
26053_ACEOF
26054
26055
26056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26057 echo "obj-m := conftest.o" >build/Makefile
26058 modpost_flag=''
26059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26065 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070 test $ac_status = 0; }; }; then :
26071
4d815aed 26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
26073$as_echo "yes" >&6; }
26074
87dac73d 26075$as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
ea04106b
AX
26076
26077
26078else
26079 $as_echo "$as_me: failed program was:" >&5
26080sed 's/^/| /' conftest.$ac_ext >&5
26081
87dac73d 26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 26083$as_echo "no" >&6; }
87dac73d
AX
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
26085$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
ea04106b
AX
26086
26087
26088cat confdefs.h - <<_ACEOF >conftest.c
26089
26090
4d815aed 26091 #include <linux/xattr.h>
ea04106b 26092
87dac73d
AX
26093 int get(struct dentry *dentry, const char *name,
26094 void *buffer, size_t size, int handler_flags)
26095 { return 0; }
4d815aed
AX
26096 static const struct xattr_handler
26097 xops __attribute__ ((unused)) = {
26098 .get = get,
26099 };
ea04106b
AX
26100
26101int
26102main (void)
26103{
26104
ea04106b
AX
26105
26106 ;
26107 return 0;
26108}
26109
26110_ACEOF
26111
26112
26113
26114cat - <<_ACEOF >conftest.h
26115
26116_ACEOF
26117
26118
26119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26120 echo "obj-m := conftest.o" >build/Makefile
26121 modpost_flag=''
26122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26128 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26130 (eval $ac_try) 2>&5
26131 ac_status=$?
26132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26133 test $ac_status = 0; }; }; then :
26134
4d815aed
AX
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26136$as_echo "yes" >&6; }
26137
87dac73d
AX
26138$as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
26139
26140
26141else
26142 $as_echo "$as_me: failed program was:" >&5
26143sed 's/^/| /' conftest.$ac_ext >&5
26144
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26146$as_echo "no" >&6; }
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
26148$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
26149
26150
26151cat confdefs.h - <<_ACEOF >conftest.c
26152
26153
26154 #include <linux/xattr.h>
26155
26156 int get(struct inode *ip, const char *name,
26157 void *buffer, size_t size) { return 0; }
26158 static const struct xattr_handler
26159 xops __attribute__ ((unused)) = {
26160 .get = get,
26161 };
26162
26163int
26164main (void)
26165{
26166
26167
26168 ;
26169 return 0;
26170}
26171
26172_ACEOF
26173
26174
26175
26176cat - <<_ACEOF >conftest.h
26177
26178_ACEOF
26179
26180
26181 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26182 echo "obj-m := conftest.o" >build/Makefile
26183 modpost_flag=''
26184 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26185 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26190 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }; then :
26196
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26198$as_echo "yes" >&6; }
26199
4d815aed
AX
26200$as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
26201
ea04106b
AX
26202
26203else
26204 $as_echo "$as_me: failed program was:" >&5
26205sed 's/^/| /' conftest.$ac_ext >&5
26206
87dac73d 26207 as_fn_error $? "no; please file a bug report" "$LINENO" 5
4d815aed
AX
26208
26209
26210
26211fi
26212 rm -Rf build
26213
26214
26215
26216
26217
26218fi
26219 rm -Rf build
ea04106b 26220
ea04106b
AX
26221
26222
26223
26224
26225fi
26226 rm -Rf build
26227
26228
ea04106b
AX
26229
26230
87dac73d
AX
26231
26232fi
26233 rm -Rf build
26234
26235
26236
26237
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
26239$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
ea04106b
AX
26240
26241
26242cat confdefs.h - <<_ACEOF >conftest.c
26243
26244
4d815aed
AX
26245 #include <linux/xattr.h>
26246
26247 int set(const struct xattr_handler *handler,
87dac73d
AX
26248 struct dentry *dentry, struct inode *inode,
26249 const char *name, const void *buffer,
26250 size_t size, int flags)
4d815aed
AX
26251 { return 0; }
26252 static const struct xattr_handler
26253 xops __attribute__ ((unused)) = {
26254 .set = set,
26255 };
ea04106b
AX
26256
26257int
26258main (void)
26259{
26260
ea04106b
AX
26261
26262 ;
26263 return 0;
26264}
26265
26266_ACEOF
26267
26268
26269
26270cat - <<_ACEOF >conftest.h
26271
26272_ACEOF
26273
26274
26275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26276 echo "obj-m := conftest.o" >build/Makefile
26277 modpost_flag=''
26278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26279 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26289 test $ac_status = 0; }; }; then :
26290
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26292$as_echo "yes" >&6; }
26293
87dac73d 26294$as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
ea04106b
AX
26295
26296
26297else
26298 $as_echo "$as_me: failed program was:" >&5
26299sed 's/^/| /' conftest.$ac_ext >&5
26300
87dac73d
AX
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
26302$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
ea04106b
AX
26303
26304
26305cat confdefs.h - <<_ACEOF >conftest.c
26306
26307
4d815aed
AX
26308 #include <linux/xattr.h>
26309
87dac73d
AX
26310 int set(const struct xattr_handler *handler,
26311 struct dentry *dentry, const char *name,
26312 const void *buffer, size_t size, int flags)
26313 { return 0; }
4d815aed
AX
26314 static const struct xattr_handler
26315 xops __attribute__ ((unused)) = {
26316 .set = set,
26317 };
ea04106b
AX
26318
26319int
26320main (void)
26321{
26322
ea04106b
AX
26323
26324 ;
26325 return 0;
26326}
26327
26328_ACEOF
26329
26330
26331
26332cat - <<_ACEOF >conftest.h
26333
26334_ACEOF
26335
26336
26337 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26338 echo "obj-m := conftest.o" >build/Makefile
26339 modpost_flag=''
26340 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26341 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26346 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26351 test $ac_status = 0; }; }; then :
26352
4d815aed 26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
26354$as_echo "yes" >&6; }
26355
87dac73d 26356$as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
ea04106b
AX
26357
26358
26359else
26360 $as_echo "$as_me: failed program was:" >&5
26361sed 's/^/| /' conftest.$ac_ext >&5
26362
87dac73d 26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 26364$as_echo "no" >&6; }
87dac73d
AX
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
26366$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
ea04106b
AX
26367
26368
26369cat confdefs.h - <<_ACEOF >conftest.c
26370
26371
4d815aed
AX
26372 #include <linux/xattr.h>
26373
87dac73d
AX
26374 int set(struct dentry *dentry, const char *name,
26375 const void *buffer, size_t size, int flags,
26376 int handler_flags) { return 0; }
4d815aed
AX
26377 static const struct xattr_handler
26378 xops __attribute__ ((unused)) = {
26379 .set = set,
26380 };
ea04106b
AX
26381
26382int
26383main (void)
26384{
26385
ea04106b
AX
26386
26387 ;
26388 return 0;
26389}
26390
26391_ACEOF
26392
26393
26394
26395cat - <<_ACEOF >conftest.h
26396
26397_ACEOF
26398
26399
26400 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26401 echo "obj-m := conftest.o" >build/Makefile
26402 modpost_flag=''
26403 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26404 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26411 (eval $ac_try) 2>&5
26412 ac_status=$?
26413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26414 test $ac_status = 0; }; }; then :
26415
4d815aed 26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
26417$as_echo "yes" >&6; }
26418
87dac73d
AX
26419$as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
26420
26421
26422else
26423 $as_echo "$as_me: failed program was:" >&5
26424sed 's/^/| /' conftest.$ac_ext >&5
26425
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26427$as_echo "no" >&6; }
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
26429$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
26430
26431
26432cat confdefs.h - <<_ACEOF >conftest.c
26433
26434
26435 #include <linux/xattr.h>
26436
26437 int set(struct inode *ip, const char *name,
26438 const void *buffer, size_t size, int flags)
26439 { return 0; }
26440 static const struct xattr_handler
26441 xops __attribute__ ((unused)) = {
26442 .set = set,
26443 };
26444
26445int
26446main (void)
26447{
26448
26449
26450 ;
26451 return 0;
26452}
26453
26454_ACEOF
26455
26456
26457
26458cat - <<_ACEOF >conftest.h
26459
26460_ACEOF
26461
26462
26463 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26464 echo "obj-m := conftest.o" >build/Makefile
26465 modpost_flag=''
26466 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26467 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26477 test $ac_status = 0; }; }; then :
26478
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26480$as_echo "yes" >&6; }
26481
4d815aed 26482$as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
ea04106b
AX
26483
26484
26485else
26486 $as_echo "$as_me: failed program was:" >&5
26487sed 's/^/| /' conftest.$ac_ext >&5
26488
87dac73d
AX
26489 as_fn_error $? "no; please file a bug report" "$LINENO" 5
26490
26491
26492
26493fi
26494 rm -Rf build
26495
26496
ea04106b
AX
26497
26498
26499
26500fi
26501 rm -Rf build
26502
26503
ea04106b 26504
4d815aed
AX
26505
26506
26507fi
26508 rm -Rf build
ea04106b
AX
26509
26510
26511
4d815aed
AX
26512
26513
26514fi
26515 rm -Rf build
26516
26517
26518
26519
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
26521$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
26522
26523
ea04106b
AX
26524cat confdefs.h - <<_ACEOF >conftest.c
26525
26526
4d815aed
AX
26527 #include <linux/xattr.h>
26528
26529 bool list(struct dentry *dentry) { return 0; }
26530 static const struct xattr_handler
26531 xops __attribute__ ((unused)) = {
26532 .list = list,
26533 };
ea04106b
AX
26534
26535int
26536main (void)
26537{
26538
ea04106b
AX
26539
26540 ;
26541 return 0;
26542}
26543
26544_ACEOF
26545
26546
26547
26548cat - <<_ACEOF >conftest.h
26549
26550_ACEOF
26551
26552
26553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26554 echo "obj-m := conftest.o" >build/Makefile
26555 modpost_flag=''
26556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26562 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }; then :
ea04106b
AX
26568
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26570$as_echo "yes" >&6; }
26571
4d815aed 26572$as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
ea04106b
AX
26573
26574
4d815aed
AX
26575else
26576 $as_echo "$as_me: failed program was:" >&5
26577sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 26578
4d815aed
AX
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26580$as_echo "no" >&6; }
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
26582$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
ea04106b
AX
26583
26584
26585cat confdefs.h - <<_ACEOF >conftest.c
26586
26587
4d815aed
AX
26588 #include <linux/xattr.h>
26589
26590 size_t list(const struct xattr_handler *handler,
26591 struct dentry *dentry, char *list, size_t list_size,
26592 const char *name, size_t name_len) { return 0; }
26593 static const struct xattr_handler
26594 xops __attribute__ ((unused)) = {
26595 .list = list,
26596 };
ea04106b
AX
26597
26598int
26599main (void)
26600{
26601
ea04106b
AX
26602
26603 ;
26604 return 0;
26605}
26606
26607_ACEOF
26608
26609
26610
26611cat - <<_ACEOF >conftest.h
26612
26613_ACEOF
26614
26615
26616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26617 echo "obj-m := conftest.o" >build/Makefile
26618 modpost_flag=''
26619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }; then :
26631
4d815aed 26632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
26633$as_echo "yes" >&6; }
26634
4d815aed 26635$as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
ea04106b
AX
26636
26637
26638else
26639 $as_echo "$as_me: failed program was:" >&5
26640sed 's/^/| /' conftest.$ac_ext >&5
26641
4d815aed 26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 26643$as_echo "no" >&6; }
4d815aed
AX
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
26645$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
ea04106b
AX
26646
26647
e10b0808 26648cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 26649
ea04106b 26650
4d815aed 26651 #include <linux/xattr.h>
ea04106b 26652
4d815aed
AX
26653 size_t list(struct dentry *dentry,
26654 char *list, size_t list_size,
26655 const char *name, size_t name_len,
26656 int handler_flags) { return 0; }
26657 static const struct xattr_handler
26658 xops __attribute__ ((unused)) = {
26659 .list = list,
26660 };
ea04106b
AX
26661
26662int
26663main (void)
26664{
26665
ea04106b
AX
26666
26667 ;
26668 return 0;
26669}
26670
26671_ACEOF
26672
26673
26674
26675cat - <<_ACEOF >conftest.h
26676
26677_ACEOF
26678
26679
26680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26681 echo "obj-m := conftest.o" >build/Makefile
26682 modpost_flag=''
26683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26684 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26689 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694 test $ac_status = 0; }; }; then :
26695
4d815aed 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
26697$as_echo "yes" >&6; }
26698
4d815aed 26699$as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
ea04106b
AX
26700
26701
26702else
26703 $as_echo "$as_me: failed program was:" >&5
26704sed 's/^/| /' conftest.$ac_ext >&5
26705
4d815aed 26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 26707$as_echo "no" >&6; }
4d815aed
AX
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
26709$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
ea04106b
AX
26710
26711
26712cat confdefs.h - <<_ACEOF >conftest.c
26713
26714
4d815aed 26715 #include <linux/xattr.h>
e10b0808 26716
4d815aed
AX
26717 size_t list(struct inode *ip, char *lst,
26718 size_t list_size, const char *name,
26719 size_t name_len) { return 0; }
26720 static const struct xattr_handler
26721 xops __attribute__ ((unused)) = {
26722 .list = list,
26723 };
ea04106b
AX
26724
26725int
26726main (void)
26727{
26728
ea04106b
AX
26729
26730 ;
26731 return 0;
26732}
26733
26734_ACEOF
26735
26736
26737
26738cat - <<_ACEOF >conftest.h
26739
26740_ACEOF
26741
26742
26743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26744 echo "obj-m := conftest.o" >build/Makefile
26745 modpost_flag=''
26746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26747 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26754 (eval $ac_try) 2>&5
26755 ac_status=$?
26756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26757 test $ac_status = 0; }; }; then :
26758
4d815aed 26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
26760$as_echo "yes" >&6; }
26761
4d815aed 26762$as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
e10b0808
AX
26763
26764
26765else
26766 $as_echo "$as_me: failed program was:" >&5
26767sed 's/^/| /' conftest.$ac_ext >&5
26768
4d815aed 26769 as_fn_error $? "no; please file a bug report" "$LINENO" 5
94a40997
AX
26770
26771
4d815aed
AX
26772
26773fi
26774 rm -Rf build
94a40997
AX
26775
26776
94a40997 26777
4d815aed
AX
26778
26779
26780fi
26781 rm -Rf build
26782
26783
26784
26785
26786
26787fi
26788 rm -Rf build
26789
26790
26791
26792
26793
26794fi
26795 rm -Rf build
26796
26797
26798
26799
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
26801$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
26802
26803
26804cat confdefs.h - <<_ACEOF >conftest.c
26805
26806
26807 #include <linux/fs.h>
94a40997
AX
26808
26809int
26810main (void)
26811{
26812
4d815aed
AX
26813 struct inode *ip = NULL;
26814 (void) inode_owner_or_capable(ip);
94a40997
AX
26815
26816 ;
26817 return 0;
26818}
26819
26820_ACEOF
26821
26822
26823
26824cat - <<_ACEOF >conftest.h
26825
26826_ACEOF
26827
26828
26829 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26830 echo "obj-m := conftest.o" >build/Makefile
26831 modpost_flag=''
26832 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26833 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26838 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }; then :
26844
4d815aed 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94a40997
AX
26846$as_echo "yes" >&6; }
26847
4d815aed 26848$as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
94a40997
AX
26849
26850
26851else
26852 $as_echo "$as_me: failed program was:" >&5
26853sed 's/^/| /' conftest.$ac_ext >&5
26854
4d815aed 26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94a40997 26856$as_echo "no" >&6; }
4d815aed
AX
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
26858$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
e10b0808 26859
ea04106b 26860
e10b0808
AX
26861cat confdefs.h - <<_ACEOF >conftest.c
26862
26863
4d815aed
AX
26864 #include <linux/fs.h>
26865 #include <linux/sched.h>
e10b0808
AX
26866
26867int
26868main (void)
26869{
26870
4d815aed
AX
26871 struct inode *ip = NULL;
26872 (void) is_owner_or_cap(ip);
e10b0808
AX
26873
26874 ;
26875 return 0;
26876}
26877
26878_ACEOF
26879
26880
26881
26882cat - <<_ACEOF >conftest.h
26883
26884_ACEOF
26885
26886
26887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26888 echo "obj-m := conftest.o" >build/Makefile
26889 modpost_flag=''
26890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26891 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26893 (eval $ac_try) 2>&5
26894 ac_status=$?
26895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26898 (eval $ac_try) 2>&5
26899 ac_status=$?
26900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26901 test $ac_status = 0; }; }; then :
26902
4d815aed 26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e10b0808 26904$as_echo "yes" >&6; }
ea04106b 26905
4d815aed 26906$as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
ea04106b
AX
26907
26908
26909else
26910 $as_echo "$as_me: failed program was:" >&5
26911sed 's/^/| /' conftest.$ac_ext >&5
26912
4d815aed
AX
26913 as_fn_error $? "no - Please file a bug report at
26914 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
94a40997
AX
26915
26916
4d815aed
AX
26917
26918fi
26919 rm -Rf build
26920
26921
26922
26923
26924
26925fi
26926 rm -Rf build
94a40997
AX
26927
26928
94a40997 26929
4d815aed
AX
26930
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
26932$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
26933
26934
26935cat confdefs.h - <<_ACEOF >conftest.c
26936
26937
26938 #include <linux/cred.h>
26939 #include <linux/fs.h>
26940 #include <linux/posix_acl_xattr.h>
94a40997
AX
26941
26942int
26943main (void)
26944{
26945
4d815aed 26946 posix_acl_from_xattr(&init_user_ns, NULL, 0);
94a40997
AX
26947
26948 ;
26949 return 0;
26950}
26951
26952_ACEOF
26953
26954
26955
26956cat - <<_ACEOF >conftest.h
26957
26958_ACEOF
26959
26960
26961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26962 echo "obj-m := conftest.o" >build/Makefile
26963 modpost_flag=''
26964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26972 (eval $ac_try) 2>&5
26973 ac_status=$?
26974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26975 test $ac_status = 0; }; }; then :
26976
4d815aed 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94a40997
AX
26978$as_echo "yes" >&6; }
26979
4d815aed 26980$as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
94a40997
AX
26981
26982
26983else
26984 $as_echo "$as_me: failed program was:" >&5
26985sed 's/^/| /' conftest.$ac_ext >&5
26986
4d815aed 26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94a40997
AX
26988$as_echo "no" >&6; }
26989
26990
26991
26992fi
26993 rm -Rf build
26994
26995
ea04106b
AX
26996
26997
4d815aed
AX
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
26999$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
ea04106b
AX
27000
27001
27002cat confdefs.h - <<_ACEOF >conftest.c
27003
27004
4d815aed
AX
27005 #include <linux/cred.h>
27006 #include <linux/fs.h>
27007 #include <linux/posix_acl.h>
ea04106b
AX
27008
27009int
27010main (void)
27011{
27012
4d815aed
AX
27013 struct posix_acl* tmp = posix_acl_alloc(1, 0);
27014 posix_acl_release(tmp);
ea04106b
AX
27015
27016 ;
27017 return 0;
27018}
27019
27020_ACEOF
27021
27022
27023
27024cat - <<_ACEOF >conftest.h
27025
27026_ACEOF
27027
27028
27029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27030 echo "obj-m := conftest.o" >build/Makefile
27031 modpost_flag=''
27032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27033 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27035 (eval $ac_try) 2>&5
27036 ac_status=$?
27037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27038 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27043 test $ac_status = 0; }; }; then :
27044
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27046$as_echo "yes" >&6; }
27047
4d815aed 27048$as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
ea04106b
AX
27049
27050
27051else
27052 $as_echo "$as_me: failed program was:" >&5
27053sed 's/^/| /' conftest.$ac_ext >&5
27054
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27056$as_echo "no" >&6; }
4d815aed
AX
27057
27058
27059
27060fi
27061 rm -Rf build
27062
27063
27064
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
27066$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
94a40997
AX
27067
27068
27069cat confdefs.h - <<_ACEOF >conftest.c
27070
27071
4d815aed
AX
27072 #include <linux/cred.h>
27073 #include <linux/fs.h>
27074 #include <linux/posix_acl.h>
94a40997 27075
4d815aed 27076 MODULE_LICENSE("$ZFS_META_LICENSE");
94a40997
AX
27077
27078int
27079main (void)
27080{
27081
4d815aed
AX
27082 struct posix_acl* tmp = posix_acl_alloc(1, 0);
27083 posix_acl_release(tmp);
94a40997
AX
27084
27085 ;
27086 return 0;
27087}
27088
27089_ACEOF
27090
27091
27092
27093cat - <<_ACEOF >conftest.h
27094
27095_ACEOF
27096
27097
27098 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27099 echo "obj-m := conftest.o" >build/Makefile
27100 modpost_flag=''
27101 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27102 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }; then :
27113
4d815aed
AX
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115$as_echo "no" >&6; }
94a40997
AX
27116
27117else
27118 $as_echo "$as_me: failed program was:" >&5
27119sed 's/^/| /' conftest.$ac_ext >&5
27120
4d815aed
AX
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27122$as_echo "yes" >&6; }
94a40997 27123
4d815aed 27124$as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
94a40997 27125
ea04106b
AX
27126
27127
27128
27129fi
27130 rm -Rf build
27131
27132
27133
e10b0808 27134
4d815aed
AX
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
27136$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
ea04106b
AX
27137
27138
27139cat confdefs.h - <<_ACEOF >conftest.c
27140
27141
27142 #include <linux/fs.h>
4d815aed 27143 #include <linux/posix_acl.h>
ea04106b
AX
27144
27145int
27146main (void)
27147{
27148
4d815aed 27149 posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
27150
27151 ;
27152 return 0;
27153}
27154
27155_ACEOF
27156
27157
27158
27159cat - <<_ACEOF >conftest.h
27160
27161_ACEOF
27162
27163
27164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27165 echo "obj-m := conftest.o" >build/Makefile
27166 modpost_flag=''
27167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27168 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27170 (eval $ac_try) 2>&5
27171 ac_status=$?
27172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27178 test $ac_status = 0; }; }; then :
27179
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27181$as_echo "yes" >&6; }
27182
4d815aed 27183$as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
ea04106b
AX
27184
27185
27186else
27187 $as_echo "$as_me: failed program was:" >&5
27188sed 's/^/| /' conftest.$ac_ext >&5
27189
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27191$as_echo "no" >&6; }
4d815aed
AX
27192
27193
27194
27195fi
27196 rm -Rf build
27197
27198
27199
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
27201$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
ea04106b
AX
27202
27203
27204cat confdefs.h - <<_ACEOF >conftest.c
27205
27206
4d815aed
AX
27207 #include <linux/fs.h>
27208 #include <linux/posix_acl.h>
ea04106b
AX
27209
27210int
27211main (void)
27212{
27213
4d815aed 27214 __posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
27215
27216 ;
27217 return 0;
27218}
27219
27220_ACEOF
27221
27222
27223
27224cat - <<_ACEOF >conftest.h
27225
27226_ACEOF
27227
27228
27229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27230 echo "obj-m := conftest.o" >build/Makefile
27231 modpost_flag=''
27232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27233 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27240 (eval $ac_try) 2>&5
27241 ac_status=$?
27242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27243 test $ac_status = 0; }; }; then :
27244
4d815aed 27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
27246$as_echo "yes" >&6; }
27247
4d815aed 27248$as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
ea04106b
AX
27249
27250
27251else
27252 $as_echo "$as_me: failed program was:" >&5
27253sed 's/^/| /' conftest.$ac_ext >&5
27254
4d815aed
AX
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256$as_echo "no" >&6; }
ea04106b
AX
27257
27258
ea04106b 27259
e10b0808
AX
27260fi
27261 rm -Rf build
ea04106b 27262
ea04106b
AX
27263
27264
ea04106b 27265
87dac73d
AX
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
27267$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
e10b0808
AX
27268
27269
27270cat confdefs.h - <<_ACEOF >conftest.c
27271
27272
e10b0808 27273 #include <linux/fs.h>
87dac73d 27274 #include <linux/posix_acl.h>
ea04106b
AX
27275
27276int
27277main (void)
27278{
27279
87dac73d
AX
27280 umode_t tmp;
27281 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
27282
27283 ;
27284 return 0;
27285}
27286
27287_ACEOF
27288
27289
27290
27291cat - <<_ACEOF >conftest.h
27292
27293_ACEOF
27294
27295
27296 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27297 echo "obj-m := conftest.o" >build/Makefile
27298 modpost_flag=''
27299 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27300 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27305 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27310 test $ac_status = 0; }; }; then :
27311
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27313$as_echo "yes" >&6; }
27314
87dac73d 27315$as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
ea04106b
AX
27316
27317
27318else
27319 $as_echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27323$as_echo "no" >&6; }
27324
27325
27326
27327fi
27328 rm -Rf build
27329
27330
27331
27332
87dac73d
AX
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
27334$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
ea04106b
AX
27335
27336
27337cat confdefs.h - <<_ACEOF >conftest.c
27338
27339
e10b0808
AX
27340 #include <linux/fs.h>
27341 #include <linux/posix_acl.h>
ea04106b
AX
27342
27343int
27344main (void)
27345{
27346
87dac73d
AX
27347 struct user_namespace *user_ns = NULL;
27348 const struct posix_acl *acl = NULL;
27349 int error;
27350
27351 error = posix_acl_valid(user_ns, acl);
ea04106b
AX
27352
27353 ;
27354 return 0;
27355}
27356
27357_ACEOF
27358
27359
27360
27361cat - <<_ACEOF >conftest.h
27362
27363_ACEOF
27364
27365
27366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27367 echo "obj-m := conftest.o" >build/Makefile
27368 modpost_flag=''
27369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27372 (eval $ac_try) 2>&5
27373 ac_status=$?
27374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27375 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27380 test $ac_status = 0; }; }; then :
27381
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27383$as_echo "yes" >&6; }
27384
87dac73d 27385$as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
ea04106b
AX
27386
27387
27388else
27389 $as_echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27393$as_echo "no" >&6; }
27394
27395
27396
27397fi
27398 rm -Rf build
27399
27400
27401
4d815aed
AX
27402
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
27404$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
27405
27406
27407cat confdefs.h - <<_ACEOF >conftest.c
27408
27409
27410 #include <linux/fs.h>
e10b0808 27411
4d815aed
AX
27412 int permission_fn(struct inode *inode, int mask) { return 0; }
27413
27414 static const struct inode_operations
27415 iops __attribute__ ((unused)) = {
27416 .permission = permission_fn,
27417 };
ea04106b
AX
27418
27419int
27420main (void)
27421{
27422
ea04106b
AX
27423
27424 ;
27425 return 0;
27426}
27427
27428_ACEOF
27429
27430
27431
27432cat - <<_ACEOF >conftest.h
27433
27434_ACEOF
27435
27436
27437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27438 echo "obj-m := conftest.o" >build/Makefile
27439 modpost_flag=''
27440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27443 (eval $ac_try) 2>&5
27444 ac_status=$?
27445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27446 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27448 (eval $ac_try) 2>&5
27449 ac_status=$?
27450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27451 test $ac_status = 0; }; }; then :
27452
4d815aed
AX
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27454$as_echo "yes" >&6; }
27455
27456$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
27457
e10b0808
AX
27458
27459else
27460 $as_echo "$as_me: failed program was:" >&5
27461sed 's/^/| /' conftest.$ac_ext >&5
27462
4d815aed
AX
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27464$as_echo "no" >&6; }
ea04106b 27465
ea04106b 27466
e10b0808
AX
27467
27468fi
27469 rm -Rf build
27470
27471
27472
27473
4d815aed
AX
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
27475$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
ea04106b
AX
27476
27477
27478cat confdefs.h - <<_ACEOF >conftest.c
27479
27480
e10b0808 27481 #include <linux/fs.h>
4d815aed
AX
27482
27483 int permission_fn(struct inode *inode, int mask,
27484 struct nameidata *nd) { return 0; }
27485
27486 static const struct inode_operations
27487 iops __attribute__ ((unused)) = {
27488 .permission = permission_fn,
27489 };
ea04106b
AX
27490
27491int
27492main (void)
27493{
27494
ea04106b
AX
27495
27496 ;
27497 return 0;
27498}
27499
27500_ACEOF
27501
27502
27503
27504cat - <<_ACEOF >conftest.h
27505
27506_ACEOF
27507
27508
27509 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27510 echo "obj-m := conftest.o" >build/Makefile
27511 modpost_flag=''
27512 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27513 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27518 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27523 test $ac_status = 0; }; }; then :
27524
e10b0808 27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
27526$as_echo "yes" >&6; }
27527
4d815aed
AX
27528$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
27529
27530
27531$as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
27532
27533
27534else
27535 $as_echo "$as_me: failed program was:" >&5
27536sed 's/^/| /' conftest.$ac_ext >&5
27537
e10b0808
AX
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27539$as_echo "no" >&6; }
ea04106b
AX
27540
27541
27542
27543fi
27544 rm -Rf build
27545
27546
27547
4d815aed
AX
27548
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
27550$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
ea04106b
AX
27551
27552
27553cat confdefs.h - <<_ACEOF >conftest.c
27554
27555
ea04106b 27556 #include <linux/fs.h>
4d815aed
AX
27557
27558 int check_acl_fn(struct inode *inode, int mask) { return 0; }
27559
27560 static const struct inode_operations
27561 iops __attribute__ ((unused)) = {
27562 .check_acl = check_acl_fn,
27563 };
ea04106b
AX
27564
27565int
27566main (void)
27567{
27568
ea04106b
AX
27569
27570 ;
27571 return 0;
27572}
27573
27574_ACEOF
27575
27576
27577
27578cat - <<_ACEOF >conftest.h
27579
27580_ACEOF
27581
27582
27583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27584 echo "obj-m := conftest.o" >build/Makefile
27585 modpost_flag=''
27586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27587 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27589 (eval $ac_try) 2>&5
27590 ac_status=$?
27591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27592 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27594 (eval $ac_try) 2>&5
27595 ac_status=$?
27596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27597 test $ac_status = 0; }; }; then :
27598
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27600$as_echo "yes" >&6; }
27601
4d815aed 27602$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
ea04106b
AX
27603
27604
27605else
27606 $as_echo "$as_me: failed program was:" >&5
27607sed 's/^/| /' conftest.$ac_ext >&5
27608
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27610$as_echo "no" >&6; }
27611
27612
27613
27614fi
27615 rm -Rf build
27616
27617
27618
27619
4d815aed
AX
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
27621$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
ea04106b
AX
27622
27623
27624cat confdefs.h - <<_ACEOF >conftest.c
27625
27626
ea04106b 27627 #include <linux/fs.h>
ea04106b 27628
4d815aed
AX
27629 int check_acl_fn(struct inode *inode, int mask,
27630 unsigned int flags) { return 0; }
27631
27632 static const struct inode_operations
27633 iops __attribute__ ((unused)) = {
27634 .check_acl = check_acl_fn,
27635 };
27636
ea04106b
AX
27637int
27638main (void)
27639{
27640
ea04106b
AX
27641
27642 ;
27643 return 0;
27644}
27645
27646_ACEOF
27647
27648
27649
27650cat - <<_ACEOF >conftest.h
27651
27652_ACEOF
27653
27654
27655 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27656 echo "obj-m := conftest.o" >build/Makefile
27657 modpost_flag=''
27658 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27659 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27664 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27666 (eval $ac_try) 2>&5
27667 ac_status=$?
27668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27669 test $ac_status = 0; }; }; then :
27670
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27672$as_echo "yes" >&6; }
27673
4d815aed
AX
27674$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
27675
27676
27677$as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
ea04106b
AX
27678
27679
27680else
27681 $as_echo "$as_me: failed program was:" >&5
27682sed 's/^/| /' conftest.$ac_ext >&5
27683
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27685$as_echo "no" >&6; }
27686
27687
27688
27689fi
27690 rm -Rf build
27691
27692
27693
e10b0808 27694
4d815aed
AX
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
27696$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
ea04106b
AX
27697
27698
27699cat confdefs.h - <<_ACEOF >conftest.c
27700
27701
ea04106b 27702 #include <linux/fs.h>
4d815aed
AX
27703
27704 struct posix_acl *get_acl_fn(struct inode *inode, int type)
27705 { return NULL; }
27706
27707 static const struct inode_operations
27708 iops __attribute__ ((unused)) = {
27709 .get_acl = get_acl_fn,
27710 };
ea04106b 27711
ea04106b
AX
27712int
27713main (void)
27714{
27715
ea04106b
AX
27716
27717 ;
27718 return 0;
27719}
27720
27721_ACEOF
27722
27723
27724
27725cat - <<_ACEOF >conftest.h
27726
27727_ACEOF
27728
27729
27730 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27731 echo "obj-m := conftest.o" >build/Makefile
27732 modpost_flag=''
27733 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27734 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27736 (eval $ac_try) 2>&5
27737 ac_status=$?
27738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27739 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27741 (eval $ac_try) 2>&5
27742 ac_status=$?
27743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27744 test $ac_status = 0; }; }; then :
27745
e10b0808
AX
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27747$as_echo "yes" >&6; }
27748
4d815aed 27749$as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
e10b0808 27750
ea04106b
AX
27751
27752else
27753 $as_echo "$as_me: failed program was:" >&5
27754sed 's/^/| /' conftest.$ac_ext >&5
27755
e10b0808
AX
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27757$as_echo "no" >&6; }
ea04106b
AX
27758
27759
27760
27761fi
27762 rm -Rf build
27763
27764
27765
27766
87dac73d
AX
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
27768$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
27769
27770
27771cat confdefs.h - <<_ACEOF >conftest.c
27772
27773
27774 #include <linux/fs.h>
e10b0808 27775
ea04106b
AX
27776int
27777main (void)
27778{
27779
87dac73d 27780 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
27781
27782 ;
27783 return 0;
27784}
27785
27786_ACEOF
27787
27788
27789
27790cat - <<_ACEOF >conftest.h
27791
27792_ACEOF
27793
27794
27795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27796 echo "obj-m := conftest.o" >build/Makefile
27797 modpost_flag=''
27798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27806 (eval $ac_try) 2>&5
27807 ac_status=$?
27808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27809 test $ac_status = 0; }; }; then :
27810
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27812$as_echo "yes" >&6; }
27813
87dac73d 27814$as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
ea04106b
AX
27815
27816
27817else
27818 $as_echo "$as_me: failed program was:" >&5
27819sed 's/^/| /' conftest.$ac_ext >&5
27820
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27822$as_echo "no" >&6; }
27823
27824
27825
27826fi
27827 rm -Rf build
27828
27829
27830
e10b0808 27831
4d815aed
AX
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
27833$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
27834
ea04106b
AX
27835
27836
27837cat confdefs.h - <<_ACEOF >conftest.c
27838
27839
27840 #include <linux/fs.h>
e10b0808 27841
4d815aed
AX
27842 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
27843 static struct super_operations sops __attribute__ ((unused)) = {
27844 .show_options = show_options,
e10b0808 27845 };
ea04106b
AX
27846
27847int
27848main (void)
27849{
27850
ea04106b
AX
27851
27852 ;
27853 return 0;
27854}
27855
27856_ACEOF
27857
27858
27859
27860cat - <<_ACEOF >conftest.h
27861
27862_ACEOF
27863
27864
27865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27866 echo "obj-m := conftest.o" >build/Makefile
27867 modpost_flag=''
27868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27874 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27879 test $ac_status = 0; }; }; then :
27880
e10b0808
AX
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27882$as_echo "yes" >&6; }
27883
4d815aed 27884$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
ea04106b
AX
27885
27886
27887else
27888 $as_echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27892$as_echo "no" >&6; }
27893
27894
27895
27896fi
27897 rm -Rf build
27898
27899
27900
27901
4d815aed
AX
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
27903$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
27904
27905
27906cat confdefs.h - <<_ACEOF >conftest.c
27907
27908
27909 #include <linux/fs.h>
27910
27911int
27912main (void)
27913{
27914
4d815aed
AX
27915 struct file *f = NULL;
27916 file_inode(f);
ea04106b
AX
27917
27918 ;
27919 return 0;
27920}
27921
27922_ACEOF
27923
27924
27925
27926cat - <<_ACEOF >conftest.h
27927
27928_ACEOF
27929
27930
27931 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27932 echo "obj-m := conftest.o" >build/Makefile
27933 modpost_flag=''
27934 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27935 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27940 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27942 (eval $ac_try) 2>&5
27943 ac_status=$?
27944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27945 test $ac_status = 0; }; }; then :
27946
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27948$as_echo "yes" >&6; }
27949
4d815aed 27950$as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
ea04106b
AX
27951
27952
27953else
27954 $as_echo "$as_me: failed program was:" >&5
27955sed 's/^/| /' conftest.$ac_ext >&5
27956
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27958$as_echo "no" >&6; }
27959
27960
27961
27962fi
27963 rm -Rf build
27964
27965
27966
27967
4d815aed
AX
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
27969$as_echo_n "checking whether fops->fsync() wants... " >&6; }
27970
ea04106b
AX
27971
27972
27973cat confdefs.h - <<_ACEOF >conftest.c
27974
27975
27976 #include <linux/fs.h>
e10b0808 27977
4d815aed
AX
27978 int test_fsync(struct file *f, struct dentry *dentry, int x)
27979 { return 0; }
e10b0808 27980
4d815aed
AX
27981 static const struct file_operations
27982 fops __attribute__ ((unused)) = {
27983 .fsync = test_fsync,
e10b0808 27984 };
ea04106b
AX
27985
27986int
27987main (void)
27988{
27989
ea04106b
AX
27990
27991 ;
27992 return 0;
27993}
27994
27995_ACEOF
27996
27997
27998
27999cat - <<_ACEOF >conftest.h
28000
28001_ACEOF
28002
28003
28004 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28005 echo "obj-m := conftest.o" >build/Makefile
28006 modpost_flag=''
28007 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28008 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28010 (eval $ac_try) 2>&5
28011 ac_status=$?
28012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28013 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28015 (eval $ac_try) 2>&5
28016 ac_status=$?
28017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28018 test $ac_status = 0; }; }; then :
28019
4d815aed
AX
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
28021$as_echo "dentry" >&6; }
e10b0808 28022
4d815aed 28023$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
ea04106b
AX
28024
28025
28026else
28027 $as_echo "$as_me: failed program was:" >&5
28028sed 's/^/| /' conftest.$ac_ext >&5
28029
ea04106b
AX
28030
28031
28032
28033fi
28034 rm -Rf build
28035
28036
28037
28038
ea04106b
AX
28039
28040
28041cat confdefs.h - <<_ACEOF >conftest.c
28042
28043
28044 #include <linux/fs.h>
28045
4d815aed 28046 int test_fsync(struct file *f, int x) { return 0; }
ea04106b 28047
4d815aed
AX
28048 static const struct file_operations
28049 fops __attribute__ ((unused)) = {
28050 .fsync = test_fsync,
ea04106b
AX
28051 };
28052
28053int
28054main (void)
28055{
28056
28057
28058 ;
28059 return 0;
28060}
28061
28062_ACEOF
28063
28064
28065
28066cat - <<_ACEOF >conftest.h
28067
28068_ACEOF
28069
28070
28071 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28072 echo "obj-m := conftest.o" >build/Makefile
28073 modpost_flag=''
28074 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28075 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28077 (eval $ac_try) 2>&5
28078 ac_status=$?
28079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28080 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28082 (eval $ac_try) 2>&5
28083 ac_status=$?
28084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28085 test $ac_status = 0; }; }; then :
28086
4d815aed
AX
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
28088$as_echo "no dentry" >&6; }
ea04106b 28089
4d815aed 28090$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
ea04106b
AX
28091
28092
28093else
28094 $as_echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
ea04106b
AX
28097
28098
28099
28100fi
28101 rm -Rf build
28102
28103
28104
28105
ea04106b
AX
28106
28107
28108cat confdefs.h - <<_ACEOF >conftest.c
28109
28110
28111 #include <linux/fs.h>
28112
4d815aed
AX
28113 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
28114 { return 0; }
28115
28116 static const struct file_operations
28117 fops __attribute__ ((unused)) = {
28118 .fsync = test_fsync,
28119 };
28120
ea04106b
AX
28121int
28122main (void)
28123{
28124
28125
28126 ;
28127 return 0;
28128}
28129
28130_ACEOF
28131
28132
28133
28134cat - <<_ACEOF >conftest.h
28135
28136_ACEOF
28137
28138
28139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28140 echo "obj-m := conftest.o" >build/Makefile
28141 modpost_flag=''
28142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28143 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28153 test $ac_status = 0; }; }; then :
28154
4d815aed
AX
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
28156$as_echo "range" >&6; }
ea04106b 28157
4d815aed 28158$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
ea04106b
AX
28159
28160
28161else
28162 $as_echo "$as_me: failed program was:" >&5
28163sed 's/^/| /' conftest.$ac_ext >&5
28164
ea04106b
AX
28165
28166
28167
28168fi
28169 rm -Rf build
28170
28171
28172
28173
e10b0808 28174
4d815aed
AX
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
28176$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
ea04106b
AX
28177
28178
28179cat confdefs.h - <<_ACEOF >conftest.c
28180
28181
28182 #include <linux/fs.h>
4d815aed 28183 void evict_inode (struct inode * t) { return; }
e10b0808 28184 static struct super_operations sops __attribute__ ((unused)) = {
4d815aed 28185 .evict_inode = evict_inode,
ea04106b
AX
28186 };
28187
28188int
28189main (void)
28190{
28191
28192
28193 ;
28194 return 0;
28195}
28196
28197_ACEOF
28198
28199
28200
28201cat - <<_ACEOF >conftest.h
28202
28203_ACEOF
28204
28205
28206 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28207 echo "obj-m := conftest.o" >build/Makefile
28208 modpost_flag=''
28209 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28210 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28215 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28217 (eval $ac_try) 2>&5
28218 ac_status=$?
28219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28220 test $ac_status = 0; }; }; then :
28221
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28223$as_echo "yes" >&6; }
28224
4d815aed 28225$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
ea04106b
AX
28226
28227
28228else
28229 $as_echo "$as_me: failed program was:" >&5
28230sed 's/^/| /' conftest.$ac_ext >&5
28231
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28233$as_echo "no" >&6; }
28234
28235
28236
28237fi
28238 rm -Rf build
28239
28240
28241
28242
4d815aed
AX
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
28244$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
ea04106b
AX
28245
28246
28247cat confdefs.h - <<_ACEOF >conftest.c
28248
28249
28250 #include <linux/fs.h>
28251
4d815aed
AX
28252 void dirty_inode(struct inode *a, int b) { return; }
28253
28254 static const struct super_operations
28255 sops __attribute__ ((unused)) = {
28256 .dirty_inode = dirty_inode,
28257 };
28258
ea04106b
AX
28259int
28260main (void)
28261{
28262
28263
28264 ;
28265 return 0;
28266}
28267
28268_ACEOF
28269
28270
28271
28272cat - <<_ACEOF >conftest.h
28273
28274_ACEOF
28275
28276
28277 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28278 echo "obj-m := conftest.o" >build/Makefile
28279 modpost_flag=''
28280 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28281 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28286 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28288 (eval $ac_try) 2>&5
28289 ac_status=$?
28290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291 test $ac_status = 0; }; }; then :
28292
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28294$as_echo "yes" >&6; }
28295
4d815aed 28296$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
ea04106b
AX
28297
28298
28299else
28300 $as_echo "$as_me: failed program was:" >&5
28301sed 's/^/| /' conftest.$ac_ext >&5
28302
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28304$as_echo "no" >&6; }
28305
28306
28307
28308fi
28309 rm -Rf build
28310
28311
28312
28313
4d815aed
AX
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
28315$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
ea04106b
AX
28316
28317
28318cat confdefs.h - <<_ACEOF >conftest.c
28319
28320
28321 #include <linux/fs.h>
28322
4d815aed 28323 int nr_cached_objects(struct super_block *sb) { return 0; }
ea04106b 28324
4d815aed
AX
28325 static const struct super_operations
28326 sops __attribute__ ((unused)) = {
28327 .nr_cached_objects = nr_cached_objects,
ea04106b
AX
28328 };
28329
28330int
28331main (void)
28332{
28333
28334
28335 ;
28336 return 0;
28337}
28338
28339_ACEOF
28340
28341
28342
28343cat - <<_ACEOF >conftest.h
28344
28345_ACEOF
28346
28347
28348 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28349 echo "obj-m := conftest.o" >build/Makefile
28350 modpost_flag=''
28351 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28352 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28354 (eval $ac_try) 2>&5
28355 ac_status=$?
28356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28357 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; }; then :
28363
4d815aed
AX
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28365$as_echo "yes" >&6; }
ea04106b 28366
4d815aed 28367$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
ea04106b
AX
28368
28369
28370else
28371 $as_echo "$as_me: failed program was:" >&5
28372sed 's/^/| /' conftest.$ac_ext >&5
28373
4d815aed
AX
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28375$as_echo "no" >&6; }
ea04106b
AX
28376
28377
28378
28379fi
28380 rm -Rf build
28381
28382
28383
28384
4d815aed
AX
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
28386$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
ea04106b
AX
28387
28388
28389cat confdefs.h - <<_ACEOF >conftest.c
28390
28391
28392 #include <linux/fs.h>
28393
4d815aed
AX
28394 void free_cached_objects(struct super_block *sb, int x)
28395 { return; }
e10b0808 28396
4d815aed
AX
28397 static const struct super_operations
28398 sops __attribute__ ((unused)) = {
28399 .free_cached_objects = free_cached_objects,
e10b0808
AX
28400 };
28401
ea04106b
AX
28402int
28403main (void)
28404{
28405
ea04106b
AX
28406
28407 ;
28408 return 0;
28409}
28410
28411_ACEOF
28412
28413
28414
28415cat - <<_ACEOF >conftest.h
28416
28417_ACEOF
28418
28419
28420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28421 echo "obj-m := conftest.o" >build/Makefile
28422 modpost_flag=''
28423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28426 (eval $ac_try) 2>&5
28427 ac_status=$?
28428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28431 (eval $ac_try) 2>&5
28432 ac_status=$?
28433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28434 test $ac_status = 0; }; }; then :
28435
4d815aed
AX
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28437$as_echo "yes" >&6; }
ea04106b 28438
4d815aed 28439$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
ea04106b
AX
28440
28441
28442else
28443 $as_echo "$as_me: failed program was:" >&5
28444sed 's/^/| /' conftest.$ac_ext >&5
28445
4d815aed
AX
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28447$as_echo "no" >&6; }
ea04106b
AX
28448
28449
28450
28451fi
28452 rm -Rf build
28453
28454
28455
28456
ea04106b 28457
4d815aed
AX
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
28459$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
28460
ea04106b
AX
28461
28462cat confdefs.h - <<_ACEOF >conftest.c
28463
28464
28465 #include <linux/fs.h>
28466
4d815aed
AX
28467 long test_fallocate(struct file *file, int mode,
28468 loff_t offset, loff_t len) { return 0; }
e10b0808
AX
28469
28470 static const struct file_operations
28471 fops __attribute__ ((unused)) = {
4d815aed 28472 .fallocate = test_fallocate,
ea04106b
AX
28473 };
28474
28475int
28476main (void)
28477{
28478
28479
28480 ;
28481 return 0;
28482}
28483
28484_ACEOF
28485
28486
28487
28488cat - <<_ACEOF >conftest.h
28489
28490_ACEOF
28491
28492
28493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28494 echo "obj-m := conftest.o" >build/Makefile
28495 modpost_flag=''
28496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28499 (eval $ac_try) 2>&5
28500 ac_status=$?
28501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28507 test $ac_status = 0; }; }; then :
28508
4d815aed
AX
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28510$as_echo "yes" >&6; }
ea04106b 28511
4d815aed 28512$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
ea04106b
AX
28513
28514
28515else
28516 $as_echo "$as_me: failed program was:" >&5
28517sed 's/^/| /' conftest.$ac_ext >&5
28518
4d815aed
AX
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28520$as_echo "no" >&6; }
ea04106b
AX
28521
28522
28523
28524fi
28525 rm -Rf build
28526
28527
28528
28529
4d815aed
AX
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
28531$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
ea04106b
AX
28532
28533
28534cat confdefs.h - <<_ACEOF >conftest.c
28535
28536
28537 #include <linux/fs.h>
4d815aed
AX
28538
28539 long test_fallocate(struct inode *inode, int mode,
28540 loff_t offset, loff_t len) { return 0; }
28541
28542 static const struct inode_operations
28543 fops __attribute__ ((unused)) = {
28544 .fallocate = test_fallocate,
e10b0808 28545 };
ea04106b
AX
28546
28547int
28548main (void)
28549{
28550
ea04106b
AX
28551
28552 ;
28553 return 0;
28554}
28555
28556_ACEOF
28557
28558
28559
28560cat - <<_ACEOF >conftest.h
28561
28562_ACEOF
28563
28564
28565 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28566 echo "obj-m := conftest.o" >build/Makefile
28567 modpost_flag=''
28568 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28569 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28571 (eval $ac_try) 2>&5
28572 ac_status=$?
28573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28574 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28579 test $ac_status = 0; }; }; then :
28580
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28582$as_echo "yes" >&6; }
28583
4d815aed 28584$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
ea04106b
AX
28585
28586
28587else
28588 $as_echo "$as_me: failed program was:" >&5
28589sed 's/^/| /' conftest.$ac_ext >&5
28590
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28592$as_echo "no" >&6; }
28593
28594
28595
28596fi
28597 rm -Rf build
28598
28599
28600
28601
4d815aed
AX
28602
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
28604$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
ea04106b
AX
28605
28606
28607cat confdefs.h - <<_ACEOF >conftest.c
28608
28609
28610 #include <linux/fs.h>
28611
4d815aed
AX
28612 int mkdir(struct inode *inode, struct dentry *dentry,
28613 umode_t umode) { return 0; }
ea04106b 28614
4d815aed
AX
28615 static const struct inode_operations
28616 iops __attribute__ ((unused)) = {
28617 .mkdir = mkdir,
ea04106b
AX
28618 };
28619
28620int
28621main (void)
28622{
28623
28624
28625 ;
28626 return 0;
28627}
28628
28629_ACEOF
28630
28631
28632
28633cat - <<_ACEOF >conftest.h
28634
28635_ACEOF
28636
28637
28638 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28639 echo "obj-m := conftest.o" >build/Makefile
28640 modpost_flag=''
28641 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28642 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28647 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28652 test $ac_status = 0; }; }; then :
28653
e10b0808
AX
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28655$as_echo "yes" >&6; }
ea04106b 28656
4d815aed 28657$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
ea04106b
AX
28658
28659
28660else
28661 $as_echo "$as_me: failed program was:" >&5
28662sed 's/^/| /' conftest.$ac_ext >&5
28663
e10b0808
AX
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28665$as_echo "no" >&6; }
ea04106b
AX
28666
28667
28668
28669fi
28670 rm -Rf build
28671
28672
28673
28674
4d815aed
AX
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
28676$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
ea04106b
AX
28677
28678
28679cat confdefs.h - <<_ACEOF >conftest.c
28680
28681
28682 #include <linux/fs.h>
28683
4d815aed
AX
28684 struct dentry *inode_lookup(struct inode *inode,
28685 struct dentry *dentry, struct nameidata *nidata)
28686 { return NULL; }
ea04106b 28687
4d815aed
AX
28688 static const struct inode_operations iops
28689 __attribute__ ((unused)) = {
28690 .lookup = inode_lookup,
ea04106b
AX
28691 };
28692
28693int
28694main (void)
28695{
28696
28697
28698 ;
28699 return 0;
28700}
28701
28702_ACEOF
28703
28704
28705
28706cat - <<_ACEOF >conftest.h
28707
28708_ACEOF
28709
28710
28711 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28712 echo "obj-m := conftest.o" >build/Makefile
28713 modpost_flag=''
28714 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28715 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28720 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28722 (eval $ac_try) 2>&5
28723 ac_status=$?
28724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28725 test $ac_status = 0; }; }; then :
28726
e10b0808
AX
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28728$as_echo "yes" >&6; }
ea04106b 28729
4d815aed 28730$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
28731
28732
28733else
28734 $as_echo "$as_me: failed program was:" >&5
28735sed 's/^/| /' conftest.$ac_ext >&5
28736
e10b0808
AX
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28738$as_echo "no" >&6; }
ea04106b
AX
28739
28740
28741
28742fi
28743 rm -Rf build
28744
28745
28746
28747
4d815aed
AX
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
28749$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
28750
28751
28752cat confdefs.h - <<_ACEOF >conftest.c
28753
28754
28755 #include <linux/fs.h>
28756
4d815aed
AX
28757 #ifdef HAVE_MKDIR_UMODE_T
28758 int inode_create(struct inode *inode ,struct dentry *dentry,
28759 umode_t umode, struct nameidata *nidata) { return 0; }
28760 #else
28761 int inode_create(struct inode *inode,struct dentry *dentry,
28762 int umode, struct nameidata * nidata) { return 0; }
28763 #endif
ea04106b 28764
4d815aed
AX
28765 static const struct inode_operations
28766 iops __attribute__ ((unused)) = {
28767 .create = inode_create,
ea04106b
AX
28768 };
28769
28770int
28771main (void)
28772{
28773
28774
28775 ;
28776 return 0;
28777}
28778
28779_ACEOF
28780
28781
28782
28783cat - <<_ACEOF >conftest.h
28784
28785_ACEOF
28786
28787
28788 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28789 echo "obj-m := conftest.o" >build/Makefile
28790 modpost_flag=''
28791 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28792 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28797 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28799 (eval $ac_try) 2>&5
28800 ac_status=$?
28801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28802 test $ac_status = 0; }; }; then :
28803
e10b0808
AX
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28805$as_echo "yes" >&6; }
ea04106b 28806
4d815aed 28807$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
28808
28809
28810else
28811 $as_echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
e10b0808
AX
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28815$as_echo "no" >&6; }
ea04106b
AX
28816
28817
28818
28819fi
28820 rm -Rf build
28821
28822
28823
28824
4d815aed
AX
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
28826$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
ea04106b
AX
28827
28828
28829cat confdefs.h - <<_ACEOF >conftest.c
28830
28831
28832 #include <linux/fs.h>
4d815aed
AX
28833 const char *get_link(struct dentry *de, struct inode *ip,
28834 struct delayed_call *done) { return "symlink"; }
28835 static struct inode_operations
28836 iops __attribute__ ((unused)) = {
28837 .get_link = get_link,
ea04106b
AX
28838 };
28839
28840int
28841main (void)
28842{
28843
28844
28845 ;
28846 return 0;
28847}
28848
28849_ACEOF
28850
28851
28852
28853cat - <<_ACEOF >conftest.h
28854
28855_ACEOF
28856
28857
28858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28859 echo "obj-m := conftest.o" >build/Makefile
28860 modpost_flag=''
28861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28862 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28864 (eval $ac_try) 2>&5
28865 ac_status=$?
28866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28867 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28869 (eval $ac_try) 2>&5
28870 ac_status=$?
28871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28872 test $ac_status = 0; }; }; then :
28873
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28875$as_echo "yes" >&6; }
28876
4d815aed 28877$as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
ea04106b
AX
28878
28879
28880else
28881 $as_echo "$as_me: failed program was:" >&5
28882sed 's/^/| /' conftest.$ac_ext >&5
28883
4d815aed 28884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 28885$as_echo "no" >&6; }
4d815aed
AX
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
28887$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
e10b0808 28888
ea04106b
AX
28889
28890cat confdefs.h - <<_ACEOF >conftest.c
28891
28892
4d815aed
AX
28893 #include <linux/fs.h>
28894 const char *get_link(struct dentry *de, struct
28895 inode *ip, void **cookie) { return "symlink"; }
28896 static struct inode_operations
28897 iops __attribute__ ((unused)) = {
28898 .get_link = get_link,
28899 };
ea04106b
AX
28900
28901int
28902main (void)
28903{
28904
28905
28906 ;
28907 return 0;
28908}
28909
28910_ACEOF
28911
28912
28913
28914cat - <<_ACEOF >conftest.h
28915
28916_ACEOF
28917
28918
28919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28920 echo "obj-m := conftest.o" >build/Makefile
28921 modpost_flag=''
28922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28925 (eval $ac_try) 2>&5
28926 ac_status=$?
28927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28933 test $ac_status = 0; }; }; then :
28934
4d815aed 28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
28936$as_echo "yes" >&6; }
28937
4d815aed 28938$as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
ea04106b
AX
28939
28940
28941else
28942 $as_echo "$as_me: failed program was:" >&5
28943sed 's/^/| /' conftest.$ac_ext >&5
28944
4d815aed 28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
28946$as_echo "no" >&6; }
28947
4d815aed
AX
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
28949$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
ea04106b
AX
28950
28951
28952cat confdefs.h - <<_ACEOF >conftest.c
28953
28954
28955 #include <linux/fs.h>
4d815aed
AX
28956 const char *follow_link(struct dentry *de,
28957 void **cookie) { return "symlink"; }
28958 static struct inode_operations
e10b0808 28959 iops __attribute__ ((unused)) = {
4d815aed 28960 .follow_link = follow_link,
ea04106b
AX
28961 };
28962
28963int
28964main (void)
28965{
28966
28967
28968 ;
28969 return 0;
28970}
28971
28972_ACEOF
28973
28974
28975
28976cat - <<_ACEOF >conftest.h
28977
28978_ACEOF
28979
28980
28981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28982 echo "obj-m := conftest.o" >build/Makefile
28983 modpost_flag=''
28984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28985 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28992 (eval $ac_try) 2>&5
28993 ac_status=$?
28994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28995 test $ac_status = 0; }; }; then :
28996
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28998$as_echo "yes" >&6; }
28999
4d815aed 29000$as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
ea04106b
AX
29001
29002
29003else
29004 $as_echo "$as_me: failed program was:" >&5
29005sed 's/^/| /' conftest.$ac_ext >&5
29006
4d815aed 29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b 29008$as_echo "no" >&6; }
4d815aed
AX
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
29010$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
ea04106b
AX
29011
29012
29013cat confdefs.h - <<_ACEOF >conftest.c
29014
29015
29016 #include <linux/fs.h>
4d815aed
AX
29017 void *follow_link(struct dentry *de, struct
29018 nameidata *nd) { return (void *)NULL; }
29019 static struct inode_operations
29020 iops __attribute__ ((unused)) = {
29021 .follow_link = follow_link,
29022 };
ea04106b
AX
29023
29024int
29025main (void)
29026{
29027
29028
29029 ;
29030 return 0;
29031}
29032
29033_ACEOF
29034
29035
29036
29037cat - <<_ACEOF >conftest.h
29038
29039_ACEOF
29040
29041
29042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29043 echo "obj-m := conftest.o" >build/Makefile
29044 modpost_flag=''
29045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29046 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29048 (eval $ac_try) 2>&5
29049 ac_status=$?
29050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29051 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29053 (eval $ac_try) 2>&5
29054 ac_status=$?
29055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29056 test $ac_status = 0; }; }; then :
29057
4d815aed 29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
29059$as_echo "yes" >&6; }
29060
4d815aed 29061$as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
ea04106b
AX
29062
29063
29064else
29065 $as_echo "$as_me: failed program was:" >&5
29066sed 's/^/| /' conftest.$ac_ext >&5
29067
4d815aed 29068 as_fn_error $? "no; please file a bug report" "$LINENO" 5
ea04106b
AX
29069
29070
29071
29072fi
29073 rm -Rf build
29074
29075
29076
29077
ea04106b 29078
4d815aed
AX
29079fi
29080 rm -Rf build
ea04106b 29081
ea04106b
AX
29082
29083
ea04106b 29084
ea04106b 29085
4d815aed
AX
29086
29087fi
29088 rm -Rf build
29089
29090
29091
29092
29093
29094fi
29095 rm -Rf build
29096
29097
29098
29099
29100
29101
29102cat confdefs.h - <<_ACEOF >conftest.c
29103
29104
29105 #if !defined(HAVE_GET_LINK_DELAYED)
29106 #error "Expecting get_link() delayed done"
29107 #endif
ea04106b
AX
29108
29109int
29110main (void)
29111{
29112
29113
29114 ;
29115 return 0;
29116}
29117
29118_ACEOF
29119
29120
29121
29122cat - <<_ACEOF >conftest.h
29123
29124_ACEOF
29125
29126
29127 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29128 echo "obj-m := conftest.o" >build/Makefile
29129 modpost_flag=''
29130 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29131 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29133 (eval $ac_try) 2>&5
29134 ac_status=$?
29135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29136 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29138 (eval $ac_try) 2>&5
29139 ac_status=$?
29140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29141 test $ac_status = 0; }; }; then :
29142
ea04106b 29143
4d815aed 29144$as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
ea04106b
AX
29145
29146
29147else
29148 $as_echo "$as_me: failed program was:" >&5
29149sed 's/^/| /' conftest.$ac_ext >&5
29150
4d815aed
AX
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
29152$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
ea04106b
AX
29153
29154
29155cat confdefs.h - <<_ACEOF >conftest.c
29156
29157
4d815aed
AX
29158 #include <linux/fs.h>
29159 void put_link(struct inode *ip, void *cookie)
29160 { return; }
29161 static struct inode_operations
29162 iops __attribute__ ((unused)) = {
29163 .put_link = put_link,
29164 };
ea04106b
AX
29165
29166int
29167main (void)
29168{
29169
29170
29171 ;
29172 return 0;
29173}
29174
29175_ACEOF
29176
29177
29178
29179cat - <<_ACEOF >conftest.h
29180
29181_ACEOF
29182
29183
29184 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29185 echo "obj-m := conftest.o" >build/Makefile
29186 modpost_flag=''
29187 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29188 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29193 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29198 test $ac_status = 0; }; }; then :
29199
4d815aed 29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e10b0808
AX
29201$as_echo "yes" >&6; }
29202
4d815aed 29203$as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
ea04106b
AX
29204
29205
4d815aed
AX
29206else
29207 $as_echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 29209
4d815aed
AX
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29211$as_echo "no" >&6; }
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
e10b0808 29213$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
ea04106b
AX
29214
29215
29216cat confdefs.h - <<_ACEOF >conftest.c
29217
29218
4d815aed
AX
29219 #include <linux/fs.h>
29220 void put_link(struct dentry *de, struct
29221 nameidata *nd, void *ptr) { return; }
29222 static struct inode_operations
29223 iops __attribute__ ((unused)) = {
29224 .put_link = put_link,
29225 };
ea04106b
AX
29226
29227int
29228main (void)
29229{
29230
29231
29232 ;
29233 return 0;
29234}
29235
29236_ACEOF
29237
29238
29239
29240cat - <<_ACEOF >conftest.h
29241
29242_ACEOF
29243
29244
29245 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29246 echo "obj-m := conftest.o" >build/Makefile
29247 modpost_flag=''
29248 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29249 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29254 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29256 (eval $ac_try) 2>&5
29257 ac_status=$?
29258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29259 test $ac_status = 0; }; }; then :
29260
4d815aed
AX
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29262$as_echo "yes" >&6; }
29263
29264$as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
29265
ea04106b
AX
29266
29267else
29268 $as_echo "$as_me: failed program was:" >&5
29269sed 's/^/| /' conftest.$ac_ext >&5
29270
4d815aed
AX
29271 as_fn_error $? "no; please file a bug report" "$LINENO" 5
29272
29273
29274
29275fi
29276 rm -Rf build
29277
29278
29279
29280
29281
29282fi
29283 rm -Rf build
e10b0808 29284
e10b0808 29285
ea04106b
AX
29286
29287
29288
29289fi
29290 rm -Rf build
29291
29292
29293
29294
e10b0808
AX
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
29296$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
ea04106b
AX
29297
29298
29299cat confdefs.h - <<_ACEOF >conftest.c
29300
29301
29302 #include <linux/fs.h>
e10b0808
AX
29303 void truncate_range(struct inode *inode, loff_t start,
29304 loff_t end) { return; }
29305 static struct inode_operations iops __attribute__ ((unused)) = {
29306 .truncate_range = truncate_range,
ea04106b
AX
29307 };
29308
29309int
29310main (void)
29311{
29312
29313
29314 ;
29315 return 0;
29316}
29317
29318_ACEOF
29319
29320
29321
29322cat - <<_ACEOF >conftest.h
29323
29324_ACEOF
29325
29326
29327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29328 echo "obj-m := conftest.o" >build/Makefile
29329 modpost_flag=''
29330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29331 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29336 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29338 (eval $ac_try) 2>&5
29339 ac_status=$?
29340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29341 test $ac_status = 0; }; }; then :
29342
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29344$as_echo "yes" >&6; }
29345
e10b0808 29346$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
ea04106b
AX
29347
29348
29349else
29350 $as_echo "$as_me: failed program was:" >&5
29351sed 's/^/| /' conftest.$ac_ext >&5
29352
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29354$as_echo "no" >&6; }
29355
29356
29357
29358fi
29359 rm -Rf build
29360
29361
29362
29363
e10b0808
AX
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
29365$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
ea04106b
AX
29366
29367
29368cat confdefs.h - <<_ACEOF >conftest.c
29369
29370
e10b0808
AX
29371 #include <linux/dcache.h>
29372 struct vfsmount *d_automount(struct path *p) { return NULL; }
29373 struct dentry_operations dops __attribute__ ((unused)) = {
29374 .d_automount = d_automount,
ea04106b
AX
29375 };
29376
29377int
29378main (void)
29379{
29380
29381
29382 ;
29383 return 0;
29384}
29385
29386_ACEOF
29387
29388
29389
29390cat - <<_ACEOF >conftest.h
29391
29392_ACEOF
29393
29394
29395 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29396 echo "obj-m := conftest.o" >build/Makefile
29397 modpost_flag=''
29398 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29399 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29401 (eval $ac_try) 2>&5
29402 ac_status=$?
29403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29404 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29406 (eval $ac_try) 2>&5
29407 ac_status=$?
29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409 test $ac_status = 0; }; }; then :
29410
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29412$as_echo "yes" >&6; }
29413
e10b0808 29414$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
ea04106b
AX
29415
29416
29417else
29418 $as_echo "$as_me: failed program was:" >&5
29419sed 's/^/| /' conftest.$ac_ext >&5
29420
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29422$as_echo "no" >&6; }
29423
29424
29425
29426fi
29427 rm -Rf build
29428
29429
29430
29431
e10b0808
AX
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
29433$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
ea04106b
AX
29434
29435
29436cat confdefs.h - <<_ACEOF >conftest.c
29437
29438
e10b0808
AX
29439 #include <linux/exportfs.h>
29440 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
29441 struct inode *parent) { return 0; }
29442 static struct export_operations eops __attribute__ ((unused))={
29443 .encode_fh = encode_fh,
ea04106b
AX
29444 };
29445
29446int
29447main (void)
29448{
29449
29450
29451 ;
29452 return 0;
29453}
29454
29455_ACEOF
29456
29457
29458
29459cat - <<_ACEOF >conftest.h
29460
29461_ACEOF
29462
29463
29464 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29465 echo "obj-m := conftest.o" >build/Makefile
29466 modpost_flag=''
29467 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29468 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29473 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29475 (eval $ac_try) 2>&5
29476 ac_status=$?
29477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29478 test $ac_status = 0; }; }; then :
29479
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29481$as_echo "yes" >&6; }
29482
e10b0808 29483$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
ea04106b
AX
29484
29485
29486else
29487 $as_echo "$as_me: failed program was:" >&5
29488sed 's/^/| /' conftest.$ac_ext >&5
29489
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29491$as_echo "no" >&6; }
29492
29493
29494
29495fi
29496 rm -Rf build
29497
29498
29499
29500
e10b0808
AX
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
29502$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
ea04106b
AX
29503
29504
29505cat confdefs.h - <<_ACEOF >conftest.c
29506
29507
e10b0808
AX
29508 #include <linux/exportfs.h>
29509 int commit_metadata(struct inode *inode) { return 0; }
29510 static struct export_operations eops __attribute__ ((unused))={
29511 .commit_metadata = commit_metadata,
ea04106b
AX
29512 };
29513
29514int
29515main (void)
29516{
29517
29518
29519 ;
29520 return 0;
29521}
29522
29523_ACEOF
29524
29525
29526
29527cat - <<_ACEOF >conftest.h
29528
29529_ACEOF
29530
29531
29532 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29533 echo "obj-m := conftest.o" >build/Makefile
29534 modpost_flag=''
29535 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29536 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29541 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29543 (eval $ac_try) 2>&5
29544 ac_status=$?
29545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29546 test $ac_status = 0; }; }; then :
29547
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29549$as_echo "yes" >&6; }
29550
e10b0808 29551$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
ea04106b
AX
29552
29553
29554else
29555 $as_echo "$as_me: failed program was:" >&5
29556sed 's/^/| /' conftest.$ac_ext >&5
29557
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29559$as_echo "no" >&6; }
29560
29561
29562
29563fi
29564 rm -Rf build
29565
29566
29567
e10b0808
AX
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
29569$as_echo_n "checking whether clear_inode() is available... " >&6; }
ea04106b 29570
ea04106b
AX
29571
29572
29573cat confdefs.h - <<_ACEOF >conftest.c
29574
29575
e10b0808 29576 #include <linux/fs.h>
ea04106b
AX
29577
29578int
29579main (void)
29580{
29581
e10b0808 29582 clear_inode(NULL);
ea04106b
AX
29583
29584 ;
29585 return 0;
29586}
29587
29588_ACEOF
29589
29590
29591
29592cat - <<_ACEOF >conftest.h
29593
29594_ACEOF
29595
29596
29597 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29598 echo "obj-m := conftest.o" >build/Makefile
29599 modpost_flag=''
29600 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29601 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29603 (eval $ac_try) 2>&5
29604 ac_status=$?
29605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29606 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29608 (eval $ac_try) 2>&5
29609 ac_status=$?
29610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29611 test $ac_status = 0; }; }; then :
e10b0808
AX
29612 rc=0
29613else
29614 $as_echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616 rc=1
ea04106b 29617
ea04106b 29618
e10b0808
AX
29619fi
29620 rm -Rf build
ea04106b
AX
29621
29622
e10b0808
AX
29623 if test $rc -ne 0; then :
29624
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29626$as_echo "no" >&6; }
29627
29628 else
29629 if test "x$enable_linux_builtin" != xyes; then
29630
29631 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
29632 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29633 rc=$?
29634 if test $rc -ne 0; then
29635 export=0
29636 for file in fs/inode.c; do
29637 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
29638 "$LINUX/$file" 2>/dev/null
29639 rc=$?
29640 if test $rc -eq 0; then
29641 export=1
29642 break;
29643 fi
29644 done
29645 if test $export -eq 0; then :
29646 rc=1
29647 else :
29648 rc=0
29649 fi
29650 else :
29651 rc=0
29652 fi
29653
29654 fi
29655 if test $rc -ne 0; then :
ea04106b
AX
29656
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29658$as_echo "no" >&6; }
29659
e10b0808
AX
29660 else :
29661
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29663$as_echo "yes" >&6; }
ea04106b 29664
e10b0808 29665$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
ea04106b 29666
ea04106b 29667
e10b0808
AX
29668 fi
29669 fi
ea04106b
AX
29670
29671
e10b0808
AX
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
29673$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
ea04106b 29674
ea04106b
AX
29675
29676
29677cat confdefs.h - <<_ACEOF >conftest.c
29678
29679
e10b0808 29680 #include <linux/fs.h>
ea04106b
AX
29681
29682int
29683main (void)
29684{
29685
e10b0808 29686 insert_inode_locked(NULL);
ea04106b
AX
29687
29688 ;
29689 return 0;
29690}
29691
29692_ACEOF
29693
29694
29695
29696cat - <<_ACEOF >conftest.h
29697
29698_ACEOF
29699
29700
29701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29702 echo "obj-m := conftest.o" >build/Makefile
29703 modpost_flag=''
29704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29707 (eval $ac_try) 2>&5
29708 ac_status=$?
29709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29710 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29712 (eval $ac_try) 2>&5
29713 ac_status=$?
29714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29715 test $ac_status = 0; }; }; then :
e10b0808
AX
29716 rc=0
29717else
29718 $as_echo "$as_me: failed program was:" >&5
29719sed 's/^/| /' conftest.$ac_ext >&5
29720 rc=1
ea04106b 29721
ea04106b 29722
e10b0808
AX
29723fi
29724 rm -Rf build
ea04106b
AX
29725
29726
e10b0808
AX
29727 if test $rc -ne 0; then :
29728
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29730$as_echo "no" >&6; }
29731
29732 else
29733 if test "x$enable_linux_builtin" != xyes; then
29734
29735 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
29736 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29737 rc=$?
29738 if test $rc -ne 0; then
29739 export=0
29740 for file in fs/inode.c; do
29741 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
29742 "$LINUX/$file" 2>/dev/null
29743 rc=$?
29744 if test $rc -eq 0; then
29745 export=1
29746 break;
29747 fi
29748 done
29749 if test $export -eq 0; then :
29750 rc=1
29751 else :
29752 rc=0
29753 fi
29754 else :
29755 rc=0
29756 fi
29757
29758 fi
29759 if test $rc -ne 0; then :
ea04106b
AX
29760
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29762$as_echo "no" >&6; }
29763
e10b0808
AX
29764 else :
29765
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29767$as_echo "yes" >&6; }
ea04106b 29768
e10b0808 29769$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
ea04106b 29770
ea04106b 29771
e10b0808
AX
29772 fi
29773 fi
ea04106b
AX
29774
29775
e10b0808
AX
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
29777$as_echo_n "checking whether d_make_root() is available... " >&6; }
ea04106b
AX
29778
29779
29780
29781cat confdefs.h - <<_ACEOF >conftest.c
29782
29783
e10b0808 29784 #include <linux/dcache.h>
ea04106b
AX
29785
29786int
29787main (void)
29788{
29789
e10b0808 29790 d_make_root(NULL);
ea04106b
AX
29791
29792 ;
29793 return 0;
29794}
29795
29796_ACEOF
29797
29798
29799
29800cat - <<_ACEOF >conftest.h
29801
29802_ACEOF
29803
29804
29805 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29806 echo "obj-m := conftest.o" >build/Makefile
29807 modpost_flag=''
29808 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29809 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29811 (eval $ac_try) 2>&5
29812 ac_status=$?
29813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29814 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29816 (eval $ac_try) 2>&5
29817 ac_status=$?
29818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29819 test $ac_status = 0; }; }; then :
29820 rc=0
29821else
29822 $as_echo "$as_me: failed program was:" >&5
29823sed 's/^/| /' conftest.$ac_ext >&5
29824 rc=1
29825
29826
29827fi
29828 rm -Rf build
29829
29830
29831 if test $rc -ne 0; then :
29832
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29834$as_echo "no" >&6; }
29835
29836 else
29837 if test "x$enable_linux_builtin" != xyes; then
29838
e10b0808 29839 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
ea04106b
AX
29840 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29841 rc=$?
29842 if test $rc -ne 0; then
29843 export=0
e10b0808
AX
29844 for file in fs/dcache.c; do
29845 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
ea04106b
AX
29846 "$LINUX/$file" 2>/dev/null
29847 rc=$?
29848 if test $rc -eq 0; then
29849 export=1
29850 break;
29851 fi
29852 done
29853 if test $export -eq 0; then :
29854 rc=1
29855 else :
29856 rc=0
29857 fi
29858 else :
29859 rc=0
29860 fi
29861
29862 fi
29863 if test $rc -ne 0; then :
29864
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29866$as_echo "no" >&6; }
29867
29868 else :
29869
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29871$as_echo "yes" >&6; }
29872
e10b0808 29873$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
ea04106b
AX
29874
29875
29876 fi
29877 fi
29878
29879
e10b0808
AX
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
29881$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
ea04106b
AX
29882
29883
29884
29885cat confdefs.h - <<_ACEOF >conftest.c
29886
29887
e10b0808 29888 #include <linux/dcache.h>
ea04106b
AX
29889
29890int
29891main (void)
29892{
29893
e10b0808 29894 d_obtain_alias(NULL);
ea04106b
AX
29895
29896 ;
29897 return 0;
29898}
29899
29900_ACEOF
29901
29902
29903
29904cat - <<_ACEOF >conftest.h
29905
29906_ACEOF
29907
29908
29909 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29910 echo "obj-m := conftest.o" >build/Makefile
29911 modpost_flag=''
29912 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29913 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29915 (eval $ac_try) 2>&5
29916 ac_status=$?
29917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29918 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29923 test $ac_status = 0; }; }; then :
29924 rc=0
29925else
29926 $as_echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928 rc=1
29929
29930
29931fi
29932 rm -Rf build
29933
29934
29935 if test $rc -ne 0; then :
29936
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29938$as_echo "no" >&6; }
29939
29940 else
29941 if test "x$enable_linux_builtin" != xyes; then
29942
e10b0808 29943 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
ea04106b
AX
29944 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29945 rc=$?
29946 if test $rc -ne 0; then
29947 export=0
e10b0808
AX
29948 for file in fs/dcache.c; do
29949 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
ea04106b
AX
29950 "$LINUX/$file" 2>/dev/null
29951 rc=$?
29952 if test $rc -eq 0; then
29953 export=1
29954 break;
29955 fi
29956 done
29957 if test $export -eq 0; then :
29958 rc=1
29959 else :
29960 rc=0
29961 fi
29962 else :
29963 rc=0
29964 fi
29965
29966 fi
29967 if test $rc -ne 0; then :
29968
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29970$as_echo "no" >&6; }
29971
29972 else :
29973
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29975$as_echo "yes" >&6; }
29976
e10b0808 29977$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
ea04106b
AX
29978
29979
29980 fi
29981 fi
29982
29983
e10b0808
AX
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
29985$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
ea04106b
AX
29986
29987
29988
29989cat confdefs.h - <<_ACEOF >conftest.c
29990
29991
29992 #include <linux/dcache.h>
29993
29994int
29995main (void)
29996{
29997
e10b0808
AX
29998 struct inode *ip = NULL;
29999 d_prune_aliases(ip);
ea04106b
AX
30000
30001 ;
30002 return 0;
30003}
30004
30005_ACEOF
30006
30007
30008
30009cat - <<_ACEOF >conftest.h
30010
30011_ACEOF
30012
30013
30014 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30015 echo "obj-m := conftest.o" >build/Makefile
30016 modpost_flag=''
30017 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30018 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30020 (eval $ac_try) 2>&5
30021 ac_status=$?
30022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30023 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30025 (eval $ac_try) 2>&5
30026 ac_status=$?
30027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30028 test $ac_status = 0; }; }; then :
30029 rc=0
30030else
30031 $as_echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033 rc=1
30034
30035
30036fi
30037 rm -Rf build
30038
30039
30040 if test $rc -ne 0; then :
30041
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30043$as_echo "no" >&6; }
30044
30045 else
30046 if test "x$enable_linux_builtin" != xyes; then
30047
e10b0808 30048 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
ea04106b
AX
30049 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30050 rc=$?
30051 if test $rc -ne 0; then
30052 export=0
30053 for file in fs/dcache.c; do
e10b0808 30054 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
ea04106b
AX
30055 "$LINUX/$file" 2>/dev/null
30056 rc=$?
30057 if test $rc -eq 0; then
30058 export=1
30059 break;
30060 fi
30061 done
30062 if test $export -eq 0; then :
30063 rc=1
30064 else :
30065 rc=0
30066 fi
30067 else :
30068 rc=0
30069 fi
30070
30071 fi
30072 if test $rc -ne 0; then :
30073
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30075$as_echo "no" >&6; }
30076
30077 else :
30078
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30080$as_echo "yes" >&6; }
30081
e10b0808 30082$as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
ea04106b
AX
30083
30084
30085 fi
30086 fi
30087
30088
e10b0808
AX
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
30090$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
ea04106b
AX
30091
30092
30093
30094cat confdefs.h - <<_ACEOF >conftest.c
30095
30096
30097 #include <linux/dcache.h>
30098
30099int
30100main (void)
30101{
30102
e10b0808 30103 d_set_d_op(NULL, NULL);
ea04106b
AX
30104
30105 ;
30106 return 0;
30107}
30108
30109_ACEOF
30110
30111
30112
30113cat - <<_ACEOF >conftest.h
30114
30115_ACEOF
30116
30117
30118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30119 echo "obj-m := conftest.o" >build/Makefile
30120 modpost_flag=''
30121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30124 (eval $ac_try) 2>&5
30125 ac_status=$?
30126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30127 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30129 (eval $ac_try) 2>&5
30130 ac_status=$?
30131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30132 test $ac_status = 0; }; }; then :
30133 rc=0
30134else
30135 $as_echo "$as_me: failed program was:" >&5
30136sed 's/^/| /' conftest.$ac_ext >&5
30137 rc=1
30138
30139
30140fi
30141 rm -Rf build
30142
30143
30144 if test $rc -ne 0; then :
30145
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30147$as_echo "no" >&6; }
30148
30149 else
30150 if test "x$enable_linux_builtin" != xyes; then
30151
e10b0808 30152 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
ea04106b
AX
30153 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30154 rc=$?
30155 if test $rc -ne 0; then
30156 export=0
30157 for file in fs/dcache.c; do
e10b0808 30158 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
ea04106b
AX
30159 "$LINUX/$file" 2>/dev/null
30160 rc=$?
30161 if test $rc -eq 0; then
30162 export=1
30163 break;
30164 fi
30165 done
30166 if test $export -eq 0; then :
30167 rc=1
30168 else :
30169 rc=0
30170 fi
30171 else :
30172 rc=0
30173 fi
30174
e10b0808
AX
30175 fi
30176 if test $rc -ne 0; then :
30177
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30179$as_echo "no" >&6; }
30180
30181 else :
30182
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30184$as_echo "yes" >&6; }
30185
30186$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
30187
30188
30189 fi
30190 fi
30191
30192
30193
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
30195$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
30196
30197
30198cat confdefs.h - <<_ACEOF >conftest.c
30199
30200
30201 #include <linux/dcache.h>
30202
30203 int revalidate (struct dentry *dentry,
30204 struct nameidata *nidata) { return 0; }
30205
30206 static const struct dentry_operations
30207 dops __attribute__ ((unused)) = {
30208 .d_revalidate = revalidate,
30209 };
30210
30211int
30212main (void)
30213{
30214
30215
30216 ;
30217 return 0;
30218}
30219
30220_ACEOF
30221
30222
30223
30224cat - <<_ACEOF >conftest.h
30225
30226_ACEOF
30227
30228
30229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30230 echo "obj-m := conftest.o" >build/Makefile
30231 modpost_flag=''
30232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30233 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30235 (eval $ac_try) 2>&5
30236 ac_status=$?
30237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30238 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30243 test $ac_status = 0; }; }; then :
30244
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30246$as_echo "yes" >&6; }
30247
30248$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
30249
30250
30251else
30252 $as_echo "$as_me: failed program was:" >&5
30253sed 's/^/| /' conftest.$ac_ext >&5
30254
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30256$as_echo "no" >&6; }
30257
30258
30259
30260fi
30261 rm -Rf build
30262
30263
30264
30265
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
30267$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
30268
30269
30270cat confdefs.h - <<_ACEOF >conftest.c
30271
30272
30273 #include <linux/dcache.h>
30274
30275 const struct dentry_operations test_d_op = {
30276 .d_revalidate = NULL,
30277 };
30278
30279int
30280main (void)
30281{
30282
30283 struct dentry d __attribute__ ((unused));
30284
30285 d.d_op = &test_d_op;
30286
30287 ;
30288 return 0;
30289}
30290
30291_ACEOF
30292
30293
30294
30295cat - <<_ACEOF >conftest.h
30296
30297_ACEOF
30298
30299
30300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30301 echo "obj-m := conftest.o" >build/Makefile
30302 modpost_flag=''
30303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30304 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30306 (eval $ac_try) 2>&5
30307 ac_status=$?
30308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30309 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30311 (eval $ac_try) 2>&5
30312 ac_status=$?
30313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30314 test $ac_status = 0; }; }; then :
30315
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30317$as_echo "yes" >&6; }
30318
30319$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
30320
30321
30322else
30323 $as_echo "$as_me: failed program was:" >&5
30324sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
30325
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30327$as_echo "no" >&6; }
30328
ea04106b 30329
ea04106b 30330
e10b0808
AX
30331fi
30332 rm -Rf build
ea04106b 30333
ea04106b
AX
30334
30335
e10b0808
AX
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
30337$as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
ea04106b
AX
30338
30339
30340
30341cat confdefs.h - <<_ACEOF >conftest.c
30342
30343
e10b0808 30344 #include <linux/fs.h>
ea04106b
AX
30345
30346int
30347main (void)
30348{
30349
e10b0808 30350 check_disk_size_change(NULL, NULL);
ea04106b
AX
30351
30352 ;
30353 return 0;
30354}
30355
30356_ACEOF
30357
30358
30359
30360cat - <<_ACEOF >conftest.h
30361
30362_ACEOF
30363
30364
30365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30366 echo "obj-m := conftest.o" >build/Makefile
30367 modpost_flag=''
30368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30371 (eval $ac_try) 2>&5
30372 ac_status=$?
30373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30374 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30379 test $ac_status = 0; }; }; then :
30380 rc=0
30381else
30382 $as_echo "$as_me: failed program was:" >&5
30383sed 's/^/| /' conftest.$ac_ext >&5
30384 rc=1
30385
30386
30387fi
30388 rm -Rf build
30389
30390
30391 if test $rc -ne 0; then :
30392
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30394$as_echo "no" >&6; }
30395
30396 else
30397 if test "x$enable_linux_builtin" != xyes; then
30398
e10b0808 30399 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
ea04106b
AX
30400 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30401 rc=$?
30402 if test $rc -ne 0; then
30403 export=0
e10b0808
AX
30404 for file in fs/block_dev.c; do
30405 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
ea04106b
AX
30406 "$LINUX/$file" 2>/dev/null
30407 rc=$?
30408 if test $rc -eq 0; then
30409 export=1
30410 break;
30411 fi
30412 done
30413 if test $export -eq 0; then :
30414 rc=1
30415 else :
30416 rc=0
30417 fi
30418 else :
30419 rc=0
30420 fi
30421
30422 fi
30423 if test $rc -ne 0; then :
30424
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30426$as_echo "no" >&6; }
30427
30428 else :
30429
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30431$as_echo "yes" >&6; }
30432
e10b0808 30433$as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
ea04106b
AX
30434
30435
30436 fi
30437 fi
30438
30439
e10b0808
AX
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
30441$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b
AX
30442
30443
30444
30445cat confdefs.h - <<_ACEOF >conftest.c
30446
30447
e10b0808 30448 #include <linux/mm.h>
ea04106b
AX
30449
30450int
30451main (void)
30452{
30453
e10b0808 30454 truncate_setsize(NULL, 0);
ea04106b
AX
30455
30456 ;
30457 return 0;
30458}
30459
30460_ACEOF
30461
30462
30463
30464cat - <<_ACEOF >conftest.h
30465
30466_ACEOF
30467
30468
30469 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30470 echo "obj-m := conftest.o" >build/Makefile
30471 modpost_flag=''
30472 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30473 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30475 (eval $ac_try) 2>&5
30476 ac_status=$?
30477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30478 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30480 (eval $ac_try) 2>&5
30481 ac_status=$?
30482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30483 test $ac_status = 0; }; }; then :
30484 rc=0
30485else
30486 $as_echo "$as_me: failed program was:" >&5
30487sed 's/^/| /' conftest.$ac_ext >&5
30488 rc=1
30489
30490
30491fi
30492 rm -Rf build
30493
30494
30495 if test $rc -ne 0; then :
30496
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498$as_echo "no" >&6; }
30499
30500 else
30501 if test "x$enable_linux_builtin" != xyes; then
30502
e10b0808 30503 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
ea04106b
AX
30504 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30505 rc=$?
30506 if test $rc -ne 0; then
30507 export=0
e10b0808
AX
30508 for file in mm/truncate.c; do
30509 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
ea04106b
AX
30510 "$LINUX/$file" 2>/dev/null
30511 rc=$?
30512 if test $rc -eq 0; then
30513 export=1
30514 break;
30515 fi
30516 done
30517 if test $export -eq 0; then :
30518 rc=1
30519 else :
30520 rc=0
30521 fi
30522 else :
30523 rc=0
30524 fi
30525
30526 fi
30527 if test $rc -ne 0; then :
30528
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30530$as_echo "no" >&6; }
30531
30532 else :
30533
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30535$as_echo "yes" >&6; }
30536
e10b0808 30537$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
ea04106b
AX
30538
30539
30540 fi
30541 fi
30542
30543
30544
e10b0808
AX
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
30546$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
ea04106b
AX
30547
30548
30549cat confdefs.h - <<_ACEOF >conftest.c
30550
30551
e10b0808 30552 #include <linux/security.h>
ea04106b
AX
30553
30554int
30555main (void)
30556{
30557
e10b0808
AX
30558 struct inode *ip __attribute__ ((unused)) = NULL;
30559 struct inode *dip __attribute__ ((unused)) = NULL;
30560 const struct qstr *str __attribute__ ((unused)) = NULL;
30561 char *name __attribute__ ((unused)) = NULL;
30562 void *value __attribute__ ((unused)) = NULL;
30563 size_t len __attribute__ ((unused)) = 0;
30564
30565 security_inode_init_security(ip, dip, str, &name, &value, &len);
ea04106b
AX
30566
30567 ;
30568 return 0;
30569}
30570
30571_ACEOF
30572
30573
30574
30575cat - <<_ACEOF >conftest.h
30576
30577_ACEOF
30578
30579
30580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30581 echo "obj-m := conftest.o" >build/Makefile
30582 modpost_flag=''
30583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30584 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30586 (eval $ac_try) 2>&5
30587 ac_status=$?
30588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30589 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30591 (eval $ac_try) 2>&5
30592 ac_status=$?
30593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30594 test $ac_status = 0; }; }; then :
30595
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30597$as_echo "yes" >&6; }
30598
e10b0808 30599$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
ea04106b
AX
30600
30601
30602else
30603 $as_echo "$as_me: failed program was:" >&5
30604sed 's/^/| /' conftest.$ac_ext >&5
30605
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30607$as_echo "no" >&6; }
30608
30609
30610
30611fi
30612 rm -Rf build
30613
30614
30615
30616
e10b0808
AX
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
30618$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
ea04106b
AX
30619
30620
30621cat confdefs.h - <<_ACEOF >conftest.c
30622
30623
e10b0808 30624 #include <linux/security.h>
ea04106b
AX
30625
30626int
30627main (void)
30628{
30629
e10b0808
AX
30630 struct inode *ip __attribute__ ((unused)) = NULL;
30631 struct inode *dip __attribute__ ((unused)) = NULL;
30632 const struct qstr *str __attribute__ ((unused)) = NULL;
30633 initxattrs func __attribute__ ((unused)) = NULL;
ea04106b 30634
e10b0808 30635 security_inode_init_security(ip, dip, str, func, NULL);
ea04106b
AX
30636
30637 ;
30638 return 0;
30639}
30640
30641_ACEOF
30642
30643
30644
30645cat - <<_ACEOF >conftest.h
30646
30647_ACEOF
30648
30649
30650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30651 echo "obj-m := conftest.o" >build/Makefile
30652 modpost_flag=''
30653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30654 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30659 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30661 (eval $ac_try) 2>&5
30662 ac_status=$?
30663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30664 test $ac_status = 0; }; }; then :
30665
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30667$as_echo "yes" >&6; }
30668
e10b0808 30669$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
ea04106b
AX
30670
30671
30672else
30673 $as_echo "$as_me: failed program was:" >&5
30674sed 's/^/| /' conftest.$ac_ext >&5
30675
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677$as_echo "no" >&6; }
30678
30679
30680
30681fi
30682 rm -Rf build
30683
30684
30685
e10b0808
AX
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
30687$as_echo_n "checking whether mount_nodev() is available... " >&6; }
ea04106b
AX
30688
30689
30690
30691cat confdefs.h - <<_ACEOF >conftest.c
30692
30693
30694 #include <linux/fs.h>
30695
30696int
30697main (void)
30698{
30699
e10b0808 30700 mount_nodev(NULL, 0, NULL, NULL);
ea04106b
AX
30701
30702 ;
30703 return 0;
30704}
30705
30706_ACEOF
30707
30708
30709
30710cat - <<_ACEOF >conftest.h
30711
30712_ACEOF
30713
30714
30715 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30716 echo "obj-m := conftest.o" >build/Makefile
30717 modpost_flag=''
30718 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30719 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30724 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30726 (eval $ac_try) 2>&5
30727 ac_status=$?
30728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30729 test $ac_status = 0; }; }; then :
30730 rc=0
30731else
30732 $as_echo "$as_me: failed program was:" >&5
30733sed 's/^/| /' conftest.$ac_ext >&5
30734 rc=1
30735
30736
30737fi
30738 rm -Rf build
30739
30740
30741 if test $rc -ne 0; then :
30742
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30744$as_echo "no" >&6; }
30745
30746 else
30747 if test "x$enable_linux_builtin" != xyes; then
30748
e10b0808 30749 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
ea04106b
AX
30750 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30751 rc=$?
30752 if test $rc -ne 0; then
30753 export=0
e10b0808
AX
30754 for file in fs/super.c; do
30755 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
ea04106b
AX
30756 "$LINUX/$file" 2>/dev/null
30757 rc=$?
30758 if test $rc -eq 0; then
30759 export=1
30760 break;
30761 fi
30762 done
30763 if test $export -eq 0; then :
30764 rc=1
30765 else :
30766 rc=0
30767 fi
30768 else :
30769 rc=0
30770 fi
30771
30772 fi
30773 if test $rc -ne 0; then :
30774
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30776$as_echo "no" >&6; }
30777
30778 else :
30779
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30781$as_echo "yes" >&6; }
30782
e10b0808 30783$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
ea04106b
AX
30784
30785
30786 fi
30787 fi
30788
30789
ea04106b 30790
e10b0808
AX
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
30792$as_echo_n "checking whether super_block has s_shrink... " >&6; }
ea04106b
AX
30793
30794
30795cat confdefs.h - <<_ACEOF >conftest.c
30796
30797
e10b0808
AX
30798 #include <linux/fs.h>
30799
30800 int shrink(struct shrinker *s, struct shrink_control *sc)
30801 { return 0; }
30802
30803 static const struct super_block
30804 sb __attribute__ ((unused)) = {
30805 .s_shrink.shrink = shrink,
30806 .s_shrink.seeks = DEFAULT_SEEKS,
30807 .s_shrink.batch = 0,
30808 };
30809
30810int
30811main (void)
30812{
30813
30814
30815 ;
30816 return 0;
30817}
30818
30819_ACEOF
30820
30821
30822
30823cat - <<_ACEOF >conftest.h
30824
30825_ACEOF
30826
30827
30828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30829 echo "obj-m := conftest.o" >build/Makefile
30830 modpost_flag=''
30831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30834 (eval $ac_try) 2>&5
30835 ac_status=$?
30836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30837 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30839 (eval $ac_try) 2>&5
30840 ac_status=$?
30841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30842 test $ac_status = 0; }; }; then :
30843
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30845$as_echo "yes" >&6; }
30846
30847$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
30848
30849
30850
30851else
30852 $as_echo "$as_me: failed program was:" >&5
30853sed 's/^/| /' conftest.$ac_ext >&5
30854
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30856$as_echo "no" >&6; }
30857
30858
30859
30860fi
30861 rm -Rf build
30862
30863
30864
30865
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
30867$as_echo_n "checking whether shrink_control has nid... " >&6; }
30868
30869
30870cat confdefs.h - <<_ACEOF >conftest.c
30871
30872
30873 #include <linux/fs.h>
30874
30875int
30876main (void)
30877{
30878
30879 struct shrink_control sc __attribute__ ((unused));
30880 unsigned long scnidsize __attribute__ ((unused)) =
30881 sizeof(sc.nid);
30882
30883 ;
30884 return 0;
30885}
30886
30887_ACEOF
30888
30889
30890
30891cat - <<_ACEOF >conftest.h
30892
30893_ACEOF
30894
30895
30896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30897 echo "obj-m := conftest.o" >build/Makefile
30898 modpost_flag=''
30899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30900 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30905 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30910 test $ac_status = 0; }; }; then :
30911
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30913$as_echo "yes" >&6; }
30914
30915$as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
30916
30917
30918else
30919 $as_echo "$as_me: failed program was:" >&5
30920sed 's/^/| /' conftest.$ac_ext >&5
30921
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30923$as_echo "no" >&6; }
30924
30925
30926
30927fi
30928 rm -Rf build
30929
30930
30931
30932
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
30934$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
30935
30936
30937cat confdefs.h - <<_ACEOF >conftest.c
30938
30939
30940 #include <linux/fs.h>
ea04106b
AX
30941
30942int
30943main (void)
30944{
30945
e10b0808
AX
30946 struct super_block sb __attribute__ ((unused));
30947
30948 INIT_LIST_HEAD(&sb.s_instances);
ea04106b
AX
30949
30950 ;
30951 return 0;
30952}
30953
30954_ACEOF
30955
30956
30957
30958cat - <<_ACEOF >conftest.h
30959
30960_ACEOF
30961
30962
30963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30964 echo "obj-m := conftest.o" >build/Makefile
30965 modpost_flag=''
30966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30967 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30969 (eval $ac_try) 2>&5
30970 ac_status=$?
30971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30972 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30974 (eval $ac_try) 2>&5
30975 ac_status=$?
30976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30977 test $ac_status = 0; }; }; then :
ea04106b 30978
e10b0808
AX
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30980$as_echo "yes" >&6; }
ea04106b 30981
e10b0808 30982$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
ea04106b 30983
ea04106b 30984
e10b0808
AX
30985else
30986 $as_echo "$as_me: failed program was:" >&5
30987sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
30988
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30990$as_echo "no" >&6; }
30991
ea04106b
AX
30992
30993
e10b0808
AX
30994fi
30995 rm -Rf build
ea04106b
AX
30996
30997
30998
e10b0808
AX
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
31000$as_echo_n "checking whether super_block has s_d_op... " >&6; }
ea04106b
AX
31001
31002
31003cat confdefs.h - <<_ACEOF >conftest.c
31004
31005
e10b0808 31006 #include <linux/fs.h>
ea04106b
AX
31007
31008int
31009main (void)
31010{
31011
e10b0808
AX
31012 struct super_block sb __attribute__ ((unused));
31013 sb.s_d_op = NULL;
ea04106b
AX
31014
31015 ;
31016 return 0;
31017}
31018
31019_ACEOF
31020
31021
31022
31023cat - <<_ACEOF >conftest.h
31024
31025_ACEOF
31026
31027
31028 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31029 echo "obj-m := conftest.o" >build/Makefile
31030 modpost_flag=''
31031 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31032 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31034 (eval $ac_try) 2>&5
31035 ac_status=$?
31036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31037 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31042 test $ac_status = 0; }; }; then :
31043
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31045$as_echo "yes" >&6; }
31046
e10b0808 31047$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
ea04106b
AX
31048
31049
31050else
31051 $as_echo "$as_me: failed program was:" >&5
31052sed 's/^/| /' conftest.$ac_ext >&5
31053
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31055$as_echo "no" >&6; }
31056
31057
31058
31059fi
31060 rm -Rf build
31061
31062
31063
31064
e10b0808
AX
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
31066$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
31067
ea04106b
AX
31068
31069
31070cat confdefs.h - <<_ACEOF >conftest.c
31071
31072
e10b0808
AX
31073 #include <linux/backing-dev.h>
31074 struct backing_dev_info bdi;
ea04106b
AX
31075
31076int
31077main (void)
31078{
31079
e10b0808
AX
31080 char *name = "bdi";
31081 int error __attribute__((unused)) =
31082 bdi_setup_and_register(&bdi, name);
ea04106b
AX
31083
31084 ;
31085 return 0;
31086}
31087
31088_ACEOF
31089
31090
31091
31092cat - <<_ACEOF >conftest.h
31093
31094_ACEOF
31095
31096
31097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31098 echo "obj-m := conftest.o" >build/Makefile
31099 modpost_flag=''
31100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31101 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31103 (eval $ac_try) 2>&5
31104 ac_status=$?
31105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31106 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31108 (eval $ac_try) 2>&5
31109 ac_status=$?
31110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31111 test $ac_status = 0; }; }; then :
e10b0808 31112 rc=0
ea04106b
AX
31113else
31114 $as_echo "$as_me: failed program was:" >&5
31115sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 31116 rc=1
ea04106b
AX
31117
31118
31119fi
31120 rm -Rf build
31121
31122
e10b0808 31123 if test $rc -ne 0; then :
ea04106b 31124
e10b0808
AX
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31126$as_echo "no" >&6; }
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
31128$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
31129
31130
31131
31132cat confdefs.h - <<_ACEOF >conftest.c
31133
31134
e10b0808
AX
31135 #include <linux/backing-dev.h>
31136 struct backing_dev_info bdi;
ea04106b
AX
31137
31138int
31139main (void)
31140{
31141
e10b0808
AX
31142 char *name = "bdi";
31143 unsigned int cap = BDI_CAP_MAP_COPY;
31144 int error __attribute__((unused)) =
31145 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
31146
31147 ;
31148 return 0;
31149}
31150
31151_ACEOF
31152
31153
31154
31155cat - <<_ACEOF >conftest.h
31156
31157_ACEOF
31158
31159
31160 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31161 echo "obj-m := conftest.o" >build/Makefile
31162 modpost_flag=''
31163 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31164 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31166 (eval $ac_try) 2>&5
31167 ac_status=$?
31168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31169 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31171 (eval $ac_try) 2>&5
31172 ac_status=$?
31173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31174 test $ac_status = 0; }; }; then :
31175 rc=0
31176else
31177 $as_echo "$as_me: failed program was:" >&5
31178sed 's/^/| /' conftest.$ac_ext >&5
31179 rc=1
31180
31181
31182fi
31183 rm -Rf build
31184
31185
31186 if test $rc -ne 0; then :
31187
e10b0808 31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
31189$as_echo "no" >&6; }
31190
31191 else
31192 if test "x$enable_linux_builtin" != xyes; then
31193
e10b0808 31194 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
ea04106b
AX
31195 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31196 rc=$?
31197 if test $rc -ne 0; then
31198 export=0
e10b0808
AX
31199 for file in mm/backing-dev.c; do
31200 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
ea04106b
AX
31201 "$LINUX/$file" 2>/dev/null
31202 rc=$?
31203 if test $rc -eq 0; then
31204 export=1
31205 break;
31206 fi
31207 done
31208 if test $export -eq 0; then :
31209 rc=1
31210 else :
31211 rc=0
31212 fi
31213 else :
31214 rc=0
31215 fi
31216
31217 fi
31218 if test $rc -ne 0; then :
31219
e10b0808 31220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
31221$as_echo "no" >&6; }
31222
31223 else :
31224
e10b0808 31225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
31226$as_echo "yes" >&6; }
31227
e10b0808 31228$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
ea04106b
AX
31229
31230
31231 fi
31232 fi
31233
31234
e10b0808
AX
31235 else
31236 if test "x$enable_linux_builtin" != xyes; then
ea04106b 31237
e10b0808
AX
31238 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31239 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31240 rc=$?
31241 if test $rc -ne 0; then
31242 export=0
31243 for file in mm/backing-dev.c; do
31244 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31245 "$LINUX/$file" 2>/dev/null
31246 rc=$?
31247 if test $rc -eq 0; then
31248 export=1
31249 break;
31250 fi
31251 done
31252 if test $export -eq 0; then :
31253 rc=1
31254 else :
31255 rc=0
31256 fi
31257 else :
31258 rc=0
31259 fi
ea04106b 31260
e10b0808
AX
31261 fi
31262 if test $rc -ne 0; then :
ea04106b 31263
e10b0808
AX
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265$as_echo "no" >&6; }
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
31267$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
31268
31269
ea04106b 31270
e10b0808 31271cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 31272
e10b0808
AX
31273
31274 #include <linux/backing-dev.h>
31275 struct backing_dev_info bdi;
ea04106b
AX
31276
31277int
31278main (void)
31279{
31280
e10b0808
AX
31281 char *name = "bdi";
31282 unsigned int cap = BDI_CAP_MAP_COPY;
31283 int error __attribute__((unused)) =
31284 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
31285
31286 ;
31287 return 0;
31288}
31289
31290_ACEOF
31291
31292
31293
31294cat - <<_ACEOF >conftest.h
31295
31296_ACEOF
31297
31298
31299 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31300 echo "obj-m := conftest.o" >build/Makefile
31301 modpost_flag=''
31302 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31303 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31305 (eval $ac_try) 2>&5
31306 ac_status=$?
31307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31308 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31310 (eval $ac_try) 2>&5
31311 ac_status=$?
31312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31313 test $ac_status = 0; }; }; then :
e10b0808 31314 rc=0
ea04106b
AX
31315else
31316 $as_echo "$as_me: failed program was:" >&5
31317sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 31318 rc=1
ea04106b
AX
31319
31320
31321fi
31322 rm -Rf build
31323
31324
e10b0808 31325 if test $rc -ne 0; then :
ea04106b 31326
e10b0808
AX
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31328$as_echo "no" >&6; }
ea04106b 31329
e10b0808
AX
31330 else
31331 if test "x$enable_linux_builtin" != xyes; then
ea04106b 31332
e10b0808
AX
31333 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31334 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31335 rc=$?
31336 if test $rc -ne 0; then
31337 export=0
31338 for file in mm/backing-dev.c; do
31339 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31340 "$LINUX/$file" 2>/dev/null
31341 rc=$?
31342 if test $rc -eq 0; then
31343 export=1
31344 break;
31345 fi
31346 done
31347 if test $export -eq 0; then :
31348 rc=1
31349 else :
31350 rc=0
31351 fi
31352 else :
31353 rc=0
31354 fi
ea04106b 31355
e10b0808
AX
31356 fi
31357 if test $rc -ne 0; then :
ea04106b 31358
e10b0808
AX
31359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31360$as_echo "no" >&6; }
ea04106b 31361
e10b0808 31362 else :
ea04106b 31363
e10b0808 31364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
31365$as_echo "yes" >&6; }
31366
e10b0808 31367$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
ea04106b
AX
31368
31369
e10b0808
AX
31370 fi
31371 fi
ea04106b 31372
ea04106b 31373
e10b0808 31374 else :
ea04106b 31375
e10b0808
AX
31376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31377$as_echo "yes" >&6; }
ea04106b 31378
e10b0808 31379$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
ea04106b
AX
31380
31381
e10b0808
AX
31382 fi
31383 fi
ea04106b
AX
31384
31385
e10b0808
AX
31386
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
31388$as_echo_n "checking whether set_nlink() is available... " >&6; }
ea04106b
AX
31389
31390
31391cat confdefs.h - <<_ACEOF >conftest.c
31392
31393
31394 #include <linux/fs.h>
31395
31396int
31397main (void)
31398{
31399
e10b0808
AX
31400 struct inode node;
31401 unsigned int link = 0;
31402 (void) set_nlink(&node, link);
ea04106b
AX
31403
31404 ;
31405 return 0;
31406}
31407
31408_ACEOF
31409
31410
31411
31412cat - <<_ACEOF >conftest.h
31413
31414_ACEOF
31415
31416
31417 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31418 echo "obj-m := conftest.o" >build/Makefile
31419 modpost_flag=''
31420 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31421 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31423 (eval $ac_try) 2>&5
31424 ac_status=$?
31425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31426 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31428 (eval $ac_try) 2>&5
31429 ac_status=$?
31430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31431 test $ac_status = 0; }; }; then :
31432
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31434$as_echo "yes" >&6; }
31435
e10b0808 31436$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
ea04106b
AX
31437
31438
31439else
31440 $as_echo "$as_me: failed program was:" >&5
31441sed 's/^/| /' conftest.$ac_ext >&5
31442
31443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31444$as_echo "no" >&6; }
31445
31446
31447
31448fi
31449 rm -Rf build
31450
31451
31452
e10b0808
AX
31453
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
31455$as_echo_n "checking whether elevator_change() is available... " >&6; }
31456 tmp_flags="$EXTRA_KCFLAGS"
31457 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
31458
31459
31460cat confdefs.h - <<_ACEOF >conftest.c
31461
31462
e10b0808
AX
31463 #include <linux/blkdev.h>
31464 #include <linux/elevator.h>
ea04106b
AX
31465
31466int
31467main (void)
31468{
31469
e10b0808
AX
31470 int ret;
31471 struct request_queue *q = NULL;
31472 char *elevator = NULL;
31473 ret = elevator_change(q, elevator);
ea04106b
AX
31474
31475 ;
31476 return 0;
31477}
31478
31479_ACEOF
31480
31481
31482
31483cat - <<_ACEOF >conftest.h
31484
31485_ACEOF
31486
31487
31488 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31489 echo "obj-m := conftest.o" >build/Makefile
31490 modpost_flag=''
31491 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31492 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31497 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31499 (eval $ac_try) 2>&5
31500 ac_status=$?
31501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31502 test $ac_status = 0; }; }; then :
31503
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31505$as_echo "yes" >&6; }
31506
e10b0808 31507$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
ea04106b
AX
31508
31509
31510else
31511 $as_echo "$as_me: failed program was:" >&5
31512sed 's/^/| /' conftest.$ac_ext >&5
31513
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31515$as_echo "no" >&6; }
31516
31517
31518
31519fi
31520 rm -Rf build
31521
31522
e10b0808 31523 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 31524
e10b0808
AX
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
31526$as_echo_n "checking whether sget() wants 5 args... " >&6; }
ea04106b
AX
31527
31528
31529cat confdefs.h - <<_ACEOF >conftest.c
31530
31531
e10b0808 31532 #include <linux/fs.h>
ea04106b
AX
31533
31534int
31535main (void)
31536{
31537
e10b0808
AX
31538 struct file_system_type *type = NULL;
31539 int (*test)(struct super_block *,void *) = NULL;
31540 int (*set)(struct super_block *,void *) = NULL;
31541 int flags = 0;
31542 void *data = NULL;
31543 (void) sget(type, test, set, flags, data);
ea04106b
AX
31544
31545 ;
31546 return 0;
31547}
31548
31549_ACEOF
31550
31551
31552
31553cat - <<_ACEOF >conftest.h
31554
31555_ACEOF
31556
31557
31558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31559 echo "obj-m := conftest.o" >build/Makefile
31560 modpost_flag=''
31561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31569 (eval $ac_try) 2>&5
31570 ac_status=$?
31571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31572 test $ac_status = 0; }; }; then :
e10b0808
AX
31573
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31575$as_echo "yes" >&6; }
31576
31577$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
31578
31579
ea04106b
AX
31580else
31581 $as_echo "$as_me: failed program was:" >&5
31582sed 's/^/| /' conftest.$ac_ext >&5
e10b0808
AX
31583
31584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31585$as_echo "no" >&6; }
31586
ea04106b
AX
31587
31588
31589fi
31590 rm -Rf build
31591
31592
ea04106b 31593
e10b0808
AX
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
31595$as_echo_n "checking whether lseek_execute() is available... " >&6; }
ea04106b
AX
31596
31597
31598
31599cat confdefs.h - <<_ACEOF >conftest.c
31600
31601
e10b0808 31602 #include <linux/fs.h>
ea04106b
AX
31603
31604int
31605main (void)
31606{
31607
e10b0808
AX
31608 struct file *fp __attribute__ ((unused)) = NULL;
31609 struct inode *ip __attribute__ ((unused)) = NULL;
31610 loff_t offset __attribute__ ((unused)) = 0;
31611 loff_t maxsize __attribute__ ((unused)) = 0;
31612
31613 lseek_execute(fp, ip, offset, maxsize);
ea04106b
AX
31614
31615 ;
31616 return 0;
31617}
31618
31619_ACEOF
31620
31621
31622
31623cat - <<_ACEOF >conftest.h
31624
31625_ACEOF
31626
31627
31628 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31629 echo "obj-m := conftest.o" >build/Makefile
31630 modpost_flag=''
31631 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31632 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31634 (eval $ac_try) 2>&5
31635 ac_status=$?
31636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31637 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31639 (eval $ac_try) 2>&5
31640 ac_status=$?
31641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31642 test $ac_status = 0; }; }; then :
31643 rc=0
31644else
31645 $as_echo "$as_me: failed program was:" >&5
31646sed 's/^/| /' conftest.$ac_ext >&5
31647 rc=1
31648
31649
31650fi
31651 rm -Rf build
31652
31653
31654 if test $rc -ne 0; then :
31655
e10b0808 31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
31657$as_echo "no" >&6; }
31658
31659 else
31660 if test "x$enable_linux_builtin" != xyes; then
31661
e10b0808 31662 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
ea04106b
AX
31663 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31664 rc=$?
31665 if test $rc -ne 0; then
31666 export=0
e10b0808
AX
31667 for file in fs/read_write.c; do
31668 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
ea04106b
AX
31669 "$LINUX/$file" 2>/dev/null
31670 rc=$?
31671 if test $rc -eq 0; then
31672 export=1
31673 break;
31674 fi
31675 done
31676 if test $export -eq 0; then :
31677 rc=1
31678 else :
31679 rc=0
31680 fi
31681 else :
31682 rc=0
31683 fi
31684
31685 fi
31686 if test $rc -ne 0; then :
31687
e10b0808 31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ea04106b
AX
31689$as_echo "no" >&6; }
31690
31691 else :
31692
e10b0808 31693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
31694$as_echo "yes" >&6; }
31695
e10b0808 31696$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
ea04106b 31697
ea04106b 31698
ea04106b 31699 fi
ea04106b
AX
31700 fi
31701
ea04106b 31702
ea04106b 31703
87dac73d
AX
31704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
31705$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
ea04106b
AX
31706
31707
31708cat confdefs.h - <<_ACEOF >conftest.c
31709
31710
e10b0808
AX
31711 #include <linux/fs.h>
31712 int iterate(struct file *filp, struct dir_context * context)
31713 { return 0; }
31714
31715 static const struct file_operations fops
31716 __attribute__ ((unused)) = {
87dac73d 31717 .iterate_shared = iterate,
e10b0808 31718 };
ea04106b
AX
31719
31720int
31721main (void)
31722{
31723
ea04106b
AX
31724
31725 ;
31726 return 0;
31727}
31728
31729_ACEOF
31730
31731
31732
e10b0808 31733cat - <<_ACEOF >conftest.h
ea04106b 31734
e10b0808 31735_ACEOF
ea04106b
AX
31736
31737
e10b0808
AX
31738 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31739 echo "obj-m := conftest.o" >build/Makefile
31740 modpost_flag=''
31741 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31742 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31744 (eval $ac_try) 2>&5
31745 ac_status=$?
31746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31747 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31749 (eval $ac_try) 2>&5
31750 ac_status=$?
31751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31752 test $ac_status = 0; }; }; then :
ea04106b
AX
31753
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31755$as_echo "yes" >&6; }
31756
87dac73d 31757$as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
ea04106b 31758
ea04106b 31759
e10b0808
AX
31760else
31761 $as_echo "$as_me: failed program was:" >&5
31762sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 31763
e10b0808
AX
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31765$as_echo "no" >&6; }
ea04106b 31766
87dac73d
AX
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
31768$as_echo_n "checking whether fops->iterate() is available... " >&6; }
ea04106b
AX
31769
31770
31771cat confdefs.h - <<_ACEOF >conftest.c
31772
31773
e10b0808 31774 #include <linux/fs.h>
87dac73d 31775 int iterate(struct file *filp, struct dir_context * context)
e10b0808
AX
31776 { return 0; }
31777
31778 static const struct file_operations fops
31779 __attribute__ ((unused)) = {
87dac73d 31780 .iterate = iterate,
e10b0808 31781 };
ea04106b
AX
31782
31783int
31784main (void)
31785{
31786
ea04106b
AX
31787
31788 ;
31789 return 0;
31790}
31791
31792_ACEOF
31793
31794
31795
31796cat - <<_ACEOF >conftest.h
31797
31798_ACEOF
31799
31800
31801 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31802 echo "obj-m := conftest.o" >build/Makefile
31803 modpost_flag=''
31804 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31805 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31807 (eval $ac_try) 2>&5
31808 ac_status=$?
31809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31810 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31812 (eval $ac_try) 2>&5
31813 ac_status=$?
31814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31815 test $ac_status = 0; }; }; then :
31816
e10b0808 31817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
ea04106b
AX
31818$as_echo "yes" >&6; }
31819
87dac73d
AX
31820$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
31821
31822
31823else
31824 $as_echo "$as_me: failed program was:" >&5
31825sed 's/^/| /' conftest.$ac_ext >&5
31826
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31828$as_echo "no" >&6; }
31829
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
31831$as_echo_n "checking whether fops->readdir() is available... " >&6; }
31832
31833
31834cat confdefs.h - <<_ACEOF >conftest.c
31835
31836
31837 #include <linux/fs.h>
31838 int readdir(struct file *filp, void *entry, filldir_t func)
31839 { return 0; }
31840
31841 static const struct file_operations fops
31842 __attribute__ ((unused)) = {
31843 .readdir = readdir,
31844 };
31845
31846int
31847main (void)
31848{
31849
31850
31851 ;
31852 return 0;
31853}
31854
31855_ACEOF
31856
31857
31858
31859cat - <<_ACEOF >conftest.h
31860
31861_ACEOF
31862
31863
31864 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31865 echo "obj-m := conftest.o" >build/Makefile
31866 modpost_flag=''
31867 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31868 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31873 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31875 (eval $ac_try) 2>&5
31876 ac_status=$?
31877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31878 test $ac_status = 0; }; }; then :
31879
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31881$as_echo "yes" >&6; }
31882
e10b0808 31883$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
ea04106b
AX
31884
31885
31886else
31887 $as_echo "$as_me: failed program was:" >&5
31888sed 's/^/| /' conftest.$ac_ext >&5
31889
87dac73d 31890 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
ea04106b
AX
31891
31892
31893
31894fi
31895 rm -Rf build
31896
31897
31898
31899
e10b0808 31900
87dac73d
AX
31901fi
31902 rm -Rf build
31903
31904
31905
31906
e10b0808
AX
31907
31908fi
31909 rm -Rf build
31910
31911
31912
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
31914$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
ea04106b
AX
31915
31916
31917cat confdefs.h - <<_ACEOF >conftest.c
31918
31919
e10b0808
AX
31920 #include <linux/fs.h>
31921
31922 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
31923 { return 0; }
31924 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
31925 { return 0; }
31926
31927 static const struct file_operations
31928 fops __attribute__ ((unused)) = {
31929 .read_iter = test_read,
31930 .write_iter = test_write,
31931 };
ea04106b
AX
31932
31933int
31934main (void)
31935{
31936
ea04106b
AX
31937
31938 ;
31939 return 0;
31940}
31941
31942_ACEOF
31943
31944
31945
31946cat - <<_ACEOF >conftest.h
31947
31948_ACEOF
31949
31950
31951 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31952 echo "obj-m := conftest.o" >build/Makefile
31953 modpost_flag=''
31954 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31955 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31960 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31962 (eval $ac_try) 2>&5
31963 ac_status=$?
31964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31965 test $ac_status = 0; }; }; then :
31966
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31968$as_echo "yes" >&6; }
31969
e10b0808 31970$as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
ea04106b
AX
31971
31972
31973else
31974 $as_echo "$as_me: failed program was:" >&5
31975sed 's/^/| /' conftest.$ac_ext >&5
31976
31977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31978$as_echo "no" >&6; }
31979
31980
31981
31982fi
31983 rm -Rf build
31984
31985
ea04106b 31986
e10b0808
AX
31987
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
31989$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
ea04106b
AX
31990
31991
31992cat confdefs.h - <<_ACEOF >conftest.c
31993
31994
e10b0808 31995 #include <linux/pagemap.h>
ea04106b
AX
31996
31997int
31998main (void)
31999{
32000
e10b0808
AX
32001 struct page page;
32002 kmap_atomic(&page);
ea04106b
AX
32003
32004 ;
32005 return 0;
32006}
32007
32008_ACEOF
32009
32010
32011
32012cat - <<_ACEOF >conftest.h
32013
32014_ACEOF
32015
32016
32017 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32018 echo "obj-m := conftest.o" >build/Makefile
32019 modpost_flag=''
32020 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32021 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32023 (eval $ac_try) 2>&5
32024 ac_status=$?
32025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32026 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32028 (eval $ac_try) 2>&5
32029 ac_status=$?
32030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32031 test $ac_status = 0; }; }; then :
32032
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32034$as_echo "yes" >&6; }
32035
e10b0808 32036$as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
ea04106b
AX
32037
32038
32039else
32040 $as_echo "$as_me: failed program was:" >&5
32041sed 's/^/| /' conftest.$ac_ext >&5
32042
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32044$as_echo "no" >&6; }
32045
32046
32047
32048fi
32049 rm -Rf build
32050
32051
32052
ea04106b 32053
e10b0808
AX
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
32055$as_echo_n "checking whether follow_down_one() is available... " >&6; }
ea04106b
AX
32056
32057
32058cat confdefs.h - <<_ACEOF >conftest.c
32059
32060
e10b0808 32061 #include <linux/namei.h>
ea04106b
AX
32062
32063int
32064main (void)
32065{
32066
e10b0808
AX
32067 struct path *p = NULL;
32068 follow_down_one(p);
ea04106b
AX
32069
32070 ;
32071 return 0;
32072}
32073
32074_ACEOF
32075
32076
32077
32078cat - <<_ACEOF >conftest.h
32079
32080_ACEOF
32081
32082
32083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32084 echo "obj-m := conftest.o" >build/Makefile
32085 modpost_flag=''
32086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32087 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32089 (eval $ac_try) 2>&5
32090 ac_status=$?
32091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32092 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32094 (eval $ac_try) 2>&5
32095 ac_status=$?
32096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32097 test $ac_status = 0; }; }; then :
ea04106b 32098
e10b0808
AX
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32100$as_echo "yes" >&6; }
ea04106b 32101
e10b0808 32102$as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
ea04106b 32103
ea04106b 32104
e10b0808
AX
32105else
32106 $as_echo "$as_me: failed program was:" >&5
32107sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
32108
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32110$as_echo "no" >&6; }
32111
ea04106b 32112
ea04106b 32113
e10b0808
AX
32114fi
32115 rm -Rf build
ea04106b 32116
ea04106b
AX
32117
32118
32119
e10b0808
AX
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
32121$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
ea04106b
AX
32122
32123
32124cat confdefs.h - <<_ACEOF >conftest.c
32125
32126
e10b0808 32127 #include <linux/blkdev.h>
ea04106b 32128
e10b0808
AX
32129 int make_request(struct request_queue *q, struct bio *bio)
32130 {
32131 return (0);
32132 }
ea04106b
AX
32133
32134int
32135main (void)
32136{
32137
e10b0808 32138 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
32139
32140 ;
32141 return 0;
32142}
32143
32144_ACEOF
32145
32146
32147
32148cat - <<_ACEOF >conftest.h
32149
32150_ACEOF
32151
32152
32153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32154 echo "obj-m := conftest.o" >build/Makefile
32155 modpost_flag=''
32156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32157 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32159 (eval $ac_try) 2>&5
32160 ac_status=$?
32161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32162 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32164 (eval $ac_try) 2>&5
32165 ac_status=$?
32166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32167 test $ac_status = 0; }; }; then :
32168
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32170$as_echo "yes" >&6; }
32171
e10b0808
AX
32172$as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
32173
32174
32175$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
ea04106b
AX
32176
32177
32178else
32179 $as_echo "$as_me: failed program was:" >&5
32180sed 's/^/| /' conftest.$ac_ext >&5
32181
32182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32183$as_echo "no" >&6; }
e10b0808
AX
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
32185$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
ea04106b
AX
32186
32187
32188cat confdefs.h - <<_ACEOF >conftest.c
32189
32190
e10b0808 32191 #include <linux/blkdev.h>
ea04106b 32192
e10b0808
AX
32193 void make_request(struct request_queue *q, struct bio *bio)
32194 {
32195 return;
32196 }
ea04106b
AX
32197
32198int
32199main (void)
32200{
32201
e10b0808 32202 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
32203
32204 ;
32205 return 0;
32206}
32207
32208_ACEOF
32209
32210
32211
32212cat - <<_ACEOF >conftest.h
32213
32214_ACEOF
32215
32216
32217 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32218 echo "obj-m := conftest.o" >build/Makefile
32219 modpost_flag=''
32220 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32221 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32223 (eval $ac_try) 2>&5
32224 ac_status=$?
32225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32226 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32228 (eval $ac_try) 2>&5
32229 ac_status=$?
32230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32231 test $ac_status = 0; }; }; then :
32232
32233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32234$as_echo "yes" >&6; }
32235
e10b0808 32236$as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
ea04106b
AX
32237
32238
32239else
32240 $as_echo "$as_me: failed program was:" >&5
32241sed 's/^/| /' conftest.$ac_ext >&5
32242
94a40997
AX
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32244$as_echo "no" >&6; }
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
32246$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
32247
32248
32249cat confdefs.h - <<_ACEOF >conftest.c
32250
32251
32252 #include <linux/blkdev.h>
32253
32254 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
32255 {
32256 return (BLK_QC_T_NONE);
32257 }
32258
32259int
32260main (void)
32261{
32262
32263 blk_queue_make_request(NULL, &make_request);
32264
32265 ;
32266 return 0;
32267}
32268
32269_ACEOF
32270
32271
32272
32273cat - <<_ACEOF >conftest.h
32274
32275_ACEOF
32276
32277
32278 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32279 echo "obj-m := conftest.o" >build/Makefile
32280 modpost_flag=''
32281 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32282 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32287 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32289 (eval $ac_try) 2>&5
32290 ac_status=$?
32291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32292 test $ac_status = 0; }; }; then :
32293
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295$as_echo "yes" >&6; }
32296
32297$as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
32298
32299
32300$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
32301
32302
32303else
32304 $as_echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
32307 as_fn_error $? "no - Please file a bug report at
32308 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
32309
32310
32311
32312fi
32313 rm -Rf build
32314
32315
ea04106b
AX
32316
32317
32318
32319fi
32320 rm -Rf build
32321
32322
32323
32324
32325
ea04106b
AX
32326fi
32327 rm -Rf build
32328
32329
32330
ea04106b 32331
e10b0808
AX
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
32333$as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
ea04106b 32334
ea04106b
AX
32335
32336
e10b0808 32337cat confdefs.h - <<_ACEOF >conftest.c
ea04106b 32338
ea04106b 32339
e10b0808
AX
32340 #include <linux/bio.h>
32341
32342 void (*generic_start_io_acct_f)(int, unsigned long,
32343 struct hd_struct *) = &generic_start_io_acct;
32344 void (*generic_end_io_acct_f)(int, struct hd_struct *,
32345 unsigned long) = &generic_end_io_acct;
ea04106b
AX
32346
32347int
32348main (void)
32349{
32350
e10b0808
AX
32351 generic_start_io_acct(0, 0, NULL);
32352 generic_end_io_acct(0, NULL, 0);
ea04106b
AX
32353
32354 ;
32355 return 0;
32356}
32357
32358_ACEOF
32359
32360
32361
32362cat - <<_ACEOF >conftest.h
32363
32364_ACEOF
32365
32366
32367 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32368 echo "obj-m := conftest.o" >build/Makefile
32369 modpost_flag=''
32370 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32371 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32373 (eval $ac_try) 2>&5
32374 ac_status=$?
32375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32376 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32381 test $ac_status = 0; }; }; then :
e10b0808
AX
32382 rc=0
32383else
32384 $as_echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386 rc=1
ea04106b 32387
ea04106b 32388
e10b0808
AX
32389fi
32390 rm -Rf build
ea04106b
AX
32391
32392
e10b0808
AX
32393 if test $rc -ne 0; then :
32394
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32396$as_echo "no" >&6; }
32397
32398 else
32399 if test "x$enable_linux_builtin" != xyes; then
32400
32401 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
32402 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32403 rc=$?
32404 if test $rc -ne 0; then
32405 export=0
32406 for file in block/bio.c; do
32407 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
32408 "$LINUX/$file" 2>/dev/null
32409 rc=$?
32410 if test $rc -eq 0; then
32411 export=1
32412 break;
32413 fi
32414 done
32415 if test $export -eq 0; then :
32416 rc=1
32417 else :
32418 rc=0
32419 fi
32420 else :
32421 rc=0
32422 fi
32423
32424 fi
32425 if test $rc -ne 0; then :
ea04106b
AX
32426
32427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32428$as_echo "no" >&6; }
32429
e10b0808 32430 else :
ea04106b 32431
e10b0808
AX
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32433$as_echo "yes" >&6; }
32434
32435$as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
ea04106b 32436
ea04106b 32437
e10b0808
AX
32438 fi
32439 fi
ea04106b
AX
32440
32441
32442
32443 if test "$LINUX_OBJ" != "$LINUX"; then :
32444
32445 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
32446
32447fi
32448
32449
32450
32451 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
e10b0808 32452 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
ea04106b
AX
32453 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
32454 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
32455
32456
32457
32458
32459
32460
32461# Check whether --with-mounthelperdir was given.
32462if test "${with_mounthelperdir+set}" = set; then :
32463 withval=$with_mounthelperdir; mounthelperdir=$withval
32464else
e10b0808 32465 mounthelperdir=/sbin
ea04106b
AX
32466fi
32467
32468
32469
32470
32471
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
32473$as_echo_n "checking for udev directories... " >&6; }
32474
32475# Check whether --with-udevdir was given.
32476if test "${with_udevdir+set}" = set; then :
32477 withval=$with_udevdir; udevdir=$withval
32478else
32479 udevdir=check
32480fi
32481
32482
32483 if test "x$udevdir" = xcheck; then :
32484
32485 path1=/lib/udev
32486 path2=/usr/lib/udev
32487 default=$path2
32488
32489 if test -d "$path1"; then :
32490 udevdir="$path1"
32491else
32492
32493 if test -d "$path2"; then :
32494 udevdir="$path2"
32495else
32496 udevdir="$default"
32497fi
32498
32499fi
32500
32501fi
32502
32503
32504# Check whether --with-udevruledir was given.
32505if test "${with_udevruledir+set}" = set; then :
32506 withval=$with_udevruledir; udevruledir=$withval
32507else
32508 udevruledir="${udevdir}/rules.d"
32509fi
32510
32511
32512
32513
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
32515$as_echo "$udevdir;$udevruledir" >&6; }
32516
32517
32518 # Check whether --enable-systemd was given.
32519if test "${enable_systemd+set}" = set; then :
32520 enableval=$enable_systemd;
32521else
32522 enable_systemd=yes
32523fi
32524
32525
32526
32527# Check whether --with-systemdunitdir was given.
32528if test "${with_systemdunitdir+set}" = set; then :
32529 withval=$with_systemdunitdir; systemdunitdir=$withval
32530else
32531 systemdunitdir=/usr/lib/systemd/system
32532fi
32533
32534
32535
32536# Check whether --with-systemdpresetdir was given.
32537if test "${with_systemdpresetdir+set}" = set; then :
32538 withval=$with_systemdpresetdir; systemdpresetdir=$withval
32539else
32540 systemdpresetdir=/usr/lib/systemd/system-preset
32541fi
32542
32543
32544
32545# Check whether --with-systemdmodulesloaddir was given.
32546if test "${with_systemdmodulesloaddir+set}" = set; then :
32547 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
32548else
32549 systemdmodulesloaddir=/usr/lib/modules-load.d
32550fi
32551
32552
32553
32554 if test "x$enable_systemd" = xyes; then :
32555
32556 ZFS_INIT_SYSTEMD=systemd
32557 ZFS_MODULE_LOAD=modules-load.d
32558 modulesloaddir=$systemdmodulesloaddir
32559
32560fi
32561
32562
32563
32564
32565
32566
32567
32568
32569 # Check whether --enable-sysvinit was given.
32570if test "${enable_sysvinit+set}" = set; then :
32571 enableval=$enable_sysvinit;
32572else
32573 enable_sysvinit=yes
32574fi
32575
32576
32577 if test "x$enable_sysvinit" = xyes; then :
32578 ZFS_INIT_SYSV=init.d
32579fi
32580
32581
32582
32583
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
32585$as_echo_n "checking for dracut directory... " >&6; }
32586
32587# Check whether --with-dracutdir was given.
32588if test "${with_dracutdir+set}" = set; then :
32589 withval=$with_dracutdir; dracutdir=$withval
32590else
32591 dracutdir=check
32592fi
32593
32594
32595 if test "x$dracutdir" = xcheck; then :
32596
32597 path1=/usr/share/dracut
32598 path2=/usr/lib/dracut
32599 default=$path2
32600
32601 if test -d "$path1"; then :
32602 dracutdir="$path1"
32603else
32604
32605 if test -d "$path2"; then :
32606 dracutdir="$path2"
32607else
32608 dracutdir="$default"
32609fi
32610
32611fi
32612
32613fi
32614
32615
32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
32617$as_echo "$dracutdir" >&6; }
32618
32619
32620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
32621$as_echo_n "checking for target asm dir... " >&6; }
32622 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
32623
32624 case $TARGET_ARCH in
32625 i386|x86_64)
32626 TARGET_ASM_DIR=asm-${TARGET_ARCH}
32627 ;;
32628 *)
32629 TARGET_ASM_DIR=asm-generic
32630 ;;
32631 esac
32632
32633
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
32635$as_echo "$TARGET_ASM_DIR" >&6; }
32636
32637
32638 ZLIB=
32639
32640 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
32641if test "x$ac_cv_header_zlib_h" = xyes; then :
32642
32643else
32644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32646as_fn_error $? "
32647 *** zlib.h missing, zlib-devel package required
32648See \`config.log' for more details" "$LINENO" 5; }
32649fi
32650
32651
32652
32653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
32654$as_echo_n "checking for compress2 in -lz... " >&6; }
32655if ${ac_cv_lib_z_compress2+:} false; then :
32656 $as_echo_n "(cached) " >&6
32657else
32658 ac_check_lib_save_LIBS=$LIBS
32659LIBS="-lz $LIBS"
32660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32661/* end confdefs.h. */
32662
32663/* Override any GCC internal prototype to avoid an error.
32664 Use char because int might match the return type of a GCC
32665 builtin and then its argument prototype would still apply. */
32666#ifdef __cplusplus
32667extern "C"
32668#endif
32669char compress2 ();
32670int
32671main ()
32672{
32673return compress2 ();
32674 ;
32675 return 0;
32676}
32677_ACEOF
32678if ac_fn_c_try_link "$LINENO"; then :
32679 ac_cv_lib_z_compress2=yes
32680else
32681 ac_cv_lib_z_compress2=no
32682fi
32683rm -f core conftest.err conftest.$ac_objext \
32684 conftest$ac_exeext conftest.$ac_ext
32685LIBS=$ac_check_lib_save_LIBS
32686fi
32687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
32688$as_echo "$ac_cv_lib_z_compress2" >&6; }
32689if test "x$ac_cv_lib_z_compress2" = xyes; then :
32690 cat >>confdefs.h <<_ACEOF
32691#define HAVE_LIBZ 1
32692_ACEOF
32693
32694 LIBS="-lz $LIBS"
32695
32696else
32697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32699as_fn_error $? "
32700 *** compress2() missing, zlib-devel package required
32701See \`config.log' for more details" "$LINENO" 5; }
32702fi
32703
32704
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
32706$as_echo_n "checking for uncompress in -lz... " >&6; }
32707if ${ac_cv_lib_z_uncompress+:} false; then :
32708 $as_echo_n "(cached) " >&6
32709else
32710 ac_check_lib_save_LIBS=$LIBS
32711LIBS="-lz $LIBS"
32712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32713/* end confdefs.h. */
32714
32715/* Override any GCC internal prototype to avoid an error.
32716 Use char because int might match the return type of a GCC
32717 builtin and then its argument prototype would still apply. */
32718#ifdef __cplusplus
32719extern "C"
32720#endif
32721char uncompress ();
32722int
32723main ()
32724{
32725return uncompress ();
32726 ;
32727 return 0;
32728}
32729_ACEOF
32730if ac_fn_c_try_link "$LINENO"; then :
32731 ac_cv_lib_z_uncompress=yes
32732else
32733 ac_cv_lib_z_uncompress=no
32734fi
32735rm -f core conftest.err conftest.$ac_objext \
32736 conftest$ac_exeext conftest.$ac_ext
32737LIBS=$ac_check_lib_save_LIBS
32738fi
32739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
32740$as_echo "$ac_cv_lib_z_uncompress" >&6; }
32741if test "x$ac_cv_lib_z_uncompress" = xyes; then :
32742 cat >>confdefs.h <<_ACEOF
32743#define HAVE_LIBZ 1
32744_ACEOF
32745
32746 LIBS="-lz $LIBS"
32747
32748else
32749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32751as_fn_error $? "
32752 *** uncompress() missing, zlib-devel package required
32753See \`config.log' for more details" "$LINENO" 5; }
32754fi
32755
32756
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
32758$as_echo_n "checking for crc32 in -lz... " >&6; }
32759if ${ac_cv_lib_z_crc32+:} false; then :
32760 $as_echo_n "(cached) " >&6
32761else
32762 ac_check_lib_save_LIBS=$LIBS
32763LIBS="-lz $LIBS"
32764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32765/* end confdefs.h. */
32766
32767/* Override any GCC internal prototype to avoid an error.
32768 Use char because int might match the return type of a GCC
32769 builtin and then its argument prototype would still apply. */
32770#ifdef __cplusplus
32771extern "C"
32772#endif
32773char crc32 ();
32774int
32775main ()
32776{
32777return crc32 ();
32778 ;
32779 return 0;
32780}
32781_ACEOF
32782if ac_fn_c_try_link "$LINENO"; then :
32783 ac_cv_lib_z_crc32=yes
32784else
32785 ac_cv_lib_z_crc32=no
32786fi
32787rm -f core conftest.err conftest.$ac_objext \
32788 conftest$ac_exeext conftest.$ac_ext
32789LIBS=$ac_check_lib_save_LIBS
32790fi
32791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
32792$as_echo "$ac_cv_lib_z_crc32" >&6; }
32793if test "x$ac_cv_lib_z_crc32" = xyes; then :
32794 cat >>confdefs.h <<_ACEOF
32795#define HAVE_LIBZ 1
32796_ACEOF
32797
32798 LIBS="-lz $LIBS"
32799
32800else
32801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32803as_fn_error $? "
32804 *** crc32() missing, zlib-devel package required
32805See \`config.log' for more details" "$LINENO" 5; }
32806fi
32807
32808
32809 ZLIB="-lz"
32810
32811
32812$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
32813
32814
32815
32816 LIBUUID=
32817
32818 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
32819if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
32820
32821else
32822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32824as_fn_error $? "
32825 *** uuid/uuid.h missing, libuuid-devel package required
32826See \`config.log' for more details" "$LINENO" 5; }
32827fi
32828
32829
32830
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
32832$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
32833if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
32834 $as_echo_n "(cached) " >&6
32835else
32836 ac_check_lib_save_LIBS=$LIBS
32837LIBS="-luuid $LIBS"
32838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32839/* end confdefs.h. */
32840
32841/* Override any GCC internal prototype to avoid an error.
32842 Use char because int might match the return type of a GCC
32843 builtin and then its argument prototype would still apply. */
32844#ifdef __cplusplus
32845extern "C"
32846#endif
32847char uuid_generate ();
32848int
32849main ()
32850{
32851return uuid_generate ();
32852 ;
32853 return 0;
32854}
32855_ACEOF
32856if ac_fn_c_try_link "$LINENO"; then :
32857 ac_cv_lib_uuid_uuid_generate=yes
32858else
32859 ac_cv_lib_uuid_uuid_generate=no
32860fi
32861rm -f core conftest.err conftest.$ac_objext \
32862 conftest$ac_exeext conftest.$ac_ext
32863LIBS=$ac_check_lib_save_LIBS
32864fi
32865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
32866$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
32867if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
32868 cat >>confdefs.h <<_ACEOF
32869#define HAVE_LIBUUID 1
32870_ACEOF
32871
32872 LIBS="-luuid $LIBS"
32873
32874else
32875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32877as_fn_error $? "
32878 *** uuid_generate() missing, libuuid-devel package required
32879See \`config.log' for more details" "$LINENO" 5; }
32880fi
32881
32882
32883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
32884$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
32885if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
32886 $as_echo_n "(cached) " >&6
32887else
32888 ac_check_lib_save_LIBS=$LIBS
32889LIBS="-luuid $LIBS"
32890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32891/* end confdefs.h. */
32892
32893/* Override any GCC internal prototype to avoid an error.
32894 Use char because int might match the return type of a GCC
32895 builtin and then its argument prototype would still apply. */
32896#ifdef __cplusplus
32897extern "C"
32898#endif
32899char uuid_is_null ();
32900int
32901main ()
32902{
32903return uuid_is_null ();
32904 ;
32905 return 0;
32906}
32907_ACEOF
32908if ac_fn_c_try_link "$LINENO"; then :
32909 ac_cv_lib_uuid_uuid_is_null=yes
32910else
32911 ac_cv_lib_uuid_uuid_is_null=no
32912fi
32913rm -f core conftest.err conftest.$ac_objext \
32914 conftest$ac_exeext conftest.$ac_ext
32915LIBS=$ac_check_lib_save_LIBS
32916fi
32917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
32918$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
32919if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
32920 cat >>confdefs.h <<_ACEOF
32921#define HAVE_LIBUUID 1
32922_ACEOF
32923
32924 LIBS="-luuid $LIBS"
32925
32926else
32927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32929as_fn_error $? "
32930 *** uuid_is_null() missing, libuuid-devel package required
32931See \`config.log' for more details" "$LINENO" 5; }
32932fi
32933
32934
32935 LIBUUID="-luuid"
32936
32937
32938$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
32939
32940
32941
32942
32943# Check whether --with-blkid was given.
32944if test "${with_blkid+set}" = set; then :
32945 withval=$with_blkid;
32946else
32947 with_blkid=check
32948fi
32949
32950
32951 LIBBLKID=
32952 if test "x$with_blkid" = xyes; then :
32953
32954 LIBBLKID="-lblkid"
32955
32956
32957$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
32958
32959
32960fi
32961
32962 if test "x$with_blkid" = xcheck; then :
32963
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
32965$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
32966if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
32967 $as_echo_n "(cached) " >&6
32968else
32969 ac_check_lib_save_LIBS=$LIBS
32970LIBS="-lblkid $LIBS"
32971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32972/* end confdefs.h. */
32973
32974/* Override any GCC internal prototype to avoid an error.
32975 Use char because int might match the return type of a GCC
32976 builtin and then its argument prototype would still apply. */
32977#ifdef __cplusplus
32978extern "C"
32979#endif
32980char blkid_get_cache ();
32981int
32982main ()
32983{
32984return blkid_get_cache ();
32985 ;
32986 return 0;
32987}
32988_ACEOF
32989if ac_fn_c_try_link "$LINENO"; then :
32990 ac_cv_lib_blkid_blkid_get_cache=yes
32991else
32992 ac_cv_lib_blkid_blkid_get_cache=no
32993fi
32994rm -f core conftest.err conftest.$ac_objext \
32995 conftest$ac_exeext conftest.$ac_ext
32996LIBS=$ac_check_lib_save_LIBS
32997fi
32998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
32999$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
33000if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
33001
33002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
33003$as_echo_n "checking for blkid zfs support... " >&6; }
33004
33005 ZFS_DEV=`mktemp`
33006 truncate -s 64M $ZFS_DEV
33007 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
33008 dd of=$ZFS_DEV bs=1k count=8 \
33009 seek=128 conv=notrunc &>/dev/null \
33010 >/dev/null 2>/dev/null
33011 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
33012 dd of=$ZFS_DEV bs=1k count=8 \
33013 seek=132 conv=notrunc &>/dev/null \
33014 >/dev/null 2>/dev/null
33015 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
33016 dd of=$ZFS_DEV bs=1k count=8 \
33017 seek=136 conv=notrunc &>/dev/null \
33018 >/dev/null 2>/dev/null
33019 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
33020 dd of=$ZFS_DEV bs=1k count=8 \
33021 seek=140 conv=notrunc &>/dev/null \
33022 >/dev/null 2>/dev/null
33023
33024 saved_LIBS="$LIBS"
33025 LIBS="-lblkid"
33026
33027 if test "$cross_compiling" = yes; then :
33028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33030as_fn_error $? "cannot run test program while cross compiling
33031See \`config.log' for more details" "$LINENO" 5; }
33032else
33033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33034/* end confdefs.h. */
33035
33036 #include <stdio.h>
33037 #include <stdlib.h>
33038 #include <blkid/blkid.h>
33039
33040int
33041main ()
33042{
33043
33044 blkid_cache cache;
33045 char *value;
33046
33047 if (blkid_get_cache(&cache, NULL) < 0)
33048 return 1;
33049
33050 value = blkid_get_tag_value(cache, "TYPE",
33051 "$ZFS_DEV");
33052 if (!value) {
33053 blkid_put_cache(cache);
33054 return 2;
33055 }
33056
33057 if (strcmp(value, "zfs_member")) {
33058 free(value);
33059 blkid_put_cache(cache);
33060 return 0;
33061 }
33062
33063 free(value);
33064 blkid_put_cache(cache);
33065
33066 ;
33067 return 0;
33068}
33069_ACEOF
33070if ac_fn_c_try_run "$LINENO"; then :
33071
33072 rm -f $ZFS_DEV
33073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33074$as_echo "yes" >&6; }
33075 LIBBLKID="-lblkid"
33076
33077
33078$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
33079
33080
33081else
33082
33083 rm -f $ZFS_DEV
33084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33085$as_echo "no" >&6; }
33086 if test "x$with_blkid" != xcheck; then :
33087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33089as_fn_error $? "--with-blkid given but unavailable
33090See \`config.log' for more details" "$LINENO" 5; }
33091fi
33092
33093fi
33094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33095 conftest.$ac_objext conftest.beam conftest.$ac_ext
33096fi
33097
33098
33099 LIBS="$saved_LIBS"
33100
33101else
33102
33103 if test "x$with_blkid" != xcheck; then :
33104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33106as_fn_error $? "--with-blkid given but unavailable
33107See \`config.log' for more details" "$LINENO" 5; }
33108fi
33109
33110
33111fi
33112
33113
33114fi
33115
33116
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
33118$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
33119
33120 saved_flags="$CFLAGS"
33121 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
33122
33123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33124/* end confdefs.h. */
33125
33126int
33127main ()
33128{
33129
33130 ;
33131 return 0;
33132}
33133_ACEOF
33134if ac_fn_c_try_compile "$LINENO"; then :
33135
33136 FRAME_LARGER_THAN=-Wframe-larger-than=1024
33137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33138$as_echo "yes" >&6; }
33139
33140else
33141
33142 FRAME_LARGER_THAN=
33143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33144$as_echo "no" >&6; }
33145
33146fi
33147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33148
33149 CFLAGS="$saved_flags"
33150
33151
33152
33153 if test "x$runstatedir" = x; then
33154 runstatedir='${localstatedir}/run'
33155
33156 fi
33157
33158 for ac_func in mlockall
33159do :
33160 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
33161if test "x$ac_cv_func_mlockall" = xyes; then :
33162 cat >>confdefs.h <<_ACEOF
33163#define HAVE_MLOCKALL 1
33164_ACEOF
33165
33166fi
33167done
33168
33169 ;;
33170 srpm) ;;
33171 *)
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
33173$as_echo "Error!" >&6; }
33174 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
33175 user kernel|user|all|srpm" "$LINENO" 5 ;;
33176 esac
33177
33178 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
33179 CONFIG_USER_TRUE=
33180 CONFIG_USER_FALSE='#'
33181else
33182 CONFIG_USER_TRUE='#'
33183 CONFIG_USER_FALSE=
33184fi
33185
33186 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
33187 test "x$enable_linux_builtin" != xyes ; then
33188 CONFIG_KERNEL_TRUE=
33189 CONFIG_KERNEL_FALSE='#'
33190else
33191 CONFIG_KERNEL_TRUE='#'
33192 CONFIG_KERNEL_FALSE=
33193fi
33194
33195
33196
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
33198$as_echo_n "checking whether debugging is enabled... " >&6; }
33199 # Check whether --enable-debug was given.
33200if test "${enable_debug+set}" = set; then :
33201 enableval=$enable_debug;
33202else
33203 enable_debug=no
33204fi
33205
33206
33207 if test "x$enable_debug" = xyes; then :
33208
33209 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
33210 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
33211 DEBUG_CFLAGS="-DDEBUG -Werror"
33212 DEBUG_STACKFLAGS="-fstack-check"
33213 DEBUG_ZFS="_with_debug"
33214
33215$as_echo "#define ZFS_DEBUG 1" >>confdefs.h
33216
33217
33218else
33219
33220 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
33221 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
33222 DEBUG_CFLAGS="-DNDEBUG"
33223 DEBUG_STACKFLAGS=""
33224 DEBUG_ZFS="_without_debug"
33225
33226fi
33227
33228
33229
33230
33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
33232$as_echo "$enable_debug" >&6; }
33233
33234
33235 # Check whether --enable-debug-dmu-tx was given.
33236if test "${enable_debug_dmu_tx+set}" = set; then :
33237 enableval=$enable_debug_dmu_tx;
33238else
33239 enable_debug_dmu_tx=no
33240fi
33241
33242
33243 if test "x$enable_debug_dmu_tx" = xyes; then :
33244
33245 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
33246 DEBUG_DMU_TX="_with_debug_dmu_tx"
33247
33248$as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
33249
33250
33251else
33252
33253 DEBUG_DMU_TX="_without_debug_dmu_tx"
33254
33255fi
33256
33257
33258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
33259$as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
33260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
33261$as_echo "$enable_debug_dmu_tx" >&6; }
33262
33263
e10b0808 33264ac_config_files="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
ea04106b
AX
33265
33266
33267cat >confcache <<\_ACEOF
33268# This file is a shell script that caches the results of configure
33269# tests run on this system so they can be shared between configure
33270# scripts and configure runs, see configure's option --config-cache.
33271# It is not useful on other systems. If it contains results you don't
33272# want to keep, you may remove or edit it.
33273#
33274# config.status only pays attention to the cache file if you give it
33275# the --recheck option to rerun configure.
33276#
33277# `ac_cv_env_foo' variables (set or unset) will be overridden when
33278# loading this file, other *unset* `ac_cv_foo' will be assigned the
33279# following values.
33280
33281_ACEOF
33282
33283# The following way of writing the cache mishandles newlines in values,
33284# but we know of no workaround that is simple, portable, and efficient.
33285# So, we kill variables containing newlines.
33286# Ultrix sh set writes to stderr and can't be redirected directly,
33287# and sets the high bit in the cache file unless we assign to the vars.
33288(
33289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33290 eval ac_val=\$$ac_var
33291 case $ac_val in #(
33292 *${as_nl}*)
33293 case $ac_var in #(
33294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33296 esac
33297 case $ac_var in #(
33298 _ | IFS | as_nl) ;; #(
33299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33300 *) { eval $ac_var=; unset $ac_var;} ;;
33301 esac ;;
33302 esac
33303 done
33304
33305 (set) 2>&1 |
33306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33307 *${as_nl}ac_space=\ *)
33308 # `set' does not quote correctly, so add quotes: double-quote
33309 # substitution turns \\\\ into \\, and sed turns \\ into \.
33310 sed -n \
33311 "s/'/'\\\\''/g;
33312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33313 ;; #(
33314 *)
33315 # `set' quotes correctly as required by POSIX, so do not add quotes.
33316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33317 ;;
33318 esac |
33319 sort
33320) |
33321 sed '
33322 /^ac_cv_env_/b end
33323 t clear
33324 :clear
33325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33326 t end
33327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33328 :end' >>confcache
33329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33330 if test -w "$cache_file"; then
33331 if test "x$cache_file" != "x/dev/null"; then
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33333$as_echo "$as_me: updating cache $cache_file" >&6;}
33334 if test ! -f "$cache_file" || test -h "$cache_file"; then
33335 cat confcache >"$cache_file"
33336 else
33337 case $cache_file in #(
33338 */* | ?:*)
33339 mv -f confcache "$cache_file"$$ &&
33340 mv -f "$cache_file"$$ "$cache_file" ;; #(
33341 *)
33342 mv -f confcache "$cache_file" ;;
33343 esac
33344 fi
33345 fi
33346 else
33347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33348$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33349 fi
33350fi
33351rm -f confcache
33352
33353test "x$prefix" = xNONE && prefix=$ac_default_prefix
33354# Let make expand exec_prefix.
33355test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33356
33357DEFS=-DHAVE_CONFIG_H
33358
33359ac_libobjs=
33360ac_ltlibobjs=
33361U=
33362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33363 # 1. Remove the extension, and $U if already installed.
33364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33367 # will be set to the directory where LIBOBJS objects are built.
33368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33370done
33371LIBOBJS=$ac_libobjs
33372
33373LTLIBOBJS=$ac_ltlibobjs
33374
33375
33376if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33377 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33378Usually this means the macro was only invoked conditionally." "$LINENO" 5
33379fi
33380 if test -n "$EXEEXT"; then
33381 am__EXEEXT_TRUE=
33382 am__EXEEXT_FALSE='#'
33383else
33384 am__EXEEXT_TRUE='#'
33385 am__EXEEXT_FALSE=
33386fi
33387
33388if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33389 as_fn_error $? "conditional \"AMDEP\" was never defined.
33390Usually this means the macro was only invoked conditionally." "$LINENO" 5
33391fi
33392if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33393 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33394Usually this means the macro was only invoked conditionally." "$LINENO" 5
33395fi
33396if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
33397 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
33398Usually this means the macro was only invoked conditionally." "$LINENO" 5
33399fi
33400if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
33401 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
33402Usually this means the macro was only invoked conditionally." "$LINENO" 5
33403fi
33404if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
33405 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
33406Usually this means the macro was only invoked conditionally." "$LINENO" 5
33407fi
33408
33409: "${CONFIG_STATUS=./config.status}"
33410ac_write_fail=0
33411ac_clean_files_save=$ac_clean_files
33412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33415as_write_fail=0
33416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33417#! $SHELL
33418# Generated by $as_me.
33419# Run this file to recreate the current configuration.
33420# Compiler output produced by configure, useful for debugging
33421# configure, is in config.log if it exists.
33422
33423debug=false
33424ac_cs_recheck=false
33425ac_cs_silent=false
33426
33427SHELL=\${CONFIG_SHELL-$SHELL}
33428export SHELL
33429_ASEOF
33430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33431## -------------------- ##
33432## M4sh Initialization. ##
33433## -------------------- ##
33434
33435# Be more Bourne compatible
33436DUALCASE=1; export DUALCASE # for MKS sh
33437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33438 emulate sh
33439 NULLCMD=:
33440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33441 # is contrary to our usage. Disable this feature.
33442 alias -g '${1+"$@"}'='"$@"'
33443 setopt NO_GLOB_SUBST
33444else
33445 case `(set -o) 2>/dev/null` in #(
33446 *posix*) :
33447 set -o posix ;; #(
33448 *) :
33449 ;;
33450esac
33451fi
33452
33453
33454as_nl='
33455'
33456export as_nl
33457# Printing a long string crashes Solaris 7 /usr/bin/printf.
33458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33461# Prefer a ksh shell builtin over an external printf program on Solaris,
33462# but without wasting forks for bash or zsh.
33463if test -z "$BASH_VERSION$ZSH_VERSION" \
33464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33465 as_echo='print -r --'
33466 as_echo_n='print -rn --'
33467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33468 as_echo='printf %s\n'
33469 as_echo_n='printf %s'
33470else
33471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33473 as_echo_n='/usr/ucb/echo -n'
33474 else
33475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33476 as_echo_n_body='eval
33477 arg=$1;
33478 case $arg in #(
33479 *"$as_nl"*)
33480 expr "X$arg" : "X\\(.*\\)$as_nl";
33481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33482 esac;
33483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33484 '
33485 export as_echo_n_body
33486 as_echo_n='sh -c $as_echo_n_body as_echo'
33487 fi
33488 export as_echo_body
33489 as_echo='sh -c $as_echo_body as_echo'
33490fi
33491
33492# The user is always right.
33493if test "${PATH_SEPARATOR+set}" != set; then
33494 PATH_SEPARATOR=:
33495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33497 PATH_SEPARATOR=';'
33498 }
33499fi
33500
33501
33502# IFS
33503# We need space, tab and new line, in precisely that order. Quoting is
33504# there to prevent editors from complaining about space-tab.
33505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33506# splitting by setting IFS to empty value.)
33507IFS=" "" $as_nl"
33508
33509# Find who we are. Look in the path if we contain no directory separator.
33510as_myself=
33511case $0 in #((
33512 *[\\/]* ) as_myself=$0 ;;
33513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33514for as_dir in $PATH
33515do
33516 IFS=$as_save_IFS
33517 test -z "$as_dir" && as_dir=.
33518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33519 done
33520IFS=$as_save_IFS
33521
33522 ;;
33523esac
33524# We did not find ourselves, most probably we were run as `sh COMMAND'
33525# in which case we are not to be found in the path.
33526if test "x$as_myself" = x; then
33527 as_myself=$0
33528fi
33529if test ! -f "$as_myself"; then
33530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33531 exit 1
33532fi
33533
33534# Unset variables that we do not need and which cause bugs (e.g. in
33535# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33536# suppresses any "Segmentation fault" message there. '((' could
33537# trigger a bug in pdksh 5.2.14.
33538for as_var in BASH_ENV ENV MAIL MAILPATH
33539do eval test x\${$as_var+set} = xset \
33540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33541done
33542PS1='$ '
33543PS2='> '
33544PS4='+ '
33545
33546# NLS nuisances.
33547LC_ALL=C
33548export LC_ALL
33549LANGUAGE=C
33550export LANGUAGE
33551
33552# CDPATH.
33553(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33554
33555
33556# as_fn_error STATUS ERROR [LINENO LOG_FD]
33557# ----------------------------------------
33558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33560# script with STATUS, using 1 if that was 0.
33561as_fn_error ()
33562{
33563 as_status=$1; test $as_status -eq 0 && as_status=1
33564 if test "$4"; then
33565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33567 fi
33568 $as_echo "$as_me: error: $2" >&2
33569 as_fn_exit $as_status
33570} # as_fn_error
33571
33572
33573# as_fn_set_status STATUS
33574# -----------------------
33575# Set $? to STATUS, without forking.
33576as_fn_set_status ()
33577{
33578 return $1
33579} # as_fn_set_status
33580
33581# as_fn_exit STATUS
33582# -----------------
33583# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33584as_fn_exit ()
33585{
33586 set +e
33587 as_fn_set_status $1
33588 exit $1
33589} # as_fn_exit
33590
33591# as_fn_unset VAR
33592# ---------------
33593# Portably unset VAR.
33594as_fn_unset ()
33595{
33596 { eval $1=; unset $1;}
33597}
33598as_unset=as_fn_unset
33599# as_fn_append VAR VALUE
33600# ----------------------
33601# Append the text in VALUE to the end of the definition contained in VAR. Take
33602# advantage of any shell optimizations that allow amortized linear growth over
33603# repeated appends, instead of the typical quadratic growth present in naive
33604# implementations.
33605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33606 eval 'as_fn_append ()
33607 {
33608 eval $1+=\$2
33609 }'
33610else
33611 as_fn_append ()
33612 {
33613 eval $1=\$$1\$2
33614 }
33615fi # as_fn_append
33616
33617# as_fn_arith ARG...
33618# ------------------
33619# Perform arithmetic evaluation on the ARGs, and store the result in the
33620# global $as_val. Take advantage of shells that can avoid forks. The arguments
33621# must be portable across $(()) and expr.
33622if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33623 eval 'as_fn_arith ()
33624 {
33625 as_val=$(( $* ))
33626 }'
33627else
33628 as_fn_arith ()
33629 {
33630 as_val=`expr "$@" || test $? -eq 1`
33631 }
33632fi # as_fn_arith
33633
33634
33635if expr a : '\(a\)' >/dev/null 2>&1 &&
33636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33637 as_expr=expr
33638else
33639 as_expr=false
33640fi
33641
33642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33643 as_basename=basename
33644else
33645 as_basename=false
33646fi
33647
33648if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33649 as_dirname=dirname
33650else
33651 as_dirname=false
33652fi
33653
33654as_me=`$as_basename -- "$0" ||
33655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33656 X"$0" : 'X\(//\)$' \| \
33657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33658$as_echo X/"$0" |
33659 sed '/^.*\/\([^/][^/]*\)\/*$/{
33660 s//\1/
33661 q
33662 }
33663 /^X\/\(\/\/\)$/{
33664 s//\1/
33665 q
33666 }
33667 /^X\/\(\/\).*/{
33668 s//\1/
33669 q
33670 }
33671 s/.*/./; q'`
33672
33673# Avoid depending upon Character Ranges.
33674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33677as_cr_digits='0123456789'
33678as_cr_alnum=$as_cr_Letters$as_cr_digits
33679
33680ECHO_C= ECHO_N= ECHO_T=
33681case `echo -n x` in #(((((
33682-n*)
33683 case `echo 'xy\c'` in
33684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33685 xy) ECHO_C='\c';;
33686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33687 ECHO_T=' ';;
33688 esac;;
33689*)
33690 ECHO_N='-n';;
33691esac
33692
33693rm -f conf$$ conf$$.exe conf$$.file
33694if test -d conf$$.dir; then
33695 rm -f conf$$.dir/conf$$.file
33696else
33697 rm -f conf$$.dir
33698 mkdir conf$$.dir 2>/dev/null
33699fi
33700if (echo >conf$$.file) 2>/dev/null; then
33701 if ln -s conf$$.file conf$$ 2>/dev/null; then
33702 as_ln_s='ln -s'
33703 # ... but there are two gotchas:
33704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33706 # In both cases, we have to default to `cp -p'.
33707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33708 as_ln_s='cp -p'
33709 elif ln conf$$.file conf$$ 2>/dev/null; then
33710 as_ln_s=ln
33711 else
33712 as_ln_s='cp -p'
33713 fi
33714else
33715 as_ln_s='cp -p'
33716fi
33717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33718rmdir conf$$.dir 2>/dev/null
33719
33720
33721# as_fn_mkdir_p
33722# -------------
33723# Create "$as_dir" as a directory, including parents if necessary.
33724as_fn_mkdir_p ()
33725{
33726
33727 case $as_dir in #(
33728 -*) as_dir=./$as_dir;;
33729 esac
33730 test -d "$as_dir" || eval $as_mkdir_p || {
33731 as_dirs=
33732 while :; do
33733 case $as_dir in #(
33734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33735 *) as_qdir=$as_dir;;
33736 esac
33737 as_dirs="'$as_qdir' $as_dirs"
33738 as_dir=`$as_dirname -- "$as_dir" ||
33739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33740 X"$as_dir" : 'X\(//\)[^/]' \| \
33741 X"$as_dir" : 'X\(//\)$' \| \
33742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33743$as_echo X"$as_dir" |
33744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33745 s//\1/
33746 q
33747 }
33748 /^X\(\/\/\)[^/].*/{
33749 s//\1/
33750 q
33751 }
33752 /^X\(\/\/\)$/{
33753 s//\1/
33754 q
33755 }
33756 /^X\(\/\).*/{
33757 s//\1/
33758 q
33759 }
33760 s/.*/./; q'`
33761 test -d "$as_dir" && break
33762 done
33763 test -z "$as_dirs" || eval "mkdir $as_dirs"
33764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33765
33766
33767} # as_fn_mkdir_p
33768if mkdir -p . 2>/dev/null; then
33769 as_mkdir_p='mkdir -p "$as_dir"'
33770else
33771 test -d ./-p && rmdir ./-p
33772 as_mkdir_p=false
33773fi
33774
33775if test -x / >/dev/null 2>&1; then
33776 as_test_x='test -x'
33777else
33778 if ls -dL / >/dev/null 2>&1; then
33779 as_ls_L_option=L
33780 else
33781 as_ls_L_option=
33782 fi
33783 as_test_x='
33784 eval sh -c '\''
33785 if test -d "$1"; then
33786 test -d "$1/.";
33787 else
33788 case $1 in #(
33789 -*)set "./$1";;
33790 esac;
33791 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33792 ???[sx]*):;;*)false;;esac;fi
33793 '\'' sh
33794 '
33795fi
33796as_executable_p=$as_test_x
33797
33798# Sed expression to map a string onto a valid CPP name.
33799as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33800
33801# Sed expression to map a string onto a valid variable name.
33802as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33803
33804
33805exec 6>&1
33806## ----------------------------------- ##
33807## Main body of $CONFIG_STATUS script. ##
33808## ----------------------------------- ##
33809_ASEOF
33810test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33811
33812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33813# Save the log message, to keep $0 and so on meaningful, and to
33814# report actual input values of CONFIG_FILES etc. instead of their
33815# values after options handling.
33816ac_log="
87dac73d 33817This file was extended by zfs $as_me 0.6.5.8, which was
ea04106b
AX
33818generated by GNU Autoconf 2.68. Invocation command line was
33819
33820 CONFIG_FILES = $CONFIG_FILES
33821 CONFIG_HEADERS = $CONFIG_HEADERS
33822 CONFIG_LINKS = $CONFIG_LINKS
33823 CONFIG_COMMANDS = $CONFIG_COMMANDS
33824 $ $0 $@
33825
33826on `(hostname || uname -n) 2>/dev/null | sed 1q`
33827"
33828
33829_ACEOF
33830
33831case $ac_config_files in *"
33832"*) set x $ac_config_files; shift; ac_config_files=$*;;
33833esac
33834
33835case $ac_config_headers in *"
33836"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33837esac
33838
33839
33840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33841# Files that config.status was made for.
33842config_files="$ac_config_files"
33843config_headers="$ac_config_headers"
33844config_commands="$ac_config_commands"
33845
33846_ACEOF
33847
33848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33849ac_cs_usage="\
33850\`$as_me' instantiates files and other configuration actions
33851from templates according to the current configuration. Unless the files
33852and actions are specified as TAGs, all are instantiated by default.
33853
33854Usage: $0 [OPTION]... [TAG]...
33855
33856 -h, --help print this help, then exit
33857 -V, --version print version number and configuration settings, then exit
33858 --config print configuration, then exit
33859 -q, --quiet, --silent
33860 do not print progress messages
33861 -d, --debug don't remove temporary files
33862 --recheck update $as_me by reconfiguring in the same conditions
33863 --file=FILE[:TEMPLATE]
33864 instantiate the configuration file FILE
33865 --header=FILE[:TEMPLATE]
33866 instantiate the configuration header FILE
33867
33868Configuration files:
33869$config_files
33870
33871Configuration headers:
33872$config_headers
33873
33874Configuration commands:
33875$config_commands
33876
33877Report bugs to the package provider."
33878
33879_ACEOF
33880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33881ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33882ac_cs_version="\\
87dac73d 33883zfs config.status 0.6.5.8
ea04106b
AX
33884configured by $0, generated by GNU Autoconf 2.68,
33885 with options \\"\$ac_cs_config\\"
33886
33887Copyright (C) 2010 Free Software Foundation, Inc.
33888This config.status script is free software; the Free Software Foundation
33889gives unlimited permission to copy, distribute and modify it."
33890
33891ac_pwd='$ac_pwd'
33892srcdir='$srcdir'
33893INSTALL='$INSTALL'
33894MKDIR_P='$MKDIR_P'
33895AWK='$AWK'
33896test -n "\$AWK" || AWK=awk
33897_ACEOF
33898
33899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33900# The default lists apply if the user does not specify any file.
33901ac_need_defaults=:
33902while test $# != 0
33903do
33904 case $1 in
33905 --*=?*)
33906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33908 ac_shift=:
33909 ;;
33910 --*=)
33911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33912 ac_optarg=
33913 ac_shift=:
33914 ;;
33915 *)
33916 ac_option=$1
33917 ac_optarg=$2
33918 ac_shift=shift
33919 ;;
33920 esac
33921
33922 case $ac_option in
33923 # Handling of the options.
33924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33925 ac_cs_recheck=: ;;
33926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33927 $as_echo "$ac_cs_version"; exit ;;
33928 --config | --confi | --conf | --con | --co | --c )
33929 $as_echo "$ac_cs_config"; exit ;;
33930 --debug | --debu | --deb | --de | --d | -d )
33931 debug=: ;;
33932 --file | --fil | --fi | --f )
33933 $ac_shift
33934 case $ac_optarg in
33935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33936 '') as_fn_error $? "missing file argument" ;;
33937 esac
33938 as_fn_append CONFIG_FILES " '$ac_optarg'"
33939 ac_need_defaults=false;;
33940 --header | --heade | --head | --hea )
33941 $ac_shift
33942 case $ac_optarg in
33943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33944 esac
33945 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33946 ac_need_defaults=false;;
33947 --he | --h)
33948 # Conflict between --help and --header
33949 as_fn_error $? "ambiguous option: \`$1'
33950Try \`$0 --help' for more information.";;
33951 --help | --hel | -h )
33952 $as_echo "$ac_cs_usage"; exit ;;
33953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33954 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33955 ac_cs_silent=: ;;
33956
33957 # This is an error.
33958 -*) as_fn_error $? "unrecognized option: \`$1'
33959Try \`$0 --help' for more information." ;;
33960
33961 *) as_fn_append ac_config_targets " $1"
33962 ac_need_defaults=false ;;
33963
33964 esac
33965 shift
33966done
33967
33968ac_configure_extra_args=
33969
33970if $ac_cs_silent; then
33971 exec 6>/dev/null
33972 ac_configure_extra_args="$ac_configure_extra_args --silent"
33973fi
33974
33975_ACEOF
33976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33977if \$ac_cs_recheck; then
33978 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33979 shift
33980 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33981 CONFIG_SHELL='$SHELL'
33982 export CONFIG_SHELL
33983 exec "\$@"
33984fi
33985
33986_ACEOF
33987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33988exec 5>>config.log
33989{
33990 echo
33991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33992## Running $as_me. ##
33993_ASBOX
33994 $as_echo "$ac_log"
33995} >&5
33996
33997_ACEOF
33998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33999#
34000# INIT-COMMANDS
34001#
34002AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34003
34004
34005# The HP-UX ksh and POSIX shell print the target directory to stdout
34006# if CDPATH is set.
34007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34008
34009sed_quote_subst='$sed_quote_subst'
34010double_quote_subst='$double_quote_subst'
34011delay_variable_subst='$delay_variable_subst'
34012macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34013macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34014enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34015enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34016pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34017enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34018SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34019ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34020PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34021host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34022host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34023host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34024build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34025build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34026build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34027SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34028Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34029GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34030EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34031FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34032LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34033NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34034LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34035max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34036ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34037exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34038lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34039lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34040lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34041lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34042lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34043reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34044reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34045OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34046deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34047file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34048file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34049want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34050DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34051sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34052AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34053AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34054archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34055STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34056RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34057old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34058old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34059old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34060lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34061CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34062CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34063compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34064GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34065lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34066lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34067lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34068lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
34069nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34070lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34071objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34072MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34073lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34074lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34075lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34076lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34077lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34078need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34079MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34080DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34081NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34082LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34083OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34084OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34085libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34086shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34087extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34088archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34089enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34090export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34091whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34092compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34093old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34094old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34095archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34096archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34097module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34098module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34099with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34100allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34101no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34102hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34103hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34104hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34105hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34106hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34107hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34108hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34109inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34110link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34111always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34112export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34113exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34114include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34115prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34116postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34117file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34118variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34119need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34120need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34121version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34122runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34123shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34124shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34125libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34126library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34127soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34128install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34129postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34130postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34131finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34132finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34133hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34134sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34135sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34136hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34137enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34138enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34139enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34140old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34141striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34142
34143LTCC='$LTCC'
34144LTCFLAGS='$LTCFLAGS'
34145compiler='$compiler_DEFAULT'
34146
34147# A function that is used when there is no print builtin or printf.
34148func_fallback_echo ()
34149{
34150 eval 'cat <<_LTECHO_EOF
34151\$1
34152_LTECHO_EOF'
34153}
34154
34155# Quote evaled strings.
34156for var in SHELL \
34157ECHO \
34158PATH_SEPARATOR \
34159SED \
34160GREP \
34161EGREP \
34162FGREP \
34163LD \
34164NM \
34165LN_S \
34166lt_SP2NL \
34167lt_NL2SP \
34168reload_flag \
34169OBJDUMP \
34170deplibs_check_method \
34171file_magic_cmd \
34172file_magic_glob \
34173want_nocaseglob \
34174DLLTOOL \
34175sharedlib_from_linklib_cmd \
34176AR \
34177AR_FLAGS \
34178archiver_list_spec \
34179STRIP \
34180RANLIB \
34181CC \
34182CFLAGS \
34183compiler \
34184lt_cv_sys_global_symbol_pipe \
34185lt_cv_sys_global_symbol_to_cdecl \
34186lt_cv_sys_global_symbol_to_c_name_address \
34187lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34188nm_file_list_spec \
34189lt_prog_compiler_no_builtin_flag \
34190lt_prog_compiler_pic \
34191lt_prog_compiler_wl \
34192lt_prog_compiler_static \
34193lt_cv_prog_compiler_c_o \
34194need_locks \
34195MANIFEST_TOOL \
34196DSYMUTIL \
34197NMEDIT \
34198LIPO \
34199OTOOL \
34200OTOOL64 \
34201shrext_cmds \
34202export_dynamic_flag_spec \
34203whole_archive_flag_spec \
34204compiler_needs_object \
34205with_gnu_ld \
34206allow_undefined_flag \
34207no_undefined_flag \
34208hardcode_libdir_flag_spec \
34209hardcode_libdir_separator \
34210exclude_expsyms \
34211include_expsyms \
34212file_list_spec \
34213variables_saved_for_relink \
34214libname_spec \
34215library_names_spec \
34216soname_spec \
34217install_override_mode \
34218finish_eval \
34219old_striplib \
34220striplib; do
34221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34222 *[\\\\\\\`\\"\\\$]*)
34223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34224 ;;
34225 *)
34226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34227 ;;
34228 esac
34229done
34230
34231# Double-quote double-evaled strings.
34232for var in reload_cmds \
34233old_postinstall_cmds \
34234old_postuninstall_cmds \
34235old_archive_cmds \
34236extract_expsyms_cmds \
34237old_archive_from_new_cmds \
34238old_archive_from_expsyms_cmds \
34239archive_cmds \
34240archive_expsym_cmds \
34241module_cmds \
34242module_expsym_cmds \
34243export_symbols_cmds \
34244prelink_cmds \
34245postlink_cmds \
34246postinstall_cmds \
34247postuninstall_cmds \
34248finish_cmds \
34249sys_lib_search_path_spec \
34250sys_lib_dlsearch_path_spec; do
34251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34252 *[\\\\\\\`\\"\\\$]*)
34253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34254 ;;
34255 *)
34256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34257 ;;
34258 esac
34259done
34260
34261ac_aux_dir='$ac_aux_dir'
34262xsi_shell='$xsi_shell'
34263lt_shell_append='$lt_shell_append'
34264
34265# See if we are running on zsh, and set the options which allow our
34266# commands through without removal of \ escapes INIT.
34267if test -n "\${ZSH_VERSION+set}" ; then
34268 setopt NO_GLOB_SUBST
34269fi
34270
34271
34272 PACKAGE='$PACKAGE'
34273 VERSION='$VERSION'
34274 TIMESTAMP='$TIMESTAMP'
34275 RM='$RM'
34276 ofile='$ofile'
34277
34278
34279
34280
34281_ACEOF
34282
34283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34284
34285# Handling of arguments.
34286for ac_config_target in $ac_config_targets
34287do
34288 case $ac_config_target in
34289 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
34290 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34291 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34292 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
ea04106b
AX
34293 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
34294 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
34295 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
34296 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
34297 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
34298 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
34299 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
34300 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
34301 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34302 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
34303 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
34304 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
34305 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34306 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
34307 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
34308 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
34309 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
34310 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
34311 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
34312 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
34313 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
34314 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
34315 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
34316 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
34317 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
34318 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
34319 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
34320 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
34321 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
34322 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
34323 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
34324 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
34325 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
34326 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
34327 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
34328 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
34329 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
34330 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
34331 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
34332 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
34333 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
34334 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
34335 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
34336 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
34337 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
34338 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
34339 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
34340 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
34341 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
34342 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
34343 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
34344 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
34345 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
34346 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
34347 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
e10b0808
AX
34348 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
34349 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
34350 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
ea04106b
AX
34351 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
34352 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
34353 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
34354 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
34355 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
34356 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
34357 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
34358 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34359 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
34360 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
34361 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
34362 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
34363 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
34364 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34365 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
34366 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
34367 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
34368 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
34369 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
34370 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
34371 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
34372 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
34373 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
34374 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
34375 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
34376 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
34377 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
34378 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
34379 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
34380
34381 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34382 esac
34383done
34384
34385
34386# If the user did not use the arguments to specify the items to instantiate,
34387# then the envvar interface is used. Set only those that are not.
34388# We use the long form for the default assignment because of an extremely
34389# bizarre bug on SunOS 4.1.3.
34390if $ac_need_defaults; then
34391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34394fi
34395
34396# Have a temporary directory for convenience. Make it in the build tree
34397# simply because there is no reason against having it here, and in addition,
34398# creating and moving files from /tmp can sometimes cause problems.
34399# Hook for its removal unless debugging.
34400# Note that there is a small window in which the directory will not be cleaned:
34401# after its creation but before its name has been assigned to `$tmp'.
34402$debug ||
34403{
34404 tmp= ac_tmp=
34405 trap 'exit_status=$?
34406 : "${ac_tmp:=$tmp}"
34407 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34408' 0
34409 trap 'as_fn_exit 1' 1 2 13 15
34410}
34411# Create a (secure) tmp directory for tmp files.
34412
34413{
34414 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34415 test -d "$tmp"
34416} ||
34417{
34418 tmp=./conf$$-$RANDOM
34419 (umask 077 && mkdir "$tmp")
34420} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34421ac_tmp=$tmp
34422
34423# Set up the scripts for CONFIG_FILES section.
34424# No need to generate them if there are no CONFIG_FILES.
34425# This happens for instance with `./config.status config.h'.
34426if test -n "$CONFIG_FILES"; then
34427
34428
34429ac_cr=`echo X | tr X '\015'`
34430# On cygwin, bash can eat \r inside `` if the user requested igncr.
34431# But we know of no other shell where ac_cr would be empty at this
34432# point, so we can use a bashism as a fallback.
34433if test "x$ac_cr" = x; then
34434 eval ac_cr=\$\'\\r\'
34435fi
34436ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34437if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34438 ac_cs_awk_cr='\\r'
34439else
34440 ac_cs_awk_cr=$ac_cr
34441fi
34442
34443echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34444_ACEOF
34445
34446
34447{
34448 echo "cat >conf$$subs.awk <<_ACEOF" &&
34449 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34450 echo "_ACEOF"
34451} >conf$$subs.sh ||
34452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34453ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34454ac_delim='%!_!# '
34455for ac_last_try in false false false false false :; do
34456 . ./conf$$subs.sh ||
34457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34458
34459 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34460 if test $ac_delim_n = $ac_delim_num; then
34461 break
34462 elif $ac_last_try; then
34463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34464 else
34465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34466 fi
34467done
34468rm -f conf$$subs.sh
34469
34470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34471cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34472_ACEOF
34473sed -n '
34474h
34475s/^/S["/; s/!.*/"]=/
34476p
34477g
34478s/^[^!]*!//
34479:repl
34480t repl
34481s/'"$ac_delim"'$//
34482t delim
34483:nl
34484h
34485s/\(.\{148\}\)..*/\1/
34486t more1
34487s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34488p
34489n
34490b repl
34491:more1
34492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34493p
34494g
34495s/.\{148\}//
34496t nl
34497:delim
34498h
34499s/\(.\{148\}\)..*/\1/
34500t more2
34501s/["\\]/\\&/g; s/^/"/; s/$/"/
34502p
34503b
34504:more2
34505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34506p
34507g
34508s/.\{148\}//
34509t delim
34510' <conf$$subs.awk | sed '
34511/^[^""]/{
34512 N
34513 s/\n//
34514}
34515' >>$CONFIG_STATUS || ac_write_fail=1
34516rm -f conf$$subs.awk
34517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34518_ACAWK
34519cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34520 for (key in S) S_is_set[key] = 1
34521 FS = "\a"
34522
34523}
34524{
34525 line = $ 0
34526 nfields = split(line, field, "@")
34527 substed = 0
34528 len = length(field[1])
34529 for (i = 2; i < nfields; i++) {
34530 key = field[i]
34531 keylen = length(key)
34532 if (S_is_set[key]) {
34533 value = S[key]
34534 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34535 len += length(value) + length(field[++i])
34536 substed = 1
34537 } else
34538 len += 1 + keylen
34539 }
34540
34541 print line
34542}
34543
34544_ACAWK
34545_ACEOF
34546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34547if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34548 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34549else
34550 cat
34551fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34552 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34553_ACEOF
34554
34555# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34556# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34557# trailing colons and then remove the whole line if VPATH becomes empty
34558# (actually we leave an empty line to preserve line numbers).
34559if test "x$srcdir" = x.; then
34560 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34561h
34562s///
34563s/^/:/
34564s/[ ]*$/:/
34565s/:\$(srcdir):/:/g
34566s/:\${srcdir}:/:/g
34567s/:@srcdir@:/:/g
34568s/^:*//
34569s/:*$//
34570x
34571s/\(=[ ]*\).*/\1/
34572G
34573s/\n//
34574s/^[^=]*=[ ]*$//
34575}'
34576fi
34577
34578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34579fi # test -n "$CONFIG_FILES"
34580
34581# Set up the scripts for CONFIG_HEADERS section.
34582# No need to generate them if there are no CONFIG_HEADERS.
34583# This happens for instance with `./config.status Makefile'.
34584if test -n "$CONFIG_HEADERS"; then
34585cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34586BEGIN {
34587_ACEOF
34588
34589# Transform confdefs.h into an awk script `defines.awk', embedded as
34590# here-document in config.status, that substitutes the proper values into
34591# config.h.in to produce config.h.
34592
34593# Create a delimiter string that does not exist in confdefs.h, to ease
34594# handling of long lines.
34595ac_delim='%!_!# '
34596for ac_last_try in false false :; do
34597 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34598 if test -z "$ac_tt"; then
34599 break
34600 elif $ac_last_try; then
34601 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34602 else
34603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34604 fi
34605done
34606
34607# For the awk script, D is an array of macro values keyed by name,
34608# likewise P contains macro parameters if any. Preserve backslash
34609# newline sequences.
34610
34611ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34612sed -n '
34613s/.\{148\}/&'"$ac_delim"'/g
34614t rset
34615:rset
34616s/^[ ]*#[ ]*define[ ][ ]*/ /
34617t def
34618d
34619:def
34620s/\\$//
34621t bsnl
34622s/["\\]/\\&/g
34623s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34624D["\1"]=" \3"/p
34625s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34626d
34627:bsnl
34628s/["\\]/\\&/g
34629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34630D["\1"]=" \3\\\\\\n"\\/p
34631t cont
34632s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34633t cont
34634d
34635:cont
34636n
34637s/.\{148\}/&'"$ac_delim"'/g
34638t clear
34639:clear
34640s/\\$//
34641t bsnlc
34642s/["\\]/\\&/g; s/^/"/; s/$/"/p
34643d
34644:bsnlc
34645s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34646b cont
34647' <confdefs.h | sed '
34648s/'"$ac_delim"'/"\\\
34649"/g' >>$CONFIG_STATUS || ac_write_fail=1
34650
34651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34652 for (key in D) D_is_set[key] = 1
34653 FS = "\a"
34654}
34655/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34656 line = \$ 0
34657 split(line, arg, " ")
34658 if (arg[1] == "#") {
34659 defundef = arg[2]
34660 mac1 = arg[3]
34661 } else {
34662 defundef = substr(arg[1], 2)
34663 mac1 = arg[2]
34664 }
34665 split(mac1, mac2, "(") #)
34666 macro = mac2[1]
34667 prefix = substr(line, 1, index(line, defundef) - 1)
34668 if (D_is_set[macro]) {
34669 # Preserve the white space surrounding the "#".
34670 print prefix "define", macro P[macro] D[macro]
34671 next
34672 } else {
34673 # Replace #undef with comments. This is necessary, for example,
34674 # in the case of _POSIX_SOURCE, which is predefined and required
34675 # on some systems where configure will not decide to define it.
34676 if (defundef == "undef") {
34677 print "/*", prefix defundef, macro, "*/"
34678 next
34679 }
34680 }
34681}
34682{ print }
34683_ACAWK
34684_ACEOF
34685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34686 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34687fi # test -n "$CONFIG_HEADERS"
34688
34689
34690eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34691shift
34692for ac_tag
34693do
34694 case $ac_tag in
34695 :[FHLC]) ac_mode=$ac_tag; continue;;
34696 esac
34697 case $ac_mode$ac_tag in
34698 :[FHL]*:*);;
34699 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34700 :[FH]-) ac_tag=-:-;;
34701 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34702 esac
34703 ac_save_IFS=$IFS
34704 IFS=:
34705 set x $ac_tag
34706 IFS=$ac_save_IFS
34707 shift
34708 ac_file=$1
34709 shift
34710
34711 case $ac_mode in
34712 :L) ac_source=$1;;
34713 :[FH])
34714 ac_file_inputs=
34715 for ac_f
34716 do
34717 case $ac_f in
34718 -) ac_f="$ac_tmp/stdin";;
34719 *) # Look for the file first in the build tree, then in the source tree
34720 # (if the path is not absolute). The absolute path cannot be DOS-style,
34721 # because $ac_f cannot contain `:'.
34722 test -f "$ac_f" ||
34723 case $ac_f in
34724 [\\/$]*) false;;
34725 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34726 esac ||
34727 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34728 esac
34729 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34730 as_fn_append ac_file_inputs " '$ac_f'"
34731 done
34732
34733 # Let's still pretend it is `configure' which instantiates (i.e., don't
34734 # use $as_me), people would be surprised to read:
34735 # /* config.h. Generated by config.status. */
34736 configure_input='Generated from '`
34737 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34738 `' by configure.'
34739 if test x"$ac_file" != x-; then
34740 configure_input="$ac_file. $configure_input"
34741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34742$as_echo "$as_me: creating $ac_file" >&6;}
34743 fi
34744 # Neutralize special characters interpreted by sed in replacement strings.
34745 case $configure_input in #(
34746 *\&* | *\|* | *\\* )
34747 ac_sed_conf_input=`$as_echo "$configure_input" |
34748 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34749 *) ac_sed_conf_input=$configure_input;;
34750 esac
34751
34752 case $ac_tag in
34753 *:-:* | *:-) cat >"$ac_tmp/stdin" \
34754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34755 esac
34756 ;;
34757 esac
34758
34759 ac_dir=`$as_dirname -- "$ac_file" ||
34760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34761 X"$ac_file" : 'X\(//\)[^/]' \| \
34762 X"$ac_file" : 'X\(//\)$' \| \
34763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34764$as_echo X"$ac_file" |
34765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34766 s//\1/
34767 q
34768 }
34769 /^X\(\/\/\)[^/].*/{
34770 s//\1/
34771 q
34772 }
34773 /^X\(\/\/\)$/{
34774 s//\1/
34775 q
34776 }
34777 /^X\(\/\).*/{
34778 s//\1/
34779 q
34780 }
34781 s/.*/./; q'`
34782 as_dir="$ac_dir"; as_fn_mkdir_p
34783 ac_builddir=.
34784
34785case "$ac_dir" in
34786.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34787*)
34788 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34789 # A ".." for each directory in $ac_dir_suffix.
34790 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34791 case $ac_top_builddir_sub in
34792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34794 esac ;;
34795esac
34796ac_abs_top_builddir=$ac_pwd
34797ac_abs_builddir=$ac_pwd$ac_dir_suffix
34798# for backward compatibility:
34799ac_top_builddir=$ac_top_build_prefix
34800
34801case $srcdir in
34802 .) # We are building in place.
34803 ac_srcdir=.
34804 ac_top_srcdir=$ac_top_builddir_sub
34805 ac_abs_top_srcdir=$ac_pwd ;;
34806 [\\/]* | ?:[\\/]* ) # Absolute name.
34807 ac_srcdir=$srcdir$ac_dir_suffix;
34808 ac_top_srcdir=$srcdir
34809 ac_abs_top_srcdir=$srcdir ;;
34810 *) # Relative name.
34811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34812 ac_top_srcdir=$ac_top_build_prefix$srcdir
34813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34814esac
34815ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34816
34817
34818 case $ac_mode in
34819 :F)
34820 #
34821 # CONFIG_FILE
34822 #
34823
34824 case $INSTALL in
34825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34826 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34827 esac
34828 ac_MKDIR_P=$MKDIR_P
34829 case $MKDIR_P in
34830 [\\/$]* | ?:[\\/]* ) ;;
34831 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34832 esac
34833_ACEOF
34834
34835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34836# If the template does not know about datarootdir, expand it.
34837# FIXME: This hack should be removed a few years after 2.60.
34838ac_datarootdir_hack=; ac_datarootdir_seen=
34839ac_sed_dataroot='
34840/datarootdir/ {
34841 p
34842 q
34843}
34844/@datadir@/p
34845/@docdir@/p
34846/@infodir@/p
34847/@localedir@/p
34848/@mandir@/p'
34849case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34850*datarootdir*) ac_datarootdir_seen=yes;;
34851*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34853$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34854_ACEOF
34855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34856 ac_datarootdir_hack='
34857 s&@datadir@&$datadir&g
34858 s&@docdir@&$docdir&g
34859 s&@infodir@&$infodir&g
34860 s&@localedir@&$localedir&g
34861 s&@mandir@&$mandir&g
34862 s&\\\${datarootdir}&$datarootdir&g' ;;
34863esac
34864_ACEOF
34865
34866# Neutralize VPATH when `$srcdir' = `.'.
34867# Shell code in configure.ac might set extrasub.
34868# FIXME: do we really want to maintain this feature?
34869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34870ac_sed_extra="$ac_vpsub
34871$extrasub
34872_ACEOF
34873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34874:t
34875/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34876s|@configure_input@|$ac_sed_conf_input|;t t
34877s&@top_builddir@&$ac_top_builddir_sub&;t t
34878s&@top_build_prefix@&$ac_top_build_prefix&;t t
34879s&@srcdir@&$ac_srcdir&;t t
34880s&@abs_srcdir@&$ac_abs_srcdir&;t t
34881s&@top_srcdir@&$ac_top_srcdir&;t t
34882s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34883s&@builddir@&$ac_builddir&;t t
34884s&@abs_builddir@&$ac_abs_builddir&;t t
34885s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34886s&@INSTALL@&$ac_INSTALL&;t t
34887s&@MKDIR_P@&$ac_MKDIR_P&;t t
34888$ac_datarootdir_hack
34889"
34890eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34891 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34892
34893test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34894 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34896 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34898which seems to be undefined. Please make sure it is defined" >&5
34899$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34900which seems to be undefined. Please make sure it is defined" >&2;}
34901
34902 rm -f "$ac_tmp/stdin"
34903 case $ac_file in
34904 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34905 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34906 esac \
34907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34908 ;;
34909 :H)
34910 #
34911 # CONFIG_HEADER
34912 #
34913 if test x"$ac_file" != x-; then
34914 {
34915 $as_echo "/* $configure_input */" \
34916 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34917 } >"$ac_tmp/config.h" \
34918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34919 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34921$as_echo "$as_me: $ac_file is unchanged" >&6;}
34922 else
34923 rm -f "$ac_file"
34924 mv "$ac_tmp/config.h" "$ac_file" \
34925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34926 fi
34927 else
34928 $as_echo "/* $configure_input */" \
34929 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34930 || as_fn_error $? "could not create -" "$LINENO" 5
34931 fi
34932# Compute "$ac_file"'s index in $config_headers.
34933_am_arg="$ac_file"
34934_am_stamp_count=1
34935for _am_header in $config_headers :; do
34936 case $_am_header in
34937 $_am_arg | $_am_arg:* )
34938 break ;;
34939 * )
34940 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34941 esac
34942done
34943echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34944$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34945 X"$_am_arg" : 'X\(//\)[^/]' \| \
34946 X"$_am_arg" : 'X\(//\)$' \| \
34947 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34948$as_echo X"$_am_arg" |
34949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34950 s//\1/
34951 q
34952 }
34953 /^X\(\/\/\)[^/].*/{
34954 s//\1/
34955 q
34956 }
34957 /^X\(\/\/\)$/{
34958 s//\1/
34959 q
34960 }
34961 /^X\(\/\).*/{
34962 s//\1/
34963 q
34964 }
34965 s/.*/./; q'`/stamp-h$_am_stamp_count
34966 ;;
34967
34968 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34969$as_echo "$as_me: executing $ac_file commands" >&6;}
34970 ;;
34971 esac
34972
34973
34974 case $ac_file$ac_mode in
34975 "zfs_config.h":H)
34976 (mv zfs_config.h zfs_config.h.tmp &&
34977 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
34978 rm zfs_config.h.tmp) || exit 1 ;;
34979 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34980 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34981 # are listed without --file. Let's play safe and only enable the eval
34982 # if we detect the quoting.
34983 case $CONFIG_FILES in
34984 *\'*) eval set x "$CONFIG_FILES" ;;
34985 *) set x $CONFIG_FILES ;;
34986 esac
34987 shift
34988 for mf
34989 do
34990 # Strip MF so we end up with the name of the file.
34991 mf=`echo "$mf" | sed -e 's/:.*$//'`
34992 # Check whether this is an Automake generated Makefile or not.
34993 # We used to match only the files named `Makefile.in', but
34994 # some people rename them; so instead we look at the file content.
34995 # Grep'ing the first line is not enough: some people post-process
34996 # each Makefile.in and add a new line on top of each file to say so.
34997 # Grep'ing the whole file is not good either: AIX grep has a line
34998 # limit of 2048, but all sed's we know have understand at least 4000.
34999 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35000 dirpart=`$as_dirname -- "$mf" ||
35001$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35002 X"$mf" : 'X\(//\)[^/]' \| \
35003 X"$mf" : 'X\(//\)$' \| \
35004 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35005$as_echo X"$mf" |
35006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35007 s//\1/
35008 q
35009 }
35010 /^X\(\/\/\)[^/].*/{
35011 s//\1/
35012 q
35013 }
35014 /^X\(\/\/\)$/{
35015 s//\1/
35016 q
35017 }
35018 /^X\(\/\).*/{
35019 s//\1/
35020 q
35021 }
35022 s/.*/./; q'`
35023 else
35024 continue
35025 fi
35026 # Extract the definition of DEPDIR, am__include, and am__quote
35027 # from the Makefile without running `make'.
35028 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35029 test -z "$DEPDIR" && continue
35030 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35031 test -z "am__include" && continue
35032 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35033 # When using ansi2knr, U may be empty or an underscore; expand it
35034 U=`sed -n 's/^U = //p' < "$mf"`
35035 # Find all dependency output files, they are included files with
35036 # $(DEPDIR) in their names. We invoke sed twice because it is the
35037 # simplest approach to changing $(DEPDIR) to its actual value in the
35038 # expansion.
35039 for file in `sed -n "
35040 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35042 # Make sure the directory exists.
35043 test -f "$dirpart/$file" && continue
35044 fdir=`$as_dirname -- "$file" ||
35045$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35046 X"$file" : 'X\(//\)[^/]' \| \
35047 X"$file" : 'X\(//\)$' \| \
35048 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35049$as_echo X"$file" |
35050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35051 s//\1/
35052 q
35053 }
35054 /^X\(\/\/\)[^/].*/{
35055 s//\1/
35056 q
35057 }
35058 /^X\(\/\/\)$/{
35059 s//\1/
35060 q
35061 }
35062 /^X\(\/\).*/{
35063 s//\1/
35064 q
35065 }
35066 s/.*/./; q'`
35067 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35068 # echo "creating $dirpart/$file"
35069 echo '# dummy' > "$dirpart/$file"
35070 done
35071 done
35072}
35073 ;;
35074 "libtool":C)
35075
35076 # See if we are running on zsh, and set the options which allow our
35077 # commands through without removal of \ escapes.
35078 if test -n "${ZSH_VERSION+set}" ; then
35079 setopt NO_GLOB_SUBST
35080 fi
35081
35082 cfgfile="${ofile}T"
35083 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35084 $RM "$cfgfile"
35085
35086 cat <<_LT_EOF >> "$cfgfile"
35087#! $SHELL
35088
35089# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35090# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35091# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35092# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35093#
35094# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35095# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
35096# Foundation, Inc.
35097# Written by Gordon Matzigkeit, 1996
35098#
35099# This file is part of GNU Libtool.
35100#
35101# GNU Libtool is free software; you can redistribute it and/or
35102# modify it under the terms of the GNU General Public License as
35103# published by the Free Software Foundation; either version 2 of
35104# the License, or (at your option) any later version.
35105#
35106# As a special exception to the GNU General Public License,
35107# if you distribute this file as part of a program or library that
35108# is built using GNU Libtool, you may include this file under the
35109# same distribution terms that you use for the rest of that program.
35110#
35111# GNU Libtool is distributed in the hope that it will be useful,
35112# but WITHOUT ANY WARRANTY; without even the implied warranty of
35113# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35114# GNU General Public License for more details.
35115#
35116# You should have received a copy of the GNU General Public License
35117# along with GNU Libtool; see the file COPYING. If not, a copy
35118# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35119# obtained by writing to the Free Software Foundation, Inc.,
35120# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35121
35122
35123# The names of the tagged configurations supported by this script.
35124available_tags=""
35125
35126# ### BEGIN LIBTOOL CONFIG
35127
35128# Which release of libtool.m4 was used?
35129macro_version=$macro_version
35130macro_revision=$macro_revision
35131
35132# Whether or not to build shared libraries.
35133build_libtool_libs=$enable_shared
35134
35135# Whether or not to build static libraries.
35136build_old_libs=$enable_static
35137
35138# What type of objects to build.
35139pic_mode=$pic_mode
35140
35141# Whether or not to optimize for fast installation.
35142fast_install=$enable_fast_install
35143
35144# Shell to use when invoking shell scripts.
35145SHELL=$lt_SHELL
35146
35147# An echo program that protects backslashes.
35148ECHO=$lt_ECHO
35149
35150# The PATH separator for the build system.
35151PATH_SEPARATOR=$lt_PATH_SEPARATOR
35152
35153# The host system.
35154host_alias=$host_alias
35155host=$host
35156host_os=$host_os
35157
35158# The build system.
35159build_alias=$build_alias
35160build=$build
35161build_os=$build_os
35162
35163# A sed program that does not truncate output.
35164SED=$lt_SED
35165
35166# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35167Xsed="\$SED -e 1s/^X//"
35168
35169# A grep program that handles long lines.
35170GREP=$lt_GREP
35171
35172# An ERE matcher.
35173EGREP=$lt_EGREP
35174
35175# A literal string matcher.
35176FGREP=$lt_FGREP
35177
35178# A BSD- or MS-compatible name lister.
35179NM=$lt_NM
35180
35181# Whether we need soft or hard links.
35182LN_S=$lt_LN_S
35183
35184# What is the maximum length of a command?
35185max_cmd_len=$max_cmd_len
35186
35187# Object file suffix (normally "o").
35188objext=$ac_objext
35189
35190# Executable file suffix (normally "").
35191exeext=$exeext
35192
35193# whether the shell understands "unset".
35194lt_unset=$lt_unset
35195
35196# turn spaces into newlines.
35197SP2NL=$lt_lt_SP2NL
35198
35199# turn newlines into spaces.
35200NL2SP=$lt_lt_NL2SP
35201
35202# convert \$build file names to \$host format.
35203to_host_file_cmd=$lt_cv_to_host_file_cmd
35204
35205# convert \$build files to toolchain format.
35206to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35207
35208# An object symbol dumper.
35209OBJDUMP=$lt_OBJDUMP
35210
35211# Method to check whether dependent libraries are shared objects.
35212deplibs_check_method=$lt_deplibs_check_method
35213
35214# Command to use when deplibs_check_method = "file_magic".
35215file_magic_cmd=$lt_file_magic_cmd
35216
35217# How to find potential files when deplibs_check_method = "file_magic".
35218file_magic_glob=$lt_file_magic_glob
35219
35220# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35221want_nocaseglob=$lt_want_nocaseglob
35222
35223# DLL creation program.
35224DLLTOOL=$lt_DLLTOOL
35225
35226# Command to associate shared and link libraries.
35227sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35228
35229# The archiver.
35230AR=$lt_AR
35231
35232# Flags to create an archive.
35233AR_FLAGS=$lt_AR_FLAGS
35234
35235# How to feed a file listing to the archiver.
35236archiver_list_spec=$lt_archiver_list_spec
35237
35238# A symbol stripping program.
35239STRIP=$lt_STRIP
35240
35241# Commands used to install an old-style archive.
35242RANLIB=$lt_RANLIB
35243old_postinstall_cmds=$lt_old_postinstall_cmds
35244old_postuninstall_cmds=$lt_old_postuninstall_cmds
35245
35246# Whether to use a lock for old archive extraction.
35247lock_old_archive_extraction=$lock_old_archive_extraction
35248
35249# A C compiler.
35250LTCC=$lt_CC
35251
35252# LTCC compiler flags.
35253LTCFLAGS=$lt_CFLAGS
35254
35255# Take the output of nm and produce a listing of raw symbols and C names.
35256global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35257
35258# Transform the output of nm in a proper C declaration.
35259global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35260
35261# Transform the output of nm in a C name address pair.
35262global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35263
35264# Transform the output of nm in a C name address pair when lib prefix is needed.
35265global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35266
35267# Specify filename containing input files for \$NM.
35268nm_file_list_spec=$lt_nm_file_list_spec
35269
35270# The root where to search for dependent libraries,and in which our libraries should be installed.
35271lt_sysroot=$lt_sysroot
35272
35273# The name of the directory that contains temporary libtool files.
35274objdir=$objdir
35275
35276# Used to examine libraries when file_magic_cmd begins with "file".
35277MAGIC_CMD=$MAGIC_CMD
35278
35279# Must we lock files when doing compilation?
35280need_locks=$lt_need_locks
35281
35282# Manifest tool.
35283MANIFEST_TOOL=$lt_MANIFEST_TOOL
35284
35285# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35286DSYMUTIL=$lt_DSYMUTIL
35287
35288# Tool to change global to local symbols on Mac OS X.
35289NMEDIT=$lt_NMEDIT
35290
35291# Tool to manipulate fat objects and archives on Mac OS X.
35292LIPO=$lt_LIPO
35293
35294# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35295OTOOL=$lt_OTOOL
35296
35297# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35298OTOOL64=$lt_OTOOL64
35299
35300# Old archive suffix (normally "a").
35301libext=$libext
35302
35303# Shared library suffix (normally ".so").
35304shrext_cmds=$lt_shrext_cmds
35305
35306# The commands to extract the exported symbol list from a shared archive.
35307extract_expsyms_cmds=$lt_extract_expsyms_cmds
35308
35309# Variables whose values should be saved in libtool wrapper scripts and
35310# restored at link time.
35311variables_saved_for_relink=$lt_variables_saved_for_relink
35312
35313# Do we need the "lib" prefix for modules?
35314need_lib_prefix=$need_lib_prefix
35315
35316# Do we need a version for libraries?
35317need_version=$need_version
35318
35319# Library versioning type.
35320version_type=$version_type
35321
35322# Shared library runtime path variable.
35323runpath_var=$runpath_var
35324
35325# Shared library path variable.
35326shlibpath_var=$shlibpath_var
35327
35328# Is shlibpath searched before the hard-coded library search path?
35329shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35330
35331# Format of library name prefix.
35332libname_spec=$lt_libname_spec
35333
35334# List of archive names. First name is the real one, the rest are links.
35335# The last name is the one that the linker finds with -lNAME
35336library_names_spec=$lt_library_names_spec
35337
35338# The coded name of the library, if different from the real name.
35339soname_spec=$lt_soname_spec
35340
35341# Permission mode override for installation of shared libraries.
35342install_override_mode=$lt_install_override_mode
35343
35344# Command to use after installation of a shared archive.
35345postinstall_cmds=$lt_postinstall_cmds
35346
35347# Command to use after uninstallation of a shared archive.
35348postuninstall_cmds=$lt_postuninstall_cmds
35349
35350# Commands used to finish a libtool library installation in a directory.
35351finish_cmds=$lt_finish_cmds
35352
35353# As "finish_cmds", except a single script fragment to be evaled but
35354# not shown.
35355finish_eval=$lt_finish_eval
35356
35357# Whether we should hardcode library paths into libraries.
35358hardcode_into_libs=$hardcode_into_libs
35359
35360# Compile-time system search path for libraries.
35361sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35362
35363# Run-time system search path for libraries.
35364sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35365
35366# Whether dlopen is supported.
35367dlopen_support=$enable_dlopen
35368
35369# Whether dlopen of programs is supported.
35370dlopen_self=$enable_dlopen_self
35371
35372# Whether dlopen of statically linked programs is supported.
35373dlopen_self_static=$enable_dlopen_self_static
35374
35375# Commands to strip libraries.
35376old_striplib=$lt_old_striplib
35377striplib=$lt_striplib
35378
35379
35380# The linker used to build libraries.
35381LD=$lt_LD
35382
35383# How to create reloadable object files.
35384reload_flag=$lt_reload_flag
35385reload_cmds=$lt_reload_cmds
35386
35387# Commands used to build an old-style archive.
35388old_archive_cmds=$lt_old_archive_cmds
35389
35390# A language specific compiler.
35391CC=$lt_compiler
35392
35393# Is the compiler the GNU compiler?
35394with_gcc=$GCC
35395
35396# Compiler flag to turn off builtin functions.
35397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35398
35399# Additional compiler flags for building library objects.
35400pic_flag=$lt_lt_prog_compiler_pic
35401
35402# How to pass a linker flag through the compiler.
35403wl=$lt_lt_prog_compiler_wl
35404
35405# Compiler flag to prevent dynamic linking.
35406link_static_flag=$lt_lt_prog_compiler_static
35407
35408# Does compiler simultaneously support -c and -o options?
35409compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35410
35411# Whether or not to add -lc for building shared libraries.
35412build_libtool_need_lc=$archive_cmds_need_lc
35413
35414# Whether or not to disallow shared libs when runtime libs are static.
35415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35416
35417# Compiler flag to allow reflexive dlopens.
35418export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35419
35420# Compiler flag to generate shared objects directly from archives.
35421whole_archive_flag_spec=$lt_whole_archive_flag_spec
35422
35423# Whether the compiler copes with passing no objects directly.
35424compiler_needs_object=$lt_compiler_needs_object
35425
35426# Create an old-style archive from a shared archive.
35427old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35428
35429# Create a temporary old-style archive to link instead of a shared archive.
35430old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35431
35432# Commands used to build a shared archive.
35433archive_cmds=$lt_archive_cmds
35434archive_expsym_cmds=$lt_archive_expsym_cmds
35435
35436# Commands used to build a loadable module if different from building
35437# a shared archive.
35438module_cmds=$lt_module_cmds
35439module_expsym_cmds=$lt_module_expsym_cmds
35440
35441# Whether we are building with GNU ld or not.
35442with_gnu_ld=$lt_with_gnu_ld
35443
35444# Flag that allows shared libraries with undefined symbols to be built.
35445allow_undefined_flag=$lt_allow_undefined_flag
35446
35447# Flag that enforces no undefined symbols.
35448no_undefined_flag=$lt_no_undefined_flag
35449
35450# Flag to hardcode \$libdir into a binary during linking.
35451# This must work even if \$libdir does not exist
35452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35453
35454# Whether we need a single "-rpath" flag with a separated argument.
35455hardcode_libdir_separator=$lt_hardcode_libdir_separator
35456
35457# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35458# DIR into the resulting binary.
35459hardcode_direct=$hardcode_direct
35460
35461# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35462# DIR into the resulting binary and the resulting library dependency is
35463# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35464# library is relocated.
35465hardcode_direct_absolute=$hardcode_direct_absolute
35466
35467# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35468# into the resulting binary.
35469hardcode_minus_L=$hardcode_minus_L
35470
35471# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35472# into the resulting binary.
35473hardcode_shlibpath_var=$hardcode_shlibpath_var
35474
35475# Set to "yes" if building a shared library automatically hardcodes DIR
35476# into the library and all subsequent libraries and executables linked
35477# against it.
35478hardcode_automatic=$hardcode_automatic
35479
35480# Set to yes if linker adds runtime paths of dependent libraries
35481# to runtime path list.
35482inherit_rpath=$inherit_rpath
35483
35484# Whether libtool must link a program against all its dependency libraries.
35485link_all_deplibs=$link_all_deplibs
35486
35487# Set to "yes" if exported symbols are required.
35488always_export_symbols=$always_export_symbols
35489
35490# The commands to list exported symbols.
35491export_symbols_cmds=$lt_export_symbols_cmds
35492
35493# Symbols that should not be listed in the preloaded symbols.
35494exclude_expsyms=$lt_exclude_expsyms
35495
35496# Symbols that must always be exported.
35497include_expsyms=$lt_include_expsyms
35498
35499# Commands necessary for linking programs (against libraries) with templates.
35500prelink_cmds=$lt_prelink_cmds
35501
35502# Commands necessary for finishing linking programs.
35503postlink_cmds=$lt_postlink_cmds
35504
35505# Specify filename containing input files.
35506file_list_spec=$lt_file_list_spec
35507
35508# How to hardcode a shared library path into an executable.
35509hardcode_action=$hardcode_action
35510
35511# ### END LIBTOOL CONFIG
35512
35513_LT_EOF
35514
35515 case $host_os in
35516 aix3*)
35517 cat <<\_LT_EOF >> "$cfgfile"
35518# AIX sometimes has problems with the GCC collect2 program. For some
35519# reason, if we set the COLLECT_NAMES environment variable, the problems
35520# vanish in a puff of smoke.
35521if test "X${COLLECT_NAMES+set}" != Xset; then
35522 COLLECT_NAMES=
35523 export COLLECT_NAMES
35524fi
35525_LT_EOF
35526 ;;
35527 esac
35528
35529
35530ltmain="$ac_aux_dir/ltmain.sh"
35531
35532
35533 # We use sed instead of cat because bash on DJGPP gets confused if
35534 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35535 # text mode, it properly converts lines to CR/LF. This bash problem
35536 # is reportedly fixed, but why not run on old versions too?
35537 sed '$q' "$ltmain" >> "$cfgfile" \
35538 || (rm -f "$cfgfile"; exit 1)
35539
35540 if test x"$xsi_shell" = xyes; then
35541 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
35542func_dirname ()\
35543{\
35544\ case ${1} in\
35545\ */*) func_dirname_result="${1%/*}${2}" ;;\
35546\ * ) func_dirname_result="${3}" ;;\
35547\ esac\
35548} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
35549 && mv -f "$cfgfile.tmp" "$cfgfile" \
35550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35551test 0 -eq $? || _lt_function_replace_fail=:
35552
35553
35554 sed -e '/^func_basename ()$/,/^} # func_basename /c\
35555func_basename ()\
35556{\
35557\ func_basename_result="${1##*/}"\
35558} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
35559 && mv -f "$cfgfile.tmp" "$cfgfile" \
35560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35561test 0 -eq $? || _lt_function_replace_fail=:
35562
35563
35564 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
35565func_dirname_and_basename ()\
35566{\
35567\ case ${1} in\
35568\ */*) func_dirname_result="${1%/*}${2}" ;;\
35569\ * ) func_dirname_result="${3}" ;;\
35570\ esac\
35571\ func_basename_result="${1##*/}"\
35572} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
35573 && mv -f "$cfgfile.tmp" "$cfgfile" \
35574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35575test 0 -eq $? || _lt_function_replace_fail=:
35576
35577
35578 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
35579func_stripname ()\
35580{\
35581\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
35582\ # positional parameters, so assign one to ordinary parameter first.\
35583\ func_stripname_result=${3}\
35584\ func_stripname_result=${func_stripname_result#"${1}"}\
35585\ func_stripname_result=${func_stripname_result%"${2}"}\
35586} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
35587 && mv -f "$cfgfile.tmp" "$cfgfile" \
35588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35589test 0 -eq $? || _lt_function_replace_fail=:
35590
35591
35592 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
35593func_split_long_opt ()\
35594{\
35595\ func_split_long_opt_name=${1%%=*}\
35596\ func_split_long_opt_arg=${1#*=}\
35597} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
35598 && mv -f "$cfgfile.tmp" "$cfgfile" \
35599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35600test 0 -eq $? || _lt_function_replace_fail=:
35601
35602
35603 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
35604func_split_short_opt ()\
35605{\
35606\ func_split_short_opt_arg=${1#??}\
35607\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
35608} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
35609 && mv -f "$cfgfile.tmp" "$cfgfile" \
35610 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35611test 0 -eq $? || _lt_function_replace_fail=:
35612
35613
35614 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
35615func_lo2o ()\
35616{\
35617\ case ${1} in\
35618\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
35619\ *) func_lo2o_result=${1} ;;\
35620\ esac\
35621} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
35622 && mv -f "$cfgfile.tmp" "$cfgfile" \
35623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35624test 0 -eq $? || _lt_function_replace_fail=:
35625
35626
35627 sed -e '/^func_xform ()$/,/^} # func_xform /c\
35628func_xform ()\
35629{\
35630 func_xform_result=${1%.*}.lo\
35631} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
35632 && mv -f "$cfgfile.tmp" "$cfgfile" \
35633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35634test 0 -eq $? || _lt_function_replace_fail=:
35635
35636
35637 sed -e '/^func_arith ()$/,/^} # func_arith /c\
35638func_arith ()\
35639{\
35640 func_arith_result=$(( $* ))\
35641} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
35642 && mv -f "$cfgfile.tmp" "$cfgfile" \
35643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35644test 0 -eq $? || _lt_function_replace_fail=:
35645
35646
35647 sed -e '/^func_len ()$/,/^} # func_len /c\
35648func_len ()\
35649{\
35650 func_len_result=${#1}\
35651} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
35652 && mv -f "$cfgfile.tmp" "$cfgfile" \
35653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35654test 0 -eq $? || _lt_function_replace_fail=:
35655
35656fi
35657
35658if test x"$lt_shell_append" = xyes; then
35659 sed -e '/^func_append ()$/,/^} # func_append /c\
35660func_append ()\
35661{\
35662 eval "${1}+=\\${2}"\
35663} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
35664 && mv -f "$cfgfile.tmp" "$cfgfile" \
35665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35666test 0 -eq $? || _lt_function_replace_fail=:
35667
35668
35669 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
35670func_append_quoted ()\
35671{\
35672\ func_quote_for_eval "${2}"\
35673\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
35674} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
35675 && mv -f "$cfgfile.tmp" "$cfgfile" \
35676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35677test 0 -eq $? || _lt_function_replace_fail=:
35678
35679
35680 # Save a `func_append' function call where possible by direct use of '+='
35681 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
35682 && mv -f "$cfgfile.tmp" "$cfgfile" \
35683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35684 test 0 -eq $? || _lt_function_replace_fail=:
35685else
35686 # Save a `func_append' function call even when '+=' is not available
35687 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
35688 && mv -f "$cfgfile.tmp" "$cfgfile" \
35689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
35690 test 0 -eq $? || _lt_function_replace_fail=:
35691fi
35692
35693if test x"$_lt_function_replace_fail" = x":"; then
35694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
35695$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
35696fi
35697
35698
35699 mv -f "$cfgfile" "$ofile" ||
35700 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35701 chmod +x "$ofile"
35702
35703 ;;
35704
35705 esac
35706done # for ac_tag
35707
35708
35709as_fn_exit 0
35710_ACEOF
35711ac_clean_files=$ac_clean_files_save
35712
35713test $ac_write_fail = 0 ||
35714 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35715
35716
35717# configure is writing to config.log, and then calls config.status.
35718# config.status does its own redirection, appending to config.log.
35719# Unfortunately, on DOS this fails, as config.log is still kept open
35720# by configure, so config.status won't be able to write to it; its
35721# output is simply discarded. So we exec the FD to /dev/null,
35722# effectively closing config.log, so it can be properly (re)opened and
35723# appended to by config.status. When coming back to configure, we
35724# need to make the FD available again.
35725if test "$no_create" != yes; then
35726 ac_cs_success=:
35727 ac_config_status_args=
35728 test "$silent" = yes &&
35729 ac_config_status_args="$ac_config_status_args --quiet"
35730 exec 5>/dev/null
35731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35732 exec 5>>config.log
35733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35734 # would make configure fail if this is the last instruction.
35735 $ac_cs_success || as_fn_exit 1
35736fi
35737if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35739$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35740fi
35741