]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - zfs/configure
x86: Implement array_index_mask_nospec
[mirror_ubuntu-bionic-kernel.git] / zfs / configure
CommitLineData
70e083d2
TG
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b3a88519 3# Generated by GNU Autoconf 2.69 for zfs 0.7.5.
70e083d2
TG
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='zfs'
589PACKAGE_TARNAME='zfs'
b3a88519
CIK
590PACKAGE_VERSION='0.7.5'
591PACKAGE_STRING='zfs 0.7.5'
70e083d2
TG
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
70e083d2
TG
635DEBUG_ZFS
636DEBUG_STACKFLAGS
637DEBUG_CFLAGS
86e3c28a
CIK
638CONFIG_QAT_FALSE
639CONFIG_QAT_TRUE
640WANT_DEVNAME2DEVID_FALSE
641WANT_DEVNAME2DEVID_TRUE
70e083d2
TG
642CONFIG_KERNEL_FALSE
643CONFIG_KERNEL_TRUE
644CONFIG_USER_FALSE
645CONFIG_USER_TRUE
86e3c28a
CIK
646RM
647ZONENAME
43c96d9a 648NO_FORMAT_TRUNCATION
70e083d2 649FRAME_LARGER_THAN
86e3c28a
CIK
650LIBUDEV
651LIBATTR
70e083d2 652LIBBLKID
86e3c28a
CIK
653LIBTIRPC_CFLAGS
654LIBTIRPC
70e083d2
TG
655LIBUUID
656ZLIB
657dracutdir
658ZFS_INIT_SYSV
659modulesloaddir
660systemdpresetdir
661systemdunitdir
662ZFS_MODULE_LOAD
663ZFS_INIT_SYSTEMD
664udevruledir
665udevdir
666mounthelperdir
86e3c28a
CIK
667KERNELCPPFLAGS
668KERNELMAKE_PARAMS
669QAT_SYMBOLS
670QAT_OBJ
671QAT_SRC
672SPL_SYMBOLS
673SPL_VERSION
674SPL_OBJ
675SPL
676LINUX_SYMBOLS
677LINUX_VERSION
678LINUX_OBJ
679LINUX
680TARGET_ASM_GENERIC_FALSE
681TARGET_ASM_GENERIC_TRUE
682TARGET_ASM_I386_FALSE
683TARGET_ASM_I386_TRUE
684TARGET_ASM_X86_64_FALSE
685TARGET_ASM_X86_64_TRUE
686TARGET_ASM_DIR
70e083d2
TG
687NO_BOOL_COMPARE
688NO_UNUSED_BUT_SET_VARIABLE
689ZFS_CONFIG
70e083d2
TG
690ALIEN_VERSION
691ALIEN
692HAVE_ALIEN
693DPKGBUILD_VERSION
694DPKGBUILD
695HAVE_DPKGBUILD
696DPKG_VERSION
697DPKG
698HAVE_DPKG
699SRPM_DEFINE_COMMON
700SRPM_DEFINE_DKMS
701SRPM_DEFINE_KMOD
702SRPM_DEFINE_UTIL
703RPM_DEFINE_COMMON
704RPM_DEFINE_DKMS
705RPM_DEFINE_KMOD
706RPM_DEFINE_UTIL
707RPM_SPEC_DIR
708RPMBUILD_VERSION
709RPMBUILD
710HAVE_RPMBUILD
711RPM_VERSION
712RPM
713HAVE_RPM
714DEFINE_INITRAMFS
715DEFAULT_INITCONF_DIR
716DEFAULT_INIT_SCRIPT
717DEFAULT_INIT_DIR
718DEFAULT_PACKAGE
719VENDOR
720am__fastdepCCAS_FALSE
721am__fastdepCCAS_TRUE
722CCASDEPMODE
723CCASFLAGS
724CCAS
725CPP
726LT_SYS_LIBRARY_PATH
727OTOOL64
728OTOOL
729LIPO
730NMEDIT
731DSYMUTIL
732MANIFEST_TOOL
733RANLIB
734ac_ct_AR
735AR
736DLLTOOL
737OBJDUMP
738LN_S
739NM
740ac_ct_DUMPBIN
741DUMPBIN
742LD
743FGREP
744EGREP
745GREP
746SED
747LIBTOOL
748am__fastdepCC_FALSE
749am__fastdepCC_TRUE
750CCDEPMODE
751am__nodep
752AMDEPBACKSLASH
753AMDEP_FALSE
754AMDEP_TRUE
755am__quote
756am__include
757DEPDIR
758OBJEXT
759EXEEXT
760ac_ct_CC
761CPPFLAGS
762LDFLAGS
763CFLAGS
764CC
765am__untar
766am__tar
767AMTAR
768am__leading_dot
769SET_MAKE
770mkdir_p
771MKDIR_P
772INSTALL_STRIP_PROGRAM
773STRIP
774install_sh
775MAKEINFO
776AUTOHEADER
777AUTOMAKE
778AUTOCONF
779ACLOCAL
780VERSION
781PACKAGE
782CYGPATH_W
783am__isrc
784INSTALL_DATA
785INSTALL_SCRIPT
786INSTALL_PROGRAM
787AM_BACKSLASH
788AM_DEFAULT_VERBOSITY
789AM_DEFAULT_V
790AM_V
791MAINT
792MAINTAINER_MODE_FALSE
793MAINTAINER_MODE_TRUE
794target_os
795target_vendor
796target_cpu
797target
798host_os
799host_vendor
800host_cpu
801host
802build_os
803build_vendor
804build_cpu
805build
806ZFS_META_LT_AGE
807ZFS_META_LT_REVISION
808ZFS_META_LT_CURRENT
809ZFS_META_AUTHOR
810ZFS_META_DATA
811ZFS_META_ALIAS
812ZFS_META_LICENSE
813RELEASE
814ZFS_META_RELEASE
815ZFS_META_VERSION
816ZFS_META_NAME
817AWK
818target_alias
819host_alias
820build_alias
821LIBS
822ECHO_T
823ECHO_N
824ECHO_C
825DEFS
826mandir
827localedir
828libdir
829psdir
830pdfdir
831dvidir
832htmldir
833infodir
834docdir
835oldincludedir
836includedir
837runstatedir
838localstatedir
839sharedstatedir
840sysconfdir
841datadir
842datarootdir
843libexecdir
844sbindir
845bindir
846program_transform_name
847prefix
848exec_prefix
849PACKAGE_URL
850PACKAGE_BUGREPORT
851PACKAGE_STRING
852PACKAGE_VERSION
853PACKAGE_TARNAME
854PACKAGE_NAME
855PATH_SEPARATOR
856SHELL'
857ac_subst_files=''
858ac_user_opts='
859enable_option_checking
860enable_maintainer_mode
861enable_silent_rules
862enable_dependency_tracking
863enable_shared
864enable_static
865with_pic
866enable_fast_install
867with_aix_soname
868with_gnu_ld
869with_sysroot
870enable_libtool_lock
871with_spec
872with_config
873enable_linux_builtin
86e3c28a
CIK
874with_linux
875with_linux_obj
876with_spl
877with_spl_obj
878with_spl_timeout
879with_qat
880with_qat_obj
70e083d2
TG
881with_mounthelperdir
882with_udevdir
883with_udevruledir
884enable_systemd
885with_systemdunitdir
886with_systemdpresetdir
887with_systemdmodulesloaddir
888enable_sysvinit
889with_dracutdir
86e3c28a 890with_tirpc
70e083d2 891enable_debug
70e083d2
TG
892'
893 ac_precious_vars='build_alias
894host_alias
895target_alias
896CC
897CFLAGS
898LDFLAGS
899LIBS
900CPPFLAGS
901LT_SYS_LIBRARY_PATH
902CPP
903CCAS
904CCASFLAGS'
905
906
907# Initialize some variables set by options.
908ac_init_help=
909ac_init_version=false
910ac_unrecognized_opts=
911ac_unrecognized_sep=
912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
934# (The list follows the same order as the GNU Coding Standards.)
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
943runstatedir='${localstatedir}/run'
944includedir='${prefix}/include'
945oldincludedir='/usr/include'
946docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947infodir='${datarootdir}/info'
948htmldir='${docdir}'
949dvidir='${docdir}'
950pdfdir='${docdir}'
951psdir='${docdir}'
952libdir='${exec_prefix}/lib'
953localedir='${datarootdir}/locale'
954mandir='${datarootdir}/man'
955
956ac_prev=
957ac_dashdash=
958for ac_option
959do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -runstatedir | --runstatedir | --runstatedi | --runstated \
1197 | --runstate | --runstat | --runsta | --runst | --runs \
1198 | --run | --ru | --r)
1199 ac_prev=runstatedir ;;
1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202 | --run=* | --ru=* | --r=*)
1203 runstatedir=$ac_optarg ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1249
1250 -with-* | --with-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=\$ac_optarg ;;
1265
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310 esac
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1332 no) ;;
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1343do
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1346 case $ac_val in
1347 */ )
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1350 esac
1351 # Be sure to have absolute directory names.
1352 case $ac_val in
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 esac
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398$as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1419 fi
1420else
1421 ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
b3a88519 1455\`configure' configures zfs 0.7.5 to adapt to many kinds of systems.
70e083d2
TG
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509_ACEOF
1510
1511 cat <<\_ACEOF
1512
1513Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
b3a88519 1527 short | recursive ) echo "Configuration of zfs 0.7.5:";;
70e083d2
TG
1528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-maintainer-mode
1536 enable make rules and dependencies not useful (and
1537 sometimes confusing) to the casual installer
1538 --enable-silent-rules less verbose build output (undo: "make V=1")
1539 --disable-silent-rules verbose build output (undo: "make V=0")
1540 --enable-dependency-tracking
1541 do not reject slow dependency extractors
1542 --disable-dependency-tracking
1543 speeds up one-time build
1544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-static[=PKGS] build static libraries [default=yes]
1546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
1548 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --enable-linux-builtin Configure for builtin in-tree kernel modules
1550 [default=no]
1551 --enable-systemd install systemd unit/preset files [[default: yes]]
1552 --enable-sysvinit install SysV init scripts [default: yes]
1553 --enable-debug Enable generic debug support [default=no]
70e083d2
TG
1554
1555Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1559 both]
1560 --with-aix-soname=aix|svr4|both
1561 shared library versioning (aka "SONAME") variant to
1562 provide on AIX, [default=aix].
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1565 compiler's sysroot if not specified).
1566 --with-spec=SPEC Spec files 'generic|redhat'
1567 --with-config=CONFIG Config file 'kernel|user|all|srpm'
86e3c28a
CIK
1568 --with-linux=PATH Path to kernel source
1569 --with-linux-obj=PATH Path to kernel build objects
1570 --with-spl=PATH Path to spl source
1571 --with-spl-obj=PATH Path to spl build objects
1572 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1573 --with-qat=PATH Path to qat source
1574 --with-qat-obj=PATH Path to qat build objects
70e083d2
TG
1575 --with-mounthelperdir=DIR
1576 install mount.zfs in dir [[/sbin]]
1577 --with-udevdir=DIR install udev helpers [default=check]
1578 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1579 --with-systemdunitdir=DIR
1580 install systemd unit files in dir
1581 [[/usr/lib/systemd/system]]
1582 --with-systemdpresetdir=DIR
1583 install systemd preset files in dir
1584 [[/usr/lib/systemd/system-preset]]
1585 --with-systemdmodulesloaddir=DIR
1586 install systemd module load files into dir
1587 [[/usr/lib/modules-load.d]]
1588 --with-dracutdir=DIR install dracut helpers [default=check]
86e3c28a 1589 --with-tirpc use tirpc for xdr encoding [default=check]
70e083d2
TG
1590
1591Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 LT_SYS_LIBRARY_PATH
1600 User-defined run-time library search path.
1601 CPP C preprocessor
1602 CCAS assembler compiler command (defaults to CC)
1603 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1604
1605Use these variables to override the choices made by `configure' or to help
1606it to find libraries and programs with nonstandard names/locations.
1607
1608Report bugs to the package provider.
1609_ACEOF
1610ac_status=$?
1611fi
1612
1613if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
1619 ac_builddir=.
1620
1621case "$ac_dir" in
1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623*)
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631esac
1632ac_abs_top_builddir=$ac_pwd
1633ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634# for backward compatibility:
1635ac_top_builddir=$ac_top_build_prefix
1636
1637case $srcdir in
1638 .) # We are building in place.
1639 ac_srcdir=.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650esac
1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1661 else
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 fi || ac_status=$?
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1665 done
1666fi
1667
1668test -n "$ac_init_help" && exit $ac_status
1669if $ac_init_version; then
1670 cat <<\_ACEOF
b3a88519 1671zfs configure 0.7.5
70e083d2
TG
1672generated by GNU Autoconf 2.69
1673
1674Copyright (C) 2012 Free Software Foundation, Inc.
1675This configure script is free software; the Free Software Foundation
1676gives unlimited permission to copy, distribute and modify it.
1677_ACEOF
1678 exit
1679fi
1680
1681## ------------------------ ##
1682## Autoconf initialization. ##
1683## ------------------------ ##
1684
1685# ac_fn_c_try_compile LINENO
1686# --------------------------
1687# Try to compile conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_compile ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_compile
1722
1723# ac_fn_c_try_link LINENO
1724# -----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_link ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest$ac_exeext
1751 }; then :
1752 ac_retval=0
1753else
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767} # ac_fn_c_try_link
1768
1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770# -------------------------------------------------------
1771# Tests whether HEADER exists and can be compiled using the include files in
1772# INCLUDES, setting the cache variable VAR accordingly.
1773ac_fn_c_check_header_compile ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787 eval "$3=yes"
1788else
1789 eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798} # ac_fn_c_check_header_compile
1799
1800# ac_fn_c_try_cpp LINENO
1801# ----------------------
1802# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_cpp ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_cpp
1836
1837# ac_fn_c_try_run LINENO
1838# ----------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840# that executables *can* be run.
1841ac_fn_c_try_run ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status
1872fi
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877} # ac_fn_c_try_run
1878
1879# ac_fn_c_check_func LINENO FUNC VAR
1880# ----------------------------------
1881# Tests whether FUNC exists, setting the cache variable VAR accordingly
1882ac_fn_c_check_func ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */
1892/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894#define $2 innocuous_$2
1895
1896/* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1900
1901#ifdef __STDC__
1902# include <limits.h>
1903#else
1904# include <assert.h>
1905#endif
1906
1907#undef $2
1908
1909/* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1912#ifdef __cplusplus
1913extern "C"
1914#endif
1915char $2 ();
1916/* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919#if defined __stub_$2 || defined __stub___$2
1920choke me
1921#endif
1922
1923int
1924main ()
1925{
1926return $2 ();
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_link "$LINENO"; then :
1932 eval "$3=yes"
1933else
1934 eval "$3=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944} # ac_fn_c_check_func
1945
1946# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1947# -------------------------------------------------------
1948# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1949# the include files in INCLUDES and setting the cache variable VAR
1950# accordingly.
1951ac_fn_c_check_header_mongrel ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if eval \${$3+:} false; then :
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1959fi
1960eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963else
1964 # Is the header compilable?
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1966$as_echo_n "checking $2 usability... " >&6; }
1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$4
1970#include <$2>
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_header_compiler=yes
1974else
1975 ac_header_compiler=no
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1979$as_echo "$ac_header_compiler" >&6; }
1980
1981# Is the header present?
1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1983$as_echo_n "checking $2 presence... " >&6; }
1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h. */
1986#include <$2>
1987_ACEOF
1988if ac_fn_c_try_cpp "$LINENO"; then :
1989 ac_header_preproc=yes
1990else
1991 ac_header_preproc=no
1992fi
1993rm -f conftest.err conftest.i conftest.$ac_ext
1994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1995$as_echo "$ac_header_preproc" >&6; }
1996
1997# So? What about this header?
1998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999 yes:no: )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2001$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 ;;
2005 no:yes:* )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2007$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2009$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2011$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2013$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 ;;
2017esac
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019$as_echo_n "checking for $2... " >&6; }
2020if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022else
2023 eval "$3=\$ac_header_compiler"
2024fi
2025eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027$as_echo "$ac_res" >&6; }
2028fi
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031} # ac_fn_c_check_header_mongrel
2032cat >config.log <<_ACEOF
2033This file contains any messages produced by compilers while
2034running configure, to aid debugging if configure makes a mistake.
2035
b3a88519 2036It was created by zfs $as_me 0.7.5, which was
70e083d2
TG
2037generated by GNU Autoconf 2.69. Invocation command line was
2038
2039 $ $0 $@
2040
2041_ACEOF
2042exec 5>>config.log
2043{
2044cat <<_ASUNAME
2045## --------- ##
2046## Platform. ##
2047## --------- ##
2048
2049hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2050uname -m = `(uname -m) 2>/dev/null || echo unknown`
2051uname -r = `(uname -r) 2>/dev/null || echo unknown`
2052uname -s = `(uname -s) 2>/dev/null || echo unknown`
2053uname -v = `(uname -v) 2>/dev/null || echo unknown`
2054
2055/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2056/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2057
2058/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2059/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2060/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2061/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2062/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2063/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2064/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2065
2066_ASUNAME
2067
2068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069for as_dir in $PATH
2070do
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 $as_echo "PATH: $as_dir"
2074 done
2075IFS=$as_save_IFS
2076
2077} >&5
2078
2079cat >&5 <<_ACEOF
2080
2081
2082## ----------- ##
2083## Core tests. ##
2084## ----------- ##
2085
2086_ACEOF
2087
2088
2089# Keep a trace of the command line.
2090# Strip out --no-create and --no-recursion so they do not pile up.
2091# Strip out --silent because we don't want to record it for future runs.
2092# Also quote any args containing shell meta-characters.
2093# Make two passes to allow for proper duplicate-argument suppression.
2094ac_configure_args=
2095ac_configure_args0=
2096ac_configure_args1=
2097ac_must_keep_next=false
2098for ac_pass in 1 2
2099do
2100 for ac_arg
2101 do
2102 case $ac_arg in
2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105 | -silent | --silent | --silen | --sile | --sil)
2106 continue ;;
2107 *\'*)
2108 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2109 esac
2110 case $ac_pass in
2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2112 2)
2113 as_fn_append ac_configure_args1 " '$ac_arg'"
2114 if test $ac_must_keep_next = true; then
2115 ac_must_keep_next=false # Got value, back to normal.
2116 else
2117 case $ac_arg in
2118 *=* | --config-cache | -C | -disable-* | --disable-* \
2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121 | -with-* | --with-* | -without-* | --without-* | --x)
2122 case "$ac_configure_args0 " in
2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2124 esac
2125 ;;
2126 -* ) ac_must_keep_next=true ;;
2127 esac
2128 fi
2129 as_fn_append ac_configure_args " '$ac_arg'"
2130 ;;
2131 esac
2132 done
2133done
2134{ ac_configure_args0=; unset ac_configure_args0;}
2135{ ac_configure_args1=; unset ac_configure_args1;}
2136
2137# When interrupted or exit'd, cleanup temporary files, and complete
2138# config.log. We remove comments because anyway the quotes in there
2139# would cause problems or look ugly.
2140# WARNING: Use '\'' to represent an apostrophe within the trap.
2141# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142trap 'exit_status=$?
2143 # Save into config.log some information that might help in debugging.
2144 {
2145 echo
2146
2147 $as_echo "## ---------------- ##
2148## Cache variables. ##
2149## ---------------- ##"
2150 echo
2151 # The following way of writing the cache mishandles newlines in values,
2152(
2153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in #(
2156 *${as_nl}*)
2157 case $ac_var in #(
2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 esac
2161 case $ac_var in #(
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2165 esac ;;
2166 esac
2167 done
2168 (set) 2>&1 |
2169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2171 sed -n \
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 ;; #(
2175 *)
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 ;;
2178 esac |
2179 sort
2180)
2181 echo
2182
2183 $as_echo "## ----------------- ##
2184## Output variables. ##
2185## ----------------- ##"
2186 echo
2187 for ac_var in $ac_subst_vars
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196
2197 if test -n "$ac_subst_files"; then
2198 $as_echo "## ------------------- ##
2199## File substitutions. ##
2200## ------------------- ##"
2201 echo
2202 for ac_var in $ac_subst_files
2203 do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2211 fi
2212
2213 if test -s confdefs.h; then
2214 $as_echo "## ----------- ##
2215## confdefs.h. ##
2216## ----------- ##"
2217 echo
2218 cat confdefs.h
2219 echo
2220 fi
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2224 } >&5
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227 exit $exit_status
2228' 0
2229for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231done
2232ac_signal=0
2233
2234# confdefs.h avoids OS command line length limits that DEFS can exceed.
2235rm -f -r conftest* confdefs.h
2236
2237$as_echo "/* confdefs.h */" > confdefs.h
2238
2239# Predefined preprocessor variables.
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_NAME "$PACKAGE_NAME"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247_ACEOF
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_VERSION "$PACKAGE_VERSION"
2251_ACEOF
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_STRING "$PACKAGE_STRING"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259_ACEOF
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_URL "$PACKAGE_URL"
2263_ACEOF
2264
2265
2266# Let the site file select an alternate cache file if it wants to.
2267# Prefer an explicitly selected file to automatically selected ones.
2268ac_site_file1=NONE
2269ac_site_file2=NONE
2270if test -n "$CONFIG_SITE"; then
2271 # We do not want a PATH search for config.site.
2272 case $CONFIG_SITE in #((
2273 -*) ac_site_file1=./$CONFIG_SITE;;
2274 */*) ac_site_file1=$CONFIG_SITE;;
2275 *) ac_site_file1=./$CONFIG_SITE;;
2276 esac
2277elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2280else
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2283fi
2284for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2285do
2286 test "x$ac_site_file" = xNONE && continue
2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2291 . "$ac_site_file" \
2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294as_fn_error $? "failed to load site script $ac_site_file
2295See \`config.log' for more details" "$LINENO" 5; }
2296 fi
2297done
2298
2299if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304$as_echo "$as_me: loading cache $cache_file" >&6;}
2305 case $cache_file in
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2308 esac
2309 fi
2310else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312$as_echo "$as_me: creating cache $cache_file" >&6;}
2313 >$cache_file
2314fi
2315
2316# Check that the precious variables saved in the cache have kept the same
2317# value.
2318ac_cache_corrupted=false
2319for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2334 *)
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2364 fi
2365done
2366if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372fi
2373## -------------------- ##
2374## Main body of script. ##
2375## -------------------- ##
2376
2377ac_ext=c
2378ac_cpp='$CPP $CPPFLAGS'
2379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390
2391
2392
2393
2394 for ac_prog in gawk mawk nawk awk
2395do
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397set dummy $ac_prog; ac_word=$2
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399$as_echo_n "checking for $ac_word... " >&6; }
2400if ${ac_cv_prog_AWK+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402else
2403 if test -n "$AWK"; then
2404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_AWK="$ac_prog"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417done
2418 done
2419IFS=$as_save_IFS
2420
2421fi
2422fi
2423AWK=$ac_cv_prog_AWK
2424if test -n "$AWK"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2426$as_echo "$AWK" >&6; }
2427else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429$as_echo "no" >&6; }
2430fi
2431
2432
2433 test -n "$AWK" && break
2434done
2435
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2437$as_echo_n "checking metadata... " >&6; }
2438
2439 META="$srcdir/META"
2440 _zfs_ac_meta_type="none"
2441 if test -f "$META"; then
2442 _zfs_ac_meta_type="META file"
2443 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2444
2445 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2446 if test -n "$ZFS_META_NAME"; then
2447
2448cat >>confdefs.h <<_ACEOF
2449#define ZFS_META_NAME "$ZFS_META_NAME"
2450_ACEOF
2451
2452
2453 fi
2454
2455 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2456 if test -n "$ZFS_META_VERSION"; then
2457
2458cat >>confdefs.h <<_ACEOF
2459#define ZFS_META_VERSION "$ZFS_META_VERSION"
2460_ACEOF
2461
2462
2463 fi
2464
2465 if test -n "${_dpkg_parsechangelog}"; then
2466 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2467 | $AWK '$1 == "Version:" { print $2; }' \
2468 | cut -d- -f1)
2469 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2470 as_fn_error $? "
2471 *** Version $ZFS_META_VERSION in the META file is different than
2472 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2473 *** packaging require that these files have the same version.
2474 " "$LINENO" 5
2475 fi
2476 fi
2477
2478 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2479
2480 if test -n "${_dpkg_parsechangelog}"; then
2481 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2482 | $AWK '$1 == "Version:" { print $2; }' \
2483 | cut -d- -f2-)
2484 if test -n "${_dpkg_release}"; then
2485 ZFS_META_RELEASE=${_dpkg_release}
2486 _zfs_ac_meta_type="dpkg-parsechangelog"
2487 fi
2488 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2489 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2490 _alias=$(git describe --match=${_match} 2>/dev/null)
2491 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2492 if test -n "${_release}"; then
2493 ZFS_META_RELEASE=${_release}
2494 _zfs_ac_meta_type="git describe"
86e3c28a
CIK
2495 else
2496 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2497 _alias=$(git describe --match=${_match} 2>/dev/null)
2498 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2499 if test -n "${_release}"; then
2500 ZFS_META_RELEASE=${_release}
2501 _zfs_ac_meta_type="git describe"
2502 fi
70e083d2
TG
2503 fi
2504 fi
2505
2506 if test -n "$ZFS_META_RELEASE"; then
2507
2508cat >>confdefs.h <<_ACEOF
2509#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2510_ACEOF
2511
2512
2513
2514 RELEASE="$ZFS_META_RELEASE"
2515
2516 fi
2517
2518 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2519 if test -n "$ZFS_META_LICENSE"; then
2520
2521cat >>confdefs.h <<_ACEOF
2522#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2523_ACEOF
2524
2525
2526 fi
2527
2528 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2529 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2530 test -n "$ZFS_META_RELEASE" &&
2531 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2532
2533cat >>confdefs.h <<_ACEOF
2534#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2535_ACEOF
2536
2537
2538 fi
2539
2540 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2541 if test -n "$ZFS_META_DATA"; then
2542
2543cat >>confdefs.h <<_ACEOF
2544#define ZFS_META_DATA "$ZFS_META_DATA"
2545_ACEOF
2546
2547
2548 fi
2549
2550 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2551 if test -n "$ZFS_META_AUTHOR"; then
2552
2553cat >>confdefs.h <<_ACEOF
2554#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2555_ACEOF
2556
2557
2558 fi
2559
2560
2561 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2562 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2563 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2564 if test -n "$ZFS_META_LT_CURRENT" \
2565 -o -n "$ZFS_META_LT_REVISION" \
2566 -o -n "$ZFS_META_LT_AGE"; then
2567 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2568 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2569 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2570
2571cat >>confdefs.h <<_ACEOF
2572#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2573_ACEOF
2574
2575
2576cat >>confdefs.h <<_ACEOF
2577#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2578_ACEOF
2579
2580
2581cat >>confdefs.h <<_ACEOF
2582#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2583_ACEOF
2584
2585
2586
2587
2588 fi
2589 fi
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2592$as_echo "$_zfs_ac_meta_type" >&6; }
2593
2594
2595ac_aux_dir=
2596for ac_dir in config "$srcdir"/config; do
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2609 fi
2610done
2611if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2613fi
2614
2615# These three variables are undocumented and unsupported,
2616# and are intended to be withdrawn in a future Autoconf release.
2617# They can cause serious problems if a builder's source tree is in a directory
2618# whose full name contains unusual characters.
2619ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622
2623
2624
2625# Make sure we can run config.sub.
2626$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630$as_echo_n "checking build system type... " >&6; }
2631if ${ac_cv_build+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 ac_build_alias=$build_alias
2635test "x$ac_build_alias" = x &&
2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637test "x$ac_build_alias" = x &&
2638 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2639ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644$as_echo "$ac_cv_build" >&6; }
2645case $ac_cv_build in
2646*-*-*) ;;
2647*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2648esac
2649build=$ac_cv_build
2650ac_save_IFS=$IFS; IFS='-'
2651set x $ac_cv_build
2652shift
2653build_cpu=$1
2654build_vendor=$2
2655shift; shift
2656# Remember, the first character of IFS is used to create $*,
2657# except with old shells:
2658build_os=$*
2659IFS=$ac_save_IFS
2660case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2661
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664$as_echo_n "checking host system type... " >&6; }
2665if ${ac_cv_host+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667else
2668 if test "x$host_alias" = x; then
2669 ac_cv_host=$ac_cv_build
2670else
2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673fi
2674
2675fi
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677$as_echo "$ac_cv_host" >&6; }
2678case $ac_cv_host in
2679*-*-*) ;;
2680*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2681esac
2682host=$ac_cv_host
2683ac_save_IFS=$IFS; IFS='-'
2684set x $ac_cv_host
2685shift
2686host_cpu=$1
2687host_vendor=$2
2688shift; shift
2689# Remember, the first character of IFS is used to create $*,
2690# except with old shells:
2691host_os=$*
2692IFS=$ac_save_IFS
2693case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2694
2695
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2697$as_echo_n "checking target system type... " >&6; }
2698if ${ac_cv_target+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700else
2701 if test "x$target_alias" = x; then
2702 ac_cv_target=$ac_cv_host
2703else
2704 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706fi
2707
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2710$as_echo "$ac_cv_target" >&6; }
2711case $ac_cv_target in
2712*-*-*) ;;
2713*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2714esac
2715target=$ac_cv_target
2716ac_save_IFS=$IFS; IFS='-'
2717set x $ac_cv_target
2718shift
2719target_cpu=$1
2720target_vendor=$2
2721shift; shift
2722# Remember, the first character of IFS is used to create $*,
2723# except with old shells:
2724target_os=$*
2725IFS=$ac_save_IFS
2726case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2727
2728
2729# The aliases save the names the user supplied, while $host etc.
2730# will get canonicalized.
2731test -n "$target_alias" &&
2732 test "$program_prefix$program_suffix$program_transform_name" = \
2733 NONENONEs,x,x, &&
2734 program_prefix=${target_alias}-
2735
2736
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2738$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2739 # Check whether --enable-maintainer-mode was given.
2740if test "${enable_maintainer_mode+set}" = set; then :
2741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2742else
2743 USE_MAINTAINER_MODE=no
2744fi
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2747$as_echo "$USE_MAINTAINER_MODE" >&6; }
2748 if test $USE_MAINTAINER_MODE = yes; then
2749 MAINTAINER_MODE_TRUE=
2750 MAINTAINER_MODE_FALSE='#'
2751else
2752 MAINTAINER_MODE_TRUE='#'
2753 MAINTAINER_MODE_FALSE=
2754fi
2755
2756 MAINT=$MAINTAINER_MODE_TRUE
2757
2758
2759# Check whether --enable-silent-rules was given.
2760if test "${enable_silent_rules+set}" = set; then :
2761 enableval=$enable_silent_rules;
2762fi
2763
2764case $enable_silent_rules in # (((
2765 yes) AM_DEFAULT_VERBOSITY=0;;
2766 no) AM_DEFAULT_VERBOSITY=1;;
2767 *) AM_DEFAULT_VERBOSITY=0;;
2768esac
2769am_make=${MAKE-make}
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2771$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2772if ${am_cv_make_support_nested_variables+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if $as_echo 'TRUE=$(BAR$(V))
2776BAR0=false
2777BAR1=true
2778V=1
2779am__doit:
2780 @$(TRUE)
2781.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2782 am_cv_make_support_nested_variables=yes
2783else
2784 am_cv_make_support_nested_variables=no
2785fi
2786fi
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2788$as_echo "$am_cv_make_support_nested_variables" >&6; }
2789if test $am_cv_make_support_nested_variables = yes; then
2790 AM_V='$(V)'
2791 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2792else
2793 AM_V=$AM_DEFAULT_VERBOSITY
2794 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2795fi
2796AM_BACKSLASH='\'
2797
2798am__api_version='1.15'
2799
2800# Find a good install program. We prefer a C program (faster),
2801# so one script is as good as another. But avoid the broken or
2802# incompatible versions:
2803# SysV /etc/install, /usr/sbin/install
2804# SunOS /usr/etc/install
2805# IRIX /sbin/install
2806# AIX /bin/install
2807# AmigaOS /C/install, which installs bootblocks on floppy discs
2808# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2809# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2810# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2811# OS/2's system install, which has a completely different semantic
2812# ./install, which can be erroneously created by make from ./install.sh.
2813# Reject install programs that cannot install multiple files.
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2815$as_echo_n "checking for a BSD-compatible install... " >&6; }
2816if test -z "$INSTALL"; then
2817if ${ac_cv_path_install+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 # Account for people who put trailing slashes in PATH elements.
2826case $as_dir/ in #((
2827 ./ | .// | /[cC]/* | \
2828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2829 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2830 /usr/ucb/* ) ;;
2831 *)
2832 # OSF1 and SCO ODT 3.0 have their own names for install.
2833 # Don't use installbsd from OSF since it installs stuff as root
2834 # by default.
2835 for ac_prog in ginstall scoinst install; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2838 if test $ac_prog = install &&
2839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # AIX install. It has an incompatible calling convention.
2841 :
2842 elif test $ac_prog = install &&
2843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # program-specific install script used by HP pwplus--don't use.
2845 :
2846 else
2847 rm -rf conftest.one conftest.two conftest.dir
2848 echo one > conftest.one
2849 echo two > conftest.two
2850 mkdir conftest.dir
2851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2852 test -s conftest.one && test -s conftest.two &&
2853 test -s conftest.dir/conftest.one &&
2854 test -s conftest.dir/conftest.two
2855 then
2856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2857 break 3
2858 fi
2859 fi
2860 fi
2861 done
2862 done
2863 ;;
2864esac
2865
2866 done
2867IFS=$as_save_IFS
2868
2869rm -rf conftest.one conftest.two conftest.dir
2870
2871fi
2872 if test "${ac_cv_path_install+set}" = set; then
2873 INSTALL=$ac_cv_path_install
2874 else
2875 # As a last resort, use the slow shell script. Don't cache a
2876 # value for INSTALL within a source directory, because that will
2877 # break other packages using the cache if that directory is
2878 # removed, or if the value is a relative name.
2879 INSTALL=$ac_install_sh
2880 fi
2881fi
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2883$as_echo "$INSTALL" >&6; }
2884
2885# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2886# It thinks the first close brace ends the variable substitution.
2887test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2888
2889test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2890
2891test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2892
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2894$as_echo_n "checking whether build environment is sane... " >&6; }
2895# Reject unsafe characters in $srcdir or the absolute working directory
2896# name. Accept space and tab only in the latter.
2897am_lf='
2898'
2899case `pwd` in
2900 *[\\\"\#\$\&\'\`$am_lf]*)
2901 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2902esac
2903case $srcdir in
2904 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2905 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2906esac
2907
2908# Do 'set' in a subshell so we don't clobber the current shell's
2909# arguments. Must try -L first in case configure is actually a
2910# symlink; some systems play weird games with the mod time of symlinks
2911# (eg FreeBSD returns the mod time of the symlink's containing
2912# directory).
2913if (
2914 am_has_slept=no
2915 for am_try in 1 2; do
2916 echo "timestamp, slept: $am_has_slept" > conftest.file
2917 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2918 if test "$*" = "X"; then
2919 # -L didn't work.
2920 set X `ls -t "$srcdir/configure" conftest.file`
2921 fi
2922 if test "$*" != "X $srcdir/configure conftest.file" \
2923 && test "$*" != "X conftest.file $srcdir/configure"; then
2924
2925 # If neither matched, then we have a broken ls. This can happen
2926 # if, for instance, CONFIG_SHELL is bash and it inherits a
2927 # broken ls alias from the environment. This has actually
2928 # happened. Such a system could not be considered "sane".
2929 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2930 alias in your environment" "$LINENO" 5
2931 fi
2932 if test "$2" = conftest.file || test $am_try -eq 2; then
2933 break
2934 fi
2935 # Just in case.
2936 sleep 1
2937 am_has_slept=yes
2938 done
2939 test "$2" = conftest.file
2940 )
2941then
2942 # Ok.
2943 :
2944else
2945 as_fn_error $? "newly created file is older than distributed files!
2946Check your system clock" "$LINENO" 5
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949$as_echo "yes" >&6; }
2950# If we didn't sleep, we still need to ensure time stamps of config.status and
2951# generated files are strictly newer.
2952am_sleep_pid=
2953if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2954 ( sleep 1 ) &
2955 am_sleep_pid=$!
2956fi
2957
2958rm -f conftest.file
2959
2960test "$program_prefix" != NONE &&
2961 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2962# Use a double $ so make ignores it.
2963test "$program_suffix" != NONE &&
2964 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2965# Double any \ or $.
2966# By default was `s,x,x', remove it if useless.
2967ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2968program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2969
2970# Expand $ac_aux_dir to an absolute path.
2971am_aux_dir=`cd "$ac_aux_dir" && pwd`
2972
2973if test x"${MISSING+set}" != xset; then
2974 case $am_aux_dir in
2975 *\ * | *\ *)
2976 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2977 *)
2978 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2979 esac
2980fi
2981# Use eval to expand $SHELL
2982if eval "$MISSING --is-lightweight"; then
2983 am_missing_run="$MISSING "
2984else
2985 am_missing_run=
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2987$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2988fi
2989
2990if test x"${install_sh+set}" != xset; then
2991 case $am_aux_dir in
2992 *\ * | *\ *)
2993 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2994 *)
2995 install_sh="\${SHELL} $am_aux_dir/install-sh"
2996 esac
2997fi
2998
2999# Installed binaries are usually stripped using 'strip' when the user
3000# run "make install-strip". However 'strip' might not be the right
3001# tool to use in cross-compilation environments, therefore Automake
3002# will honor the 'STRIP' environment variable to overrule this program.
3003if test "$cross_compiling" != no; then
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}strip; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if ${ac_cv_prog_STRIP+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011else
3012 if test -n "$STRIP"; then
3013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026done
3027 done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032STRIP=$ac_cv_prog_STRIP
3033if test -n "$STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3035$as_echo "$STRIP" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042fi
3043if test -z "$ac_cv_prog_STRIP"; then
3044 ac_ct_STRIP=$STRIP
3045 # Extract the first word of "strip", so it can be a program name with args.
3046set dummy strip; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051else
3052 if test -n "$ac_ct_STRIP"; then
3053 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_ac_ct_STRIP="strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066done
3067 done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3073if test -n "$ac_ct_STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3075$as_echo "$ac_ct_STRIP" >&6; }
3076else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081 if test "x$ac_ct_STRIP" = x; then
3082 STRIP=":"
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085yes:)
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088ac_tool_warned=yes ;;
3089esac
3090 STRIP=$ac_ct_STRIP
3091 fi
3092else
3093 STRIP="$ac_cv_prog_STRIP"
3094fi
3095
3096fi
3097INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3098
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3100$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3101if test -z "$MKDIR_P"; then
3102 if ${ac_cv_path_mkdir+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_prog in mkdir gmkdir; do
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3113 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3114 'mkdir (GNU coreutils) '* | \
3115 'mkdir (coreutils) '* | \
3116 'mkdir (fileutils) '4.1*)
3117 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3118 break 3;;
3119 esac
3120 done
3121 done
3122 done
3123IFS=$as_save_IFS
3124
3125fi
3126
3127 test -d ./--version && rmdir ./--version
3128 if test "${ac_cv_path_mkdir+set}" = set; then
3129 MKDIR_P="$ac_cv_path_mkdir -p"
3130 else
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 MKDIR_P="$ac_install_sh -d"
3136 fi
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3139$as_echo "$MKDIR_P" >&6; }
3140
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3142$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3143set x ${MAKE-make}
3144ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3145if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 cat >conftest.make <<\_ACEOF
3149SHELL = /bin/sh
3150all:
3151 @echo '@@@%%%=$(MAKE)=@@@%%%'
3152_ACEOF
3153# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3154case `${MAKE-make} -f conftest.make 2>/dev/null` in
3155 *@@@%%%=?*=@@@%%%*)
3156 eval ac_cv_prog_make_${ac_make}_set=yes;;
3157 *)
3158 eval ac_cv_prog_make_${ac_make}_set=no;;
3159esac
3160rm -f conftest.make
3161fi
3162if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164$as_echo "yes" >&6; }
3165 SET_MAKE=
3166else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169 SET_MAKE="MAKE=${MAKE-make}"
3170fi
3171
3172rm -rf .tst 2>/dev/null
3173mkdir .tst 2>/dev/null
3174if test -d .tst; then
3175 am__leading_dot=.
3176else
3177 am__leading_dot=_
3178fi
3179rmdir .tst 2>/dev/null
3180
3181if test "`cd $srcdir && pwd`" != "`pwd`"; then
3182 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3183 # is not polluted with repeated "-I."
3184 am__isrc=' -I$(srcdir)'
3185 # test to see if srcdir already configured
3186 if test -f $srcdir/config.status; then
3187 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3188 fi
3189fi
3190
3191# test whether we have cygpath
3192if test -z "$CYGPATH_W"; then
3193 if (cygpath --version) >/dev/null 2>/dev/null; then
3194 CYGPATH_W='cygpath -w'
3195 else
3196 CYGPATH_W=echo
3197 fi
3198fi
3199
3200
3201# Define the identity of the package.
3202 PACKAGE='zfs'
b3a88519 3203 VERSION='0.7.5'
70e083d2
TG
3204
3205
3206cat >>confdefs.h <<_ACEOF
3207#define PACKAGE "$PACKAGE"
3208_ACEOF
3209
3210
3211cat >>confdefs.h <<_ACEOF
3212#define VERSION "$VERSION"
3213_ACEOF
3214
3215# Some tools Automake needs.
3216
3217ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3218
3219
3220AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3221
3222
3223AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3224
3225
3226AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3227
3228
3229MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3230
3231# For better backward compatibility. To be removed once Automake 1.9.x
3232# dies out for good. For more background, see:
3233# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3234# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3235mkdir_p='$(MKDIR_P)'
3236
3237# We need awk for the "check" target (and possibly the TAP driver). The
3238# system "awk" is bad on some platforms.
3239# Always define AMTAR for backward compatibility. Yes, it's still used
3240# in the wild :-( We should find a proper way to deprecate it ...
3241AMTAR='$${TAR-tar}'
3242
3243
3244# We'll loop over all known methods to create a tar archive until one works.
3245_am_tools='gnutar pax cpio none'
3246
3247am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3248
3249
3250
3251
3252
3253
3254# POSIX will say in a future version that running "rm -f" with no argument
3255# is OK; and we want to be able to make that assumption in our Makefile
3256# recipes. So use an aggressive probe to check that the usage we want is
3257# actually supported "in the wild" to an acceptable degree.
3258# See automake bug#10828.
3259# To make any issue more visible, cause the running configure to be aborted
3260# by default if the 'rm' program in use doesn't match our expectations; the
3261# user can still override this though.
3262if rm -f && rm -fr && rm -rf; then : OK; else
3263 cat >&2 <<'END'
3264Oops!
3265
3266Your 'rm' program seems unable to run without file operands specified
3267on the command line, even when the '-f' option is present. This is contrary
3268to the behaviour of most rm programs out there, and not conforming with
3269the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3270
3271Please tell bug-automake@gnu.org about your system, including the value
3272of your $PATH and any error possibly output before this message. This
3273can help us improve future automake versions.
3274
3275END
3276 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3277 echo 'Configuration will proceed anyway, since you have set the' >&2
3278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3279 echo >&2
3280 else
3281 cat >&2 <<'END'
3282Aborting the configuration process, to ensure you take notice of the issue.
3283
3284You can download and install GNU coreutils to get an 'rm' implementation
3285that behaves properly: <http://www.gnu.org/software/coreutils/>.
3286
3287If you want to complete the configuration process using your problematic
3288'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3289to "yes", and re-run configure.
3290
3291END
3292 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3293 fi
3294fi
3295
3296ac_config_headers="$ac_config_headers zfs_config.h"
3297
3298
3299
3300ac_ext=c
3301ac_cpp='$CPP $CPPFLAGS'
3302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3307set dummy ${ac_tool_prefix}gcc; ac_word=$2
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309$as_echo_n "checking for $ac_word... " >&6; }
3310if ${ac_cv_prog_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312else
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327done
3328 done
3329IFS=$as_save_IFS
3330
3331fi
3332fi
3333CC=$ac_cv_prog_CC
3334if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336$as_echo "$CC" >&6; }
3337else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340fi
3341
3342
3343fi
3344if test -z "$ac_cv_prog_CC"; then
3345 ac_ct_CC=$CC
3346 # Extract the first word of "gcc", so it can be a program name with args.
3347set dummy gcc; ac_word=$2
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349$as_echo_n "checking for $ac_word... " >&6; }
3350if ${ac_cv_prog_ac_ct_CC+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352else
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_ac_ct_CC="gcc"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367done
3368 done
3369IFS=$as_save_IFS
3370
3371fi
3372fi
3373ac_ct_CC=$ac_cv_prog_ac_ct_CC
3374if test -n "$ac_ct_CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3376$as_echo "$ac_ct_CC" >&6; }
3377else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380fi
3381
3382 if test "x$ac_ct_CC" = x; then
3383 CC=""
3384 else
3385 case $cross_compiling:$ac_tool_warned in
3386yes:)
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389ac_tool_warned=yes ;;
3390esac
3391 CC=$ac_ct_CC
3392 fi
3393else
3394 CC="$ac_cv_prog_CC"
3395fi
3396
3397if test -z "$CC"; then
3398 if test -n "$ac_tool_prefix"; then
3399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3400set dummy ${ac_tool_prefix}cc; ac_word=$2
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402$as_echo_n "checking for $ac_word... " >&6; }
3403if ${ac_cv_prog_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405else
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3408else
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC="${ac_tool_prefix}cc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420done
3421 done
3422IFS=$as_save_IFS
3423
3424fi
3425fi
3426CC=$ac_cv_prog_CC
3427if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429$as_echo "$CC" >&6; }
3430else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433fi
3434
3435
3436 fi
3437fi
3438if test -z "$CC"; then
3439 # Extract the first word of "cc", so it can be a program name with args.
3440set dummy cc; ac_word=$2
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442$as_echo_n "checking for $ac_word... " >&6; }
3443if ${ac_cv_prog_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445else
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3448else
3449 ac_prog_rejected=no
3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451for as_dir in $PATH
3452do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3458 ac_prog_rejected=yes
3459 continue
3460 fi
3461 ac_cv_prog_CC="cc"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465done
3466 done
3467IFS=$as_save_IFS
3468
3469if test $ac_prog_rejected = yes; then
3470 # We found a bogon in the path, so make sure we never use it.
3471 set dummy $ac_cv_prog_CC
3472 shift
3473 if test $# != 0; then
3474 # We chose a different compiler from the bogus one.
3475 # However, it has the same basename, so the bogon will be chosen
3476 # first if we set CC to just the basename; use the full file name.
3477 shift
3478 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3479 fi
3480fi
3481fi
3482fi
3483CC=$ac_cv_prog_CC
3484if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486$as_echo "$CC" >&6; }
3487else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489$as_echo "no" >&6; }
3490fi
3491
3492
3493fi
3494if test -z "$CC"; then
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog in cl.exe
3497 do
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501$as_echo_n "checking for $ac_word... " >&6; }
3502if ${ac_cv_prog_CC+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504else
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507else
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519done
3520 done
3521IFS=$as_save_IFS
3522
3523fi
3524fi
3525CC=$ac_cv_prog_CC
3526if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528$as_echo "$CC" >&6; }
3529else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531$as_echo "no" >&6; }
3532fi
3533
3534
3535 test -n "$CC" && break
3536 done
3537fi
3538if test -z "$CC"; then
3539 ac_ct_CC=$CC
3540 for ac_prog in cl.exe
3541do
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543set dummy $ac_prog; ac_word=$2
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545$as_echo_n "checking for $ac_word... " >&6; }
3546if ${ac_cv_prog_ac_ct_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548else
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_ac_ct_CC="$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563done
3564 done
3565IFS=$as_save_IFS
3566
3567fi
3568fi
3569ac_ct_CC=$ac_cv_prog_ac_ct_CC
3570if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572$as_echo "$ac_ct_CC" >&6; }
3573else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575$as_echo "no" >&6; }
3576fi
3577
3578
3579 test -n "$ac_ct_CC" && break
3580done
3581
3582 if test "x$ac_ct_CC" = x; then
3583 CC=""
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586yes:)
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589ac_tool_warned=yes ;;
3590esac
3591 CC=$ac_ct_CC
3592 fi
3593fi
3594
3595fi
3596
3597
3598test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600as_fn_error $? "no acceptable C compiler found in \$PATH
3601See \`config.log' for more details" "$LINENO" 5; }
3602
3603# Provide some information about the compiler.
3604$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3605set X $ac_compile
3606ac_compiler=$2
3607for ac_option in --version -v -V -qversion; do
3608 { { ac_try="$ac_compiler $ac_option >&5"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614$as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3616 ac_status=$?
3617 if test -s conftest.err; then
3618 sed '10a\
3619... rest of stderr output deleted ...
3620 10q' conftest.err >conftest.er1
3621 cat conftest.er1 >&5
3622 fi
3623 rm -f conftest.er1 conftest.err
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3626done
3627
3628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630
3631int
3632main ()
3633{
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639ac_clean_files_save=$ac_clean_files
3640ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3641# Try to create an executable without -o first, disregard a.out.
3642# It will help us diagnose broken compilers, and finding out an intuition
3643# of exeext.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3645$as_echo_n "checking whether the C compiler works... " >&6; }
3646ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3647
3648# The possible output files:
3649ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3650
3651ac_rmfiles=
3652for ac_file in $ac_files
3653do
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3657 esac
3658done
3659rm -f $ac_rmfiles
3660
3661if { { ac_try="$ac_link_default"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link_default") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674# in a Makefile. We should not override ac_cv_exeext if it was cached,
3675# so that the user can short-circuit this test for compilers unknown to
3676# Autoconf.
3677for ac_file in $ac_files ''
3678do
3679 test -f "$ac_file" || continue
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3682 ;;
3683 [ab].out )
3684 # We found the default executable, but exeext='' is most
3685 # certainly right.
3686 break;;
3687 *.* )
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3689 then :; else
3690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3691 fi
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3696 # actually working.
3697 break;;
3698 * )
3699 break;;
3700 esac
3701done
3702test "$ac_cv_exeext" = no && ac_cv_exeext=
3703
3704else
3705 ac_file=''
3706fi
3707if test -z "$ac_file"; then :
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709$as_echo "no" >&6; }
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 77 "C compiler cannot create executables
3716See \`config.log' for more details" "$LINENO" 5; }
3717else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719$as_echo "yes" >&6; }
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3722$as_echo_n "checking for C compiler default output file name... " >&6; }
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3724$as_echo "$ac_file" >&6; }
3725ac_exeext=$ac_cv_exeext
3726
3727rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3728ac_clean_files=$ac_clean_files_save
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3730$as_echo_n "checking for suffix of executables... " >&6; }
3731if { { ac_try="$ac_link"
3732case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735esac
3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737$as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_link") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3743# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3744# work properly (i.e., refer to `conftest.exe'), while it won't with
3745# `rm'.
3746for ac_file in conftest.exe conftest conftest.*; do
3747 test -f "$ac_file" || continue
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3751 break;;
3752 * ) break;;
3753 esac
3754done
3755else
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3759See \`config.log' for more details" "$LINENO" 5; }
3760fi
3761rm -f conftest conftest$ac_cv_exeext
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3763$as_echo "$ac_cv_exeext" >&6; }
3764
3765rm -f conftest.$ac_ext
3766EXEEXT=$ac_cv_exeext
3767ac_exeext=$EXEEXT
3768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h. */
3770#include <stdio.h>
3771int
3772main ()
3773{
3774FILE *f = fopen ("conftest.out", "w");
3775 return ferror (f) || fclose (f) != 0;
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781ac_clean_files="$ac_clean_files conftest.out"
3782# Check that the compiler produces executables we can run. If not, either
3783# the compiler is broken, or we cross compile.
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3785$as_echo_n "checking whether we are cross compiling... " >&6; }
3786if test "$cross_compiling" != yes; then
3787 { { ac_try="$ac_link"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793$as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
3795 ac_status=$?
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3798 if { ac_try='./conftest$ac_cv_exeext'
3799 { { case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802esac
3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804$as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_try") 2>&5
3806 ac_status=$?
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; }; then
3809 cross_compiling=no
3810 else
3811 if test "$cross_compiling" = maybe; then
3812 cross_compiling=yes
3813 else
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816as_fn_error $? "cannot run C compiled programs.
3817If you meant to cross compile, use \`--host'.
3818See \`config.log' for more details" "$LINENO" 5; }
3819 fi
3820 fi
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3823$as_echo "$cross_compiling" >&6; }
3824
3825rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3826ac_clean_files=$ac_clean_files_save
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3828$as_echo_n "checking for suffix of object files... " >&6; }
3829if ${ac_cv_objext+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831else
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843rm -f conftest.o conftest.obj
3844if { { ac_try="$ac_compile"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850$as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compile") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 for ac_file in conftest.o conftest.obj conftest.*; do
3856 test -f "$ac_file" || continue;
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3860 break;;
3861 esac
3862done
3863else
3864 $as_echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869as_fn_error $? "cannot compute suffix of object files: cannot compile
3870See \`config.log' for more details" "$LINENO" 5; }
3871fi
3872rm -f conftest.$ac_cv_objext conftest.$ac_ext
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3875$as_echo "$ac_cv_objext" >&6; }
3876OBJEXT=$ac_cv_objext
3877ac_objext=$OBJEXT
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3880if ${ac_cv_c_compiler_gnu+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882else
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h. */
3885
3886int
3887main ()
3888{
3889#ifndef __GNUC__
3890 choke me
3891#endif
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_compiler_gnu=yes
3899else
3900 ac_compiler_gnu=no
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903ac_cv_c_compiler_gnu=$ac_compiler_gnu
3904
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3907$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3908if test $ac_compiler_gnu = yes; then
3909 GCC=yes
3910else
3911 GCC=
3912fi
3913ac_test_CFLAGS=${CFLAGS+set}
3914ac_save_CFLAGS=$CFLAGS
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3916$as_echo_n "checking whether $CC accepts -g... " >&6; }
3917if ${ac_cv_prog_cc_g+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919else
3920 ac_save_c_werror_flag=$ac_c_werror_flag
3921 ac_c_werror_flag=yes
3922 ac_cv_prog_cc_g=no
3923 CFLAGS="-g"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h. */
3926
3927int
3928main ()
3929{
3930
3931 ;
3932 return 0;
3933}
3934_ACEOF
3935if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_cv_prog_cc_g=yes
3937else
3938 CFLAGS=""
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941
3942int
3943main ()
3944{
3945
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_compile "$LINENO"; then :
3951
3952else
3953 ac_c_werror_flag=$ac_save_c_werror_flag
3954 CFLAGS="-g"
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957
3958int
3959main ()
3960{
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_prog_cc_g=yes
3968fi
3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970fi
3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972fi
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3977$as_echo "$ac_cv_prog_cc_g" >&6; }
3978if test "$ac_test_CFLAGS" = set; then
3979 CFLAGS=$ac_save_CFLAGS
3980elif test $ac_cv_prog_cc_g = yes; then
3981 if test "$GCC" = yes; then
3982 CFLAGS="-g -O2"
3983 else
3984 CFLAGS="-g"
3985 fi
3986else
3987 if test "$GCC" = yes; then
3988 CFLAGS="-O2"
3989 else
3990 CFLAGS=
3991 fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3994$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3995if ${ac_cv_prog_cc_c89+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997else
3998 ac_cv_prog_cc_c89=no
3999ac_save_CC=$CC
4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h. */
4002#include <stdarg.h>
4003#include <stdio.h>
4004struct stat;
4005/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4006struct buf { int x; };
4007FILE * (*rcsopen) (struct buf *, struct stat *, int);
4008static char *e (p, i)
4009 char **p;
4010 int i;
4011{
4012 return p[i];
4013}
4014static char *f (char * (*g) (char **, int), char **p, ...)
4015{
4016 char *s;
4017 va_list v;
4018 va_start (v,p);
4019 s = g (p, va_arg (v,int));
4020 va_end (v);
4021 return s;
4022}
4023
4024/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4025 function prototypes and stuff, but not '\xHH' hex character constants.
4026 These don't provoke an error unfortunately, instead are silently treated
4027 as 'x'. The following induces an error, until -std is added to get
4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4029 array size at least. It's necessary to write '\x00'==0 to get something
4030 that's true only with -std. */
4031int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4032
4033/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4034 inside strings and character constants. */
4035#define FOO(x) 'x'
4036int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4037
4038int test (int i, double x);
4039struct s1 {int (*f) (int a);};
4040struct s2 {int (*f) (double a);};
4041int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4042int argc;
4043char **argv;
4044int
4045main ()
4046{
4047return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4048 ;
4049 return 0;
4050}
4051_ACEOF
4052for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4054do
4055 CC="$ac_save_CC $ac_arg"
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_c89=$ac_arg
4058fi
4059rm -f core conftest.err conftest.$ac_objext
4060 test "x$ac_cv_prog_cc_c89" != "xno" && break
4061done
4062rm -f conftest.$ac_ext
4063CC=$ac_save_CC
4064
4065fi
4066# AC_CACHE_VAL
4067case "x$ac_cv_prog_cc_c89" in
4068 x)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4070$as_echo "none needed" >&6; } ;;
4071 xno)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4073$as_echo "unsupported" >&6; } ;;
4074 *)
4075 CC="$CC $ac_cv_prog_cc_c89"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4077$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4078esac
4079if test "x$ac_cv_prog_cc_c89" != xno; then :
4080
4081fi
4082
4083ac_ext=c
4084ac_cpp='$CPP $CPPFLAGS'
4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4095$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4096if ${am_cv_prog_cc_c_o+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098else
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h. */
4101
4102int
4103main ()
4104{
4105
4106 ;
4107 return 0;
4108}
4109_ACEOF
4110 # Make sure it works both with $CC and with simple cc.
4111 # Following AC_PROG_CC_C_O, we do the test twice because some
4112 # compilers refuse to overwrite an existing .o file with -o,
4113 # though they will create one.
4114 am_cv_prog_cc_c_o=yes
4115 for am_i in 1 2; do
4116 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4117 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } \
4121 && test -f conftest2.$ac_objext; then
4122 : OK
4123 else
4124 am_cv_prog_cc_c_o=no
4125 break
4126 fi
4127 done
4128 rm -f core conftest*
4129 unset am_i
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4132$as_echo "$am_cv_prog_cc_c_o" >&6; }
4133if test "$am_cv_prog_cc_c_o" != yes; then
4134 # Losing compiler, so override with the script.
4135 # FIXME: It is wrong to rewrite CC.
4136 # But if we don't then we get into trouble of one sort or another.
4137 # A longer-term fix would be to have automake use am__CC in this case,
4138 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4139 CC="$am_aux_dir/compile $CC"
4140fi
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147DEPDIR="${am__leading_dot}deps"
4148
4149ac_config_commands="$ac_config_commands depfiles"
4150
4151
4152am_make=${MAKE-make}
4153cat > confinc << 'END'
4154am__doit:
4155 @echo this is the am__doit target
4156.PHONY: am__doit
4157END
4158# If we don't find an include directive, just comment out the code.
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4160$as_echo_n "checking for style of include used by $am_make... " >&6; }
4161am__include="#"
4162am__quote=
4163_am_result=none
4164# First try GNU make style include.
4165echo "include confinc" > confmf
4166# Ignore all kinds of additional output from 'make'.
4167case `$am_make -s -f confmf 2> /dev/null` in #(
4168*the\ am__doit\ target*)
4169 am__include=include
4170 am__quote=
4171 _am_result=GNU
4172 ;;
4173esac
4174# Now try BSD make style include.
4175if test "$am__include" = "#"; then
4176 echo '.include "confinc"' > confmf
4177 case `$am_make -s -f confmf 2> /dev/null` in #(
4178 *the\ am__doit\ target*)
4179 am__include=.include
4180 am__quote="\""
4181 _am_result=BSD
4182 ;;
4183 esac
4184fi
4185
4186
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4188$as_echo "$_am_result" >&6; }
4189rm -f confinc confmf
4190
4191# Check whether --enable-dependency-tracking was given.
4192if test "${enable_dependency_tracking+set}" = set; then :
4193 enableval=$enable_dependency_tracking;
4194fi
4195
4196if test "x$enable_dependency_tracking" != xno; then
4197 am_depcomp="$ac_aux_dir/depcomp"
4198 AMDEPBACKSLASH='\'
4199 am__nodep='_no'
4200fi
4201 if test "x$enable_dependency_tracking" != xno; then
4202 AMDEP_TRUE=
4203 AMDEP_FALSE='#'
4204else
4205 AMDEP_TRUE='#'
4206 AMDEP_FALSE=
4207fi
4208
4209
4210
4211depcc="$CC" am_compiler_list=
4212
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4214$as_echo_n "checking dependency style of $depcc... " >&6; }
4215if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217else
4218 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4219 # We make a subdir and do the tests there. Otherwise we can end up
4220 # making bogus files that we don't know about and never remove. For
4221 # instance it was reported that on HP-UX the gcc test will end up
4222 # making a dummy file named 'D' -- because '-MD' means "put the output
4223 # in D".
4224 rm -rf conftest.dir
4225 mkdir conftest.dir
4226 # Copy depcomp to subdir because otherwise we won't find it if we're
4227 # using a relative directory.
4228 cp "$am_depcomp" conftest.dir
4229 cd conftest.dir
4230 # We will build objects and dependencies in a subdirectory because
4231 # it helps to detect inapplicable dependency modes. For instance
4232 # both Tru64's cc and ICC support -MD to output dependencies as a
4233 # side effect of compilation, but ICC will put the dependencies in
4234 # the current directory while Tru64 will put them in the object
4235 # directory.
4236 mkdir sub
4237
4238 am_cv_CC_dependencies_compiler_type=none
4239 if test "$am_compiler_list" = ""; then
4240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4241 fi
4242 am__universal=false
4243 case " $depcc " in #(
4244 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4245 esac
4246
4247 for depmode in $am_compiler_list; do
4248 # Setup a source with many dependencies, because some compilers
4249 # like to wrap large dependency lists on column 80 (with \), and
4250 # we should not choose a depcomp mode which is confused by this.
4251 #
4252 # We need to recreate these files for each test, as the compiler may
4253 # overwrite some of them when testing with obscure command lines.
4254 # This happens at least with the AIX C compiler.
4255 : > sub/conftest.c
4256 for i in 1 2 3 4 5 6; do
4257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4258 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4259 # Solaris 10 /bin/sh.
4260 echo '/* dummy */' > sub/conftst$i.h
4261 done
4262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4263
4264 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4265 # mode. It turns out that the SunPro C++ compiler does not properly
4266 # handle '-M -o', and we need to detect this. Also, some Intel
4267 # versions had trouble with output in subdirs.
4268 am__obj=sub/conftest.${OBJEXT-o}
4269 am__minus_obj="-o $am__obj"
4270 case $depmode in
4271 gcc)
4272 # This depmode causes a compiler race in universal mode.
4273 test "$am__universal" = false || continue
4274 ;;
4275 nosideeffect)
4276 # After this tag, mechanisms are not by side-effect, so they'll
4277 # only be used when explicitly requested.
4278 if test "x$enable_dependency_tracking" = xyes; then
4279 continue
4280 else
4281 break
4282 fi
4283 ;;
4284 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4285 # This compiler won't grok '-c -o', but also, the minuso test has
4286 # not run yet. These depmodes are late enough in the game, and
4287 # so weak that their functioning should not be impacted.
4288 am__obj=conftest.${OBJEXT-o}
4289 am__minus_obj=
4290 ;;
4291 none) break ;;
4292 esac
4293 if depmode=$depmode \
4294 source=sub/conftest.c object=$am__obj \
4295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4296 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4297 >/dev/null 2>conftest.err &&
4298 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4300 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4302 # icc doesn't choke on unknown options, it will just issue warnings
4303 # or remarks (even with -Werror). So we grep stderr for any message
4304 # that says an option was ignored or not supported.
4305 # When given -MP, icc 7.0 and 7.1 complain thusly:
4306 # icc: Command line warning: ignoring option '-M'; no argument required
4307 # The diagnosis changed in icc 8.0:
4308 # icc: Command line remark: option '-MP' not supported
4309 if (grep 'ignoring option' conftest.err ||
4310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4311 am_cv_CC_dependencies_compiler_type=$depmode
4312 break
4313 fi
4314 fi
4315 done
4316
4317 cd ..
4318 rm -rf conftest.dir
4319else
4320 am_cv_CC_dependencies_compiler_type=none
4321fi
4322
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4325$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4326CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4327
4328 if
4329 test "x$enable_dependency_tracking" != xno \
4330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4331 am__fastdepCC_TRUE=
4332 am__fastdepCC_FALSE='#'
4333else
4334 am__fastdepCC_TRUE='#'
4335 am__fastdepCC_FALSE=
4336fi
4337
4338
4339case `pwd` in
4340 *\ * | *\ *)
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4342$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4343esac
4344
4345
4346
4347macro_version='2.4.6'
4348macro_revision='2.4.6'
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362ltmain=$ac_aux_dir/ltmain.sh
4363
4364# Backslashify metacharacters that are still active within
4365# double-quoted strings.
4366sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4367
4368# Same as above, but do not quote variable references.
4369double_quote_subst='s/\(["`\\]\)/\\\1/g'
4370
4371# Sed substitution to delay expansion of an escaped shell variable in a
4372# double_quote_subst'ed string.
4373delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4374
4375# Sed substitution to delay expansion of an escaped single quote.
4376delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4377
4378# Sed substitution to avoid accidental globbing in evaled expressions
4379no_glob_subst='s/\*/\\\*/g'
4380
4381ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4382ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4383ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4384
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4386$as_echo_n "checking how to print strings... " >&6; }
4387# Test print first, because it will be a builtin if present.
4388if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4389 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4390 ECHO='print -r --'
4391elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4392 ECHO='printf %s\n'
4393else
4394 # Use this function as a fallback that always works.
4395 func_fallback_echo ()
4396 {
4397 eval 'cat <<_LTECHO_EOF
4398$1
4399_LTECHO_EOF'
4400 }
4401 ECHO='func_fallback_echo'
4402fi
4403
4404# func_echo_all arg...
4405# Invoke $ECHO with all args, space-separated.
4406func_echo_all ()
4407{
4408 $ECHO ""
4409}
4410
4411case $ECHO in
4412 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4413$as_echo "printf" >&6; } ;;
4414 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4415$as_echo "print -r" >&6; } ;;
4416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4417$as_echo "cat" >&6; } ;;
4418esac
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4434$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4435if ${ac_cv_path_SED+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4439 for ac_i in 1 2 3 4 5 6 7; do
4440 ac_script="$ac_script$as_nl$ac_script"
4441 done
4442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4443 { ac_script=; unset ac_script;}
4444 if test -z "$SED"; then
4445 ac_path_SED_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in sed gsed; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4455 as_fn_executable_p "$ac_path_SED" || continue
4456# Check for GNU ac_path_SED and select it if it is found.
4457 # Check for GNU $ac_path_SED
4458case `"$ac_path_SED" --version 2>&1` in
4459*GNU*)
4460 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4461*)
4462 ac_count=0
4463 $as_echo_n 0123456789 >"conftest.in"
4464 while :
4465 do
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo '' >> "conftest.nl"
4470 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_SED_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_SED="$ac_path_SED"
4476 ac_path_SED_max=$ac_count
4477 fi
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482esac
4483
4484 $ac_path_SED_found && break 3
4485 done
4486 done
4487 done
4488IFS=$as_save_IFS
4489 if test -z "$ac_cv_path_SED"; then
4490 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4491 fi
4492else
4493 ac_cv_path_SED=$SED
4494fi
4495
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4498$as_echo "$ac_cv_path_SED" >&6; }
4499 SED="$ac_cv_path_SED"
4500 rm -f conftest.sed
4501
4502test -z "$SED" && SED=sed
4503Xsed="$SED -e 1s/^X//"
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4516$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4517if ${ac_cv_path_GREP+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519else
4520 if test -z "$GREP"; then
4521 ac_path_GREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in grep ggrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_GREP" || continue
4532# Check for GNU ac_path_GREP and select it if it is found.
4533 # Check for GNU $ac_path_GREP
4534case `"$ac_path_GREP" --version 2>&1` in
4535*GNU*)
4536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4537*)
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'GREP' >> "conftest.nl"
4546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_GREP="$ac_path_GREP"
4552 ac_path_GREP_max=$ac_count
4553 fi
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560 $ac_path_GREP_found && break 3
4561 done
4562 done
4563 done
4564IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_GREP"; then
4566 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567 fi
4568else
4569 ac_cv_path_GREP=$GREP
4570fi
4571
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4574$as_echo "$ac_cv_path_GREP" >&6; }
4575 GREP="$ac_cv_path_GREP"
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4579$as_echo_n "checking for egrep... " >&6; }
4580if ${ac_cv_path_EGREP+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582else
4583 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4584 then ac_cv_path_EGREP="$GREP -E"
4585 else
4586 if test -z "$EGREP"; then
4587 ac_path_EGREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in egrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4597 as_fn_executable_p "$ac_path_EGREP" || continue
4598# Check for GNU ac_path_EGREP and select it if it is found.
4599 # Check for GNU $ac_path_EGREP
4600case `"$ac_path_EGREP" --version 2>&1` in
4601*GNU*)
4602 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4603*)
4604 ac_count=0
4605 $as_echo_n 0123456789 >"conftest.in"
4606 while :
4607 do
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo 'EGREP' >> "conftest.nl"
4612 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_EGREP="$ac_path_EGREP"
4618 ac_path_EGREP_max=$ac_count
4619 fi
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4622 done
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624esac
4625
4626 $ac_path_EGREP_found && break 3
4627 done
4628 done
4629 done
4630IFS=$as_save_IFS
4631 if test -z "$ac_cv_path_EGREP"; then
4632 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4633 fi
4634else
4635 ac_cv_path_EGREP=$EGREP
4636fi
4637
4638 fi
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4641$as_echo "$ac_cv_path_EGREP" >&6; }
4642 EGREP="$ac_cv_path_EGREP"
4643
4644
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4646$as_echo_n "checking for fgrep... " >&6; }
4647if ${ac_cv_path_FGREP+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649else
4650 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4651 then ac_cv_path_FGREP="$GREP -F"
4652 else
4653 if test -z "$FGREP"; then
4654 ac_path_FGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in fgrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 as_fn_executable_p "$ac_path_FGREP" || continue
4665# Check for GNU ac_path_FGREP and select it if it is found.
4666 # Check for GNU $ac_path_FGREP
4667case `"$ac_path_FGREP" --version 2>&1` in
4668*GNU*)
4669 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4670*)
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4674 do
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'FGREP' >> "conftest.nl"
4679 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_FGREP="$ac_path_FGREP"
4685 ac_path_FGREP_max=$ac_count
4686 fi
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691esac
4692
4693 $ac_path_FGREP_found && break 3
4694 done
4695 done
4696 done
4697IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_FGREP"; then
4699 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4700 fi
4701else
4702 ac_cv_path_FGREP=$FGREP
4703fi
4704
4705 fi
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4708$as_echo "$ac_cv_path_FGREP" >&6; }
4709 FGREP="$ac_cv_path_FGREP"
4710
4711
4712test -z "$GREP" && GREP=grep
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732# Check whether --with-gnu-ld was given.
4733if test "${with_gnu_ld+set}" = set; then :
4734 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4735else
4736 with_gnu_ld=no
4737fi
4738
4739ac_prog=ld
4740if test yes = "$GCC"; then
4741 # Check if gcc -print-prog-name=ld gives a path.
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4743$as_echo_n "checking for ld used by $CC... " >&6; }
4744 case $host in
4745 *-*-mingw*)
4746 # gcc leaves a trailing carriage return, which upsets mingw
4747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4748 *)
4749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4750 esac
4751 case $ac_prog in
4752 # Accept absolute paths.
4753 [\\/]* | ?:[\\/]*)
4754 re_direlt='/[^/][^/]*/\.\./'
4755 # Canonicalize the pathname of ld
4756 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4757 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4758 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4759 done
4760 test -z "$LD" && LD=$ac_prog
4761 ;;
4762 "")
4763 # If it fails, then pretend we aren't using GCC.
4764 ac_prog=ld
4765 ;;
4766 *)
4767 # If it is relative, then search for the first ld in PATH.
4768 with_gnu_ld=unknown
4769 ;;
4770 esac
4771elif test yes = "$with_gnu_ld"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4773$as_echo_n "checking for GNU ld... " >&6; }
4774else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4776$as_echo_n "checking for non-GNU ld... " >&6; }
4777fi
4778if ${lt_cv_path_LD+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780else
4781 if test -z "$LD"; then
4782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4783 for ac_dir in $PATH; do
4784 IFS=$lt_save_ifs
4785 test -z "$ac_dir" && ac_dir=.
4786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4787 lt_cv_path_LD=$ac_dir/$ac_prog
4788 # Check to see if the program is GNU ld. I'd rather use --version,
4789 # but apparently some variants of GNU ld only accept -v.
4790 # Break only if it was the GNU/non-GNU ld that we prefer.
4791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 test no != "$with_gnu_ld" && break
4794 ;;
4795 *)
4796 test yes != "$with_gnu_ld" && break
4797 ;;
4798 esac
4799 fi
4800 done
4801 IFS=$lt_save_ifs
4802else
4803 lt_cv_path_LD=$LD # Let the user override the test with a path.
4804fi
4805fi
4806
4807LD=$lt_cv_path_LD
4808if test -n "$LD"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4810$as_echo "$LD" >&6; }
4811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
4815test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4817$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4818if ${lt_cv_prog_gnu_ld+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820else
4821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4822case `$LD -v 2>&1 </dev/null` in
4823*GNU* | *'with BFD'*)
4824 lt_cv_prog_gnu_ld=yes
4825 ;;
4826*)
4827 lt_cv_prog_gnu_ld=no
4828 ;;
4829esac
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4832$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4833with_gnu_ld=$lt_cv_prog_gnu_ld
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4844$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4845if ${lt_cv_path_NM+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847else
4848 if test -n "$NM"; then
4849 # Let the user override the test.
4850 lt_cv_path_NM=$NM
4851else
4852 lt_nm_to_check=${ac_tool_prefix}nm
4853 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4854 lt_nm_to_check="$lt_nm_to_check nm"
4855 fi
4856 for lt_tmp_nm in $lt_nm_to_check; do
4857 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4858 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4859 IFS=$lt_save_ifs
4860 test -z "$ac_dir" && ac_dir=.
4861 tmp_nm=$ac_dir/$lt_tmp_nm
4862 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4863 # Check to see if the nm accepts a BSD-compat flag.
4864 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4865 # nm: unknown option "B" ignored
4866 # Tru64's nm complains that /dev/null is an invalid object file
4867 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4868 case $build_os in
4869 mingw*) lt_bad_file=conftest.nm/nofile ;;
4870 *) lt_bad_file=/dev/null ;;
4871 esac
4872 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4873 *$lt_bad_file* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4875 break 2
4876 ;;
4877 *)
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4879 */dev/null*)
4880 lt_cv_path_NM="$tmp_nm -p"
4881 break 2
4882 ;;
4883 *)
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4886 ;;
4887 esac
4888 ;;
4889 esac
4890 fi
4891 done
4892 IFS=$lt_save_ifs
4893 done
4894 : ${lt_cv_path_NM=no}
4895fi
4896fi
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898$as_echo "$lt_cv_path_NM" >&6; }
4899if test no != "$lt_cv_path_NM"; then
4900 NM=$lt_cv_path_NM
4901else
4902 # Didn't find any BSD compatible name lister, look for dumpbin.
4903 if test -n "$DUMPBIN"; then :
4904 # Let the user override the test.
4905 else
4906 if test -n "$ac_tool_prefix"; then
4907 for ac_prog in dumpbin "link -dump"
4908 do
4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if ${ac_cv_prog_DUMPBIN+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915else
4916 if test -n "$DUMPBIN"; then
4917 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4929 fi
4930done
4931 done
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936DUMPBIN=$ac_cv_prog_DUMPBIN
4937if test -n "$DUMPBIN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4939$as_echo "$DUMPBIN" >&6; }
4940else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945
4946 test -n "$DUMPBIN" && break
4947 done
4948fi
4949if test -z "$DUMPBIN"; then
4950 ac_ct_DUMPBIN=$DUMPBIN
4951 for ac_prog in dumpbin "link -dump"
4952do
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954set dummy $ac_prog; ac_word=$2
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956$as_echo_n "checking for $ac_word... " >&6; }
4957if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959else
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974done
4975 done
4976IFS=$as_save_IFS
4977
4978fi
4979fi
4980ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981if test -n "$ac_ct_DUMPBIN"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4983$as_echo "$ac_ct_DUMPBIN" >&6; }
4984else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988
4989
4990 test -n "$ac_ct_DUMPBIN" && break
4991done
4992
4993 if test "x$ac_ct_DUMPBIN" = x; then
4994 DUMPBIN=":"
4995 else
4996 case $cross_compiling:$ac_tool_warned in
4997yes:)
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000ac_tool_warned=yes ;;
5001esac
5002 DUMPBIN=$ac_ct_DUMPBIN
5003 fi
5004fi
5005
5006 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5007 *COFF*)
5008 DUMPBIN="$DUMPBIN -symbols -headers"
5009 ;;
5010 *)
5011 DUMPBIN=:
5012 ;;
5013 esac
5014 fi
5015
5016 if test : != "$DUMPBIN"; then
5017 NM=$DUMPBIN
5018 fi
5019fi
5020test -z "$NM" && NM=nm
5021
5022
5023
5024
5025
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5028$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5029if ${lt_cv_nm_interface+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 lt_cv_nm_interface="BSD nm"
5033 echo "int some_variable = 0;" > conftest.$ac_ext
5034 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5035 (eval "$ac_compile" 2>conftest.err)
5036 cat conftest.err >&5
5037 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5038 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5039 cat conftest.err >&5
5040 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5041 cat conftest.out >&5
5042 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043 lt_cv_nm_interface="MS dumpbin"
5044 fi
5045 rm -f conftest*
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5048$as_echo "$lt_cv_nm_interface" >&6; }
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5051$as_echo_n "checking whether ln -s works... " >&6; }
5052LN_S=$as_ln_s
5053if test "$LN_S" = "ln -s"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055$as_echo "yes" >&6; }
5056else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5058$as_echo "no, using $LN_S" >&6; }
5059fi
5060
5061# find the maximum length of command line arguments
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5063$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5064if ${lt_cv_sys_max_cmd_len+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 i=0
5068 teststring=ABCD
5069
5070 case $build_os in
5071 msdosdjgpp*)
5072 # On DJGPP, this test can blow up pretty badly due to problems in libc
5073 # (any single argument exceeding 2000 bytes causes a buffer overrun
5074 # during glob expansion). Even if it were fixed, the result of this
5075 # check would be larger than it should be.
5076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5077 ;;
5078
5079 gnu*)
5080 # Under GNU Hurd, this test is not required because there is
5081 # no limit to the length of command line arguments.
5082 # Libtool will interpret -1 as no limit whatsoever
5083 lt_cv_sys_max_cmd_len=-1;
5084 ;;
5085
5086 cygwin* | mingw* | cegcc*)
5087 # On Win9x/ME, this test blows up -- it succeeds, but takes
5088 # about 5 minutes as the teststring grows exponentially.
5089 # Worse, since 9x/ME are not pre-emptively multitasking,
5090 # you end up with a "frozen" computer, even though with patience
5091 # the test eventually succeeds (with a max line length of 256k).
5092 # Instead, let's just punt: use the minimum linelength reported by
5093 # all of the supported platforms: 8192 (on NT/2K/XP).
5094 lt_cv_sys_max_cmd_len=8192;
5095 ;;
5096
5097 mint*)
5098 # On MiNT this can take a long time and run out of memory.
5099 lt_cv_sys_max_cmd_len=8192;
5100 ;;
5101
5102 amigaos*)
5103 # On AmigaOS with pdksh, this test takes hours, literally.
5104 # So we just punt and use a minimum line length of 8192.
5105 lt_cv_sys_max_cmd_len=8192;
5106 ;;
5107
5108 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5109 # This has been around since 386BSD, at least. Likely further.
5110 if test -x /sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112 elif test -x /usr/sbin/sysctl; then
5113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5114 else
5115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5116 fi
5117 # And add a safety zone
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5120 ;;
5121
5122 interix*)
5123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124 lt_cv_sys_max_cmd_len=196608
5125 ;;
5126
5127 os2*)
5128 # The test takes a long time on OS/2.
5129 lt_cv_sys_max_cmd_len=8192
5130 ;;
5131
5132 osf*)
5133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5135 # nice to cause kernel panics so lets avoid the loop below.
5136 # First set a reasonable default.
5137 lt_cv_sys_max_cmd_len=16384
5138 #
5139 if test -x /sbin/sysconfig; then
5140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5142 esac
5143 fi
5144 ;;
5145 sco3.2v5*)
5146 lt_cv_sys_max_cmd_len=102400
5147 ;;
5148 sysv5* | sco5v6* | sysv4.2uw2*)
5149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5150 if test -n "$kargmax"; then
5151 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5152 else
5153 lt_cv_sys_max_cmd_len=32768
5154 fi
5155 ;;
5156 *)
5157 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5158 if test -n "$lt_cv_sys_max_cmd_len" && \
5159 test undefined != "$lt_cv_sys_max_cmd_len"; then
5160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5162 else
5163 # Make teststring a little bigger before we do anything with it.
5164 # a 1K string should be a reasonable start.
5165 for i in 1 2 3 4 5 6 7 8; do
5166 teststring=$teststring$teststring
5167 done
5168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5169 # If test is not a shell built-in, we'll probably end up computing a
5170 # maximum length that is only half of the actual maximum length, but
5171 # we can't tell.
5172 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5173 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5174 test 17 != "$i" # 1/2 MB should be enough
5175 do
5176 i=`expr $i + 1`
5177 teststring=$teststring$teststring
5178 done
5179 # Only check the string length outside the loop.
5180 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5181 teststring=
5182 # Add a significant safety factor because C++ compilers can tack on
5183 # massive amounts of additional arguments before passing them to the
5184 # linker. It appears as though 1/2 is a usable value.
5185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5186 fi
5187 ;;
5188 esac
5189
5190fi
5191
5192if test -n "$lt_cv_sys_max_cmd_len"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5194$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5195else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5197$as_echo "none" >&6; }
5198fi
5199max_cmd_len=$lt_cv_sys_max_cmd_len
5200
5201
5202
5203
5204
5205
5206: ${CP="cp -f"}
5207: ${MV="mv -f"}
5208: ${RM="rm -f"}
5209
5210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5211 lt_unset=unset
5212else
5213 lt_unset=false
5214fi
5215
5216
5217
5218
5219
5220# test EBCDIC or ASCII
5221case `echo X|tr X '\101'` in
5222 A) # ASCII based system
5223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5224 lt_SP2NL='tr \040 \012'
5225 lt_NL2SP='tr \015\012 \040\040'
5226 ;;
5227 *) # EBCDIC based system
5228 lt_SP2NL='tr \100 \n'
5229 lt_NL2SP='tr \r\n \100\100'
5230 ;;
5231esac
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5242$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5243if ${lt_cv_to_host_file_cmd+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245else
5246 case $host in
5247 *-*-mingw* )
5248 case $build in
5249 *-*-mingw* ) # actually msys
5250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5251 ;;
5252 *-*-cygwin* )
5253 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5254 ;;
5255 * ) # otherwise, assume *nix
5256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5257 ;;
5258 esac
5259 ;;
5260 *-*-cygwin* )
5261 case $build in
5262 *-*-mingw* ) # actually msys
5263 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5264 ;;
5265 *-*-cygwin* )
5266 lt_cv_to_host_file_cmd=func_convert_file_noop
5267 ;;
5268 * ) # otherwise, assume *nix
5269 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5270 ;;
5271 esac
5272 ;;
5273 * ) # unhandled hosts (and "normal" native builds)
5274 lt_cv_to_host_file_cmd=func_convert_file_noop
5275 ;;
5276esac
5277
5278fi
5279
5280to_host_file_cmd=$lt_cv_to_host_file_cmd
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5282$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5283
5284
5285
5286
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5289$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5290if ${lt_cv_to_tool_file_cmd+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292else
5293 #assume ordinary cross tools, or native build.
5294lt_cv_to_tool_file_cmd=func_convert_file_noop
5295case $host in
5296 *-*-mingw* )
5297 case $build in
5298 *-*-mingw* ) # actually msys
5299 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5300 ;;
5301 esac
5302 ;;
5303esac
5304
5305fi
5306
5307to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5309$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5310
5311
5312
5313
5314
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5316$as_echo_n "checking for $LD option to reload object files... " >&6; }
5317if ${lt_cv_ld_reload_flag+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319else
5320 lt_cv_ld_reload_flag='-r'
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5323$as_echo "$lt_cv_ld_reload_flag" >&6; }
5324reload_flag=$lt_cv_ld_reload_flag
5325case $reload_flag in
5326"" | " "*) ;;
5327*) reload_flag=" $reload_flag" ;;
5328esac
5329reload_cmds='$LD$reload_flag -o $output$reload_objs'
5330case $host_os in
5331 cygwin* | mingw* | pw32* | cegcc*)
5332 if test yes != "$GCC"; then
5333 reload_cmds=false
5334 fi
5335 ;;
5336 darwin*)
5337 if test yes = "$GCC"; then
5338 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5339 else
5340 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5341 fi
5342 ;;
5343esac
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}objdump; ac_word=$2
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
5358if ${ac_cv_prog_OBJDUMP+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360else
5361 if test -n "$OBJDUMP"; then
5362 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376 done
5377IFS=$as_save_IFS
5378
5379fi
5380fi
5381OBJDUMP=$ac_cv_prog_OBJDUMP
5382if test -n "$OBJDUMP"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5384$as_echo "$OBJDUMP" >&6; }
5385else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388fi
5389
5390
5391fi
5392if test -z "$ac_cv_prog_OBJDUMP"; then
5393 ac_ct_OBJDUMP=$OBJDUMP
5394 # Extract the first word of "objdump", so it can be a program name with args.
5395set dummy objdump; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400else
5401 if test -n "$ac_ct_OBJDUMP"; then
5402 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416 done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5422if test -n "$ac_ct_OBJDUMP"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5424$as_echo "$ac_ct_OBJDUMP" >&6; }
5425else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430 if test "x$ac_ct_OBJDUMP" = x; then
5431 OBJDUMP="false"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 OBJDUMP=$ac_ct_OBJDUMP
5440 fi
5441else
5442 OBJDUMP="$ac_cv_prog_OBJDUMP"
5443fi
5444
5445test -z "$OBJDUMP" && OBJDUMP=objdump
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5456$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5457if ${lt_cv_deplibs_check_method+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 lt_cv_file_magic_cmd='$MAGIC_CMD'
5461lt_cv_file_magic_test_file=
5462lt_cv_deplibs_check_method='unknown'
5463# Need to set the preceding variable on all platforms that support
5464# interlibrary dependencies.
5465# 'none' -- dependencies not supported.
5466# 'unknown' -- same as none, but documents that we really don't know.
5467# 'pass_all' -- all dependencies passed with no checks.
5468# 'test_compile' -- check by making test program.
5469# 'file_magic [[regex]]' -- check by looking for files in library path
5470# that responds to the $file_magic_cmd with a given extended regex.
5471# If you have 'file' or equivalent on your system and you're not sure
5472# whether 'pass_all' will *always* work, you probably want this one.
5473
5474case $host_os in
5475aix[4-9]*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479beos*)
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
5483bsdi[45]*)
5484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5485 lt_cv_file_magic_cmd='/usr/bin/file -L'
5486 lt_cv_file_magic_test_file=/shlib/libc.so
5487 ;;
5488
5489cygwin*)
5490 # func_win32_libid is a shell function defined in ltmain.sh
5491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5492 lt_cv_file_magic_cmd='func_win32_libid'
5493 ;;
5494
5495mingw* | pw32*)
5496 # Base MSYS/MinGW do not provide the 'file' command needed by
5497 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5498 # unless we find 'file', for example because we are cross-compiling.
5499 if ( file / ) >/dev/null 2>&1; then
5500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5501 lt_cv_file_magic_cmd='func_win32_libid'
5502 else
5503 # Keep this pattern in sync with the one in func_win32_libid.
5504 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5505 lt_cv_file_magic_cmd='$OBJDUMP -f'
5506 fi
5507 ;;
5508
5509cegcc*)
5510 # use the weaker test based on 'objdump'. See mingw*.
5511 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5512 lt_cv_file_magic_cmd='$OBJDUMP -f'
5513 ;;
5514
5515darwin* | rhapsody*)
5516 lt_cv_deplibs_check_method=pass_all
5517 ;;
5518
5519freebsd* | dragonfly*)
5520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5521 case $host_cpu in
5522 i*86 )
5523 # Not sure whether the presence of OpenBSD here was a mistake.
5524 # Let's accept both of them until this is cleared up.
5525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5526 lt_cv_file_magic_cmd=/usr/bin/file
5527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5528 ;;
5529 esac
5530 else
5531 lt_cv_deplibs_check_method=pass_all
5532 fi
5533 ;;
5534
5535haiku*)
5536 lt_cv_deplibs_check_method=pass_all
5537 ;;
5538
5539hpux10.20* | hpux11*)
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 case $host_cpu in
5542 ia64*)
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5545 ;;
5546 hppa*64*)
5547 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]'
5548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5549 ;;
5550 *)
5551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5553 ;;
5554 esac
5555 ;;
5556
5557interix[3-9]*)
5558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5560 ;;
5561
5562irix5* | irix6* | nonstopux*)
5563 case $LD in
5564 *-32|*"-32 ") libmagic=32-bit;;
5565 *-n32|*"-n32 ") libmagic=N32;;
5566 *-64|*"-64 ") libmagic=64-bit;;
5567 *) libmagic=never-match;;
5568 esac
5569 lt_cv_deplibs_check_method=pass_all
5570 ;;
5571
5572# This must be glibc/ELF.
5573linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576
5577netbsd* | netbsdelf*-gnu)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5580 else
5581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5582 fi
5583 ;;
5584
5585newos6*)
5586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5587 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5589 ;;
5590
5591*nto* | *qnx*)
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595openbsd* | bitrig*)
5596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5598 else
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 fi
5601 ;;
5602
5603osf3* | osf4* | osf5*)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606
5607rdos*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611solaris*)
5612 lt_cv_deplibs_check_method=pass_all
5613 ;;
5614
5615sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5616 lt_cv_deplibs_check_method=pass_all
5617 ;;
5618
5619sysv4 | sysv4.3*)
5620 case $host_vendor in
5621 motorola)
5622 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]'
5623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5624 ;;
5625 ncr)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628 sequent)
5629 lt_cv_file_magic_cmd='/bin/file'
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5631 ;;
5632 sni)
5633 lt_cv_file_magic_cmd='/bin/file'
5634 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5635 lt_cv_file_magic_test_file=/lib/libc.so
5636 ;;
5637 siemens)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640 pc)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643 esac
5644 ;;
5645
5646tpf*)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649os2*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652esac
5653
5654fi
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5656$as_echo "$lt_cv_deplibs_check_method" >&6; }
5657
5658file_magic_glob=
5659want_nocaseglob=no
5660if test "$build" = "$host"; then
5661 case $host_os in
5662 mingw* | pw32*)
5663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5664 want_nocaseglob=yes
5665 else
5666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5667 fi
5668 ;;
5669 esac
5670fi
5671
5672file_magic_cmd=$lt_cv_file_magic_cmd
5673deplibs_check_method=$lt_cv_deplibs_check_method
5674test -z "$deplibs_check_method" && deplibs_check_method=unknown
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5699set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
5702if ${ac_cv_prog_DLLTOOL+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704else
5705 if test -n "$DLLTOOL"; then
5706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719done
5720 done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725DLLTOOL=$ac_cv_prog_DLLTOOL
5726if test -n "$DLLTOOL"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5728$as_echo "$DLLTOOL" >&6; }
5729else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734
5735fi
5736if test -z "$ac_cv_prog_DLLTOOL"; then
5737 ac_ct_DLLTOOL=$DLLTOOL
5738 # Extract the first word of "dlltool", so it can be a program name with args.
5739set dummy dlltool; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744else
5745 if test -n "$ac_ct_DLLTOOL"; then
5746 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760 done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5766if test -n "$ac_ct_DLLTOOL"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5768$as_echo "$ac_ct_DLLTOOL" >&6; }
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774 if test "x$ac_ct_DLLTOOL" = x; then
5775 DLLTOOL="false"
5776 else
5777 case $cross_compiling:$ac_tool_warned in
5778yes:)
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781ac_tool_warned=yes ;;
5782esac
5783 DLLTOOL=$ac_ct_DLLTOOL
5784 fi
5785else
5786 DLLTOOL="$ac_cv_prog_DLLTOOL"
5787fi
5788
5789test -z "$DLLTOOL" && DLLTOOL=dlltool
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5801$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5802if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804else
5805 lt_cv_sharedlib_from_linklib_cmd='unknown'
5806
5807case $host_os in
5808cygwin* | mingw* | pw32* | cegcc*)
5809 # two different shell functions defined in ltmain.sh;
5810 # decide which one to use based on capabilities of $DLLTOOL
5811 case `$DLLTOOL --help 2>&1` in
5812 *--identify-strict*)
5813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5814 ;;
5815 *)
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5817 ;;
5818 esac
5819 ;;
5820*)
5821 # fallback: assume linklib IS sharedlib
5822 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5823 ;;
5824esac
5825
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5828$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5829sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5830test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5831
5832
5833
5834
5835
5836
5837
5838
5839if test -n "$ac_tool_prefix"; then
5840 for ac_prog in ar
5841 do
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; }
5846if ${ac_cv_prog_AR+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848else
5849 if test -n "$AR"; then
5850 ac_cv_prog_AR="$AR" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863done
5864 done
5865IFS=$as_save_IFS
5866
5867fi
5868fi
5869AR=$ac_cv_prog_AR
5870if test -n "$AR"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5872$as_echo "$AR" >&6; }
5873else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875$as_echo "no" >&6; }
5876fi
5877
5878
5879 test -n "$AR" && break
5880 done
5881fi
5882if test -z "$AR"; then
5883 ac_ct_AR=$AR
5884 for ac_prog in ar
5885do
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887set dummy $ac_prog; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
5890if ${ac_cv_prog_ac_ct_AR+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892else
5893 if test -n "$ac_ct_AR"; then
5894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_AR="$ac_prog"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908 done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913ac_ct_AR=$ac_cv_prog_ac_ct_AR
5914if test -n "$ac_ct_AR"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5916$as_echo "$ac_ct_AR" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922
5923 test -n "$ac_ct_AR" && break
5924done
5925
5926 if test "x$ac_ct_AR" = x; then
5927 AR="false"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930yes:)
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933ac_tool_warned=yes ;;
5934esac
5935 AR=$ac_ct_AR
5936 fi
5937fi
5938
5939: ${AR=ar}
5940: ${AR_FLAGS=cru}
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5953$as_echo_n "checking for archiver @FILE support... " >&6; }
5954if ${lt_cv_ar_at_file+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956else
5957 lt_cv_ar_at_file=no
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h. */
5960
5961int
5962main ()
5963{
5964
5965 ;
5966 return 0;
5967}
5968_ACEOF
5969if ac_fn_c_try_compile "$LINENO"; then :
5970 echo conftest.$ac_objext > conftest.lst
5971 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5973 (eval $lt_ar_try) 2>&5
5974 ac_status=$?
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976 test $ac_status = 0; }
5977 if test 0 -eq "$ac_status"; then
5978 # Ensure the archiver fails upon bogus file names.
5979 rm -f conftest.$ac_objext libconftest.a
5980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5981 (eval $lt_ar_try) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }
5985 if test 0 -ne "$ac_status"; then
5986 lt_cv_ar_at_file=@
5987 fi
5988 fi
5989 rm -f conftest.* libconftest.a
5990
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5996$as_echo "$lt_cv_ar_at_file" >&6; }
5997
5998if test no = "$lt_cv_ar_at_file"; then
5999 archiver_list_spec=
6000else
6001 archiver_list_spec=$lt_cv_ar_at_file
6002fi
6003
6004
6005
6006
6007
6008
6009
6010if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6012set dummy ${ac_tool_prefix}strip; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
6015if ${ac_cv_prog_STRIP+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$STRIP"; then
6019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038STRIP=$ac_cv_prog_STRIP
6039if test -n "$STRIP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6041$as_echo "$STRIP" >&6; }
6042else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047
6048fi
6049if test -z "$ac_cv_prog_STRIP"; then
6050 ac_ct_STRIP=$STRIP
6051 # Extract the first word of "strip", so it can be a program name with args.
6052set dummy strip; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$ac_ct_STRIP"; then
6059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_ac_ct_STRIP="strip"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6079if test -n "$ac_ct_STRIP"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6081$as_echo "$ac_ct_STRIP" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087 if test "x$ac_ct_STRIP" = x; then
6088 STRIP=":"
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096 STRIP=$ac_ct_STRIP
6097 fi
6098else
6099 STRIP="$ac_cv_prog_STRIP"
6100fi
6101
6102test -z "$STRIP" && STRIP=:
6103
6104
6105
6106
6107
6108
6109if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113$as_echo_n "checking for $ac_word... " >&6; }
6114if ${ac_cv_prog_RANLIB+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116else
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131done
6132 done
6133IFS=$as_save_IFS
6134
6135fi
6136fi
6137RANLIB=$ac_cv_prog_RANLIB
6138if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6140$as_echo "$RANLIB" >&6; }
6141else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143$as_echo "no" >&6; }
6144fi
6145
6146
6147fi
6148if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151set dummy ranlib; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156else
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171done
6172 done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6180$as_echo "$ac_ct_RANLIB" >&6; }
6181else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186 if test "x$ac_ct_RANLIB" = x; then
6187 RANLIB=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190yes:)
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193ac_tool_warned=yes ;;
6194esac
6195 RANLIB=$ac_ct_RANLIB
6196 fi
6197else
6198 RANLIB="$ac_cv_prog_RANLIB"
6199fi
6200
6201test -z "$RANLIB" && RANLIB=:
6202
6203
6204
6205
6206
6207
6208# Determine commands to create old-style static archives.
6209old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6210old_postinstall_cmds='chmod 644 $oldlib'
6211old_postuninstall_cmds=
6212
6213if test -n "$RANLIB"; then
6214 case $host_os in
6215 bitrig* | openbsd*)
6216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6217 ;;
6218 *)
6219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6220 ;;
6221 esac
6222 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6223fi
6224
6225case $host_os in
6226 darwin*)
6227 lock_old_archive_extraction=yes ;;
6228 *)
6229 lock_old_archive_extraction=no ;;
6230esac
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270# If no C compiler was specified, use CC.
6271LTCC=${LTCC-"$CC"}
6272
6273# If no C compiler flags were specified, use CFLAGS.
6274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6275
6276# Allow CC to be a program name with arguments.
6277compiler=$CC
6278
6279
6280# Check for command to grab the raw symbol name followed by C symbol from nm.
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6282$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6283if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285else
6286
6287# These are sane defaults that work on at least a few old systems.
6288# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6289
6290# Character class describing NM global symbol codes.
6291symcode='[BCDEGRST]'
6292
6293# Regexp to match symbols that can be accessed directly from C.
6294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
6296# Define system-specific variables.
6297case $host_os in
6298aix*)
6299 symcode='[BCDT]'
6300 ;;
6301cygwin* | mingw* | pw32* | cegcc*)
6302 symcode='[ABCDGISTW]'
6303 ;;
6304hpux*)
6305 if test ia64 = "$host_cpu"; then
6306 symcode='[ABCDEGRST]'
6307 fi
6308 ;;
6309irix* | nonstopux*)
6310 symcode='[BCDEGRST]'
6311 ;;
6312osf*)
6313 symcode='[BCDEGQRST]'
6314 ;;
6315solaris*)
6316 symcode='[BDRT]'
6317 ;;
6318sco3.2v5*)
6319 symcode='[DT]'
6320 ;;
6321sysv4.2uw2*)
6322 symcode='[DT]'
6323 ;;
6324sysv5* | sco5v6* | unixware* | OpenUNIX*)
6325 symcode='[ABDT]'
6326 ;;
6327sysv4)
6328 symcode='[DFNSTU]'
6329 ;;
6330esac
6331
6332# If we're using GNU nm, then use its standard symbol codes.
6333case `$NM -V 2>&1` in
6334*GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6336esac
6337
6338if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6339 # Gets list of data symbols to import.
6340 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6341 # Adjust the below global symbol transforms to fixup imported variables.
6342 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6343 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6344 lt_c_name_lib_hook="\
6345 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6346 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6347else
6348 # Disable hooks by default.
6349 lt_cv_sys_global_symbol_to_import=
6350 lt_cdecl_hook=
6351 lt_c_name_hook=
6352 lt_c_name_lib_hook=
6353fi
6354
6355# Transform an extracted symbol line into a proper C declaration.
6356# Some systems (esp. on ia64) link data and code symbols differently,
6357# so use this general approach.
6358lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6359$lt_cdecl_hook\
6360" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6361" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6362
6363# Transform an extracted symbol line into symbol name and symbol address
6364lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6365$lt_c_name_hook\
6366" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6367" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6368
6369# Transform an extracted symbol line into symbol name with lib prefix and
6370# symbol address.
6371lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6372$lt_c_name_lib_hook\
6373" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6374" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6375" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6376
6377# Handle CRLF in mingw tool chain
6378opt_cr=
6379case $build_os in
6380mingw*)
6381 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6382 ;;
6383esac
6384
6385# Try without a prefix underscore, then with it.
6386for ac_symprfx in "" "_"; do
6387
6388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6389 symxfrm="\\1 $ac_symprfx\\2 \\2"
6390
6391 # Write the raw and C identifiers.
6392 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6393 # Fake it for dumpbin and say T for any non-static function,
6394 # D for any global variable and I for any imported variable.
6395 # Also find C++ and __fastcall symbols from MSVC++,
6396 # which start with @ or ?.
6397 lt_cv_sys_global_symbol_pipe="$AWK '"\
6398" {last_section=section; section=\$ 3};"\
6399" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6400" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6401" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6402" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6403" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6404" \$ 0!~/External *\|/{next};"\
6405" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6406" {if(hide[section]) next};"\
6407" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6408" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6409" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6410" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6411" ' prfx=^$ac_symprfx"
6412 else
6413 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6414 fi
6415 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6416
6417 # Check to see that the pipe works correctly.
6418 pipe_works=no
6419
6420 rm -f conftest*
6421 cat > conftest.$ac_ext <<_LT_EOF
6422#ifdef __cplusplus
6423extern "C" {
6424#endif
6425char nm_test_var;
6426void nm_test_func(void);
6427void nm_test_func(void){}
6428#ifdef __cplusplus
6429}
6430#endif
6431int main(){nm_test_var='a';nm_test_func();return(0);}
6432_LT_EOF
6433
6434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6436 ac_status=$?
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 # Now try to grab the symbols.
6440 nlist=conftest.nm
6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6443 ac_status=$?
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; } && test -s "$nlist"; then
6446 # Try sorting and uniquifying the output.
6447 if sort "$nlist" | uniq > "$nlist"T; then
6448 mv -f "$nlist"T "$nlist"
6449 else
6450 rm -f "$nlist"T
6451 fi
6452
6453 # Make sure that we snagged all the symbols we need.
6454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6456 cat <<_LT_EOF > conftest.$ac_ext
6457/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6458#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6459/* DATA imports from DLLs on WIN32 can't be const, because runtime
6460 relocations are performed -- see ld's documentation on pseudo-relocs. */
6461# define LT_DLSYM_CONST
6462#elif defined __osf__
6463/* This system does not cope well with relocations in const data. */
6464# define LT_DLSYM_CONST
6465#else
6466# define LT_DLSYM_CONST const
6467#endif
6468
6469#ifdef __cplusplus
6470extern "C" {
6471#endif
6472
6473_LT_EOF
6474 # Now generate the symbol file.
6475 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6476
6477 cat <<_LT_EOF >> conftest.$ac_ext
6478
6479/* The mapping between symbol names and symbols. */
6480LT_DLSYM_CONST struct {
6481 const char *name;
6482 void *address;
6483}
6484lt__PROGRAM__LTX_preloaded_symbols[] =
6485{
6486 { "@PROGRAM@", (void *) 0 },
6487_LT_EOF
6488 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6489 cat <<\_LT_EOF >> conftest.$ac_ext
6490 {0, (void *) 0}
6491};
6492
6493/* This works around a problem in FreeBSD linker */
6494#ifdef FREEBSD_WORKAROUND
6495static const void *lt_preloaded_setup() {
6496 return lt__PROGRAM__LTX_preloaded_symbols;
6497}
6498#endif
6499
6500#ifdef __cplusplus
6501}
6502#endif
6503_LT_EOF
6504 # Now try linking the two files.
6505 mv conftest.$ac_objext conftstm.$ac_objext
6506 lt_globsym_save_LIBS=$LIBS
6507 lt_globsym_save_CFLAGS=$CFLAGS
6508 LIBS=conftstm.$ac_objext
6509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6515 pipe_works=yes
6516 fi
6517 LIBS=$lt_globsym_save_LIBS
6518 CFLAGS=$lt_globsym_save_CFLAGS
6519 else
6520 echo "cannot find nm_test_func in $nlist" >&5
6521 fi
6522 else
6523 echo "cannot find nm_test_var in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6527 fi
6528 else
6529 echo "$progname: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 fi
6532 rm -rf conftest* conftst*
6533
6534 # Do not use the global_symbol_pipe unless it works.
6535 if test yes = "$pipe_works"; then
6536 break
6537 else
6538 lt_cv_sys_global_symbol_pipe=
6539 fi
6540done
6541
6542fi
6543
6544if test -z "$lt_cv_sys_global_symbol_pipe"; then
6545 lt_cv_sys_global_symbol_to_cdecl=
6546fi
6547if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6549$as_echo "failed" >&6; }
6550else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6552$as_echo "ok" >&6; }
6553fi
6554
6555# Response file support.
6556if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6557 nm_file_list_spec='@'
6558elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6559 nm_file_list_spec='@'
6560fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6599$as_echo_n "checking for sysroot... " >&6; }
6600
6601# Check whether --with-sysroot was given.
6602if test "${with_sysroot+set}" = set; then :
6603 withval=$with_sysroot;
6604else
6605 with_sysroot=no
6606fi
6607
6608
6609lt_sysroot=
6610case $with_sysroot in #(
6611 yes)
6612 if test yes = "$GCC"; then
6613 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6614 fi
6615 ;; #(
6616 /*)
6617 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6618 ;; #(
6619 no|'')
6620 ;; #(
6621 *)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6623$as_echo "$with_sysroot" >&6; }
6624 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6625 ;;
6626esac
6627
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6629$as_echo "${lt_sysroot:-no}" >&6; }
6630
6631
6632
6633
6634
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6636$as_echo_n "checking for a working dd... " >&6; }
6637if ${ac_cv_path_lt_DD+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639else
6640 printf 0123456789abcdef0123456789abcdef >conftest.i
6641cat conftest.i conftest.i >conftest2.i
6642: ${lt_DD:=$DD}
6643if test -z "$lt_DD"; then
6644 ac_path_lt_DD_found=false
6645 # Loop through the user's path and test for each of PROGNAME-LIST
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_prog in dd; do
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6654 as_fn_executable_p "$ac_path_lt_DD" || continue
6655if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6656 cmp -s conftest.i conftest.out \
6657 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6658fi
6659 $ac_path_lt_DD_found && break 3
6660 done
6661 done
6662 done
6663IFS=$as_save_IFS
6664 if test -z "$ac_cv_path_lt_DD"; then
6665 :
6666 fi
6667else
6668 ac_cv_path_lt_DD=$lt_DD
6669fi
6670
6671rm -f conftest.i conftest2.i conftest.out
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6674$as_echo "$ac_cv_path_lt_DD" >&6; }
6675
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6678$as_echo_n "checking how to truncate binary pipes... " >&6; }
6679if ${lt_cv_truncate_bin+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681else
6682 printf 0123456789abcdef0123456789abcdef >conftest.i
6683cat conftest.i conftest.i >conftest2.i
6684lt_cv_truncate_bin=
6685if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6686 cmp -s conftest.i conftest.out \
6687 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6688fi
6689rm -f conftest.i conftest2.i conftest.out
6690test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6693$as_echo "$lt_cv_truncate_bin" >&6; }
6694
6695
6696
6697
6698
6699
6700
6701# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6702func_cc_basename ()
6703{
6704 for cc_temp in $*""; do
6705 case $cc_temp in
6706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6708 \-*) ;;
6709 *) break;;
6710 esac
6711 done
6712 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6713}
6714
6715# Check whether --enable-libtool-lock was given.
6716if test "${enable_libtool_lock+set}" = set; then :
6717 enableval=$enable_libtool_lock;
6718fi
6719
6720test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6721
6722# Some flags need to be propagated to the compiler or linker for good
6723# libtool support.
6724case $host in
6725ia64-*-hpux*)
6726 # Find out what ABI is being produced by ac_compile, and set mode
6727 # options accordingly.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.$ac_objext` in
6735 *ELF-32*)
6736 HPUX_IA64_MODE=32
6737 ;;
6738 *ELF-64*)
6739 HPUX_IA64_MODE=64
6740 ;;
6741 esac
6742 fi
6743 rm -rf conftest*
6744 ;;
6745*-*-irix6*)
6746 # Find out what ABI is being produced by ac_compile, and set linker
6747 # options accordingly.
6748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 if test yes = "$lt_cv_prog_gnu_ld"; then
6755 case `/usr/bin/file conftest.$ac_objext` in
6756 *32-bit*)
6757 LD="${LD-ld} -melf32bsmip"
6758 ;;
6759 *N32*)
6760 LD="${LD-ld} -melf32bmipn32"
6761 ;;
6762 *64-bit*)
6763 LD="${LD-ld} -melf64bmip"
6764 ;;
6765 esac
6766 else
6767 case `/usr/bin/file conftest.$ac_objext` in
6768 *32-bit*)
6769 LD="${LD-ld} -32"
6770 ;;
6771 *N32*)
6772 LD="${LD-ld} -n32"
6773 ;;
6774 *64-bit*)
6775 LD="${LD-ld} -64"
6776 ;;
6777 esac
6778 fi
6779 fi
6780 rm -rf conftest*
6781 ;;
6782
6783mips64*-*linux*)
6784 # Find out what ABI is being produced by ac_compile, and set linker
6785 # options accordingly.
6786 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 emul=elf
6793 case `/usr/bin/file conftest.$ac_objext` in
6794 *32-bit*)
6795 emul="${emul}32"
6796 ;;
6797 *64-bit*)
6798 emul="${emul}64"
6799 ;;
6800 esac
6801 case `/usr/bin/file conftest.$ac_objext` in
6802 *MSB*)
6803 emul="${emul}btsmip"
6804 ;;
6805 *LSB*)
6806 emul="${emul}ltsmip"
6807 ;;
6808 esac
6809 case `/usr/bin/file conftest.$ac_objext` in
6810 *N32*)
6811 emul="${emul}n32"
6812 ;;
6813 esac
6814 LD="${LD-ld} -m $emul"
6815 fi
6816 rm -rf conftest*
6817 ;;
6818
6819x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6820s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6821 # Find out what ABI is being produced by ac_compile, and set linker
6822 # options accordingly. Note that the listed cases only cover the
6823 # situations where additional linker options are needed (such as when
6824 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6825 # vice versa); the common cases where no linker options are needed do
6826 # not appear in the list.
6827 echo 'int i;' > conftest.$ac_ext
6828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829 (eval $ac_compile) 2>&5
6830 ac_status=$?
6831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832 test $ac_status = 0; }; then
6833 case `/usr/bin/file conftest.o` in
6834 *32-bit*)
6835 case $host in
6836 x86_64-*kfreebsd*-gnu)
6837 LD="${LD-ld} -m elf_i386_fbsd"
6838 ;;
6839 x86_64-*linux*)
6840 case `/usr/bin/file conftest.o` in
6841 *x86-64*)
6842 LD="${LD-ld} -m elf32_x86_64"
6843 ;;
6844 *)
6845 LD="${LD-ld} -m elf_i386"
6846 ;;
6847 esac
6848 ;;
6849 powerpc64le-*linux*)
6850 LD="${LD-ld} -m elf32lppclinux"
6851 ;;
6852 powerpc64-*linux*)
6853 LD="${LD-ld} -m elf32ppclinux"
6854 ;;
6855 s390x-*linux*)
6856 LD="${LD-ld} -m elf_s390"
6857 ;;
6858 sparc64-*linux*)
6859 LD="${LD-ld} -m elf32_sparc"
6860 ;;
6861 esac
6862 ;;
6863 *64-bit*)
6864 case $host in
6865 x86_64-*kfreebsd*-gnu)
6866 LD="${LD-ld} -m elf_x86_64_fbsd"
6867 ;;
6868 x86_64-*linux*)
6869 LD="${LD-ld} -m elf_x86_64"
6870 ;;
6871 powerpcle-*linux*)
6872 LD="${LD-ld} -m elf64lppc"
6873 ;;
6874 powerpc-*linux*)
6875 LD="${LD-ld} -m elf64ppc"
6876 ;;
6877 s390*-*linux*|s390*-*tpf*)
6878 LD="${LD-ld} -m elf64_s390"
6879 ;;
6880 sparc*-*linux*)
6881 LD="${LD-ld} -m elf64_sparc"
6882 ;;
6883 esac
6884 ;;
6885 esac
6886 fi
6887 rm -rf conftest*
6888 ;;
6889
6890*-*-sco3.2v5*)
6891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6892 SAVE_CFLAGS=$CFLAGS
6893 CFLAGS="$CFLAGS -belf"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6895$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6896if ${lt_cv_cc_needs_belf+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898else
6899 ac_ext=c
6900ac_cpp='$CPP $CPPFLAGS'
6901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903ac_compiler_gnu=$ac_cv_c_compiler_gnu
6904
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906/* end confdefs.h. */
6907
6908int
6909main ()
6910{
6911
6912 ;
6913 return 0;
6914}
6915_ACEOF
6916if ac_fn_c_try_link "$LINENO"; then :
6917 lt_cv_cc_needs_belf=yes
6918else
6919 lt_cv_cc_needs_belf=no
6920fi
6921rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 ac_ext=c
6924ac_cpp='$CPP $CPPFLAGS'
6925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927ac_compiler_gnu=$ac_cv_c_compiler_gnu
6928
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6931$as_echo "$lt_cv_cc_needs_belf" >&6; }
6932 if test yes != "$lt_cv_cc_needs_belf"; then
6933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6934 CFLAGS=$SAVE_CFLAGS
6935 fi
6936 ;;
6937*-*solaris*)
6938 # Find out what ABI is being produced by ac_compile, and set linker
6939 # options accordingly.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 case `/usr/bin/file conftest.o` in
6947 *64-bit*)
6948 case $lt_cv_prog_gnu_ld in
6949 yes*)
6950 case $host in
6951 i?86-*-solaris*|x86_64-*-solaris*)
6952 LD="${LD-ld} -m elf_x86_64"
6953 ;;
6954 sparc*-*-solaris*)
6955 LD="${LD-ld} -m elf64_sparc"
6956 ;;
6957 esac
6958 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6959 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6960 LD=${LD-ld}_sol2
6961 fi
6962 ;;
6963 *)
6964 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6965 LD="${LD-ld} -64"
6966 fi
6967 ;;
6968 esac
6969 ;;
6970 esac
6971 fi
6972 rm -rf conftest*
6973 ;;
6974esac
6975
6976need_locks=$enable_libtool_lock
6977
6978if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6980set dummy ${ac_tool_prefix}mt; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985else
6986 if test -n "$MANIFEST_TOOL"; then
6987 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001 done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7007if test -n "$MANIFEST_TOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7009$as_echo "$MANIFEST_TOOL" >&6; }
7010else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015
7016fi
7017if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7018 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7019 # Extract the first word of "mt", so it can be a program name with args.
7020set dummy mt; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025else
7026 if test -n "$ac_ct_MANIFEST_TOOL"; then
7027 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041 done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7047if test -n "$ac_ct_MANIFEST_TOOL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7049$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7050else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7056 MANIFEST_TOOL=":"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059yes:)
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062ac_tool_warned=yes ;;
7063esac
7064 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7065 fi
7066else
7067 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7068fi
7069
7070test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7072$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7073if ${lt_cv_path_mainfest_tool+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075else
7076 lt_cv_path_mainfest_tool=no
7077 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7078 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7079 cat conftest.err >&5
7080 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7081 lt_cv_path_mainfest_tool=yes
7082 fi
7083 rm -f conftest*
7084fi
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7086$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7087if test yes != "$lt_cv_path_mainfest_tool"; then
7088 MANIFEST_TOOL=:
7089fi
7090
7091
7092
7093
7094
7095
7096 case $host_os in
7097 rhapsody* | darwin*)
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7100set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102$as_echo_n "checking for $ac_word... " >&6; }
7103if ${ac_cv_prog_DSYMUTIL+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105else
7106 if test -n "$DSYMUTIL"; then
7107 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120done
7121 done
7122IFS=$as_save_IFS
7123
7124fi
7125fi
7126DSYMUTIL=$ac_cv_prog_DSYMUTIL
7127if test -n "$DSYMUTIL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7129$as_echo "$DSYMUTIL" >&6; }
7130else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
7133fi
7134
7135
7136fi
7137if test -z "$ac_cv_prog_DSYMUTIL"; then
7138 ac_ct_DSYMUTIL=$DSYMUTIL
7139 # Extract the first word of "dsymutil", so it can be a program name with args.
7140set dummy dsymutil; ac_word=$2
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
7143if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145else
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161 done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
7166ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7167if test -n "$ac_ct_DSYMUTIL"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7169$as_echo "$ac_ct_DSYMUTIL" >&6; }
7170else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7173fi
7174
7175 if test "x$ac_ct_DSYMUTIL" = x; then
7176 DSYMUTIL=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179yes:)
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184 DSYMUTIL=$ac_ct_DSYMUTIL
7185 fi
7186else
7187 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7188fi
7189
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7192set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194$as_echo_n "checking for $ac_word... " >&6; }
7195if ${ac_cv_prog_NMEDIT+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197else
7198 if test -n "$NMEDIT"; then
7199 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213 done
7214IFS=$as_save_IFS
7215
7216fi
7217fi
7218NMEDIT=$ac_cv_prog_NMEDIT
7219if test -n "$NMEDIT"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7221$as_echo "$NMEDIT" >&6; }
7222else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226
7227
7228fi
7229if test -z "$ac_cv_prog_NMEDIT"; then
7230 ac_ct_NMEDIT=$NMEDIT
7231 # Extract the first word of "nmedit", so it can be a program name with args.
7232set dummy nmedit; ac_word=$2
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
7235if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237else
7238 if test -n "$ac_ct_NMEDIT"; then
7239 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253 done
7254IFS=$as_save_IFS
7255
7256fi
7257fi
7258ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7259if test -n "$ac_ct_NMEDIT"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7261$as_echo "$ac_ct_NMEDIT" >&6; }
7262else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267 if test "x$ac_ct_NMEDIT" = x; then
7268 NMEDIT=":"
7269 else
7270 case $cross_compiling:$ac_tool_warned in
7271yes:)
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274ac_tool_warned=yes ;;
7275esac
7276 NMEDIT=$ac_ct_NMEDIT
7277 fi
7278else
7279 NMEDIT="$ac_cv_prog_NMEDIT"
7280fi
7281
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7284set dummy ${ac_tool_prefix}lipo; ac_word=$2
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286$as_echo_n "checking for $ac_word... " >&6; }
7287if ${ac_cv_prog_LIPO+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289else
7290 if test -n "$LIPO"; then
7291 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305 done
7306IFS=$as_save_IFS
7307
7308fi
7309fi
7310LIPO=$ac_cv_prog_LIPO
7311if test -n "$LIPO"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7313$as_echo "$LIPO" >&6; }
7314else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316$as_echo "no" >&6; }
7317fi
7318
7319
7320fi
7321if test -z "$ac_cv_prog_LIPO"; then
7322 ac_ct_LIPO=$LIPO
7323 # Extract the first word of "lipo", so it can be a program name with args.
7324set dummy lipo; ac_word=$2
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326$as_echo_n "checking for $ac_word... " >&6; }
7327if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329else
7330 if test -n "$ac_ct_LIPO"; then
7331 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_ac_ct_LIPO="lipo"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345 done
7346IFS=$as_save_IFS
7347
7348fi
7349fi
7350ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7351if test -n "$ac_ct_LIPO"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7353$as_echo "$ac_ct_LIPO" >&6; }
7354else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356$as_echo "no" >&6; }
7357fi
7358
7359 if test "x$ac_ct_LIPO" = x; then
7360 LIPO=":"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363yes:)
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366ac_tool_warned=yes ;;
7367esac
7368 LIPO=$ac_ct_LIPO
7369 fi
7370else
7371 LIPO="$ac_cv_prog_LIPO"
7372fi
7373
7374 if test -n "$ac_tool_prefix"; then
7375 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7376set dummy ${ac_tool_prefix}otool; ac_word=$2
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378$as_echo_n "checking for $ac_word... " >&6; }
7379if ${ac_cv_prog_OTOOL+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381else
7382 if test -n "$OTOOL"; then
7383 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7384else
7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396done
7397 done
7398IFS=$as_save_IFS
7399
7400fi
7401fi
7402OTOOL=$ac_cv_prog_OTOOL
7403if test -n "$OTOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7405$as_echo "$OTOOL" >&6; }
7406else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408$as_echo "no" >&6; }
7409fi
7410
7411
7412fi
7413if test -z "$ac_cv_prog_OTOOL"; then
7414 ac_ct_OTOOL=$OTOOL
7415 # Extract the first word of "otool", so it can be a program name with args.
7416set dummy otool; ac_word=$2
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418$as_echo_n "checking for $ac_word... " >&6; }
7419if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421else
7422 if test -n "$ac_ct_OTOOL"; then
7423 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_OTOOL="otool"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436done
7437 done
7438IFS=$as_save_IFS
7439
7440fi
7441fi
7442ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7443if test -n "$ac_ct_OTOOL"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7445$as_echo "$ac_ct_OTOOL" >&6; }
7446else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448$as_echo "no" >&6; }
7449fi
7450
7451 if test "x$ac_ct_OTOOL" = x; then
7452 OTOOL=":"
7453 else
7454 case $cross_compiling:$ac_tool_warned in
7455yes:)
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7458ac_tool_warned=yes ;;
7459esac
7460 OTOOL=$ac_ct_OTOOL
7461 fi
7462else
7463 OTOOL="$ac_cv_prog_OTOOL"
7464fi
7465
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7468set dummy ${ac_tool_prefix}otool64; ac_word=$2
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470$as_echo_n "checking for $ac_word... " >&6; }
7471if ${ac_cv_prog_OTOOL64+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473else
7474 if test -n "$OTOOL64"; then
7475 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488done
7489 done
7490IFS=$as_save_IFS
7491
7492fi
7493fi
7494OTOOL64=$ac_cv_prog_OTOOL64
7495if test -n "$OTOOL64"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7497$as_echo "$OTOOL64" >&6; }
7498else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
7501fi
7502
7503
7504fi
7505if test -z "$ac_cv_prog_OTOOL64"; then
7506 ac_ct_OTOOL64=$OTOOL64
7507 # Extract the first word of "otool64", so it can be a program name with args.
7508set dummy otool64; ac_word=$2
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510$as_echo_n "checking for $ac_word... " >&6; }
7511if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513else
7514 if test -n "$ac_ct_OTOOL64"; then
7515 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7516else
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_ac_ct_OTOOL64="otool64"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529 done
7530IFS=$as_save_IFS
7531
7532fi
7533fi
7534ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7535if test -n "$ac_ct_OTOOL64"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7537$as_echo "$ac_ct_OTOOL64" >&6; }
7538else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
7541fi
7542
7543 if test "x$ac_ct_OTOOL64" = x; then
7544 OTOOL64=":"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547yes:)
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550ac_tool_warned=yes ;;
7551esac
7552 OTOOL64=$ac_ct_OTOOL64
7553 fi
7554else
7555 OTOOL64="$ac_cv_prog_OTOOL64"
7556fi
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7585$as_echo_n "checking for -single_module linker flag... " >&6; }
7586if ${lt_cv_apple_cc_single_mod+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588else
7589 lt_cv_apple_cc_single_mod=no
7590 if test -z "$LT_MULTI_MODULE"; then
7591 # By default we will add the -single_module flag. You can override
7592 # by either setting the environment variable LT_MULTI_MODULE
7593 # non-empty at configure time, or by adding -multi_module to the
7594 # link flags.
7595 rm -rf libconftest.dylib*
7596 echo "int foo(void){return 1;}" > conftest.c
7597 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598-dynamiclib -Wl,-single_module conftest.c" >&5
7599 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7600 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7601 _lt_result=$?
7602 # If there is a non-empty error log, and "single_module"
7603 # appears in it, assume the flag caused a linker warning
7604 if test -s conftest.err && $GREP single_module conftest.err; then
7605 cat conftest.err >&5
7606 # Otherwise, if the output was created with a 0 exit code from
7607 # the compiler, it worked.
7608 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7609 lt_cv_apple_cc_single_mod=yes
7610 else
7611 cat conftest.err >&5
7612 fi
7613 rm -rf libconftest.dylib*
7614 rm -f conftest.*
7615 fi
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7618$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7621$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7622if ${lt_cv_ld_exported_symbols_list+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624else
7625 lt_cv_ld_exported_symbols_list=no
7626 save_LDFLAGS=$LDFLAGS
7627 echo "_main" > conftest.sym
7628 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h. */
7631
7632int
7633main ()
7634{
7635
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_link "$LINENO"; then :
7641 lt_cv_ld_exported_symbols_list=yes
7642else
7643 lt_cv_ld_exported_symbols_list=no
7644fi
7645rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 LDFLAGS=$save_LDFLAGS
7648
7649fi
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7651$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7652
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7654$as_echo_n "checking for -force_load linker flag... " >&6; }
7655if ${lt_cv_ld_force_load+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657else
7658 lt_cv_ld_force_load=no
7659 cat > conftest.c << _LT_EOF
7660int forced_loaded() { return 2;}
7661_LT_EOF
7662 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7663 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7664 echo "$AR cru libconftest.a conftest.o" >&5
7665 $AR cru libconftest.a conftest.o 2>&5
7666 echo "$RANLIB libconftest.a" >&5
7667 $RANLIB libconftest.a 2>&5
7668 cat > conftest.c << _LT_EOF
7669int main() { return 0;}
7670_LT_EOF
7671 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7672 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7673 _lt_result=$?
7674 if test -s conftest.err && $GREP force_load conftest.err; then
7675 cat conftest.err >&5
7676 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7677 lt_cv_ld_force_load=yes
7678 else
7679 cat conftest.err >&5
7680 fi
7681 rm -f conftest.err libconftest.a conftest conftest.c
7682 rm -rf conftest.dSYM
7683
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7686$as_echo "$lt_cv_ld_force_load" >&6; }
7687 case $host_os in
7688 rhapsody* | darwin1.[012])
7689 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7690 darwin1.*)
7691 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7692 darwin*) # darwin 5.x on
7693 # if running on 10.5 or later, the deployment target defaults
7694 # to the OS version, if on x86, and 10.4, the deployment
7695 # target defaults to 10.4. Don't you love it?
7696 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7697 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7698 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7699 10.[012][,.]*)
7700 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7701 10.*)
7702 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7703 esac
7704 ;;
7705 esac
7706 if test yes = "$lt_cv_apple_cc_single_mod"; then
7707 _lt_dar_single_mod='$single_module'
7708 fi
7709 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7710 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7711 else
7712 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7713 fi
7714 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7715 _lt_dsymutil='~$DSYMUTIL $lib || :'
7716 else
7717 _lt_dsymutil=
7718 fi
7719 ;;
7720 esac
7721
7722# func_munge_path_list VARIABLE PATH
7723# -----------------------------------
7724# VARIABLE is name of variable containing _space_ separated list of
7725# directories to be munged by the contents of PATH, which is string
7726# having a format:
7727# "DIR[:DIR]:"
7728# string "DIR[ DIR]" will be prepended to VARIABLE
7729# ":DIR[:DIR]"
7730# string "DIR[ DIR]" will be appended to VARIABLE
7731# "DIRP[:DIRP]::[DIRA:]DIRA"
7732# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7733# "DIRA[ DIRA]" will be appended to VARIABLE
7734# "DIR[:DIR]"
7735# VARIABLE will be replaced by "DIR[ DIR]"
7736func_munge_path_list ()
7737{
7738 case x$2 in
7739 x)
7740 ;;
7741 *:)
7742 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7743 ;;
7744 x:*)
7745 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7746 ;;
7747 *::*)
7748 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7749 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7750 ;;
7751 *)
7752 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7753 ;;
7754 esac
7755}
7756
7757ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7763$as_echo_n "checking how to run the C preprocessor... " >&6; }
7764# On Suns, sometimes $CPP names a directory.
7765if test -n "$CPP" && test -d "$CPP"; then
7766 CPP=
7767fi
7768if test -z "$CPP"; then
7769 if ${ac_cv_prog_CPP+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771else
7772 # Double quotes because CPP needs to be expanded
7773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7774 do
7775 ac_preproc_ok=false
7776for ac_c_preproc_warn_flag in '' yes
7777do
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error" is here to catch this case.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h. */
7786#ifdef __STDC__
7787# include <limits.h>
7788#else
7789# include <assert.h>
7790#endif
7791 Syntax error
7792_ACEOF
7793if ac_fn_c_try_cpp "$LINENO"; then :
7794
7795else
7796 # Broken: fails on valid input.
7797continue
7798fi
7799rm -f conftest.err conftest.i conftest.$ac_ext
7800
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h. */
7805#include <ac_nonexistent.h>
7806_ACEOF
7807if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: success on invalid input.
7809continue
7810else
7811 # Passes both tests.
7812ac_preproc_ok=:
7813break
7814fi
7815rm -f conftest.err conftest.i conftest.$ac_ext
7816
7817done
7818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819rm -f conftest.i conftest.err conftest.$ac_ext
7820if $ac_preproc_ok; then :
7821 break
7822fi
7823
7824 done
7825 ac_cv_prog_CPP=$CPP
7826
7827fi
7828 CPP=$ac_cv_prog_CPP
7829else
7830 ac_cv_prog_CPP=$CPP
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7833$as_echo "$CPP" >&6; }
7834ac_preproc_ok=false
7835for ac_c_preproc_warn_flag in '' yes
7836do
7837 # Use a header file that comes with gcc, so configuring glibc
7838 # with a fresh cross-compiler works.
7839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 # <limits.h> exists even on freestanding compilers.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp. "Syntax error" is here to catch this case.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845#ifdef __STDC__
7846# include <limits.h>
7847#else
7848# include <assert.h>
7849#endif
7850 Syntax error
7851_ACEOF
7852if ac_fn_c_try_cpp "$LINENO"; then :
7853
7854else
7855 # Broken: fails on valid input.
7856continue
7857fi
7858rm -f conftest.err conftest.i conftest.$ac_ext
7859
7860 # OK, works on sane cases. Now check whether nonexistent headers
7861 # can be detected and how.
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h. */
7864#include <ac_nonexistent.h>
7865_ACEOF
7866if ac_fn_c_try_cpp "$LINENO"; then :
7867 # Broken: success on invalid input.
7868continue
7869else
7870 # Passes both tests.
7871ac_preproc_ok=:
7872break
7873fi
7874rm -f conftest.err conftest.i conftest.$ac_ext
7875
7876done
7877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7878rm -f conftest.i conftest.err conftest.$ac_ext
7879if $ac_preproc_ok; then :
7880
7881else
7882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7885See \`config.log' for more details" "$LINENO" 5; }
7886fi
7887
7888ac_ext=c
7889ac_cpp='$CPP $CPPFLAGS'
7890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7896$as_echo_n "checking for ANSI C header files... " >&6; }
7897if ${ac_cv_header_stdc+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902#include <stdlib.h>
7903#include <stdarg.h>
7904#include <string.h>
7905#include <float.h>
7906
7907int
7908main ()
7909{
7910
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_header_stdc=yes
7917else
7918 ac_cv_header_stdc=no
7919fi
7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921
7922if test $ac_cv_header_stdc = yes; then
7923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h. */
7926#include <string.h>
7927
7928_ACEOF
7929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "memchr" >/dev/null 2>&1; then :
7931
7932else
7933 ac_cv_header_stdc=no
7934fi
7935rm -f conftest*
7936
7937fi
7938
7939if test $ac_cv_header_stdc = yes; then
7940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h. */
7943#include <stdlib.h>
7944
7945_ACEOF
7946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7947 $EGREP "free" >/dev/null 2>&1; then :
7948
7949else
7950 ac_cv_header_stdc=no
7951fi
7952rm -f conftest*
7953
7954fi
7955
7956if test $ac_cv_header_stdc = yes; then
7957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7958 if test "$cross_compiling" = yes; then :
7959 :
7960else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h. */
7963#include <ctype.h>
7964#include <stdlib.h>
7965#if ((' ' & 0x0FF) == 0x020)
7966# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7967# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7968#else
7969# define ISLOWER(c) \
7970 (('a' <= (c) && (c) <= 'i') \
7971 || ('j' <= (c) && (c) <= 'r') \
7972 || ('s' <= (c) && (c) <= 'z'))
7973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7974#endif
7975
7976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7977int
7978main ()
7979{
7980 int i;
7981 for (i = 0; i < 256; i++)
7982 if (XOR (islower (i), ISLOWER (i))
7983 || toupper (i) != TOUPPER (i))
7984 return 2;
7985 return 0;
7986}
7987_ACEOF
7988if ac_fn_c_try_run "$LINENO"; then :
7989
7990else
7991 ac_cv_header_stdc=no
7992fi
7993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994 conftest.$ac_objext conftest.beam conftest.$ac_ext
7995fi
7996
7997fi
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8000$as_echo "$ac_cv_header_stdc" >&6; }
8001if test $ac_cv_header_stdc = yes; then
8002
8003$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8004
8005fi
8006
8007# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8009 inttypes.h stdint.h unistd.h
8010do :
8011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8013"
8014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8015 cat >>confdefs.h <<_ACEOF
8016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8017_ACEOF
8018
8019fi
8020
8021done
8022
8023
8024for ac_header in dlfcn.h
8025do :
8026 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8027"
8028if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8029 cat >>confdefs.h <<_ACEOF
8030#define HAVE_DLFCN_H 1
8031_ACEOF
8032
8033fi
8034
8035done
8036
8037
8038
8039
8040
8041# Set options
8042
8043
8044
8045 enable_dlopen=no
8046
8047
8048 enable_win32_dll=no
8049
8050
8051 # Check whether --enable-shared was given.
8052if test "${enable_shared+set}" = set; then :
8053 enableval=$enable_shared; p=${PACKAGE-default}
8054 case $enableval in
8055 yes) enable_shared=yes ;;
8056 no) enable_shared=no ;;
8057 *)
8058 enable_shared=no
8059 # Look at the argument we got. We use all the common list separators.
8060 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8061 for pkg in $enableval; do
8062 IFS=$lt_save_ifs
8063 if test "X$pkg" = "X$p"; then
8064 enable_shared=yes
8065 fi
8066 done
8067 IFS=$lt_save_ifs
8068 ;;
8069 esac
8070else
8071 enable_shared=yes
8072fi
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 # Check whether --enable-static was given.
8083if test "${enable_static+set}" = set; then :
8084 enableval=$enable_static; p=${PACKAGE-default}
8085 case $enableval in
8086 yes) enable_static=yes ;;
8087 no) enable_static=no ;;
8088 *)
8089 enable_static=no
8090 # Look at the argument we got. We use all the common list separators.
8091 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8092 for pkg in $enableval; do
8093 IFS=$lt_save_ifs
8094 if test "X$pkg" = "X$p"; then
8095 enable_static=yes
8096 fi
8097 done
8098 IFS=$lt_save_ifs
8099 ;;
8100 esac
8101else
8102 enable_static=yes
8103fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114# Check whether --with-pic was given.
8115if test "${with_pic+set}" = set; then :
8116 withval=$with_pic; lt_p=${PACKAGE-default}
8117 case $withval in
8118 yes|no) pic_mode=$withval ;;
8119 *)
8120 pic_mode=default
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8123 for lt_pkg in $withval; do
8124 IFS=$lt_save_ifs
8125 if test "X$lt_pkg" = "X$lt_p"; then
8126 pic_mode=yes
8127 fi
8128 done
8129 IFS=$lt_save_ifs
8130 ;;
8131 esac
8132else
8133 pic_mode=default
8134fi
8135
8136
8137
8138
8139
8140
8141
8142
8143 # Check whether --enable-fast-install was given.
8144if test "${enable_fast_install+set}" = set; then :
8145 enableval=$enable_fast_install; p=${PACKAGE-default}
8146 case $enableval in
8147 yes) enable_fast_install=yes ;;
8148 no) enable_fast_install=no ;;
8149 *)
8150 enable_fast_install=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8153 for pkg in $enableval; do
8154 IFS=$lt_save_ifs
8155 if test "X$pkg" = "X$p"; then
8156 enable_fast_install=yes
8157 fi
8158 done
8159 IFS=$lt_save_ifs
8160 ;;
8161 esac
8162else
8163 enable_fast_install=yes
8164fi
8165
8166
8167
8168
8169
8170
8171
8172
8173 shared_archive_member_spec=
8174case $host,$enable_shared in
8175power*-*-aix[5-9]*,yes)
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8177$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8178
8179# Check whether --with-aix-soname was given.
8180if test "${with_aix_soname+set}" = set; then :
8181 withval=$with_aix_soname; case $withval in
8182 aix|svr4|both)
8183 ;;
8184 *)
8185 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8186 ;;
8187 esac
8188 lt_cv_with_aix_soname=$with_aix_soname
8189else
8190 if ${lt_cv_with_aix_soname+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192else
8193 lt_cv_with_aix_soname=aix
8194fi
8195
8196 with_aix_soname=$lt_cv_with_aix_soname
8197fi
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8200$as_echo "$with_aix_soname" >&6; }
8201 if test aix != "$with_aix_soname"; then
8202 # For the AIX way of multilib, we name the shared archive member
8203 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8204 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8205 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8206 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8207 if test 64 = "${OBJECT_MODE-32}"; then
8208 shared_archive_member_spec=shr_64
8209 else
8210 shared_archive_member_spec=shr
8211 fi
8212 fi
8213 ;;
8214*)
8215 with_aix_soname=aix
8216 ;;
8217esac
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228# This can be used to rebuild libtool when needed
8229LIBTOOL_DEPS=$ltmain
8230
8231# Always use our own libtool.
8232LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263test -z "$LN_S" && LN_S="ln -s"
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278if test -n "${ZSH_VERSION+set}"; then
8279 setopt NO_GLOB_SUBST
8280fi
8281
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8283$as_echo_n "checking for objdir... " >&6; }
8284if ${lt_cv_objdir+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286else
8287 rm -f .libs 2>/dev/null
8288mkdir .libs 2>/dev/null
8289if test -d .libs; then
8290 lt_cv_objdir=.libs
8291else
8292 # MS-DOS does not allow filenames that begin with a dot.
8293 lt_cv_objdir=_libs
8294fi
8295rmdir .libs 2>/dev/null
8296fi
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8298$as_echo "$lt_cv_objdir" >&6; }
8299objdir=$lt_cv_objdir
8300
8301
8302
8303
8304
8305cat >>confdefs.h <<_ACEOF
8306#define LT_OBJDIR "$lt_cv_objdir/"
8307_ACEOF
8308
8309
8310
8311
8312case $host_os in
8313aix3*)
8314 # AIX sometimes has problems with the GCC collect2 program. For some
8315 # reason, if we set the COLLECT_NAMES environment variable, the problems
8316 # vanish in a puff of smoke.
8317 if test set != "${COLLECT_NAMES+set}"; then
8318 COLLECT_NAMES=
8319 export COLLECT_NAMES
8320 fi
8321 ;;
8322esac
8323
8324# Global variables:
8325ofile=libtool
8326can_build_shared=yes
8327
8328# All known linkers require a '.a' archive for static linking (except MSVC,
8329# which needs '.lib').
8330libext=a
8331
8332with_gnu_ld=$lt_cv_prog_gnu_ld
8333
8334old_CC=$CC
8335old_CFLAGS=$CFLAGS
8336
8337# Set sane defaults for various variables
8338test -z "$CC" && CC=cc
8339test -z "$LTCC" && LTCC=$CC
8340test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8341test -z "$LD" && LD=ld
8342test -z "$ac_objext" && ac_objext=o
8343
8344func_cc_basename $compiler
8345cc_basename=$func_cc_basename_result
8346
8347
8348# Only perform the check for file, if the check method requires it
8349test -z "$MAGIC_CMD" && MAGIC_CMD=file
8350case $deplibs_check_method in
8351file_magic*)
8352 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8354$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8355if ${lt_cv_path_MAGIC_CMD+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357else
8358 case $MAGIC_CMD in
8359[\\/*] | ?:[\\/]*)
8360 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8361 ;;
8362*)
8363 lt_save_MAGIC_CMD=$MAGIC_CMD
8364 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8366 for ac_dir in $ac_dummy; do
8367 IFS=$lt_save_ifs
8368 test -z "$ac_dir" && ac_dir=.
8369 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8370 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8371 if test -n "$file_magic_test_file"; then
8372 case $deplibs_check_method in
8373 "file_magic "*)
8374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8377 $EGREP "$file_magic_regex" > /dev/null; then
8378 :
8379 else
8380 cat <<_LT_EOF 1>&2
8381
8382*** Warning: the command libtool uses to detect shared libraries,
8383*** $file_magic_cmd, produces output that libtool cannot recognize.
8384*** The result is that libtool may fail to recognize shared libraries
8385*** as such. This will affect the creation of libtool libraries that
8386*** depend on shared libraries, but programs linked with such libtool
8387*** libraries will work regardless of this problem. Nevertheless, you
8388*** may want to report the problem to your system manager and/or to
8389*** bug-libtool@gnu.org
8390
8391_LT_EOF
8392 fi ;;
8393 esac
8394 fi
8395 break
8396 fi
8397 done
8398 IFS=$lt_save_ifs
8399 MAGIC_CMD=$lt_save_MAGIC_CMD
8400 ;;
8401esac
8402fi
8403
8404MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8405if test -n "$MAGIC_CMD"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407$as_echo "$MAGIC_CMD" >&6; }
8408else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411fi
8412
8413
8414
8415
8416
8417if test -z "$lt_cv_path_MAGIC_CMD"; then
8418 if test -n "$ac_tool_prefix"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8420$as_echo_n "checking for file... " >&6; }
8421if ${lt_cv_path_MAGIC_CMD+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423else
8424 case $MAGIC_CMD in
8425[\\/*] | ?:[\\/]*)
8426 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8427 ;;
8428*)
8429 lt_save_MAGIC_CMD=$MAGIC_CMD
8430 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8431 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432 for ac_dir in $ac_dummy; do
8433 IFS=$lt_save_ifs
8434 test -z "$ac_dir" && ac_dir=.
8435 if test -f "$ac_dir/file"; then
8436 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8437 if test -n "$file_magic_test_file"; then
8438 case $deplibs_check_method in
8439 "file_magic "*)
8440 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443 $EGREP "$file_magic_regex" > /dev/null; then
8444 :
8445 else
8446 cat <<_LT_EOF 1>&2
8447
8448*** Warning: the command libtool uses to detect shared libraries,
8449*** $file_magic_cmd, produces output that libtool cannot recognize.
8450*** The result is that libtool may fail to recognize shared libraries
8451*** as such. This will affect the creation of libtool libraries that
8452*** depend on shared libraries, but programs linked with such libtool
8453*** libraries will work regardless of this problem. Nevertheless, you
8454*** may want to report the problem to your system manager and/or to
8455*** bug-libtool@gnu.org
8456
8457_LT_EOF
8458 fi ;;
8459 esac
8460 fi
8461 break
8462 fi
8463 done
8464 IFS=$lt_save_ifs
8465 MAGIC_CMD=$lt_save_MAGIC_CMD
8466 ;;
8467esac
8468fi
8469
8470MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8471if test -n "$MAGIC_CMD"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473$as_echo "$MAGIC_CMD" >&6; }
8474else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476$as_echo "no" >&6; }
8477fi
8478
8479
8480 else
8481 MAGIC_CMD=:
8482 fi
8483fi
8484
8485 fi
8486 ;;
8487esac
8488
8489# Use C for the default configuration in the libtool script
8490
8491lt_save_CC=$CC
8492ac_ext=c
8493ac_cpp='$CPP $CPPFLAGS'
8494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497
8498
8499# Source file extension for C test sources.
8500ac_ext=c
8501
8502# Object file extension for compiled C test sources.
8503objext=o
8504objext=$objext
8505
8506# Code to be used in simple compile tests
8507lt_simple_compile_test_code="int some_variable = 0;"
8508
8509# Code to be used in simple link tests
8510lt_simple_link_test_code='int main(){return(0);}'
8511
8512
8513
8514
8515
8516
8517
8518# If no C compiler was specified, use CC.
8519LTCC=${LTCC-"$CC"}
8520
8521# If no C compiler flags were specified, use CFLAGS.
8522LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8523
8524# Allow CC to be a program name with arguments.
8525compiler=$CC
8526
8527# Save the default compiler, since it gets overwritten when the other
8528# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8529compiler_DEFAULT=$CC
8530
8531# save warnings/boilerplate of simple test code
8532ac_outfile=conftest.$ac_objext
8533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535_lt_compiler_boilerplate=`cat conftest.err`
8536$RM conftest*
8537
8538ac_outfile=conftest.$ac_objext
8539echo "$lt_simple_link_test_code" >conftest.$ac_ext
8540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8541_lt_linker_boilerplate=`cat conftest.err`
8542$RM -r conftest*
8543
8544
8545## CAVEAT EMPTOR:
8546## There is no encapsulation within the following macros, do not change
8547## the running order or otherwise move them around unless you know exactly
8548## what you are doing...
8549if test -n "$compiler"; then
8550
8551lt_prog_compiler_no_builtin_flag=
8552
8553if test yes = "$GCC"; then
8554 case $cc_basename in
8555 nvcc*)
8556 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8557 *)
8558 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8559 esac
8560
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8562$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8563if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565else
8566 lt_cv_prog_compiler_rtti_exceptions=no
8567 ac_outfile=conftest.$ac_objext
8568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8569 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8570 # Insert the option either (1) after the last *FLAGS variable, or
8571 # (2) before a word containing "conftest.", or (3) at the end.
8572 # Note that $ac_compile itself does not contain backslashes and begins
8573 # with a dollar sign (not a hyphen), so the echo should work correctly.
8574 # The option is referenced via a variable to avoid confusing sed.
8575 lt_compile=`echo "$ac_compile" | $SED \
8576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8578 -e 's:$: $lt_compiler_flag:'`
8579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8580 (eval "$lt_compile" 2>conftest.err)
8581 ac_status=$?
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 if (exit $ac_status) && test -s "$ac_outfile"; then
8585 # The compiler can only warn and ignore the option if not recognized
8586 # So say no if there are warnings other than the usual output.
8587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8590 lt_cv_prog_compiler_rtti_exceptions=yes
8591 fi
8592 fi
8593 $RM conftest*
8594
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8597$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8598
8599if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8600 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8601else
8602 :
8603fi
8604
8605fi
8606
8607
8608
8609
8610
8611
8612 lt_prog_compiler_wl=
8613lt_prog_compiler_pic=
8614lt_prog_compiler_static=
8615
8616
8617 if test yes = "$GCC"; then
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_static='-static'
8620
8621 case $host_os in
8622 aix*)
8623 # All AIX code is PIC.
8624 if test ia64 = "$host_cpu"; then
8625 # AIX 5 now supports IA64 processor
8626 lt_prog_compiler_static='-Bstatic'
8627 fi
8628 lt_prog_compiler_pic='-fPIC'
8629 ;;
8630
8631 amigaos*)
8632 case $host_cpu in
8633 powerpc)
8634 # see comment about AmigaOS4 .so support
8635 lt_prog_compiler_pic='-fPIC'
8636 ;;
8637 m68k)
8638 # FIXME: we need at least 68020 code to build shared libraries, but
8639 # adding the '-m68020' flag to GCC prevents building anything better,
8640 # like '-m68040'.
8641 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8642 ;;
8643 esac
8644 ;;
8645
8646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8647 # PIC is the default for these OSes.
8648 ;;
8649
8650 mingw* | cygwin* | pw32* | os2* | cegcc*)
8651 # This hack is so that the source file can tell whether it is being
8652 # built for inclusion in a dll (and should export symbols for example).
8653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8654 # (--disable-auto-import) libraries
8655 lt_prog_compiler_pic='-DDLL_EXPORT'
8656 case $host_os in
8657 os2*)
8658 lt_prog_compiler_static='$wl-static'
8659 ;;
8660 esac
8661 ;;
8662
8663 darwin* | rhapsody*)
8664 # PIC is the default on this platform
8665 # Common symbols not allowed in MH_DYLIB files
8666 lt_prog_compiler_pic='-fno-common'
8667 ;;
8668
8669 haiku*)
8670 # PIC is the default for Haiku.
8671 # The "-static" flag exists, but is broken.
8672 lt_prog_compiler_static=
8673 ;;
8674
8675 hpux*)
8676 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8677 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8678 # sets the default TLS model and affects inlining.
8679 case $host_cpu in
8680 hppa*64*)
8681 # +Z the default
8682 ;;
8683 *)
8684 lt_prog_compiler_pic='-fPIC'
8685 ;;
8686 esac
8687 ;;
8688
8689 interix[3-9]*)
8690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8691 # Instead, we relocate shared libraries at runtime.
8692 ;;
8693
8694 msdosdjgpp*)
8695 # Just because we use GCC doesn't mean we suddenly get shared libraries
8696 # on systems that don't support them.
8697 lt_prog_compiler_can_build_shared=no
8698 enable_shared=no
8699 ;;
8700
8701 *nto* | *qnx*)
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8703 # it will coredump.
8704 lt_prog_compiler_pic='-fPIC -shared'
8705 ;;
8706
8707 sysv4*MP*)
8708 if test -d /usr/nec; then
8709 lt_prog_compiler_pic=-Kconform_pic
8710 fi
8711 ;;
8712
8713 *)
8714 lt_prog_compiler_pic='-fPIC'
8715 ;;
8716 esac
8717
8718 case $cc_basename in
8719 nvcc*) # Cuda Compiler Driver 2.2
8720 lt_prog_compiler_wl='-Xlinker '
8721 if test -n "$lt_prog_compiler_pic"; then
8722 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8723 fi
8724 ;;
8725 esac
8726 else
8727 # PORTME Check for flag to pass linker flags through the system compiler.
8728 case $host_os in
8729 aix*)
8730 lt_prog_compiler_wl='-Wl,'
8731 if test ia64 = "$host_cpu"; then
8732 # AIX 5 now supports IA64 processor
8733 lt_prog_compiler_static='-Bstatic'
8734 else
8735 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8736 fi
8737 ;;
8738
8739 darwin* | rhapsody*)
8740 # PIC is the default on this platform
8741 # Common symbols not allowed in MH_DYLIB files
8742 lt_prog_compiler_pic='-fno-common'
8743 case $cc_basename in
8744 nagfor*)
8745 # NAG Fortran compiler
8746 lt_prog_compiler_wl='-Wl,-Wl,,'
8747 lt_prog_compiler_pic='-PIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 ;;
8750 esac
8751 ;;
8752
8753 mingw* | cygwin* | pw32* | os2* | cegcc*)
8754 # This hack is so that the source file can tell whether it is being
8755 # built for inclusion in a dll (and should export symbols for example).
8756 lt_prog_compiler_pic='-DDLL_EXPORT'
8757 case $host_os in
8758 os2*)
8759 lt_prog_compiler_static='$wl-static'
8760 ;;
8761 esac
8762 ;;
8763
8764 hpux9* | hpux10* | hpux11*)
8765 lt_prog_compiler_wl='-Wl,'
8766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8767 # not for PA HP-UX.
8768 case $host_cpu in
8769 hppa*64*|ia64*)
8770 # +Z the default
8771 ;;
8772 *)
8773 lt_prog_compiler_pic='+Z'
8774 ;;
8775 esac
8776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8777 lt_prog_compiler_static='$wl-a ${wl}archive'
8778 ;;
8779
8780 irix5* | irix6* | nonstopux*)
8781 lt_prog_compiler_wl='-Wl,'
8782 # PIC (with -KPIC) is the default.
8783 lt_prog_compiler_static='-non_shared'
8784 ;;
8785
8786 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8787 case $cc_basename in
8788 # old Intel for x86_64, which still supported -KPIC.
8789 ecc*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-static'
8793 ;;
8794 # icc used to be incompatible with GCC.
8795 # ICC 10 doesn't accept -KPIC any more.
8796 icc* | ifort*)
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_pic='-fPIC'
8799 lt_prog_compiler_static='-static'
8800 ;;
8801 # Lahey Fortran 8.1.
8802 lf95*)
8803 lt_prog_compiler_wl='-Wl,'
8804 lt_prog_compiler_pic='--shared'
8805 lt_prog_compiler_static='--static'
8806 ;;
8807 nagfor*)
8808 # NAG Fortran compiler
8809 lt_prog_compiler_wl='-Wl,-Wl,,'
8810 lt_prog_compiler_pic='-PIC'
8811 lt_prog_compiler_static='-Bstatic'
8812 ;;
8813 tcc*)
8814 # Fabrice Bellard et al's Tiny C Compiler
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-fPIC'
8817 lt_prog_compiler_static='-static'
8818 ;;
8819 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8820 # Portland Group compilers (*not* the Pentium gcc compiler,
8821 # which looks to be a dead project)
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fpic'
8824 lt_prog_compiler_static='-Bstatic'
8825 ;;
8826 ccc*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # All Alpha code is PIC.
8829 lt_prog_compiler_static='-non_shared'
8830 ;;
8831 xl* | bgxl* | bgf* | mpixl*)
8832 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-qpic'
8835 lt_prog_compiler_static='-qstaticlink'
8836 ;;
8837 *)
8838 case `$CC -V 2>&1 | sed 5q` in
8839 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8840 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8841 lt_prog_compiler_pic='-KPIC'
8842 lt_prog_compiler_static='-Bstatic'
8843 lt_prog_compiler_wl=''
8844 ;;
8845 *Sun\ F* | *Sun*Fortran*)
8846 lt_prog_compiler_pic='-KPIC'
8847 lt_prog_compiler_static='-Bstatic'
8848 lt_prog_compiler_wl='-Qoption ld '
8849 ;;
8850 *Sun\ C*)
8851 # Sun C 5.9
8852 lt_prog_compiler_pic='-KPIC'
8853 lt_prog_compiler_static='-Bstatic'
8854 lt_prog_compiler_wl='-Wl,'
8855 ;;
8856 *Intel*\ [CF]*Compiler*)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-fPIC'
8859 lt_prog_compiler_static='-static'
8860 ;;
8861 *Portland\ Group*)
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-fpic'
8864 lt_prog_compiler_static='-Bstatic'
8865 ;;
8866 esac
8867 ;;
8868 esac
8869 ;;
8870
8871 newsos6)
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 ;;
8875
8876 *nto* | *qnx*)
8877 # QNX uses GNU C++, but need to define -shared option too, otherwise
8878 # it will coredump.
8879 lt_prog_compiler_pic='-fPIC -shared'
8880 ;;
8881
8882 osf3* | osf4* | osf5*)
8883 lt_prog_compiler_wl='-Wl,'
8884 # All OSF/1 code is PIC.
8885 lt_prog_compiler_static='-non_shared'
8886 ;;
8887
8888 rdos*)
8889 lt_prog_compiler_static='-non_shared'
8890 ;;
8891
8892 solaris*)
8893 lt_prog_compiler_pic='-KPIC'
8894 lt_prog_compiler_static='-Bstatic'
8895 case $cc_basename in
8896 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8897 lt_prog_compiler_wl='-Qoption ld ';;
8898 *)
8899 lt_prog_compiler_wl='-Wl,';;
8900 esac
8901 ;;
8902
8903 sunos4*)
8904 lt_prog_compiler_wl='-Qoption ld '
8905 lt_prog_compiler_pic='-PIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 ;;
8908
8909 sysv4 | sysv4.2uw2* | sysv4.3*)
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 ;;
8914
8915 sysv4*MP*)
8916 if test -d /usr/nec; then
8917 lt_prog_compiler_pic='-Kconform_pic'
8918 lt_prog_compiler_static='-Bstatic'
8919 fi
8920 ;;
8921
8922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8923 lt_prog_compiler_wl='-Wl,'
8924 lt_prog_compiler_pic='-KPIC'
8925 lt_prog_compiler_static='-Bstatic'
8926 ;;
8927
8928 unicos*)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_can_build_shared=no
8931 ;;
8932
8933 uts4*)
8934 lt_prog_compiler_pic='-pic'
8935 lt_prog_compiler_static='-Bstatic'
8936 ;;
8937
8938 *)
8939 lt_prog_compiler_can_build_shared=no
8940 ;;
8941 esac
8942 fi
8943
8944case $host_os in
8945 # For platforms that do not support PIC, -DPIC is meaningless:
8946 *djgpp*)
8947 lt_prog_compiler_pic=
8948 ;;
8949 *)
8950 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8951 ;;
8952esac
8953
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8955$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8956if ${lt_cv_prog_compiler_pic+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958else
8959 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8962$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8963lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8964
8965#
8966# Check to make sure the PIC flag actually works.
8967#
8968if test -n "$lt_prog_compiler_pic"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8970$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8971if ${lt_cv_prog_compiler_pic_works+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973else
8974 lt_cv_prog_compiler_pic_works=no
8975 ac_outfile=conftest.$ac_objext
8976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8978 # Insert the option either (1) after the last *FLAGS variable, or
8979 # (2) before a word containing "conftest.", or (3) at the end.
8980 # Note that $ac_compile itself does not contain backslashes and begins
8981 # with a dollar sign (not a hyphen), so the echo should work correctly.
8982 # The option is referenced via a variable to avoid confusing sed.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>conftest.err)
8989 ac_status=$?
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s "$ac_outfile"; then
8993 # The compiler can only warn and ignore the option if not recognized
8994 # So say no if there are warnings other than the usual output.
8995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8998 lt_cv_prog_compiler_pic_works=yes
8999 fi
9000 fi
9001 $RM conftest*
9002
9003fi
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9005$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9006
9007if test yes = "$lt_cv_prog_compiler_pic_works"; then
9008 case $lt_prog_compiler_pic in
9009 "" | " "*) ;;
9010 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9011 esac
9012else
9013 lt_prog_compiler_pic=
9014 lt_prog_compiler_can_build_shared=no
9015fi
9016
9017fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029#
9030# Check to make sure the static flag actually works.
9031#
9032wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9034$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9035if ${lt_cv_prog_compiler_static_works+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037else
9038 lt_cv_prog_compiler_static_works=no
9039 save_LDFLAGS=$LDFLAGS
9040 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9043 # The linker can only warn and ignore the option if not recognized
9044 # So say no if there are warnings
9045 if test -s conftest.err; then
9046 # Append any errors to the config.log.
9047 cat conftest.err 1>&5
9048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050 if diff conftest.exp conftest.er2 >/dev/null; then
9051 lt_cv_prog_compiler_static_works=yes
9052 fi
9053 else
9054 lt_cv_prog_compiler_static_works=yes
9055 fi
9056 fi
9057 $RM -r conftest*
9058 LDFLAGS=$save_LDFLAGS
9059
9060fi
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9062$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9063
9064if test yes = "$lt_cv_prog_compiler_static_works"; then
9065 :
9066else
9067 lt_prog_compiler_static=
9068fi
9069
9070
9071
9072
9073
9074
9075
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078if ${lt_cv_prog_compiler_c_o+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080else
9081 lt_cv_prog_compiler_c_o=no
9082 $RM -r conftest 2>/dev/null
9083 mkdir conftest
9084 cd conftest
9085 mkdir out
9086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087
9088 lt_compiler_flag="-o out/conftest2.$ac_objext"
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 lt_compile=`echo "$ac_compile" | $SED \
9094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096 -e 's:$: $lt_compiler_flag:'`
9097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098 (eval "$lt_compile" 2>out/conftest.err)
9099 ac_status=$?
9100 cat out/conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9103 then
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler_c_o=yes
9110 fi
9111 fi
9112 chmod u+w . 2>&5
9113 $RM conftest*
9114 # SGI C++ compiler will create directory out/ii_files/ for
9115 # template instantiation
9116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9117 $RM out/* && rmdir out
9118 cd ..
9119 $RM -r conftest
9120 $RM conftest*
9121
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9125
9126
9127
9128
9129
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9132$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9133if ${lt_cv_prog_compiler_c_o+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135else
9136 lt_cv_prog_compiler_c_o=no
9137 $RM -r conftest 2>/dev/null
9138 mkdir conftest
9139 cd conftest
9140 mkdir out
9141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9142
9143 lt_compiler_flag="-o out/conftest2.$ac_objext"
9144 # Insert the option either (1) after the last *FLAGS variable, or
9145 # (2) before a word containing "conftest.", or (3) at the end.
9146 # Note that $ac_compile itself does not contain backslashes and begins
9147 # with a dollar sign (not a hyphen), so the echo should work correctly.
9148 lt_compile=`echo "$ac_compile" | $SED \
9149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151 -e 's:$: $lt_compiler_flag:'`
9152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9153 (eval "$lt_compile" 2>out/conftest.err)
9154 ac_status=$?
9155 cat out/conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9158 then
9159 # The compiler can only warn and ignore the option if not recognized
9160 # So say no if there are warnings
9161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9164 lt_cv_prog_compiler_c_o=yes
9165 fi
9166 fi
9167 chmod u+w . 2>&5
9168 $RM conftest*
9169 # SGI C++ compiler will create directory out/ii_files/ for
9170 # template instantiation
9171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9172 $RM out/* && rmdir out
9173 cd ..
9174 $RM -r conftest
9175 $RM conftest*
9176
9177fi
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9179$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9180
9181
9182
9183
9184hard_links=nottested
9185if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9186 # do not overwrite the value of need_locks provided by the user
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9188$as_echo_n "checking if we can lock with hard links... " >&6; }
9189 hard_links=yes
9190 $RM conftest*
9191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9192 touch conftest.a
9193 ln conftest.a conftest.b 2>&5 || hard_links=no
9194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9196$as_echo "$hard_links" >&6; }
9197 if test no = "$hard_links"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9199$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9200 need_locks=warn
9201 fi
9202else
9203 need_locks=no
9204fi
9205
9206
9207
9208
9209
9210
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9213
9214 runpath_var=
9215 allow_undefined_flag=
9216 always_export_symbols=no
9217 archive_cmds=
9218 archive_expsym_cmds=
9219 compiler_needs_object=no
9220 enable_shared_with_static_runtimes=no
9221 export_dynamic_flag_spec=
9222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9223 hardcode_automatic=no
9224 hardcode_direct=no
9225 hardcode_direct_absolute=no
9226 hardcode_libdir_flag_spec=
9227 hardcode_libdir_separator=
9228 hardcode_minus_L=no
9229 hardcode_shlibpath_var=unsupported
9230 inherit_rpath=no
9231 link_all_deplibs=unknown
9232 module_cmds=
9233 module_expsym_cmds=
9234 old_archive_from_new_cmds=
9235 old_archive_from_expsyms_cmds=
9236 thread_safe_flag_spec=
9237 whole_archive_flag_spec=
9238 # include_expsyms should be a list of space-separated symbols to be *always*
9239 # included in the symbol list
9240 include_expsyms=
9241 # exclude_expsyms can be an extended regexp of symbols to exclude
9242 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9243 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9244 # as well as any symbol that contains 'd'.
9245 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9247 # platforms (ab)use it in PIC code, but their linkers get confused if
9248 # the symbol is explicitly referenced. Since portable code cannot
9249 # rely on this symbol name, it's probably fine to never include it in
9250 # preloaded symbol tables.
9251 # Exclude shared library initialization/finalization symbols.
9252 extract_expsyms_cmds=
9253
9254 case $host_os in
9255 cygwin* | mingw* | pw32* | cegcc*)
9256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9257 # When not using gcc, we currently assume that we are using
9258 # Microsoft Visual C++.
9259 if test yes != "$GCC"; then
9260 with_gnu_ld=no
9261 fi
9262 ;;
9263 interix*)
9264 # we just hope/assume this is gcc and not c89 (= MSVC++)
9265 with_gnu_ld=yes
9266 ;;
9267 openbsd* | bitrig*)
9268 with_gnu_ld=no
9269 ;;
9270 linux* | k*bsd*-gnu | gnu*)
9271 link_all_deplibs=no
9272 ;;
9273 esac
9274
9275 ld_shlibs=yes
9276
9277 # On some targets, GNU ld is compatible enough with the native linker
9278 # that we're better off using the native interface for both.
9279 lt_use_gnu_ld_interface=no
9280 if test yes = "$with_gnu_ld"; then
9281 case $host_os in
9282 aix*)
9283 # The AIX port of GNU ld has always aspired to compatibility
9284 # with the native linker. However, as the warning in the GNU ld
9285 # block says, versions before 2.19.5* couldn't really create working
9286 # shared libraries, regardless of the interface used.
9287 case `$LD -v 2>&1` in
9288 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9289 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9290 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9291 *)
9292 lt_use_gnu_ld_interface=yes
9293 ;;
9294 esac
9295 ;;
9296 *)
9297 lt_use_gnu_ld_interface=yes
9298 ;;
9299 esac
9300 fi
9301
9302 if test yes = "$lt_use_gnu_ld_interface"; then
9303 # If archive_cmds runs LD, not CC, wlarc should be empty
9304 wlarc='$wl'
9305
9306 # Set some defaults for GNU ld with shared library support. These
9307 # are reset later if shared libraries are not supported. Putting them
9308 # here allows them to be overridden if necessary.
9309 runpath_var=LD_RUN_PATH
9310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9311 export_dynamic_flag_spec='$wl--export-dynamic'
9312 # ancient GNU ld didn't support --whole-archive et. al.
9313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9314 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9315 else
9316 whole_archive_flag_spec=
9317 fi
9318 supports_anon_versioning=no
9319 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9320 *GNU\ gold*) supports_anon_versioning=yes ;;
9321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9324 *\ 2.11.*) ;; # other 2.11 versions
9325 *) supports_anon_versioning=yes ;;
9326 esac
9327
9328 # See if GNU ld supports shared libraries.
9329 case $host_os in
9330 aix[3-9]*)
9331 # On AIX/PPC, the GNU linker is very broken
9332 if test ia64 != "$host_cpu"; then
9333 ld_shlibs=no
9334 cat <<_LT_EOF 1>&2
9335
9336*** Warning: the GNU linker, at least up to release 2.19, is reported
9337*** to be unable to reliably create shared libraries on AIX.
9338*** Therefore, libtool is disabling shared libraries support. If you
9339*** really care for shared libraries, you may want to install binutils
9340*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9341*** You will then need to restart the configuration process.
9342
9343_LT_EOF
9344 fi
9345 ;;
9346
9347 amigaos*)
9348 case $host_cpu in
9349 powerpc)
9350 # see comment about AmigaOS4 .so support
9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9352 archive_expsym_cmds=''
9353 ;;
9354 m68k)
9355 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)'
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_minus_L=yes
9358 ;;
9359 esac
9360 ;;
9361
9362 beos*)
9363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9364 allow_undefined_flag=unsupported
9365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9366 # support --undefined. This deserves some investigation. FIXME
9367 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9368 else
9369 ld_shlibs=no
9370 fi
9371 ;;
9372
9373 cygwin* | mingw* | pw32* | cegcc*)
9374 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9375 # as there is no search path for DLLs.
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 export_dynamic_flag_spec='$wl--export-all-symbols'
9378 allow_undefined_flag=unsupported
9379 always_export_symbols=no
9380 enable_shared_with_static_runtimes=yes
9381 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'
9382 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9383
9384 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9386 # If the export-symbols file already is a .def file, use it as
9387 # is; otherwise, prepend EXPORTS...
9388 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9389 cp $export_symbols $output_objdir/$soname.def;
9390 else
9391 echo EXPORTS > $output_objdir/$soname.def;
9392 cat $export_symbols >> $output_objdir/$soname.def;
9393 fi~
9394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9395 else
9396 ld_shlibs=no
9397 fi
9398 ;;
9399
9400 haiku*)
9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9402 link_all_deplibs=yes
9403 ;;
9404
9405 os2*)
9406 hardcode_libdir_flag_spec='-L$libdir'
9407 hardcode_minus_L=yes
9408 allow_undefined_flag=unsupported
9409 shrext_cmds=.dll
9410 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9413 $ECHO EXPORTS >> $output_objdir/$libname.def~
9414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9416 emximp -o $lib $output_objdir/$libname.def'
9417 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9420 $ECHO EXPORTS >> $output_objdir/$libname.def~
9421 prefix_cmds="$SED"~
9422 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9423 prefix_cmds="$prefix_cmds -e 1d";
9424 fi~
9425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9428 emximp -o $lib $output_objdir/$libname.def'
9429 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9430 enable_shared_with_static_runtimes=yes
9431 ;;
9432
9433 interix[3-9]*)
9434 hardcode_direct=no
9435 hardcode_shlibpath_var=no
9436 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9437 export_dynamic_flag_spec='$wl-E'
9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439 # Instead, shared libraries are loaded at an image base (0x10000000 by
9440 # default) and relocated if they conflict, which is a slow very memory
9441 # consuming and fragmenting process. To avoid this, we pick a random,
9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445 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'
9446 ;;
9447
9448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9449 tmp_diet=no
9450 if test linux-dietlibc = "$host_os"; then
9451 case $cc_basename in
9452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9453 esac
9454 fi
9455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9456 && test no = "$tmp_diet"
9457 then
9458 tmp_addflag=' $pic_flag'
9459 tmp_sharedflag='-shared'
9460 case $cc_basename,$host_cpu in
9461 pgcc*) # Portland Group C compiler
9462 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'
9463 tmp_addflag=' $pic_flag'
9464 ;;
9465 pgf77* | pgf90* | pgf95* | pgfortran*)
9466 # Portland Group f77 and f90 compilers
9467 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'
9468 tmp_addflag=' $pic_flag -Mnomain' ;;
9469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9470 tmp_addflag=' -i_dynamic' ;;
9471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9472 tmp_addflag=' -i_dynamic -nofor_main' ;;
9473 ifc* | ifort*) # Intel Fortran compiler
9474 tmp_addflag=' -nofor_main' ;;
9475 lf95*) # Lahey Fortran 8.1
9476 whole_archive_flag_spec=
9477 tmp_sharedflag='--shared' ;;
9478 nagfor*) # NAGFOR 5.3
9479 tmp_sharedflag='-Wl,-shared' ;;
9480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9481 tmp_sharedflag='-qmkshrobj'
9482 tmp_addflag= ;;
9483 nvcc*) # Cuda Compiler Driver 2.2
9484 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'
9485 compiler_needs_object=yes
9486 ;;
9487 esac
9488 case `$CC -V 2>&1 | sed 5q` in
9489 *Sun\ C*) # Sun C 5.9
9490 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'
9491 compiler_needs_object=yes
9492 tmp_sharedflag='-G' ;;
9493 *Sun\ F*) # Sun Fortran 8.3
9494 tmp_sharedflag='-G' ;;
9495 esac
9496 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9497
9498 if test yes = "$supports_anon_versioning"; then
9499 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9501 echo "local: *; };" >> $output_objdir/$libname.ver~
9502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9503 fi
9504
9505 case $cc_basename in
9506 tcc*)
9507 export_dynamic_flag_spec='-rdynamic'
9508 ;;
9509 xlf* | bgf* | bgxlf* | mpixlf*)
9510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9511 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9512 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9513 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9514 if test yes = "$supports_anon_versioning"; then
9515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9517 echo "local: *; };" >> $output_objdir/$libname.ver~
9518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9519 fi
9520 ;;
9521 esac
9522 else
9523 ld_shlibs=no
9524 fi
9525 ;;
9526
9527 netbsd* | netbsdelf*-gnu)
9528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9529 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9530 wlarc=
9531 else
9532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9534 fi
9535 ;;
9536
9537 solaris*)
9538 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9539 ld_shlibs=no
9540 cat <<_LT_EOF 1>&2
9541
9542*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9543*** create shared libraries on Solaris systems. Therefore, libtool
9544*** is disabling shared libraries support. We urge you to upgrade GNU
9545*** binutils to release 2.9.1 or newer. Another option is to modify
9546*** your PATH or compiler configuration so that the native linker is
9547*** used, and then restart.
9548
9549_LT_EOF
9550 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9553 else
9554 ld_shlibs=no
9555 fi
9556 ;;
9557
9558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9559 case `$LD -v 2>&1` in
9560 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9561 ld_shlibs=no
9562 cat <<_LT_EOF 1>&2
9563
9564*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9565*** reliably create shared libraries on SCO systems. Therefore, libtool
9566*** is disabling shared libraries support. We urge you to upgrade GNU
9567*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9568*** your PATH or compiler configuration so that the native linker is
9569*** used, and then restart.
9570
9571_LT_EOF
9572 ;;
9573 *)
9574 # For security reasons, it is highly recommended that you always
9575 # use absolute paths for naming shared libraries, and exclude the
9576 # DT_RUNPATH tag from executables and libraries. But doing so
9577 # requires that you compile everything twice, which is a pain.
9578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9582 else
9583 ld_shlibs=no
9584 fi
9585 ;;
9586 esac
9587 ;;
9588
9589 sunos4*)
9590 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9591 wlarc=
9592 hardcode_direct=yes
9593 hardcode_shlibpath_var=no
9594 ;;
9595
9596 *)
9597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9600 else
9601 ld_shlibs=no
9602 fi
9603 ;;
9604 esac
9605
9606 if test no = "$ld_shlibs"; then
9607 runpath_var=
9608 hardcode_libdir_flag_spec=
9609 export_dynamic_flag_spec=
9610 whole_archive_flag_spec=
9611 fi
9612 else
9613 # PORTME fill in a description of your system's linker (not GNU ld)
9614 case $host_os in
9615 aix3*)
9616 allow_undefined_flag=unsupported
9617 always_export_symbols=yes
9618 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'
9619 # Note: this linker hardcodes the directories in LIBPATH if there
9620 # are no directories specified by -L.
9621 hardcode_minus_L=yes
9622 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9623 # Neither direct hardcoding nor static linking is supported with a
9624 # broken collect2.
9625 hardcode_direct=unsupported
9626 fi
9627 ;;
9628
9629 aix[4-9]*)
9630 if test ia64 = "$host_cpu"; then
9631 # On IA64, the linker does run time linking by default, so we don't
9632 # have to do anything special.
9633 aix_use_runtimelinking=no
9634 exp_sym_flag='-Bexport'
9635 no_entry_flag=
9636 else
9637 # If we're using GNU nm, then we don't want the "-C" option.
9638 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9639 # Without the "-l" option, or with the "-B" option, AIX nm treats
9640 # weak defined symbols like other global defined symbols, whereas
9641 # GNU nm marks them as "W".
9642 # While the 'weak' keyword is ignored in the Export File, we need
9643 # it in the Import File for the 'aix-soname' feature, so we have
9644 # to replace the "-B" option with "-P" for AIX nm.
9645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9646 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9647 else
9648 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9649 fi
9650 aix_use_runtimelinking=no
9651
9652 # Test if we are trying to use run time linking or normal
9653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9654 # have runtime linking enabled, and use it for executables.
9655 # For shared libraries, we enable/disable runtime linking
9656 # depending on the kind of the shared library created -
9657 # when "with_aix_soname,aix_use_runtimelinking" is:
9658 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9659 # "aix,yes" lib.so shared, rtl:yes, for executables
9660 # lib.a static archive
9661 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9662 # lib.a(lib.so.V) shared, rtl:no, for executables
9663 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9664 # lib.a(lib.so.V) shared, rtl:no
9665 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9666 # lib.a static archive
9667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9668 for ld_flag in $LDFLAGS; do
9669 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9670 aix_use_runtimelinking=yes
9671 break
9672 fi
9673 done
9674 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9675 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9676 # so we don't have lib.a shared libs to link our executables.
9677 # We have to force runtime linking in this case.
9678 aix_use_runtimelinking=yes
9679 LDFLAGS="$LDFLAGS -Wl,-brtl"
9680 fi
9681 ;;
9682 esac
9683
9684 exp_sym_flag='-bexport'
9685 no_entry_flag='-bnoentry'
9686 fi
9687
9688 # When large executables or shared objects are built, AIX ld can
9689 # have problems creating the table of contents. If linking a library
9690 # or program results in "error TOC overflow" add -mminimal-toc to
9691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9693
9694 archive_cmds=''
9695 hardcode_direct=yes
9696 hardcode_direct_absolute=yes
9697 hardcode_libdir_separator=':'
9698 link_all_deplibs=yes
9699 file_list_spec='$wl-f,'
9700 case $with_aix_soname,$aix_use_runtimelinking in
9701 aix,*) ;; # traditional, no import file
9702 svr4,* | *,yes) # use import file
9703 # The Import File defines what to hardcode.
9704 hardcode_direct=no
9705 hardcode_direct_absolute=no
9706 ;;
9707 esac
9708
9709 if test yes = "$GCC"; then
9710 case $host_os in aix4.[012]|aix4.[012].*)
9711 # We only want to do this on AIX 4.2 and lower, the check
9712 # below for broken collect2 doesn't work under 4.3+
9713 collect2name=`$CC -print-prog-name=collect2`
9714 if test -f "$collect2name" &&
9715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9716 then
9717 # We have reworked collect2
9718 :
9719 else
9720 # We have old collect2
9721 hardcode_direct=unsupported
9722 # It fails to find uninstalled libraries when the uninstalled
9723 # path is not listed in the libpath. Setting hardcode_minus_L
9724 # to unsupported forces relinking
9725 hardcode_minus_L=yes
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 hardcode_libdir_separator=
9728 fi
9729 ;;
9730 esac
9731 shared_flag='-shared'
9732 if test yes = "$aix_use_runtimelinking"; then
9733 shared_flag="$shared_flag "'$wl-G'
9734 fi
9735 # Need to ensure runtime linking is disabled for the traditional
9736 # shared library, or the linker may eventually find shared libraries
9737 # /with/ Import File - we do not want to mix them.
9738 shared_flag_aix='-shared'
9739 shared_flag_svr4='-shared $wl-G'
9740 else
9741 # not using gcc
9742 if test ia64 = "$host_cpu"; then
9743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9744 # chokes on -Wl,-G. The following line is correct:
9745 shared_flag='-G'
9746 else
9747 if test yes = "$aix_use_runtimelinking"; then
9748 shared_flag='$wl-G'
9749 else
9750 shared_flag='$wl-bM:SRE'
9751 fi
9752 shared_flag_aix='$wl-bM:SRE'
9753 shared_flag_svr4='$wl-G'
9754 fi
9755 fi
9756
9757 export_dynamic_flag_spec='$wl-bexpall'
9758 # It seems that -bexpall does not export symbols beginning with
9759 # underscore (_), so it is better to generate a list of symbols to export.
9760 always_export_symbols=yes
9761 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9762 # Warning - without using the other runtime loading flags (-brtl),
9763 # -berok will link without error, but may produce a broken library.
9764 allow_undefined_flag='-berok'
9765 # Determine the default libpath from the value encoded in an
9766 # empty executable.
9767 if test set = "${lt_cv_aix_libpath+set}"; then
9768 aix_libpath=$lt_cv_aix_libpath
9769else
9770 if ${lt_cv_aix_libpath_+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772else
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h. */
9775
9776int
9777main ()
9778{
9779
9780 ;
9781 return 0;
9782}
9783_ACEOF
9784if ac_fn_c_try_link "$LINENO"; then :
9785
9786 lt_aix_libpath_sed='
9787 /Import File Strings/,/^$/ {
9788 /^0/ {
9789 s/^0 *\([^ ]*\) *$/\1/
9790 p
9791 }
9792 }'
9793 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794 # Check for a 64-bit object if we didn't find anything.
9795 if test -z "$lt_cv_aix_libpath_"; then
9796 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 fi
9798fi
9799rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 if test -z "$lt_cv_aix_libpath_"; then
9802 lt_cv_aix_libpath_=/usr/lib:/lib
9803 fi
9804
9805fi
9806
9807 aix_libpath=$lt_cv_aix_libpath_
9808fi
9809
9810 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9811 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9812 else
9813 if test ia64 = "$host_cpu"; then
9814 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9815 allow_undefined_flag="-z nodefs"
9816 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"
9817 else
9818 # Determine the default libpath from the value encoded in an
9819 # empty executable.
9820 if test set = "${lt_cv_aix_libpath+set}"; then
9821 aix_libpath=$lt_cv_aix_libpath
9822else
9823 if ${lt_cv_aix_libpath_+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825else
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h. */
9828
9829int
9830main ()
9831{
9832
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838
9839 lt_aix_libpath_sed='
9840 /Import File Strings/,/^$/ {
9841 /^0/ {
9842 s/^0 *\([^ ]*\) *$/\1/
9843 p
9844 }
9845 }'
9846 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 # Check for a 64-bit object if we didn't find anything.
9848 if test -z "$lt_cv_aix_libpath_"; then
9849 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9850 fi
9851fi
9852rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 if test -z "$lt_cv_aix_libpath_"; then
9855 lt_cv_aix_libpath_=/usr/lib:/lib
9856 fi
9857
9858fi
9859
9860 aix_libpath=$lt_cv_aix_libpath_
9861fi
9862
9863 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9864 # Warning - without using the other run time loading flags,
9865 # -berok will link without error, but may produce a broken library.
9866 no_undefined_flag=' $wl-bernotok'
9867 allow_undefined_flag=' $wl-berok'
9868 if test yes = "$with_gnu_ld"; then
9869 # We only use this code for GNU lds that support --whole-archive.
9870 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9871 else
9872 # Exported symbols can be pulled into shared objects from archives
9873 whole_archive_flag_spec='$convenience'
9874 fi
9875 archive_cmds_need_lc=yes
9876 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9877 # -brtl affects multiple linker settings, -berok does not and is overridden later
9878 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9879 if test svr4 != "$with_aix_soname"; then
9880 # This is similar to how AIX traditionally builds its shared libraries.
9881 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9882 fi
9883 if test aix != "$with_aix_soname"; then
9884 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9885 else
9886 # used by -dlpreopen to get the symbols
9887 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9888 fi
9889 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9890 fi
9891 fi
9892 ;;
9893
9894 amigaos*)
9895 case $host_cpu in
9896 powerpc)
9897 # see comment about AmigaOS4 .so support
9898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899 archive_expsym_cmds=''
9900 ;;
9901 m68k)
9902 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)'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_minus_L=yes
9905 ;;
9906 esac
9907 ;;
9908
9909 bsdi[45]*)
9910 export_dynamic_flag_spec=-rdynamic
9911 ;;
9912
9913 cygwin* | mingw* | pw32* | cegcc*)
9914 # When not using gcc, we currently assume that we are using
9915 # Microsoft Visual C++.
9916 # hardcode_libdir_flag_spec is actually meaningless, as there is
9917 # no search path for DLLs.
9918 case $cc_basename in
9919 cl*)
9920 # Native MSVC
9921 hardcode_libdir_flag_spec=' '
9922 allow_undefined_flag=unsupported
9923 always_export_symbols=yes
9924 file_list_spec='@'
9925 # Tell ltmain to make .lib files, not .a files.
9926 libext=lib
9927 # Tell ltmain to make .dll files, not .so files.
9928 shrext_cmds=.dll
9929 # FIXME: Setting linknames here is a bad hack.
9930 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9932 cp "$export_symbols" "$output_objdir/$soname.def";
9933 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9934 else
9935 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9936 fi~
9937 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9938 linknames='
9939 # The linker will not automatically build a static lib if we build a DLL.
9940 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9941 enable_shared_with_static_runtimes=yes
9942 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9944 # Don't use ranlib
9945 old_postinstall_cmds='chmod 644 $oldlib'
9946 postlink_cmds='lt_outputfile="@OUTPUT@"~
9947 lt_tool_outputfile="@TOOL_OUTPUT@"~
9948 case $lt_outputfile in
9949 *.exe|*.EXE) ;;
9950 *)
9951 lt_outputfile=$lt_outputfile.exe
9952 lt_tool_outputfile=$lt_tool_outputfile.exe
9953 ;;
9954 esac~
9955 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9957 $RM "$lt_outputfile.manifest";
9958 fi'
9959 ;;
9960 *)
9961 # Assume MSVC wrapper
9962 hardcode_libdir_flag_spec=' '
9963 allow_undefined_flag=unsupported
9964 # Tell ltmain to make .lib files, not .a files.
9965 libext=lib
9966 # Tell ltmain to make .dll files, not .so files.
9967 shrext_cmds=.dll
9968 # FIXME: Setting linknames here is a bad hack.
9969 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9970 # The linker will automatically build a .lib file if we build a DLL.
9971 old_archive_from_new_cmds='true'
9972 # FIXME: Should let the user specify the lib program.
9973 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9974 enable_shared_with_static_runtimes=yes
9975 ;;
9976 esac
9977 ;;
9978
9979 darwin* | rhapsody*)
9980
9981
9982 archive_cmds_need_lc=no
9983 hardcode_direct=no
9984 hardcode_automatic=yes
9985 hardcode_shlibpath_var=unsupported
9986 if test yes = "$lt_cv_ld_force_load"; then
9987 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\"`'
9988
9989 else
9990 whole_archive_flag_spec=''
9991 fi
9992 link_all_deplibs=yes
9993 allow_undefined_flag=$_lt_dar_allow_undefined
9994 case $cc_basename in
9995 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9996 *) _lt_dar_can_shared=$GCC ;;
9997 esac
9998 if test yes = "$_lt_dar_can_shared"; then
9999 output_verbose_link_cmd=func_echo_all
10000 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10001 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10002 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"
10003 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"
10004
10005 else
10006 ld_shlibs=no
10007 fi
10008
10009 ;;
10010
10011 dgux*)
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_shlibpath_var=no
10015 ;;
10016
10017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10018 # support. Future versions do this automatically, but an explicit c++rt0.o
10019 # does not break anything, and helps significantly (at the cost of a little
10020 # extra space).
10021 freebsd2.2*)
10022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10023 hardcode_libdir_flag_spec='-R$libdir'
10024 hardcode_direct=yes
10025 hardcode_shlibpath_var=no
10026 ;;
10027
10028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10029 freebsd2.*)
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_direct=yes
10032 hardcode_minus_L=yes
10033 hardcode_shlibpath_var=no
10034 ;;
10035
10036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10037 freebsd* | dragonfly*)
10038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039 hardcode_libdir_flag_spec='-R$libdir'
10040 hardcode_direct=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 hpux9*)
10045 if test yes = "$GCC"; then
10046 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10047 else
10048 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10049 fi
10050 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10051 hardcode_libdir_separator=:
10052 hardcode_direct=yes
10053
10054 # hardcode_minus_L: Not really in the search PATH,
10055 # but as the default location of the library.
10056 hardcode_minus_L=yes
10057 export_dynamic_flag_spec='$wl-E'
10058 ;;
10059
10060 hpux10*)
10061 if test yes,no = "$GCC,$with_gnu_ld"; then
10062 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063 else
10064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10065 fi
10066 if test no = "$with_gnu_ld"; then
10067 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10068 hardcode_libdir_separator=:
10069 hardcode_direct=yes
10070 hardcode_direct_absolute=yes
10071 export_dynamic_flag_spec='$wl-E'
10072 # hardcode_minus_L: Not really in the search PATH,
10073 # but as the default location of the library.
10074 hardcode_minus_L=yes
10075 fi
10076 ;;
10077
10078 hpux11*)
10079 if test yes,no = "$GCC,$with_gnu_ld"; then
10080 case $host_cpu in
10081 hppa*64*)
10082 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 ;;
10084 ia64*)
10085 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10086 ;;
10087 *)
10088 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10089 ;;
10090 esac
10091 else
10092 case $host_cpu in
10093 hppa*64*)
10094 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 ;;
10096 ia64*)
10097 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10098 ;;
10099 *)
10100
10101 # Older versions of the 11.00 compiler do not understand -b yet
10102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10104$as_echo_n "checking if $CC understands -b... " >&6; }
10105if ${lt_cv_prog_compiler__b+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107else
10108 lt_cv_prog_compiler__b=no
10109 save_LDFLAGS=$LDFLAGS
10110 LDFLAGS="$LDFLAGS -b"
10111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10113 # The linker can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 if test -s conftest.err; then
10116 # Append any errors to the config.log.
10117 cat conftest.err 1>&5
10118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10120 if diff conftest.exp conftest.er2 >/dev/null; then
10121 lt_cv_prog_compiler__b=yes
10122 fi
10123 else
10124 lt_cv_prog_compiler__b=yes
10125 fi
10126 fi
10127 $RM -r conftest*
10128 LDFLAGS=$save_LDFLAGS
10129
10130fi
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10132$as_echo "$lt_cv_prog_compiler__b" >&6; }
10133
10134if test yes = "$lt_cv_prog_compiler__b"; then
10135 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10136else
10137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10138fi
10139
10140 ;;
10141 esac
10142 fi
10143 if test no = "$with_gnu_ld"; then
10144 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10145 hardcode_libdir_separator=:
10146
10147 case $host_cpu in
10148 hppa*64*|ia64*)
10149 hardcode_direct=no
10150 hardcode_shlibpath_var=no
10151 ;;
10152 *)
10153 hardcode_direct=yes
10154 hardcode_direct_absolute=yes
10155 export_dynamic_flag_spec='$wl-E'
10156
10157 # hardcode_minus_L: Not really in the search PATH,
10158 # but as the default location of the library.
10159 hardcode_minus_L=yes
10160 ;;
10161 esac
10162 fi
10163 ;;
10164
10165 irix5* | irix6* | nonstopux*)
10166 if test yes = "$GCC"; then
10167 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'
10168 # Try to use the -exported_symbol ld option, if it does not
10169 # work, assume that -exports_file does not work either and
10170 # implicitly export all symbols.
10171 # This should be the same for all languages, so no per-tag cache variable.
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10173$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10174if ${lt_cv_irix_exported_symbol+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176else
10177 save_LDFLAGS=$LDFLAGS
10178 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h. */
10181int foo (void) { return 0; }
10182_ACEOF
10183if ac_fn_c_try_link "$LINENO"; then :
10184 lt_cv_irix_exported_symbol=yes
10185else
10186 lt_cv_irix_exported_symbol=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LDFLAGS=$save_LDFLAGS
10191fi
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10193$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10194 if test yes = "$lt_cv_irix_exported_symbol"; then
10195 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'
10196 fi
10197 link_all_deplibs=no
10198 else
10199 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'
10200 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'
10201 fi
10202 archive_cmds_need_lc='no'
10203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10204 hardcode_libdir_separator=:
10205 inherit_rpath=yes
10206 link_all_deplibs=yes
10207 ;;
10208
10209 linux*)
10210 case $cc_basename in
10211 tcc*)
10212 # Fabrice Bellard et al's Tiny C Compiler
10213 ld_shlibs=yes
10214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10215 ;;
10216 esac
10217 ;;
10218
10219 netbsd* | netbsdelf*-gnu)
10220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10222 else
10223 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10224 fi
10225 hardcode_libdir_flag_spec='-R$libdir'
10226 hardcode_direct=yes
10227 hardcode_shlibpath_var=no
10228 ;;
10229
10230 newsos6)
10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_direct=yes
10233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10234 hardcode_libdir_separator=:
10235 hardcode_shlibpath_var=no
10236 ;;
10237
10238 *nto* | *qnx*)
10239 ;;
10240
10241 openbsd* | bitrig*)
10242 if test -f /usr/libexec/ld.so; then
10243 hardcode_direct=yes
10244 hardcode_shlibpath_var=no
10245 hardcode_direct_absolute=yes
10246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10249 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10250 export_dynamic_flag_spec='$wl-E'
10251 else
10252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10254 fi
10255 else
10256 ld_shlibs=no
10257 fi
10258 ;;
10259
10260 os2*)
10261 hardcode_libdir_flag_spec='-L$libdir'
10262 hardcode_minus_L=yes
10263 allow_undefined_flag=unsupported
10264 shrext_cmds=.dll
10265 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10268 $ECHO EXPORTS >> $output_objdir/$libname.def~
10269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10271 emximp -o $lib $output_objdir/$libname.def'
10272 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10275 $ECHO EXPORTS >> $output_objdir/$libname.def~
10276 prefix_cmds="$SED"~
10277 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10278 prefix_cmds="$prefix_cmds -e 1d";
10279 fi~
10280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10283 emximp -o $lib $output_objdir/$libname.def'
10284 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10285 enable_shared_with_static_runtimes=yes
10286 ;;
10287
10288 osf3*)
10289 if test yes = "$GCC"; then
10290 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10291 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'
10292 else
10293 allow_undefined_flag=' -expect_unresolved \*'
10294 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'
10295 fi
10296 archive_cmds_need_lc='no'
10297 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10298 hardcode_libdir_separator=:
10299 ;;
10300
10301 osf4* | osf5*) # as osf3* with the addition of -msym flag
10302 if test yes = "$GCC"; then
10303 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10304 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'
10305 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10306 else
10307 allow_undefined_flag=' -expect_unresolved \*'
10308 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'
10309 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~
10310 $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'
10311
10312 # Both c and cxx compiler support -rpath directly
10313 hardcode_libdir_flag_spec='-rpath $libdir'
10314 fi
10315 archive_cmds_need_lc='no'
10316 hardcode_libdir_separator=:
10317 ;;
10318
10319 solaris*)
10320 no_undefined_flag=' -z defs'
10321 if test yes = "$GCC"; then
10322 wlarc='$wl'
10323 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325 $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'
10326 else
10327 case `$CC -V 2>&1` in
10328 *"Compilers 5.0"*)
10329 wlarc=''
10330 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10332 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10333 ;;
10334 *)
10335 wlarc='$wl'
10336 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10338 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10339 ;;
10340 esac
10341 fi
10342 hardcode_libdir_flag_spec='-R$libdir'
10343 hardcode_shlibpath_var=no
10344 case $host_os in
10345 solaris2.[0-5] | solaris2.[0-5].*) ;;
10346 *)
10347 # The compiler driver will combine and reorder linker options,
10348 # but understands '-z linker_flag'. GCC discards it without '$wl',
10349 # but is careful enough not to reorder.
10350 # Supported since Solaris 2.6 (maybe 2.5.1?)
10351 if test yes = "$GCC"; then
10352 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10353 else
10354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10355 fi
10356 ;;
10357 esac
10358 link_all_deplibs=yes
10359 ;;
10360
10361 sunos4*)
10362 if test sequent = "$host_vendor"; then
10363 # Use $CC to link under sequent, because it throws in some extra .o
10364 # files that make .init and .fini sections work.
10365 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10366 else
10367 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10368 fi
10369 hardcode_libdir_flag_spec='-L$libdir'
10370 hardcode_direct=yes
10371 hardcode_minus_L=yes
10372 hardcode_shlibpath_var=no
10373 ;;
10374
10375 sysv4)
10376 case $host_vendor in
10377 sni)
10378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct=yes # is this really true???
10380 ;;
10381 siemens)
10382 ## LD is ld it makes a PLAMLIB
10383 ## CC just makes a GrossModule.
10384 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10385 reload_cmds='$CC -r -o $output$reload_objs'
10386 hardcode_direct=no
10387 ;;
10388 motorola)
10389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10391 ;;
10392 esac
10393 runpath_var='LD_RUN_PATH'
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 sysv4.3*)
10398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_shlibpath_var=no
10400 export_dynamic_flag_spec='-Bexport'
10401 ;;
10402
10403 sysv4*MP*)
10404 if test -d /usr/nec; then
10405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_shlibpath_var=no
10407 runpath_var=LD_RUN_PATH
10408 hardcode_runpath_var=yes
10409 ld_shlibs=yes
10410 fi
10411 ;;
10412
10413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10414 no_undefined_flag='$wl-z,text'
10415 archive_cmds_need_lc=no
10416 hardcode_shlibpath_var=no
10417 runpath_var='LD_RUN_PATH'
10418
10419 if test yes = "$GCC"; then
10420 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 else
10423 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 fi
10426 ;;
10427
10428 sysv5* | sco3.2v5* | sco5v6*)
10429 # Note: We CANNOT use -z defs as we might desire, because we do not
10430 # link with -lc, and that would cause any symbols used from libc to
10431 # always be unresolved, which means just about no library would
10432 # ever link correctly. If we're not using GNU ld we use -z text
10433 # though, which does catch some bad symbols but isn't as heavy-handed
10434 # as -z defs.
10435 no_undefined_flag='$wl-z,text'
10436 allow_undefined_flag='$wl-z,nodefs'
10437 archive_cmds_need_lc=no
10438 hardcode_shlibpath_var=no
10439 hardcode_libdir_flag_spec='$wl-R,$libdir'
10440 hardcode_libdir_separator=':'
10441 link_all_deplibs=yes
10442 export_dynamic_flag_spec='$wl-Bexport'
10443 runpath_var='LD_RUN_PATH'
10444
10445 if test yes = "$GCC"; then
10446 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 else
10449 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 fi
10452 ;;
10453
10454 uts4*)
10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456 hardcode_libdir_flag_spec='-L$libdir'
10457 hardcode_shlibpath_var=no
10458 ;;
10459
10460 *)
10461 ld_shlibs=no
10462 ;;
10463 esac
10464
10465 if test sni = "$host_vendor"; then
10466 case $host in
10467 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10468 export_dynamic_flag_spec='$wl-Blargedynsym'
10469 ;;
10470 esac
10471 fi
10472 fi
10473
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10475$as_echo "$ld_shlibs" >&6; }
10476test no = "$ld_shlibs" && can_build_shared=no
10477
10478with_gnu_ld=$with_gnu_ld
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494#
10495# Do we need to explicitly link libc?
10496#
10497case "x$archive_cmds_need_lc" in
10498x|xyes)
10499 # Assume -lc should be added
10500 archive_cmds_need_lc=yes
10501
10502 if test yes,yes = "$GCC,$enable_shared"; then
10503 case $archive_cmds in
10504 *'~'*)
10505 # FIXME: we may have to deal with multi-command sequences.
10506 ;;
10507 '$CC '*)
10508 # Test whether the compiler implicitly links with -lc since on some
10509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10510 # to ld, don't add -lc before -lgcc.
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10512$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10513if ${lt_cv_archive_cmds_need_lc+:} false; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 $RM conftest*
10517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10518
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10520 (eval $ac_compile) 2>&5
10521 ac_status=$?
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; } 2>conftest.err; then
10524 soname=conftest
10525 lib=conftest
10526 libobjs=conftest.$ac_objext
10527 deplibs=
10528 wl=$lt_prog_compiler_wl
10529 pic_flag=$lt_prog_compiler_pic
10530 compiler_flags=-v
10531 linker_flags=-v
10532 verstring=
10533 output_objdir=.
10534 libname=conftest
10535 lt_save_allow_undefined_flag=$allow_undefined_flag
10536 allow_undefined_flag=
10537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10538 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10539 ac_status=$?
10540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541 test $ac_status = 0; }
10542 then
10543 lt_cv_archive_cmds_need_lc=no
10544 else
10545 lt_cv_archive_cmds_need_lc=yes
10546 fi
10547 allow_undefined_flag=$lt_save_allow_undefined_flag
10548 else
10549 cat conftest.err 1>&5
10550 fi
10551 $RM conftest*
10552
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10555$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10556 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10557 ;;
10558 esac
10559 fi
10560 ;;
10561esac
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10715$as_echo_n "checking dynamic linker characteristics... " >&6; }
10716
10717if test yes = "$GCC"; then
10718 case $host_os in
10719 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10720 *) lt_awk_arg='/^libraries:/' ;;
10721 esac
10722 case $host_os in
10723 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10724 *) lt_sed_strip_eq='s|=/|/|g' ;;
10725 esac
10726 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10727 case $lt_search_path_spec in
10728 *\;*)
10729 # if the path contains ";" then we assume it to be the separator
10730 # otherwise default to the standard path separator (i.e. ":") - it is
10731 # assumed that no part of a normal pathname contains ";" but that should
10732 # okay in the real world where ";" in dirpaths is itself problematic.
10733 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10734 ;;
10735 *)
10736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10737 ;;
10738 esac
10739 # Ok, now we have the path, separated by spaces, we can step through it
10740 # and add multilib dir if necessary...
10741 lt_tmp_lt_search_path_spec=
10742 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10743 # ...but if some path component already ends with the multilib dir we assume
10744 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10745 case "$lt_multi_os_dir; $lt_search_path_spec " in
10746 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10747 lt_multi_os_dir=
10748 ;;
10749 esac
10750 for lt_sys_path in $lt_search_path_spec; do
10751 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10752 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10753 elif test -n "$lt_multi_os_dir"; then
10754 test -d "$lt_sys_path" && \
10755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10756 fi
10757 done
10758 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10759BEGIN {RS = " "; FS = "/|\n";} {
10760 lt_foo = "";
10761 lt_count = 0;
10762 for (lt_i = NF; lt_i > 0; lt_i--) {
10763 if ($lt_i != "" && $lt_i != ".") {
10764 if ($lt_i == "..") {
10765 lt_count++;
10766 } else {
10767 if (lt_count == 0) {
10768 lt_foo = "/" $lt_i lt_foo;
10769 } else {
10770 lt_count--;
10771 }
10772 }
10773 }
10774 }
10775 if (lt_foo != "") { lt_freq[lt_foo]++; }
10776 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10777}'`
10778 # AWK program above erroneously prepends '/' to C:/dos/paths
10779 # for these hosts.
10780 case $host_os in
10781 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10782 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10783 esac
10784 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10785else
10786 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10787fi
10788library_names_spec=
10789libname_spec='lib$name'
10790soname_spec=
10791shrext_cmds=.so
10792postinstall_cmds=
10793postuninstall_cmds=
10794finish_cmds=
10795finish_eval=
10796shlibpath_var=
10797shlibpath_overrides_runpath=unknown
10798version_type=none
10799dynamic_linker="$host_os ld.so"
10800sys_lib_dlsearch_path_spec="/lib /usr/lib"
10801need_lib_prefix=unknown
10802hardcode_into_libs=no
10803
10804# when you set need_version to no, make sure it does not cause -set_version
10805# flags to be left without arguments
10806need_version=unknown
10807
10808
10809
10810case $host_os in
10811aix3*)
10812 version_type=linux # correct to gnu/linux during the next big refactor
10813 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10814 shlibpath_var=LIBPATH
10815
10816 # AIX 3 has no versioning support, so we append a major version to the name.
10817 soname_spec='$libname$release$shared_ext$major'
10818 ;;
10819
10820aix[4-9]*)
10821 version_type=linux # correct to gnu/linux during the next big refactor
10822 need_lib_prefix=no
10823 need_version=no
10824 hardcode_into_libs=yes
10825 if test ia64 = "$host_cpu"; then
10826 # AIX 5 supports IA64
10827 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 else
10830 # With GCC up to 2.95.x, collect2 would create an import file
10831 # for dependence libraries. The import file would start with
10832 # the line '#! .'. This would cause the generated library to
10833 # depend on '.', always an invalid library. This was fixed in
10834 # development snapshots of GCC prior to 3.0.
10835 case $host_os in
10836 aix4 | aix4.[01] | aix4.[01].*)
10837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10838 echo ' yes '
10839 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10840 :
10841 else
10842 can_build_shared=no
10843 fi
10844 ;;
10845 esac
10846 # Using Import Files as archive members, it is possible to support
10847 # filename-based versioning of shared library archives on AIX. While
10848 # this would work for both with and without runtime linking, it will
10849 # prevent static linking of such archives. So we do filename-based
10850 # shared library versioning with .so extension only, which is used
10851 # when both runtime linking and shared linking is enabled.
10852 # Unfortunately, runtime linking may impact performance, so we do
10853 # not want this to be the default eventually. Also, we use the
10854 # versioned .so libs for executables only if there is the -brtl
10855 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10856 # To allow for filename-based versioning support, we need to create
10857 # libNAME.so.V as an archive file, containing:
10858 # *) an Import File, referring to the versioned filename of the
10859 # archive as well as the shared archive member, telling the
10860 # bitwidth (32 or 64) of that shared object, and providing the
10861 # list of exported symbols of that shared object, eventually
10862 # decorated with the 'weak' keyword
10863 # *) the shared object with the F_LOADONLY flag set, to really avoid
10864 # it being seen by the linker.
10865 # At run time we better use the real file rather than another symlink,
10866 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10867
10868 case $with_aix_soname,$aix_use_runtimelinking in
10869 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10870 # soname into executable. Probably we can add versioning support to
10871 # collect2, so additional links can be useful in future.
10872 aix,yes) # traditional libtool
10873 dynamic_linker='AIX unversionable lib.so'
10874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10875 # instead of lib<name>.a to let people know that these are not
10876 # typical AIX shared libraries.
10877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878 ;;
10879 aix,no) # traditional AIX only
10880 dynamic_linker='AIX lib.a(lib.so.V)'
10881 # We preserve .a as extension for shared libraries through AIX4.2
10882 # and later when we are not doing run time linking.
10883 library_names_spec='$libname$release.a $libname.a'
10884 soname_spec='$libname$release$shared_ext$major'
10885 ;;
10886 svr4,*) # full svr4 only
10887 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10888 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10889 # We do not specify a path in Import Files, so LIBPATH fires.
10890 shlibpath_overrides_runpath=yes
10891 ;;
10892 *,yes) # both, prefer svr4
10893 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10894 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10895 # unpreferred sharedlib libNAME.a needs extra handling
10896 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10897 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10898 # We do not specify a path in Import Files, so LIBPATH fires.
10899 shlibpath_overrides_runpath=yes
10900 ;;
10901 *,no) # both, prefer aix
10902 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10903 library_names_spec='$libname$release.a $libname.a'
10904 soname_spec='$libname$release$shared_ext$major'
10905 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10906 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10907 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10908 ;;
10909 esac
10910 shlibpath_var=LIBPATH
10911 fi
10912 ;;
10913
10914amigaos*)
10915 case $host_cpu in
10916 powerpc)
10917 # Since July 2007 AmigaOS4 officially supports .so libraries.
10918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10920 ;;
10921 m68k)
10922 library_names_spec='$libname.ixlibrary $libname.a'
10923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10924 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10925 ;;
10926 esac
10927 ;;
10928
10929beos*)
10930 library_names_spec='$libname$shared_ext'
10931 dynamic_linker="$host_os ld.so"
10932 shlibpath_var=LIBRARY_PATH
10933 ;;
10934
10935bsdi[45]*)
10936 version_type=linux # correct to gnu/linux during the next big refactor
10937 need_version=no
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec='$libname$release$shared_ext$major'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10944 # the default ld.so.conf also contains /usr/contrib/lib and
10945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10946 # libtool to hard-code these into programs
10947 ;;
10948
10949cygwin* | mingw* | pw32* | cegcc*)
10950 version_type=windows
10951 shrext_cmds=.dll
10952 need_version=no
10953 need_lib_prefix=no
10954
10955 case $GCC,$cc_basename in
10956 yes,*)
10957 # gcc
10958 library_names_spec='$libname.dll.a'
10959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10960 postinstall_cmds='base_file=`basename \$file`~
10961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10962 dldir=$destdir/`dirname \$dlpath`~
10963 test -d \$dldir || mkdir -p \$dldir~
10964 $install_prog $dir/$dlname \$dldir/$dlname~
10965 chmod a+x \$dldir/$dlname~
10966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10968 fi'
10969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10970 dlpath=$dir/\$dldll~
10971 $RM \$dlpath'
10972 shlibpath_overrides_runpath=yes
10973
10974 case $host_os in
10975 cygwin*)
10976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10977 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10978
10979 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10980 ;;
10981 mingw* | cegcc*)
10982 # MinGW DLLs use traditional 'lib' prefix
10983 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10984 ;;
10985 pw32*)
10986 # pw32 DLLs use 'pw' prefix rather than 'lib'
10987 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10988 ;;
10989 esac
10990 dynamic_linker='Win32 ld.exe'
10991 ;;
10992
10993 *,cl*)
10994 # Native MSVC
10995 libname_spec='$name'
10996 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10997 library_names_spec='$libname.dll.lib'
10998
10999 case $build_os in
11000 mingw*)
11001 sys_lib_search_path_spec=
11002 lt_save_ifs=$IFS
11003 IFS=';'
11004 for lt_path in $LIB
11005 do
11006 IFS=$lt_save_ifs
11007 # Let DOS variable expansion print the short 8.3 style file name.
11008 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11009 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11010 done
11011 IFS=$lt_save_ifs
11012 # Convert to MSYS style.
11013 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11014 ;;
11015 cygwin*)
11016 # Convert to unix form, then to dos form, then back to unix form
11017 # but this time dos style (no spaces!) so that the unix form looks
11018 # like /cygdrive/c/PROGRA~1:/cygdr...
11019 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11020 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11021 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11022 ;;
11023 *)
11024 sys_lib_search_path_spec=$LIB
11025 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11026 # It is most probably a Windows format PATH.
11027 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11028 else
11029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11030 fi
11031 # FIXME: find the short name or the path components, as spaces are
11032 # common. (e.g. "Program Files" -> "PROGRA~1")
11033 ;;
11034 esac
11035
11036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11037 postinstall_cmds='base_file=`basename \$file`~
11038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11039 dldir=$destdir/`dirname \$dlpath`~
11040 test -d \$dldir || mkdir -p \$dldir~
11041 $install_prog $dir/$dlname \$dldir/$dlname'
11042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11043 dlpath=$dir/\$dldll~
11044 $RM \$dlpath'
11045 shlibpath_overrides_runpath=yes
11046 dynamic_linker='Win32 link.exe'
11047 ;;
11048
11049 *)
11050 # Assume MSVC wrapper
11051 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11052 dynamic_linker='Win32 ld.exe'
11053 ;;
11054 esac
11055 # FIXME: first we should search . and the directory the executable is in
11056 shlibpath_var=PATH
11057 ;;
11058
11059darwin* | rhapsody*)
11060 dynamic_linker="$host_os dyld"
11061 version_type=darwin
11062 need_lib_prefix=no
11063 need_version=no
11064 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11065 soname_spec='$libname$release$major$shared_ext'
11066 shlibpath_overrides_runpath=yes
11067 shlibpath_var=DYLD_LIBRARY_PATH
11068 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11069
11070 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11071 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11072 ;;
11073
11074dgux*)
11075 version_type=linux # correct to gnu/linux during the next big refactor
11076 need_lib_prefix=no
11077 need_version=no
11078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 soname_spec='$libname$release$shared_ext$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 ;;
11082
11083freebsd* | dragonfly*)
11084 # DragonFly does not have aout. When/if they implement a new
11085 # versioning mechanism, adjust this.
11086 if test -x /usr/bin/objformat; then
11087 objformat=`/usr/bin/objformat`
11088 else
11089 case $host_os in
11090 freebsd[23].*) objformat=aout ;;
11091 *) objformat=elf ;;
11092 esac
11093 fi
11094 version_type=freebsd-$objformat
11095 case $version_type in
11096 freebsd-elf*)
11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11098 soname_spec='$libname$release$shared_ext$major'
11099 need_version=no
11100 need_lib_prefix=no
11101 ;;
11102 freebsd-*)
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11104 need_version=yes
11105 ;;
11106 esac
11107 shlibpath_var=LD_LIBRARY_PATH
11108 case $host_os in
11109 freebsd2.*)
11110 shlibpath_overrides_runpath=yes
11111 ;;
11112 freebsd3.[01]* | freebsdelf3.[01]*)
11113 shlibpath_overrides_runpath=yes
11114 hardcode_into_libs=yes
11115 ;;
11116 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11117 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11118 shlibpath_overrides_runpath=no
11119 hardcode_into_libs=yes
11120 ;;
11121 *) # from 4.6 on, and DragonFly
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11124 ;;
11125 esac
11126 ;;
11127
11128haiku*)
11129 version_type=linux # correct to gnu/linux during the next big refactor
11130 need_lib_prefix=no
11131 need_version=no
11132 dynamic_linker="$host_os runtime_loader"
11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 soname_spec='$libname$release$shared_ext$major'
11135 shlibpath_var=LIBRARY_PATH
11136 shlibpath_overrides_runpath=no
11137 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11138 hardcode_into_libs=yes
11139 ;;
11140
11141hpux9* | hpux10* | hpux11*)
11142 # Give a soname corresponding to the major version so that dld.sl refuses to
11143 # link against other versions.
11144 version_type=sunos
11145 need_lib_prefix=no
11146 need_version=no
11147 case $host_cpu in
11148 ia64*)
11149 shrext_cmds='.so'
11150 hardcode_into_libs=yes
11151 dynamic_linker="$host_os dld.so"
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec='$libname$release$shared_ext$major'
11156 if test 32 = "$HPUX_IA64_MODE"; then
11157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11158 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11159 else
11160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11161 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11162 fi
11163 ;;
11164 hppa*64*)
11165 shrext_cmds='.sl'
11166 hardcode_into_libs=yes
11167 dynamic_linker="$host_os dld.sl"
11168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 soname_spec='$libname$release$shared_ext$major'
11172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11174 ;;
11175 *)
11176 shrext_cmds='.sl'
11177 dynamic_linker="$host_os dld.sl"
11178 shlibpath_var=SHLIB_PATH
11179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181 soname_spec='$libname$release$shared_ext$major'
11182 ;;
11183 esac
11184 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11185 postinstall_cmds='chmod 555 $lib'
11186 # or fails outright, so override atomically:
11187 install_override_mode=555
11188 ;;
11189
11190interix[3-9]*)
11191 version_type=linux # correct to gnu/linux during the next big refactor
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195 soname_spec='$libname$release$shared_ext$major'
11196 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=no
11199 hardcode_into_libs=yes
11200 ;;
11201
11202irix5* | irix6* | nonstopux*)
11203 case $host_os in
11204 nonstopux*) version_type=nonstopux ;;
11205 *)
11206 if test yes = "$lt_cv_prog_gnu_ld"; then
11207 version_type=linux # correct to gnu/linux during the next big refactor
11208 else
11209 version_type=irix
11210 fi ;;
11211 esac
11212 need_lib_prefix=no
11213 need_version=no
11214 soname_spec='$libname$release$shared_ext$major'
11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11216 case $host_os in
11217 irix5* | nonstopux*)
11218 libsuff= shlibsuff=
11219 ;;
11220 *)
11221 case $LD in # libtool.m4 will add one of these switches to LD
11222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11223 libsuff= shlibsuff= libmagic=32-bit;;
11224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11225 libsuff=32 shlibsuff=N32 libmagic=N32;;
11226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11228 *) libsuff= shlibsuff= libmagic=never-match;;
11229 esac
11230 ;;
11231 esac
11232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11233 shlibpath_overrides_runpath=no
11234 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11235 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11236 hardcode_into_libs=yes
11237 ;;
11238
11239# No shared lib support for Linux oldld, aout, or coff.
11240linux*oldld* | linux*aout* | linux*coff*)
11241 dynamic_linker=no
11242 ;;
11243
11244linux*android*)
11245 version_type=none # Android doesn't support versioned libraries.
11246 need_lib_prefix=no
11247 need_version=no
11248 library_names_spec='$libname$release$shared_ext'
11249 soname_spec='$libname$release$shared_ext'
11250 finish_cmds=
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11253
11254 # This implies no fast_install, which is unacceptable.
11255 # Some rework will be needed to allow for fast_install
11256 # before this can be enabled.
11257 hardcode_into_libs=yes
11258
11259 dynamic_linker='Android linker'
11260 # Don't embed -rpath directories since the linker doesn't support them.
11261 hardcode_libdir_flag_spec='-L$libdir'
11262 ;;
11263
11264# This must be glibc/ELF.
11265linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11266 version_type=linux # correct to gnu/linux during the next big refactor
11267 need_lib_prefix=no
11268 need_version=no
11269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11270 soname_spec='$libname$release$shared_ext$major'
11271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=no
11274
11275 # Some binutils ld are patched to set DT_RUNPATH
11276 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278else
11279 lt_cv_shlibpath_overrides_runpath=no
11280 save_LDFLAGS=$LDFLAGS
11281 save_libdir=$libdir
11282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h. */
11286
11287int
11288main ()
11289{
11290
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295if ac_fn_c_try_link "$LINENO"; then :
11296 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11297 lt_cv_shlibpath_overrides_runpath=yes
11298fi
11299fi
11300rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LDFLAGS=$save_LDFLAGS
11303 libdir=$save_libdir
11304
11305fi
11306
11307 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11308
11309 # This implies no fast_install, which is unacceptable.
11310 # Some rework will be needed to allow for fast_install
11311 # before this can be enabled.
11312 hardcode_into_libs=yes
11313
11314 # Ideally, we could use ldconfig to report *all* directores which are
11315 # searched for libraries, however this is still not possible. Aside from not
11316 # being certain /sbin/ldconfig is available, command
11317 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11318 # even though it is searched at run-time. Try to do the best guess by
11319 # appending ld.so.conf contents (and includes) to the search path.
11320 if test -f /etc/ld.so.conf; then
11321 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' ' '`
11322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11323 fi
11324
11325 # We used to test for /lib/ld.so.1 and disable shared libraries on
11326 # powerpc, because MkLinux only supported shared libraries with the
11327 # GNU dynamic linker. Since this was broken with cross compilers,
11328 # most powerpc-linux boxes support dynamic linking these days and
11329 # people can always --disable-shared, the test was removed, and we
11330 # assume the GNU/Linux dynamic linker is in use.
11331 dynamic_linker='GNU/Linux ld.so'
11332 ;;
11333
11334netbsdelf*-gnu)
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath=no
11342 hardcode_into_libs=yes
11343 dynamic_linker='NetBSD ld.elf_so'
11344 ;;
11345
11346netbsd*)
11347 version_type=sunos
11348 need_lib_prefix=no
11349 need_version=no
11350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353 dynamic_linker='NetBSD (a.out) ld.so'
11354 else
11355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 soname_spec='$libname$release$shared_ext$major'
11357 dynamic_linker='NetBSD ld.elf_so'
11358 fi
11359 shlibpath_var=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath=yes
11361 hardcode_into_libs=yes
11362 ;;
11363
11364newsos6)
11365 version_type=linux # correct to gnu/linux during the next big refactor
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=yes
11369 ;;
11370
11371*nto* | *qnx*)
11372 version_type=qnx
11373 need_lib_prefix=no
11374 need_version=no
11375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11376 soname_spec='$libname$release$shared_ext$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=no
11379 hardcode_into_libs=yes
11380 dynamic_linker='ldqnx.so'
11381 ;;
11382
11383openbsd* | bitrig*)
11384 version_type=sunos
11385 sys_lib_dlsearch_path_spec=/usr/lib
11386 need_lib_prefix=no
11387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11388 need_version=no
11389 else
11390 need_version=yes
11391 fi
11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath=yes
11396 ;;
11397
11398os2*)
11399 libname_spec='$name'
11400 version_type=windows
11401 shrext_cmds=.dll
11402 need_version=no
11403 need_lib_prefix=no
11404 # OS/2 can only load a DLL with a base name of 8 characters or less.
11405 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11406 v=$($ECHO $release$versuffix | tr -d .-);
11407 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11408 $ECHO $n$v`$shared_ext'
11409 library_names_spec='${libname}_dll.$libext'
11410 dynamic_linker='OS/2 ld.exe'
11411 shlibpath_var=BEGINLIBPATH
11412 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11414 postinstall_cmds='base_file=`basename \$file`~
11415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11416 dldir=$destdir/`dirname \$dlpath`~
11417 test -d \$dldir || mkdir -p \$dldir~
11418 $install_prog $dir/$dlname \$dldir/$dlname~
11419 chmod a+x \$dldir/$dlname~
11420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11422 fi'
11423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11424 dlpath=$dir/\$dldll~
11425 $RM \$dlpath'
11426 ;;
11427
11428osf3* | osf4* | osf5*)
11429 version_type=osf
11430 need_lib_prefix=no
11431 need_version=no
11432 soname_spec='$libname$release$shared_ext$major'
11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11437 ;;
11438
11439rdos*)
11440 dynamic_linker=no
11441 ;;
11442
11443solaris*)
11444 version_type=linux # correct to gnu/linux during the next big refactor
11445 need_lib_prefix=no
11446 need_version=no
11447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11448 soname_spec='$libname$release$shared_ext$major'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 # ldd complains unless libraries are executable
11453 postinstall_cmds='chmod +x $lib'
11454 ;;
11455
11456sunos4*)
11457 version_type=sunos
11458 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 if test yes = "$with_gnu_ld"; then
11463 need_lib_prefix=no
11464 fi
11465 need_version=yes
11466 ;;
11467
11468sysv4 | sysv4.3*)
11469 version_type=linux # correct to gnu/linux during the next big refactor
11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 soname_spec='$libname$release$shared_ext$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 case $host_vendor in
11474 sni)
11475 shlibpath_overrides_runpath=no
11476 need_lib_prefix=no
11477 runpath_var=LD_RUN_PATH
11478 ;;
11479 siemens)
11480 need_lib_prefix=no
11481 ;;
11482 motorola)
11483 need_lib_prefix=no
11484 need_version=no
11485 shlibpath_overrides_runpath=no
11486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11487 ;;
11488 esac
11489 ;;
11490
11491sysv4*MP*)
11492 if test -d /usr/nec; then
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11495 soname_spec='$libname$shared_ext.$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 fi
11498 ;;
11499
11500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11501 version_type=sco
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11505 soname_spec='$libname$release$shared_ext$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11509 if test yes = "$with_gnu_ld"; then
11510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11511 else
11512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11513 case $host_os in
11514 sco3.2v5*)
11515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11516 ;;
11517 esac
11518 fi
11519 sys_lib_dlsearch_path_spec='/usr/lib'
11520 ;;
11521
11522tpf*)
11523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 need_lib_prefix=no
11526 need_version=no
11527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=no
11530 hardcode_into_libs=yes
11531 ;;
11532
11533uts4*)
11534 version_type=linux # correct to gnu/linux during the next big refactor
11535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11536 soname_spec='$libname$release$shared_ext$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 ;;
11539
11540*)
11541 dynamic_linker=no
11542 ;;
11543esac
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11545$as_echo "$dynamic_linker" >&6; }
11546test no = "$dynamic_linker" && can_build_shared=no
11547
11548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11549if test yes = "$GCC"; then
11550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11551fi
11552
11553if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11554 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11555fi
11556
11557if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11558 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11559fi
11560
11561# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11562configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11563
11564# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11565func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11566
11567# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11568configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11667$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11668hardcode_action=
11669if test -n "$hardcode_libdir_flag_spec" ||
11670 test -n "$runpath_var" ||
11671 test yes = "$hardcode_automatic"; then
11672
11673 # We can hardcode non-existent directories.
11674 if test no != "$hardcode_direct" &&
11675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11676 # have to relink, otherwise we might link with an installed library
11677 # when we should be linking with a yet-to-be-installed one
11678 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11679 test no != "$hardcode_minus_L"; then
11680 # Linking always hardcodes the temporary library directory.
11681 hardcode_action=relink
11682 else
11683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11684 hardcode_action=immediate
11685 fi
11686else
11687 # We cannot hardcode anything, or else we can only hardcode existing
11688 # directories.
11689 hardcode_action=unsupported
11690fi
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11692$as_echo "$hardcode_action" >&6; }
11693
11694if test relink = "$hardcode_action" ||
11695 test yes = "$inherit_rpath"; then
11696 # Fast installation is not supported
11697 enable_fast_install=no
11698elif test yes = "$shlibpath_overrides_runpath" ||
11699 test no = "$enable_shared"; then
11700 # Fast installation is not necessary
11701 enable_fast_install=needless
11702fi
11703
11704
11705
11706
11707
11708
11709 if test yes != "$enable_dlopen"; then
11710 enable_dlopen=unknown
11711 enable_dlopen_self=unknown
11712 enable_dlopen_self_static=unknown
11713else
11714 lt_cv_dlopen=no
11715 lt_cv_dlopen_libs=
11716
11717 case $host_os in
11718 beos*)
11719 lt_cv_dlopen=load_add_on
11720 lt_cv_dlopen_libs=
11721 lt_cv_dlopen_self=yes
11722 ;;
11723
11724 mingw* | pw32* | cegcc*)
11725 lt_cv_dlopen=LoadLibrary
11726 lt_cv_dlopen_libs=
11727 ;;
11728
11729 cygwin*)
11730 lt_cv_dlopen=dlopen
11731 lt_cv_dlopen_libs=
11732 ;;
11733
11734 darwin*)
11735 # if libdl is installed we need to link against it
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11737$as_echo_n "checking for dlopen in -ldl... " >&6; }
11738if ${ac_cv_lib_dl_dlopen+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740else
11741 ac_check_lib_save_LIBS=$LIBS
11742LIBS="-ldl $LIBS"
11743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h. */
11745
11746/* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11749#ifdef __cplusplus
11750extern "C"
11751#endif
11752char dlopen ();
11753int
11754main ()
11755{
11756return dlopen ();
11757 ;
11758 return 0;
11759}
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762 ac_cv_lib_dl_dlopen=yes
11763else
11764 ac_cv_lib_dl_dlopen=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768LIBS=$ac_check_lib_save_LIBS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11771$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11772if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11773 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11774else
11775
11776 lt_cv_dlopen=dyld
11777 lt_cv_dlopen_libs=
11778 lt_cv_dlopen_self=yes
11779
11780fi
11781
11782 ;;
11783
11784 tpf*)
11785 # Don't try to run any link tests for TPF. We know it's impossible
11786 # because TPF is a cross-compiler, and we know how we open DSOs.
11787 lt_cv_dlopen=dlopen
11788 lt_cv_dlopen_libs=
11789 lt_cv_dlopen_self=no
11790 ;;
11791
11792 *)
11793 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11794if test "x$ac_cv_func_shl_load" = xyes; then :
11795 lt_cv_dlopen=shl_load
11796else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11798$as_echo_n "checking for shl_load in -ldld... " >&6; }
11799if ${ac_cv_lib_dld_shl_load+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801else
11802 ac_check_lib_save_LIBS=$LIBS
11803LIBS="-ldld $LIBS"
11804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805/* end confdefs.h. */
11806
11807/* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11810#ifdef __cplusplus
11811extern "C"
11812#endif
11813char shl_load ();
11814int
11815main ()
11816{
11817return shl_load ();
11818 ;
11819 return 0;
11820}
11821_ACEOF
11822if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_dld_shl_load=yes
11824else
11825 ac_cv_lib_dld_shl_load=no
11826fi
11827rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829LIBS=$ac_check_lib_save_LIBS
11830fi
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11832$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11833if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11834 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11835else
11836 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11837if test "x$ac_cv_func_dlopen" = xyes; then :
11838 lt_cv_dlopen=dlopen
11839else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11841$as_echo_n "checking for dlopen in -ldl... " >&6; }
11842if ${ac_cv_lib_dl_dlopen+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844else
11845 ac_check_lib_save_LIBS=$LIBS
11846LIBS="-ldl $LIBS"
11847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848/* end confdefs.h. */
11849
11850/* Override any GCC internal prototype to avoid an error.
11851 Use char because int might match the return type of a GCC
11852 builtin and then its argument prototype would still apply. */
11853#ifdef __cplusplus
11854extern "C"
11855#endif
11856char dlopen ();
11857int
11858main ()
11859{
11860return dlopen ();
11861 ;
11862 return 0;
11863}
11864_ACEOF
11865if ac_fn_c_try_link "$LINENO"; then :
11866 ac_cv_lib_dl_dlopen=yes
11867else
11868 ac_cv_lib_dl_dlopen=no
11869fi
11870rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872LIBS=$ac_check_lib_save_LIBS
11873fi
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11875$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11876if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11877 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11878else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11880$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11881if ${ac_cv_lib_svld_dlopen+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883else
11884 ac_check_lib_save_LIBS=$LIBS
11885LIBS="-lsvld $LIBS"
11886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887/* end confdefs.h. */
11888
11889/* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895char dlopen ();
11896int
11897main ()
11898{
11899return dlopen ();
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904if ac_fn_c_try_link "$LINENO"; then :
11905 ac_cv_lib_svld_dlopen=yes
11906else
11907 ac_cv_lib_svld_dlopen=no
11908fi
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911LIBS=$ac_check_lib_save_LIBS
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11914$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11915if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11916 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11917else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11919$as_echo_n "checking for dld_link in -ldld... " >&6; }
11920if ${ac_cv_lib_dld_dld_link+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922else
11923 ac_check_lib_save_LIBS=$LIBS
11924LIBS="-ldld $LIBS"
11925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h. */
11927
11928/* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11931#ifdef __cplusplus
11932extern "C"
11933#endif
11934char dld_link ();
11935int
11936main ()
11937{
11938return dld_link ();
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_lib_dld_dld_link=yes
11945else
11946 ac_cv_lib_dld_dld_link=no
11947fi
11948rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950LIBS=$ac_check_lib_save_LIBS
11951fi
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11953$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11954if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11955 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11956fi
11957
11958
11959fi
11960
11961
11962fi
11963
11964
11965fi
11966
11967
11968fi
11969
11970
11971fi
11972
11973 ;;
11974 esac
11975
11976 if test no = "$lt_cv_dlopen"; then
11977 enable_dlopen=no
11978 else
11979 enable_dlopen=yes
11980 fi
11981
11982 case $lt_cv_dlopen in
11983 dlopen)
11984 save_CPPFLAGS=$CPPFLAGS
11985 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11986
11987 save_LDFLAGS=$LDFLAGS
11988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11989
11990 save_LIBS=$LIBS
11991 LIBS="$lt_cv_dlopen_libs $LIBS"
11992
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11994$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11995if ${lt_cv_dlopen_self+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997else
11998 if test yes = "$cross_compiling"; then :
11999 lt_cv_dlopen_self=cross
12000else
12001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12002 lt_status=$lt_dlunknown
12003 cat > conftest.$ac_ext <<_LT_EOF
12004#line $LINENO "configure"
12005#include "confdefs.h"
12006
12007#if HAVE_DLFCN_H
12008#include <dlfcn.h>
12009#endif
12010
12011#include <stdio.h>
12012
12013#ifdef RTLD_GLOBAL
12014# define LT_DLGLOBAL RTLD_GLOBAL
12015#else
12016# ifdef DL_GLOBAL
12017# define LT_DLGLOBAL DL_GLOBAL
12018# else
12019# define LT_DLGLOBAL 0
12020# endif
12021#endif
12022
12023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12024 find out it does not work in some platform. */
12025#ifndef LT_DLLAZY_OR_NOW
12026# ifdef RTLD_LAZY
12027# define LT_DLLAZY_OR_NOW RTLD_LAZY
12028# else
12029# ifdef DL_LAZY
12030# define LT_DLLAZY_OR_NOW DL_LAZY
12031# else
12032# ifdef RTLD_NOW
12033# define LT_DLLAZY_OR_NOW RTLD_NOW
12034# else
12035# ifdef DL_NOW
12036# define LT_DLLAZY_OR_NOW DL_NOW
12037# else
12038# define LT_DLLAZY_OR_NOW 0
12039# endif
12040# endif
12041# endif
12042# endif
12043#endif
12044
12045/* When -fvisibility=hidden is used, assume the code has been annotated
12046 correspondingly for the symbols needed. */
12047#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12048int fnord () __attribute__((visibility("default")));
12049#endif
12050
12051int fnord () { return 42; }
12052int main ()
12053{
12054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12055 int status = $lt_dlunknown;
12056
12057 if (self)
12058 {
12059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12060 else
12061 {
12062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12063 else puts (dlerror ());
12064 }
12065 /* dlclose (self); */
12066 }
12067 else
12068 puts (dlerror ());
12069
12070 return status;
12071}
12072_LT_EOF
12073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12074 (eval $ac_link) 2>&5
12075 ac_status=$?
12076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12077 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12078 (./conftest; exit; ) >&5 2>/dev/null
12079 lt_status=$?
12080 case x$lt_status in
12081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12083 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12084 esac
12085 else :
12086 # compilation failed
12087 lt_cv_dlopen_self=no
12088 fi
12089fi
12090rm -fr conftest*
12091
12092
12093fi
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12095$as_echo "$lt_cv_dlopen_self" >&6; }
12096
12097 if test yes = "$lt_cv_dlopen_self"; then
12098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12100$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12101if ${lt_cv_dlopen_self_static+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103else
12104 if test yes = "$cross_compiling"; then :
12105 lt_cv_dlopen_self_static=cross
12106else
12107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12108 lt_status=$lt_dlunknown
12109 cat > conftest.$ac_ext <<_LT_EOF
12110#line $LINENO "configure"
12111#include "confdefs.h"
12112
12113#if HAVE_DLFCN_H
12114#include <dlfcn.h>
12115#endif
12116
12117#include <stdio.h>
12118
12119#ifdef RTLD_GLOBAL
12120# define LT_DLGLOBAL RTLD_GLOBAL
12121#else
12122# ifdef DL_GLOBAL
12123# define LT_DLGLOBAL DL_GLOBAL
12124# else
12125# define LT_DLGLOBAL 0
12126# endif
12127#endif
12128
12129/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12130 find out it does not work in some platform. */
12131#ifndef LT_DLLAZY_OR_NOW
12132# ifdef RTLD_LAZY
12133# define LT_DLLAZY_OR_NOW RTLD_LAZY
12134# else
12135# ifdef DL_LAZY
12136# define LT_DLLAZY_OR_NOW DL_LAZY
12137# else
12138# ifdef RTLD_NOW
12139# define LT_DLLAZY_OR_NOW RTLD_NOW
12140# else
12141# ifdef DL_NOW
12142# define LT_DLLAZY_OR_NOW DL_NOW
12143# else
12144# define LT_DLLAZY_OR_NOW 0
12145# endif
12146# endif
12147# endif
12148# endif
12149#endif
12150
12151/* When -fvisibility=hidden is used, assume the code has been annotated
12152 correspondingly for the symbols needed. */
12153#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12154int fnord () __attribute__((visibility("default")));
12155#endif
12156
12157int fnord () { return 42; }
12158int main ()
12159{
12160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161 int status = $lt_dlunknown;
12162
12163 if (self)
12164 {
12165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12166 else
12167 {
12168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12169 else puts (dlerror ());
12170 }
12171 /* dlclose (self); */
12172 }
12173 else
12174 puts (dlerror ());
12175
12176 return status;
12177}
12178_LT_EOF
12179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12180 (eval $ac_link) 2>&5
12181 ac_status=$?
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12184 (./conftest; exit; ) >&5 2>/dev/null
12185 lt_status=$?
12186 case x$lt_status in
12187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12190 esac
12191 else :
12192 # compilation failed
12193 lt_cv_dlopen_self_static=no
12194 fi
12195fi
12196rm -fr conftest*
12197
12198
12199fi
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12201$as_echo "$lt_cv_dlopen_self_static" >&6; }
12202 fi
12203
12204 CPPFLAGS=$save_CPPFLAGS
12205 LDFLAGS=$save_LDFLAGS
12206 LIBS=$save_LIBS
12207 ;;
12208 esac
12209
12210 case $lt_cv_dlopen_self in
12211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12212 *) enable_dlopen_self=unknown ;;
12213 esac
12214
12215 case $lt_cv_dlopen_self_static in
12216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12217 *) enable_dlopen_self_static=unknown ;;
12218 esac
12219fi
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237striplib=
12238old_striplib=
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12240$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12241if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12242 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12243 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245$as_echo "yes" >&6; }
12246else
12247# FIXME - insert some real tests, host_os isn't really good enough
12248 case $host_os in
12249 darwin*)
12250 if test -n "$STRIP"; then
12251 striplib="$STRIP -x"
12252 old_striplib="$STRIP -S"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254$as_echo "yes" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258 fi
12259 ;;
12260 *)
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263 ;;
12264 esac
12265fi
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278 # Report what library types will actually be built
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12280$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12282$as_echo "$can_build_shared" >&6; }
12283
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12285$as_echo_n "checking whether to build shared libraries... " >&6; }
12286 test no = "$can_build_shared" && enable_shared=no
12287
12288 # On AIX, shared libraries and static libraries use the same namespace, and
12289 # are all built from PIC.
12290 case $host_os in
12291 aix3*)
12292 test yes = "$enable_shared" && enable_static=no
12293 if test -n "$RANLIB"; then
12294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12295 postinstall_cmds='$RANLIB $lib'
12296 fi
12297 ;;
12298
12299 aix[4-9]*)
12300 if test ia64 != "$host_cpu"; then
12301 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12302 yes,aix,yes) ;; # shared object as lib.so file only
12303 yes,svr4,*) ;; # shared object as lib.so archive member only
12304 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12305 esac
12306 fi
12307 ;;
12308 esac
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12310$as_echo "$enable_shared" >&6; }
12311
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12313$as_echo_n "checking whether to build static libraries... " >&6; }
12314 # Make sure either enable_shared or enable_static is yes.
12315 test yes = "$enable_shared" || enable_static=yes
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12317$as_echo "$enable_static" >&6; }
12318
12319
12320
12321
12322fi
12323ac_ext=c
12324ac_cpp='$CPP $CPPFLAGS'
12325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327ac_compiler_gnu=$ac_cv_c_compiler_gnu
12328
12329CC=$lt_save_CC
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345 ac_config_commands="$ac_config_commands libtool"
12346
12347
12348
12349
12350# Only expand once:
12351
12352
12353# By default we simply use the C compiler to build assembly code.
12354
12355test "${CCAS+set}" = set || CCAS=$CC
12356test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12357
12358
12359
12360depcc="$CCAS" am_compiler_list=
12361
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12363$as_echo_n "checking dependency style of $depcc... " >&6; }
12364if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366else
12367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12368 # We make a subdir and do the tests there. Otherwise we can end up
12369 # making bogus files that we don't know about and never remove. For
12370 # instance it was reported that on HP-UX the gcc test will end up
12371 # making a dummy file named 'D' -- because '-MD' means "put the output
12372 # in D".
12373 rm -rf conftest.dir
12374 mkdir conftest.dir
12375 # Copy depcomp to subdir because otherwise we won't find it if we're
12376 # using a relative directory.
12377 cp "$am_depcomp" conftest.dir
12378 cd conftest.dir
12379 # We will build objects and dependencies in a subdirectory because
12380 # it helps to detect inapplicable dependency modes. For instance
12381 # both Tru64's cc and ICC support -MD to output dependencies as a
12382 # side effect of compilation, but ICC will put the dependencies in
12383 # the current directory while Tru64 will put them in the object
12384 # directory.
12385 mkdir sub
12386
12387 am_cv_CCAS_dependencies_compiler_type=none
12388 if test "$am_compiler_list" = ""; then
12389 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12390 fi
12391 am__universal=false
12392
12393
12394 for depmode in $am_compiler_list; do
12395 # Setup a source with many dependencies, because some compilers
12396 # like to wrap large dependency lists on column 80 (with \), and
12397 # we should not choose a depcomp mode which is confused by this.
12398 #
12399 # We need to recreate these files for each test, as the compiler may
12400 # overwrite some of them when testing with obscure command lines.
12401 # This happens at least with the AIX C compiler.
12402 : > sub/conftest.c
12403 for i in 1 2 3 4 5 6; do
12404 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12405 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12406 # Solaris 10 /bin/sh.
12407 echo '/* dummy */' > sub/conftst$i.h
12408 done
12409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12410
12411 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12412 # mode. It turns out that the SunPro C++ compiler does not properly
12413 # handle '-M -o', and we need to detect this. Also, some Intel
12414 # versions had trouble with output in subdirs.
12415 am__obj=sub/conftest.${OBJEXT-o}
12416 am__minus_obj="-o $am__obj"
12417 case $depmode in
12418 gcc)
12419 # This depmode causes a compiler race in universal mode.
12420 test "$am__universal" = false || continue
12421 ;;
12422 nosideeffect)
12423 # After this tag, mechanisms are not by side-effect, so they'll
12424 # only be used when explicitly requested.
12425 if test "x$enable_dependency_tracking" = xyes; then
12426 continue
12427 else
12428 break
12429 fi
12430 ;;
12431 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12432 # This compiler won't grok '-c -o', but also, the minuso test has
12433 # not run yet. These depmodes are late enough in the game, and
12434 # so weak that their functioning should not be impacted.
12435 am__obj=conftest.${OBJEXT-o}
12436 am__minus_obj=
12437 ;;
12438 none) break ;;
12439 esac
12440 if depmode=$depmode \
12441 source=sub/conftest.c object=$am__obj \
12442 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12443 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12444 >/dev/null 2>conftest.err &&
12445 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12446 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12447 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12448 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12449 # icc doesn't choke on unknown options, it will just issue warnings
12450 # or remarks (even with -Werror). So we grep stderr for any message
12451 # that says an option was ignored or not supported.
12452 # When given -MP, icc 7.0 and 7.1 complain thusly:
12453 # icc: Command line warning: ignoring option '-M'; no argument required
12454 # The diagnosis changed in icc 8.0:
12455 # icc: Command line remark: option '-MP' not supported
12456 if (grep 'ignoring option' conftest.err ||
12457 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12458 am_cv_CCAS_dependencies_compiler_type=$depmode
12459 break
12460 fi
12461 fi
12462 done
12463
12464 cd ..
12465 rm -rf conftest.dir
12466else
12467 am_cv_CCAS_dependencies_compiler_type=none
12468fi
12469
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12472$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12473CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12474
12475 if
12476 test "x$enable_dependency_tracking" != xno \
12477 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12478 am__fastdepCCAS_TRUE=
12479 am__fastdepCCAS_FALSE='#'
12480else
12481 am__fastdepCCAS_TRUE='#'
12482 am__fastdepCCAS_FALSE=
12483fi
12484
12485
12486
12487
86e3c28a 12488
70e083d2
TG
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12490$as_echo_n "checking zfs author... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12492$as_echo "$ZFS_META_AUTHOR" >&6; }
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12495$as_echo_n "checking zfs license... " >&6; }
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12497$as_echo "$ZFS_META_LICENSE" >&6; }
12498
12499
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12502$as_echo_n "checking linux distribution... " >&6; }
12503 if test -f /etc/toss-release ; then
12504 VENDOR=toss ;
12505 elif test -f /etc/fedora-release ; then
12506 VENDOR=fedora ;
12507 elif test -f /etc/redhat-release ; then
12508 VENDOR=redhat ;
12509 elif test -f /etc/gentoo-release ; then
12510 VENDOR=gentoo ;
12511 elif test -f /etc/arch-release ; then
12512 VENDOR=arch ;
12513 elif test -f /etc/SuSE-release ; then
12514 VENDOR=sles ;
12515 elif test -f /etc/slackware-version ; then
12516 VENDOR=slackware ;
12517 elif test -f /etc/lunar.release ; then
12518 VENDOR=lunar ;
12519 elif test -f /etc/lsb-release ; then
12520 VENDOR=ubuntu ;
12521 elif test -f /etc/debian_version ; then
12522 VENDOR=debian ;
86e3c28a
CIK
12523 elif test -f /etc/alpine-release ; then
12524 VENDOR=alpine ;
70e083d2
TG
12525 else
12526 VENDOR= ;
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12529$as_echo "$VENDOR" >&6; }
12530
12531
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12533$as_echo_n "checking default package type... " >&6; }
12534 case "$VENDOR" in
12535 toss) DEFAULT_PACKAGE=rpm ;;
12536 redhat) DEFAULT_PACKAGE=rpm ;;
12537 fedora) DEFAULT_PACKAGE=rpm ;;
12538 gentoo) DEFAULT_PACKAGE=tgz ;;
86e3c28a 12539 alpine) DEFAULT_PACKAGE=tgz ;;
70e083d2
TG
12540 arch) DEFAULT_PACKAGE=tgz ;;
12541 sles) DEFAULT_PACKAGE=rpm ;;
12542 slackware) DEFAULT_PACKAGE=tgz ;;
12543 lunar) DEFAULT_PACKAGE=tgz ;;
12544 ubuntu) DEFAULT_PACKAGE=deb ;;
12545 debian) DEFAULT_PACKAGE=deb ;;
12546 *) DEFAULT_PACKAGE=rpm ;;
12547 esac
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12549$as_echo "$DEFAULT_PACKAGE" >&6; }
12550
12551
12552 DEFAULT_INIT_DIR=$sysconfdir/init.d
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12554$as_echo_n "checking default init directory... " >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12556$as_echo "$DEFAULT_INIT_DIR" >&6; }
12557
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12560$as_echo_n "checking default init script type... " >&6; }
12561 case "$VENDOR" in
12562 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12563 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12564 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
86e3c28a
CIK
12565 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12566 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
70e083d2
TG
12567 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12568 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12569 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12570 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12571 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12572 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12573 *) DEFAULT_INIT_SCRIPT=lsb ;;
12574 esac
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12576$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12577
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12580$as_echo_n "checking default init config direectory... " >&6; }
12581 case "$VENDOR" in
86e3c28a 12582 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
70e083d2
TG
12583 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12584 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12585 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12586 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12587 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12588 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12589 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12590 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12591 esac
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12593$as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12597$as_echo_n "checking whether initramfs-tools is available... " >&6; }
12598 if test -d /usr/share/initramfs-tools ; then
12599 DEFINE_INITRAMFS='--define "_initramfs 1"'
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601$as_echo "yes" >&6; }
12602 else
12603 DEFINE_INITRAMFS=''
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
12606 fi
12607
12608
12609
12610 RPM=rpm
12611 RPMBUILD=rpmbuild
12612
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12614$as_echo_n "checking whether $RPM is available... " >&6; }
12615 if tmp=$($RPM --version 2>/dev/null); then :
12616
12617 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12618 HAVE_RPM=yes
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12620$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12621
12622else
12623
12624 HAVE_RPM=no
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12626$as_echo "$HAVE_RPM" >&6; }
12627
12628fi
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12631$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12632 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12633
12634 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12635 HAVE_RPMBUILD=yes
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12637$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12638
12639else
12640
12641 HAVE_RPMBUILD=no
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12643$as_echo "$HAVE_RPMBUILD" >&6; }
12644
12645fi
12646
86e3c28a 12647 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
70e083d2
TG
12648 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12649 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12650 RPM_DEFINE_DKMS=
12651
12652 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12653 SRPM_DEFINE_UTIL=
12654 SRPM_DEFINE_KMOD=
12655 SRPM_DEFINE_DKMS=
12656
12657 RPM_SPEC_DIR="rpm/generic"
12658
12659# Check whether --with-spec was given.
12660if test "${with_spec+set}" = set; then :
12661 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12662fi
12663
12664
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12666$as_echo_n "checking whether spec files are available... " >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12668$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689 DPKG=dpkg
12690 DPKGBUILD=dpkg-buildpackage
12691
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12693$as_echo_n "checking whether $DPKG is available... " >&6; }
12694 if tmp=$($DPKG --version 2>/dev/null); then :
12695
12696 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12697 HAVE_DPKG=yes
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12699$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12700
12701else
12702
12703 HAVE_DPKG=no
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12705$as_echo "$HAVE_DPKG" >&6; }
12706
12707fi
12708
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12710$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12711 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12712
12713 DPKGBUILD_VERSION=$(echo $tmp | \
12714 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12715 HAVE_DPKGBUILD=yes
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12717$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12718
12719else
12720
12721 HAVE_DPKGBUILD=no
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12723$as_echo "$HAVE_DPKGBUILD" >&6; }
12724
12725fi
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736 ALIEN=alien
12737
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12739$as_echo_n "checking whether $ALIEN is available... " >&6; }
12740 if tmp=$($ALIEN --version 2>/dev/null); then :
12741
12742 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12743 HAVE_ALIEN=yes
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12745$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12746
12747else
12748
12749 HAVE_ALIEN=no
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12751$as_echo "$HAVE_ALIEN" >&6; }
12752
12753fi
12754
12755
12756
12757
12758
12759
12760
70e083d2
TG
12761 ZFS_CONFIG=all
12762
12763# Check whether --with-config was given.
12764if test "${with_config+set}" = set; then :
12765 withval=$with_config; ZFS_CONFIG="$withval"
12766fi
12767
12768 # Check whether --enable-linux-builtin was given.
12769if test "${enable_linux_builtin+set}" = set; then :
12770 enableval=$enable_linux_builtin;
12771else
12772 enable_linux_builtin=no
12773fi
12774
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12777$as_echo_n "checking zfs config... " >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12779$as_echo "$ZFS_CONFIG" >&6; };
12780
12781
12782
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12785$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12786
12787 saved_flags="$CFLAGS"
12788 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12789
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791/* end confdefs.h. */
12792
12793int
12794main ()
12795{
12796
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801if ac_fn_c_try_compile "$LINENO"; then :
12802
12803 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805$as_echo "yes" >&6; }
12806
12807else
12808
12809 NO_UNUSED_BUT_SET_VARIABLE=
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812
12813fi
12814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815
12816 CFLAGS="$saved_flags"
12817
12818
12819
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12821$as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12822
12823 saved_flags="$CFLAGS"
12824 CFLAGS="$CFLAGS -Wbool-compare"
12825
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827/* end confdefs.h. */
12828
12829int
12830main ()
12831{
12832
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837if ac_fn_c_try_compile "$LINENO"; then :
12838
12839 NO_BOOL_COMPARE=-Wno-bool-compare
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841$as_echo "yes" >&6; }
12842
12843else
12844
12845 NO_BOOL_COMPARE=
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848
12849fi
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851
12852 CFLAGS="$saved_flags"
12853
12854
12855
86e3c28a
CIK
12856 case "$host_cpu" in
12857 x86_64 | x86 | i686)
70e083d2 12858
86e3c28a
CIK
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12860$as_echo_n "checking whether host toolchain supports SSE... " >&6; }
70e083d2 12861
86e3c28a
CIK
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863/* end confdefs.h. */
70e083d2 12864
86e3c28a
CIK
12865 void main()
12866 {
12867 __asm__ __volatile__("xorps %xmm0, %xmm1");
12868 }
70e083d2 12869
86e3c28a
CIK
12870_ACEOF
12871if ac_fn_c_try_link "$LINENO"; then :
70e083d2 12872
70e083d2 12873
86e3c28a 12874$as_echo "#define HAVE_SSE 1" >>confdefs.h
70e083d2 12875
86e3c28a
CIK
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877$as_echo "yes" >&6; }
70e083d2 12878
70e083d2 12879else
70e083d2 12880
86e3c28a
CIK
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
70e083d2 12883
86e3c28a
CIK
12884fi
12885rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
12887
12888
86e3c28a
CIK
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12890$as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
70e083d2 12891
86e3c28a
CIK
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h. */
70e083d2 12894
86e3c28a
CIK
12895 void main()
12896 {
12897 __asm__ __volatile__("pxor %xmm0, %xmm1");
12898 }
70e083d2 12899
86e3c28a
CIK
12900_ACEOF
12901if ac_fn_c_try_link "$LINENO"; then :
70e083d2 12902
70e083d2 12903
86e3c28a 12904$as_echo "#define HAVE_SSE2 1" >>confdefs.h
70e083d2 12905
86e3c28a
CIK
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907$as_echo "yes" >&6; }
70e083d2 12908
70e083d2 12909else
70e083d2 12910
86e3c28a
CIK
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912$as_echo "no" >&6; }
70e083d2
TG
12913
12914fi
86e3c28a
CIK
12915rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
12917
12918
86e3c28a
CIK
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12920$as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
70e083d2 12921
86e3c28a
CIK
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923/* end confdefs.h. */
70e083d2 12924
86e3c28a
CIK
12925 void main()
12926 {
12927 char v[16];
12928 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12929 }
70e083d2 12930
86e3c28a
CIK
12931_ACEOF
12932if ac_fn_c_try_link "$LINENO"; then :
70e083d2 12933
70e083d2 12934
86e3c28a 12935$as_echo "#define HAVE_SSE3 1" >>confdefs.h
70e083d2 12936
86e3c28a
CIK
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938$as_echo "yes" >&6; }
70e083d2 12939
86e3c28a 12940else
70e083d2 12941
86e3c28a
CIK
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943$as_echo "no" >&6; }
70e083d2 12944
70e083d2 12945fi
86e3c28a
CIK
12946rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
12948
12949
86e3c28a
CIK
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12951$as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
70e083d2 12952
86e3c28a
CIK
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954/* end confdefs.h. */
70e083d2 12955
86e3c28a
CIK
12956 void main()
12957 {
12958 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12959 }
70e083d2 12960
86e3c28a
CIK
12961_ACEOF
12962if ac_fn_c_try_link "$LINENO"; then :
70e083d2 12963
70e083d2 12964
86e3c28a 12965$as_echo "#define HAVE_SSSE3 1" >>confdefs.h
70e083d2 12966
86e3c28a
CIK
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968$as_echo "yes" >&6; }
70e083d2 12969
86e3c28a 12970else
70e083d2 12971
86e3c28a
CIK
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973$as_echo "no" >&6; }
70e083d2
TG
12974
12975fi
86e3c28a
CIK
12976rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
12978
12979
86e3c28a
CIK
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12981$as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12982
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h. */
70e083d2 12985
86e3c28a
CIK
12986 void main()
12987 {
12988 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12989 }
70e083d2 12990
86e3c28a
CIK
12991_ACEOF
12992if ac_fn_c_try_link "$LINENO"; then :
70e083d2
TG
12993
12994
86e3c28a 12995$as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
70e083d2 12996
86e3c28a
CIK
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12998$as_echo "yes" >&6; }
70e083d2 12999
70e083d2 13000else
70e083d2 13001
86e3c28a
CIK
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
70e083d2 13004
70e083d2 13005fi
86e3c28a
CIK
13006rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
13008
13009
86e3c28a
CIK
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13011$as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
70e083d2 13012
86e3c28a
CIK
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h. */
70e083d2 13015
86e3c28a
CIK
13016 void main()
13017 {
13018 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13019 }
70e083d2 13020
86e3c28a
CIK
13021_ACEOF
13022if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13023
70e083d2 13024
86e3c28a 13025$as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
70e083d2 13026
86e3c28a
CIK
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13028$as_echo "yes" >&6; }
70e083d2 13029
70e083d2 13030else
70e083d2 13031
86e3c28a
CIK
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
70e083d2
TG
13034
13035fi
86e3c28a
CIK
13036rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
13038
13039
86e3c28a
CIK
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13041$as_echo_n "checking whether host toolchain supports AVX... " >&6; }
70e083d2 13042
86e3c28a
CIK
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044/* end confdefs.h. */
70e083d2 13045
86e3c28a
CIK
13046 void main()
13047 {
13048 char v[32];
13049 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13050 }
70e083d2 13051
86e3c28a
CIK
13052_ACEOF
13053if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13054
86e3c28a
CIK
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13056$as_echo "yes" >&6; }
70e083d2 13057
86e3c28a 13058$as_echo "#define HAVE_AVX 1" >>confdefs.h
70e083d2
TG
13059
13060
86e3c28a 13061else
70e083d2 13062
86e3c28a
CIK
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
70e083d2 13065
70e083d2 13066fi
86e3c28a
CIK
13067rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
13069
13070
86e3c28a
CIK
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13072$as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
70e083d2 13073
86e3c28a 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70e083d2
TG
13075/* end confdefs.h. */
13076
86e3c28a
CIK
13077
13078 void main()
13079 {
13080 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13081 }
13082
70e083d2
TG
13083_ACEOF
13084if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13085
86e3c28a
CIK
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13087$as_echo "yes" >&6; }
70e083d2 13088
86e3c28a 13089$as_echo "#define HAVE_AVX2 1" >>confdefs.h
70e083d2
TG
13090
13091
70e083d2 13092else
70e083d2 13093
86e3c28a
CIK
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
13096
70e083d2
TG
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
70e083d2 13100
70e083d2 13101
86e3c28a
CIK
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13103$as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
70e083d2 13104
86e3c28a 13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70e083d2
TG
13106/* end confdefs.h. */
13107
86e3c28a
CIK
13108
13109 void main()
13110 {
13111 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13112 }
13113
70e083d2
TG
13114_ACEOF
13115if ac_fn_c_try_link "$LINENO"; then :
86e3c28a
CIK
13116
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118$as_echo "yes" >&6; }
13119
13120$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13121
13122
70e083d2 13123else
86e3c28a
CIK
13124
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126$as_echo "no" >&6; }
13127
70e083d2
TG
13128fi
13129rm -f core conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
70e083d2 13131
70e083d2 13132
86e3c28a
CIK
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13134$as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
70e083d2 13135
86e3c28a
CIK
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137/* end confdefs.h. */
70e083d2
TG
13138
13139
86e3c28a
CIK
13140 void main()
13141 {
13142 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13143 }
70e083d2 13144
86e3c28a
CIK
13145_ACEOF
13146if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13147
86e3c28a
CIK
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149$as_echo "yes" >&6; }
70e083d2 13150
86e3c28a 13151$as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
70e083d2 13152
70e083d2
TG
13153
13154else
86e3c28a
CIK
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158
70e083d2 13159fi
86e3c28a
CIK
13160rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
13162
13163
86e3c28a
CIK
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13165$as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
70e083d2 13166
86e3c28a 13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70e083d2
TG
13168/* end confdefs.h. */
13169
86e3c28a
CIK
13170
13171 void main()
13172 {
13173 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13174 }
13175
70e083d2
TG
13176_ACEOF
13177if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13178
86e3c28a
CIK
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13180$as_echo "yes" >&6; }
70e083d2 13181
86e3c28a 13182$as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
70e083d2
TG
13183
13184
70e083d2 13185else
70e083d2 13186
86e3c28a
CIK
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189
70e083d2
TG
13190fi
13191rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
70e083d2 13193
70e083d2 13194
86e3c28a
CIK
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13196$as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
70e083d2 13197
86e3c28a
CIK
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h. */
70e083d2 13200
70e083d2 13201
86e3c28a
CIK
13202 void main()
13203 {
13204 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13205 }
70e083d2 13206
86e3c28a
CIK
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13209
86e3c28a
CIK
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13211$as_echo "yes" >&6; }
70e083d2 13212
86e3c28a 13213$as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
70e083d2
TG
13214
13215
70e083d2 13216else
86e3c28a
CIK
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
13220
70e083d2 13221fi
86e3c28a
CIK
13222rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
13224
13225
86e3c28a
CIK
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13227$as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
70e083d2 13228
86e3c28a
CIK
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230/* end confdefs.h. */
70e083d2
TG
13231
13232
86e3c28a
CIK
13233 void main()
13234 {
13235 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13236 }
13237
13238_ACEOF
13239if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13240
86e3c28a
CIK
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242$as_echo "yes" >&6; }
70e083d2 13243
86e3c28a 13244$as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
70e083d2 13245
70e083d2 13246
70e083d2 13247else
70e083d2 13248
86e3c28a
CIK
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250$as_echo "no" >&6; }
13251
70e083d2
TG
13252fi
13253rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
70e083d2 13255
70e083d2 13256
86e3c28a
CIK
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13258$as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
70e083d2 13259
86e3c28a
CIK
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261/* end confdefs.h. */
70e083d2 13262
70e083d2 13263
86e3c28a
CIK
13264 void main()
13265 {
13266 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13267 }
70e083d2 13268
70e083d2 13269_ACEOF
86e3c28a 13270if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13271
86e3c28a 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2 13273$as_echo "yes" >&6; }
70e083d2 13274
86e3c28a 13275$as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
70e083d2
TG
13276
13277
13278else
13279
86e3c28a 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2 13281$as_echo "no" >&6; }
70e083d2
TG
13282
13283fi
86e3c28a
CIK
13284rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
70e083d2
TG
13286
13287
86e3c28a
CIK
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13289$as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
70e083d2
TG
13290
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h. */
13293
70e083d2 13294
86e3c28a
CIK
13295 void main()
13296 {
13297 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13298 }
13299
70e083d2 13300_ACEOF
86e3c28a 13301if ac_fn_c_try_link "$LINENO"; then :
70e083d2 13302
70e083d2
TG
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304$as_echo "yes" >&6; }
13305
86e3c28a
CIK
13306$as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13307
13308
70e083d2
TG
13309else
13310
70e083d2
TG
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312$as_echo "no" >&6; }
13313
13314fi
86e3c28a
CIK
13315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
70e083d2 13317
70e083d2 13318
86e3c28a
CIK
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13320$as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
43c96d9a 13321
43c96d9a
CIK
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h. */
13324
43c96d9a 13325
86e3c28a
CIK
13326 void main()
13327 {
13328 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13329 }
43c96d9a 13330
43c96d9a 13331_ACEOF
86e3c28a 13332if ac_fn_c_try_link "$LINENO"; then :
43c96d9a
CIK
13333
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335$as_echo "yes" >&6; }
13336
86e3c28a 13337$as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
43c96d9a
CIK
13338
13339
13340else
13341
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
13344
13345fi
86e3c28a
CIK
13346rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
43c96d9a
CIK
13348
13349
86e3c28a
CIK
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13351$as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13352
43c96d9a
CIK
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354/* end confdefs.h. */
13355
43c96d9a 13356
86e3c28a
CIK
13357 void main()
13358 {
13359 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13360 }
43c96d9a 13361
43c96d9a 13362_ACEOF
86e3c28a 13363if ac_fn_c_try_link "$LINENO"; then :
43c96d9a
CIK
13364
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13366$as_echo "yes" >&6; }
13367
86e3c28a 13368$as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
43c96d9a
CIK
13369
13370
13371else
13372
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374$as_echo "no" >&6; }
13375
13376fi
86e3c28a
CIK
13377rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
43c96d9a 13379
86e3c28a
CIK
13380 ;;
13381 esac
43c96d9a 13382
43c96d9a 13383
86e3c28a
CIK
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13385$as_echo_n "checking for target asm dir... " >&6; }
13386 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
43c96d9a 13387
86e3c28a
CIK
13388 case $TARGET_ARCH in
13389 i386|x86_64)
13390 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13391 ;;
13392 *)
13393 TARGET_ASM_DIR=asm-generic
13394 ;;
13395 esac
43c96d9a 13396
43c96d9a 13397
86e3c28a
CIK
13398 if test $TARGET_ASM_DIR = asm-x86_64; then
13399 TARGET_ASM_X86_64_TRUE=
13400 TARGET_ASM_X86_64_FALSE='#'
43c96d9a 13401else
86e3c28a
CIK
13402 TARGET_ASM_X86_64_TRUE='#'
13403 TARGET_ASM_X86_64_FALSE=
13404fi
43c96d9a 13405
86e3c28a
CIK
13406 if test $TARGET_ASM_DIR = asm-i386; then
13407 TARGET_ASM_I386_TRUE=
13408 TARGET_ASM_I386_FALSE='#'
13409else
13410 TARGET_ASM_I386_TRUE='#'
13411 TARGET_ASM_I386_FALSE=
43c96d9a 13412fi
43c96d9a 13413
86e3c28a
CIK
13414 if test $TARGET_ASM_DIR = asm-generic; then
13415 TARGET_ASM_GENERIC_TRUE=
13416 TARGET_ASM_GENERIC_FALSE='#'
13417else
13418 TARGET_ASM_GENERIC_TRUE='#'
13419 TARGET_ASM_GENERIC_FALSE=
13420fi
43c96d9a 13421
86e3c28a
CIK
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13423$as_echo "$TARGET_ASM_DIR" >&6; }
43c96d9a 13424
70e083d2 13425
70e083d2 13426
86e3c28a 13427 case "$ZFS_CONFIG" in
70e083d2
TG
13428 kernel)
13429
13430
13431# Check whether --with-linux was given.
13432if test "${with_linux+set}" = set; then :
13433 withval=$with_linux; kernelsrc="$withval"
13434fi
13435
13436
13437
13438# Check whether --with-linux-obj was given.
13439if test "${with_linux_obj+set}" = set; then :
13440 withval=$with_linux_obj; kernelbuild="$withval"
13441fi
13442
13443
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13445$as_echo_n "checking kernel source directory... " >&6; }
13446 if test -z "$kernelsrc"; then :
13447
13448 if test -e "/lib/modules/$(uname -r)/source"; then :
13449
13450 headersdir="/lib/modules/$(uname -r)/source"
13451 sourcelink=$(readlink -f "$headersdir")
13452
13453elif test -e "/lib/modules/$(uname -r)/build"; then :
13454
13455 headersdir="/lib/modules/$(uname -r)/build"
13456 sourcelink=$(readlink -f "$headersdir")
13457
13458else
13459
13460 sourcelink=$(ls -1d /usr/src/kernels/* \
13461 /usr/src/linux-* \
13462 2>/dev/null | grep -v obj | tail -1)
13463
13464fi
13465
13466 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13467
13468 kernelsrc=`readlink -f ${sourcelink}`
13469
13470else
13471
13472 kernelsrc="Not found"
13473
13474fi
13475
13476else
13477
13478 if test "$kernelsrc" = "NONE"; then :
13479
13480 kernsrcver=NONE
13481
13482fi
86e3c28a 13483 withlinux=yes
70e083d2
TG
13484
13485fi
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13488$as_echo "$kernelsrc" >&6; }
13489 if test ! -d "$kernelsrc"; then :
13490
13491 as_fn_error $? "
13492 *** Please make sure the kernel devel package for your distribution
13493 *** is installed and then try again. If that fails, you can specify the
13494 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13495
13496fi
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13499$as_echo_n "checking kernel build directory... " >&6; }
13500 if test -z "$kernelbuild"; then :
13501
86e3c28a 13502 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then :
70e083d2
TG
13503
13504 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
13505
13506elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13507
13508 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13509
13510elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
13511
13512 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
13513
13514elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
13515
13516 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
13517
13518else
13519
13520 kernelbuild=${kernelsrc}
13521
13522fi
13523
13524fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13526$as_echo "$kernelbuild" >&6; }
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13529$as_echo_n "checking kernel source version... " >&6; }
13530 utsrelease1=$kernelbuild/include/linux/version.h
13531 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13532 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13533 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
13534
13535 utsrelease=linux/version.h
13536
13537elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
13538
13539 utsrelease=linux/utsrelease.h
13540
13541elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
13542
13543 utsrelease=generated/utsrelease.h
13544
13545fi
13546
13547 if test "$utsrelease"; then :
13548
13549 kernsrcver=`(echo "#include <$utsrelease>";
13550 echo "kernsrcver=UTS_RELEASE") |
13551 cpp -I $kernelbuild/include |
13552 grep "^kernsrcver=" | cut -d \" -f 2`
13553
13554 if test -z "$kernsrcver"; then :
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13557$as_echo "Not found" >&6; }
13558 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
13559
13560fi
13561
13562else
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13565$as_echo "Not found" >&6; }
13566 if test "x$enable_linux_builtin" != xyes; then
13567 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13568 else
13569 as_fn_error $? "
13570 *** Cannot find UTS_RELEASE definition.
13571 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13572 fi
13573
13574fi
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13577$as_echo "$kernsrcver" >&6; }
13578
13579 LINUX=${kernelsrc}
13580 LINUX_OBJ=${kernelbuild}
13581 LINUX_VERSION=${kernsrcver}
13582
13583
13584
13585
13586
13587
13588 modpost=$LINUX/scripts/Makefile.modpost
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13590$as_echo_n "checking kernel file name for module symbols... " >&6; }
13591 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
13592
13593 if grep -q Modules.symvers $modpost; then :
13594
13595 LINUX_SYMBOLS=Modules.symvers
13596
13597else
13598
13599 LINUX_SYMBOLS=Module.symvers
13600
13601fi
13602
13603 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13604
13605 as_fn_error $? "
13606 *** Please make sure the kernel devel package for your distribution
13607 *** is installed. If you are building with a custom kernel, make sure the
13608 *** kernel is configured, built, and the '--with-linux=PATH' configure
13609 *** option refers to the location of the kernel source." "$LINENO" 5
13610
13611fi
13612
13613else
13614
13615 LINUX_SYMBOLS=NONE
13616
13617fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13619$as_echo "$LINUX_SYMBOLS" >&6; }
13620
13621
13622
13623
13624
13625# Check whether --with-spl was given.
13626if test "${with_spl+set}" = set; then :
86e3c28a
CIK
13627 withval=$with_spl; if test "$withval" = "yes"; then :
13628 as_fn_error $? "--with-spl=PATH requires a PATH" "$LINENO" 5
13629else
13630 splsrc="$withval"
13631fi
70e083d2
TG
13632fi
13633
13634
13635
13636# Check whether --with-spl-obj was given.
13637if test "${with_spl_obj+set}" = set; then :
13638 withval=$with_spl_obj; splbuild="$withval"
13639fi
13640
13641
13642
13643# Check whether --with-spl-timeout was given.
13644if test "${with_spl_timeout+set}" = set; then :
13645 withval=$with_spl_timeout; timeout="$withval"
13646else
13647 timeout=0
13648fi
13649
13650
13651 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
13652 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13653 splsrc2="/usr/local/src/spl-${VERSION}"
13654 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13655 splsrc4="/usr/src/spl-${VERSION}"
13656 splsrc5="../spl/"
13657 splsrc6="$LINUX"
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13660$as_echo_n "checking spl source directory... " >&6; }
13661 if test -z "${splsrc}"; then :
13662
86e3c28a
CIK
13663 all_spl_sources="
13664 ${splsrc0}
13665 ${splsrc1}
13666 ${splsrc2}
13667 ${splsrc3}
13668 ${splsrc4}
13669 ${splsrc5}
13670 ${splsrc6}",
70e083d2
TG
13671 if test -e "${splsrc0}/spl.release.in"; then :
13672
13673 splsrc=${splsrc0}
13674
13675elif test -e "${splsrc1}/spl.release.in"; then :
13676
13677 splsrc=${splsrc1}
13678
13679elif test -e "${splsrc2}/spl.release.in"; then :
13680
13681 splsrc=${splsrc2}
13682
13683elif test -e "${splsrc3}/spl.release.in"; then :
13684
13685 splsrc=$(readlink -f "${splsrc3}")
13686
13687elif test -e "${splsrc4}/spl.release.in" ; then :
13688
13689 splsrc=${splsrc4}
13690
13691elif test -e "${splsrc5}/spl.release.in"; then :
13692
13693 splsrc=$(readlink -f "${splsrc5}")
13694
13695elif test -e "${splsrc6}/spl.release.in" ; then :
13696
13697 splsrc=${splsrc6}
13698
13699else
13700
13701 splsrc="Not found"
13702
13703fi
13704
13705else
13706
86e3c28a 13707 all_spl_sources="$withval",
70e083d2
TG
13708 if test "$splsrc" = "NONE"; then :
13709
13710 splbuild=NONE
13711 splsrcver=NONE
13712
13713fi
13714
13715fi
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13718$as_echo "$splsrc" >&6; }
13719 if test ! -e "$splsrc/spl.release.in"; then :
13720
13721 as_fn_error $? "
13722 *** Please make sure the kmod spl devel package for your distribution
13723 *** is installed then try again. If that fails you can specify the
86e3c28a
CIK
13724 *** location of the spl source with the '--with-spl=PATH' option.
13725 *** The spl version must match the version of ZFS you are building,
13726 *** ${VERSION}. Failed to find spl.release.in in the following:
13727 $all_spl_sources" "$LINENO" 5
70e083d2
TG
13728
13729fi
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13732$as_echo_n "checking spl build directory... " >&6; }
86e3c28a
CIK
13733
13734 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
13735 ${splsrc}"
13736
70e083d2
TG
13737 while true; do
13738 if test -z "$splbuild"; then :
13739
13740 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13741
13742 splbuild="${splsrc}/${LINUX_VERSION}"
13743
13744elif test -e "${splsrc}/spl_config.h" ; then :
13745
13746 splbuild="${splsrc}"
13747
13748elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
13749
13750 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
13751
13752else
13753
13754 splbuild="Not found"
13755
13756fi
13757
13758fi
13759 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13760
13761 break;
13762
13763else
13764
13765 sleep 1
13766 timeout=$((timeout-1))
13767
13768fi
13769 done
13770
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13772$as_echo "$splbuild" >&6; }
13773 if ! test -e "$splbuild/spl_config.h"; then :
13774
13775 as_fn_error $? "
13776 *** Please make sure the kmod spl devel <kernel> package for your
13777 *** distribution is installed then try again. If that fails you
13778 *** can specify the location of the spl objects with the
86e3c28a
CIK
13779 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13780 *** any of the following:
13781 $all_spl_config_locs" "$LINENO" 5
70e083d2
TG
13782
13783fi
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13786$as_echo_n "checking spl source version... " >&6; }
13787 if test -r $splbuild/spl_config.h &&
13788 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
13789
13790
13791 splsrcver=`(echo "#include <spl_config.h>";
13792 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13793 cpp -I $splbuild |
13794 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13795
13796fi
13797
13798 if test -z "$splsrcver"; then :
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13801$as_echo "Not found" >&6; }
13802 as_fn_error $? "
13803 *** Cannot determine the version of the spl source.
13804 *** Please prepare the spl source before running this script" "$LINENO" 5
13805
13806fi
13807
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13809$as_echo "$splsrcver" >&6; }
13810
13811 SPL=${splsrc}
13812 SPL_OBJ=${splbuild}
13813 SPL_VERSION=${splsrcver}
13814
13815
13816
13817
13818
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13820$as_echo_n "checking spl file name for module symbols... " >&6; }
13821 SPL_SYMBOLS=NONE
13822
13823 while true; do
13824 if test -r $SPL_OBJ/Module.symvers; then :
13825
13826 SPL_SYMBOLS=Module.symvers
13827
13828elif test -r $SPL_OBJ/Modules.symvers; then :
13829
13830 SPL_SYMBOLS=Modules.symvers
13831
13832elif test -r $SPL_OBJ/module/Module.symvers; then :
13833
13834 SPL_SYMBOLS=Module.symvers
13835
13836elif test -r $SPL_OBJ/module/Modules.symvers; then :
13837
13838 SPL_SYMBOLS=Modules.symvers
13839
13840fi
13841
13842 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
13843
13844 break;
13845
13846else
13847
13848 sleep 1
13849 timeout=$((timeout-1))
13850
13851fi
13852 done
13853
13854 if test "$SPL_SYMBOLS" = NONE; then :
13855
13856 SPL_SYMBOLS=$LINUX_SYMBOLS
13857
13858fi
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13861$as_echo "$SPL_SYMBOLS" >&6; }
13862
13863
13864
70e083d2 13865
86e3c28a
CIK
13866# Check whether --with-qat was given.
13867if test "${with_qat+set}" = set; then :
13868 withval=$with_qat; if test "$withval" = "yes"; then :
13869 as_fn_error $? "--with-qat=PATH requires a PATH" "$LINENO" 5
13870else
13871 qatsrc="$withval"
13872fi
13873fi
70e083d2
TG
13874
13875
70e083d2 13876
86e3c28a
CIK
13877# Check whether --with-qat-obj was given.
13878if test "${with_qat_obj+set}" = set; then :
13879 withval=$with_qat_obj; qatbuild="$withval"
13880fi
70e083d2 13881
70e083d2 13882
86e3c28a 13883 if test ! -z "${qatsrc}"; then :
70e083d2 13884
86e3c28a
CIK
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13886$as_echo_n "checking qat source directory... " >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13888$as_echo "$qatsrc" >&6; }
13889 QAT_SRC="${qatsrc}/quickassist"
13890 if test ! -e "$QAT_SRC/include/cpa.h"; then :
70e083d2 13891
86e3c28a
CIK
13892 as_fn_error $? "
13893 *** Please make sure the qat driver package is installed
13894 *** and specify the location of the qat source with the
13895 *** '--with-qat=PATH' option then try again. Failed to
13896 *** find cpa.h in:
13897 ${QAT_SRC}/include" "$LINENO" 5
70e083d2 13898
86e3c28a 13899fi
70e083d2 13900
86e3c28a 13901fi
70e083d2 13902
86e3c28a 13903 if test ! -z "${qatsrc}"; then :
70e083d2 13904
86e3c28a
CIK
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13906$as_echo_n "checking qat build directory... " >&6; }
13907 if test -z "$qatbuild"; then :
70e083d2 13908
86e3c28a 13909 qatbuild="${qatsrc}/build"
70e083d2 13910
86e3c28a 13911fi
70e083d2 13912
86e3c28a
CIK
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13914$as_echo "$qatbuild" >&6; }
13915 QAT_OBJ=${qatbuild}
b3a88519 13916 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
70e083d2 13917
86e3c28a
CIK
13918 as_fn_error $? "
13919 *** Please make sure the qat driver is installed then try again.
b3a88519 13920 *** Failed to find icp_qa_al.ko or qat_api.ko in:
86e3c28a 13921 $QAT_OBJ" "$LINENO" 5
70e083d2
TG
13922
13923fi
70e083d2
TG
13924
13925
13926
13927
70e083d2 13928
86e3c28a 13929$as_echo "#define HAVE_QAT 1" >>confdefs.h
70e083d2
TG
13930
13931
86e3c28a 13932fi
70e083d2 13933
86e3c28a 13934 if test ! -z "${qatsrc}"; then :
70e083d2 13935
86e3c28a
CIK
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13937$as_echo_n "checking qat file for module symbols... " >&6; }
13938 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
70e083d2 13939
86e3c28a 13940 if test -r $QAT_SYMBOLS; then :
70e083d2 13941
86e3c28a
CIK
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13943$as_echo "$QAT_SYMBOLS" >&6; }
70e083d2
TG
13944
13945
86e3c28a 13946else
70e083d2 13947
86e3c28a
CIK
13948 as_fn_error $? "
13949 *** Please make sure the qat driver is installed then try again.
13950 *** Failed to find Module.symvers in:
13951 $QAT_SYMBOLS" "$LINENO" 5
70e083d2
TG
13952
13953fi
70e083d2
TG
13954
13955fi
13956
13957
86e3c28a
CIK
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13959$as_echo_n "checking whether modules can be built... " >&6; }
70e083d2
TG
13960
13961
13962cat confdefs.h - <<_ACEOF >conftest.c
13963
13964
70e083d2
TG
13965int
13966main (void)
13967{
13968
86e3c28a
CIK
13969 ;
13970 return 0;
13971}
13972
13973_ACEOF
13974
13975
13976
13977cat - <<_ACEOF >conftest.h
13978
13979_ACEOF
13980
13981
13982 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13983 echo "obj-m := conftest.o" >build/Makefile
13984 modpost_flag=''
13985 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13986 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'
13987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996 test $ac_status = 0; }; }; then :
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999$as_echo "yes" >&6; }
14000
14001else
14002 $as_echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006$as_echo "no" >&6; }
14007 if test "x$enable_linux_builtin" != xyes; then
14008 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
14009 else
14010 as_fn_error $? "
14011 *** Unable to build an empty module.
14012 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14013 fi
14014
14015
14016
14017fi
14018 rm -Rf build
14019
14020
14021
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14024$as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14025
14026
14027cat confdefs.h - <<_ACEOF >conftest.c
14028
14029
14030 #undef __ASSEMBLY__
14031 #include <asm/frame.h>
14032
14033int
14034main (void)
14035{
14036
14037 #if !defined(FRAME_BEGIN)
14038 CTASSERT(1);
14039 #endif
14040
14041 ;
14042 return 0;
14043}
14044
14045_ACEOF
14046
14047
14048
14049cat - <<_ACEOF >conftest.h
14050
14051_ACEOF
14052
14053
14054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14055 echo "obj-m := conftest.o" >build/Makefile
14056 modpost_flag=''
14057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14058 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'
14059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14068 test $ac_status = 0; }; }; then :
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14071$as_echo "yes" >&6; }
14072
14073$as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14074
14075
14076else
14077 $as_echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081$as_echo "no" >&6; }
14082
14083
14084
14085fi
14086 rm -Rf build
14087
14088
14089
14090
14091 if test "x$cross_compiling" != xyes; then :
14092
14093 if test "$cross_compiling" = yes; then :
14094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14096as_fn_error $? "cannot run test program while cross compiling
14097See \`config.log' for more details" "$LINENO" 5; }
14098else
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100/* end confdefs.h. */
14101
14102
14103 #include "$LINUX/include/linux/license.h"
14104
14105int
14106main ()
14107{
14108
14109 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14110
14111 ;
14112 return 0;
14113}
14114
14115_ACEOF
14116if ac_fn_c_try_run "$LINENO"; then :
14117
14118
14119$as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14120
14121
14122fi
14123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14124 conftest.$ac_objext conftest.beam conftest.$ac_ext
14125fi
14126
14127
14128fi
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14132$as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14133
14134
14135cat confdefs.h - <<_ACEOF >conftest.c
14136
14137
14138 #include <linux/module.h>
14139
14140int
14141main (void)
14142{
14143
14144 #if (THREAD_SIZE < 16384)
14145 #error "THREAD_SIZE is less than 16K"
14146 #endif
14147
70e083d2
TG
14148 ;
14149 return 0;
14150}
14151
14152_ACEOF
14153
14154
14155
14156cat - <<_ACEOF >conftest.h
14157
14158_ACEOF
14159
14160
14161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14162 echo "obj-m := conftest.o" >build/Makefile
14163 modpost_flag=''
14164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14165 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'
14166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; }; then :
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14178$as_echo "yes" >&6; }
14179
14180$as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14181
14182
14183else
14184 $as_echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188$as_echo "no" >&6; }
14189
14190
14191
14192fi
14193 rm -Rf build
14194
14195
14196
14197
14198
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14200$as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14201
14202
14203cat confdefs.h - <<_ACEOF >conftest.c
14204
14205
14206 #include <linux/module.h>
14207
14208int
14209main (void)
14210{
14211
14212 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14213 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14214 #endif
14215
14216 ;
14217 return 0;
14218}
14219
14220_ACEOF
14221
14222
14223
14224cat - <<_ACEOF >conftest.h
14225
14226_ACEOF
14227
14228
14229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14230 echo "obj-m := conftest.o" >build/Makefile
14231 modpost_flag=''
14232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14233 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'
14234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14235 (eval $ac_try) 2>&5
14236 ac_status=$?
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; }; then :
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246$as_echo "yes" >&6; }
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14249$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14250 tmp_flags="$EXTRA_KCFLAGS"
14251
14252
14253cat confdefs.h - <<_ACEOF >conftest.c
14254
14255
14256 #include <linux/module.h>
14257 #include <linux/mutex.h>
14258
14259 MODULE_LICENSE("$ZFS_META_LICENSE");
14260
14261int
14262main (void)
14263{
14264
14265 struct mutex lock;
14266
14267 mutex_init(&lock);
14268 mutex_lock(&lock);
14269 mutex_unlock(&lock);
14270
14271 ;
14272 return 0;
14273}
14274
14275_ACEOF
14276
14277
14278
14279cat - <<_ACEOF >conftest.h
14280
14281_ACEOF
14282
14283
14284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14285 echo "obj-m := conftest.o" >build/Makefile
14286 modpost_flag=''
14287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14288 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'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14298 test $ac_status = 0; }; }; then :
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301$as_echo "no" >&6; }
14302
14303else
14304 $as_echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308$as_echo "yes" >&6; }
14309 as_fn_error $? "
14310 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14311 *** with the CDDL license and will prevent the module linking stage
14312 *** from succeeding. You must rebuild your kernel without this
14313 *** option enabled." "$LINENO" 5
14314
14315
14316
14317fi
14318 rm -Rf build
14319
14320
14321 EXTRA_KCFLAGS="$tmp_flags"
14322
14323
14324else
14325 $as_echo "$as_me: failed program was:" >&5
14326sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329$as_echo "no" >&6; }
14330
14331
14332
14333
14334fi
14335 rm -Rf build
14336
14337
14338
14339
14340
14341
14342 tmp_flags="$EXTRA_KCFLAGS"
14343 EXTRA_KCFLAGS="-I\$(src)"
14344
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14346$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14347
14348
14349cat confdefs.h - <<_ACEOF >conftest.c
14350
14351
14352 #include <linux/module.h>
14353 MODULE_LICENSE(ZFS_META_LICENSE);
14354
14355 #define CREATE_TRACE_POINTS
14356 #include "conftest.h"
14357
14358int
14359main (void)
14360{
14361
14362 trace_zfs_autoconf_event_one(1UL);
14363 trace_zfs_autoconf_event_two(2UL);
14364
14365 ;
14366 return 0;
14367}
14368
14369_ACEOF
14370
14371
14372
14373cat - <<_ACEOF >conftest.h
14374
14375 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14376 #define _CONFTEST_H
14377
14378 #undef TRACE_SYSTEM
14379 #define TRACE_SYSTEM zfs
14380 #include <linux/tracepoint.h>
14381
14382 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14383 TP_PROTO(unsigned long i),
14384 TP_ARGS(i),
14385 TP_STRUCT__entry(
14386 __field(unsigned long, i)
14387 ),
14388 TP_fast_assign(
14389 __entry->i = i;
14390 ),
14391 TP_printk("i = %lu", __entry->i)
14392 );
14393
14394 #define DEFINE_AUTOCONF_EVENT(name) \
14395 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14396 TP_PROTO(unsigned long i), \
14397 TP_ARGS(i))
14398 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14399 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14400
14401 #endif /* _CONFTEST_H */
14402
14403 #undef TRACE_INCLUDE_PATH
14404 #define TRACE_INCLUDE_PATH .
14405 #define TRACE_INCLUDE_FILE conftest
14406 #include <trace/define_trace.h>
14407
14408_ACEOF
14409
14410
14411 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14412 echo "obj-m := conftest.o" >build/Makefile
14413 modpost_flag=''
14414 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14415 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'
14416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14428$as_echo "yes" >&6; }
14429
14430$as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14431
14432
14433else
14434 $as_echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438$as_echo "no" >&6; }
14439
14440
14441
14442fi
14443 rm -Rf build
14444
14445
14446 EXTRA_KCFLAGS="$tmp_flags"
14447
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14450$as_echo_n "checking whether current->bio_tail exists... " >&6; }
14451
14452
14453cat confdefs.h - <<_ACEOF >conftest.c
14454
14455
14456 #include <linux/sched.h>
14457
14458int
14459main (void)
14460{
14461
14462 current->bio_tail = (struct bio **) NULL;
14463
14464 ;
14465 return 0;
14466}
14467
14468_ACEOF
14469
14470
14471
14472cat - <<_ACEOF >conftest.h
14473
14474_ACEOF
14475
14476
14477 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14478 echo "obj-m := conftest.o" >build/Makefile
14479 modpost_flag=''
14480 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14481 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'
14482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14486 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14491 test $ac_status = 0; }; }; then :
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494$as_echo "yes" >&6; }
14495
14496$as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14497
14498
14499else
14500 $as_echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504$as_echo "no" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14506$as_echo_n "checking whether current->bio_list exists... " >&6; }
14507
14508
14509cat confdefs.h - <<_ACEOF >conftest.c
14510
14511
14512 #include <linux/sched.h>
14513
14514int
14515main (void)
14516{
14517
14518 current->bio_list = (struct bio_list *) NULL;
14519
14520 ;
14521 return 0;
14522}
14523
14524_ACEOF
14525
14526
14527
14528cat - <<_ACEOF >conftest.h
14529
14530_ACEOF
14531
14532
14533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14534 echo "obj-m := conftest.o" >build/Makefile
14535 modpost_flag=''
14536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14537 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'
14538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14547 test $ac_status = 0; }; }; then :
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550$as_echo "yes" >&6; }
14551
14552$as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14553
14554
14555else
14556 $as_echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 as_fn_error $? "no - Please file a bug report at
14560 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14561
14562
14563
14564fi
14565 rm -Rf build
14566
14567
14568
14569
14570
14571fi
14572 rm -Rf build
14573
14574
14575
14576
86e3c28a
CIK
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14578$as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
70e083d2
TG
14579
14580
14581cat confdefs.h - <<_ACEOF >conftest.c
14582
14583
86e3c28a
CIK
14584 #include <linux/fs.h>
14585 #include <linux/user_namespace.h>
70e083d2
TG
14586
14587int
14588main (void)
14589{
14590
86e3c28a
CIK
14591 struct super_block super;
14592 super.s_user_ns = (struct user_namespace *)NULL;
70e083d2
TG
14593
14594 ;
14595 return 0;
14596}
14597
14598_ACEOF
14599
14600
14601
14602cat - <<_ACEOF >conftest.h
14603
14604_ACEOF
14605
14606
14607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14608 echo "obj-m := conftest.o" >build/Makefile
14609 modpost_flag=''
14610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14611 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'
14612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }; }; then :
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624$as_echo "yes" >&6; }
14625
86e3c28a 14626$as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
70e083d2
TG
14627
14628
14629else
14630 $as_echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634$as_echo "no" >&6; }
14635
14636
14637
14638fi
14639 rm -Rf build
14640
14641
14642
14643
86e3c28a
CIK
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14645$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
70e083d2
TG
14646
14647
14648cat confdefs.h - <<_ACEOF >conftest.c
14649
14650
86e3c28a 14651 #include <linux/bio.h>
70e083d2
TG
14652
14653int
14654main (void)
14655{
14656
86e3c28a
CIK
14657 blk_qc_t blk_qc;
14658 struct bio *bio = NULL;
14659 blk_qc = submit_bio(bio);
70e083d2
TG
14660
14661 ;
14662 return 0;
14663}
14664
14665_ACEOF
14666
14667
14668
14669cat - <<_ACEOF >conftest.h
14670
14671_ACEOF
14672
14673
14674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14675 echo "obj-m := conftest.o" >build/Makefile
14676 modpost_flag=''
14677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14678 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'
14679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14688 test $ac_status = 0; }; }; then :
14689
86e3c28a
CIK
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14691$as_echo "yes" >&6; }
70e083d2 14692
86e3c28a 14693$as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
70e083d2
TG
14694
14695
14696else
14697 $as_echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
86e3c28a
CIK
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701$as_echo "no" >&6; }
70e083d2
TG
14702
14703
14704
14705fi
14706 rm -Rf build
14707
14708
70e083d2
TG
14709
14710
86e3c28a
CIK
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14712$as_echo_n "checking block device operation prototypes... " >&6; }
70e083d2
TG
14713 tmp_flags="$EXTRA_KCFLAGS"
14714 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14715
14716
14717cat confdefs.h - <<_ACEOF >conftest.c
14718
14719
14720 #include <linux/blkdev.h>
14721
86e3c28a
CIK
14722 int blk_open(struct block_device *bdev, fmode_t mode)
14723 { return 0; }
14724 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14725 unsigned x, unsigned long y) { return 0; }
14726 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14727 unsigned x, unsigned long y) { return 0; }
70e083d2
TG
14728
14729 static const struct block_device_operations
14730 bops __attribute__ ((unused)) = {
86e3c28a
CIK
14731 .open = blk_open,
14732 .release = NULL,
14733 .ioctl = blk_ioctl,
14734 .compat_ioctl = blk_compat_ioctl,
70e083d2
TG
14735 };
14736
14737int
14738main (void)
14739{
14740
14741
14742 ;
14743 return 0;
14744}
14745
14746_ACEOF
14747
14748
14749
14750cat - <<_ACEOF >conftest.h
14751
14752_ACEOF
14753
14754
14755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14756 echo "obj-m := conftest.o" >build/Makefile
14757 modpost_flag=''
14758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14759 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'
14760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14764 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; }; then :
14770
86e3c28a
CIK
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14772$as_echo "struct block_device" >&6; }
70e083d2 14773
86e3c28a 14774$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
70e083d2
TG
14775
14776
14777else
14778 $as_echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
86e3c28a
CIK
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14782$as_echo "struct inode" >&6; }
70e083d2
TG
14783
14784
14785
14786fi
14787 rm -Rf build
14788
14789
14790 EXTRA_KCFLAGS="$tmp_flags"
14791
86e3c28a
CIK
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14794$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14795 tmp_flags="$EXTRA_KCFLAGS"
14796 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
70e083d2
TG
14797
14798
14799cat confdefs.h - <<_ACEOF >conftest.c
14800
14801
86e3c28a
CIK
14802 #include <linux/blkdev.h>
14803
14804 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14805
14806 static const struct block_device_operations
14807 bops __attribute__ ((unused)) = {
14808 .open = NULL,
14809 .release = blk_release,
14810 .ioctl = NULL,
14811 .compat_ioctl = NULL,
14812 };
70e083d2
TG
14813
14814int
14815main (void)
14816{
14817
70e083d2
TG
14818
14819 ;
14820 return 0;
14821}
14822
14823_ACEOF
14824
14825
14826
14827cat - <<_ACEOF >conftest.h
14828
14829_ACEOF
14830
14831
14832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14833 echo "obj-m := conftest.o" >build/Makefile
14834 modpost_flag=''
14835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14836 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'
14837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14846 test $ac_status = 0; }; }; then :
14847
86e3c28a
CIK
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14849$as_echo "void" >&6; }
70e083d2 14850
86e3c28a 14851$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
70e083d2
TG
14852
14853
14854else
14855 $as_echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
86e3c28a
CIK
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14859$as_echo "int" >&6; }
70e083d2
TG
14860
14861
14862
14863fi
14864 rm -Rf build
14865
14866
86e3c28a 14867 EXTRA_KCFLAGS="$tmp_flags"
70e083d2 14868
86e3c28a
CIK
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14870$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
70e083d2
TG
14871
14872
14873cat confdefs.h - <<_ACEOF >conftest.c
14874
14875
86e3c28a 14876 #include <linux/types.h>
70e083d2
TG
14877
14878int
14879main (void)
14880{
14881
86e3c28a 14882 fmode_t *ptr __attribute__ ((unused));
70e083d2
TG
14883
14884 ;
14885 return 0;
14886}
14887
14888_ACEOF
14889
14890
14891
14892cat - <<_ACEOF >conftest.h
14893
14894_ACEOF
14895
14896
14897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14898 echo "obj-m := conftest.o" >build/Makefile
14899 modpost_flag=''
14900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14901 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'
14902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14911 test $ac_status = 0; }; }; then :
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14914$as_echo "yes" >&6; }
14915
86e3c28a 14916$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
70e083d2
TG
14917
14918
14919else
14920 $as_echo "$as_me: failed program was:" >&5
14921sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924$as_echo "no" >&6; }
14925
14926
14927
14928fi
14929 rm -Rf build
14930
14931
14932
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14935$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14936
14937
14938cat confdefs.h - <<_ACEOF >conftest.c
14939
14940
14941 #include <linux/fs.h>
14942
14943int
14944main (void)
14945{
14946
14947 struct block_device *bdev = NULL;
14948 (void) blkdev_get(bdev, 0, NULL);
14949
14950 ;
14951 return 0;
14952}
14953
14954_ACEOF
14955
14956
14957
14958cat - <<_ACEOF >conftest.h
14959
14960_ACEOF
14961
14962
14963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14964 echo "obj-m := conftest.o" >build/Makefile
14965 modpost_flag=''
14966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14967 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }; }; then :
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980$as_echo "yes" >&6; }
14981
14982$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14983
14984
14985else
14986 $as_echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990$as_echo "no" >&6; }
14991
14992
14993
14994fi
14995 rm -Rf build
14996
14997
14998
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15000$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15001
15002
15003
15004cat confdefs.h - <<_ACEOF >conftest.c
15005
15006
15007 #include <linux/fs.h>
15008
15009int
15010main (void)
15011{
15012
15013 blkdev_get_by_path(NULL, 0, NULL);
15014
15015 ;
15016 return 0;
15017}
15018
15019_ACEOF
15020
15021
15022
15023cat - <<_ACEOF >conftest.h
15024
15025_ACEOF
15026
15027
15028 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15029 echo "obj-m := conftest.o" >build/Makefile
15030 modpost_flag=''
15031 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15032 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'
15033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042 test $ac_status = 0; }; }; then :
15043 rc=0
15044else
15045 $as_echo "$as_me: failed program was:" >&5
15046sed 's/^/| /' conftest.$ac_ext >&5
15047 rc=1
15048
15049
15050fi
15051 rm -Rf build
15052
15053
15054 if test $rc -ne 0; then :
15055
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057$as_echo "no" >&6; }
15058
15059 else
15060 if test "x$enable_linux_builtin" != xyes; then
15061
15062 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15064 rc=$?
15065 if test $rc -ne 0; then
15066 export=0
15067 for file in fs/block_dev.c; do
15068 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15069 "$LINUX/$file" 2>/dev/null
15070 rc=$?
15071 if test $rc -eq 0; then
15072 export=1
15073 break;
15074 fi
15075 done
15076 if test $export -eq 0; then :
15077 rc=1
15078 else :
15079 rc=0
15080 fi
15081 else :
15082 rc=0
15083 fi
15084
15085 fi
15086 if test $rc -ne 0; then :
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089$as_echo "no" >&6; }
15090
15091 else :
15092
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15094$as_echo "yes" >&6; }
15095
15096$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15097
15098
15099 fi
15100 fi
15101
15102
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15104$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15105
15106
15107
15108cat confdefs.h - <<_ACEOF >conftest.c
15109
15110
15111 #include <linux/fs.h>
15112
15113int
15114main (void)
15115{
15116
15117 open_bdev_exclusive(NULL, 0, NULL);
15118
15119 ;
15120 return 0;
15121}
15122
15123_ACEOF
15124
15125
15126
15127cat - <<_ACEOF >conftest.h
15128
15129_ACEOF
15130
15131
15132 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15133 echo "obj-m := conftest.o" >build/Makefile
15134 modpost_flag=''
15135 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15136 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'
15137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15141 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15146 test $ac_status = 0; }; }; then :
15147 rc=0
15148else
15149 $as_echo "$as_me: failed program was:" >&5
15150sed 's/^/| /' conftest.$ac_ext >&5
15151 rc=1
15152
15153
15154fi
15155 rm -Rf build
15156
15157
15158 if test $rc -ne 0; then :
15159
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161$as_echo "no" >&6; }
15162
15163 else
15164 if test "x$enable_linux_builtin" != xyes; then
15165
15166 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15167 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15168 rc=$?
15169 if test $rc -ne 0; then
15170 export=0
15171 for file in fs/block_dev.c; do
15172 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15173 "$LINUX/$file" 2>/dev/null
15174 rc=$?
15175 if test $rc -eq 0; then
15176 export=1
15177 break;
15178 fi
15179 done
15180 if test $export -eq 0; then :
15181 rc=1
15182 else :
15183 rc=0
15184 fi
15185 else :
15186 rc=0
15187 fi
15188
15189 fi
15190 if test $rc -ne 0; then :
15191
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193$as_echo "no" >&6; }
15194
15195 else :
15196
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15198$as_echo "yes" >&6; }
15199
15200$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15201
15202
15203 fi
15204 fi
15205
15206
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15208$as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15209
15210
15211
15212cat confdefs.h - <<_ACEOF >conftest.c
15213
15214
15215 #include <linux/fs.h>
15216
15217int
15218main (void)
15219{
15220
15221 lookup_bdev(NULL);
15222
15223 ;
15224 return 0;
15225}
15226
15227_ACEOF
15228
15229
15230
15231cat - <<_ACEOF >conftest.h
15232
15233_ACEOF
15234
15235
15236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15237 echo "obj-m := conftest.o" >build/Makefile
15238 modpost_flag=''
15239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15240 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'
15241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250 test $ac_status = 0; }; }; then :
15251 rc=0
15252else
15253 $as_echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255 rc=1
15256
15257
15258fi
15259 rm -Rf build
15260
15261
15262 if test $rc -ne 0; then :
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265$as_echo "no" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15267$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15268
15269
15270
15271cat confdefs.h - <<_ACEOF >conftest.c
15272
15273
15274 #include <linux/fs.h>
15275
15276int
15277main (void)
15278{
15279
15280 lookup_bdev(NULL, FMODE_READ);
15281
15282 ;
15283 return 0;
15284}
15285
15286_ACEOF
15287
15288
15289
15290cat - <<_ACEOF >conftest.h
15291
15292_ACEOF
15293
15294
15295 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15296 echo "obj-m := conftest.o" >build/Makefile
15297 modpost_flag=''
15298 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15299 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'
15300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15304 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 test $ac_status = 0; }; }; then :
15310 rc=0
15311else
15312 $as_echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314 rc=1
15315
15316
15317fi
15318 rm -Rf build
15319
15320
15321 if test $rc -ne 0; then :
15322
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324$as_echo "no" >&6; }
15325
15326 else
15327 if test "x$enable_linux_builtin" != xyes; then
15328
15329 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15330 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15331 rc=$?
15332 if test $rc -ne 0; then
15333 export=0
15334 for file in fs/block_dev.c; do
15335 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15336 "$LINUX/$file" 2>/dev/null
15337 rc=$?
15338 if test $rc -eq 0; then
15339 export=1
15340 break;
15341 fi
15342 done
15343 if test $export -eq 0; then :
15344 rc=1
15345 else :
15346 rc=0
15347 fi
15348 else :
15349 rc=0
15350 fi
15351
15352 fi
15353 if test $rc -ne 0; then :
15354
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356$as_echo "no" >&6; }
15357
15358 else :
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361$as_echo "yes" >&6; }
15362
15363$as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15364
15365
15366 fi
15367 fi
15368
15369
15370 else
15371 if test "x$enable_linux_builtin" != xyes; then
15372
15373 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15374 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15375 rc=$?
15376 if test $rc -ne 0; then
15377 export=0
15378 for file in fs/block_dev.c; do
15379 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15380 "$LINUX/$file" 2>/dev/null
15381 rc=$?
15382 if test $rc -eq 0; then
15383 export=1
15384 break;
15385 fi
15386 done
15387 if test $export -eq 0; then :
15388 rc=1
15389 else :
15390 rc=0
15391 fi
15392 else :
15393 rc=0
15394 fi
15395
15396 fi
15397 if test $rc -ne 0; then :
15398
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400$as_echo "no" >&6; }
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15402$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15403
15404
15405
15406cat confdefs.h - <<_ACEOF >conftest.c
15407
15408
15409 #include <linux/fs.h>
15410
15411int
15412main (void)
15413{
15414
15415 lookup_bdev(NULL, FMODE_READ);
15416
15417 ;
15418 return 0;
15419}
15420
15421_ACEOF
15422
15423
15424
15425cat - <<_ACEOF >conftest.h
15426
15427_ACEOF
15428
15429
15430 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15431 echo "obj-m := conftest.o" >build/Makefile
15432 modpost_flag=''
15433 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15434 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'
15435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15444 test $ac_status = 0; }; }; then :
15445 rc=0
15446else
15447 $as_echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449 rc=1
15450
15451
15452fi
15453 rm -Rf build
15454
15455
15456 if test $rc -ne 0; then :
15457
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459$as_echo "no" >&6; }
15460
15461 else
15462 if test "x$enable_linux_builtin" != xyes; then
15463
15464 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15465 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15466 rc=$?
15467 if test $rc -ne 0; then
15468 export=0
15469 for file in fs/block_dev.c; do
15470 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15471 "$LINUX/$file" 2>/dev/null
15472 rc=$?
15473 if test $rc -eq 0; then
15474 export=1
15475 break;
15476 fi
15477 done
15478 if test $export -eq 0; then :
15479 rc=1
15480 else :
15481 rc=0
15482 fi
15483 else :
15484 rc=0
15485 fi
15486
15487 fi
15488 if test $rc -ne 0; then :
15489
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491$as_echo "no" >&6; }
15492
15493 else :
15494
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15496$as_echo "yes" >&6; }
15497
15498$as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15499
15500
15501 fi
15502 fi
15503
15504
15505 else :
15506
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508$as_echo "yes" >&6; }
15509
15510$as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15511
15512
15513 fi
15514 fi
15515
15516
15517
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15519$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15520
15521
15522cat confdefs.h - <<_ACEOF >conftest.c
15523
15524
15525 #include <linux/buffer_head.h>
15526
15527int
15528main (void)
15529{
15530
15531 struct block_device *bdev = NULL;
15532 invalidate_bdev(bdev);
15533
15534 ;
15535 return 0;
15536}
15537
15538_ACEOF
15539
15540
15541
15542cat - <<_ACEOF >conftest.h
15543
15544_ACEOF
15545
15546
15547 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15548 echo "obj-m := conftest.o" >build/Makefile
15549 modpost_flag=''
15550 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15551 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'
15552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15561 test $ac_status = 0; }; }; then :
15562
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15564$as_echo "yes" >&6; }
15565
15566$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15567
15568
15569else
15570 $as_echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574$as_echo "no" >&6; }
15575
15576
15577
15578fi
15579 rm -Rf build
15580
15581
15582
15583
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15585$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15586 tmp_flags="$EXTRA_KCFLAGS"
15587 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15588
15589
15590cat confdefs.h - <<_ACEOF >conftest.c
15591
15592
15593 #include <linux/blkdev.h>
15594
15595int
15596main (void)
15597{
15598
15599 struct block_device *bdev = NULL;
15600 bdev_logical_block_size(bdev);
15601
15602 ;
15603 return 0;
15604}
15605
15606_ACEOF
15607
15608
15609
15610cat - <<_ACEOF >conftest.h
15611
15612_ACEOF
15613
15614
15615 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15616 echo "obj-m := conftest.o" >build/Makefile
15617 modpost_flag=''
15618 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15619 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'
15620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15624 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629 test $ac_status = 0; }; }; then :
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632$as_echo "yes" >&6; }
15633
15634$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15635
15636
15637else
15638 $as_echo "$as_me: failed program was:" >&5
15639sed 's/^/| /' conftest.$ac_ext >&5
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642$as_echo "no" >&6; }
15643
15644
15645
15646fi
15647 rm -Rf build
15648
15649
15650 EXTRA_KCFLAGS="$tmp_flags"
15651
15652
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15654$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15655 tmp_flags="$EXTRA_KCFLAGS"
15656 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15657
15658
15659cat confdefs.h - <<_ACEOF >conftest.c
15660
15661
15662 #include <linux/blkdev.h>
15663
15664int
15665main (void)
15666{
15667
15668 struct block_device *bdev = NULL;
15669 bdev_physical_block_size(bdev);
15670
15671 ;
15672 return 0;
15673}
15674
15675_ACEOF
15676
15677
15678
15679cat - <<_ACEOF >conftest.h
15680
15681_ACEOF
15682
15683
15684 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15685 echo "obj-m := conftest.o" >build/Makefile
15686 modpost_flag=''
15687 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15688 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'
15689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15698 test $ac_status = 0; }; }; then :
15699
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701$as_echo "yes" >&6; }
15702
15703$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15704
15705
15706else
15707 $as_echo "$as_me: failed program was:" >&5
15708sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711$as_echo "no" >&6; }
15712
15713
15714
15715fi
15716 rm -Rf build
15717
15718
15719 EXTRA_KCFLAGS="$tmp_flags"
15720
15721
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15723$as_echo_n "checking whether bio has bi_iter... " >&6; }
15724
15725
15726cat confdefs.h - <<_ACEOF >conftest.c
15727
15728
15729 #include <linux/bio.h>
15730
15731int
15732main (void)
15733{
15734
15735 struct bio bio;
15736 bio.bi_iter.bi_sector = 0;
15737
15738 ;
15739 return 0;
15740}
15741
15742_ACEOF
15743
15744
15745
15746cat - <<_ACEOF >conftest.h
15747
15748_ACEOF
15749
15750
15751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15752 echo "obj-m := conftest.o" >build/Makefile
15753 modpost_flag=''
15754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15755 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'
15756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15765 test $ac_status = 0; }; }; then :
15766
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15768$as_echo "yes" >&6; }
15769
15770$as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15771
15772
15773else
15774 $as_echo "$as_me: failed program was:" >&5
15775sed 's/^/| /' conftest.$ac_ext >&5
15776
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778$as_echo "no" >&6; }
15779
15780
15781
15782fi
15783 rm -Rf build
15784
15785
15786
15787
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15789$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15790
15791
15792cat confdefs.h - <<_ACEOF >conftest.c
15793
15794
15795 #include <linux/bio.h>
15796
15797int
15798main (void)
15799{
15800
15801 int flags __attribute__ ((unused));
15802 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15803 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15804 (1 << BIO_RW_FAILFAST_DRIVER));
15805
15806 ;
15807 return 0;
15808}
15809
15810_ACEOF
15811
15812
15813
15814cat - <<_ACEOF >conftest.h
15815
15816_ACEOF
15817
15818
15819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15820 echo "obj-m := conftest.o" >build/Makefile
15821 modpost_flag=''
15822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15823 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'
15824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15833 test $ac_status = 0; }; }; then :
15834
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15836$as_echo "yes" >&6; }
15837
15838$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15839
15840
15841else
15842 $as_echo "$as_me: failed program was:" >&5
15843sed 's/^/| /' conftest.$ac_ext >&5
15844
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846$as_echo "no" >&6; }
15847
15848
15849
15850fi
15851 rm -Rf build
15852
15853
15854
15855
86e3c28a
CIK
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15857$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15858
15859
15860cat confdefs.h - <<_ACEOF >conftest.c
15861
15862
15863 #include <linux/bio.h>
15864 #include <linux/fs.h>
15865
15866int
15867main (void)
15868{
15869
15870 struct block_device *bdev = NULL;
15871 struct bio *bio = NULL;
15872 bio_set_dev(bio, bdev);
15873
15874 ;
15875 return 0;
15876}
15877
15878_ACEOF
15879
15880
15881
15882cat - <<_ACEOF >conftest.h
15883
15884_ACEOF
15885
15886
15887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15888 echo "obj-m := conftest.o" >build/Makefile
15889 modpost_flag=''
15890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15891 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'
15892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; }; }; then :
15902
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15904$as_echo "yes" >&6; }
15905
15906$as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15907
15908
15909else
15910 $as_echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914$as_echo "no" >&6; }
15915
15916
15917
15918fi
15919 rm -Rf build
15920
15921
15922
15923
70e083d2
TG
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15925$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15926
15927
15928cat confdefs.h - <<_ACEOF >conftest.c
15929
15930
15931 #include <linux/bio.h>
15932
15933int
15934main (void)
15935{
15936
15937 int flags __attribute__ ((unused));
15938 flags = REQ_FAILFAST_MASK;
15939
15940 ;
15941 return 0;
15942}
15943
15944_ACEOF
15945
15946
15947
15948cat - <<_ACEOF >conftest.h
15949
15950_ACEOF
15951
15952
15953 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15954 echo "obj-m := conftest.o" >build/Makefile
15955 modpost_flag=''
15956 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15957 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'
15958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15967 test $ac_status = 0; }; }; then :
15968
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970$as_echo "yes" >&6; }
15971
15972$as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15973
15974
15975else
15976 $as_echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980$as_echo "no" >&6; }
15981
15982
15983
15984fi
15985 rm -Rf build
15986
15987
15988
15989
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15991$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15992
15993
15994cat confdefs.h - <<_ACEOF >conftest.c
15995
15996
15997 #include <linux/blk_types.h>
15998
15999int
16000main (void)
16001{
16002
16003 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16004
16005 ;
16006 return 0;
16007}
16008
16009_ACEOF
16010
16011
16012
16013cat - <<_ACEOF >conftest.h
16014
16015_ACEOF
16016
16017
16018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16019 echo "obj-m := conftest.o" >build/Makefile
16020 modpost_flag=''
16021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16022 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'
16023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16027 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032 test $ac_status = 0; }; }; then :
16033
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035$as_echo "yes" >&6; }
16036
16037$as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16038
16039
16040else
16041 $as_echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045$as_echo "no" >&6; }
16046
16047
16048
16049fi
16050 rm -Rf build
16051
16052
16053
16054
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16056$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16057
16058
16059cat confdefs.h - <<_ACEOF >conftest.c
16060
16061
16062 #include <linux/blk_types.h>
16063
16064int
16065main (void)
16066{
16067
16068 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16069
16070 ;
16071 return 0;
16072}
16073
16074_ACEOF
16075
16076
16077
16078cat - <<_ACEOF >conftest.h
16079
16080_ACEOF
16081
16082
16083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16084 echo "obj-m := conftest.o" >build/Makefile
16085 modpost_flag=''
16086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16087 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'
16088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16092 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; }; then :
16098
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100$as_echo "yes" >&6; }
16101
16102$as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16103
16104
16105else
16106 $as_echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110$as_echo "no" >&6; }
16111
16112
16113
16114fi
16115 rm -Rf build
16116
16117
16118
16119
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16121$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16122
16123
16124cat confdefs.h - <<_ACEOF >conftest.c
16125
16126
16127 #include <linux/blk_types.h>
16128
16129int
16130main (void)
16131{
16132
16133 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16134
16135 ;
16136 return 0;
16137}
16138
16139_ACEOF
16140
16141
16142
16143cat - <<_ACEOF >conftest.h
16144
16145_ACEOF
16146
16147
16148 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16149 echo "obj-m := conftest.o" >build/Makefile
16150 modpost_flag=''
16151 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16152 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'
16153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16157 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16162 test $ac_status = 0; }; }; then :
16163
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16165$as_echo "yes" >&6; }
16166
16167$as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16168
16169
16170else
16171 $as_echo "$as_me: failed program was:" >&5
16172sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16175$as_echo "no" >&6; }
16176
16177
16178
16179fi
16180 rm -Rf build
16181
16182
16183
16184
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16186$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16187
16188
16189cat confdefs.h - <<_ACEOF >conftest.c
16190
16191
16192 #include <linux/bio.h>
16193
16194int
16195main (void)
16196{
16197
16198 struct bio bio __attribute__ ((unused));
16199 bio.bi_opf = 0;
16200
16201 ;
16202 return 0;
16203}
16204
16205_ACEOF
16206
16207
16208
16209cat - <<_ACEOF >conftest.h
16210
16211_ACEOF
16212
16213
16214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16215 echo "obj-m := conftest.o" >build/Makefile
16216 modpost_flag=''
16217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16218 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'
16219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16228 test $ac_status = 0; }; }; then :
16229
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16231$as_echo "yes" >&6; }
16232
16233$as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16234
16235
16236else
16237 $as_echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241$as_echo "no" >&6; }
16242
16243
16244
16245fi
16246 rm -Rf build
16247
16248
16249
16250
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16252$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16253
16254
16255cat confdefs.h - <<_ACEOF >conftest.c
16256
16257
16258 #include <linux/bio.h>
16259
16260 void wanted_end_io(struct bio *bio) { return; }
16261
16262 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16263
16264int
16265main (void)
16266{
16267
16268
16269 ;
16270 return 0;
16271}
16272
16273_ACEOF
16274
16275
16276
16277cat - <<_ACEOF >conftest.h
16278
16279_ACEOF
16280
16281
16282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16283 echo "obj-m := conftest.o" >build/Makefile
16284 modpost_flag=''
16285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16286 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'
16287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16291 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; }; }; then :
16297
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16299$as_echo "yes" >&6; }
16300
16301$as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16302
16303
16304else
16305 $as_echo "$as_me: failed program was:" >&5
16306sed 's/^/| /' conftest.$ac_ext >&5
16307
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309$as_echo "no" >&6; }
16310
16311
16312
16313fi
16314 rm -Rf build
16315
16316
16317
16318
3ab1144a
CIK
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16320$as_echo_n "checking whether bio->bi_status exists... " >&6; }
16321
16322
16323cat confdefs.h - <<_ACEOF >conftest.c
16324
16325
16326 #include <linux/bio.h>
16327
16328int
16329main (void)
16330{
16331
16332 struct bio bio __attribute__ ((unused));
16333 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16334
16335 bio.bi_status = status;
16336
16337 ;
16338 return 0;
16339}
16340
16341_ACEOF
16342
16343
16344
16345cat - <<_ACEOF >conftest.h
16346
16347_ACEOF
16348
16349
16350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16351 echo "obj-m := conftest.o" >build/Makefile
16352 modpost_flag=''
16353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16354 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'
16355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16364 test $ac_status = 0; }; }; then :
16365
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16367$as_echo "yes" >&6; }
16368
16369$as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16370
16371
16372else
16373 $as_echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16377$as_echo "no" >&6; }
16378
16379
16380
16381fi
16382 rm -Rf build
16383
16384
16385
16386
70e083d2
TG
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16388$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16389
16390
16391cat confdefs.h - <<_ACEOF >conftest.c
16392
16393
16394 #include <linux/bio.h>
16395
16396int
16397main (void)
16398{
16399
16400 int flags __attribute__ ((unused));
16401 flags = BIO_RW_BARRIER;
16402
16403 ;
16404 return 0;
16405}
16406
16407_ACEOF
16408
16409
16410
16411cat - <<_ACEOF >conftest.h
16412
16413_ACEOF
16414
16415
16416 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16417 echo "obj-m := conftest.o" >build/Makefile
16418 modpost_flag=''
16419 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16420 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'
16421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430 test $ac_status = 0; }; }; then :
16431
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16433$as_echo "yes" >&6; }
16434
16435$as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16436
16437
16438else
16439 $as_echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443$as_echo "no" >&6; }
16444
16445
16446
16447fi
16448 rm -Rf build
16449
16450
16451
16452
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16454$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16455
16456
16457cat confdefs.h - <<_ACEOF >conftest.c
16458
16459
16460 #include <linux/bio.h>
16461
16462int
16463main (void)
16464{
16465
16466 int flags __attribute__ ((unused));
16467 flags = BIO_RW_DISCARD;
16468
16469 ;
16470 return 0;
16471}
16472
16473_ACEOF
16474
16475
16476
16477cat - <<_ACEOF >conftest.h
16478
16479_ACEOF
16480
16481
16482 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16483 echo "obj-m := conftest.o" >build/Makefile
16484 modpost_flag=''
16485 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16486 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'
16487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16491 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16496 test $ac_status = 0; }; }; then :
16497
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16499$as_echo "yes" >&6; }
16500
16501$as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16502
16503
16504else
16505 $as_echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509$as_echo "no" >&6; }
16510
16511
16512
16513fi
16514 rm -Rf build
16515
16516
16517
16518
86e3c28a
CIK
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16520$as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
70e083d2
TG
16521
16522
16523cat confdefs.h - <<_ACEOF >conftest.c
16524
16525
16526 #include <linux/blkdev.h>
16527
16528int
16529main (void)
16530{
16531
86e3c28a
CIK
16532 struct request_queue q;
16533 struct backing_dev_info bdi;
16534 q.backing_dev_info = &bdi;
70e083d2
TG
16535
16536 ;
16537 return 0;
16538}
16539
16540_ACEOF
16541
16542
16543
16544cat - <<_ACEOF >conftest.h
16545
16546_ACEOF
16547
16548
16549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16550 echo "obj-m := conftest.o" >build/Makefile
16551 modpost_flag=''
16552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16553 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'
16554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16563 test $ac_status = 0; }; }; then :
16564
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566$as_echo "yes" >&6; }
16567
86e3c28a 16568$as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
70e083d2
TG
16569
16570
16571else
16572 $as_echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576$as_echo "no" >&6; }
16577
16578
16579
16580fi
16581 rm -Rf build
16582
16583
16584
86e3c28a
CIK
16585
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16587$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16588 tmp_flags="$EXTRA_KCFLAGS"
16589 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
70e083d2
TG
16590
16591
16592cat confdefs.h - <<_ACEOF >conftest.c
16593
16594
70e083d2
TG
16595 #include <linux/blkdev.h>
16596
70e083d2
TG
16597int
16598main (void)
16599{
16600
16601 struct request_queue *q = NULL;
86e3c28a 16602 (void) blk_queue_flush(q, REQ_FLUSH);
70e083d2
TG
16603
16604 ;
16605 return 0;
16606}
16607
16608_ACEOF
16609
16610
16611
16612cat - <<_ACEOF >conftest.h
16613
16614_ACEOF
16615
16616
16617 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16618 echo "obj-m := conftest.o" >build/Makefile
16619 modpost_flag=''
16620 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16621 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'
16622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16631 test $ac_status = 0; }; }; then :
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16634$as_echo "yes" >&6; }
16635
86e3c28a 16636$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
70e083d2
TG
16637
16638
86e3c28a
CIK
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16640$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
70e083d2
TG
16641
16642
16643cat confdefs.h - <<_ACEOF >conftest.c
16644
16645
70e083d2
TG
16646 #include <linux/module.h>
16647 #include <linux/blkdev.h>
16648
16649 MODULE_LICENSE("$ZFS_META_LICENSE");
16650
16651int
16652main (void)
16653{
16654
16655 struct request_queue *q = NULL;
86e3c28a 16656 (void) blk_queue_flush(q, REQ_FLUSH);
70e083d2
TG
16657
16658 ;
16659 return 0;
16660}
16661
16662_ACEOF
16663
16664
16665
16666cat - <<_ACEOF >conftest.h
16667
16668_ACEOF
16669
16670
16671 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16672 echo "obj-m := conftest.o" >build/Makefile
16673 modpost_flag=''
16674 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16675 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'
16676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16680 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }; }; then :
16686
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688$as_echo "no" >&6; }
16689
16690else
16691 $as_echo "$as_me: failed program was:" >&5
16692sed 's/^/| /' conftest.$ac_ext >&5
16693
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16695$as_echo "yes" >&6; }
16696
86e3c28a 16697$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
70e083d2
TG
16698
16699
16700
16701
16702fi
16703 rm -Rf build
16704
16705
16706
16707else
16708 $as_echo "$as_me: failed program was:" >&5
16709sed 's/^/| /' conftest.$ac_ext >&5
16710
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712$as_echo "no" >&6; }
16713
16714
16715
16716fi
16717 rm -Rf build
16718
16719
16720
86e3c28a
CIK
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16722$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
70e083d2
TG
16723
16724
16725cat confdefs.h - <<_ACEOF >conftest.c
16726
16727
86e3c28a 16728 #include <linux/kernel.h>
70e083d2
TG
16729 #include <linux/blkdev.h>
16730
70e083d2
TG
16731
16732int
16733main (void)
16734{
16735
16736 struct request_queue *q = NULL;
86e3c28a 16737 blk_queue_write_cache(q, true, true);
70e083d2
TG
16738
16739 ;
16740 return 0;
16741}
16742
16743_ACEOF
16744
16745
16746
16747cat - <<_ACEOF >conftest.h
16748
16749_ACEOF
16750
16751
16752 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16753 echo "obj-m := conftest.o" >build/Makefile
16754 modpost_flag=''
16755 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16756 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'
16757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16766 test $ac_status = 0; }; }; then :
16767
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16769$as_echo "yes" >&6; }
16770
86e3c28a 16771$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
70e083d2
TG
16772
16773
86e3c28a
CIK
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16775$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
70e083d2
TG
16776
16777
16778cat confdefs.h - <<_ACEOF >conftest.c
16779
16780
86e3c28a
CIK
16781 #include <linux/kernel.h>
16782 #include <linux/module.h>
16783 #include <linux/blkdev.h>
16784
16785 MODULE_LICENSE("$ZFS_META_LICENSE");
70e083d2
TG
16786
16787int
16788main (void)
16789{
16790
86e3c28a
CIK
16791 struct request_queue *q = NULL;
16792 blk_queue_write_cache(q, true, true);
70e083d2
TG
16793
16794 ;
16795 return 0;
16796}
16797
16798_ACEOF
16799
16800
16801
16802cat - <<_ACEOF >conftest.h
16803
16804_ACEOF
16805
16806
16807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16808 echo "obj-m := conftest.o" >build/Makefile
16809 modpost_flag=''
16810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16811 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'
16812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16816 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16821 test $ac_status = 0; }; }; then :
16822
86e3c28a
CIK
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16824$as_echo "no" >&6; }
16825
16826else
16827 $as_echo "$as_me: failed program was:" >&5
16828sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
16831$as_echo "yes" >&6; }
16832
86e3c28a
CIK
16833$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16834
16835
16836
16837
16838fi
16839 rm -Rf build
16840
70e083d2
TG
16841
16842
16843else
16844 $as_echo "$as_me: failed program was:" >&5
16845sed 's/^/| /' conftest.$ac_ext >&5
16846
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16848$as_echo "no" >&6; }
16849
16850
16851
16852fi
16853 rm -Rf build
16854
16855
86e3c28a 16856
70e083d2
TG
16857 EXTRA_KCFLAGS="$tmp_flags"
16858
16859
86e3c28a
CIK
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16861$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
70e083d2
TG
16862 tmp_flags="$EXTRA_KCFLAGS"
16863 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16864
16865
16866cat confdefs.h - <<_ACEOF >conftest.c
16867
16868
16869 #include <linux/blkdev.h>
16870
16871int
16872main (void)
16873{
16874
86e3c28a
CIK
16875 struct request_queue *q = NULL;
16876 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
70e083d2
TG
16877
16878 ;
16879 return 0;
16880}
16881
16882_ACEOF
16883
16884
16885
16886cat - <<_ACEOF >conftest.h
16887
16888_ACEOF
16889
16890
16891 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16892 echo "obj-m := conftest.o" >build/Makefile
16893 modpost_flag=''
16894 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16895 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'
16896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; }; then :
16906
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16908$as_echo "yes" >&6; }
16909
86e3c28a 16910$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
70e083d2
TG
16911
16912
16913else
16914 $as_echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918$as_echo "no" >&6; }
16919
16920
16921
16922fi
16923 rm -Rf build
16924
16925
16926 EXTRA_KCFLAGS="$tmp_flags"
16927
16928
86e3c28a
CIK
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16930$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
70e083d2
TG
16931 tmp_flags="$EXTRA_KCFLAGS"
16932 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16933
16934
16935cat confdefs.h - <<_ACEOF >conftest.c
16936
16937
16938 #include <linux/blkdev.h>
16939
16940int
16941main (void)
16942{
16943
86e3c28a
CIK
16944 struct request_queue *q = NULL;
16945 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
70e083d2
TG
16946
16947 ;
16948 return 0;
16949}
16950
16951_ACEOF
16952
16953
16954
16955cat - <<_ACEOF >conftest.h
16956
16957_ACEOF
16958
16959
16960 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16961 echo "obj-m := conftest.o" >build/Makefile
16962 modpost_flag=''
16963 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16964 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'
16965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16974 test $ac_status = 0; }; }; then :
16975
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16977$as_echo "yes" >&6; }
16978
86e3c28a 16979$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
70e083d2
TG
16980
16981
16982else
16983 $as_echo "$as_me: failed program was:" >&5
16984sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987$as_echo "no" >&6; }
16988
16989
16990
16991fi
16992 rm -Rf build
16993
16994
16995 EXTRA_KCFLAGS="$tmp_flags"
16996
70e083d2 16997
86e3c28a
CIK
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16999$as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17000 tmp_flags="$EXTRA_KCFLAGS"
17001 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
70e083d2
TG
17002
17003
17004cat confdefs.h - <<_ACEOF >conftest.c
17005
17006
86e3c28a 17007 #include <linux/blkdev.h>
70e083d2
TG
17008
17009int
17010main (void)
17011{
17012
86e3c28a
CIK
17013 extern enum bio_rw_flags rw;
17014
17015 rw = BIO_RW_UNPLUG;
70e083d2
TG
17016
17017 ;
17018 return 0;
17019}
17020
17021_ACEOF
17022
17023
17024
17025cat - <<_ACEOF >conftest.h
17026
17027_ACEOF
17028
17029
17030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17031 echo "obj-m := conftest.o" >build/Makefile
17032 modpost_flag=''
17033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17034 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'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17044 test $ac_status = 0; }; }; then :
70e083d2 17045
86e3c28a
CIK
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047$as_echo "yes" >&6; }
70e083d2 17048
86e3c28a 17049$as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
70e083d2 17050
70e083d2 17051
86e3c28a
CIK
17052else
17053 $as_echo "$as_me: failed program was:" >&5
17054sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
17055
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057$as_echo "no" >&6; }
17058
70e083d2 17059
70e083d2 17060
86e3c28a
CIK
17061fi
17062 rm -Rf build
70e083d2 17063
70e083d2 17064
86e3c28a 17065 EXTRA_KCFLAGS="$tmp_flags"
70e083d2
TG
17066
17067
86e3c28a
CIK
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17069$as_echo_n "checking whether struct blk_plug is available... " >&6; }
17070 tmp_flags="$EXTRA_KCFLAGS"
17071 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
70e083d2
TG
17072
17073
17074cat confdefs.h - <<_ACEOF >conftest.c
17075
17076
86e3c28a 17077 #include <linux/blkdev.h>
70e083d2
TG
17078
17079int
17080main (void)
17081{
17082
86e3c28a 17083 struct blk_plug plug;
70e083d2 17084
86e3c28a
CIK
17085 blk_start_plug(&plug);
17086 blk_finish_plug(&plug);
70e083d2
TG
17087
17088 ;
17089 return 0;
17090}
17091
17092_ACEOF
17093
17094
17095
17096cat - <<_ACEOF >conftest.h
17097
17098_ACEOF
17099
17100
17101 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17102 echo "obj-m := conftest.o" >build/Makefile
17103 modpost_flag=''
17104 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17105 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'
17106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; }; }; then :
17116
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118$as_echo "yes" >&6; }
17119
86e3c28a 17120$as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
70e083d2
TG
17121
17122
17123else
17124 $as_echo "$as_me: failed program was:" >&5
17125sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128$as_echo "no" >&6; }
17129
17130
17131
17132fi
17133 rm -Rf build
17134
17135
86e3c28a 17136 EXTRA_KCFLAGS="$tmp_flags"
70e083d2
TG
17137
17138
86e3c28a
CIK
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17140$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17141 tmp_flags="$EXTRA_KCFLAGS"
17142 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
70e083d2
TG
17143
17144
17145cat confdefs.h - <<_ACEOF >conftest.c
17146
17147
86e3c28a 17148 #include <linux/blkdev.h>
70e083d2
TG
17149
17150int
17151main (void)
17152{
17153
86e3c28a
CIK
17154 struct gendisk *disk = NULL;
17155 (void) get_disk_ro(disk);
70e083d2
TG
17156
17157 ;
17158 return 0;
17159}
17160
17161_ACEOF
17162
17163
17164
17165cat - <<_ACEOF >conftest.h
17166
17167_ACEOF
17168
17169
17170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17171 echo "obj-m := conftest.o" >build/Makefile
17172 modpost_flag=''
17173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17174 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'
17175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; }; then :
17185
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187$as_echo "yes" >&6; }
17188
86e3c28a 17189$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
70e083d2
TG
17190
17191
17192else
17193 $as_echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197$as_echo "no" >&6; }
17198
17199
17200
17201fi
17202 rm -Rf build
17203
17204
86e3c28a 17205 EXTRA_KCFLAGS="$tmp_flags"
70e083d2 17206
86e3c28a
CIK
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17208$as_echo_n "checking whether get_gendisk() is available... " >&6; }
70e083d2 17209
70e083d2
TG
17210
17211
17212cat confdefs.h - <<_ACEOF >conftest.c
17213
17214
86e3c28a 17215 #include <linux/genhd.h>
70e083d2
TG
17216
17217int
17218main (void)
17219{
17220
86e3c28a 17221 get_gendisk(0, NULL);
70e083d2
TG
17222
17223 ;
17224 return 0;
17225}
17226
17227_ACEOF
17228
17229
17230
17231cat - <<_ACEOF >conftest.h
17232
17233_ACEOF
17234
17235
17236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17237 echo "obj-m := conftest.o" >build/Makefile
17238 modpost_flag=''
17239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17240 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'
17241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17250 test $ac_status = 0; }; }; then :
86e3c28a
CIK
17251 rc=0
17252else
17253 $as_echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255 rc=1
70e083d2 17256
70e083d2 17257
86e3c28a
CIK
17258fi
17259 rm -Rf build
70e083d2
TG
17260
17261
86e3c28a 17262 if test $rc -ne 0; then :
70e083d2
TG
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265$as_echo "no" >&6; }
17266
86e3c28a
CIK
17267 else
17268 if test "x$enable_linux_builtin" != xyes; then
70e083d2 17269
86e3c28a
CIK
17270 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17271 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17272 rc=$?
17273 if test $rc -ne 0; then
17274 export=0
17275 for file in block/genhd.c; do
17276 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17277 "$LINUX/$file" 2>/dev/null
17278 rc=$?
17279 if test $rc -eq 0; then
17280 export=1
17281 break;
17282 fi
17283 done
17284 if test $export -eq 0; then :
17285 rc=1
17286 else :
17287 rc=0
17288 fi
17289 else :
17290 rc=0
17291 fi
70e083d2 17292
86e3c28a
CIK
17293 fi
17294 if test $rc -ne 0; then :
70e083d2 17295
86e3c28a
CIK
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17297$as_echo "no" >&6; }
70e083d2 17298
86e3c28a 17299 else :
70e083d2 17300
86e3c28a
CIK
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17302$as_echo "yes" >&6; }
70e083d2 17303
86e3c28a 17304$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
70e083d2
TG
17305
17306
86e3c28a
CIK
17307 fi
17308 fi
70e083d2
TG
17309
17310
70e083d2 17311
86e3c28a
CIK
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17313$as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
70e083d2 17314
70e083d2 17315
86e3c28a
CIK
17316cat confdefs.h - <<_ACEOF >conftest.c
17317
17318
17319 #include <linux/bio.h>
17320
17321int
17322main (void)
17323{
17324
17325 struct bio *bio __attribute__ ((unused)) = NULL;
17326
17327 bio_set_op_attrs(bio, 0, 0);
17328
17329 ;
17330 return 0;
17331}
17332
17333_ACEOF
17334
17335
17336
17337cat - <<_ACEOF >conftest.h
17338
17339_ACEOF
17340
17341
17342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17343 echo "obj-m := conftest.o" >build/Makefile
17344 modpost_flag=''
17345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17346 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'
17347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }; }; then :
17357
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17359$as_echo "yes" >&6; }
17360
17361$as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17362
17363
17364else
17365 $as_echo "$as_me: failed program was:" >&5
17366sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369$as_echo "no" >&6; }
17370
17371
17372
17373fi
17374 rm -Rf build
17375
17376
17377
17378
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17380$as_echo_n "checking whether generic_readlink is global... " >&6; }
17381
17382
17383cat confdefs.h - <<_ACEOF >conftest.c
17384
17385
17386 #include <linux/fs.h>
17387
17388int
17389main (void)
17390{
17391
17392 int i __attribute__ ((unused));
17393
17394 i = generic_readlink(NULL, NULL, 0);
17395
17396 ;
17397 return 0;
17398}
17399
17400_ACEOF
17401
17402
17403
17404cat - <<_ACEOF >conftest.h
17405
17406_ACEOF
17407
17408
17409 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17410 echo "obj-m := conftest.o" >build/Makefile
17411 modpost_flag=''
17412 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17413 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'
17414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17418 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17423 test $ac_status = 0; }; }; then :
17424
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426$as_echo "yes" >&6; }
17427
17428$as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17429
17430
17431else
17432 $as_echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
17434
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436$as_echo "no" >&6; }
17437
17438
17439
17440fi
17441 rm -Rf build
17442
17443
17444
17445
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17447$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17448
17449
17450cat confdefs.h - <<_ACEOF >conftest.c
17451
17452
17453 #include <linux/blkdev.h>
17454
17455int
17456main (void)
17457{
17458
17459 struct queue_limits ql __attribute__ ((unused));
17460
17461 ql.discard_granularity = 0;
17462
17463 ;
17464 return 0;
17465}
17466
17467_ACEOF
17468
17469
17470
17471cat - <<_ACEOF >conftest.h
17472
17473_ACEOF
17474
17475
17476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17477 echo "obj-m := conftest.o" >build/Makefile
17478 modpost_flag=''
17479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17480 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'
17481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17490 test $ac_status = 0; }; }; then :
17491
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17493$as_echo "yes" >&6; }
17494
17495$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17496
17497
17498else
17499 $as_echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503$as_echo "no" >&6; }
17504
17505
17506
17507fi
17508 rm -Rf build
17509
17510
17511
17512
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17514$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17515
17516
17517cat confdefs.h - <<_ACEOF >conftest.c
17518
17519
17520 #include <linux/fs.h>
17521 #include <linux/xattr.h>
17522
17523 const struct xattr_handler xattr_test_handler = {
17524 .prefix = "test",
17525 .get = NULL,
17526 .set = NULL,
17527 };
17528
17529 const struct xattr_handler *xattr_handlers[] = {
17530 &xattr_test_handler,
17531 };
17532
17533 const struct super_block sb __attribute__ ((unused)) = {
17534 .s_xattr = xattr_handlers,
17535 };
70e083d2
TG
17536
17537int
17538main (void)
17539{
17540
17541
17542 ;
17543 return 0;
17544}
17545
17546_ACEOF
17547
17548
17549
17550cat - <<_ACEOF >conftest.h
17551
17552_ACEOF
17553
17554
17555 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17556 echo "obj-m := conftest.o" >build/Makefile
17557 modpost_flag=''
17558 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17559 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'
17560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17564 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17569 test $ac_status = 0; }; }; then :
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572$as_echo "yes" >&6; }
17573
17574$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17575
17576
17577else
17578 $as_echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582$as_echo "no" >&6; }
17583
17584
17585
17586fi
17587 rm -Rf build
17588
17589
17590
17591
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17593$as_echo_n "checking whether xattr_handler has name... " >&6; }
17594
17595
17596cat confdefs.h - <<_ACEOF >conftest.c
17597
17598
17599 #include <linux/xattr.h>
17600
17601 static const struct xattr_handler
17602 xops __attribute__ ((unused)) = {
17603 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17604 };
17605
17606int
17607main (void)
17608{
17609
17610
17611 ;
17612 return 0;
17613}
17614
17615_ACEOF
17616
17617
17618
17619cat - <<_ACEOF >conftest.h
17620
17621_ACEOF
17622
17623
17624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17625 echo "obj-m := conftest.o" >build/Makefile
17626 modpost_flag=''
17627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17628 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'
17629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17638 test $ac_status = 0; }; }; then :
17639
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17641$as_echo "yes" >&6; }
17642
17643$as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17644
17645
17646else
17647 $as_echo "$as_me: failed program was:" >&5
17648sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651$as_echo "no" >&6; }
17652
17653
17654
17655fi
17656 rm -Rf build
17657
17658
17659
17660
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17662$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17663
17664
17665cat confdefs.h - <<_ACEOF >conftest.c
17666
17667
17668 #include <linux/xattr.h>
17669
17670 int get(const struct xattr_handler *handler,
17671 struct dentry *dentry, struct inode *inode,
17672 const char *name, void *buffer, size_t size) { return 0; }
17673 static const struct xattr_handler
17674 xops __attribute__ ((unused)) = {
17675 .get = get,
17676 };
17677
17678int
17679main (void)
17680{
17681
17682
17683 ;
17684 return 0;
17685}
17686
17687_ACEOF
17688
17689
17690
17691cat - <<_ACEOF >conftest.h
17692
17693_ACEOF
17694
17695
17696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17697 echo "obj-m := conftest.o" >build/Makefile
17698 modpost_flag=''
17699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17700 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'
17701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; }; }; then :
17711
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713$as_echo "yes" >&6; }
17714
17715$as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17716
17717
17718else
17719 $as_echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
86e3c28a
CIK
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723$as_echo "no" >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
70e083d2
TG
17725$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17726
17727
17728cat confdefs.h - <<_ACEOF >conftest.c
17729
17730
17731 #include <linux/xattr.h>
17732
17733 int get(const struct xattr_handler *handler,
17734 struct dentry *dentry, const char *name,
17735 void *buffer, size_t size) { return 0; }
17736 static const struct xattr_handler
17737 xops __attribute__ ((unused)) = {
17738 .get = get,
17739 };
17740
17741int
17742main (void)
17743{
17744
17745
17746 ;
17747 return 0;
17748}
17749
17750_ACEOF
17751
17752
17753
17754cat - <<_ACEOF >conftest.h
17755
17756_ACEOF
17757
17758
17759 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17760 echo "obj-m := conftest.o" >build/Makefile
17761 modpost_flag=''
17762 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17763 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'
17764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17773 test $ac_status = 0; }; }; then :
17774
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776$as_echo "yes" >&6; }
17777
17778$as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17779
17780
17781else
17782 $as_echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786$as_echo "no" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17788$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17789
17790
17791cat confdefs.h - <<_ACEOF >conftest.c
17792
17793
17794 #include <linux/xattr.h>
17795
17796 int get(struct dentry *dentry, const char *name,
17797 void *buffer, size_t size, int handler_flags)
17798 { return 0; }
17799 static const struct xattr_handler
17800 xops __attribute__ ((unused)) = {
17801 .get = get,
17802 };
17803
17804int
17805main (void)
17806{
17807
17808
17809 ;
17810 return 0;
17811}
17812
17813_ACEOF
17814
17815
17816
17817cat - <<_ACEOF >conftest.h
17818
17819_ACEOF
17820
17821
17822 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17823 echo "obj-m := conftest.o" >build/Makefile
17824 modpost_flag=''
17825 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17826 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'
17827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; }; then :
17837
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17839$as_echo "yes" >&6; }
17840
17841$as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17842
17843
17844else
17845 $as_echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849$as_echo "no" >&6; }
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17851$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17852
17853
17854cat confdefs.h - <<_ACEOF >conftest.c
17855
17856
17857 #include <linux/xattr.h>
17858
17859 int get(struct inode *ip, const char *name,
17860 void *buffer, size_t size) { return 0; }
17861 static const struct xattr_handler
17862 xops __attribute__ ((unused)) = {
17863 .get = get,
17864 };
17865
17866int
17867main (void)
17868{
17869
17870
17871 ;
17872 return 0;
17873}
17874
17875_ACEOF
17876
17877
17878
17879cat - <<_ACEOF >conftest.h
17880
17881_ACEOF
17882
17883
17884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17885 echo "obj-m := conftest.o" >build/Makefile
17886 modpost_flag=''
17887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17888 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'
17889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17893 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; }; }; then :
17899
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17901$as_echo "yes" >&6; }
17902
17903$as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17904
17905
17906else
17907 $as_echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17911
17912
17913
17914fi
17915 rm -Rf build
17916
17917
17918
17919
17920
17921fi
17922 rm -Rf build
17923
17924
17925
17926
17927
17928fi
17929 rm -Rf build
17930
17931
17932
17933
17934
17935fi
17936 rm -Rf build
17937
17938
17939
17940
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17942$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17943
17944
17945cat confdefs.h - <<_ACEOF >conftest.c
17946
17947
17948 #include <linux/xattr.h>
17949
17950 int set(const struct xattr_handler *handler,
17951 struct dentry *dentry, struct inode *inode,
17952 const char *name, const void *buffer,
17953 size_t size, int flags)
17954 { return 0; }
17955 static const struct xattr_handler
17956 xops __attribute__ ((unused)) = {
17957 .set = set,
17958 };
17959
17960int
17961main (void)
17962{
17963
17964
17965 ;
17966 return 0;
17967}
17968
17969_ACEOF
17970
17971
17972
17973cat - <<_ACEOF >conftest.h
17974
17975_ACEOF
17976
17977
17978 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17979 echo "obj-m := conftest.o" >build/Makefile
17980 modpost_flag=''
17981 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17982 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'
17983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17989 (eval $ac_try) 2>&5
17990 ac_status=$?
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; }; }; then :
17993
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17995$as_echo "yes" >&6; }
17996
17997$as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
17998
17999
18000else
18001 $as_echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
86e3c28a
CIK
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005$as_echo "no" >&6; }
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
70e083d2
TG
18007$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18008
18009
18010cat confdefs.h - <<_ACEOF >conftest.c
18011
18012
18013 #include <linux/xattr.h>
18014
18015 int set(const struct xattr_handler *handler,
18016 struct dentry *dentry, const char *name,
18017 const void *buffer, size_t size, int flags)
18018 { return 0; }
18019 static const struct xattr_handler
18020 xops __attribute__ ((unused)) = {
18021 .set = set,
18022 };
18023
18024int
18025main (void)
18026{
18027
18028
18029 ;
18030 return 0;
18031}
18032
18033_ACEOF
18034
18035
18036
18037cat - <<_ACEOF >conftest.h
18038
18039_ACEOF
18040
18041
18042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18043 echo "obj-m := conftest.o" >build/Makefile
18044 modpost_flag=''
18045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18046 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'
18047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18051 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18056 test $ac_status = 0; }; }; then :
18057
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18059$as_echo "yes" >&6; }
18060
18061$as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18062
18063
18064else
18065 $as_echo "$as_me: failed program was:" >&5
18066sed 's/^/| /' conftest.$ac_ext >&5
18067
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18069$as_echo "no" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18071$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18072
18073
18074cat confdefs.h - <<_ACEOF >conftest.c
18075
18076
18077 #include <linux/xattr.h>
18078
18079 int set(struct dentry *dentry, const char *name,
18080 const void *buffer, size_t size, int flags,
18081 int handler_flags) { return 0; }
18082 static const struct xattr_handler
18083 xops __attribute__ ((unused)) = {
18084 .set = set,
18085 };
18086
18087int
18088main (void)
18089{
18090
18091
18092 ;
18093 return 0;
18094}
18095
18096_ACEOF
18097
18098
18099
18100cat - <<_ACEOF >conftest.h
18101
18102_ACEOF
18103
18104
18105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18106 echo "obj-m := conftest.o" >build/Makefile
18107 modpost_flag=''
18108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18109 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'
18110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18119 test $ac_status = 0; }; }; then :
18120
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18122$as_echo "yes" >&6; }
18123
18124$as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18125
18126
18127else
18128 $as_echo "$as_me: failed program was:" >&5
18129sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18132$as_echo "no" >&6; }
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18134$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18135
18136
18137cat confdefs.h - <<_ACEOF >conftest.c
18138
18139
18140 #include <linux/xattr.h>
18141
18142 int set(struct inode *ip, const char *name,
18143 const void *buffer, size_t size, int flags)
18144 { return 0; }
18145 static const struct xattr_handler
18146 xops __attribute__ ((unused)) = {
18147 .set = set,
18148 };
18149
18150int
18151main (void)
18152{
18153
18154
18155 ;
18156 return 0;
18157}
18158
18159_ACEOF
18160
18161
18162
18163cat - <<_ACEOF >conftest.h
18164
18165_ACEOF
18166
18167
18168 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18169 echo "obj-m := conftest.o" >build/Makefile
18170 modpost_flag=''
18171 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18172 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'
18173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; }; }; then :
18183
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185$as_echo "yes" >&6; }
18186
18187$as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18188
18189
18190else
18191 $as_echo "$as_me: failed program was:" >&5
18192sed 's/^/| /' conftest.$ac_ext >&5
18193
18194 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18195
18196
18197
18198fi
18199 rm -Rf build
18200
18201
18202
18203
18204
18205fi
18206 rm -Rf build
18207
18208
18209
18210
18211
18212fi
18213 rm -Rf build
18214
18215
18216
18217
18218
18219fi
18220 rm -Rf build
18221
18222
18223
18224
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18226$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18227
18228
18229cat confdefs.h - <<_ACEOF >conftest.c
18230
18231
18232 #include <linux/xattr.h>
18233
18234 bool list(struct dentry *dentry) { return 0; }
18235 static const struct xattr_handler
18236 xops __attribute__ ((unused)) = {
18237 .list = list,
18238 };
18239
18240int
18241main (void)
18242{
18243
18244
18245 ;
18246 return 0;
18247}
18248
18249_ACEOF
18250
18251
18252
18253cat - <<_ACEOF >conftest.h
18254
18255_ACEOF
18256
18257
18258 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18259 echo "obj-m := conftest.o" >build/Makefile
18260 modpost_flag=''
18261 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18262 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'
18263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18272 test $ac_status = 0; }; }; then :
18273
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18275$as_echo "yes" >&6; }
18276
18277$as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18278
18279
18280else
18281 $as_echo "$as_me: failed program was:" >&5
18282sed 's/^/| /' conftest.$ac_ext >&5
18283
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285$as_echo "no" >&6; }
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18287$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18288
18289
18290cat confdefs.h - <<_ACEOF >conftest.c
18291
18292
18293 #include <linux/xattr.h>
18294
18295 size_t list(const struct xattr_handler *handler,
18296 struct dentry *dentry, char *list, size_t list_size,
18297 const char *name, size_t name_len) { return 0; }
18298 static const struct xattr_handler
18299 xops __attribute__ ((unused)) = {
18300 .list = list,
18301 };
18302
18303int
18304main (void)
18305{
18306
18307
18308 ;
18309 return 0;
18310}
18311
18312_ACEOF
18313
18314
18315
18316cat - <<_ACEOF >conftest.h
18317
18318_ACEOF
18319
18320
18321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18322 echo "obj-m := conftest.o" >build/Makefile
18323 modpost_flag=''
18324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18325 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'
18326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18335 test $ac_status = 0; }; }; then :
18336
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338$as_echo "yes" >&6; }
18339
18340$as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18341
18342
18343else
18344 $as_echo "$as_me: failed program was:" >&5
18345sed 's/^/| /' conftest.$ac_ext >&5
18346
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348$as_echo "no" >&6; }
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18350$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18351
18352
18353cat confdefs.h - <<_ACEOF >conftest.c
18354
18355
18356 #include <linux/xattr.h>
18357
18358 size_t list(struct dentry *dentry,
18359 char *list, size_t list_size,
18360 const char *name, size_t name_len,
18361 int handler_flags) { return 0; }
18362 static const struct xattr_handler
18363 xops __attribute__ ((unused)) = {
18364 .list = list,
18365 };
18366
18367int
18368main (void)
18369{
18370
18371
18372 ;
18373 return 0;
18374}
18375
18376_ACEOF
18377
18378
18379
18380cat - <<_ACEOF >conftest.h
18381
18382_ACEOF
18383
18384
18385 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18386 echo "obj-m := conftest.o" >build/Makefile
18387 modpost_flag=''
18388 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18389 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'
18390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18399 test $ac_status = 0; }; }; then :
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18402$as_echo "yes" >&6; }
18403
18404$as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18405
18406
18407else
18408 $as_echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412$as_echo "no" >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18414$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18415
18416
18417cat confdefs.h - <<_ACEOF >conftest.c
18418
18419
18420 #include <linux/xattr.h>
18421
18422 size_t list(struct inode *ip, char *lst,
18423 size_t list_size, const char *name,
18424 size_t name_len) { return 0; }
18425 static const struct xattr_handler
18426 xops __attribute__ ((unused)) = {
18427 .list = list,
18428 };
18429
18430int
18431main (void)
18432{
18433
18434
18435 ;
18436 return 0;
18437}
18438
18439_ACEOF
18440
18441
18442
18443cat - <<_ACEOF >conftest.h
18444
18445_ACEOF
18446
18447
18448 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18449 echo "obj-m := conftest.o" >build/Makefile
18450 modpost_flag=''
18451 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18452 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'
18453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18457 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18462 test $ac_status = 0; }; }; then :
18463
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18465$as_echo "yes" >&6; }
18466
18467$as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18468
18469
18470else
18471 $as_echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18475
18476
18477
18478fi
18479 rm -Rf build
18480
18481
18482
18483
18484
18485fi
18486 rm -Rf build
18487
18488
18489
18490
18491
18492fi
18493 rm -Rf build
18494
18495
18496
18497
18498
18499fi
18500 rm -Rf build
18501
18502
18503
18504
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18506$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18507
18508
18509cat confdefs.h - <<_ACEOF >conftest.c
18510
18511
18512 #include <linux/fs.h>
18513
18514int
18515main (void)
18516{
18517
18518 struct inode *ip = NULL;
18519 (void) inode_owner_or_capable(ip);
18520
18521 ;
18522 return 0;
18523}
18524
18525_ACEOF
18526
18527
18528
18529cat - <<_ACEOF >conftest.h
18530
18531_ACEOF
18532
18533
18534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18535 echo "obj-m := conftest.o" >build/Makefile
18536 modpost_flag=''
18537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18538 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'
18539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18543 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18548 test $ac_status = 0; }; }; then :
18549
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18551$as_echo "yes" >&6; }
18552
18553$as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18554
18555
18556else
18557 $as_echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18561$as_echo "no" >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18563$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18564
18565
18566cat confdefs.h - <<_ACEOF >conftest.c
18567
18568
18569 #include <linux/fs.h>
18570 #include <linux/sched.h>
18571
18572int
18573main (void)
18574{
18575
18576 struct inode *ip = NULL;
18577 (void) is_owner_or_cap(ip);
18578
18579 ;
18580 return 0;
18581}
18582
18583_ACEOF
18584
18585
18586
18587cat - <<_ACEOF >conftest.h
18588
18589_ACEOF
18590
18591
18592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18593 echo "obj-m := conftest.o" >build/Makefile
18594 modpost_flag=''
18595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18596 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'
18597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18601 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18603 (eval $ac_try) 2>&5
18604 ac_status=$?
18605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18606 test $ac_status = 0; }; }; then :
18607
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18609$as_echo "yes" >&6; }
18610
18611$as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18612
18613
18614else
18615 $as_echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 as_fn_error $? "no - Please file a bug report at
18619 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18620
18621
18622
18623fi
18624 rm -Rf build
18625
18626
18627
18628
18629
18630fi
18631 rm -Rf build
18632
18633
18634
18635
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18637$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18638
18639
18640cat confdefs.h - <<_ACEOF >conftest.c
18641
18642
18643 #include <linux/cred.h>
18644 #include <linux/fs.h>
18645 #include <linux/posix_acl_xattr.h>
18646
18647int
18648main (void)
18649{
18650
18651 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18652
18653 ;
18654 return 0;
18655}
18656
18657_ACEOF
18658
18659
18660
18661cat - <<_ACEOF >conftest.h
18662
18663_ACEOF
18664
18665
18666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18667 echo "obj-m := conftest.o" >build/Makefile
18668 modpost_flag=''
18669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18670 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'
18671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18675 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18680 test $ac_status = 0; }; }; then :
18681
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18683$as_echo "yes" >&6; }
18684
18685$as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18686
18687
18688else
18689 $as_echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693$as_echo "no" >&6; }
18694
18695
18696
18697fi
18698 rm -Rf build
18699
18700
18701
18702
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18704$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18705
18706
18707cat confdefs.h - <<_ACEOF >conftest.c
18708
18709
18710 #include <linux/cred.h>
18711 #include <linux/fs.h>
18712 #include <linux/posix_acl.h>
18713
18714int
18715main (void)
18716{
18717
18718 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18719 posix_acl_release(tmp);
18720
18721 ;
18722 return 0;
18723}
18724
18725_ACEOF
18726
18727
18728
18729cat - <<_ACEOF >conftest.h
18730
18731_ACEOF
18732
18733
18734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18735 echo "obj-m := conftest.o" >build/Makefile
18736 modpost_flag=''
18737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18738 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'
18739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18748 test $ac_status = 0; }; }; then :
18749
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751$as_echo "yes" >&6; }
18752
18753$as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18754
18755
86e3c28a 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
70e083d2
TG
18757$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18758
18759
18760cat confdefs.h - <<_ACEOF >conftest.c
18761
18762
86e3c28a
CIK
18763 #include <linux/module.h>
18764 #include <linux/cred.h>
18765 #include <linux/fs.h>
18766 #include <linux/posix_acl.h>
70e083d2 18767
86e3c28a 18768 MODULE_LICENSE("$ZFS_META_LICENSE");
70e083d2
TG
18769
18770int
18771main (void)
18772{
18773
86e3c28a
CIK
18774 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18775 posix_acl_release(tmp);
70e083d2
TG
18776
18777 ;
18778 return 0;
18779}
18780
18781_ACEOF
18782
18783
18784
18785cat - <<_ACEOF >conftest.h
18786
18787_ACEOF
18788
18789
18790 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18791 echo "obj-m := conftest.o" >build/Makefile
18792 modpost_flag=''
18793 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18794 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'
18795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18799 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804 test $ac_status = 0; }; }; then :
18805
86e3c28a 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
18807$as_echo "no" >&6; }
18808
18809else
18810 $as_echo "$as_me: failed program was:" >&5
18811sed 's/^/| /' conftest.$ac_ext >&5
18812
86e3c28a 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
18814$as_echo "yes" >&6; }
18815
18816$as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18817
18818
18819
18820
86e3c28a
CIK
18821fi
18822 rm -Rf build
18823
18824
18825
18826else
18827 $as_echo "$as_me: failed program was:" >&5
18828sed 's/^/| /' conftest.$ac_ext >&5
18829
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831$as_echo "no" >&6; }
18832
18833
18834
70e083d2
TG
18835fi
18836 rm -Rf build
18837
18838
18839
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18842$as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18843
18844
18845cat confdefs.h - <<_ACEOF >conftest.c
18846
18847
18848 #include <linux/module.h>
18849 #include <linux/cred.h>
18850 #include <linux/fs.h>
18851 #include <linux/posix_acl.h>
18852
18853 MODULE_LICENSE("$ZFS_META_LICENSE");
18854
18855int
18856main (void)
18857{
18858
18859 struct inode *ip = NULL;
18860 struct posix_acl *acl = posix_acl_alloc(1, 0);
18861 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18862 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18863
18864 ;
18865 return 0;
18866}
18867
18868_ACEOF
18869
18870
18871
18872cat - <<_ACEOF >conftest.h
18873
18874_ACEOF
18875
18876
18877 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18878 echo "obj-m := conftest.o" >build/Makefile
18879 modpost_flag=''
18880 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18881 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'
18882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18886 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18891 test $ac_status = 0; }; }; then :
18892
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18894$as_echo "yes" >&6; }
18895
18896$as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18897
18898
18899else
18900 $as_echo "$as_me: failed program was:" >&5
18901sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18904$as_echo "no" >&6; }
18905
18906
18907
18908fi
18909 rm -Rf build
18910
18911
18912
18913
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18915$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18916
18917
18918cat confdefs.h - <<_ACEOF >conftest.c
18919
18920
18921 #include <linux/fs.h>
18922 #include <linux/posix_acl.h>
18923
18924int
18925main (void)
18926{
18927
18928 posix_acl_chmod(NULL, 0, 0)
18929
18930 ;
18931 return 0;
18932}
18933
18934_ACEOF
18935
18936
18937
18938cat - <<_ACEOF >conftest.h
18939
18940_ACEOF
18941
18942
18943 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18944 echo "obj-m := conftest.o" >build/Makefile
18945 modpost_flag=''
18946 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18947 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'
18948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18957 test $ac_status = 0; }; }; then :
18958
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960$as_echo "yes" >&6; }
18961
18962$as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18963
18964
18965else
18966 $as_echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970$as_echo "no" >&6; }
18971
18972
18973
18974fi
18975 rm -Rf build
18976
18977
18978
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18980$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18981
18982
18983cat confdefs.h - <<_ACEOF >conftest.c
18984
18985
18986 #include <linux/fs.h>
18987 #include <linux/posix_acl.h>
18988
18989int
18990main (void)
18991{
18992
18993 __posix_acl_chmod(NULL, 0, 0)
18994
18995 ;
18996 return 0;
18997}
18998
18999_ACEOF
19000
19001
19002
19003cat - <<_ACEOF >conftest.h
19004
19005_ACEOF
19006
19007
19008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19009 echo "obj-m := conftest.o" >build/Makefile
19010 modpost_flag=''
19011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19012 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'
19013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19017 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19022 test $ac_status = 0; }; }; then :
19023
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19025$as_echo "yes" >&6; }
19026
19027$as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19028
19029
19030else
19031 $as_echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035$as_echo "no" >&6; }
19036
19037
19038
19039fi
19040 rm -Rf build
19041
19042
19043
19044
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19046$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19047
19048
19049cat confdefs.h - <<_ACEOF >conftest.c
19050
19051
19052 #include <linux/fs.h>
19053 #include <linux/posix_acl.h>
19054
19055int
19056main (void)
19057{
19058
19059 umode_t tmp;
19060 posix_acl_equiv_mode(NULL,&tmp);
19061
19062 ;
19063 return 0;
19064}
19065
19066_ACEOF
19067
19068
19069
19070cat - <<_ACEOF >conftest.h
19071
19072_ACEOF
19073
19074
19075 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19076 echo "obj-m := conftest.o" >build/Makefile
19077 modpost_flag=''
19078 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19079 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'
19080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19084 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19089 test $ac_status = 0; }; }; then :
19090
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19092$as_echo "yes" >&6; }
19093
19094$as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19095
19096
19097else
19098 $as_echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102$as_echo "no" >&6; }
19103
19104
19105
19106fi
19107 rm -Rf build
19108
19109
19110
19111
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19113$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19114
19115
19116cat confdefs.h - <<_ACEOF >conftest.c
19117
19118
19119 #include <linux/fs.h>
19120 #include <linux/posix_acl.h>
19121
19122int
19123main (void)
19124{
19125
19126 struct user_namespace *user_ns = NULL;
19127 const struct posix_acl *acl = NULL;
19128 int error;
19129
19130 error = posix_acl_valid(user_ns, acl);
19131
19132 ;
19133 return 0;
19134}
19135
19136_ACEOF
19137
19138
19139
19140cat - <<_ACEOF >conftest.h
19141
19142_ACEOF
19143
19144
19145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19146 echo "obj-m := conftest.o" >build/Makefile
19147 modpost_flag=''
19148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19149 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'
19150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19154 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; }; }; then :
19160
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19162$as_echo "yes" >&6; }
19163
19164$as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19165
19166
19167else
19168 $as_echo "$as_me: failed program was:" >&5
19169sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172$as_echo "no" >&6; }
19173
19174
19175
19176fi
19177 rm -Rf build
19178
19179
19180
19181
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19183$as_echo_n "checking whether iops->permission() exists... " >&6; }
19184
19185
19186cat confdefs.h - <<_ACEOF >conftest.c
19187
19188
19189 #include <linux/fs.h>
19190
19191 int permission_fn(struct inode *inode, int mask) { return 0; }
19192
19193 static const struct inode_operations
19194 iops __attribute__ ((unused)) = {
19195 .permission = permission_fn,
19196 };
19197
19198int
19199main (void)
19200{
19201
19202
19203 ;
19204 return 0;
19205}
19206
19207_ACEOF
19208
19209
19210
19211cat - <<_ACEOF >conftest.h
19212
19213_ACEOF
19214
19215
19216 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19217 echo "obj-m := conftest.o" >build/Makefile
19218 modpost_flag=''
19219 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19220 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'
19221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230 test $ac_status = 0; }; }; then :
19231
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233$as_echo "yes" >&6; }
19234
19235$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19236
19237
19238else
19239 $as_echo "$as_me: failed program was:" >&5
19240sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243$as_echo "no" >&6; }
19244
19245
19246
19247fi
19248 rm -Rf build
19249
19250
19251
19252
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19254$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19255
19256
19257cat confdefs.h - <<_ACEOF >conftest.c
19258
19259
19260 #include <linux/fs.h>
19261
19262 int permission_fn(struct inode *inode, int mask,
19263 struct nameidata *nd) { return 0; }
19264
19265 static const struct inode_operations
19266 iops __attribute__ ((unused)) = {
19267 .permission = permission_fn,
19268 };
19269
19270int
19271main (void)
19272{
19273
19274
19275 ;
19276 return 0;
19277}
19278
19279_ACEOF
19280
19281
19282
19283cat - <<_ACEOF >conftest.h
19284
19285_ACEOF
19286
19287
19288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19289 echo "obj-m := conftest.o" >build/Makefile
19290 modpost_flag=''
19291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19292 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'
19293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19302 test $ac_status = 0; }; }; then :
19303
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305$as_echo "yes" >&6; }
19306
19307$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19308
19309
19310$as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19311
19312
19313else
19314 $as_echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318$as_echo "no" >&6; }
19319
19320
19321
19322fi
19323 rm -Rf build
19324
19325
19326
19327
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19329$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19330
19331
19332cat confdefs.h - <<_ACEOF >conftest.c
19333
19334
19335 #include <linux/fs.h>
19336
19337 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19338
19339 static const struct inode_operations
19340 iops __attribute__ ((unused)) = {
19341 .check_acl = check_acl_fn,
19342 };
19343
19344int
19345main (void)
19346{
19347
19348
19349 ;
19350 return 0;
19351}
19352
19353_ACEOF
19354
19355
19356
19357cat - <<_ACEOF >conftest.h
19358
19359_ACEOF
19360
19361
19362 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19363 echo "obj-m := conftest.o" >build/Makefile
19364 modpost_flag=''
19365 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19366 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'
19367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19371 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19376 test $ac_status = 0; }; }; then :
19377
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19379$as_echo "yes" >&6; }
19380
19381$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19382
19383
19384else
19385 $as_echo "$as_me: failed program was:" >&5
19386sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19389$as_echo "no" >&6; }
19390
19391
19392
19393fi
19394 rm -Rf build
19395
19396
19397
19398
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19400$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19401
19402
19403cat confdefs.h - <<_ACEOF >conftest.c
19404
19405
19406 #include <linux/fs.h>
19407
19408 int check_acl_fn(struct inode *inode, int mask,
19409 unsigned int flags) { return 0; }
19410
19411 static const struct inode_operations
19412 iops __attribute__ ((unused)) = {
19413 .check_acl = check_acl_fn,
19414 };
19415
19416int
19417main (void)
19418{
19419
19420
19421 ;
19422 return 0;
19423}
19424
19425_ACEOF
19426
19427
19428
19429cat - <<_ACEOF >conftest.h
19430
19431_ACEOF
19432
19433
19434 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19435 echo "obj-m := conftest.o" >build/Makefile
19436 modpost_flag=''
19437 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19438 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'
19439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19448 test $ac_status = 0; }; }; then :
19449
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19451$as_echo "yes" >&6; }
19452
19453$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19454
19455
19456$as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19457
19458
19459else
19460 $as_echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19464$as_echo "no" >&6; }
19465
19466
19467
19468fi
19469 rm -Rf build
19470
19471
19472
19473
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19475$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19476
19477
19478cat confdefs.h - <<_ACEOF >conftest.c
19479
19480
19481 #include <linux/fs.h>
19482
19483 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19484 { return NULL; }
19485
19486 static const struct inode_operations
19487 iops __attribute__ ((unused)) = {
19488 .get_acl = get_acl_fn,
19489 };
19490
19491int
19492main (void)
19493{
19494
19495
19496 ;
19497 return 0;
19498}
19499
19500_ACEOF
19501
19502
19503
19504cat - <<_ACEOF >conftest.h
19505
19506_ACEOF
19507
19508
19509 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19510 echo "obj-m := conftest.o" >build/Makefile
19511 modpost_flag=''
19512 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19513 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'
19514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19518 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19523 test $ac_status = 0; }; }; then :
19524
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19526$as_echo "yes" >&6; }
19527
19528$as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19529
19530
19531else
19532 $as_echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536$as_echo "no" >&6; }
19537
19538
19539
19540fi
19541 rm -Rf build
19542
19543
19544
19545
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19547$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19548
19549
19550cat confdefs.h - <<_ACEOF >conftest.c
19551
19552
19553 #include <linux/fs.h>
19554
19555 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19556 { return 0; }
19557
19558 static const struct inode_operations
19559 iops __attribute__ ((unused)) = {
19560 .set_acl = set_acl_fn,
19561 };
19562
19563int
19564main (void)
19565{
19566
19567
19568 ;
19569 return 0;
19570}
19571
19572_ACEOF
19573
19574
19575
19576cat - <<_ACEOF >conftest.h
19577
19578_ACEOF
19579
19580
19581 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19582 echo "obj-m := conftest.o" >build/Makefile
19583 modpost_flag=''
19584 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19585 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'
19586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19590 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; }; }; then :
19596
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19598$as_echo "yes" >&6; }
19599
19600$as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19601
19602
19603else
19604 $as_echo "$as_me: failed program was:" >&5
19605sed 's/^/| /' conftest.$ac_ext >&5
19606
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608$as_echo "no" >&6; }
19609
19610
19611
19612fi
19613 rm -Rf build
19614
19615
19616
19617
0d6103dd
CIK
19618
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19620$as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19621
19622
19623cat confdefs.h - <<_ACEOF >conftest.c
19624
19625
19626 #include <linux/fs.h>
19627
19628 int test_getattr(
19629 const struct path *p, struct kstat *k,
19630 u32 request_mask, unsigned int query_flags)
19631 { return 0; }
19632
19633 static const struct inode_operations
19634 iops __attribute__ ((unused)) = {
19635 .getattr = test_getattr,
19636 };
19637
19638int
19639main (void)
19640{
19641
19642
19643 ;
19644 return 0;
19645}
19646
19647_ACEOF
19648
19649
19650
19651cat - <<_ACEOF >conftest.h
19652
19653_ACEOF
19654
19655
19656 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19657 echo "obj-m := conftest.o" >build/Makefile
19658 modpost_flag=''
19659 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19660 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'
19661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19665 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }; }; then :
19671
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19673$as_echo "yes" >&6; }
19674
19675$as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19676
19677
19678else
19679 $as_echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683$as_echo "no" >&6; }
19684
19685
19686
19687fi
19688 rm -Rf build
19689
19690
19691
19692
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19694$as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19695
19696
19697cat confdefs.h - <<_ACEOF >conftest.c
19698
19699
19700 #include <linux/fs.h>
19701
19702 int test_getattr(
19703 struct vfsmount *mnt, struct dentry *d,
19704 struct kstat *k)
19705 { return 0; }
19706
19707 static const struct inode_operations
19708 iops __attribute__ ((unused)) = {
19709 .getattr = test_getattr,
19710 };
19711
19712int
19713main (void)
19714{
19715
19716
19717 ;
19718 return 0;
19719}
19720
19721_ACEOF
19722
19723
19724
19725cat - <<_ACEOF >conftest.h
19726
19727_ACEOF
19728
19729
19730 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19731 echo "obj-m := conftest.o" >build/Makefile
19732 modpost_flag=''
19733 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19734 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'
19735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19739 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19744 test $ac_status = 0; }; }; then :
19745
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19747$as_echo "yes" >&6; }
19748
19749$as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19750
19751
19752else
19753 $as_echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757$as_echo "no" >&6; }
19758
19759
19760
19761fi
19762 rm -Rf build
19763
19764
19765
19766
19767
86e3c28a
CIK
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19769$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19770
19771
19772cat confdefs.h - <<_ACEOF >conftest.c
19773
19774
19775 #include <linux/fs.h>
19776
19777int
19778main (void)
19779{
19780
19781 struct inode inode;
19782 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19783
19784 ;
19785 return 0;
19786}
19787
19788_ACEOF
19789
19790
19791
19792cat - <<_ACEOF >conftest.h
19793
19794_ACEOF
19795
19796
19797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19798 echo "obj-m := conftest.o" >build/Makefile
19799 modpost_flag=''
19800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19801 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'
19802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811 test $ac_status = 0; }; }; then :
19812
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814$as_echo "yes" >&6; }
19815
19816$as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19817
19818
19819else
19820 $as_echo "$as_me: failed program was:" >&5
19821sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824$as_echo "no" >&6; }
19825
19826
19827
19828fi
19829 rm -Rf build
19830
19831
19832
19833
70e083d2
TG
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19835$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19836
19837
19838cat confdefs.h - <<_ACEOF >conftest.c
19839
19840
19841 #include <linux/fs.h>
19842
19843int
19844main (void)
19845{
19846
19847 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19848
19849 ;
19850 return 0;
19851}
19852
19853_ACEOF
19854
19855
19856
19857cat - <<_ACEOF >conftest.h
19858
19859_ACEOF
19860
19861
19862 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19863 echo "obj-m := conftest.o" >build/Makefile
19864 modpost_flag=''
19865 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19866 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'
19867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876 test $ac_status = 0; }; }; then :
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879$as_echo "yes" >&6; }
19880
19881$as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19882
19883
19884else
19885 $as_echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889$as_echo "no" >&6; }
19890
19891
19892
19893fi
19894 rm -Rf build
19895
19896
19897
19898
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19900$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19901
19902
19903
19904cat confdefs.h - <<_ACEOF >conftest.c
19905
19906
19907 #include <linux/fs.h>
19908
19909 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19910 static struct super_operations sops __attribute__ ((unused)) = {
19911 .show_options = show_options,
19912 };
19913
19914int
19915main (void)
19916{
19917
19918
19919 ;
19920 return 0;
19921}
19922
19923_ACEOF
19924
19925
19926
19927cat - <<_ACEOF >conftest.h
19928
19929_ACEOF
19930
19931
19932 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19933 echo "obj-m := conftest.o" >build/Makefile
19934 modpost_flag=''
19935 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19936 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'
19937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19941 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946 test $ac_status = 0; }; }; then :
19947
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19949$as_echo "yes" >&6; }
19950
19951$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19952
19953
19954else
19955 $as_echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959$as_echo "no" >&6; }
19960
19961
19962
19963fi
19964 rm -Rf build
19965
19966
19967
19968
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19970$as_echo_n "checking whether file_inode() is available... " >&6; }
19971
19972
19973cat confdefs.h - <<_ACEOF >conftest.c
19974
19975
19976 #include <linux/fs.h>
19977
19978int
19979main (void)
19980{
19981
19982 struct file *f = NULL;
19983 file_inode(f);
19984
19985 ;
19986 return 0;
19987}
19988
19989_ACEOF
19990
19991
19992
19993cat - <<_ACEOF >conftest.h
19994
19995_ACEOF
19996
19997
19998 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19999 echo "obj-m := conftest.o" >build/Makefile
20000 modpost_flag=''
20001 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20002 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'
20003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20007 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20012 test $ac_status = 0; }; }; then :
20013
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20015$as_echo "yes" >&6; }
20016
20017$as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20018
20019
20020else
20021 $as_echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20025$as_echo "no" >&6; }
20026
20027
20028
20029fi
20030 rm -Rf build
20031
20032
20033
20034
86e3c28a
CIK
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20036$as_echo_n "checking whether file_dentry() is available... " >&6; }
20037
20038
20039cat confdefs.h - <<_ACEOF >conftest.c
20040
20041
20042 #include <linux/fs.h>
20043
20044int
20045main (void)
20046{
20047
20048 struct file *f = NULL;
20049 file_dentry(f);
20050
20051 ;
20052 return 0;
20053}
20054
20055_ACEOF
20056
20057
20058
20059cat - <<_ACEOF >conftest.h
20060
20061_ACEOF
20062
20063
20064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20065 echo "obj-m := conftest.o" >build/Makefile
20066 modpost_flag=''
20067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20068 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'
20069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20073 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20078 test $ac_status = 0; }; }; then :
20079
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20081$as_echo "yes" >&6; }
20082
20083$as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20084
20085
20086else
20087 $as_echo "$as_me: failed program was:" >&5
20088sed 's/^/| /' conftest.$ac_ext >&5
20089
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091$as_echo "no" >&6; }
20092
20093
20094
20095fi
20096 rm -Rf build
20097
20098
20099
20100
70e083d2
TG
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20102$as_echo_n "checking whether fops->fsync() wants... " >&6; }
20103
20104
20105
20106cat confdefs.h - <<_ACEOF >conftest.c
20107
20108
20109 #include <linux/fs.h>
20110
20111 int test_fsync(struct file *f, struct dentry *dentry, int x)
20112 { return 0; }
20113
20114 static const struct file_operations
20115 fops __attribute__ ((unused)) = {
20116 .fsync = test_fsync,
20117 };
20118
20119int
20120main (void)
20121{
20122
20123
20124 ;
20125 return 0;
20126}
20127
20128_ACEOF
20129
20130
20131
20132cat - <<_ACEOF >conftest.h
20133
20134_ACEOF
20135
20136
20137 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20138 echo "obj-m := conftest.o" >build/Makefile
20139 modpost_flag=''
20140 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20141 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'
20142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20146 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151 test $ac_status = 0; }; }; then :
20152
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20154$as_echo "dentry" >&6; }
20155
20156$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20157
20158
20159else
20160 $as_echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163
20164
20165
20166fi
20167 rm -Rf build
20168
20169
20170
20171
20172
20173
20174cat confdefs.h - <<_ACEOF >conftest.c
20175
20176
20177 #include <linux/fs.h>
20178
20179 int test_fsync(struct file *f, int x) { return 0; }
20180
20181 static const struct file_operations
20182 fops __attribute__ ((unused)) = {
20183 .fsync = test_fsync,
20184 };
20185
20186int
20187main (void)
20188{
20189
20190
20191 ;
20192 return 0;
20193}
20194
20195_ACEOF
20196
20197
20198
20199cat - <<_ACEOF >conftest.h
20200
20201_ACEOF
20202
20203
20204 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20205 echo "obj-m := conftest.o" >build/Makefile
20206 modpost_flag=''
20207 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20208 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'
20209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20213 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20218 test $ac_status = 0; }; }; then :
20219
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20221$as_echo "no dentry" >&6; }
20222
20223$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20224
20225
20226else
20227 $as_echo "$as_me: failed program was:" >&5
20228sed 's/^/| /' conftest.$ac_ext >&5
20229
20230
20231
20232
20233fi
20234 rm -Rf build
20235
20236
20237
20238
20239
20240
20241cat confdefs.h - <<_ACEOF >conftest.c
20242
20243
20244 #include <linux/fs.h>
20245
20246 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20247 { return 0; }
20248
20249 static const struct file_operations
20250 fops __attribute__ ((unused)) = {
20251 .fsync = test_fsync,
20252 };
20253
20254int
20255main (void)
20256{
20257
20258
20259 ;
20260 return 0;
20261}
20262
20263_ACEOF
20264
20265
20266
20267cat - <<_ACEOF >conftest.h
20268
20269_ACEOF
20270
20271
20272 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20273 echo "obj-m := conftest.o" >build/Makefile
20274 modpost_flag=''
20275 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20276 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'
20277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20281 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20286 test $ac_status = 0; }; }; then :
20287
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20289$as_echo "range" >&6; }
20290
20291$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20292
20293
20294else
20295 $as_echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298
20299
20300
20301fi
20302 rm -Rf build
20303
20304
20305
20306
20307
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20309$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20310
20311
20312cat confdefs.h - <<_ACEOF >conftest.c
20313
20314
20315 #include <linux/fs.h>
20316 void evict_inode (struct inode * t) { return; }
20317 static struct super_operations sops __attribute__ ((unused)) = {
20318 .evict_inode = evict_inode,
20319 };
20320
20321int
20322main (void)
20323{
20324
20325
20326 ;
20327 return 0;
20328}
20329
20330_ACEOF
20331
20332
20333
20334cat - <<_ACEOF >conftest.h
20335
20336_ACEOF
20337
20338
20339 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20340 echo "obj-m := conftest.o" >build/Makefile
20341 modpost_flag=''
20342 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20343 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'
20344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20348 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20350 (eval $ac_try) 2>&5
20351 ac_status=$?
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }; }; then :
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20356$as_echo "yes" >&6; }
20357
20358$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20359
20360
20361else
20362 $as_echo "$as_me: failed program was:" >&5
20363sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366$as_echo "no" >&6; }
20367
20368
20369
20370fi
20371 rm -Rf build
20372
20373
20374
20375
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20377$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20378
20379
20380cat confdefs.h - <<_ACEOF >conftest.c
20381
20382
20383 #include <linux/fs.h>
20384
20385 void dirty_inode(struct inode *a, int b) { return; }
20386
20387 static const struct super_operations
20388 sops __attribute__ ((unused)) = {
20389 .dirty_inode = dirty_inode,
20390 };
20391
20392int
20393main (void)
20394{
20395
20396
20397 ;
20398 return 0;
20399}
20400
20401_ACEOF
20402
20403
20404
20405cat - <<_ACEOF >conftest.h
20406
20407_ACEOF
20408
20409
20410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20411 echo "obj-m := conftest.o" >build/Makefile
20412 modpost_flag=''
20413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20414 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'
20415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20419 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20424 test $ac_status = 0; }; }; then :
20425
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20427$as_echo "yes" >&6; }
20428
20429$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20430
20431
20432else
20433 $as_echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20437$as_echo "no" >&6; }
20438
20439
20440
20441fi
20442 rm -Rf build
20443
20444
20445
20446
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20448$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20449
20450
20451cat confdefs.h - <<_ACEOF >conftest.c
20452
20453
20454 #include <linux/fs.h>
20455
20456 int nr_cached_objects(struct super_block *sb) { return 0; }
20457
20458 static const struct super_operations
20459 sops __attribute__ ((unused)) = {
20460 .nr_cached_objects = nr_cached_objects,
20461 };
20462
20463int
20464main (void)
20465{
20466
20467
20468 ;
20469 return 0;
20470}
20471
20472_ACEOF
20473
20474
20475
20476cat - <<_ACEOF >conftest.h
20477
20478_ACEOF
20479
20480
20481 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20482 echo "obj-m := conftest.o" >build/Makefile
20483 modpost_flag=''
20484 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20485 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'
20486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20490 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20495 test $ac_status = 0; }; }; then :
20496
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498$as_echo "yes" >&6; }
20499
20500$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20501
20502
20503else
20504 $as_echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20508$as_echo "no" >&6; }
20509
20510
20511
20512fi
20513 rm -Rf build
20514
20515
20516
20517
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20519$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20520
20521
20522cat confdefs.h - <<_ACEOF >conftest.c
20523
20524
20525 #include <linux/fs.h>
20526
20527 void free_cached_objects(struct super_block *sb, int x)
20528 { return; }
20529
20530 static const struct super_operations
20531 sops __attribute__ ((unused)) = {
20532 .free_cached_objects = free_cached_objects,
20533 };
20534
20535int
20536main (void)
20537{
20538
20539
20540 ;
20541 return 0;
20542}
20543
20544_ACEOF
20545
20546
20547
20548cat - <<_ACEOF >conftest.h
20549
20550_ACEOF
20551
20552
20553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20554 echo "obj-m := conftest.o" >build/Makefile
20555 modpost_flag=''
20556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20557 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'
20558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20562 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20567 test $ac_status = 0; }; }; then :
20568
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20570$as_echo "yes" >&6; }
20571
20572$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20573
20574
20575else
20576 $as_echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580$as_echo "no" >&6; }
20581
20582
20583
20584fi
20585 rm -Rf build
20586
20587
20588
20589
20590
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20592$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20593
20594
20595cat confdefs.h - <<_ACEOF >conftest.c
20596
20597
20598 #include <linux/fs.h>
20599
20600 long test_fallocate(struct file *file, int mode,
20601 loff_t offset, loff_t len) { return 0; }
20602
20603 static const struct file_operations
20604 fops __attribute__ ((unused)) = {
20605 .fallocate = test_fallocate,
20606 };
20607
20608int
20609main (void)
20610{
20611
20612
20613 ;
20614 return 0;
20615}
20616
20617_ACEOF
20618
20619
20620
20621cat - <<_ACEOF >conftest.h
20622
20623_ACEOF
20624
20625
20626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20627 echo "obj-m := conftest.o" >build/Makefile
20628 modpost_flag=''
20629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20630 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'
20631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20635 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20640 test $ac_status = 0; }; }; then :
20641
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20643$as_echo "yes" >&6; }
20644
20645$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20646
20647
20648else
20649 $as_echo "$as_me: failed program was:" >&5
20650sed 's/^/| /' conftest.$ac_ext >&5
20651
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653$as_echo "no" >&6; }
20654
20655
20656
20657fi
20658 rm -Rf build
20659
20660
20661
20662
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20664$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20665
20666
20667cat confdefs.h - <<_ACEOF >conftest.c
20668
20669
20670 #include <linux/fs.h>
20671
20672 long test_fallocate(struct inode *inode, int mode,
20673 loff_t offset, loff_t len) { return 0; }
20674
20675 static const struct inode_operations
20676 fops __attribute__ ((unused)) = {
20677 .fallocate = test_fallocate,
20678 };
20679
20680int
20681main (void)
20682{
20683
20684
20685 ;
20686 return 0;
20687}
20688
20689_ACEOF
20690
20691
20692
20693cat - <<_ACEOF >conftest.h
20694
20695_ACEOF
20696
20697
20698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20699 echo "obj-m := conftest.o" >build/Makefile
20700 modpost_flag=''
20701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20702 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'
20703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20707 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20712 test $ac_status = 0; }; }; then :
20713
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20715$as_echo "yes" >&6; }
20716
20717$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20718
20719
20720else
20721 $as_echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725$as_echo "no" >&6; }
20726
20727
20728
20729fi
20730 rm -Rf build
20731
20732
20733
20734
20735
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20737$as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20738
20739
20740cat confdefs.h - <<_ACEOF >conftest.c
20741
20742
20743 #include <linux/fs.h>
20744
20745 static const struct file_operations
20746 fops __attribute__ ((unused)) = {
20747 .aio_fsync = NULL,
20748 };
20749
20750int
20751main (void)
20752{
20753
20754
20755 ;
20756 return 0;
20757}
20758
20759_ACEOF
20760
20761
20762
20763cat - <<_ACEOF >conftest.h
20764
20765_ACEOF
20766
20767
20768 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20769 echo "obj-m := conftest.o" >build/Makefile
20770 modpost_flag=''
20771 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20772 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'
20773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20782 test $ac_status = 0; }; }; then :
20783
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20785$as_echo "yes" >&6; }
20786
20787$as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20788
20789
20790else
20791 $as_echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20795$as_echo "no" >&6; }
20796
20797
20798
20799fi
20800 rm -Rf build
20801
20802
20803
20804
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20806$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20807
20808
20809cat confdefs.h - <<_ACEOF >conftest.c
20810
20811
20812 #include <linux/fs.h>
20813
20814 int mkdir(struct inode *inode, struct dentry *dentry,
20815 umode_t umode) { return 0; }
20816
20817 static const struct inode_operations
20818 iops __attribute__ ((unused)) = {
20819 .mkdir = mkdir,
20820 };
20821
20822int
20823main (void)
20824{
20825
20826
20827 ;
20828 return 0;
20829}
20830
20831_ACEOF
20832
20833
20834
20835cat - <<_ACEOF >conftest.h
20836
20837_ACEOF
20838
20839
20840 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20841 echo "obj-m := conftest.o" >build/Makefile
20842 modpost_flag=''
20843 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20844 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'
20845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20849 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20854 test $ac_status = 0; }; }; then :
20855
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20857$as_echo "yes" >&6; }
20858
20859$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20860
20861
20862else
20863 $as_echo "$as_me: failed program was:" >&5
20864sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20867$as_echo "no" >&6; }
20868
20869
20870
20871fi
20872 rm -Rf build
20873
20874
20875
20876
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20878$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20879
20880
20881cat confdefs.h - <<_ACEOF >conftest.c
20882
20883
20884 #include <linux/fs.h>
20885
20886 struct dentry *inode_lookup(struct inode *inode,
20887 struct dentry *dentry, struct nameidata *nidata)
20888 { return NULL; }
20889
20890 static const struct inode_operations iops
20891 __attribute__ ((unused)) = {
20892 .lookup = inode_lookup,
20893 };
20894
20895int
20896main (void)
20897{
20898
20899
20900 ;
20901 return 0;
20902}
20903
20904_ACEOF
20905
20906
20907
20908cat - <<_ACEOF >conftest.h
20909
20910_ACEOF
20911
20912
20913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20914 echo "obj-m := conftest.o" >build/Makefile
20915 modpost_flag=''
20916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20917 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'
20918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20922 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20927 test $ac_status = 0; }; }; then :
20928
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20930$as_echo "yes" >&6; }
20931
20932$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20933
20934
20935else
20936 $as_echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940$as_echo "no" >&6; }
20941
20942
20943
20944fi
20945 rm -Rf build
20946
20947
20948
20949
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20951$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20952
20953
20954cat confdefs.h - <<_ACEOF >conftest.c
20955
20956
20957 #include <linux/fs.h>
20958
20959 #ifdef HAVE_MKDIR_UMODE_T
20960 int inode_create(struct inode *inode ,struct dentry *dentry,
20961 umode_t umode, struct nameidata *nidata) { return 0; }
20962 #else
20963 int inode_create(struct inode *inode,struct dentry *dentry,
20964 int umode, struct nameidata * nidata) { return 0; }
20965 #endif
20966
20967 static const struct inode_operations
20968 iops __attribute__ ((unused)) = {
20969 .create = inode_create,
20970 };
20971
20972int
20973main (void)
20974{
20975
20976
20977 ;
20978 return 0;
20979}
20980
20981_ACEOF
20982
20983
20984
20985cat - <<_ACEOF >conftest.h
20986
20987_ACEOF
20988
20989
20990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20991 echo "obj-m := conftest.o" >build/Makefile
20992 modpost_flag=''
20993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20994 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'
20995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21004 test $ac_status = 0; }; }; then :
21005
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21007$as_echo "yes" >&6; }
21008
21009$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21010
21011
21012else
21013 $as_echo "$as_me: failed program was:" >&5
21014sed 's/^/| /' conftest.$ac_ext >&5
21015
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017$as_echo "no" >&6; }
21018
21019
21020
21021fi
21022 rm -Rf build
21023
21024
21025
21026
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21028$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21029
21030
21031cat confdefs.h - <<_ACEOF >conftest.c
21032
21033
21034 #include <linux/fs.h>
21035 const char *get_link(struct dentry *de, struct inode *ip,
21036 struct delayed_call *done) { return "symlink"; }
21037 static struct inode_operations
21038 iops __attribute__ ((unused)) = {
21039 .get_link = get_link,
21040 };
21041
21042int
21043main (void)
21044{
21045
21046
21047 ;
21048 return 0;
21049}
21050
21051_ACEOF
21052
21053
21054
21055cat - <<_ACEOF >conftest.h
21056
21057_ACEOF
21058
21059
21060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21061 echo "obj-m := conftest.o" >build/Makefile
21062 modpost_flag=''
21063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21064 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'
21065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21074 test $ac_status = 0; }; }; then :
21075
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077$as_echo "yes" >&6; }
21078
21079$as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21080
21081
21082else
21083 $as_echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
21085
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21087$as_echo "no" >&6; }
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21089$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21090
21091
21092cat confdefs.h - <<_ACEOF >conftest.c
21093
21094
21095 #include <linux/fs.h>
21096 const char *get_link(struct dentry *de, struct
21097 inode *ip, void **cookie) { return "symlink"; }
21098 static struct inode_operations
21099 iops __attribute__ ((unused)) = {
21100 .get_link = get_link,
21101 };
21102
21103int
21104main (void)
21105{
21106
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 :
21136
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21138$as_echo "yes" >&6; }
21139
21140$as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21141
21142
21143else
21144 $as_echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148$as_echo "no" >&6; }
21149
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21151$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21152
21153
21154cat confdefs.h - <<_ACEOF >conftest.c
21155
21156
21157 #include <linux/fs.h>
21158 const char *follow_link(struct dentry *de,
21159 void **cookie) { return "symlink"; }
21160 static struct inode_operations
21161 iops __attribute__ ((unused)) = {
21162 .follow_link = follow_link,
21163 };
21164
21165int
21166main (void)
21167{
21168
21169
21170 ;
21171 return 0;
21172}
21173
21174_ACEOF
21175
21176
21177
21178cat - <<_ACEOF >conftest.h
21179
21180_ACEOF
21181
21182
21183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21184 echo "obj-m := conftest.o" >build/Makefile
21185 modpost_flag=''
21186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21187 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'
21188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21192 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21194 (eval $ac_try) 2>&5
21195 ac_status=$?
21196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21197 test $ac_status = 0; }; }; then :
21198
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21200$as_echo "yes" >&6; }
21201
21202$as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21203
21204
21205else
21206 $as_echo "$as_me: failed program was:" >&5
21207sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21210$as_echo "no" >&6; }
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21212$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21213
21214
21215cat confdefs.h - <<_ACEOF >conftest.c
21216
21217
21218 #include <linux/fs.h>
21219 void *follow_link(struct dentry *de, struct
21220 nameidata *nd) { return (void *)NULL; }
21221 static struct inode_operations
21222 iops __attribute__ ((unused)) = {
21223 .follow_link = follow_link,
21224 };
21225
21226int
21227main (void)
21228{
21229
21230
21231 ;
21232 return 0;
21233}
21234
21235_ACEOF
21236
21237
21238
21239cat - <<_ACEOF >conftest.h
21240
21241_ACEOF
21242
21243
21244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21245 echo "obj-m := conftest.o" >build/Makefile
21246 modpost_flag=''
21247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21248 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'
21249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21250 (eval $ac_try) 2>&5
21251 ac_status=$?
21252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21253 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }; then :
21259
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21261$as_echo "yes" >&6; }
21262
21263$as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21264
21265
21266else
21267 $as_echo "$as_me: failed program was:" >&5
21268sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 as_fn_error $? "no; please file a bug report" "$LINENO" 5
21271
21272
21273
21274fi
21275 rm -Rf build
21276
21277
21278
21279
21280
21281fi
21282 rm -Rf build
21283
21284
21285
21286
21287
21288
21289fi
21290 rm -Rf build
21291
21292
21293
21294
21295
21296fi
21297 rm -Rf build
21298
21299
21300
21301
21302
21303
21304cat confdefs.h - <<_ACEOF >conftest.c
21305
21306
21307 #if !defined(HAVE_GET_LINK_DELAYED)
21308 #error "Expecting get_link() delayed done"
21309 #endif
21310
21311int
21312main (void)
21313{
21314
21315
21316 ;
21317 return 0;
21318}
21319
21320_ACEOF
21321
21322
21323
21324cat - <<_ACEOF >conftest.h
21325
21326_ACEOF
21327
21328
21329 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21330 echo "obj-m := conftest.o" >build/Makefile
21331 modpost_flag=''
21332 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21333 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'
21334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21338 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21343 test $ac_status = 0; }; }; then :
21344
21345
21346$as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21347
21348
21349else
21350 $as_echo "$as_me: failed program was:" >&5
21351sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21354$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21355
21356
21357cat confdefs.h - <<_ACEOF >conftest.c
21358
21359
21360 #include <linux/fs.h>
21361 void put_link(struct inode *ip, void *cookie)
21362 { return; }
21363 static struct inode_operations
21364 iops __attribute__ ((unused)) = {
21365 .put_link = put_link,
21366 };
21367
21368int
21369main (void)
21370{
21371
21372
21373 ;
21374 return 0;
21375}
21376
21377_ACEOF
21378
21379
21380
21381cat - <<_ACEOF >conftest.h
21382
21383_ACEOF
21384
21385
21386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21387 echo "obj-m := conftest.o" >build/Makefile
21388 modpost_flag=''
21389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21390 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'
21391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21392 (eval $ac_try) 2>&5
21393 ac_status=$?
21394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21395 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21397 (eval $ac_try) 2>&5
21398 ac_status=$?
21399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21400 test $ac_status = 0; }; }; then :
21401
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403$as_echo "yes" >&6; }
21404
21405$as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21406
21407
21408else
21409 $as_echo "$as_me: failed program was:" >&5
21410sed 's/^/| /' conftest.$ac_ext >&5
21411
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21413$as_echo "no" >&6; }
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21415$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21416
21417
21418cat confdefs.h - <<_ACEOF >conftest.c
21419
21420
21421 #include <linux/fs.h>
21422 void put_link(struct dentry *de, struct
21423 nameidata *nd, void *ptr) { return; }
21424 static struct inode_operations
21425 iops __attribute__ ((unused)) = {
21426 .put_link = put_link,
21427 };
21428
21429int
21430main (void)
21431{
21432
21433
21434 ;
21435 return 0;
21436}
21437
21438_ACEOF
21439
21440
21441
21442cat - <<_ACEOF >conftest.h
21443
21444_ACEOF
21445
21446
21447 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21448 echo "obj-m := conftest.o" >build/Makefile
21449 modpost_flag=''
21450 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21451 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'
21452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21456 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21461 test $ac_status = 0; }; }; then :
21462
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21464$as_echo "yes" >&6; }
21465
21466$as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21467
21468
21469else
21470 $as_echo "$as_me: failed program was:" >&5
21471sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 as_fn_error $? "no; please file a bug report" "$LINENO" 5
21474
21475
21476
21477fi
21478 rm -Rf build
21479
21480
21481
21482
21483
21484fi
21485 rm -Rf build
21486
21487
21488
21489
21490
21491fi
21492 rm -Rf build
21493
21494
21495
21496
86e3c28a
CIK
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21498$as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
70e083d2
TG
21499
21500
21501cat confdefs.h - <<_ACEOF >conftest.c
21502
21503
21504 #include <linux/fs.h>
86e3c28a
CIK
21505 int tmpfile(struct inode *inode, struct dentry *dentry,
21506 umode_t mode) { return 0; }
21507 static struct inode_operations
21508 iops __attribute__ ((unused)) = {
21509 .tmpfile = tmpfile,
70e083d2
TG
21510 };
21511
21512int
21513main (void)
21514{
21515
21516
21517 ;
21518 return 0;
21519}
21520
21521_ACEOF
21522
21523
21524
21525cat - <<_ACEOF >conftest.h
21526
21527_ACEOF
21528
21529
21530 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21531 echo "obj-m := conftest.o" >build/Makefile
21532 modpost_flag=''
21533 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21534 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'
21535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21539 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21544 test $ac_status = 0; }; }; then :
21545
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21547$as_echo "yes" >&6; }
21548
86e3c28a 21549$as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
70e083d2
TG
21550
21551
21552else
21553 $as_echo "$as_me: failed program was:" >&5
21554sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557$as_echo "no" >&6; }
21558
21559
21560
21561fi
21562 rm -Rf build
21563
21564
21565
21566
86e3c28a
CIK
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21568$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
70e083d2
TG
21569
21570
21571cat confdefs.h - <<_ACEOF >conftest.c
21572
21573
86e3c28a
CIK
21574 #include <linux/fs.h>
21575 void truncate_range(struct inode *inode, loff_t start,
21576 loff_t end) { return; }
21577 static struct inode_operations iops __attribute__ ((unused)) = {
21578 .truncate_range = truncate_range,
70e083d2
TG
21579 };
21580
21581int
21582main (void)
21583{
21584
21585
21586 ;
21587 return 0;
21588}
21589
21590_ACEOF
21591
21592
21593
21594cat - <<_ACEOF >conftest.h
21595
21596_ACEOF
21597
21598
21599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21600 echo "obj-m := conftest.o" >build/Makefile
21601 modpost_flag=''
21602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21603 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'
21604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21608 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21613 test $ac_status = 0; }; }; then :
21614
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21616$as_echo "yes" >&6; }
21617
86e3c28a 21618$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
70e083d2
TG
21619
21620
21621else
21622 $as_echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21626$as_echo "no" >&6; }
21627
21628
21629
21630fi
21631 rm -Rf build
21632
21633
21634
21635
86e3c28a
CIK
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21637$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
70e083d2
TG
21638
21639
21640cat confdefs.h - <<_ACEOF >conftest.c
21641
21642
86e3c28a
CIK
21643 #include <linux/dcache.h>
21644 struct vfsmount *d_automount(struct path *p) { return NULL; }
21645 struct dentry_operations dops __attribute__ ((unused)) = {
21646 .d_automount = d_automount,
70e083d2
TG
21647 };
21648
21649int
21650main (void)
21651{
21652
21653
21654 ;
21655 return 0;
21656}
21657
21658_ACEOF
21659
21660
21661
21662cat - <<_ACEOF >conftest.h
21663
21664_ACEOF
21665
21666
21667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21668 echo "obj-m := conftest.o" >build/Makefile
21669 modpost_flag=''
21670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21671 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'
21672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21676 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21678 (eval $ac_try) 2>&5
21679 ac_status=$?
21680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21681 test $ac_status = 0; }; }; then :
21682
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21684$as_echo "yes" >&6; }
21685
86e3c28a 21686$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
70e083d2
TG
21687
21688
21689else
21690 $as_echo "$as_me: failed program was:" >&5
21691sed 's/^/| /' conftest.$ac_ext >&5
21692
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694$as_echo "no" >&6; }
21695
21696
21697
21698fi
21699 rm -Rf build
21700
21701
21702
21703
86e3c28a
CIK
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21705$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
70e083d2
TG
21706
21707
21708cat confdefs.h - <<_ACEOF >conftest.c
21709
21710
21711 #include <linux/exportfs.h>
86e3c28a
CIK
21712 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21713 struct inode *parent) { return 0; }
70e083d2 21714 static struct export_operations eops __attribute__ ((unused))={
86e3c28a 21715 .encode_fh = encode_fh,
70e083d2
TG
21716 };
21717
21718int
21719main (void)
21720{
21721
21722
21723 ;
21724 return 0;
21725}
21726
21727_ACEOF
21728
21729
21730
21731cat - <<_ACEOF >conftest.h
21732
21733_ACEOF
21734
21735
21736 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21737 echo "obj-m := conftest.o" >build/Makefile
21738 modpost_flag=''
21739 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21740 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'
21741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21745 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21750 test $ac_status = 0; }; }; then :
21751
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21753$as_echo "yes" >&6; }
21754
86e3c28a 21755$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
70e083d2
TG
21756
21757
21758else
21759 $as_echo "$as_me: failed program was:" >&5
21760sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763$as_echo "no" >&6; }
21764
21765
21766
21767fi
21768 rm -Rf build
21769
21770
21771
70e083d2 21772
86e3c28a
CIK
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21774$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
70e083d2
TG
21775
21776
21777cat confdefs.h - <<_ACEOF >conftest.c
21778
21779
86e3c28a
CIK
21780 #include <linux/exportfs.h>
21781 int commit_metadata(struct inode *inode) { return 0; }
21782 static struct export_operations eops __attribute__ ((unused))={
21783 .commit_metadata = commit_metadata,
21784 };
70e083d2
TG
21785
21786int
21787main (void)
21788{
21789
70e083d2
TG
21790
21791 ;
21792 return 0;
21793}
21794
21795_ACEOF
21796
21797
21798
21799cat - <<_ACEOF >conftest.h
21800
21801_ACEOF
21802
21803
21804 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21805 echo "obj-m := conftest.o" >build/Makefile
21806 modpost_flag=''
21807 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21808 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'
21809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; }; then :
70e083d2 21819
86e3c28a
CIK
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21821$as_echo "yes" >&6; }
70e083d2 21822
86e3c28a 21823$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
70e083d2 21824
70e083d2 21825
86e3c28a
CIK
21826else
21827 $as_echo "$as_me: failed program was:" >&5
21828sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
21829
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831$as_echo "no" >&6; }
21832
70e083d2 21833
70e083d2 21834
86e3c28a
CIK
21835fi
21836 rm -Rf build
70e083d2 21837
70e083d2
TG
21838
21839
86e3c28a
CIK
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21841$as_echo_n "checking whether clear_inode() is available... " >&6; }
70e083d2
TG
21842
21843
21844
21845cat confdefs.h - <<_ACEOF >conftest.c
21846
21847
21848 #include <linux/fs.h>
21849
21850int
21851main (void)
21852{
21853
86e3c28a 21854 clear_inode(NULL);
70e083d2
TG
21855
21856 ;
21857 return 0;
21858}
21859
21860_ACEOF
21861
21862
21863
21864cat - <<_ACEOF >conftest.h
21865
21866_ACEOF
21867
21868
21869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21870 echo "obj-m := conftest.o" >build/Makefile
21871 modpost_flag=''
21872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21873 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'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21883 test $ac_status = 0; }; }; then :
21884 rc=0
21885else
21886 $as_echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888 rc=1
21889
21890
21891fi
21892 rm -Rf build
21893
21894
21895 if test $rc -ne 0; then :
21896
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898$as_echo "no" >&6; }
21899
21900 else
21901 if test "x$enable_linux_builtin" != xyes; then
21902
86e3c28a 21903 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
70e083d2
TG
21904 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21905 rc=$?
21906 if test $rc -ne 0; then
21907 export=0
86e3c28a
CIK
21908 for file in fs/inode.c; do
21909 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
70e083d2
TG
21910 "$LINUX/$file" 2>/dev/null
21911 rc=$?
21912 if test $rc -eq 0; then
21913 export=1
21914 break;
21915 fi
21916 done
21917 if test $export -eq 0; then :
21918 rc=1
21919 else :
21920 rc=0
21921 fi
21922 else :
21923 rc=0
21924 fi
21925
21926 fi
21927 if test $rc -ne 0; then :
21928
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930$as_echo "no" >&6; }
21931
21932 else :
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21935$as_echo "yes" >&6; }
21936
86e3c28a 21937$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
70e083d2
TG
21938
21939
21940 fi
21941 fi
21942
21943
86e3c28a
CIK
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21945$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
70e083d2
TG
21946
21947
21948
21949cat confdefs.h - <<_ACEOF >conftest.c
21950
21951
21952 #include <linux/fs.h>
21953
21954int
21955main (void)
21956{
21957
86e3c28a
CIK
21958 struct dentry *dentry = NULL;
21959 struct iattr *attr = NULL;
21960 int error;
21961
21962 error = setattr_prepare(dentry, attr);
70e083d2
TG
21963
21964 ;
21965 return 0;
21966}
21967
21968_ACEOF
21969
21970
21971
21972cat - <<_ACEOF >conftest.h
21973
21974_ACEOF
21975
21976
21977 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21978 echo "obj-m := conftest.o" >build/Makefile
21979 modpost_flag=''
21980 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21981 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'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }; then :
21992 rc=0
21993else
21994 $as_echo "$as_me: failed program was:" >&5
21995sed 's/^/| /' conftest.$ac_ext >&5
21996 rc=1
21997
21998
21999fi
22000 rm -Rf build
22001
22002
22003 if test $rc -ne 0; then :
22004
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22006$as_echo "no" >&6; }
22007
22008 else
22009 if test "x$enable_linux_builtin" != xyes; then
22010
86e3c28a 22011 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
70e083d2
TG
22012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22013 rc=$?
22014 if test $rc -ne 0; then
22015 export=0
86e3c28a
CIK
22016 for file in fs/attr.c; do
22017 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
70e083d2
TG
22018 "$LINUX/$file" 2>/dev/null
22019 rc=$?
22020 if test $rc -eq 0; then
22021 export=1
22022 break;
22023 fi
22024 done
22025 if test $export -eq 0; then :
22026 rc=1
22027 else :
22028 rc=0
22029 fi
22030 else :
22031 rc=0
22032 fi
22033
22034 fi
22035 if test $rc -ne 0; then :
22036
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038$as_echo "no" >&6; }
22039
22040 else :
22041
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22043$as_echo "yes" >&6; }
22044
86e3c28a 22045$as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
70e083d2
TG
22046
22047
22048 fi
22049 fi
22050
22051
86e3c28a
CIK
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22053$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
70e083d2
TG
22054
22055
22056
22057cat confdefs.h - <<_ACEOF >conftest.c
22058
22059
86e3c28a 22060 #include <linux/fs.h>
70e083d2
TG
22061
22062int
22063main (void)
22064{
22065
86e3c28a 22066 insert_inode_locked(NULL);
70e083d2
TG
22067
22068 ;
22069 return 0;
22070}
22071
22072_ACEOF
22073
22074
22075
22076cat - <<_ACEOF >conftest.h
22077
22078_ACEOF
22079
22080
22081 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22082 echo "obj-m := conftest.o" >build/Makefile
22083 modpost_flag=''
22084 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22085 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'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }; }; then :
22096 rc=0
22097else
22098 $as_echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100 rc=1
22101
22102
22103fi
22104 rm -Rf build
22105
22106
22107 if test $rc -ne 0; then :
22108
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110$as_echo "no" >&6; }
22111
22112 else
22113 if test "x$enable_linux_builtin" != xyes; then
22114
86e3c28a 22115 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
70e083d2
TG
22116 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22117 rc=$?
22118 if test $rc -ne 0; then
22119 export=0
86e3c28a
CIK
22120 for file in fs/inode.c; do
22121 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
70e083d2
TG
22122 "$LINUX/$file" 2>/dev/null
22123 rc=$?
22124 if test $rc -eq 0; then
22125 export=1
22126 break;
22127 fi
22128 done
22129 if test $export -eq 0; then :
22130 rc=1
22131 else :
22132 rc=0
22133 fi
22134 else :
22135 rc=0
22136 fi
22137
22138 fi
22139 if test $rc -ne 0; then :
22140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142$as_echo "no" >&6; }
22143
22144 else :
22145
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22147$as_echo "yes" >&6; }
22148
86e3c28a 22149$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
70e083d2
TG
22150
22151
22152 fi
22153 fi
22154
22155
86e3c28a
CIK
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22157$as_echo_n "checking whether d_make_root() is available... " >&6; }
70e083d2
TG
22158
22159
22160
22161cat confdefs.h - <<_ACEOF >conftest.c
22162
22163
22164 #include <linux/dcache.h>
22165
22166int
22167main (void)
22168{
22169
86e3c28a 22170 d_make_root(NULL);
70e083d2
TG
22171
22172 ;
22173 return 0;
22174}
22175
22176_ACEOF
22177
22178
22179
22180cat - <<_ACEOF >conftest.h
22181
22182_ACEOF
22183
22184
22185 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22186 echo "obj-m := conftest.o" >build/Makefile
22187 modpost_flag=''
22188 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22189 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'
22190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22191 (eval $ac_try) 2>&5
22192 ac_status=$?
22193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22194 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199 test $ac_status = 0; }; }; then :
22200 rc=0
22201else
22202 $as_echo "$as_me: failed program was:" >&5
22203sed 's/^/| /' conftest.$ac_ext >&5
22204 rc=1
22205
22206
22207fi
22208 rm -Rf build
22209
22210
22211 if test $rc -ne 0; then :
22212
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22214$as_echo "no" >&6; }
22215
22216 else
22217 if test "x$enable_linux_builtin" != xyes; then
22218
86e3c28a 22219 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
70e083d2
TG
22220 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22221 rc=$?
22222 if test $rc -ne 0; then
22223 export=0
22224 for file in fs/dcache.c; do
86e3c28a 22225 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
70e083d2
TG
22226 "$LINUX/$file" 2>/dev/null
22227 rc=$?
22228 if test $rc -eq 0; then
22229 export=1
22230 break;
22231 fi
22232 done
22233 if test $export -eq 0; then :
22234 rc=1
22235 else :
22236 rc=0
22237 fi
22238 else :
22239 rc=0
22240 fi
22241
22242 fi
22243 if test $rc -ne 0; then :
22244
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22246$as_echo "no" >&6; }
22247
22248 else :
22249
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22251$as_echo "yes" >&6; }
22252
86e3c28a 22253$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
70e083d2
TG
22254
22255
22256 fi
22257 fi
22258
22259
86e3c28a
CIK
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22261$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
70e083d2
TG
22262
22263
22264
22265cat confdefs.h - <<_ACEOF >conftest.c
22266
22267
22268 #include <linux/dcache.h>
22269
22270int
22271main (void)
22272{
22273
86e3c28a 22274 d_obtain_alias(NULL);
70e083d2
TG
22275
22276 ;
22277 return 0;
22278}
22279
22280_ACEOF
22281
22282
22283
22284cat - <<_ACEOF >conftest.h
22285
22286_ACEOF
22287
22288
22289 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22290 echo "obj-m := conftest.o" >build/Makefile
22291 modpost_flag=''
22292 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22293 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'
22294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22298 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303 test $ac_status = 0; }; }; then :
22304 rc=0
22305else
22306 $as_echo "$as_me: failed program was:" >&5
22307sed 's/^/| /' conftest.$ac_ext >&5
22308 rc=1
22309
22310
22311fi
22312 rm -Rf build
22313
22314
22315 if test $rc -ne 0; then :
22316
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318$as_echo "no" >&6; }
22319
22320 else
22321 if test "x$enable_linux_builtin" != xyes; then
22322
86e3c28a 22323 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
70e083d2
TG
22324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22325 rc=$?
22326 if test $rc -ne 0; then
22327 export=0
22328 for file in fs/dcache.c; do
86e3c28a 22329 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
70e083d2
TG
22330 "$LINUX/$file" 2>/dev/null
22331 rc=$?
22332 if test $rc -eq 0; then
22333 export=1
22334 break;
22335 fi
22336 done
22337 if test $export -eq 0; then :
22338 rc=1
22339 else :
22340 rc=0
22341 fi
22342 else :
22343 rc=0
22344 fi
22345
22346 fi
22347 if test $rc -ne 0; then :
22348
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350$as_echo "no" >&6; }
22351
22352 else :
22353
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22355$as_echo "yes" >&6; }
22356
86e3c28a 22357$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
70e083d2
TG
22358
22359
22360 fi
22361 fi
22362
22363
86e3c28a
CIK
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22365$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
70e083d2
TG
22366
22367
22368
22369cat confdefs.h - <<_ACEOF >conftest.c
22370
22371
22372 #include <linux/dcache.h>
22373
22374int
22375main (void)
22376{
22377
86e3c28a
CIK
22378 struct inode *ip = NULL;
22379 d_prune_aliases(ip);
70e083d2
TG
22380
22381 ;
22382 return 0;
22383}
22384
22385_ACEOF
22386
22387
22388
22389cat - <<_ACEOF >conftest.h
22390
22391_ACEOF
22392
22393
22394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22395 echo "obj-m := conftest.o" >build/Makefile
22396 modpost_flag=''
22397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22398 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'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }; then :
22409 rc=0
22410else
22411 $as_echo "$as_me: failed program was:" >&5
22412sed 's/^/| /' conftest.$ac_ext >&5
22413 rc=1
22414
22415
22416fi
22417 rm -Rf build
22418
22419
22420 if test $rc -ne 0; then :
22421
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423$as_echo "no" >&6; }
22424
22425 else
22426 if test "x$enable_linux_builtin" != xyes; then
22427
86e3c28a 22428 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
70e083d2
TG
22429 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22430 rc=$?
22431 if test $rc -ne 0; then
22432 export=0
22433 for file in fs/dcache.c; do
86e3c28a 22434 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
70e083d2
TG
22435 "$LINUX/$file" 2>/dev/null
22436 rc=$?
22437 if test $rc -eq 0; then
22438 export=1
22439 break;
22440 fi
22441 done
22442 if test $export -eq 0; then :
22443 rc=1
22444 else :
22445 rc=0
22446 fi
22447 else :
22448 rc=0
22449 fi
22450
22451 fi
22452 if test $rc -ne 0; then :
22453
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455$as_echo "no" >&6; }
22456
22457 else :
22458
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22460$as_echo "yes" >&6; }
22461
86e3c28a 22462$as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
70e083d2
TG
22463
22464
22465 fi
22466 fi
22467
22468
86e3c28a
CIK
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22470$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
70e083d2 22471
70e083d2
TG
22472
22473
22474cat confdefs.h - <<_ACEOF >conftest.c
22475
22476
22477 #include <linux/dcache.h>
22478
70e083d2
TG
22479int
22480main (void)
22481{
22482
86e3c28a 22483 d_set_d_op(NULL, NULL);
70e083d2
TG
22484
22485 ;
22486 return 0;
22487}
22488
22489_ACEOF
22490
22491
22492
22493cat - <<_ACEOF >conftest.h
22494
22495_ACEOF
22496
22497
22498 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22499 echo "obj-m := conftest.o" >build/Makefile
22500 modpost_flag=''
22501 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22502 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'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }; then :
86e3c28a 22513 rc=0
70e083d2
TG
22514else
22515 $as_echo "$as_me: failed program was:" >&5
22516sed 's/^/| /' conftest.$ac_ext >&5
86e3c28a 22517 rc=1
70e083d2
TG
22518
22519
22520fi
22521 rm -Rf build
22522
22523
86e3c28a 22524 if test $rc -ne 0; then :
70e083d2 22525
86e3c28a
CIK
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527$as_echo "no" >&6; }
70e083d2 22528
86e3c28a
CIK
22529 else
22530 if test "x$enable_linux_builtin" != xyes; then
70e083d2 22531
86e3c28a
CIK
22532 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22533 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22534 rc=$?
22535 if test $rc -ne 0; then
22536 export=0
22537 for file in fs/dcache.c; do
22538 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22539 "$LINUX/$file" 2>/dev/null
22540 rc=$?
22541 if test $rc -eq 0; then
22542 export=1
22543 break;
22544 fi
22545 done
22546 if test $export -eq 0; then :
22547 rc=1
22548 else :
22549 rc=0
22550 fi
22551 else :
22552 rc=0
22553 fi
70e083d2 22554
86e3c28a
CIK
22555 fi
22556 if test $rc -ne 0; then :
70e083d2 22557
86e3c28a
CIK
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559$as_echo "no" >&6; }
70e083d2 22560
86e3c28a 22561 else :
70e083d2
TG
22562
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22564$as_echo "yes" >&6; }
22565
86e3c28a 22566$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
70e083d2
TG
22567
22568
86e3c28a
CIK
22569 fi
22570 fi
70e083d2 22571
70e083d2
TG
22572
22573
86e3c28a
CIK
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22575$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
70e083d2 22576
70e083d2 22577
86e3c28a 22578cat confdefs.h - <<_ACEOF >conftest.c
70e083d2
TG
22579
22580
86e3c28a 22581 #include <linux/dcache.h>
70e083d2 22582
86e3c28a
CIK
22583 int revalidate (struct dentry *dentry,
22584 struct nameidata *nidata) { return 0; }
70e083d2 22585
86e3c28a
CIK
22586 static const struct dentry_operations
22587 dops __attribute__ ((unused)) = {
22588 .d_revalidate = revalidate,
22589 };
70e083d2
TG
22590
22591int
22592main (void)
22593{
22594
70e083d2
TG
22595
22596 ;
22597 return 0;
22598}
22599
22600_ACEOF
22601
22602
22603
22604cat - <<_ACEOF >conftest.h
22605
22606_ACEOF
22607
22608
22609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22610 echo "obj-m := conftest.o" >build/Makefile
22611 modpost_flag=''
22612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22613 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'
22614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22618 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }; then :
70e083d2 22624
86e3c28a
CIK
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22626$as_echo "yes" >&6; }
70e083d2 22627
86e3c28a 22628$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
70e083d2 22629
70e083d2 22630
86e3c28a
CIK
22631else
22632 $as_echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
22634
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22636$as_echo "no" >&6; }
22637
70e083d2 22638
70e083d2 22639
86e3c28a
CIK
22640fi
22641 rm -Rf build
70e083d2 22642
70e083d2
TG
22643
22644
70e083d2 22645
86e3c28a
CIK
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22647$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
70e083d2
TG
22648
22649
22650cat confdefs.h - <<_ACEOF >conftest.c
22651
22652
86e3c28a
CIK
22653 #include <linux/dcache.h>
22654
22655 const struct dentry_operations test_d_op = {
22656 .d_revalidate = NULL,
22657 };
70e083d2
TG
22658
22659int
22660main (void)
22661{
22662
86e3c28a
CIK
22663 struct dentry d __attribute__ ((unused));
22664
22665 d.d_op = &test_d_op;
22666
22667 ;
22668 return 0;
22669}
22670
22671_ACEOF
22672
22673
22674
22675cat - <<_ACEOF >conftest.h
22676
22677_ACEOF
22678
22679
22680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22681 echo "obj-m := conftest.o" >build/Makefile
22682 modpost_flag=''
22683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22684 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'
22685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22694 test $ac_status = 0; }; }; then :
22695
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22697$as_echo "yes" >&6; }
22698
22699$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22700
22701
22702else
22703 $as_echo "$as_me: failed program was:" >&5
22704sed 's/^/| /' conftest.$ac_ext >&5
22705
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707$as_echo "no" >&6; }
22708
22709
22710
22711fi
22712 rm -Rf build
22713
22714
22715
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22717$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22718
22719
22720
22721cat confdefs.h - <<_ACEOF >conftest.c
22722
22723
22724 #include <linux/mm.h>
22725
22726int
22727main (void)
22728{
22729
22730 truncate_setsize(NULL, 0);
70e083d2
TG
22731
22732 ;
22733 return 0;
22734}
22735
22736_ACEOF
22737
22738
22739
22740cat - <<_ACEOF >conftest.h
22741
22742_ACEOF
22743
22744
22745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22746 echo "obj-m := conftest.o" >build/Makefile
22747 modpost_flag=''
22748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22749 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'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22752 ac_status=$?
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; }; then :
22760 rc=0
22761else
22762 $as_echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764 rc=1
22765
22766
22767fi
22768 rm -Rf build
22769
22770
22771 if test $rc -ne 0; then :
22772
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774$as_echo "no" >&6; }
22775
22776 else
22777 if test "x$enable_linux_builtin" != xyes; then
22778
22779 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22780 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22781 rc=$?
22782 if test $rc -ne 0; then
22783 export=0
22784 for file in mm/truncate.c; do
22785 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22786 "$LINUX/$file" 2>/dev/null
22787 rc=$?
22788 if test $rc -eq 0; then
22789 export=1
22790 break;
22791 fi
22792 done
22793 if test $export -eq 0; then :
22794 rc=1
22795 else :
22796 rc=0
22797 fi
22798 else :
22799 rc=0
22800 fi
22801
22802 fi
22803 if test $rc -ne 0; then :
22804
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22806$as_echo "no" >&6; }
22807
22808 else :
22809
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22811$as_echo "yes" >&6; }
22812
22813$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22814
22815
22816 fi
22817 fi
22818
22819
22820
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22822$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22823
22824
22825cat confdefs.h - <<_ACEOF >conftest.c
22826
22827
22828 #include <linux/security.h>
22829
22830int
22831main (void)
22832{
22833
22834 struct inode *ip __attribute__ ((unused)) = NULL;
22835 struct inode *dip __attribute__ ((unused)) = NULL;
22836 const struct qstr *str __attribute__ ((unused)) = NULL;
22837 char *name __attribute__ ((unused)) = NULL;
22838 void *value __attribute__ ((unused)) = NULL;
22839 size_t len __attribute__ ((unused)) = 0;
22840
22841 security_inode_init_security(ip, dip, str, &name, &value, &len);
22842
22843 ;
22844 return 0;
22845}
22846
22847_ACEOF
22848
22849
22850
22851cat - <<_ACEOF >conftest.h
22852
22853_ACEOF
22854
22855
22856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22857 echo "obj-m := conftest.o" >build/Makefile
22858 modpost_flag=''
22859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22860 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'
22861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22865 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }; then :
22871
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22873$as_echo "yes" >&6; }
22874
22875$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22876
22877
22878else
22879 $as_echo "$as_me: failed program was:" >&5
22880sed 's/^/| /' conftest.$ac_ext >&5
22881
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22883$as_echo "no" >&6; }
22884
22885
22886
22887fi
22888 rm -Rf build
22889
22890
22891
22892
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22894$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22895
22896
22897cat confdefs.h - <<_ACEOF >conftest.c
22898
22899
22900 #include <linux/security.h>
22901
22902int
22903main (void)
22904{
22905
22906 struct inode *ip __attribute__ ((unused)) = NULL;
22907 struct inode *dip __attribute__ ((unused)) = NULL;
22908 const struct qstr *str __attribute__ ((unused)) = NULL;
22909 initxattrs func __attribute__ ((unused)) = NULL;
22910
22911 security_inode_init_security(ip, dip, str, func, NULL);
22912
22913 ;
22914 return 0;
22915}
22916
22917_ACEOF
22918
22919
22920
22921cat - <<_ACEOF >conftest.h
22922
22923_ACEOF
22924
22925
22926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22927 echo "obj-m := conftest.o" >build/Makefile
22928 modpost_flag=''
22929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22930 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'
22931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22932 (eval $ac_try) 2>&5
22933 ac_status=$?
22934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22935 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22937 (eval $ac_try) 2>&5
22938 ac_status=$?
22939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22940 test $ac_status = 0; }; }; then :
22941
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22943$as_echo "yes" >&6; }
22944
22945$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22946
22947
22948else
22949 $as_echo "$as_me: failed program was:" >&5
22950sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953$as_echo "no" >&6; }
22954
22955
22956
22957fi
22958 rm -Rf build
22959
22960
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22963$as_echo_n "checking whether mount_nodev() is available... " >&6; }
22964
22965
22966
22967cat confdefs.h - <<_ACEOF >conftest.c
22968
22969
22970 #include <linux/fs.h>
22971
22972int
22973main (void)
22974{
22975
22976 mount_nodev(NULL, 0, NULL, NULL);
22977
22978 ;
22979 return 0;
22980}
22981
22982_ACEOF
22983
22984
22985
22986cat - <<_ACEOF >conftest.h
22987
22988_ACEOF
22989
22990
22991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22992 echo "obj-m := conftest.o" >build/Makefile
22993 modpost_flag=''
22994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22995 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'
22996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }; then :
23006 rc=0
23007else
23008 $as_echo "$as_me: failed program was:" >&5
23009sed 's/^/| /' conftest.$ac_ext >&5
23010 rc=1
23011
23012
23013fi
23014 rm -Rf build
23015
23016
23017 if test $rc -ne 0; then :
23018
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020$as_echo "no" >&6; }
23021
23022 else
23023 if test "x$enable_linux_builtin" != xyes; then
23024
23025 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23027 rc=$?
23028 if test $rc -ne 0; then
23029 export=0
23030 for file in fs/super.c; do
23031 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23032 "$LINUX/$file" 2>/dev/null
23033 rc=$?
23034 if test $rc -eq 0; then
23035 export=1
23036 break;
23037 fi
23038 done
23039 if test $export -eq 0; then :
23040 rc=1
23041 else :
23042 rc=0
23043 fi
23044 else :
23045 rc=0
23046 fi
23047
23048 fi
23049 if test $rc -ne 0; then :
23050
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052$as_echo "no" >&6; }
23053
23054 else :
23055
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23057$as_echo "yes" >&6; }
23058
23059$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23060
23061
23062 fi
23063 fi
23064
23065
23066
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23068$as_echo_n "checking whether super_block has s_shrink... " >&6; }
23069
23070
23071cat confdefs.h - <<_ACEOF >conftest.c
23072
23073
23074 #include <linux/fs.h>
23075
23076 int shrink(struct shrinker *s, struct shrink_control *sc)
23077 { return 0; }
23078
23079 static const struct super_block
23080 sb __attribute__ ((unused)) = {
23081 .s_shrink.shrink = shrink,
23082 .s_shrink.seeks = DEFAULT_SEEKS,
23083 .s_shrink.batch = 0,
23084 };
23085
23086int
23087main (void)
23088{
23089
23090
23091 ;
23092 return 0;
23093}
23094
23095_ACEOF
23096
23097
23098
23099cat - <<_ACEOF >conftest.h
23100
23101_ACEOF
23102
23103
23104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23105 echo "obj-m := conftest.o" >build/Makefile
23106 modpost_flag=''
23107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23108 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'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23118 test $ac_status = 0; }; }; then :
23119
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23121$as_echo "yes" >&6; }
23122
23123$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23124
23125
23126
23127else
23128 $as_echo "$as_me: failed program was:" >&5
23129sed 's/^/| /' conftest.$ac_ext >&5
23130
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132$as_echo "no" >&6; }
23133
23134
23135
23136fi
23137 rm -Rf build
23138
23139
23140
23141
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23143$as_echo_n "checking whether shrink_control has nid... " >&6; }
23144
23145
23146cat confdefs.h - <<_ACEOF >conftest.c
23147
23148
23149 #include <linux/fs.h>
23150
23151int
23152main (void)
23153{
23154
23155 struct shrink_control sc __attribute__ ((unused));
23156 unsigned long scnidsize __attribute__ ((unused)) =
23157 sizeof(sc.nid);
23158
23159 ;
23160 return 0;
23161}
23162
23163_ACEOF
23164
23165
23166
23167cat - <<_ACEOF >conftest.h
23168
23169_ACEOF
23170
23171
23172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23173 echo "obj-m := conftest.o" >build/Makefile
23174 modpost_flag=''
23175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23176 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'
23177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
23180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23181 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }; then :
23187
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189$as_echo "yes" >&6; }
23190
23191$as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23192
23193
23194else
23195 $as_echo "$as_me: failed program was:" >&5
23196sed 's/^/| /' conftest.$ac_ext >&5
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23199$as_echo "no" >&6; }
23200
23201
23202
23203fi
23204 rm -Rf build
23205
23206
23207
23208
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23210$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23211
23212
23213cat confdefs.h - <<_ACEOF >conftest.c
23214
23215
23216 #include <linux/fs.h>
23217
23218int
23219main (void)
23220{
23221
23222 struct super_block sb __attribute__ ((unused));
23223
23224 INIT_LIST_HEAD(&sb.s_instances);
23225
23226 ;
23227 return 0;
23228}
23229
23230_ACEOF
23231
23232
23233
23234cat - <<_ACEOF >conftest.h
23235
23236_ACEOF
23237
23238
23239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23240 echo "obj-m := conftest.o" >build/Makefile
23241 modpost_flag=''
23242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23243 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'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23250 (eval $ac_try) 2>&5
23251 ac_status=$?
23252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23253 test $ac_status = 0; }; }; then :
23254
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23256$as_echo "yes" >&6; }
23257
23258$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23259
23260
23261else
23262 $as_echo "$as_me: failed program was:" >&5
23263sed 's/^/| /' conftest.$ac_ext >&5
23264
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23266$as_echo "no" >&6; }
23267
23268
23269
23270fi
23271 rm -Rf build
23272
23273
23274
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23276$as_echo_n "checking whether super_block has s_d_op... " >&6; }
23277
23278
23279cat confdefs.h - <<_ACEOF >conftest.c
23280
23281
23282 #include <linux/fs.h>
23283
23284int
23285main (void)
23286{
23287
23288 struct super_block sb __attribute__ ((unused));
23289 sb.s_d_op = NULL;
23290
23291 ;
23292 return 0;
23293}
23294
23295_ACEOF
23296
23297
23298
23299cat - <<_ACEOF >conftest.h
23300
23301_ACEOF
23302
23303
23304 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23305 echo "obj-m := conftest.o" >build/Makefile
23306 modpost_flag=''
23307 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23308 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'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }; then :
23319
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23321$as_echo "yes" >&6; }
23322
23323$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23324
23325
23326else
23327 $as_echo "$as_me: failed program was:" >&5
23328sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331$as_echo "no" >&6; }
23332
23333
23334
23335fi
23336 rm -Rf build
23337
23338
23339
23340
837ca015
CIK
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23342$as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
70e083d2
TG
23343
23344
23345
23346cat confdefs.h - <<_ACEOF >conftest.c
23347
23348
837ca015
CIK
23349 #include <linux/fs.h>
23350 struct super_block sb;
70e083d2
TG
23351
23352int
23353main (void)
23354{
23355
23356 char *name = "bdi";
86e3c28a 23357 atomic_long_t zfs_bdi_seq;
70e083d2 23358 int error __attribute__((unused)) =
86e3c28a 23359 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
70e083d2
TG
23360
23361 ;
23362 return 0;
23363}
23364
23365_ACEOF
23366
23367
23368
23369cat - <<_ACEOF >conftest.h
23370
23371_ACEOF
23372
23373
23374 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23375 echo "obj-m := conftest.o" >build/Makefile
23376 modpost_flag=''
23377 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23378 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'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }; then :
23389 rc=0
23390else
23391 $as_echo "$as_me: failed program was:" >&5
23392sed 's/^/| /' conftest.$ac_ext >&5
23393 rc=1
23394
23395
23396fi
23397 rm -Rf build
23398
23399
23400 if test $rc -ne 0; then :
23401
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403$as_echo "no" >&6; }
837ca015
CIK
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23405$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
70e083d2
TG
23406
23407
23408
23409cat confdefs.h - <<_ACEOF >conftest.c
23410
23411
23412 #include <linux/backing-dev.h>
23413 struct backing_dev_info bdi;
23414
23415int
23416main (void)
23417{
23418
23419 char *name = "bdi";
70e083d2 23420 int error __attribute__((unused)) =
837ca015 23421 bdi_setup_and_register(&bdi, name);
70e083d2
TG
23422
23423 ;
23424 return 0;
23425}
23426
23427_ACEOF
23428
23429
23430
23431cat - <<_ACEOF >conftest.h
23432
23433_ACEOF
23434
23435
23436 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23437 echo "obj-m := conftest.o" >build/Makefile
23438 modpost_flag=''
23439 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23440 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'
23441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23442 (eval $ac_try) 2>&5
23443 ac_status=$?
23444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23445 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; }; }; then :
23451 rc=0
23452else
23453 $as_echo "$as_me: failed program was:" >&5
23454sed 's/^/| /' conftest.$ac_ext >&5
23455 rc=1
23456
23457
23458fi
23459 rm -Rf build
23460
23461
23462 if test $rc -ne 0; then :
23463
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465$as_echo "no" >&6; }
837ca015
CIK
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23467$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23468
23469
23470
23471cat confdefs.h - <<_ACEOF >conftest.c
23472
23473
23474 #include <linux/backing-dev.h>
23475 struct backing_dev_info bdi;
23476
23477int
23478main (void)
23479{
23480
23481 char *name = "bdi";
23482 unsigned int cap = BDI_CAP_MAP_COPY;
23483 int error __attribute__((unused)) =
23484 bdi_setup_and_register(&bdi, name, cap);
23485
23486 ;
23487 return 0;
23488}
23489
23490_ACEOF
23491
23492
23493
23494cat - <<_ACEOF >conftest.h
23495
23496_ACEOF
23497
23498
23499 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23500 echo "obj-m := conftest.o" >build/Makefile
23501 modpost_flag=''
23502 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23503 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'
23504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23508 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23510 (eval $ac_try) 2>&5
23511 ac_status=$?
23512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23513 test $ac_status = 0; }; }; then :
23514 rc=0
23515else
23516 $as_echo "$as_me: failed program was:" >&5
23517sed 's/^/| /' conftest.$ac_ext >&5
23518 rc=1
23519
23520
23521fi
23522 rm -Rf build
23523
23524
23525 if test $rc -ne 0; then :
23526
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23528$as_echo "no" >&6; }
70e083d2
TG
23529
23530 else
23531 if test "x$enable_linux_builtin" != xyes; then
23532
23533 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23535 rc=$?
23536 if test $rc -ne 0; then
23537 export=0
23538 for file in mm/backing-dev.c; do
23539 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23540 "$LINUX/$file" 2>/dev/null
23541 rc=$?
23542 if test $rc -eq 0; then
23543 export=1
23544 break;
23545 fi
23546 done
23547 if test $export -eq 0; then :
23548 rc=1
23549 else :
23550 rc=0
23551 fi
23552 else :
23553 rc=0
23554 fi
23555
23556 fi
23557 if test $rc -ne 0; then :
23558
837ca015 23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
23560$as_echo "no" >&6; }
23561
23562 else :
23563
837ca015 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
23565$as_echo "yes" >&6; }
23566
23567$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23568
23569
23570 fi
23571 fi
23572
23573
23574 else
23575 if test "x$enable_linux_builtin" != xyes; then
23576
23577 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23578 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23579 rc=$?
23580 if test $rc -ne 0; then
23581 export=0
23582 for file in mm/backing-dev.c; do
23583 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23584 "$LINUX/$file" 2>/dev/null
23585 rc=$?
23586 if test $rc -eq 0; then
23587 export=1
23588 break;
23589 fi
23590 done
23591 if test $export -eq 0; then :
23592 rc=1
23593 else :
23594 rc=0
23595 fi
23596 else :
23597 rc=0
23598 fi
23599
23600 fi
23601 if test $rc -ne 0; then :
23602
837ca015 23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2 23604$as_echo "no" >&6; }
837ca015 23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
70e083d2
TG
23606$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23607
23608
23609
23610cat confdefs.h - <<_ACEOF >conftest.c
23611
23612
837ca015
CIK
23613 #include <linux/backing-dev.h>
23614 struct backing_dev_info bdi;
70e083d2
TG
23615
23616int
23617main (void)
23618{
23619
837ca015
CIK
23620 char *name = "bdi";
23621 unsigned int cap = BDI_CAP_MAP_COPY;
23622 int error __attribute__((unused)) =
23623 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
23624
23625 ;
23626 return 0;
23627}
23628
23629_ACEOF
23630
23631
23632
23633cat - <<_ACEOF >conftest.h
23634
23635_ACEOF
23636
23637
23638 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23639 echo "obj-m := conftest.o" >build/Makefile
23640 modpost_flag=''
23641 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23642 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'
23643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23644 (eval $ac_try) 2>&5
23645 ac_status=$?
23646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23647 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23652 test $ac_status = 0; }; }; then :
23653 rc=0
23654else
23655 $as_echo "$as_me: failed program was:" >&5
23656sed 's/^/| /' conftest.$ac_ext >&5
23657 rc=1
23658
23659
23660fi
23661 rm -Rf build
23662
23663
23664 if test $rc -ne 0; then :
23665
837ca015 23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
23667$as_echo "no" >&6; }
23668
23669 else
23670 if test "x$enable_linux_builtin" != xyes; then
23671
23672 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23673 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23674 rc=$?
23675 if test $rc -ne 0; then
23676 export=0
23677 for file in mm/backing-dev.c; do
23678 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23679 "$LINUX/$file" 2>/dev/null
23680 rc=$?
23681 if test $rc -eq 0; then
23682 export=1
23683 break;
23684 fi
23685 done
23686 if test $export -eq 0; then :
23687 rc=1
23688 else :
23689 rc=0
23690 fi
23691 else :
23692 rc=0
23693 fi
23694
23695 fi
23696 if test $rc -ne 0; then :
23697
837ca015 23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
23699$as_echo "no" >&6; }
23700
23701 else :
23702
837ca015 23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
23704$as_echo "yes" >&6; }
23705
23706$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23707
23708
23709 fi
23710 fi
23711
23712
23713 else :
23714
837ca015 23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
23716$as_echo "yes" >&6; }
23717
23718$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23719
23720
23721 fi
23722 fi
23723
23724
837ca015
CIK
23725 else
23726 if test "x$enable_linux_builtin" != xyes; then
23727
23728 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23730 rc=$?
23731 if test $rc -ne 0; then
23732 export=0
23733 for file in fs/super.c; do
23734 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23735 "$LINUX/$file" 2>/dev/null
23736 rc=$?
23737 if test $rc -eq 0; then
23738 export=1
23739 break;
23740 fi
23741 done
23742 if test $export -eq 0; then :
23743 rc=1
23744 else :
23745 rc=0
23746 fi
23747 else :
23748 rc=0
23749 fi
23750
23751 fi
23752 if test $rc -ne 0; then :
23753
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23755$as_echo "no" >&6; }
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23757$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
70e083d2 23758
70e083d2
TG
23759
23760
23761cat confdefs.h - <<_ACEOF >conftest.c
23762
23763
837ca015
CIK
23764 #include <linux/backing-dev.h>
23765 struct backing_dev_info bdi;
70e083d2
TG
23766
23767int
23768main (void)
23769{
23770
837ca015
CIK
23771 char *name = "bdi";
23772 int error __attribute__((unused)) =
23773 bdi_setup_and_register(&bdi, name);
70e083d2
TG
23774
23775 ;
23776 return 0;
23777}
23778
23779_ACEOF
23780
23781
23782
23783cat - <<_ACEOF >conftest.h
23784
23785_ACEOF
23786
23787
23788 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23789 echo "obj-m := conftest.o" >build/Makefile
23790 modpost_flag=''
23791 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23792 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'
23793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794 (eval $ac_try) 2>&5
23795 ac_status=$?
23796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799 (eval $ac_try) 2>&5
23800 ac_status=$?
23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802 test $ac_status = 0; }; }; then :
837ca015 23803 rc=0
70e083d2
TG
23804else
23805 $as_echo "$as_me: failed program was:" >&5
23806sed 's/^/| /' conftest.$ac_ext >&5
837ca015 23807 rc=1
70e083d2
TG
23808
23809
23810fi
23811 rm -Rf build
23812
23813
837ca015 23814 if test $rc -ne 0; then :
70e083d2 23815
837ca015
CIK
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817$as_echo "no" >&6; }
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23819$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
70e083d2 23820
70e083d2
TG
23821
23822
23823cat confdefs.h - <<_ACEOF >conftest.c
23824
23825
837ca015
CIK
23826 #include <linux/backing-dev.h>
23827 struct backing_dev_info bdi;
70e083d2
TG
23828
23829int
23830main (void)
23831{
23832
837ca015
CIK
23833 char *name = "bdi";
23834 unsigned int cap = BDI_CAP_MAP_COPY;
23835 int error __attribute__((unused)) =
23836 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
23837
23838 ;
23839 return 0;
23840}
23841
23842_ACEOF
23843
23844
23845
23846cat - <<_ACEOF >conftest.h
23847
23848_ACEOF
23849
23850
23851 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23852 echo "obj-m := conftest.o" >build/Makefile
23853 modpost_flag=''
23854 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23855 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'
23856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23860 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865 test $ac_status = 0; }; }; then :
837ca015
CIK
23866 rc=0
23867else
23868 $as_echo "$as_me: failed program was:" >&5
23869sed 's/^/| /' conftest.$ac_ext >&5
23870 rc=1
70e083d2 23871
70e083d2 23872
837ca015
CIK
23873fi
23874 rm -Rf build
70e083d2
TG
23875
23876
837ca015 23877 if test $rc -ne 0; then :
70e083d2 23878
837ca015 23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
23880$as_echo "no" >&6; }
23881
837ca015
CIK
23882 else
23883 if test "x$enable_linux_builtin" != xyes; then
70e083d2 23884
837ca015
CIK
23885 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23886 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23887 rc=$?
23888 if test $rc -ne 0; then
23889 export=0
23890 for file in mm/backing-dev.c; do
23891 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23892 "$LINUX/$file" 2>/dev/null
23893 rc=$?
23894 if test $rc -eq 0; then
23895 export=1
23896 break;
23897 fi
23898 done
23899 if test $export -eq 0; then :
23900 rc=1
23901 else :
23902 rc=0
23903 fi
23904 else :
23905 rc=0
23906 fi
70e083d2 23907
837ca015
CIK
23908 fi
23909 if test $rc -ne 0; then :
70e083d2 23910
837ca015
CIK
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912$as_echo "no" >&6; }
70e083d2 23913
837ca015
CIK
23914 else :
23915
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23917$as_echo "yes" >&6; }
23918
23919$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23920
23921
23922 fi
23923 fi
23924
23925
23926 else
23927 if test "x$enable_linux_builtin" != xyes; then
23928
23929 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23930 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23931 rc=$?
23932 if test $rc -ne 0; then
23933 export=0
23934 for file in mm/backing-dev.c; do
23935 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23936 "$LINUX/$file" 2>/dev/null
23937 rc=$?
23938 if test $rc -eq 0; then
23939 export=1
23940 break;
23941 fi
23942 done
23943 if test $export -eq 0; then :
23944 rc=1
23945 else :
23946 rc=0
23947 fi
23948 else :
23949 rc=0
23950 fi
23951
23952 fi
23953 if test $rc -ne 0; then :
23954
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956$as_echo "no" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23958$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
70e083d2 23959
70e083d2
TG
23960
23961
23962cat confdefs.h - <<_ACEOF >conftest.c
23963
23964
837ca015
CIK
23965 #include <linux/backing-dev.h>
23966 struct backing_dev_info bdi;
70e083d2
TG
23967
23968int
23969main (void)
23970{
23971
837ca015
CIK
23972 char *name = "bdi";
23973 unsigned int cap = BDI_CAP_MAP_COPY;
23974 int error __attribute__((unused)) =
23975 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
23976
23977 ;
23978 return 0;
23979}
23980
23981_ACEOF
23982
23983
23984
23985cat - <<_ACEOF >conftest.h
23986
23987_ACEOF
23988
23989
23990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23991 echo "obj-m := conftest.o" >build/Makefile
23992 modpost_flag=''
23993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23994 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'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24001 (eval $ac_try) 2>&5
24002 ac_status=$?
24003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24004 test $ac_status = 0; }; }; then :
837ca015 24005 rc=0
70e083d2
TG
24006else
24007 $as_echo "$as_me: failed program was:" >&5
24008sed 's/^/| /' conftest.$ac_ext >&5
837ca015 24009 rc=1
70e083d2 24010
837ca015
CIK
24011
24012fi
24013 rm -Rf build
24014
24015
24016 if test $rc -ne 0; then :
24017
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019$as_echo "no" >&6; }
24020
24021 else
24022 if test "x$enable_linux_builtin" != xyes; then
24023
24024 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24025 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24026 rc=$?
24027 if test $rc -ne 0; then
24028 export=0
24029 for file in mm/backing-dev.c; do
24030 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24031 "$LINUX/$file" 2>/dev/null
24032 rc=$?
24033 if test $rc -eq 0; then
24034 export=1
24035 break;
24036 fi
24037 done
24038 if test $export -eq 0; then :
24039 rc=1
24040 else :
24041 rc=0
24042 fi
24043 else :
24044 rc=0
24045 fi
24046
24047 fi
24048 if test $rc -ne 0; then :
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051$as_echo "no" >&6; }
24052
24053 else :
24054
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24056$as_echo "yes" >&6; }
24057
24058$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24059
24060
24061 fi
24062 fi
24063
24064
24065 else :
24066
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24068$as_echo "yes" >&6; }
24069
24070$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24071
24072
24073 fi
24074 fi
24075
24076
24077 else :
24078
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24080$as_echo "yes" >&6; }
24081
24082$as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24083
24084
24085 fi
24086 fi
24087
24088
24089
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24091$as_echo_n "checking whether set_nlink() is available... " >&6; }
24092
24093
24094cat confdefs.h - <<_ACEOF >conftest.c
24095
24096
24097 #include <linux/fs.h>
24098
24099int
24100main (void)
24101{
24102
24103 struct inode node;
24104 unsigned int link = 0;
24105 (void) set_nlink(&node, link);
24106
24107 ;
24108 return 0;
24109}
24110
24111_ACEOF
24112
24113
24114
24115cat - <<_ACEOF >conftest.h
24116
24117_ACEOF
24118
24119
24120 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24121 echo "obj-m := conftest.o" >build/Makefile
24122 modpost_flag=''
24123 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24124 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }; then :
24135
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24137$as_echo "yes" >&6; }
24138
24139$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24140
24141
24142else
24143 $as_echo "$as_me: failed program was:" >&5
24144sed 's/^/| /' conftest.$ac_ext >&5
24145
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24147$as_echo "no" >&6; }
24148
24149
24150
24151fi
24152 rm -Rf build
24153
24154
24155
24156
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24158$as_echo_n "checking whether elevator_change() is available... " >&6; }
24159 tmp_flags="$EXTRA_KCFLAGS"
24160 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24161
24162
24163cat confdefs.h - <<_ACEOF >conftest.c
24164
24165
24166 #include <linux/blkdev.h>
24167 #include <linux/elevator.h>
24168
24169int
24170main (void)
24171{
24172
24173 int ret;
24174 struct request_queue *q = NULL;
24175 char *elevator = NULL;
24176 ret = elevator_change(q, elevator);
24177
24178 ;
24179 return 0;
24180}
24181
24182_ACEOF
24183
24184
24185
24186cat - <<_ACEOF >conftest.h
24187
24188_ACEOF
24189
24190
24191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24192 echo "obj-m := conftest.o" >build/Makefile
24193 modpost_flag=''
24194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24195 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'
24196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }; then :
24206
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24208$as_echo "yes" >&6; }
24209
24210$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24211
24212
24213else
24214 $as_echo "$as_me: failed program was:" >&5
24215sed 's/^/| /' conftest.$ac_ext >&5
24216
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218$as_echo "no" >&6; }
24219
24220
24221
24222fi
24223 rm -Rf build
24224
24225
24226 EXTRA_KCFLAGS="$tmp_flags"
24227
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24229$as_echo_n "checking whether sget() wants 5 args... " >&6; }
24230
24231
24232cat confdefs.h - <<_ACEOF >conftest.c
24233
24234
24235 #include <linux/fs.h>
24236
24237int
24238main (void)
24239{
24240
24241 struct file_system_type *type = NULL;
24242 int (*test)(struct super_block *,void *) = NULL;
24243 int (*set)(struct super_block *,void *) = NULL;
24244 int flags = 0;
24245 void *data = NULL;
24246 (void) sget(type, test, set, flags, data);
24247
24248 ;
24249 return 0;
24250}
24251
24252_ACEOF
24253
24254
24255
24256cat - <<_ACEOF >conftest.h
24257
24258_ACEOF
24259
24260
24261 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24262 echo "obj-m := conftest.o" >build/Makefile
24263 modpost_flag=''
24264 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24265 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'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24273 ac_status=$?
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }; then :
24276
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278$as_echo "yes" >&6; }
24279
24280$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24281
24282
24283else
24284 $as_echo "$as_me: failed program was:" >&5
24285sed 's/^/| /' conftest.$ac_ext >&5
24286
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24288$as_echo "no" >&6; }
70e083d2
TG
24289
24290
24291
24292fi
24293 rm -Rf build
24294
24295
24296
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24298$as_echo_n "checking whether lseek_execute() is available... " >&6; }
24299
24300
24301
24302cat confdefs.h - <<_ACEOF >conftest.c
24303
24304
24305 #include <linux/fs.h>
24306
24307int
24308main (void)
24309{
24310
24311 struct file *fp __attribute__ ((unused)) = NULL;
24312 struct inode *ip __attribute__ ((unused)) = NULL;
24313 loff_t offset __attribute__ ((unused)) = 0;
24314 loff_t maxsize __attribute__ ((unused)) = 0;
24315
24316 lseek_execute(fp, ip, offset, maxsize);
24317
24318 ;
24319 return 0;
24320}
24321
24322_ACEOF
24323
24324
24325
24326cat - <<_ACEOF >conftest.h
24327
24328_ACEOF
24329
24330
24331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24332 echo "obj-m := conftest.o" >build/Makefile
24333 modpost_flag=''
24334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24335 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'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24342 (eval $ac_try) 2>&5
24343 ac_status=$?
24344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24345 test $ac_status = 0; }; }; then :
24346 rc=0
24347else
24348 $as_echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350 rc=1
24351
24352
24353fi
24354 rm -Rf build
24355
24356
24357 if test $rc -ne 0; then :
24358
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24360$as_echo "no" >&6; }
24361
24362 else
24363 if test "x$enable_linux_builtin" != xyes; then
24364
24365 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24366 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24367 rc=$?
24368 if test $rc -ne 0; then
24369 export=0
24370 for file in fs/read_write.c; do
24371 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24372 "$LINUX/$file" 2>/dev/null
24373 rc=$?
24374 if test $rc -eq 0; then
24375 export=1
24376 break;
24377 fi
24378 done
24379 if test $export -eq 0; then :
24380 rc=1
24381 else :
24382 rc=0
24383 fi
24384 else :
24385 rc=0
24386 fi
24387
24388 fi
24389 if test $rc -ne 0; then :
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392$as_echo "no" >&6; }
24393
24394 else :
24395
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24397$as_echo "yes" >&6; }
24398
24399$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24400
24401
24402 fi
24403 fi
24404
24405
24406
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24408$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24409
24410
24411cat confdefs.h - <<_ACEOF >conftest.c
24412
24413
24414 #include <linux/fs.h>
24415 int iterate(struct file *filp, struct dir_context * context)
24416 { return 0; }
24417
24418 static const struct file_operations fops
24419 __attribute__ ((unused)) = {
24420 .iterate_shared = iterate,
24421 };
24422
24423int
24424main (void)
24425{
24426
24427
24428 ;
24429 return 0;
24430}
24431
24432_ACEOF
24433
24434
24435
24436cat - <<_ACEOF >conftest.h
24437
24438_ACEOF
24439
24440
24441 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24442 echo "obj-m := conftest.o" >build/Makefile
24443 modpost_flag=''
24444 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24445 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'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24453 ac_status=$?
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; }; then :
24456
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24458$as_echo "yes" >&6; }
24459
24460$as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24461
24462
24463else
24464 $as_echo "$as_me: failed program was:" >&5
24465sed 's/^/| /' conftest.$ac_ext >&5
24466
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24468$as_echo "no" >&6; }
24469
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24471$as_echo_n "checking whether fops->iterate() is available... " >&6; }
24472
24473
24474cat confdefs.h - <<_ACEOF >conftest.c
24475
24476
24477 #include <linux/fs.h>
24478 int iterate(struct file *filp, struct dir_context * context)
24479 { return 0; }
24480
24481 static const struct file_operations fops
24482 __attribute__ ((unused)) = {
24483 .iterate = iterate,
24484 };
24485
24486int
24487main (void)
24488{
24489
24490
24491 ;
24492 return 0;
24493}
24494
24495_ACEOF
24496
24497
24498
24499cat - <<_ACEOF >conftest.h
24500
24501_ACEOF
24502
24503
24504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24505 echo "obj-m := conftest.o" >build/Makefile
24506 modpost_flag=''
24507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24508 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'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }; then :
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24521$as_echo "yes" >&6; }
24522
24523$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24524
24525
24526else
24527 $as_echo "$as_me: failed program was:" >&5
24528sed 's/^/| /' conftest.$ac_ext >&5
24529
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24531$as_echo "no" >&6; }
24532
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24534$as_echo_n "checking whether fops->readdir() is available... " >&6; }
24535
24536
24537cat confdefs.h - <<_ACEOF >conftest.c
24538
24539
24540 #include <linux/fs.h>
24541 int readdir(struct file *filp, void *entry, filldir_t func)
24542 { return 0; }
24543
24544 static const struct file_operations fops
24545 __attribute__ ((unused)) = {
24546 .readdir = readdir,
24547 };
24548
24549int
24550main (void)
24551{
24552
24553
24554 ;
24555 return 0;
24556}
24557
24558_ACEOF
24559
24560
24561
24562cat - <<_ACEOF >conftest.h
24563
24564_ACEOF
24565
24566
24567 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24568 echo "obj-m := conftest.o" >build/Makefile
24569 modpost_flag=''
24570 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24571 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'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24574 ac_status=$?
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; }; then :
24582
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24584$as_echo "yes" >&6; }
24585
24586$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24587
24588
24589else
24590 $as_echo "$as_me: failed program was:" >&5
24591sed 's/^/| /' conftest.$ac_ext >&5
24592
24593 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
24594
24595
24596
24597fi
24598 rm -Rf build
24599
24600
24601
24602
24603
24604fi
24605 rm -Rf build
24606
24607
24608
24609
24610
24611fi
24612 rm -Rf build
24613
24614
24615
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24617$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24618
24619
24620cat confdefs.h - <<_ACEOF >conftest.c
24621
24622
24623 #include <linux/fs.h>
24624
24625 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24626 { return 0; }
24627 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24628 { return 0; }
24629
24630 static const struct file_operations
24631 fops __attribute__ ((unused)) = {
24632 .read_iter = test_read,
24633 .write_iter = test_write,
24634 };
24635
24636int
24637main (void)
24638{
24639
24640
24641 ;
24642 return 0;
24643}
24644
24645_ACEOF
24646
24647
24648
24649cat - <<_ACEOF >conftest.h
24650
24651_ACEOF
24652
24653
24654 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24655 echo "obj-m := conftest.o" >build/Makefile
24656 modpost_flag=''
24657 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24658 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'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }; then :
24669
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24671$as_echo "yes" >&6; }
24672
24673$as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24674
24675
9784fa9e
CIK
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24677$as_echo_n "checking whether new_sync_read() is available... " >&6; }
24678
24679
24680cat confdefs.h - <<_ACEOF >conftest.c
24681
24682
24683 #include <linux/fs.h>
24684
24685int
24686main (void)
24687{
24688
24689 new_sync_read(NULL, NULL, 0, NULL);
24690
24691 ;
24692 return 0;
24693}
24694
24695_ACEOF
24696
24697
24698
24699cat - <<_ACEOF >conftest.h
24700
24701_ACEOF
24702
24703
24704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24705 echo "obj-m := conftest.o" >build/Makefile
24706 modpost_flag=''
24707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24708 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'
24709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24713 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }; then :
24719
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24721$as_echo "yes" >&6; }
24722
24723$as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24724
24725
24726else
24727 $as_echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24731$as_echo "no" >&6; }
24732
24733
24734
24735fi
24736 rm -Rf build
24737
24738
24739
24740
70e083d2
TG
24741else
24742 $as_echo "$as_me: failed program was:" >&5
24743sed 's/^/| /' conftest.$ac_ext >&5
24744
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24746$as_echo "no" >&6; }
24747
24748
24749
24750fi
24751 rm -Rf build
24752
24753
24754
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24756$as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24757
24758
24759cat confdefs.h - <<_ACEOF >conftest.c
24760
24761
24762 #include <linux/fs.h>
24763
24764
24765int
24766main (void)
24767{
24768
24769 struct kiocb *iocb = NULL;
24770 struct iov_iter *iov = NULL;
24771 generic_write_checks(iocb, iov);
24772
24773 ;
24774 return 0;
24775}
24776
24777_ACEOF
24778
24779
24780
24781cat - <<_ACEOF >conftest.h
24782
24783_ACEOF
24784
24785
24786 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24787 echo "obj-m := conftest.o" >build/Makefile
24788 modpost_flag=''
24789 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24790 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'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24800 test $ac_status = 0; }; }; then :
24801
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24803$as_echo "yes" >&6; }
24804
24805$as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24806
24807
24808else
24809 $as_echo "$as_me: failed program was:" >&5
24810sed 's/^/| /' conftest.$ac_ext >&5
24811
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24813$as_echo "no" >&6; }
24814
24815
24816
24817fi
24818 rm -Rf build
24819
24820
24821
24822
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24824$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24825
24826
24827cat confdefs.h - <<_ACEOF >conftest.c
24828
24829
24830 #include <linux/pagemap.h>
24831
24832int
24833main (void)
24834{
24835
24836 struct page page;
24837 kmap_atomic(&page);
24838
24839 ;
24840 return 0;
24841}
24842
24843_ACEOF
24844
24845
24846
24847cat - <<_ACEOF >conftest.h
24848
24849_ACEOF
24850
24851
24852 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24853 echo "obj-m := conftest.o" >build/Makefile
24854 modpost_flag=''
24855 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24856 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'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
24867
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24869$as_echo "yes" >&6; }
24870
24871$as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24872
24873
24874else
24875 $as_echo "$as_me: failed program was:" >&5
24876sed 's/^/| /' conftest.$ac_ext >&5
24877
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24879$as_echo "no" >&6; }
24880
24881
24882
24883fi
24884 rm -Rf build
24885
24886
24887
24888
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24890$as_echo_n "checking whether follow_down_one() is available... " >&6; }
24891
24892
24893cat confdefs.h - <<_ACEOF >conftest.c
24894
24895
24896 #include <linux/namei.h>
24897
24898int
24899main (void)
24900{
24901
24902 struct path *p = NULL;
24903 follow_down_one(p);
24904
24905 ;
24906 return 0;
24907}
24908
24909_ACEOF
24910
24911
24912
24913cat - <<_ACEOF >conftest.h
24914
24915_ACEOF
24916
24917
24918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24919 echo "obj-m := conftest.o" >build/Makefile
24920 modpost_flag=''
24921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24922 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'
24923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24924 (eval $ac_try) 2>&5
24925 ac_status=$?
24926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24927 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
24933
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24935$as_echo "yes" >&6; }
24936
24937$as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24938
24939
24940else
24941 $as_echo "$as_me: failed program was:" >&5
24942sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24945$as_echo "no" >&6; }
24946
24947
24948
24949fi
24950 rm -Rf build
24951
24952
24953
24954
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24956$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24957
24958
24959cat confdefs.h - <<_ACEOF >conftest.c
24960
24961
24962 #include <linux/blkdev.h>
24963
24964 int make_request(struct request_queue *q, struct bio *bio)
24965 {
24966 return (0);
24967 }
24968
24969int
24970main (void)
24971{
24972
24973 blk_queue_make_request(NULL, &make_request);
24974
24975 ;
24976 return 0;
24977}
24978
24979_ACEOF
24980
24981
24982
24983cat - <<_ACEOF >conftest.h
24984
24985_ACEOF
24986
24987
24988 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24989 echo "obj-m := conftest.o" >build/Makefile
24990 modpost_flag=''
24991 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24992 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'
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }; then :
25003
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25005$as_echo "yes" >&6; }
25006
25007$as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
25008
25009
25010$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
25011
25012
25013else
25014 $as_echo "$as_me: failed program was:" >&5
25015sed 's/^/| /' conftest.$ac_ext >&5
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018$as_echo "no" >&6; }
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
25020$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
25021
25022
25023cat confdefs.h - <<_ACEOF >conftest.c
25024
25025
25026 #include <linux/blkdev.h>
25027
25028 void make_request(struct request_queue *q, struct bio *bio)
25029 {
25030 return;
25031 }
25032
25033int
25034main (void)
25035{
25036
25037 blk_queue_make_request(NULL, &make_request);
25038
25039 ;
25040 return 0;
25041}
25042
25043_ACEOF
25044
25045
25046
25047cat - <<_ACEOF >conftest.h
25048
25049_ACEOF
25050
25051
25052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25053 echo "obj-m := conftest.o" >build/Makefile
25054 modpost_flag=''
25055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25056 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'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
25067
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25069$as_echo "yes" >&6; }
25070
25071$as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25072
25073
25074else
25075 $as_echo "$as_me: failed program was:" >&5
25076sed 's/^/| /' conftest.$ac_ext >&5
25077
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25079$as_echo "no" >&6; }
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25081$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25082
25083
25084cat confdefs.h - <<_ACEOF >conftest.c
25085
25086
25087 #include <linux/blkdev.h>
25088
25089 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25090 {
25091 return (BLK_QC_T_NONE);
25092 }
25093
25094int
25095main (void)
25096{
25097
25098 blk_queue_make_request(NULL, &make_request);
25099
25100 ;
25101 return 0;
25102}
25103
25104_ACEOF
25105
25106
25107
25108cat - <<_ACEOF >conftest.h
25109
25110_ACEOF
25111
25112
25113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25114 echo "obj-m := conftest.o" >build/Makefile
25115 modpost_flag=''
25116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25117 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'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }; then :
25128
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130$as_echo "yes" >&6; }
25131
25132$as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25133
25134
25135$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25136
25137
25138else
25139 $as_echo "$as_me: failed program was:" >&5
25140sed 's/^/| /' conftest.$ac_ext >&5
25141
25142 as_fn_error $? "no - Please file a bug report at
25143 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25144
25145
25146
25147fi
25148 rm -Rf build
25149
25150
25151
25152
25153
25154fi
25155 rm -Rf build
25156
25157
25158
25159
25160
25161fi
25162 rm -Rf build
25163
25164
25165
25166
86e3c28a
CIK
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25168$as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
70e083d2
TG
25169
25170
25171
25172cat confdefs.h - <<_ACEOF >conftest.c
25173
25174
25175 #include <linux/bio.h>
25176
25177 void (*generic_start_io_acct_f)(int, unsigned long,
25178 struct hd_struct *) = &generic_start_io_acct;
25179 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25180 unsigned long) = &generic_end_io_acct;
25181
25182int
25183main (void)
25184{
25185
25186 generic_start_io_acct(0, 0, NULL);
25187 generic_end_io_acct(0, NULL, 0);
25188
25189 ;
25190 return 0;
25191}
25192
25193_ACEOF
25194
25195
25196
25197cat - <<_ACEOF >conftest.h
25198
25199_ACEOF
25200
25201
25202 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25203 echo "obj-m := conftest.o" >build/Makefile
25204 modpost_flag=''
25205 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25206 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'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25209 ac_status=$?
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }; then :
25217 rc=0
25218else
25219 $as_echo "$as_me: failed program was:" >&5
25220sed 's/^/| /' conftest.$ac_ext >&5
25221 rc=1
25222
25223
25224fi
25225 rm -Rf build
25226
25227
25228 if test $rc -ne 0; then :
25229
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25231$as_echo "no" >&6; }
25232
25233 else
25234 if test "x$enable_linux_builtin" != xyes; then
25235
25236 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25237 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25238 rc=$?
25239 if test $rc -ne 0; then
25240 export=0
25241 for file in block/bio.c; do
25242 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25243 "$LINUX/$file" 2>/dev/null
25244 rc=$?
25245 if test $rc -eq 0; then
25246 export=1
25247 break;
25248 fi
25249 done
25250 if test $export -eq 0; then :
25251 rc=1
25252 else :
25253 rc=0
25254 fi
25255 else :
25256 rc=0
25257 fi
25258
25259 fi
25260 if test $rc -ne 0; then :
25261
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25263$as_echo "no" >&6; }
25264
25265 else :
25266
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25268$as_echo "yes" >&6; }
25269
86e3c28a 25270$as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
70e083d2
TG
25271
25272
25273 fi
25274 fi
25275
25276
25277
86e3c28a
CIK
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25279$as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25280
70e083d2
TG
25281
25282
25283cat confdefs.h - <<_ACEOF >conftest.c
25284
25285
86e3c28a 25286 #include <linux/bio.h>
70e083d2 25287
86e3c28a
CIK
25288 void (*generic_start_io_acct_f)(struct request_queue *, int,
25289 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25290 void (*generic_end_io_acct_f)(struct request_queue *, int,
25291 struct hd_struct *, unsigned long) = &generic_end_io_acct;
70e083d2
TG
25292
25293int
25294main (void)
25295{
25296
86e3c28a
CIK
25297 generic_start_io_acct(NULL, 0, 0, NULL);
25298 generic_end_io_acct(NULL, 0, NULL, 0);
70e083d2
TG
25299
25300 ;
25301 return 0;
25302}
25303
25304_ACEOF
25305
25306
25307
25308cat - <<_ACEOF >conftest.h
25309
25310_ACEOF
25311
25312
25313 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25314 echo "obj-m := conftest.o" >build/Makefile
25315 modpost_flag=''
25316 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25317 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'
25318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319 (eval $ac_try) 2>&5
25320 ac_status=$?
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }; then :
86e3c28a
CIK
25328 rc=0
25329else
25330 $as_echo "$as_me: failed program was:" >&5
25331sed 's/^/| /' conftest.$ac_ext >&5
25332 rc=1
25333
25334
25335fi
25336 rm -Rf build
25337
25338
25339 if test $rc -ne 0; then :
25340
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342$as_echo "no" >&6; }
25343
25344 else
25345 if test "x$enable_linux_builtin" != xyes; then
25346
25347 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25348 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25349 rc=$?
25350 if test $rc -ne 0; then
25351 export=0
25352 for file in block/bio.c; do
25353 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25354 "$LINUX/$file" 2>/dev/null
25355 rc=$?
25356 if test $rc -eq 0; then
25357 export=1
25358 break;
25359 fi
25360 done
25361 if test $export -eq 0; then :
25362 rc=1
25363 else :
25364 rc=0
25365 fi
25366 else :
25367 rc=0
25368 fi
25369
25370 fi
25371 if test $rc -ne 0; then :
25372
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25374$as_echo "no" >&6; }
25375
25376 else :
70e083d2
TG
25377
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25379$as_echo "yes" >&6; }
25380
86e3c28a
CIK
25381$as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25382
25383
25384 fi
25385 fi
25386
25387
25388
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25390$as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25391
25392
25393cat confdefs.h - <<_ACEOF >conftest.c
25394
25395
25396 #include <linux/kernel.h>
25397 #include <asm/fpu/api.h>
25398
25399int
25400main (void)
25401{
25402
25403 __kernel_fpu_begin();
25404
25405 ;
25406 return 0;
25407}
25408
25409_ACEOF
25410
25411
25412
25413cat - <<_ACEOF >conftest.h
25414
25415_ACEOF
25416
25417
25418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25419 echo "obj-m := conftest.o" >build/Makefile
25420 modpost_flag=''
25421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25422 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'
25423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }; then :
25433
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25435$as_echo "yes" >&6; }
25436
25437$as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
837ca015
CIK
25438
25439
25440else
25441 $as_echo "$as_me: failed program was:" >&5
25442sed 's/^/| /' conftest.$ac_ext >&5
25443
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25445$as_echo "no" >&6; }
25446
25447
25448
25449fi
25450 rm -Rf build
25451
25452
25453
25454
86e3c28a
CIK
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25456$as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
837ca015
CIK
25457
25458
25459cat confdefs.h - <<_ACEOF >conftest.c
25460
25461
25462 #include <linux/fs.h>
837ca015 25463
86e3c28a
CIK
25464int
25465main (void)
25466{
25467
25468 struct inode *ip = NULL;
25469 (void) i_uid_read(ip);
25470
25471 ;
25472 return 0;
25473}
25474
25475_ACEOF
25476
25477
25478
25479cat - <<_ACEOF >conftest.h
25480
25481_ACEOF
25482
25483
25484 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25485 echo "obj-m := conftest.o" >build/Makefile
25486 modpost_flag=''
25487 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25488 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'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }; then :
25499
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25501$as_echo "yes" >&6; }
25502
25503$as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25504
25505
25506else
25507 $as_echo "$as_me: failed program was:" >&5
25508sed 's/^/| /' conftest.$ac_ext >&5
25509
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25511$as_echo "no" >&6; }
25512
25513
25514
25515fi
25516 rm -Rf build
25517
25518
25519
25520
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25522$as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25523
25524
25525cat confdefs.h - <<_ACEOF >conftest.c
25526
25527
25528 #include <linux/module.h>
25529 #include <linux/moduleparam.h>
25530
25531 int param_get(char *b, const struct kernel_param *kp)
25532 {
25533 return (0);
25534 }
25535
25536 int param_set(const char *b, const struct kernel_param *kp)
25537 {
25538 return (0);
25539 }
25540
25541 module_param_call(p, param_set, param_get, NULL, 0644);
837ca015
CIK
25542
25543int
25544main (void)
25545{
25546
25547
25548 ;
25549 return 0;
25550}
25551
25552_ACEOF
25553
25554
25555
25556cat - <<_ACEOF >conftest.h
25557
25558_ACEOF
25559
25560
25561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25562 echo "obj-m := conftest.o" >build/Makefile
25563 modpost_flag=''
25564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25565 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'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }; then :
25576
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25578$as_echo "yes" >&6; }
25579
86e3c28a 25580$as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
70e083d2
TG
25581
25582
25583else
25584 $as_echo "$as_me: failed program was:" >&5
25585sed 's/^/| /' conftest.$ac_ext >&5
25586
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25588$as_echo "no" >&6; }
25589
25590
25591
25592fi
25593 rm -Rf build
25594
25595
25596
25597
86e3c28a
CIK
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25599$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
70e083d2
TG
25600
25601
25602cat confdefs.h - <<_ACEOF >conftest.c
25603
25604
25605 #include <linux/fs.h>
86e3c28a
CIK
25606 int rename_fn(struct inode *sip, struct dentry *sdp,
25607 struct inode *tip, struct dentry *tdp,
25608 unsigned int flags) { return 0; }
25609
25610 static const struct inode_operations
25611 iops __attribute__ ((unused)) = {
25612 .rename = rename_fn,
25613 };
70e083d2
TG
25614
25615int
25616main (void)
25617{
25618
86e3c28a
CIK
25619
25620 ;
25621 return 0;
25622}
25623
25624_ACEOF
25625
25626
25627
25628cat - <<_ACEOF >conftest.h
25629
25630_ACEOF
25631
25632
25633 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25634 echo "obj-m := conftest.o" >build/Makefile
25635 modpost_flag=''
25636 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25637 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'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644 (eval $ac_try) 2>&5
25645 ac_status=$?
25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647 test $ac_status = 0; }; }; then :
25648
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25650$as_echo "yes" >&6; }
25651
25652$as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25653
25654
25655else
25656 $as_echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25660$as_echo "no" >&6; }
25661
25662
25663
25664fi
25665 rm -Rf build
25666
25667
25668
25669
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25671$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25672
25673
25674cat confdefs.h - <<_ACEOF >conftest.c
25675
25676
25677 #include <linux/fs.h>
25678 #include <linux/xattr.h>
25679
25680 static const struct inode_operations
25681 iops __attribute__ ((unused)) = {
25682 .setxattr = generic_setxattr
25683 };
25684
25685int
25686main (void)
25687{
25688
25689
25690 ;
25691 return 0;
25692}
25693
25694_ACEOF
25695
25696
25697
25698cat - <<_ACEOF >conftest.h
25699
25700_ACEOF
25701
25702
25703 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25704 echo "obj-m := conftest.o" >build/Makefile
25705 modpost_flag=''
25706 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25707 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'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }; then :
25718
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25720$as_echo "yes" >&6; }
25721
25722$as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25723
25724
25725else
25726 $as_echo "$as_me: failed program was:" >&5
25727sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25730$as_echo "no" >&6; }
25731
25732
25733
25734fi
25735 rm -Rf build
25736
25737
25738
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25740$as_echo_n "checking whether current_time() exists... " >&6; }
25741
25742
25743
25744cat confdefs.h - <<_ACEOF >conftest.c
25745
25746
25747 #include <linux/fs.h>
25748
25749int
25750main (void)
25751{
25752
25753 struct inode ip;
25754 struct timespec now __attribute__ ((unused));
25755
25756 now = current_time(&ip);
70e083d2
TG
25757
25758 ;
25759 return 0;
25760}
25761
25762_ACEOF
25763
25764
25765
25766cat - <<_ACEOF >conftest.h
25767
25768_ACEOF
25769
25770
25771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25772 echo "obj-m := conftest.o" >build/Makefile
25773 modpost_flag=''
25774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25775 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'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }; then :
837ca015
CIK
25786 rc=0
25787else
86e3c28a
CIK
25788 $as_echo "$as_me: failed program was:" >&5
25789sed 's/^/| /' conftest.$ac_ext >&5
25790 rc=1
25791
25792
25793fi
25794 rm -Rf build
25795
25796
25797 if test $rc -ne 0; then :
25798
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25800$as_echo "no" >&6; }
25801
25802 else
25803 if test "x$enable_linux_builtin" != xyes; then
25804
25805 grep -q -E '[[:space:]]current_time[[:space:]]' \
25806 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25807 rc=$?
25808 if test $rc -ne 0; then
25809 export=0
25810 for file in fs/inode.c; do
25811 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25812 "$LINUX/$file" 2>/dev/null
25813 rc=$?
25814 if test $rc -eq 0; then
25815 export=1
25816 break;
25817 fi
25818 done
25819 if test $export -eq 0; then :
25820 rc=1
25821 else :
25822 rc=0
25823 fi
25824 else :
25825 rc=0
25826 fi
25827
25828 fi
25829 if test $rc -ne 0; then :
25830
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25832$as_echo "no" >&6; }
25833
25834 else :
25835
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25837$as_echo "yes" >&6; }
25838
25839$as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25840
25841
25842 fi
25843 fi
25844
25845
25846
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25848$as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25849
25850
25851cat confdefs.h - <<_ACEOF >conftest.c
25852
25853
25854 #include <linux/mm.h>
25855 #include <linux/vmstat.h>
25856
25857int
25858main (void)
25859{
25860
25861 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25862 long x __attribute__ ((unused)) =
25863 atomic_long_read(&vm_node_stat[0]);
25864 (void) global_node_page_state(0);
25865
25866 ;
25867 return 0;
25868}
25869
25870_ACEOF
25871
25872
25873
25874cat - <<_ACEOF >conftest.h
25875
25876_ACEOF
25877
25878
25879 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25880 echo "obj-m := conftest.o" >build/Makefile
25881 modpost_flag=''
25882 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25883 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'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893 test $ac_status = 0; }; }; then :
25894
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25896$as_echo "yes" >&6; }
25897
25898$as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25899
25900
25901else
25902 $as_echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25906$as_echo "no" >&6; }
25907
25908
25909
25910fi
25911 rm -Rf build
25912
25913
25914
25915
25916 if test "$LINUX_OBJ" != "$LINUX"; then :
25917
25918 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25919
25920fi
25921
25922
25923
25924 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
25925 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
25926 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25927 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
25928 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25929 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25930
25931
25932 ;;
25933 user)
25934
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
25936$as_echo_n "checking for dkms.conf file... " >&6; }
25937 if test -e dkms.conf; then :
25938
25939 as_fn_error $? "
25940 *** ZFS should not be manually built in the DKMS source tree.
25941 *** Remove all ZFS packages before compiling the ZoL sources.
25942 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
25943
25944else
25945
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25947$as_echo "not found" >&6; }
25948
25949fi
25950
25951
25952
25953# Check whether --with-mounthelperdir was given.
25954if test "${with_mounthelperdir+set}" = set; then :
25955 withval=$with_mounthelperdir; mounthelperdir=$withval
25956else
25957 mounthelperdir=/sbin
25958fi
25959
25960
25961
25962
25963
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
25965$as_echo_n "checking for udev directories... " >&6; }
25966
25967# Check whether --with-udevdir was given.
25968if test "${with_udevdir+set}" = set; then :
25969 withval=$with_udevdir; udevdir=$withval
25970else
25971 udevdir=check
25972fi
25973
25974
25975 if test "x$udevdir" = xcheck; then :
25976
25977 path1=/lib/udev
25978 path2=/usr/lib/udev
25979 default=$path2
25980
25981 if test -d "$path1"; then :
25982 udevdir="$path1"
25983else
25984
25985 if test -d "$path2"; then :
25986 udevdir="$path2"
25987else
25988 udevdir="$default"
25989fi
25990
25991fi
25992
25993fi
25994
25995
25996# Check whether --with-udevruledir was given.
25997if test "${with_udevruledir+set}" = set; then :
25998 withval=$with_udevruledir; udevruledir=$withval
25999else
26000 udevruledir="${udevdir}/rules.d"
26001fi
26002
26003
26004
26005
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26007$as_echo "$udevdir;$udevruledir" >&6; }
26008
26009
26010 # Check whether --enable-systemd was given.
26011if test "${enable_systemd+set}" = set; then :
26012 enableval=$enable_systemd;
26013else
26014 enable_systemd=yes
26015fi
26016
26017
26018
26019# Check whether --with-systemdunitdir was given.
26020if test "${with_systemdunitdir+set}" = set; then :
26021 withval=$with_systemdunitdir; systemdunitdir=$withval
26022else
26023 systemdunitdir=/usr/lib/systemd/system
26024fi
26025
26026
26027
26028# Check whether --with-systemdpresetdir was given.
26029if test "${with_systemdpresetdir+set}" = set; then :
26030 withval=$with_systemdpresetdir; systemdpresetdir=$withval
26031else
26032 systemdpresetdir=/usr/lib/systemd/system-preset
26033fi
26034
26035
26036
26037# Check whether --with-systemdmodulesloaddir was given.
26038if test "${with_systemdmodulesloaddir+set}" = set; then :
26039 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
26040else
26041 systemdmodulesloaddir=/usr/lib/modules-load.d
26042fi
26043
26044
26045
26046 if test "x$enable_systemd" = xyes; then :
26047
26048 ZFS_INIT_SYSTEMD=systemd
26049 ZFS_MODULE_LOAD=modules-load.d
26050 modulesloaddir=$systemdmodulesloaddir
26051
26052fi
26053
26054
26055
26056
26057
26058
26059
26060
26061 # Check whether --enable-sysvinit was given.
26062if test "${enable_sysvinit+set}" = set; then :
26063 enableval=$enable_sysvinit;
26064else
26065 enable_sysvinit=yes
26066fi
26067
26068
26069 if test "x$enable_sysvinit" = xyes; then :
26070 ZFS_INIT_SYSV=init.d
26071fi
26072
26073
26074
26075
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26077$as_echo_n "checking for dracut directory... " >&6; }
26078
26079# Check whether --with-dracutdir was given.
26080if test "${with_dracutdir+set}" = set; then :
26081 withval=$with_dracutdir; dracutdir=$withval
26082else
26083 dracutdir=check
26084fi
26085
26086
26087 if test "x$dracutdir" = xcheck; then :
26088
26089 path1=/usr/share/dracut
26090 path2=/usr/lib/dracut
26091 default=$path2
26092
26093 if test -d "$path1"; then :
26094 dracutdir="$path1"
26095else
26096
26097 if test -d "$path2"; then :
26098 dracutdir="$path2"
26099else
26100 dracutdir="$default"
26101fi
26102
26103fi
26104
26105fi
26106
26107
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26109$as_echo "$dracutdir" >&6; }
26110
26111
26112 ZLIB=
26113
26114 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26115if test "x$ac_cv_header_zlib_h" = xyes; then :
26116
26117else
26118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26120as_fn_error $? "
26121 *** zlib.h missing, zlib-devel package required
26122See \`config.log' for more details" "$LINENO" 5; }
26123fi
26124
26125
26126
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26128$as_echo_n "checking for library containing compress2... " >&6; }
26129if ${ac_cv_search_compress2+:} false; then :
26130 $as_echo_n "(cached) " >&6
26131else
26132 ac_func_search_save_LIBS=$LIBS
26133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134/* end confdefs.h. */
26135
26136/* Override any GCC internal prototype to avoid an error.
26137 Use char because int might match the return type of a GCC
26138 builtin and then its argument prototype would still apply. */
26139#ifdef __cplusplus
26140extern "C"
26141#endif
26142char compress2 ();
26143int
26144main ()
26145{
26146return compress2 ();
26147 ;
26148 return 0;
26149}
26150_ACEOF
26151for ac_lib in '' z; do
26152 if test -z "$ac_lib"; then
26153 ac_res="none required"
26154 else
26155 ac_res=-l$ac_lib
26156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26157 fi
26158 if ac_fn_c_try_link "$LINENO"; then :
26159 ac_cv_search_compress2=$ac_res
26160fi
26161rm -f core conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext
26163 if ${ac_cv_search_compress2+:} false; then :
26164 break
26165fi
26166done
26167if ${ac_cv_search_compress2+:} false; then :
26168
26169else
26170 ac_cv_search_compress2=no
26171fi
26172rm conftest.$ac_ext
26173LIBS=$ac_func_search_save_LIBS
26174fi
26175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26176$as_echo "$ac_cv_search_compress2" >&6; }
26177ac_res=$ac_cv_search_compress2
26178if test "$ac_res" != no; then :
26179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26180
26181else
26182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26184as_fn_error $? "
26185 *** compress2() missing, zlib-devel package required
26186See \`config.log' for more details" "$LINENO" 5; }
26187fi
26188
26189
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26191$as_echo_n "checking for library containing uncompress... " >&6; }
26192if ${ac_cv_search_uncompress+:} false; then :
26193 $as_echo_n "(cached) " >&6
26194else
26195 ac_func_search_save_LIBS=$LIBS
26196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197/* end confdefs.h. */
26198
26199/* Override any GCC internal prototype to avoid an error.
26200 Use char because int might match the return type of a GCC
26201 builtin and then its argument prototype would still apply. */
26202#ifdef __cplusplus
26203extern "C"
26204#endif
26205char uncompress ();
26206int
26207main ()
26208{
26209return uncompress ();
26210 ;
26211 return 0;
26212}
26213_ACEOF
26214for ac_lib in '' z; do
26215 if test -z "$ac_lib"; then
26216 ac_res="none required"
26217 else
26218 ac_res=-l$ac_lib
26219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26220 fi
26221 if ac_fn_c_try_link "$LINENO"; then :
26222 ac_cv_search_uncompress=$ac_res
26223fi
26224rm -f core conftest.err conftest.$ac_objext \
26225 conftest$ac_exeext
26226 if ${ac_cv_search_uncompress+:} false; then :
26227 break
26228fi
26229done
26230if ${ac_cv_search_uncompress+:} false; then :
26231
26232else
26233 ac_cv_search_uncompress=no
26234fi
26235rm conftest.$ac_ext
26236LIBS=$ac_func_search_save_LIBS
26237fi
26238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26239$as_echo "$ac_cv_search_uncompress" >&6; }
26240ac_res=$ac_cv_search_uncompress
26241if test "$ac_res" != no; then :
26242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26243
26244else
26245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26247as_fn_error $? "
26248 *** uncompress() missing, zlib-devel package required
26249See \`config.log' for more details" "$LINENO" 5; }
26250fi
26251
26252
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26254$as_echo_n "checking for library containing crc32... " >&6; }
26255if ${ac_cv_search_crc32+:} false; then :
26256 $as_echo_n "(cached) " >&6
26257else
26258 ac_func_search_save_LIBS=$LIBS
26259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26260/* end confdefs.h. */
26261
26262/* Override any GCC internal prototype to avoid an error.
26263 Use char because int might match the return type of a GCC
26264 builtin and then its argument prototype would still apply. */
26265#ifdef __cplusplus
26266extern "C"
26267#endif
26268char crc32 ();
26269int
26270main ()
26271{
26272return crc32 ();
26273 ;
26274 return 0;
26275}
26276_ACEOF
26277for ac_lib in '' z; do
26278 if test -z "$ac_lib"; then
26279 ac_res="none required"
26280 else
26281 ac_res=-l$ac_lib
26282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26283 fi
26284 if ac_fn_c_try_link "$LINENO"; then :
26285 ac_cv_search_crc32=$ac_res
26286fi
26287rm -f core conftest.err conftest.$ac_objext \
26288 conftest$ac_exeext
26289 if ${ac_cv_search_crc32+:} false; then :
26290 break
26291fi
26292done
26293if ${ac_cv_search_crc32+:} false; then :
26294
26295else
26296 ac_cv_search_crc32=no
26297fi
26298rm conftest.$ac_ext
26299LIBS=$ac_func_search_save_LIBS
26300fi
26301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26302$as_echo "$ac_cv_search_crc32" >&6; }
26303ac_res=$ac_cv_search_crc32
26304if test "$ac_res" != no; then :
26305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26306
26307else
26308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26310as_fn_error $? "
26311 *** crc32() missing, zlib-devel package required
26312See \`config.log' for more details" "$LINENO" 5; }
26313fi
26314
26315
26316 ZLIB="-lz"
26317
26318
26319$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26320
26321
26322
26323 LIBUUID=
26324
26325 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26326if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
26327
26328else
26329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26331as_fn_error $? "
26332 *** uuid/uuid.h missing, libuuid-devel package required
26333See \`config.log' for more details" "$LINENO" 5; }
26334fi
26335
26336
26337
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26339$as_echo_n "checking for library containing uuid_generate... " >&6; }
26340if ${ac_cv_search_uuid_generate+:} false; then :
26341 $as_echo_n "(cached) " >&6
26342else
26343 ac_func_search_save_LIBS=$LIBS
26344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26345/* end confdefs.h. */
26346
26347/* Override any GCC internal prototype to avoid an error.
26348 Use char because int might match the return type of a GCC
26349 builtin and then its argument prototype would still apply. */
26350#ifdef __cplusplus
26351extern "C"
26352#endif
26353char uuid_generate ();
26354int
26355main ()
26356{
26357return uuid_generate ();
26358 ;
26359 return 0;
26360}
26361_ACEOF
26362for ac_lib in '' uuid; do
26363 if test -z "$ac_lib"; then
26364 ac_res="none required"
26365 else
26366 ac_res=-l$ac_lib
26367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26368 fi
26369 if ac_fn_c_try_link "$LINENO"; then :
26370 ac_cv_search_uuid_generate=$ac_res
26371fi
26372rm -f core conftest.err conftest.$ac_objext \
26373 conftest$ac_exeext
26374 if ${ac_cv_search_uuid_generate+:} false; then :
26375 break
26376fi
26377done
26378if ${ac_cv_search_uuid_generate+:} false; then :
26379
26380else
26381 ac_cv_search_uuid_generate=no
26382fi
26383rm conftest.$ac_ext
26384LIBS=$ac_func_search_save_LIBS
26385fi
26386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26387$as_echo "$ac_cv_search_uuid_generate" >&6; }
26388ac_res=$ac_cv_search_uuid_generate
26389if test "$ac_res" != no; then :
26390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26391
26392else
26393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26395as_fn_error $? "
26396 *** uuid_generate() missing, libuuid-devel package required
26397See \`config.log' for more details" "$LINENO" 5; }
26398fi
26399
26400
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26402$as_echo_n "checking for library containing uuid_is_null... " >&6; }
26403if ${ac_cv_search_uuid_is_null+:} false; then :
26404 $as_echo_n "(cached) " >&6
26405else
26406 ac_func_search_save_LIBS=$LIBS
26407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26408/* end confdefs.h. */
26409
26410/* Override any GCC internal prototype to avoid an error.
26411 Use char because int might match the return type of a GCC
26412 builtin and then its argument prototype would still apply. */
26413#ifdef __cplusplus
26414extern "C"
26415#endif
26416char uuid_is_null ();
26417int
26418main ()
26419{
26420return uuid_is_null ();
26421 ;
26422 return 0;
26423}
26424_ACEOF
26425for ac_lib in '' uuid; do
26426 if test -z "$ac_lib"; then
26427 ac_res="none required"
26428 else
26429 ac_res=-l$ac_lib
26430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26431 fi
26432 if ac_fn_c_try_link "$LINENO"; then :
26433 ac_cv_search_uuid_is_null=$ac_res
26434fi
26435rm -f core conftest.err conftest.$ac_objext \
26436 conftest$ac_exeext
26437 if ${ac_cv_search_uuid_is_null+:} false; then :
26438 break
26439fi
26440done
26441if ${ac_cv_search_uuid_is_null+:} false; then :
26442
26443else
26444 ac_cv_search_uuid_is_null=no
26445fi
26446rm conftest.$ac_ext
26447LIBS=$ac_func_search_save_LIBS
26448fi
26449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26450$as_echo "$ac_cv_search_uuid_is_null" >&6; }
26451ac_res=$ac_cv_search_uuid_is_null
26452if test "$ac_res" != no; then :
26453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26454
26455else
26456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26458as_fn_error $? "
26459 *** uuid_is_null() missing, libuuid-devel package required
26460See \`config.log' for more details" "$LINENO" 5; }
26461fi
26462
26463
26464 LIBUUID="-luuid"
26465
26466
26467$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26468
26469
26470
26471
26472# Check whether --with-tirpc was given.
26473if test "${with_tirpc+set}" = set; then :
26474 withval=$with_tirpc;
26475else
26476 with_tirpc=check
26477fi
26478
26479
26480 LIBTIRPC=
26481 LIBTIRPC_CFLAGS=
26482
26483 if test "x$with_tirpc" != xno; then :
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26485$as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26486if ${ac_cv_lib_tirpc_xdrmem_create+:} false; then :
26487 $as_echo_n "(cached) " >&6
26488else
26489 ac_check_lib_save_LIBS=$LIBS
26490LIBS="-ltirpc $LIBS"
26491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492/* end confdefs.h. */
26493
26494/* Override any GCC internal prototype to avoid an error.
26495 Use char because int might match the return type of a GCC
26496 builtin and then its argument prototype would still apply. */
26497#ifdef __cplusplus
26498extern "C"
26499#endif
26500char xdrmem_create ();
26501int
26502main ()
26503{
26504return xdrmem_create ();
26505 ;
26506 return 0;
26507}
26508_ACEOF
26509if ac_fn_c_try_link "$LINENO"; then :
26510 ac_cv_lib_tirpc_xdrmem_create=yes
26511else
26512 ac_cv_lib_tirpc_xdrmem_create=no
26513fi
26514rm -f core conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
26516LIBS=$ac_check_lib_save_LIBS
26517fi
26518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26519$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26520if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes; then :
26521 LIBTIRPC=-ltirpc
26522
26523 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
26524
26525
26526$as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26527
26528
26529else
26530 if test "x$with_tirpc" != xcheck; then
26531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26533as_fn_error $? "--with-tirpc was given, but test for tirpc failed
26534See \`config.log' for more details" "$LINENO" 5; }
26535 fi
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26537$as_echo_n "checking for library containing xdrmem_create... " >&6; }
26538if ${ac_cv_search_xdrmem_create+:} false; then :
26539 $as_echo_n "(cached) " >&6
26540else
26541 ac_func_search_save_LIBS=$LIBS
26542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543/* end confdefs.h. */
26544
26545/* Override any GCC internal prototype to avoid an error.
26546 Use char because int might match the return type of a GCC
26547 builtin and then its argument prototype would still apply. */
26548#ifdef __cplusplus
26549extern "C"
26550#endif
26551char xdrmem_create ();
26552int
26553main ()
26554{
26555return xdrmem_create ();
26556 ;
26557 return 0;
26558}
26559_ACEOF
26560for ac_lib in '' tirpc; do
26561 if test -z "$ac_lib"; then
26562 ac_res="none required"
26563 else
26564 ac_res=-l$ac_lib
26565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26566 fi
26567 if ac_fn_c_try_link "$LINENO"; then :
26568 ac_cv_search_xdrmem_create=$ac_res
26569fi
26570rm -f core conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext
26572 if ${ac_cv_search_xdrmem_create+:} false; then :
26573 break
26574fi
26575done
26576if ${ac_cv_search_xdrmem_create+:} false; then :
26577
26578else
26579 ac_cv_search_xdrmem_create=no
26580fi
26581rm conftest.$ac_ext
26582LIBS=$ac_func_search_save_LIBS
26583fi
26584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26585$as_echo "$ac_cv_search_xdrmem_create" >&6; }
26586ac_res=$ac_cv_search_xdrmem_create
26587if test "$ac_res" != no; then :
26588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26589
26590else
26591
26592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26594as_fn_error $? "xdrmem_create() requires tirpc or libc
26595See \`config.log' for more details" "$LINENO" 5; }
26596fi
26597
26598
26599fi
26600
26601else
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26603$as_echo_n "checking for library containing xdrmem_create... " >&6; }
26604if ${ac_cv_search_xdrmem_create+:} false; then :
26605 $as_echo_n "(cached) " >&6
26606else
26607 ac_func_search_save_LIBS=$LIBS
26608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609/* end confdefs.h. */
26610
26611/* Override any GCC internal prototype to avoid an error.
26612 Use char because int might match the return type of a GCC
26613 builtin and then its argument prototype would still apply. */
26614#ifdef __cplusplus
26615extern "C"
26616#endif
26617char xdrmem_create ();
26618int
26619main ()
26620{
26621return xdrmem_create ();
26622 ;
26623 return 0;
26624}
26625_ACEOF
26626for ac_lib in '' tirpc; do
26627 if test -z "$ac_lib"; then
26628 ac_res="none required"
26629 else
26630 ac_res=-l$ac_lib
26631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26632 fi
26633 if ac_fn_c_try_link "$LINENO"; then :
26634 ac_cv_search_xdrmem_create=$ac_res
26635fi
26636rm -f core conftest.err conftest.$ac_objext \
26637 conftest$ac_exeext
26638 if ${ac_cv_search_xdrmem_create+:} false; then :
26639 break
26640fi
26641done
26642if ${ac_cv_search_xdrmem_create+:} false; then :
26643
26644else
26645 ac_cv_search_xdrmem_create=no
26646fi
26647rm conftest.$ac_ext
26648LIBS=$ac_func_search_save_LIBS
26649fi
26650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26651$as_echo "$ac_cv_search_xdrmem_create" >&6; }
26652ac_res=$ac_cv_search_xdrmem_create
26653if test "$ac_res" != no; then :
26654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26655
26656else
26657
26658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26660as_fn_error $? "xdrmem_create() requires libc
26661See \`config.log' for more details" "$LINENO" 5; }
26662fi
26663
26664
26665fi
26666
26667
26668 LIBBLKID=
26669
26670 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26671if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
26672
26673else
26674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26676as_fn_error $? "
26677 *** blkid.h missing, libblkid-devel package required
26678See \`config.log' for more details" "$LINENO" 5; }
26679fi
26680
26681
26682
26683 LIBBLKID="-lblkid"
26684
26685
26686$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26687
26688
26689
26690 LIBATTR=
26691
26692 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26693if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
26694
26695else
26696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26698as_fn_error $? "
26699 *** attr/xattr.h missing, libattr-devel package required
26700See \`config.log' for more details" "$LINENO" 5; }
26701fi
26702
26703
26704
26705 LIBATTR="-lattr"
26706
26707
26708$as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26709
26710
26711
26712 LIBUDEV=
26713
26714 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26715if test "x$ac_cv_header_libudev_h" = xyes; then :
26716
26717 user_libudev=yes
26718 LIBUDEV="-ludev"
26719
26720
26721$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26722
26723
26724else
26725
26726 user_libudev=no
26727
26728fi
26729
26730
26731
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26733$as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26734if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26735 $as_echo_n "(cached) " >&6
26736else
26737 ac_func_search_save_LIBS=$LIBS
26738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26739/* end confdefs.h. */
26740
26741/* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26744#ifdef __cplusplus
26745extern "C"
26746#endif
26747char udev_device_get_is_initialized ();
26748int
26749main ()
26750{
26751return udev_device_get_is_initialized ();
26752 ;
26753 return 0;
26754}
26755_ACEOF
26756for ac_lib in '' udev; do
26757 if test -z "$ac_lib"; then
26758 ac_res="none required"
26759 else
26760 ac_res=-l$ac_lib
26761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26762 fi
26763 if ac_fn_c_try_link "$LINENO"; then :
26764 ac_cv_search_udev_device_get_is_initialized=$ac_res
26765fi
26766rm -f core conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext
26768 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26769 break
26770fi
26771done
26772if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26773
26774else
26775 ac_cv_search_udev_device_get_is_initialized=no
26776fi
26777rm conftest.$ac_ext
26778LIBS=$ac_func_search_save_LIBS
26779fi
26780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26781$as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26782ac_res=$ac_cv_search_udev_device_get_is_initialized
26783if test "$ac_res" != no; then :
26784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26785
26786
26787$as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26788
26789fi
26790
26791
26792
26793
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
26795$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26796
26797 saved_flags="$CFLAGS"
26798 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
26799
26800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801/* end confdefs.h. */
26802
26803int
26804main ()
26805{
26806
26807 ;
26808 return 0;
26809}
26810_ACEOF
26811if ac_fn_c_try_compile "$LINENO"; then :
26812
26813 FRAME_LARGER_THAN=-Wframe-larger-than=1024
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26815$as_echo "yes" >&6; }
26816
26817else
26818
26819 FRAME_LARGER_THAN=
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26821$as_echo "no" >&6; }
26822
26823fi
26824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825
26826 CFLAGS="$saved_flags"
26827
26828
26829
26830 if test "x$runstatedir" = x; then
26831 runstatedir='${localstatedir}/run'
26832
26833 fi
26834
26835
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
26837$as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
26838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26839/* end confdefs.h. */
26840
26841 #include <sys/sysmacros.h>
26842
26843int
26844main ()
26845{
26846
26847 int k;
26848 k = makedev(0,0);
26849
26850 ;
26851 return 0;
26852}
26853_ACEOF
26854if ac_fn_c_try_compile "$LINENO"; then :
26855
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26857$as_echo "yes" >&6; }
26858
26859$as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
26860
26861
26862else
26863
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26865$as_echo "no" >&6; }
26866
26867fi
26868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26869
26870
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
26872$as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
26873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26874/* end confdefs.h. */
26875
26876 #include <sys/mkdev.h>
26877
26878int
26879main ()
26880{
26881
26882 int k;
26883 k = makedev(0,0);
26884
26885 ;
26886 return 0;
26887}
26888_ACEOF
26889if ac_fn_c_try_compile "$LINENO"; then :
26890
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26892$as_echo "yes" >&6; }
26893
26894$as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
26895
26896
26897else
26898
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26900$as_echo "no" >&6; }
26901
26902fi
26903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26904
26905
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
26907$as_echo_n "checking for -Wno-format-truncation support... " >&6; }
26908
26909 saved_flags="$CFLAGS"
26910 CFLAGS="$CFLAGS -Wno-format-truncation"
26911
26912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26913/* end confdefs.h. */
26914
26915int
26916main ()
26917{
26918
26919 ;
26920 return 0;
26921}
26922_ACEOF
26923if ac_fn_c_try_compile "$LINENO"; then :
26924
26925 NO_FORMAT_TRUNCATION=-Wno-format-truncation
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26927$as_echo "yes" >&6; }
26928
26929else
26930
26931 NO_FORMAT_TRUNCATION=
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26933$as_echo "no" >&6; }
26934
26935fi
26936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937
26938 CFLAGS="$saved_flags"
26939
26940
26941
26942
26943 ZONENAME="echo global"
26944
26945
26946
26947
26948
26949 for ac_func in mlockall
26950do :
26951 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
26952if test "x$ac_cv_func_mlockall" = xyes; then :
26953 cat >>confdefs.h <<_ACEOF
26954#define HAVE_MLOCKALL 1
26955_ACEOF
26956
26957fi
26958done
26959
26960 ;;
26961 all)
26962
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26964$as_echo_n "checking for dkms.conf file... " >&6; }
26965 if test -e dkms.conf; then :
26966
26967 as_fn_error $? "
26968 *** ZFS should not be manually built in the DKMS source tree.
26969 *** Remove all ZFS packages before compiling the ZoL sources.
26970 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26971
26972else
26973
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26975$as_echo "not found" >&6; }
26976
26977fi
26978
26979
26980
26981# Check whether --with-mounthelperdir was given.
26982if test "${with_mounthelperdir+set}" = set; then :
26983 withval=$with_mounthelperdir; mounthelperdir=$withval
26984else
26985 mounthelperdir=/sbin
26986fi
26987
26988
26989
26990
26991
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26993$as_echo_n "checking for udev directories... " >&6; }
26994
26995# Check whether --with-udevdir was given.
26996if test "${with_udevdir+set}" = set; then :
26997 withval=$with_udevdir; udevdir=$withval
26998else
26999 udevdir=check
27000fi
27001
27002
27003 if test "x$udevdir" = xcheck; then :
27004
27005 path1=/lib/udev
27006 path2=/usr/lib/udev
27007 default=$path2
27008
27009 if test -d "$path1"; then :
27010 udevdir="$path1"
27011else
27012
27013 if test -d "$path2"; then :
27014 udevdir="$path2"
27015else
27016 udevdir="$default"
27017fi
27018
27019fi
27020
27021fi
27022
27023
27024# Check whether --with-udevruledir was given.
27025if test "${with_udevruledir+set}" = set; then :
27026 withval=$with_udevruledir; udevruledir=$withval
27027else
27028 udevruledir="${udevdir}/rules.d"
27029fi
27030
27031
27032
27033
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27035$as_echo "$udevdir;$udevruledir" >&6; }
27036
27037
27038 # Check whether --enable-systemd was given.
27039if test "${enable_systemd+set}" = set; then :
27040 enableval=$enable_systemd;
27041else
27042 enable_systemd=yes
27043fi
27044
27045
27046
27047# Check whether --with-systemdunitdir was given.
27048if test "${with_systemdunitdir+set}" = set; then :
27049 withval=$with_systemdunitdir; systemdunitdir=$withval
27050else
27051 systemdunitdir=/usr/lib/systemd/system
27052fi
27053
27054
27055
27056# Check whether --with-systemdpresetdir was given.
27057if test "${with_systemdpresetdir+set}" = set; then :
27058 withval=$with_systemdpresetdir; systemdpresetdir=$withval
27059else
27060 systemdpresetdir=/usr/lib/systemd/system-preset
27061fi
27062
27063
27064
27065# Check whether --with-systemdmodulesloaddir was given.
27066if test "${with_systemdmodulesloaddir+set}" = set; then :
27067 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
27068else
27069 systemdmodulesloaddir=/usr/lib/modules-load.d
27070fi
27071
27072
27073
27074 if test "x$enable_systemd" = xyes; then :
27075
27076 ZFS_INIT_SYSTEMD=systemd
27077 ZFS_MODULE_LOAD=modules-load.d
27078 modulesloaddir=$systemdmodulesloaddir
27079
27080fi
27081
27082
27083
27084
27085
27086
27087
27088
27089 # Check whether --enable-sysvinit was given.
27090if test "${enable_sysvinit+set}" = set; then :
27091 enableval=$enable_sysvinit;
27092else
27093 enable_sysvinit=yes
27094fi
27095
27096
27097 if test "x$enable_sysvinit" = xyes; then :
27098 ZFS_INIT_SYSV=init.d
27099fi
27100
27101
27102
27103
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27105$as_echo_n "checking for dracut directory... " >&6; }
27106
27107# Check whether --with-dracutdir was given.
27108if test "${with_dracutdir+set}" = set; then :
27109 withval=$with_dracutdir; dracutdir=$withval
27110else
27111 dracutdir=check
27112fi
27113
27114
27115 if test "x$dracutdir" = xcheck; then :
27116
27117 path1=/usr/share/dracut
27118 path2=/usr/lib/dracut
27119 default=$path2
27120
27121 if test -d "$path1"; then :
27122 dracutdir="$path1"
27123else
27124
27125 if test -d "$path2"; then :
27126 dracutdir="$path2"
27127else
27128 dracutdir="$default"
27129fi
27130
27131fi
27132
27133fi
27134
27135
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27137$as_echo "$dracutdir" >&6; }
27138
27139
27140 ZLIB=
27141
27142 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27143if test "x$ac_cv_header_zlib_h" = xyes; then :
27144
27145else
27146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27148as_fn_error $? "
27149 *** zlib.h missing, zlib-devel package required
27150See \`config.log' for more details" "$LINENO" 5; }
27151fi
27152
27153
27154
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27156$as_echo_n "checking for library containing compress2... " >&6; }
27157if ${ac_cv_search_compress2+:} false; then :
27158 $as_echo_n "(cached) " >&6
27159else
27160 ac_func_search_save_LIBS=$LIBS
27161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27162/* end confdefs.h. */
27163
27164/* Override any GCC internal prototype to avoid an error.
27165 Use char because int might match the return type of a GCC
27166 builtin and then its argument prototype would still apply. */
27167#ifdef __cplusplus
27168extern "C"
27169#endif
27170char compress2 ();
27171int
27172main ()
27173{
27174return compress2 ();
27175 ;
27176 return 0;
27177}
27178_ACEOF
27179for ac_lib in '' z; do
27180 if test -z "$ac_lib"; then
27181 ac_res="none required"
27182 else
27183 ac_res=-l$ac_lib
27184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27185 fi
27186 if ac_fn_c_try_link "$LINENO"; then :
27187 ac_cv_search_compress2=$ac_res
27188fi
27189rm -f core conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext
27191 if ${ac_cv_search_compress2+:} false; then :
27192 break
27193fi
27194done
27195if ${ac_cv_search_compress2+:} false; then :
27196
27197else
27198 ac_cv_search_compress2=no
27199fi
27200rm conftest.$ac_ext
27201LIBS=$ac_func_search_save_LIBS
27202fi
27203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27204$as_echo "$ac_cv_search_compress2" >&6; }
27205ac_res=$ac_cv_search_compress2
27206if test "$ac_res" != no; then :
27207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27208
27209else
27210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27212as_fn_error $? "
27213 *** compress2() missing, zlib-devel package required
27214See \`config.log' for more details" "$LINENO" 5; }
27215fi
27216
27217
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27219$as_echo_n "checking for library containing uncompress... " >&6; }
27220if ${ac_cv_search_uncompress+:} false; then :
27221 $as_echo_n "(cached) " >&6
27222else
27223 ac_func_search_save_LIBS=$LIBS
27224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27225/* end confdefs.h. */
27226
27227/* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233char uncompress ();
27234int
27235main ()
27236{
27237return uncompress ();
27238 ;
27239 return 0;
27240}
27241_ACEOF
27242for ac_lib in '' z; do
27243 if test -z "$ac_lib"; then
27244 ac_res="none required"
27245 else
27246 ac_res=-l$ac_lib
27247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27248 fi
27249 if ac_fn_c_try_link "$LINENO"; then :
27250 ac_cv_search_uncompress=$ac_res
27251fi
27252rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext
27254 if ${ac_cv_search_uncompress+:} false; then :
27255 break
27256fi
27257done
27258if ${ac_cv_search_uncompress+:} false; then :
27259
27260else
27261 ac_cv_search_uncompress=no
27262fi
27263rm conftest.$ac_ext
27264LIBS=$ac_func_search_save_LIBS
27265fi
27266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27267$as_echo "$ac_cv_search_uncompress" >&6; }
27268ac_res=$ac_cv_search_uncompress
27269if test "$ac_res" != no; then :
27270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27271
27272else
27273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27275as_fn_error $? "
27276 *** uncompress() missing, zlib-devel package required
27277See \`config.log' for more details" "$LINENO" 5; }
27278fi
27279
27280
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27282$as_echo_n "checking for library containing crc32... " >&6; }
27283if ${ac_cv_search_crc32+:} false; then :
27284 $as_echo_n "(cached) " >&6
27285else
27286 ac_func_search_save_LIBS=$LIBS
27287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27288/* end confdefs.h. */
27289
27290/* Override any GCC internal prototype to avoid an error.
27291 Use char because int might match the return type of a GCC
27292 builtin and then its argument prototype would still apply. */
27293#ifdef __cplusplus
27294extern "C"
27295#endif
27296char crc32 ();
27297int
27298main ()
27299{
27300return crc32 ();
27301 ;
27302 return 0;
27303}
27304_ACEOF
27305for ac_lib in '' z; do
27306 if test -z "$ac_lib"; then
27307 ac_res="none required"
27308 else
27309 ac_res=-l$ac_lib
27310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27311 fi
27312 if ac_fn_c_try_link "$LINENO"; then :
27313 ac_cv_search_crc32=$ac_res
27314fi
27315rm -f core conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext
27317 if ${ac_cv_search_crc32+:} false; then :
27318 break
27319fi
27320done
27321if ${ac_cv_search_crc32+:} false; then :
27322
27323else
27324 ac_cv_search_crc32=no
27325fi
27326rm conftest.$ac_ext
27327LIBS=$ac_func_search_save_LIBS
27328fi
27329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27330$as_echo "$ac_cv_search_crc32" >&6; }
27331ac_res=$ac_cv_search_crc32
27332if test "$ac_res" != no; then :
27333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27334
27335else
27336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27338as_fn_error $? "
27339 *** crc32() missing, zlib-devel package required
27340See \`config.log' for more details" "$LINENO" 5; }
27341fi
27342
27343
27344 ZLIB="-lz"
27345
27346
27347$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27348
27349
27350
27351 LIBUUID=
27352
27353 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27354if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
27355
27356else
27357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27359as_fn_error $? "
27360 *** uuid/uuid.h missing, libuuid-devel package required
27361See \`config.log' for more details" "$LINENO" 5; }
27362fi
27363
27364
27365
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27367$as_echo_n "checking for library containing uuid_generate... " >&6; }
27368if ${ac_cv_search_uuid_generate+:} false; then :
27369 $as_echo_n "(cached) " >&6
27370else
27371 ac_func_search_save_LIBS=$LIBS
27372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27373/* end confdefs.h. */
27374
27375/* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27378#ifdef __cplusplus
27379extern "C"
27380#endif
27381char uuid_generate ();
27382int
27383main ()
27384{
27385return uuid_generate ();
27386 ;
27387 return 0;
27388}
27389_ACEOF
27390for ac_lib in '' uuid; do
27391 if test -z "$ac_lib"; then
27392 ac_res="none required"
27393 else
27394 ac_res=-l$ac_lib
27395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27396 fi
27397 if ac_fn_c_try_link "$LINENO"; then :
27398 ac_cv_search_uuid_generate=$ac_res
27399fi
27400rm -f core conftest.err conftest.$ac_objext \
27401 conftest$ac_exeext
27402 if ${ac_cv_search_uuid_generate+:} false; then :
27403 break
27404fi
27405done
27406if ${ac_cv_search_uuid_generate+:} false; then :
27407
27408else
27409 ac_cv_search_uuid_generate=no
27410fi
27411rm conftest.$ac_ext
27412LIBS=$ac_func_search_save_LIBS
27413fi
27414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27415$as_echo "$ac_cv_search_uuid_generate" >&6; }
27416ac_res=$ac_cv_search_uuid_generate
27417if test "$ac_res" != no; then :
27418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27419
27420else
27421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27423as_fn_error $? "
27424 *** uuid_generate() missing, libuuid-devel package required
27425See \`config.log' for more details" "$LINENO" 5; }
27426fi
27427
27428
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27430$as_echo_n "checking for library containing uuid_is_null... " >&6; }
27431if ${ac_cv_search_uuid_is_null+:} false; then :
27432 $as_echo_n "(cached) " >&6
27433else
27434 ac_func_search_save_LIBS=$LIBS
27435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27436/* end confdefs.h. */
27437
27438/* Override any GCC internal prototype to avoid an error.
27439 Use char because int might match the return type of a GCC
27440 builtin and then its argument prototype would still apply. */
27441#ifdef __cplusplus
27442extern "C"
27443#endif
27444char uuid_is_null ();
27445int
27446main ()
27447{
27448return uuid_is_null ();
27449 ;
27450 return 0;
27451}
27452_ACEOF
27453for ac_lib in '' uuid; do
27454 if test -z "$ac_lib"; then
27455 ac_res="none required"
27456 else
27457 ac_res=-l$ac_lib
27458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27459 fi
27460 if ac_fn_c_try_link "$LINENO"; then :
27461 ac_cv_search_uuid_is_null=$ac_res
27462fi
27463rm -f core conftest.err conftest.$ac_objext \
27464 conftest$ac_exeext
27465 if ${ac_cv_search_uuid_is_null+:} false; then :
27466 break
27467fi
27468done
27469if ${ac_cv_search_uuid_is_null+:} false; then :
27470
27471else
27472 ac_cv_search_uuid_is_null=no
27473fi
27474rm conftest.$ac_ext
27475LIBS=$ac_func_search_save_LIBS
27476fi
27477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27478$as_echo "$ac_cv_search_uuid_is_null" >&6; }
27479ac_res=$ac_cv_search_uuid_is_null
27480if test "$ac_res" != no; then :
27481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27482
27483else
27484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27486as_fn_error $? "
27487 *** uuid_is_null() missing, libuuid-devel package required
27488See \`config.log' for more details" "$LINENO" 5; }
27489fi
27490
27491
27492 LIBUUID="-luuid"
27493
27494
27495$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27496
27497
27498
27499
27500# Check whether --with-tirpc was given.
27501if test "${with_tirpc+set}" = set; then :
27502 withval=$with_tirpc;
27503else
27504 with_tirpc=check
27505fi
27506
27507
27508 LIBTIRPC=
27509 LIBTIRPC_CFLAGS=
27510
27511 if test "x$with_tirpc" != xno; then :
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27513$as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27514if ${ac_cv_lib_tirpc_xdrmem_create+:} false; then :
27515 $as_echo_n "(cached) " >&6
27516else
27517 ac_check_lib_save_LIBS=$LIBS
27518LIBS="-ltirpc $LIBS"
27519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27520/* end confdefs.h. */
27521
27522/* Override any GCC internal prototype to avoid an error.
27523 Use char because int might match the return type of a GCC
27524 builtin and then its argument prototype would still apply. */
27525#ifdef __cplusplus
27526extern "C"
27527#endif
27528char xdrmem_create ();
27529int
27530main ()
27531{
27532return xdrmem_create ();
27533 ;
27534 return 0;
27535}
27536_ACEOF
27537if ac_fn_c_try_link "$LINENO"; then :
27538 ac_cv_lib_tirpc_xdrmem_create=yes
27539else
27540 ac_cv_lib_tirpc_xdrmem_create=no
27541fi
27542rm -f core conftest.err conftest.$ac_objext \
27543 conftest$ac_exeext conftest.$ac_ext
27544LIBS=$ac_check_lib_save_LIBS
27545fi
27546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27547$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27548if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes; then :
27549 LIBTIRPC=-ltirpc
27550
27551 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
27552
27553
27554$as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27555
27556
27557else
27558 if test "x$with_tirpc" != xcheck; then
27559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27561as_fn_error $? "--with-tirpc was given, but test for tirpc failed
27562See \`config.log' for more details" "$LINENO" 5; }
27563 fi
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27565$as_echo_n "checking for library containing xdrmem_create... " >&6; }
27566if ${ac_cv_search_xdrmem_create+:} false; then :
27567 $as_echo_n "(cached) " >&6
27568else
27569 ac_func_search_save_LIBS=$LIBS
27570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27571/* end confdefs.h. */
27572
27573/* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
27576#ifdef __cplusplus
27577extern "C"
27578#endif
27579char xdrmem_create ();
27580int
27581main ()
27582{
27583return xdrmem_create ();
27584 ;
27585 return 0;
27586}
27587_ACEOF
27588for ac_lib in '' tirpc; do
27589 if test -z "$ac_lib"; then
27590 ac_res="none required"
27591 else
27592 ac_res=-l$ac_lib
27593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27594 fi
27595 if ac_fn_c_try_link "$LINENO"; then :
27596 ac_cv_search_xdrmem_create=$ac_res
27597fi
27598rm -f core conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext
27600 if ${ac_cv_search_xdrmem_create+:} false; then :
27601 break
27602fi
27603done
27604if ${ac_cv_search_xdrmem_create+:} false; then :
27605
27606else
27607 ac_cv_search_xdrmem_create=no
27608fi
27609rm conftest.$ac_ext
27610LIBS=$ac_func_search_save_LIBS
27611fi
27612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27613$as_echo "$ac_cv_search_xdrmem_create" >&6; }
27614ac_res=$ac_cv_search_xdrmem_create
27615if test "$ac_res" != no; then :
27616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27617
27618else
27619
27620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27622as_fn_error $? "xdrmem_create() requires tirpc or libc
27623See \`config.log' for more details" "$LINENO" 5; }
27624fi
27625
27626
27627fi
27628
27629else
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27631$as_echo_n "checking for library containing xdrmem_create... " >&6; }
27632if ${ac_cv_search_xdrmem_create+:} false; then :
27633 $as_echo_n "(cached) " >&6
27634else
27635 ac_func_search_save_LIBS=$LIBS
27636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27637/* end confdefs.h. */
27638
27639/* Override any GCC internal prototype to avoid an error.
27640 Use char because int might match the return type of a GCC
27641 builtin and then its argument prototype would still apply. */
27642#ifdef __cplusplus
27643extern "C"
27644#endif
27645char xdrmem_create ();
27646int
27647main ()
27648{
27649return xdrmem_create ();
27650 ;
27651 return 0;
27652}
27653_ACEOF
27654for ac_lib in '' tirpc; do
27655 if test -z "$ac_lib"; then
27656 ac_res="none required"
27657 else
27658 ac_res=-l$ac_lib
27659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27660 fi
27661 if ac_fn_c_try_link "$LINENO"; then :
27662 ac_cv_search_xdrmem_create=$ac_res
27663fi
27664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext
27666 if ${ac_cv_search_xdrmem_create+:} false; then :
27667 break
27668fi
27669done
27670if ${ac_cv_search_xdrmem_create+:} false; then :
27671
27672else
27673 ac_cv_search_xdrmem_create=no
27674fi
27675rm conftest.$ac_ext
27676LIBS=$ac_func_search_save_LIBS
27677fi
27678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27679$as_echo "$ac_cv_search_xdrmem_create" >&6; }
27680ac_res=$ac_cv_search_xdrmem_create
27681if test "$ac_res" != no; then :
27682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27683
27684else
27685
27686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27688as_fn_error $? "xdrmem_create() requires libc
27689See \`config.log' for more details" "$LINENO" 5; }
27690fi
70e083d2 27691
70e083d2 27692
837ca015 27693fi
70e083d2
TG
27694
27695
86e3c28a
CIK
27696 LIBBLKID=
27697
27698 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27699if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
27700
27701else
27702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27704as_fn_error $? "
27705 *** blkid.h missing, libblkid-devel package required
27706See \`config.log' for more details" "$LINENO" 5; }
27707fi
27708
27709
27710
27711 LIBBLKID="-lblkid"
27712
27713
27714$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27715
27716
27717
27718 LIBATTR=
27719
27720 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27721if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
27722
27723else
27724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27726as_fn_error $? "
27727 *** attr/xattr.h missing, libattr-devel package required
27728See \`config.log' for more details" "$LINENO" 5; }
27729fi
27730
27731
27732
27733 LIBATTR="-lattr"
27734
27735
27736$as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27737
27738
27739
27740 LIBUDEV=
27741
27742 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27743if test "x$ac_cv_header_libudev_h" = xyes; then :
27744
27745 user_libudev=yes
27746 LIBUDEV="-ludev"
27747
27748
27749$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27750
27751
27752else
27753
27754 user_libudev=no
27755
27756fi
27757
27758
27759
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27761$as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27762if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27763 $as_echo_n "(cached) " >&6
27764else
27765 ac_func_search_save_LIBS=$LIBS
27766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767/* end confdefs.h. */
27768
27769/* Override any GCC internal prototype to avoid an error.
27770 Use char because int might match the return type of a GCC
27771 builtin and then its argument prototype would still apply. */
27772#ifdef __cplusplus
27773extern "C"
27774#endif
27775char udev_device_get_is_initialized ();
27776int
27777main ()
27778{
27779return udev_device_get_is_initialized ();
27780 ;
27781 return 0;
27782}
27783_ACEOF
27784for ac_lib in '' udev; do
27785 if test -z "$ac_lib"; then
27786 ac_res="none required"
27787 else
27788 ac_res=-l$ac_lib
27789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27790 fi
27791 if ac_fn_c_try_link "$LINENO"; then :
27792 ac_cv_search_udev_device_get_is_initialized=$ac_res
27793fi
27794rm -f core conftest.err conftest.$ac_objext \
27795 conftest$ac_exeext
27796 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27797 break
27798fi
27799done
27800if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27801
27802else
27803 ac_cv_search_udev_device_get_is_initialized=no
27804fi
27805rm conftest.$ac_ext
27806LIBS=$ac_func_search_save_LIBS
27807fi
27808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
27809$as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
27810ac_res=$ac_cv_search_udev_device_get_is_initialized
27811if test "$ac_res" != no; then :
27812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27813
27814
27815$as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
27816
27817fi
27818
27819
27820
837ca015 27821
86e3c28a
CIK
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
27823$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
27824
27825 saved_flags="$CFLAGS"
27826 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
27827
27828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27829/* end confdefs.h. */
27830
27831int
27832main ()
27833{
27834
27835 ;
27836 return 0;
27837}
27838_ACEOF
27839if ac_fn_c_try_compile "$LINENO"; then :
27840
27841 FRAME_LARGER_THAN=-Wframe-larger-than=1024
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27843$as_echo "yes" >&6; }
27844
27845else
27846
27847 FRAME_LARGER_THAN=
837ca015
CIK
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27849$as_echo "no" >&6; }
27850
86e3c28a
CIK
27851fi
27852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27853
27854 CFLAGS="$saved_flags"
27855
27856
27857
27858 if test "x$runstatedir" = x; then
27859 runstatedir='${localstatedir}/run'
837ca015 27860
837ca015
CIK
27861 fi
27862
86e3c28a
CIK
27863
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27865$as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27867/* end confdefs.h. */
27868
27869 #include <sys/sysmacros.h>
27870
27871int
27872main ()
27873{
27874
27875 int k;
27876 k = makedev(0,0);
27877
27878 ;
27879 return 0;
27880}
27881_ACEOF
27882if ac_fn_c_try_compile "$LINENO"; then :
27883
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27885$as_echo "yes" >&6; }
27886
27887$as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27888
27889
27890else
70e083d2
TG
27891
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27893$as_echo "no" >&6; }
27894
86e3c28a
CIK
27895fi
27896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897
27898
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27900$as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27902/* end confdefs.h. */
27903
27904 #include <sys/mkdev.h>
27905
27906int
27907main ()
27908{
27909
27910 int k;
27911 k = makedev(0,0);
27912
27913 ;
27914 return 0;
27915}
27916_ACEOF
27917if ac_fn_c_try_compile "$LINENO"; then :
70e083d2 27918
837ca015
CIK
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27920$as_echo "yes" >&6; }
27921
86e3c28a 27922$as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
70e083d2 27923
70e083d2 27924
86e3c28a
CIK
27925else
27926
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27928$as_echo "no" >&6; }
70e083d2 27929
86e3c28a
CIK
27930fi
27931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70e083d2
TG
27932
27933
86e3c28a
CIK
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27935$as_echo_n "checking for -Wno-format-truncation support... " >&6; }
70e083d2 27936
86e3c28a
CIK
27937 saved_flags="$CFLAGS"
27938 CFLAGS="$CFLAGS -Wno-format-truncation"
27939
27940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27941/* end confdefs.h. */
27942
27943int
27944main ()
27945{
27946
27947 ;
27948 return 0;
27949}
27950_ACEOF
27951if ac_fn_c_try_compile "$LINENO"; then :
27952
27953 NO_FORMAT_TRUNCATION=-Wno-format-truncation
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27955$as_echo "yes" >&6; }
27956
27957else
27958
27959 NO_FORMAT_TRUNCATION=
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27961$as_echo "no" >&6; }
70e083d2
TG
27962
27963fi
86e3c28a 27964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70e083d2 27965
86e3c28a 27966 CFLAGS="$saved_flags"
70e083d2
TG
27967
27968
70e083d2
TG
27969
27970
86e3c28a
CIK
27971 ZONENAME="echo global"
27972
27973
27974
27975
27976
27977 for ac_func in mlockall
27978do :
27979 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27980if test "x$ac_cv_func_mlockall" = xyes; then :
27981 cat >>confdefs.h <<_ACEOF
27982#define HAVE_MLOCKALL 1
27983_ACEOF
27984
27985fi
27986done
27987
27988
27989
70e083d2
TG
27990
27991
27992# Check whether --with-linux was given.
27993if test "${with_linux+set}" = set; then :
27994 withval=$with_linux; kernelsrc="$withval"
27995fi
27996
27997
27998
27999# Check whether --with-linux-obj was given.
28000if test "${with_linux_obj+set}" = set; then :
28001 withval=$with_linux_obj; kernelbuild="$withval"
28002fi
28003
28004
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28006$as_echo_n "checking kernel source directory... " >&6; }
28007 if test -z "$kernelsrc"; then :
28008
28009 if test -e "/lib/modules/$(uname -r)/source"; then :
28010
28011 headersdir="/lib/modules/$(uname -r)/source"
28012 sourcelink=$(readlink -f "$headersdir")
28013
28014elif test -e "/lib/modules/$(uname -r)/build"; then :
28015
28016 headersdir="/lib/modules/$(uname -r)/build"
28017 sourcelink=$(readlink -f "$headersdir")
28018
28019else
28020
28021 sourcelink=$(ls -1d /usr/src/kernels/* \
28022 /usr/src/linux-* \
28023 2>/dev/null | grep -v obj | tail -1)
28024
28025fi
28026
28027 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28028
28029 kernelsrc=`readlink -f ${sourcelink}`
28030
28031else
28032
28033 kernelsrc="Not found"
28034
28035fi
28036
28037else
28038
28039 if test "$kernelsrc" = "NONE"; then :
28040
28041 kernsrcver=NONE
28042
28043fi
86e3c28a 28044 withlinux=yes
70e083d2
TG
28045
28046fi
28047
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28049$as_echo "$kernelsrc" >&6; }
28050 if test ! -d "$kernelsrc"; then :
28051
28052 as_fn_error $? "
28053 *** Please make sure the kernel devel package for your distribution
28054 *** is installed and then try again. If that fails, you can specify the
28055 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28056
28057fi
28058
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28060$as_echo_n "checking kernel build directory... " >&6; }
28061 if test -z "$kernelbuild"; then :
28062
86e3c28a 28063 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then :
70e083d2
TG
28064
28065 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
28066
28067elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28068
28069 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28070
28071elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
28072
28073 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
28074
28075elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
28076
28077 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
28078
28079else
28080
28081 kernelbuild=${kernelsrc}
28082
28083fi
28084
28085fi
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28087$as_echo "$kernelbuild" >&6; }
28088
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28090$as_echo_n "checking kernel source version... " >&6; }
28091 utsrelease1=$kernelbuild/include/linux/version.h
28092 utsrelease2=$kernelbuild/include/linux/utsrelease.h
28093 utsrelease3=$kernelbuild/include/generated/utsrelease.h
28094 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
28095
28096 utsrelease=linux/version.h
28097
28098elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
28099
28100 utsrelease=linux/utsrelease.h
28101
28102elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
28103
28104 utsrelease=generated/utsrelease.h
28105
28106fi
28107
28108 if test "$utsrelease"; then :
28109
28110 kernsrcver=`(echo "#include <$utsrelease>";
28111 echo "kernsrcver=UTS_RELEASE") |
28112 cpp -I $kernelbuild/include |
28113 grep "^kernsrcver=" | cut -d \" -f 2`
28114
28115 if test -z "$kernsrcver"; then :
28116
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28118$as_echo "Not found" >&6; }
28119 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
28120
28121fi
28122
28123else
28124
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28126$as_echo "Not found" >&6; }
28127 if test "x$enable_linux_builtin" != xyes; then
28128 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28129 else
28130 as_fn_error $? "
28131 *** Cannot find UTS_RELEASE definition.
28132 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28133 fi
28134
28135fi
28136
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28138$as_echo "$kernsrcver" >&6; }
28139
28140 LINUX=${kernelsrc}
28141 LINUX_OBJ=${kernelbuild}
28142 LINUX_VERSION=${kernsrcver}
28143
28144
28145
28146
28147
28148
28149 modpost=$LINUX/scripts/Makefile.modpost
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28151$as_echo_n "checking kernel file name for module symbols... " >&6; }
28152 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
28153
28154 if grep -q Modules.symvers $modpost; then :
28155
28156 LINUX_SYMBOLS=Modules.symvers
28157
28158else
28159
28160 LINUX_SYMBOLS=Module.symvers
28161
28162fi
28163
28164 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28165
28166 as_fn_error $? "
28167 *** Please make sure the kernel devel package for your distribution
28168 *** is installed. If you are building with a custom kernel, make sure the
28169 *** kernel is configured, built, and the '--with-linux=PATH' configure
28170 *** option refers to the location of the kernel source." "$LINENO" 5
28171
28172fi
28173
28174else
28175
28176 LINUX_SYMBOLS=NONE
28177
28178fi
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28180$as_echo "$LINUX_SYMBOLS" >&6; }
28181
28182
28183
28184
28185
28186# Check whether --with-spl was given.
28187if test "${with_spl+set}" = set; then :
86e3c28a
CIK
28188 withval=$with_spl; if test "$withval" = "yes"; then :
28189 as_fn_error $? "--with-spl=PATH requires a PATH" "$LINENO" 5
28190else
28191 splsrc="$withval"
28192fi
70e083d2
TG
28193fi
28194
28195
28196
28197# Check whether --with-spl-obj was given.
28198if test "${with_spl_obj+set}" = set; then :
28199 withval=$with_spl_obj; splbuild="$withval"
28200fi
28201
28202
28203
28204# Check whether --with-spl-timeout was given.
28205if test "${with_spl_timeout+set}" = set; then :
28206 withval=$with_spl_timeout; timeout="$withval"
28207else
28208 timeout=0
28209fi
28210
28211
28212 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
28213 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28214 splsrc2="/usr/local/src/spl-${VERSION}"
28215 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28216 splsrc4="/usr/src/spl-${VERSION}"
28217 splsrc5="../spl/"
28218 splsrc6="$LINUX"
28219
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28221$as_echo_n "checking spl source directory... " >&6; }
28222 if test -z "${splsrc}"; then :
28223
86e3c28a
CIK
28224 all_spl_sources="
28225 ${splsrc0}
28226 ${splsrc1}
28227 ${splsrc2}
28228 ${splsrc3}
28229 ${splsrc4}
28230 ${splsrc5}
28231 ${splsrc6}",
70e083d2
TG
28232 if test -e "${splsrc0}/spl.release.in"; then :
28233
28234 splsrc=${splsrc0}
28235
28236elif test -e "${splsrc1}/spl.release.in"; then :
28237
28238 splsrc=${splsrc1}
28239
28240elif test -e "${splsrc2}/spl.release.in"; then :
28241
28242 splsrc=${splsrc2}
28243
28244elif test -e "${splsrc3}/spl.release.in"; then :
28245
28246 splsrc=$(readlink -f "${splsrc3}")
28247
28248elif test -e "${splsrc4}/spl.release.in" ; then :
28249
28250 splsrc=${splsrc4}
28251
28252elif test -e "${splsrc5}/spl.release.in"; then :
28253
28254 splsrc=$(readlink -f "${splsrc5}")
28255
28256elif test -e "${splsrc6}/spl.release.in" ; then :
28257
28258 splsrc=${splsrc6}
28259
28260else
28261
28262 splsrc="Not found"
28263
28264fi
28265
28266else
28267
86e3c28a 28268 all_spl_sources="$withval",
70e083d2
TG
28269 if test "$splsrc" = "NONE"; then :
28270
28271 splbuild=NONE
28272 splsrcver=NONE
28273
28274fi
28275
28276fi
28277
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28279$as_echo "$splsrc" >&6; }
28280 if test ! -e "$splsrc/spl.release.in"; then :
28281
28282 as_fn_error $? "
28283 *** Please make sure the kmod spl devel package for your distribution
28284 *** is installed then try again. If that fails you can specify the
86e3c28a
CIK
28285 *** location of the spl source with the '--with-spl=PATH' option.
28286 *** The spl version must match the version of ZFS you are building,
28287 *** ${VERSION}. Failed to find spl.release.in in the following:
28288 $all_spl_sources" "$LINENO" 5
70e083d2
TG
28289
28290fi
28291
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28293$as_echo_n "checking spl build directory... " >&6; }
86e3c28a
CIK
28294
28295 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
28296 ${splsrc}"
28297
70e083d2
TG
28298 while true; do
28299 if test -z "$splbuild"; then :
28300
28301 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28302
28303 splbuild="${splsrc}/${LINUX_VERSION}"
28304
28305elif test -e "${splsrc}/spl_config.h" ; then :
28306
28307 splbuild="${splsrc}"
28308
28309elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
28310
28311 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
28312
28313else
28314
28315 splbuild="Not found"
28316
28317fi
28318
28319fi
28320 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28321
28322 break;
28323
28324else
28325
28326 sleep 1
28327 timeout=$((timeout-1))
28328
28329fi
28330 done
28331
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28333$as_echo "$splbuild" >&6; }
28334 if ! test -e "$splbuild/spl_config.h"; then :
28335
28336 as_fn_error $? "
28337 *** Please make sure the kmod spl devel <kernel> package for your
28338 *** distribution is installed then try again. If that fails you
28339 *** can specify the location of the spl objects with the
86e3c28a
CIK
28340 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28341 *** any of the following:
28342 $all_spl_config_locs" "$LINENO" 5
70e083d2
TG
28343
28344fi
28345
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28347$as_echo_n "checking spl source version... " >&6; }
28348 if test -r $splbuild/spl_config.h &&
28349 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
28350
28351
28352 splsrcver=`(echo "#include <spl_config.h>";
28353 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28354 cpp -I $splbuild |
28355 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28356
28357fi
28358
28359 if test -z "$splsrcver"; then :
28360
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28362$as_echo "Not found" >&6; }
28363 as_fn_error $? "
28364 *** Cannot determine the version of the spl source.
28365 *** Please prepare the spl source before running this script" "$LINENO" 5
28366
28367fi
28368
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28370$as_echo "$splsrcver" >&6; }
28371
28372 SPL=${splsrc}
28373 SPL_OBJ=${splbuild}
28374 SPL_VERSION=${splsrcver}
28375
28376
28377
28378
28379
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28381$as_echo_n "checking spl file name for module symbols... " >&6; }
28382 SPL_SYMBOLS=NONE
28383
28384 while true; do
28385 if test -r $SPL_OBJ/Module.symvers; then :
28386
28387 SPL_SYMBOLS=Module.symvers
28388
28389elif test -r $SPL_OBJ/Modules.symvers; then :
28390
28391 SPL_SYMBOLS=Modules.symvers
28392
28393elif test -r $SPL_OBJ/module/Module.symvers; then :
28394
28395 SPL_SYMBOLS=Module.symvers
28396
28397elif test -r $SPL_OBJ/module/Modules.symvers; then :
28398
28399 SPL_SYMBOLS=Modules.symvers
28400
28401fi
28402
28403 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
28404
28405 break;
28406
28407else
28408
28409 sleep 1
28410 timeout=$((timeout-1))
28411
28412fi
28413 done
28414
28415 if test "$SPL_SYMBOLS" = NONE; then :
28416
28417 SPL_SYMBOLS=$LINUX_SYMBOLS
28418
28419fi
28420
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28422$as_echo "$SPL_SYMBOLS" >&6; }
28423
28424
28425
86e3c28a
CIK
28426
28427# Check whether --with-qat was given.
28428if test "${with_qat+set}" = set; then :
28429 withval=$with_qat; if test "$withval" = "yes"; then :
28430 as_fn_error $? "--with-qat=PATH requires a PATH" "$LINENO" 5
28431else
28432 qatsrc="$withval"
28433fi
28434fi
28435
28436
28437
28438# Check whether --with-qat-obj was given.
28439if test "${with_qat_obj+set}" = set; then :
28440 withval=$with_qat_obj; qatbuild="$withval"
28441fi
28442
28443
28444 if test ! -z "${qatsrc}"; then :
28445
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28447$as_echo_n "checking qat source directory... " >&6; }
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28449$as_echo "$qatsrc" >&6; }
28450 QAT_SRC="${qatsrc}/quickassist"
28451 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28452
28453 as_fn_error $? "
28454 *** Please make sure the qat driver package is installed
28455 *** and specify the location of the qat source with the
28456 *** '--with-qat=PATH' option then try again. Failed to
28457 *** find cpa.h in:
28458 ${QAT_SRC}/include" "$LINENO" 5
28459
28460fi
28461
28462fi
28463
28464 if test ! -z "${qatsrc}"; then :
28465
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28467$as_echo_n "checking qat build directory... " >&6; }
28468 if test -z "$qatbuild"; then :
28469
28470 qatbuild="${qatsrc}/build"
28471
28472fi
28473
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28475$as_echo "$qatbuild" >&6; }
28476 QAT_OBJ=${qatbuild}
b3a88519 28477 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
86e3c28a
CIK
28478
28479 as_fn_error $? "
28480 *** Please make sure the qat driver is installed then try again.
b3a88519 28481 *** Failed to find icp_qa_al.ko or qat_api.ko in:
86e3c28a
CIK
28482 $QAT_OBJ" "$LINENO" 5
28483
28484fi
28485
28486
28487
28488
28489
28490$as_echo "#define HAVE_QAT 1" >>confdefs.h
28491
28492
28493fi
28494
28495 if test ! -z "${qatsrc}"; then :
28496
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28498$as_echo_n "checking qat file for module symbols... " >&6; }
28499 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
28500
28501 if test -r $QAT_SYMBOLS; then :
28502
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28504$as_echo "$QAT_SYMBOLS" >&6; }
28505
28506
28507else
28508
28509 as_fn_error $? "
28510 *** Please make sure the qat driver is installed then try again.
28511 *** Failed to find Module.symvers in:
28512 $QAT_SYMBOLS" "$LINENO" 5
28513
28514fi
28515
28516fi
28517
28518
70e083d2
TG
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28520$as_echo_n "checking whether modules can be built... " >&6; }
28521
28522
28523cat confdefs.h - <<_ACEOF >conftest.c
28524
28525
28526int
28527main (void)
28528{
28529
28530 ;
28531 return 0;
28532}
28533
28534_ACEOF
28535
28536
28537
28538cat - <<_ACEOF >conftest.h
28539
28540_ACEOF
28541
28542
28543 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28544 echo "obj-m := conftest.o" >build/Makefile
28545 modpost_flag=''
28546 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28547 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'
28548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28549 (eval $ac_try) 2>&5
28550 ac_status=$?
28551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28552 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28557 test $ac_status = 0; }; }; then :
28558
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28560$as_echo "yes" >&6; }
28561
28562else
28563 $as_echo "$as_me: failed program was:" >&5
28564sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28567$as_echo "no" >&6; }
28568 if test "x$enable_linux_builtin" != xyes; then
28569 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
28570 else
28571 as_fn_error $? "
28572 *** Unable to build an empty module.
28573 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28574 fi
28575
28576
28577
28578fi
28579 rm -Rf build
28580
28581
28582
28583
86e3c28a
CIK
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28585$as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28586
28587
28588cat confdefs.h - <<_ACEOF >conftest.c
28589
28590
28591 #undef __ASSEMBLY__
28592 #include <asm/frame.h>
28593
28594int
28595main (void)
28596{
28597
28598 #if !defined(FRAME_BEGIN)
28599 CTASSERT(1);
28600 #endif
28601
28602 ;
28603 return 0;
28604}
28605
28606_ACEOF
28607
28608
28609
28610cat - <<_ACEOF >conftest.h
28611
28612_ACEOF
28613
28614
28615 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28616 echo "obj-m := conftest.o" >build/Makefile
28617 modpost_flag=''
28618 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28619 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'
28620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28629 test $ac_status = 0; }; }; then :
28630
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28632$as_echo "yes" >&6; }
28633
28634$as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28635
28636
28637else
28638 $as_echo "$as_me: failed program was:" >&5
28639sed 's/^/| /' conftest.$ac_ext >&5
28640
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28642$as_echo "no" >&6; }
28643
28644
28645
28646fi
28647 rm -Rf build
28648
28649
28650
28651
70e083d2
TG
28652 if test "x$cross_compiling" != xyes; then :
28653
28654 if test "$cross_compiling" = yes; then :
28655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28657as_fn_error $? "cannot run test program while cross compiling
28658See \`config.log' for more details" "$LINENO" 5; }
28659else
28660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28661/* end confdefs.h. */
28662
28663
28664 #include "$LINUX/include/linux/license.h"
28665
28666int
28667main ()
28668{
28669
28670 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28671
28672 ;
28673 return 0;
28674}
28675
28676_ACEOF
28677if ac_fn_c_try_run "$LINENO"; then :
28678
28679
28680$as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28681
28682
28683fi
28684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28685 conftest.$ac_objext conftest.beam conftest.$ac_ext
28686fi
28687
28688
28689fi
28690
28691
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28693$as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28694
28695
28696cat confdefs.h - <<_ACEOF >conftest.c
28697
28698
28699 #include <linux/module.h>
28700
28701int
28702main (void)
28703{
28704
28705 #if (THREAD_SIZE < 16384)
28706 #error "THREAD_SIZE is less than 16K"
28707 #endif
28708
28709 ;
28710 return 0;
28711}
28712
28713_ACEOF
28714
28715
28716
28717cat - <<_ACEOF >conftest.h
28718
28719_ACEOF
28720
28721
28722 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28723 echo "obj-m := conftest.o" >build/Makefile
28724 modpost_flag=''
28725 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28726 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'
28727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28728 (eval $ac_try) 2>&5
28729 ac_status=$?
28730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28731 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736 test $ac_status = 0; }; }; then :
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28739$as_echo "yes" >&6; }
28740
28741$as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28742
28743
28744else
28745 $as_echo "$as_me: failed program was:" >&5
28746sed 's/^/| /' conftest.$ac_ext >&5
28747
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28749$as_echo "no" >&6; }
28750
28751
28752
28753fi
28754 rm -Rf build
28755
28756
28757
28758
28759
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
28761$as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
28762
28763
28764cat confdefs.h - <<_ACEOF >conftest.c
28765
28766
28767 #include <linux/module.h>
28768
28769int
28770main (void)
28771{
28772
28773 #ifndef CONFIG_DEBUG_LOCK_ALLOC
28774 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
28775 #endif
28776
28777 ;
28778 return 0;
28779}
28780
28781_ACEOF
28782
28783
28784
28785cat - <<_ACEOF >conftest.h
28786
28787_ACEOF
28788
28789
28790 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28791 echo "obj-m := conftest.o" >build/Makefile
28792 modpost_flag=''
28793 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28794 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'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28801 (eval $ac_try) 2>&5
28802 ac_status=$?
28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28804 test $ac_status = 0; }; }; then :
28805
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28807$as_echo "yes" >&6; }
28808
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
28810$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
28811 tmp_flags="$EXTRA_KCFLAGS"
28812
28813
28814cat confdefs.h - <<_ACEOF >conftest.c
28815
28816
28817 #include <linux/module.h>
28818 #include <linux/mutex.h>
28819
28820 MODULE_LICENSE("$ZFS_META_LICENSE");
28821
28822int
28823main (void)
28824{
28825
28826 struct mutex lock;
28827
28828 mutex_init(&lock);
28829 mutex_lock(&lock);
28830 mutex_unlock(&lock);
28831
28832 ;
28833 return 0;
28834}
28835
28836_ACEOF
28837
28838
28839
28840cat - <<_ACEOF >conftest.h
28841
28842_ACEOF
28843
28844
28845 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28846 echo "obj-m := conftest.o" >build/Makefile
28847 modpost_flag=''
28848 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28849 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'
28850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28851 (eval $ac_try) 2>&5
28852 ac_status=$?
28853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28856 (eval $ac_try) 2>&5
28857 ac_status=$?
28858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28859 test $ac_status = 0; }; }; then :
28860
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28862$as_echo "no" >&6; }
28863
28864else
28865 $as_echo "$as_me: failed program was:" >&5
28866sed 's/^/| /' conftest.$ac_ext >&5
28867
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28869$as_echo "yes" >&6; }
28870 as_fn_error $? "
28871 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
28872 *** with the CDDL license and will prevent the module linking stage
28873 *** from succeeding. You must rebuild your kernel without this
28874 *** option enabled." "$LINENO" 5
28875
28876
28877
28878fi
28879 rm -Rf build
28880
28881
28882 EXTRA_KCFLAGS="$tmp_flags"
28883
28884
28885else
28886 $as_echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28890$as_echo "no" >&6; }
28891
28892
28893
28894
28895fi
28896 rm -Rf build
28897
28898
28899
28900
28901
28902
28903 tmp_flags="$EXTRA_KCFLAGS"
28904 EXTRA_KCFLAGS="-I\$(src)"
28905
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
28907$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
28908
28909
28910cat confdefs.h - <<_ACEOF >conftest.c
28911
28912
28913 #include <linux/module.h>
28914 MODULE_LICENSE(ZFS_META_LICENSE);
28915
28916 #define CREATE_TRACE_POINTS
28917 #include "conftest.h"
28918
28919int
28920main (void)
28921{
28922
28923 trace_zfs_autoconf_event_one(1UL);
28924 trace_zfs_autoconf_event_two(2UL);
28925
28926 ;
28927 return 0;
28928}
28929
28930_ACEOF
28931
28932
28933
28934cat - <<_ACEOF >conftest.h
28935
28936 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
28937 #define _CONFTEST_H
28938
28939 #undef TRACE_SYSTEM
28940 #define TRACE_SYSTEM zfs
28941 #include <linux/tracepoint.h>
28942
28943 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
28944 TP_PROTO(unsigned long i),
28945 TP_ARGS(i),
28946 TP_STRUCT__entry(
28947 __field(unsigned long, i)
28948 ),
28949 TP_fast_assign(
28950 __entry->i = i;
28951 ),
28952 TP_printk("i = %lu", __entry->i)
28953 );
28954
28955 #define DEFINE_AUTOCONF_EVENT(name) \
28956 DEFINE_EVENT(zfs_autoconf_event_class, name, \
28957 TP_PROTO(unsigned long i), \
28958 TP_ARGS(i))
28959 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
28960 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
28961
28962 #endif /* _CONFTEST_H */
28963
28964 #undef TRACE_INCLUDE_PATH
28965 #define TRACE_INCLUDE_PATH .
28966 #define TRACE_INCLUDE_FILE conftest
28967 #include <trace/define_trace.h>
28968
28969_ACEOF
28970
28971
28972 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28973 echo "obj-m := conftest.o" >build/Makefile
28974 modpost_flag=''
28975 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28976 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'
28977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28978 (eval $ac_try) 2>&5
28979 ac_status=$?
28980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28981 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28983 (eval $ac_try) 2>&5
28984 ac_status=$?
28985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28986 test $ac_status = 0; }; }; then :
28987
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28989$as_echo "yes" >&6; }
28990
28991$as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
28992
28993
28994else
28995 $as_echo "$as_me: failed program was:" >&5
28996sed 's/^/| /' conftest.$ac_ext >&5
28997
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999$as_echo "no" >&6; }
29000
29001
29002
29003fi
29004 rm -Rf build
29005
29006
29007 EXTRA_KCFLAGS="$tmp_flags"
29008
29009
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29011$as_echo_n "checking whether current->bio_tail exists... " >&6; }
29012
29013
29014cat confdefs.h - <<_ACEOF >conftest.c
29015
29016
29017 #include <linux/sched.h>
29018
29019int
29020main (void)
29021{
29022
29023 current->bio_tail = (struct bio **) NULL;
29024
29025 ;
29026 return 0;
29027}
29028
29029_ACEOF
29030
29031
29032
29033cat - <<_ACEOF >conftest.h
29034
29035_ACEOF
29036
29037
29038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29039 echo "obj-m := conftest.o" >build/Makefile
29040 modpost_flag=''
29041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29042 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'
29043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29044 (eval $ac_try) 2>&5
29045 ac_status=$?
29046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29047 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29049 (eval $ac_try) 2>&5
29050 ac_status=$?
29051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29052 test $ac_status = 0; }; }; then :
29053
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29055$as_echo "yes" >&6; }
29056
29057$as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29058
29059
29060else
29061 $as_echo "$as_me: failed program was:" >&5
29062sed 's/^/| /' conftest.$ac_ext >&5
29063
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29065$as_echo "no" >&6; }
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29067$as_echo_n "checking whether current->bio_list exists... " >&6; }
29068
29069
29070cat confdefs.h - <<_ACEOF >conftest.c
29071
29072
29073 #include <linux/sched.h>
29074
29075int
29076main (void)
29077{
29078
29079 current->bio_list = (struct bio_list *) NULL;
29080
29081 ;
29082 return 0;
29083}
29084
29085_ACEOF
29086
29087
29088
29089cat - <<_ACEOF >conftest.h
29090
29091_ACEOF
29092
29093
29094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29095 echo "obj-m := conftest.o" >build/Makefile
29096 modpost_flag=''
29097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29098 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'
29099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29100 (eval $ac_try) 2>&5
29101 ac_status=$?
29102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29108 test $ac_status = 0; }; }; then :
29109
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29111$as_echo "yes" >&6; }
29112
29113$as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29114
29115
29116else
29117 $as_echo "$as_me: failed program was:" >&5
29118sed 's/^/| /' conftest.$ac_ext >&5
29119
29120 as_fn_error $? "no - Please file a bug report at
29121 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29122
29123
29124
29125fi
29126 rm -Rf build
29127
29128
29129
29130
29131
29132fi
29133 rm -Rf build
29134
29135
29136
29137
86e3c28a
CIK
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29139$as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
70e083d2
TG
29140
29141
29142cat confdefs.h - <<_ACEOF >conftest.c
29143
29144
86e3c28a
CIK
29145 #include <linux/fs.h>
29146 #include <linux/user_namespace.h>
70e083d2
TG
29147
29148int
29149main (void)
29150{
29151
86e3c28a
CIK
29152 struct super_block super;
29153 super.s_user_ns = (struct user_namespace *)NULL;
70e083d2
TG
29154
29155 ;
29156 return 0;
29157}
29158
29159_ACEOF
29160
29161
29162
29163cat - <<_ACEOF >conftest.h
29164
29165_ACEOF
29166
29167
29168 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29169 echo "obj-m := conftest.o" >build/Makefile
29170 modpost_flag=''
29171 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29172 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'
29173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29174 (eval $ac_try) 2>&5
29175 ac_status=$?
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29179 (eval $ac_try) 2>&5
29180 ac_status=$?
29181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29182 test $ac_status = 0; }; }; then :
29183
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29185$as_echo "yes" >&6; }
29186
86e3c28a 29187$as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
70e083d2
TG
29188
29189
29190else
29191 $as_echo "$as_me: failed program was:" >&5
29192sed 's/^/| /' conftest.$ac_ext >&5
29193
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29195$as_echo "no" >&6; }
29196
29197
29198
29199fi
29200 rm -Rf build
29201
29202
29203
29204
86e3c28a
CIK
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29206$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
70e083d2
TG
29207
29208
29209cat confdefs.h - <<_ACEOF >conftest.c
29210
29211
86e3c28a 29212 #include <linux/bio.h>
70e083d2
TG
29213
29214int
29215main (void)
29216{
29217
86e3c28a
CIK
29218 blk_qc_t blk_qc;
29219 struct bio *bio = NULL;
29220 blk_qc = submit_bio(bio);
70e083d2
TG
29221
29222 ;
29223 return 0;
29224}
29225
29226_ACEOF
29227
29228
29229
29230cat - <<_ACEOF >conftest.h
29231
29232_ACEOF
29233
29234
29235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29236 echo "obj-m := conftest.o" >build/Makefile
29237 modpost_flag=''
29238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29239 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'
29240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29246 (eval $ac_try) 2>&5
29247 ac_status=$?
29248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29249 test $ac_status = 0; }; }; then :
29250
86e3c28a
CIK
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29252$as_echo "yes" >&6; }
70e083d2 29253
86e3c28a 29254$as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
70e083d2
TG
29255
29256
29257else
29258 $as_echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
86e3c28a
CIK
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29262$as_echo "no" >&6; }
70e083d2
TG
29263
29264
29265
29266fi
29267 rm -Rf build
29268
29269
70e083d2
TG
29270
29271
86e3c28a
CIK
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29273$as_echo_n "checking block device operation prototypes... " >&6; }
70e083d2
TG
29274 tmp_flags="$EXTRA_KCFLAGS"
29275 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29276
29277
29278cat confdefs.h - <<_ACEOF >conftest.c
29279
29280
29281 #include <linux/blkdev.h>
29282
86e3c28a
CIK
29283 int blk_open(struct block_device *bdev, fmode_t mode)
29284 { return 0; }
29285 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29286 unsigned x, unsigned long y) { return 0; }
29287 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29288 unsigned x, unsigned long y) { return 0; }
70e083d2
TG
29289
29290 static const struct block_device_operations
29291 bops __attribute__ ((unused)) = {
86e3c28a
CIK
29292 .open = blk_open,
29293 .release = NULL,
29294 .ioctl = blk_ioctl,
29295 .compat_ioctl = blk_compat_ioctl,
70e083d2
TG
29296 };
29297
29298int
29299main (void)
29300{
29301
29302
29303 ;
29304 return 0;
29305}
29306
29307_ACEOF
29308
29309
29310
29311cat - <<_ACEOF >conftest.h
29312
29313_ACEOF
29314
29315
29316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29317 echo "obj-m := conftest.o" >build/Makefile
29318 modpost_flag=''
29319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29320 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'
29321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29322 (eval $ac_try) 2>&5
29323 ac_status=$?
29324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29325 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29327 (eval $ac_try) 2>&5
29328 ac_status=$?
29329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29330 test $ac_status = 0; }; }; then :
29331
86e3c28a
CIK
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29333$as_echo "struct block_device" >&6; }
70e083d2 29334
86e3c28a 29335$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
70e083d2
TG
29336
29337
29338else
29339 $as_echo "$as_me: failed program was:" >&5
29340sed 's/^/| /' conftest.$ac_ext >&5
29341
86e3c28a
CIK
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29343$as_echo "struct inode" >&6; }
70e083d2
TG
29344
29345
29346
29347fi
29348 rm -Rf build
29349
29350
29351 EXTRA_KCFLAGS="$tmp_flags"
29352
86e3c28a
CIK
29353
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29355$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29356 tmp_flags="$EXTRA_KCFLAGS"
29357 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
70e083d2
TG
29358
29359
29360cat confdefs.h - <<_ACEOF >conftest.c
29361
29362
86e3c28a
CIK
29363 #include <linux/blkdev.h>
29364
29365 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29366
29367 static const struct block_device_operations
29368 bops __attribute__ ((unused)) = {
29369 .open = NULL,
29370 .release = blk_release,
29371 .ioctl = NULL,
29372 .compat_ioctl = NULL,
29373 };
70e083d2
TG
29374
29375int
29376main (void)
29377{
29378
70e083d2
TG
29379
29380 ;
29381 return 0;
29382}
29383
29384_ACEOF
29385
29386
29387
29388cat - <<_ACEOF >conftest.h
29389
29390_ACEOF
29391
29392
29393 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29394 echo "obj-m := conftest.o" >build/Makefile
29395 modpost_flag=''
29396 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29397 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'
29398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29399 (eval $ac_try) 2>&5
29400 ac_status=$?
29401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29402 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29404 (eval $ac_try) 2>&5
29405 ac_status=$?
29406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29407 test $ac_status = 0; }; }; then :
29408
86e3c28a
CIK
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29410$as_echo "void" >&6; }
70e083d2 29411
86e3c28a 29412$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
70e083d2
TG
29413
29414
29415else
29416 $as_echo "$as_me: failed program was:" >&5
29417sed 's/^/| /' conftest.$ac_ext >&5
29418
86e3c28a
CIK
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29420$as_echo "int" >&6; }
70e083d2
TG
29421
29422
29423
29424fi
29425 rm -Rf build
29426
29427
86e3c28a 29428 EXTRA_KCFLAGS="$tmp_flags"
70e083d2 29429
86e3c28a
CIK
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29431$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
70e083d2
TG
29432
29433
29434cat confdefs.h - <<_ACEOF >conftest.c
29435
29436
86e3c28a 29437 #include <linux/types.h>
70e083d2
TG
29438
29439int
29440main (void)
29441{
29442
86e3c28a 29443 fmode_t *ptr __attribute__ ((unused));
70e083d2
TG
29444
29445 ;
29446 return 0;
29447}
29448
29449_ACEOF
29450
29451
29452
29453cat - <<_ACEOF >conftest.h
29454
29455_ACEOF
29456
29457
29458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29459 echo "obj-m := conftest.o" >build/Makefile
29460 modpost_flag=''
29461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29462 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'
29463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29464 (eval $ac_try) 2>&5
29465 ac_status=$?
29466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29467 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472 test $ac_status = 0; }; }; then :
29473
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29475$as_echo "yes" >&6; }
29476
86e3c28a 29477$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
70e083d2
TG
29478
29479
29480else
29481 $as_echo "$as_me: failed program was:" >&5
29482sed 's/^/| /' conftest.$ac_ext >&5
29483
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29485$as_echo "no" >&6; }
29486
29487
29488
29489fi
29490 rm -Rf build
29491
29492
29493
29494
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29496$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29497
29498
29499cat confdefs.h - <<_ACEOF >conftest.c
29500
29501
29502 #include <linux/fs.h>
29503
29504int
29505main (void)
29506{
29507
29508 struct block_device *bdev = NULL;
29509 (void) blkdev_get(bdev, 0, NULL);
29510
29511 ;
29512 return 0;
29513}
29514
29515_ACEOF
29516
29517
29518
29519cat - <<_ACEOF >conftest.h
29520
29521_ACEOF
29522
29523
29524 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29525 echo "obj-m := conftest.o" >build/Makefile
29526 modpost_flag=''
29527 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29528 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'
29529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29533 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29535 (eval $ac_try) 2>&5
29536 ac_status=$?
29537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29538 test $ac_status = 0; }; }; then :
29539
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29541$as_echo "yes" >&6; }
29542
29543$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29544
29545
29546else
29547 $as_echo "$as_me: failed program was:" >&5
29548sed 's/^/| /' conftest.$ac_ext >&5
29549
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29551$as_echo "no" >&6; }
29552
29553
29554
29555fi
29556 rm -Rf build
29557
29558
29559
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29561$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29562
29563
29564
29565cat confdefs.h - <<_ACEOF >conftest.c
29566
29567
29568 #include <linux/fs.h>
29569
29570int
29571main (void)
29572{
29573
29574 blkdev_get_by_path(NULL, 0, NULL);
29575
29576 ;
29577 return 0;
29578}
29579
29580_ACEOF
29581
29582
29583
29584cat - <<_ACEOF >conftest.h
29585
29586_ACEOF
29587
29588
29589 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29590 echo "obj-m := conftest.o" >build/Makefile
29591 modpost_flag=''
29592 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29593 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'
29594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29595 (eval $ac_try) 2>&5
29596 ac_status=$?
29597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29598 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29600 (eval $ac_try) 2>&5
29601 ac_status=$?
29602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29603 test $ac_status = 0; }; }; then :
29604 rc=0
29605else
29606 $as_echo "$as_me: failed program was:" >&5
29607sed 's/^/| /' conftest.$ac_ext >&5
29608 rc=1
29609
29610
29611fi
29612 rm -Rf build
29613
29614
29615 if test $rc -ne 0; then :
29616
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29618$as_echo "no" >&6; }
29619
29620 else
29621 if test "x$enable_linux_builtin" != xyes; then
29622
29623 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29624 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29625 rc=$?
29626 if test $rc -ne 0; then
29627 export=0
29628 for file in fs/block_dev.c; do
29629 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29630 "$LINUX/$file" 2>/dev/null
29631 rc=$?
29632 if test $rc -eq 0; then
29633 export=1
29634 break;
29635 fi
29636 done
29637 if test $export -eq 0; then :
29638 rc=1
29639 else :
29640 rc=0
29641 fi
29642 else :
29643 rc=0
29644 fi
29645
29646 fi
29647 if test $rc -ne 0; then :
29648
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29650$as_echo "no" >&6; }
29651
29652 else :
29653
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29655$as_echo "yes" >&6; }
29656
29657$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29658
29659
29660 fi
29661 fi
29662
29663
29664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29665$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29666
29667
29668
29669cat confdefs.h - <<_ACEOF >conftest.c
29670
29671
29672 #include <linux/fs.h>
29673
29674int
29675main (void)
29676{
29677
29678 open_bdev_exclusive(NULL, 0, NULL);
29679
29680 ;
29681 return 0;
29682}
29683
29684_ACEOF
29685
29686
29687
29688cat - <<_ACEOF >conftest.h
29689
29690_ACEOF
29691
29692
29693 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29694 echo "obj-m := conftest.o" >build/Makefile
29695 modpost_flag=''
29696 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29697 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'
29698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29699 (eval $ac_try) 2>&5
29700 ac_status=$?
29701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29702 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29707 test $ac_status = 0; }; }; then :
29708 rc=0
29709else
29710 $as_echo "$as_me: failed program was:" >&5
29711sed 's/^/| /' conftest.$ac_ext >&5
29712 rc=1
29713
29714
29715fi
29716 rm -Rf build
29717
29718
29719 if test $rc -ne 0; then :
29720
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722$as_echo "no" >&6; }
29723
29724 else
29725 if test "x$enable_linux_builtin" != xyes; then
29726
29727 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29728 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29729 rc=$?
29730 if test $rc -ne 0; then
29731 export=0
29732 for file in fs/block_dev.c; do
29733 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29734 "$LINUX/$file" 2>/dev/null
29735 rc=$?
29736 if test $rc -eq 0; then
29737 export=1
29738 break;
29739 fi
29740 done
29741 if test $export -eq 0; then :
29742 rc=1
29743 else :
29744 rc=0
29745 fi
29746 else :
29747 rc=0
29748 fi
29749
29750 fi
29751 if test $rc -ne 0; then :
29752
29753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29754$as_echo "no" >&6; }
29755
29756 else :
29757
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29759$as_echo "yes" >&6; }
29760
29761$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
29762
29763
29764 fi
29765 fi
29766
29767
29768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
29769$as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
29770
29771
29772
29773cat confdefs.h - <<_ACEOF >conftest.c
29774
29775
29776 #include <linux/fs.h>
29777
29778int
29779main (void)
29780{
29781
29782 lookup_bdev(NULL);
29783
29784 ;
29785 return 0;
29786}
29787
29788_ACEOF
29789
29790
29791
29792cat - <<_ACEOF >conftest.h
29793
29794_ACEOF
29795
29796
29797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29798 echo "obj-m := conftest.o" >build/Makefile
29799 modpost_flag=''
29800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29801 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'
29802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29803 (eval $ac_try) 2>&5
29804 ac_status=$?
29805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29808 (eval $ac_try) 2>&5
29809 ac_status=$?
29810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29811 test $ac_status = 0; }; }; then :
29812 rc=0
29813else
29814 $as_echo "$as_me: failed program was:" >&5
29815sed 's/^/| /' conftest.$ac_ext >&5
29816 rc=1
29817
29818
29819fi
29820 rm -Rf build
29821
29822
29823 if test $rc -ne 0; then :
29824
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29826$as_echo "no" >&6; }
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
29828$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
29829
29830
29831
29832cat confdefs.h - <<_ACEOF >conftest.c
29833
29834
29835 #include <linux/fs.h>
29836
29837int
29838main (void)
29839{
29840
29841 lookup_bdev(NULL, FMODE_READ);
29842
29843 ;
29844 return 0;
29845}
29846
29847_ACEOF
29848
29849
29850
29851cat - <<_ACEOF >conftest.h
29852
29853_ACEOF
29854
29855
29856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29857 echo "obj-m := conftest.o" >build/Makefile
29858 modpost_flag=''
29859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29860 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'
29861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29862 (eval $ac_try) 2>&5
29863 ac_status=$?
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }; then :
29871 rc=0
29872else
29873 $as_echo "$as_me: failed program was:" >&5
29874sed 's/^/| /' conftest.$ac_ext >&5
29875 rc=1
29876
29877
29878fi
29879 rm -Rf build
29880
29881
29882 if test $rc -ne 0; then :
29883
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29885$as_echo "no" >&6; }
29886
29887 else
29888 if test "x$enable_linux_builtin" != xyes; then
29889
29890 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
29891 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29892 rc=$?
29893 if test $rc -ne 0; then
29894 export=0
29895 for file in fs/block_dev.c; do
29896 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
29897 "$LINUX/$file" 2>/dev/null
29898 rc=$?
29899 if test $rc -eq 0; then
29900 export=1
29901 break;
29902 fi
29903 done
29904 if test $export -eq 0; then :
29905 rc=1
29906 else :
29907 rc=0
29908 fi
29909 else :
29910 rc=0
29911 fi
29912
29913 fi
29914 if test $rc -ne 0; then :
29915
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917$as_echo "no" >&6; }
29918
29919 else :
29920
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29922$as_echo "yes" >&6; }
29923
29924$as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
29925
29926
29927 fi
29928 fi
29929
29930
29931 else
29932 if test "x$enable_linux_builtin" != xyes; then
29933
29934 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
29935 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29936 rc=$?
29937 if test $rc -ne 0; then
29938 export=0
29939 for file in fs/block_dev.c; do
29940 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
29941 "$LINUX/$file" 2>/dev/null
29942 rc=$?
29943 if test $rc -eq 0; then
29944 export=1
29945 break;
29946 fi
29947 done
29948 if test $export -eq 0; then :
29949 rc=1
29950 else :
29951 rc=0
29952 fi
29953 else :
29954 rc=0
29955 fi
29956
29957 fi
29958 if test $rc -ne 0; then :
29959
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29961$as_echo "no" >&6; }
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
29963$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
29964
29965
29966
29967cat confdefs.h - <<_ACEOF >conftest.c
29968
29969
29970 #include <linux/fs.h>
29971
29972int
29973main (void)
29974{
29975
29976 lookup_bdev(NULL, FMODE_READ);
29977
29978 ;
29979 return 0;
29980}
29981
29982_ACEOF
29983
29984
29985
29986cat - <<_ACEOF >conftest.h
29987
29988_ACEOF
29989
29990
29991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29992 echo "obj-m := conftest.o" >build/Makefile
29993 modpost_flag=''
29994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29995 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'
29996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29997 (eval $ac_try) 2>&5
29998 ac_status=$?
29999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30002 (eval $ac_try) 2>&5
30003 ac_status=$?
30004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30005 test $ac_status = 0; }; }; then :
30006 rc=0
30007else
30008 $as_echo "$as_me: failed program was:" >&5
30009sed 's/^/| /' conftest.$ac_ext >&5
30010 rc=1
30011
30012
30013fi
30014 rm -Rf build
30015
30016
30017 if test $rc -ne 0; then :
30018
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
30021
30022 else
30023 if test "x$enable_linux_builtin" != xyes; then
30024
30025 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30027 rc=$?
30028 if test $rc -ne 0; then
30029 export=0
30030 for file in fs/block_dev.c; do
30031 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30032 "$LINUX/$file" 2>/dev/null
30033 rc=$?
30034 if test $rc -eq 0; then
30035 export=1
30036 break;
30037 fi
30038 done
30039 if test $export -eq 0; then :
30040 rc=1
30041 else :
30042 rc=0
30043 fi
30044 else :
30045 rc=0
30046 fi
30047
30048 fi
30049 if test $rc -ne 0; then :
30050
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30052$as_echo "no" >&6; }
30053
30054 else :
30055
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30057$as_echo "yes" >&6; }
30058
30059$as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30060
30061
30062 fi
30063 fi
30064
30065
30066 else :
30067
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30069$as_echo "yes" >&6; }
30070
30071$as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30072
30073
30074 fi
30075 fi
30076
30077
30078
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30080$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30081
30082
30083cat confdefs.h - <<_ACEOF >conftest.c
30084
30085
30086 #include <linux/buffer_head.h>
30087
30088int
30089main (void)
30090{
30091
30092 struct block_device *bdev = NULL;
30093 invalidate_bdev(bdev);
30094
30095 ;
30096 return 0;
30097}
30098
30099_ACEOF
30100
30101
30102
30103cat - <<_ACEOF >conftest.h
30104
30105_ACEOF
30106
30107
30108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30109 echo "obj-m := conftest.o" >build/Makefile
30110 modpost_flag=''
30111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30112 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'
30113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30114 (eval $ac_try) 2>&5
30115 ac_status=$?
30116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30117 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30119 (eval $ac_try) 2>&5
30120 ac_status=$?
30121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30122 test $ac_status = 0; }; }; then :
30123
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125$as_echo "yes" >&6; }
30126
30127$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30128
30129
30130else
30131 $as_echo "$as_me: failed program was:" >&5
30132sed 's/^/| /' conftest.$ac_ext >&5
30133
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135$as_echo "no" >&6; }
30136
30137
30138
30139fi
30140 rm -Rf build
30141
30142
30143
30144
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30146$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30147 tmp_flags="$EXTRA_KCFLAGS"
30148 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30149
30150
30151cat confdefs.h - <<_ACEOF >conftest.c
30152
30153
30154 #include <linux/blkdev.h>
30155
30156int
30157main (void)
30158{
30159
30160 struct block_device *bdev = NULL;
30161 bdev_logical_block_size(bdev);
30162
30163 ;
30164 return 0;
30165}
30166
30167_ACEOF
30168
30169
30170
30171cat - <<_ACEOF >conftest.h
30172
30173_ACEOF
30174
30175
30176 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30177 echo "obj-m := conftest.o" >build/Makefile
30178 modpost_flag=''
30179 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30180 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'
30181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30182 (eval $ac_try) 2>&5
30183 ac_status=$?
30184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30187 (eval $ac_try) 2>&5
30188 ac_status=$?
30189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30190 test $ac_status = 0; }; }; then :
30191
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30193$as_echo "yes" >&6; }
30194
30195$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30196
30197
30198else
30199 $as_echo "$as_me: failed program was:" >&5
30200sed 's/^/| /' conftest.$ac_ext >&5
30201
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30203$as_echo "no" >&6; }
30204
30205
30206
30207fi
30208 rm -Rf build
30209
30210
30211 EXTRA_KCFLAGS="$tmp_flags"
30212
30213
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30215$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30216 tmp_flags="$EXTRA_KCFLAGS"
30217 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30218
30219
30220cat confdefs.h - <<_ACEOF >conftest.c
30221
30222
30223 #include <linux/blkdev.h>
30224
30225int
30226main (void)
30227{
30228
30229 struct block_device *bdev = NULL;
30230 bdev_physical_block_size(bdev);
30231
30232 ;
30233 return 0;
30234}
30235
30236_ACEOF
30237
30238
30239
30240cat - <<_ACEOF >conftest.h
30241
30242_ACEOF
30243
30244
30245 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30246 echo "obj-m := conftest.o" >build/Makefile
30247 modpost_flag=''
30248 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30249 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'
30250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30251 (eval $ac_try) 2>&5
30252 ac_status=$?
30253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30254 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30256 (eval $ac_try) 2>&5
30257 ac_status=$?
30258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30259 test $ac_status = 0; }; }; then :
30260
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30262$as_echo "yes" >&6; }
30263
30264$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30265
30266
30267else
30268 $as_echo "$as_me: failed program was:" >&5
30269sed 's/^/| /' conftest.$ac_ext >&5
30270
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30272$as_echo "no" >&6; }
30273
30274
30275
30276fi
30277 rm -Rf build
30278
30279
30280 EXTRA_KCFLAGS="$tmp_flags"
30281
30282
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30284$as_echo_n "checking whether bio has bi_iter... " >&6; }
30285
30286
30287cat confdefs.h - <<_ACEOF >conftest.c
30288
30289
30290 #include <linux/bio.h>
30291
30292int
30293main (void)
30294{
30295
30296 struct bio bio;
30297 bio.bi_iter.bi_sector = 0;
30298
30299 ;
30300 return 0;
30301}
30302
30303_ACEOF
30304
30305
30306
30307cat - <<_ACEOF >conftest.h
30308
30309_ACEOF
30310
30311
30312 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30313 echo "obj-m := conftest.o" >build/Makefile
30314 modpost_flag=''
30315 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30316 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'
30317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30321 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30323 (eval $ac_try) 2>&5
30324 ac_status=$?
30325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30326 test $ac_status = 0; }; }; then :
30327
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30329$as_echo "yes" >&6; }
30330
30331$as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30332
30333
30334else
30335 $as_echo "$as_me: failed program was:" >&5
30336sed 's/^/| /' conftest.$ac_ext >&5
30337
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30339$as_echo "no" >&6; }
30340
30341
30342
30343fi
30344 rm -Rf build
30345
30346
30347
30348
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30350$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30351
30352
30353cat confdefs.h - <<_ACEOF >conftest.c
30354
30355
30356 #include <linux/bio.h>
30357
30358int
30359main (void)
30360{
30361
30362 int flags __attribute__ ((unused));
30363 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30364 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30365 (1 << BIO_RW_FAILFAST_DRIVER));
30366
30367 ;
30368 return 0;
30369}
30370
30371_ACEOF
30372
30373
30374
30375cat - <<_ACEOF >conftest.h
30376
30377_ACEOF
30378
30379
30380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30381 echo "obj-m := conftest.o" >build/Makefile
30382 modpost_flag=''
30383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30384 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'
30385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30386 (eval $ac_try) 2>&5
30387 ac_status=$?
30388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30389 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30391 (eval $ac_try) 2>&5
30392 ac_status=$?
30393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30394 test $ac_status = 0; }; }; then :
30395
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30397$as_echo "yes" >&6; }
30398
30399$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30400
30401
30402else
30403 $as_echo "$as_me: failed program was:" >&5
30404sed 's/^/| /' conftest.$ac_ext >&5
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407$as_echo "no" >&6; }
30408
30409
30410
30411fi
30412 rm -Rf build
30413
30414
30415
30416
86e3c28a
CIK
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30418$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30419
30420
30421cat confdefs.h - <<_ACEOF >conftest.c
30422
30423
30424 #include <linux/bio.h>
30425 #include <linux/fs.h>
30426
30427int
30428main (void)
30429{
30430
30431 struct block_device *bdev = NULL;
30432 struct bio *bio = NULL;
30433 bio_set_dev(bio, bdev);
30434
30435 ;
30436 return 0;
30437}
30438
30439_ACEOF
30440
30441
30442
30443cat - <<_ACEOF >conftest.h
30444
30445_ACEOF
30446
30447
30448 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30449 echo "obj-m := conftest.o" >build/Makefile
30450 modpost_flag=''
30451 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30452 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'
30453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30454 (eval $ac_try) 2>&5
30455 ac_status=$?
30456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30457 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30459 (eval $ac_try) 2>&5
30460 ac_status=$?
30461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30462 test $ac_status = 0; }; }; then :
30463
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30465$as_echo "yes" >&6; }
30466
30467$as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30468
30469
30470else
30471 $as_echo "$as_me: failed program was:" >&5
30472sed 's/^/| /' conftest.$ac_ext >&5
30473
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30475$as_echo "no" >&6; }
30476
30477
30478
30479fi
30480 rm -Rf build
30481
30482
30483
30484
70e083d2
TG
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30486$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30487
30488
30489cat confdefs.h - <<_ACEOF >conftest.c
30490
30491
30492 #include <linux/bio.h>
30493
30494int
30495main (void)
30496{
30497
30498 int flags __attribute__ ((unused));
30499 flags = REQ_FAILFAST_MASK;
30500
30501 ;
30502 return 0;
30503}
30504
30505_ACEOF
30506
30507
30508
30509cat - <<_ACEOF >conftest.h
30510
30511_ACEOF
30512
30513
30514 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30515 echo "obj-m := conftest.o" >build/Makefile
30516 modpost_flag=''
30517 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30518 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'
30519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30520 (eval $ac_try) 2>&5
30521 ac_status=$?
30522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30523 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30525 (eval $ac_try) 2>&5
30526 ac_status=$?
30527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30528 test $ac_status = 0; }; }; then :
30529
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30531$as_echo "yes" >&6; }
30532
30533$as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30534
30535
30536else
30537 $as_echo "$as_me: failed program was:" >&5
30538sed 's/^/| /' conftest.$ac_ext >&5
30539
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
30542
30543
30544
30545fi
30546 rm -Rf build
30547
30548
30549
30550
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30552$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30553
30554
30555cat confdefs.h - <<_ACEOF >conftest.c
30556
30557
30558 #include <linux/blk_types.h>
30559
30560int
30561main (void)
30562{
30563
30564 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30565
30566 ;
30567 return 0;
30568}
30569
30570_ACEOF
30571
30572
30573
30574cat - <<_ACEOF >conftest.h
30575
30576_ACEOF
30577
30578
30579 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30580 echo "obj-m := conftest.o" >build/Makefile
30581 modpost_flag=''
30582 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30583 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'
30584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30585 (eval $ac_try) 2>&5
30586 ac_status=$?
30587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30588 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30593 test $ac_status = 0; }; }; then :
30594
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30596$as_echo "yes" >&6; }
30597
30598$as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30599
30600
30601else
30602 $as_echo "$as_me: failed program was:" >&5
30603sed 's/^/| /' conftest.$ac_ext >&5
30604
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30606$as_echo "no" >&6; }
30607
30608
30609
30610fi
30611 rm -Rf build
30612
30613
30614
30615
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30617$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30618
30619
30620cat confdefs.h - <<_ACEOF >conftest.c
30621
30622
30623 #include <linux/blk_types.h>
30624
30625int
30626main (void)
30627{
30628
30629 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30630
30631 ;
30632 return 0;
30633}
30634
30635_ACEOF
30636
30637
30638
30639cat - <<_ACEOF >conftest.h
30640
30641_ACEOF
30642
30643
30644 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30645 echo "obj-m := conftest.o" >build/Makefile
30646 modpost_flag=''
30647 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30648 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'
30649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30650 (eval $ac_try) 2>&5
30651 ac_status=$?
30652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30653 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30658 test $ac_status = 0; }; }; then :
30659
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30661$as_echo "yes" >&6; }
30662
30663$as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30664
30665
30666else
30667 $as_echo "$as_me: failed program was:" >&5
30668sed 's/^/| /' conftest.$ac_ext >&5
30669
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30671$as_echo "no" >&6; }
30672
30673
30674
30675fi
30676 rm -Rf build
30677
30678
30679
30680
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30682$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30683
30684
30685cat confdefs.h - <<_ACEOF >conftest.c
30686
30687
30688 #include <linux/blk_types.h>
30689
30690int
30691main (void)
30692{
30693
30694 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30695
30696 ;
30697 return 0;
30698}
30699
30700_ACEOF
30701
30702
30703
30704cat - <<_ACEOF >conftest.h
30705
30706_ACEOF
30707
30708
30709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30710 echo "obj-m := conftest.o" >build/Makefile
30711 modpost_flag=''
30712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30713 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'
30714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30715 (eval $ac_try) 2>&5
30716 ac_status=$?
30717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30718 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30720 (eval $ac_try) 2>&5
30721 ac_status=$?
30722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30723 test $ac_status = 0; }; }; then :
30724
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30726$as_echo "yes" >&6; }
30727
30728$as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30729
30730
30731else
30732 $as_echo "$as_me: failed program was:" >&5
30733sed 's/^/| /' conftest.$ac_ext >&5
30734
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30736$as_echo "no" >&6; }
30737
30738
30739
30740fi
30741 rm -Rf build
30742
30743
30744
30745
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30747$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30748
30749
30750cat confdefs.h - <<_ACEOF >conftest.c
30751
30752
30753 #include <linux/bio.h>
30754
30755int
30756main (void)
30757{
30758
30759 struct bio bio __attribute__ ((unused));
30760 bio.bi_opf = 0;
30761
30762 ;
30763 return 0;
30764}
30765
30766_ACEOF
30767
30768
30769
30770cat - <<_ACEOF >conftest.h
30771
30772_ACEOF
30773
30774
30775 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30776 echo "obj-m := conftest.o" >build/Makefile
30777 modpost_flag=''
30778 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30779 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'
30780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30781 (eval $ac_try) 2>&5
30782 ac_status=$?
30783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30784 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30786 (eval $ac_try) 2>&5
30787 ac_status=$?
30788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30789 test $ac_status = 0; }; }; then :
30790
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30792$as_echo "yes" >&6; }
30793
30794$as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
30795
30796
30797else
30798 $as_echo "$as_me: failed program was:" >&5
30799sed 's/^/| /' conftest.$ac_ext >&5
30800
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30802$as_echo "no" >&6; }
30803
30804
30805
30806fi
30807 rm -Rf build
30808
30809
30810
30811
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
30813$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
30814
30815
30816cat confdefs.h - <<_ACEOF >conftest.c
30817
30818
30819 #include <linux/bio.h>
30820
30821 void wanted_end_io(struct bio *bio) { return; }
30822
30823 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
30824
30825int
30826main (void)
30827{
30828
30829
30830 ;
30831 return 0;
30832}
30833
30834_ACEOF
30835
30836
30837
30838cat - <<_ACEOF >conftest.h
30839
30840_ACEOF
30841
30842
30843 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30844 echo "obj-m := conftest.o" >build/Makefile
30845 modpost_flag=''
30846 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30847 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'
30848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30849 (eval $ac_try) 2>&5
30850 ac_status=$?
30851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30852 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30854 (eval $ac_try) 2>&5
30855 ac_status=$?
30856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30857 test $ac_status = 0; }; }; then :
30858
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30860$as_echo "yes" >&6; }
30861
30862$as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
30863
30864
30865else
30866 $as_echo "$as_me: failed program was:" >&5
30867sed 's/^/| /' conftest.$ac_ext >&5
30868
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30870$as_echo "no" >&6; }
30871
30872
30873
30874fi
30875 rm -Rf build
30876
30877
30878
30879
3ab1144a
CIK
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
30881$as_echo_n "checking whether bio->bi_status exists... " >&6; }
30882
30883
30884cat confdefs.h - <<_ACEOF >conftest.c
30885
30886
30887 #include <linux/bio.h>
30888
30889int
30890main (void)
30891{
30892
30893 struct bio bio __attribute__ ((unused));
30894 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
30895
30896 bio.bi_status = status;
30897
30898 ;
30899 return 0;
30900}
30901
30902_ACEOF
30903
30904
30905
30906cat - <<_ACEOF >conftest.h
30907
30908_ACEOF
30909
30910
30911 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30912 echo "obj-m := conftest.o" >build/Makefile
30913 modpost_flag=''
30914 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30915 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'
30916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30917 (eval $ac_try) 2>&5
30918 ac_status=$?
30919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30920 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30922 (eval $ac_try) 2>&5
30923 ac_status=$?
30924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30925 test $ac_status = 0; }; }; then :
30926
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30928$as_echo "yes" >&6; }
30929
30930$as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
30931
30932
30933else
30934 $as_echo "$as_me: failed program was:" >&5
30935sed 's/^/| /' conftest.$ac_ext >&5
30936
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30938$as_echo "no" >&6; }
30939
30940
30941
30942fi
30943 rm -Rf build
30944
30945
30946
30947
70e083d2
TG
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
30949$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
30950
30951
30952cat confdefs.h - <<_ACEOF >conftest.c
30953
30954
30955 #include <linux/bio.h>
30956
30957int
30958main (void)
30959{
30960
30961 int flags __attribute__ ((unused));
30962 flags = BIO_RW_BARRIER;
30963
30964 ;
30965 return 0;
30966}
30967
30968_ACEOF
30969
30970
30971
30972cat - <<_ACEOF >conftest.h
30973
30974_ACEOF
30975
30976
30977 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30978 echo "obj-m := conftest.o" >build/Makefile
30979 modpost_flag=''
30980 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30981 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'
30982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30983 (eval $ac_try) 2>&5
30984 ac_status=$?
30985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30986 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30988 (eval $ac_try) 2>&5
30989 ac_status=$?
30990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30991 test $ac_status = 0; }; }; then :
30992
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30994$as_echo "yes" >&6; }
30995
30996$as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
30997
30998
30999else
31000 $as_echo "$as_me: failed program was:" >&5
31001sed 's/^/| /' conftest.$ac_ext >&5
31002
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31004$as_echo "no" >&6; }
31005
31006
31007
31008fi
31009 rm -Rf build
31010
31011
31012
31013
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31015$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31016
31017
31018cat confdefs.h - <<_ACEOF >conftest.c
31019
31020
31021 #include <linux/bio.h>
31022
31023int
31024main (void)
31025{
31026
31027 int flags __attribute__ ((unused));
31028 flags = BIO_RW_DISCARD;
31029
31030 ;
31031 return 0;
31032}
31033
31034_ACEOF
31035
31036
31037
31038cat - <<_ACEOF >conftest.h
31039
31040_ACEOF
31041
31042
31043 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31044 echo "obj-m := conftest.o" >build/Makefile
31045 modpost_flag=''
31046 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31047 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'
31048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31049 (eval $ac_try) 2>&5
31050 ac_status=$?
31051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31052 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31054 (eval $ac_try) 2>&5
31055 ac_status=$?
31056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31057 test $ac_status = 0; }; }; then :
31058
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31060$as_echo "yes" >&6; }
31061
31062$as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31063
31064
31065else
31066 $as_echo "$as_me: failed program was:" >&5
31067sed 's/^/| /' conftest.$ac_ext >&5
31068
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070$as_echo "no" >&6; }
31071
31072
31073
31074fi
31075 rm -Rf build
31076
31077
31078
31079
86e3c28a
CIK
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31081$as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31082
31083
31084cat confdefs.h - <<_ACEOF >conftest.c
31085
31086
31087 #include <linux/blkdev.h>
31088
31089int
31090main (void)
31091{
31092
31093 struct request_queue q;
31094 struct backing_dev_info bdi;
31095 q.backing_dev_info = &bdi;
31096
31097 ;
31098 return 0;
31099}
31100
31101_ACEOF
31102
31103
31104
31105cat - <<_ACEOF >conftest.h
31106
31107_ACEOF
31108
31109
31110 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31111 echo "obj-m := conftest.o" >build/Makefile
31112 modpost_flag=''
31113 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31114 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'
31115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31116 (eval $ac_try) 2>&5
31117 ac_status=$?
31118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31119 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31121 (eval $ac_try) 2>&5
31122 ac_status=$?
31123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31124 test $ac_status = 0; }; }; then :
31125
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31127$as_echo "yes" >&6; }
31128
31129$as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31130
31131
31132else
31133 $as_echo "$as_me: failed program was:" >&5
31134sed 's/^/| /' conftest.$ac_ext >&5
31135
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137$as_echo "no" >&6; }
31138
31139
31140
31141fi
31142 rm -Rf build
31143
31144
31145
31146
70e083d2
TG
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31148$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31149 tmp_flags="$EXTRA_KCFLAGS"
31150 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31151
31152
31153cat confdefs.h - <<_ACEOF >conftest.c
31154
31155
31156 #include <linux/blkdev.h>
31157
31158int
31159main (void)
31160{
31161
31162 struct request_queue *q = NULL;
31163 (void) blk_queue_flush(q, REQ_FLUSH);
31164
31165 ;
31166 return 0;
31167}
31168
31169_ACEOF
31170
31171
31172
31173cat - <<_ACEOF >conftest.h
31174
31175_ACEOF
31176
31177
31178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31179 echo "obj-m := conftest.o" >build/Makefile
31180 modpost_flag=''
31181 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31182 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'
31183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31184 (eval $ac_try) 2>&5
31185 ac_status=$?
31186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31187 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31189 (eval $ac_try) 2>&5
31190 ac_status=$?
31191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31192 test $ac_status = 0; }; }; then :
31193
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31195$as_echo "yes" >&6; }
31196
31197$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31198
31199
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31201$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31202
31203
31204cat confdefs.h - <<_ACEOF >conftest.c
31205
31206
31207 #include <linux/module.h>
31208 #include <linux/blkdev.h>
31209
31210 MODULE_LICENSE("$ZFS_META_LICENSE");
31211
31212int
31213main (void)
31214{
31215
31216 struct request_queue *q = NULL;
31217 (void) blk_queue_flush(q, REQ_FLUSH);
31218
31219 ;
31220 return 0;
31221}
31222
31223_ACEOF
31224
31225
31226
31227cat - <<_ACEOF >conftest.h
31228
31229_ACEOF
31230
31231
31232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31233 echo "obj-m := conftest.o" >build/Makefile
31234 modpost_flag=''
31235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31236 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'
31237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31238 (eval $ac_try) 2>&5
31239 ac_status=$?
31240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31241 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31243 (eval $ac_try) 2>&5
31244 ac_status=$?
31245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31246 test $ac_status = 0; }; }; then :
31247
31248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31249$as_echo "no" >&6; }
31250
31251else
31252 $as_echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31256$as_echo "yes" >&6; }
31257
31258$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31259
31260
31261
31262
31263fi
31264 rm -Rf build
31265
31266
31267
31268else
31269 $as_echo "$as_me: failed program was:" >&5
31270sed 's/^/| /' conftest.$ac_ext >&5
31271
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31273$as_echo "no" >&6; }
31274
31275
31276
31277fi
31278 rm -Rf build
31279
31280
31281
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31283$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31284
31285
31286cat confdefs.h - <<_ACEOF >conftest.c
31287
31288
31289 #include <linux/kernel.h>
31290 #include <linux/blkdev.h>
31291
31292
31293int
31294main (void)
31295{
31296
31297 struct request_queue *q = NULL;
31298 blk_queue_write_cache(q, true, true);
31299
31300 ;
31301 return 0;
31302}
31303
31304_ACEOF
31305
31306
31307
31308cat - <<_ACEOF >conftest.h
31309
31310_ACEOF
31311
31312
31313 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31314 echo "obj-m := conftest.o" >build/Makefile
31315 modpost_flag=''
31316 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31317 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'
31318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31322 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31324 (eval $ac_try) 2>&5
31325 ac_status=$?
31326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31327 test $ac_status = 0; }; }; then :
31328
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31330$as_echo "yes" >&6; }
31331
31332$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31333
31334
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31336$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31337
31338
31339cat confdefs.h - <<_ACEOF >conftest.c
31340
31341
31342 #include <linux/kernel.h>
31343 #include <linux/module.h>
31344 #include <linux/blkdev.h>
31345
31346 MODULE_LICENSE("$ZFS_META_LICENSE");
31347
31348int
31349main (void)
31350{
31351
31352 struct request_queue *q = NULL;
31353 blk_queue_write_cache(q, true, true);
31354
31355 ;
31356 return 0;
31357}
31358
31359_ACEOF
31360
31361
31362
31363cat - <<_ACEOF >conftest.h
31364
31365_ACEOF
31366
31367
31368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31369 echo "obj-m := conftest.o" >build/Makefile
31370 modpost_flag=''
31371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31372 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'
31373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31374 (eval $ac_try) 2>&5
31375 ac_status=$?
31376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31377 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31379 (eval $ac_try) 2>&5
31380 ac_status=$?
31381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31382 test $ac_status = 0; }; }; then :
31383
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31385$as_echo "no" >&6; }
31386
31387else
31388 $as_echo "$as_me: failed program was:" >&5
31389sed 's/^/| /' conftest.$ac_ext >&5
31390
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31392$as_echo "yes" >&6; }
31393
31394$as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31395
31396
31397
31398
31399fi
31400 rm -Rf build
31401
31402
31403
31404else
31405 $as_echo "$as_me: failed program was:" >&5
31406sed 's/^/| /' conftest.$ac_ext >&5
31407
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31409$as_echo "no" >&6; }
31410
31411
31412
31413fi
31414 rm -Rf build
31415
31416
31417
31418 EXTRA_KCFLAGS="$tmp_flags"
31419
31420
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31422$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31423 tmp_flags="$EXTRA_KCFLAGS"
31424 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31425
31426
31427cat confdefs.h - <<_ACEOF >conftest.c
31428
31429
31430 #include <linux/blkdev.h>
31431
31432int
31433main (void)
31434{
31435
31436 struct request_queue *q = NULL;
31437 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31438
31439 ;
31440 return 0;
31441}
31442
31443_ACEOF
31444
31445
31446
31447cat - <<_ACEOF >conftest.h
31448
31449_ACEOF
31450
31451
31452 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31453 echo "obj-m := conftest.o" >build/Makefile
31454 modpost_flag=''
31455 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31456 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'
31457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31458 (eval $ac_try) 2>&5
31459 ac_status=$?
31460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31461 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31463 (eval $ac_try) 2>&5
31464 ac_status=$?
31465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31466 test $ac_status = 0; }; }; then :
31467
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31469$as_echo "yes" >&6; }
31470
31471$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31472
31473
31474else
31475 $as_echo "$as_me: failed program was:" >&5
31476sed 's/^/| /' conftest.$ac_ext >&5
31477
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31479$as_echo "no" >&6; }
31480
31481
31482
31483fi
31484 rm -Rf build
31485
31486
31487 EXTRA_KCFLAGS="$tmp_flags"
31488
31489
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31491$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31492 tmp_flags="$EXTRA_KCFLAGS"
31493 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31494
31495
31496cat confdefs.h - <<_ACEOF >conftest.c
31497
31498
31499 #include <linux/blkdev.h>
31500
31501int
31502main (void)
31503{
31504
31505 struct request_queue *q = NULL;
31506 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31507
31508 ;
31509 return 0;
31510}
31511
31512_ACEOF
31513
31514
31515
31516cat - <<_ACEOF >conftest.h
31517
31518_ACEOF
31519
31520
31521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31522 echo "obj-m := conftest.o" >build/Makefile
31523 modpost_flag=''
31524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31525 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'
31526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31527 (eval $ac_try) 2>&5
31528 ac_status=$?
31529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31530 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31532 (eval $ac_try) 2>&5
31533 ac_status=$?
31534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31535 test $ac_status = 0; }; }; then :
31536
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31538$as_echo "yes" >&6; }
31539
31540$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31541
31542
31543else
31544 $as_echo "$as_me: failed program was:" >&5
31545sed 's/^/| /' conftest.$ac_ext >&5
31546
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31548$as_echo "no" >&6; }
31549
31550
31551
31552fi
31553 rm -Rf build
31554
31555
31556 EXTRA_KCFLAGS="$tmp_flags"
31557
31558
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31560$as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31561 tmp_flags="$EXTRA_KCFLAGS"
31562 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31563
31564
31565cat confdefs.h - <<_ACEOF >conftest.c
31566
31567
31568 #include <linux/blkdev.h>
31569
31570int
31571main (void)
31572{
31573
31574 extern enum bio_rw_flags rw;
31575
31576 rw = BIO_RW_UNPLUG;
31577
31578 ;
31579 return 0;
31580}
31581
31582_ACEOF
31583
31584
31585
31586cat - <<_ACEOF >conftest.h
31587
31588_ACEOF
31589
31590
31591 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31592 echo "obj-m := conftest.o" >build/Makefile
31593 modpost_flag=''
31594 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31595 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'
31596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31600 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31602 (eval $ac_try) 2>&5
31603 ac_status=$?
31604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31605 test $ac_status = 0; }; }; then :
31606
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31608$as_echo "yes" >&6; }
31609
31610$as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31611
31612
31613else
31614 $as_echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31618$as_echo "no" >&6; }
31619
31620
31621
31622fi
31623 rm -Rf build
31624
31625
31626 EXTRA_KCFLAGS="$tmp_flags"
31627
31628
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31630$as_echo_n "checking whether struct blk_plug is available... " >&6; }
31631 tmp_flags="$EXTRA_KCFLAGS"
31632 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31633
31634
31635cat confdefs.h - <<_ACEOF >conftest.c
31636
31637
31638 #include <linux/blkdev.h>
31639
31640int
31641main (void)
31642{
31643
31644 struct blk_plug plug;
31645
31646 blk_start_plug(&plug);
31647 blk_finish_plug(&plug);
31648
31649 ;
31650 return 0;
31651}
31652
31653_ACEOF
31654
31655
31656
31657cat - <<_ACEOF >conftest.h
31658
31659_ACEOF
31660
31661
31662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31663 echo "obj-m := conftest.o" >build/Makefile
31664 modpost_flag=''
31665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31666 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'
31667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31668 (eval $ac_try) 2>&5
31669 ac_status=$?
31670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31673 (eval $ac_try) 2>&5
31674 ac_status=$?
31675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31676 test $ac_status = 0; }; }; then :
31677
31678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31679$as_echo "yes" >&6; }
31680
31681$as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31682
31683
31684else
31685 $as_echo "$as_me: failed program was:" >&5
31686sed 's/^/| /' conftest.$ac_ext >&5
31687
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31689$as_echo "no" >&6; }
31690
31691
31692
31693fi
31694 rm -Rf build
31695
31696
31697 EXTRA_KCFLAGS="$tmp_flags"
31698
31699
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31701$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31702 tmp_flags="$EXTRA_KCFLAGS"
31703 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31704
31705
31706cat confdefs.h - <<_ACEOF >conftest.c
31707
31708
31709 #include <linux/blkdev.h>
31710
31711int
31712main (void)
31713{
31714
31715 struct gendisk *disk = NULL;
31716 (void) get_disk_ro(disk);
31717
31718 ;
31719 return 0;
31720}
31721
31722_ACEOF
31723
31724
31725
31726cat - <<_ACEOF >conftest.h
31727
31728_ACEOF
31729
31730
31731 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31732 echo "obj-m := conftest.o" >build/Makefile
31733 modpost_flag=''
31734 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31735 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'
31736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31737 (eval $ac_try) 2>&5
31738 ac_status=$?
31739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31740 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31745 test $ac_status = 0; }; }; then :
31746
31747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31748$as_echo "yes" >&6; }
31749
31750$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31751
31752
31753else
31754 $as_echo "$as_me: failed program was:" >&5
31755sed 's/^/| /' conftest.$ac_ext >&5
31756
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31758$as_echo "no" >&6; }
31759
31760
31761
31762fi
31763 rm -Rf build
31764
31765
31766 EXTRA_KCFLAGS="$tmp_flags"
31767
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
31769$as_echo_n "checking whether get_gendisk() is available... " >&6; }
31770
31771
31772
31773cat confdefs.h - <<_ACEOF >conftest.c
31774
31775
31776 #include <linux/genhd.h>
31777
31778int
31779main (void)
31780{
31781
31782 get_gendisk(0, NULL);
31783
31784 ;
31785 return 0;
31786}
31787
31788_ACEOF
31789
31790
31791
31792cat - <<_ACEOF >conftest.h
31793
31794_ACEOF
31795
31796
31797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31798 echo "obj-m := conftest.o" >build/Makefile
31799 modpost_flag=''
31800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31801 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'
31802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31803 (eval $ac_try) 2>&5
31804 ac_status=$?
31805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31808 (eval $ac_try) 2>&5
31809 ac_status=$?
31810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31811 test $ac_status = 0; }; }; then :
31812 rc=0
31813else
31814 $as_echo "$as_me: failed program was:" >&5
31815sed 's/^/| /' conftest.$ac_ext >&5
31816 rc=1
31817
31818
31819fi
31820 rm -Rf build
31821
31822
31823 if test $rc -ne 0; then :
31824
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31826$as_echo "no" >&6; }
31827
31828 else
31829 if test "x$enable_linux_builtin" != xyes; then
31830
31831 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
31832 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
31833 rc=$?
31834 if test $rc -ne 0; then
31835 export=0
31836 for file in block/genhd.c; do
31837 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
31838 "$LINUX/$file" 2>/dev/null
31839 rc=$?
31840 if test $rc -eq 0; then
31841 export=1
31842 break;
31843 fi
31844 done
31845 if test $export -eq 0; then :
31846 rc=1
31847 else :
31848 rc=0
31849 fi
31850 else :
31851 rc=0
31852 fi
31853
31854 fi
31855 if test $rc -ne 0; then :
31856
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31858$as_echo "no" >&6; }
31859
31860 else :
31861
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31863$as_echo "yes" >&6; }
31864
31865$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
31866
31867
31868 fi
31869 fi
31870
31871
31872
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
31874$as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
31875
31876
31877cat confdefs.h - <<_ACEOF >conftest.c
31878
31879
43c96d9a 31880 #include <linux/bio.h>
70e083d2
TG
31881
31882int
31883main (void)
31884{
31885
31886 struct bio *bio __attribute__ ((unused)) = NULL;
31887
31888 bio_set_op_attrs(bio, 0, 0);
31889
31890 ;
31891 return 0;
31892}
31893
31894_ACEOF
31895
31896
31897
31898cat - <<_ACEOF >conftest.h
31899
31900_ACEOF
31901
31902
31903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31904 echo "obj-m := conftest.o" >build/Makefile
31905 modpost_flag=''
31906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31907 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'
31908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31912 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31914 (eval $ac_try) 2>&5
31915 ac_status=$?
31916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31917 test $ac_status = 0; }; }; then :
31918
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31920$as_echo "yes" >&6; }
31921
31922$as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
31923
31924
31925else
31926 $as_echo "$as_me: failed program was:" >&5
31927sed 's/^/| /' conftest.$ac_ext >&5
31928
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31930$as_echo "no" >&6; }
31931
31932
31933
31934fi
31935 rm -Rf build
31936
31937
31938
31939
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
31941$as_echo_n "checking whether generic_readlink is global... " >&6; }
31942
31943
31944cat confdefs.h - <<_ACEOF >conftest.c
31945
31946
31947 #include <linux/fs.h>
31948
31949int
31950main (void)
31951{
31952
31953 int i __attribute__ ((unused));
31954
31955 i = generic_readlink(NULL, NULL, 0);
31956
31957 ;
31958 return 0;
31959}
31960
31961_ACEOF
31962
31963
31964
31965cat - <<_ACEOF >conftest.h
31966
31967_ACEOF
31968
31969
31970 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31971 echo "obj-m := conftest.o" >build/Makefile
31972 modpost_flag=''
31973 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31974 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'
31975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31976 (eval $ac_try) 2>&5
31977 ac_status=$?
31978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31979 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31981 (eval $ac_try) 2>&5
31982 ac_status=$?
31983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31984 test $ac_status = 0; }; }; then :
31985
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31987$as_echo "yes" >&6; }
31988
31989$as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
31990
31991
31992else
31993 $as_echo "$as_me: failed program was:" >&5
31994sed 's/^/| /' conftest.$ac_ext >&5
31995
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31997$as_echo "no" >&6; }
31998
31999
32000
32001fi
32002 rm -Rf build
32003
32004
32005
32006
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
32008$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32009
32010
32011cat confdefs.h - <<_ACEOF >conftest.c
32012
32013
32014 #include <linux/blkdev.h>
32015
32016int
32017main (void)
32018{
32019
32020 struct queue_limits ql __attribute__ ((unused));
32021
32022 ql.discard_granularity = 0;
32023
32024 ;
32025 return 0;
32026}
32027
32028_ACEOF
32029
32030
32031
32032cat - <<_ACEOF >conftest.h
32033
32034_ACEOF
32035
32036
32037 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32038 echo "obj-m := conftest.o" >build/Makefile
32039 modpost_flag=''
32040 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32041 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'
32042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32043 (eval $ac_try) 2>&5
32044 ac_status=$?
32045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32046 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32048 (eval $ac_try) 2>&5
32049 ac_status=$?
32050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32051 test $ac_status = 0; }; }; then :
32052
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32054$as_echo "yes" >&6; }
32055
32056$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32057
32058
32059else
32060 $as_echo "$as_me: failed program was:" >&5
32061sed 's/^/| /' conftest.$ac_ext >&5
32062
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32064$as_echo "no" >&6; }
32065
32066
32067
32068fi
32069 rm -Rf build
32070
32071
32072
32073
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32075$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32076
32077
32078cat confdefs.h - <<_ACEOF >conftest.c
32079
32080
32081 #include <linux/fs.h>
32082 #include <linux/xattr.h>
32083
32084 const struct xattr_handler xattr_test_handler = {
32085 .prefix = "test",
32086 .get = NULL,
32087 .set = NULL,
32088 };
32089
32090 const struct xattr_handler *xattr_handlers[] = {
32091 &xattr_test_handler,
32092 };
32093
32094 const struct super_block sb __attribute__ ((unused)) = {
32095 .s_xattr = xattr_handlers,
32096 };
32097
32098int
32099main (void)
32100{
32101
32102
32103 ;
32104 return 0;
32105}
32106
32107_ACEOF
32108
32109
32110
32111cat - <<_ACEOF >conftest.h
32112
32113_ACEOF
32114
32115
32116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32117 echo "obj-m := conftest.o" >build/Makefile
32118 modpost_flag=''
32119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32120 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'
32121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32122 (eval $ac_try) 2>&5
32123 ac_status=$?
32124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32125 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32127 (eval $ac_try) 2>&5
32128 ac_status=$?
32129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32130 test $ac_status = 0; }; }; then :
32131
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32133$as_echo "yes" >&6; }
32134
32135$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32136
32137
32138else
32139 $as_echo "$as_me: failed program was:" >&5
32140sed 's/^/| /' conftest.$ac_ext >&5
32141
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32143$as_echo "no" >&6; }
32144
32145
32146
32147fi
32148 rm -Rf build
32149
32150
32151
32152
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32154$as_echo_n "checking whether xattr_handler has name... " >&6; }
32155
32156
32157cat confdefs.h - <<_ACEOF >conftest.c
32158
32159
32160 #include <linux/xattr.h>
32161
32162 static const struct xattr_handler
32163 xops __attribute__ ((unused)) = {
32164 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32165 };
32166
32167int
32168main (void)
32169{
32170
32171
32172 ;
32173 return 0;
32174}
32175
32176_ACEOF
32177
32178
32179
32180cat - <<_ACEOF >conftest.h
32181
32182_ACEOF
32183
32184
32185 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32186 echo "obj-m := conftest.o" >build/Makefile
32187 modpost_flag=''
32188 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32189 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'
32190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32191 (eval $ac_try) 2>&5
32192 ac_status=$?
32193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32194 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32196 (eval $ac_try) 2>&5
32197 ac_status=$?
32198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32199 test $ac_status = 0; }; }; then :
32200
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32202$as_echo "yes" >&6; }
32203
32204$as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32205
32206
32207else
32208 $as_echo "$as_me: failed program was:" >&5
32209sed 's/^/| /' conftest.$ac_ext >&5
32210
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32212$as_echo "no" >&6; }
32213
32214
32215
32216fi
32217 rm -Rf build
32218
32219
32220
32221
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32223$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32224
32225
32226cat confdefs.h - <<_ACEOF >conftest.c
32227
32228
32229 #include <linux/xattr.h>
32230
32231 int get(const struct xattr_handler *handler,
32232 struct dentry *dentry, struct inode *inode,
32233 const char *name, void *buffer, size_t size) { return 0; }
32234 static const struct xattr_handler
32235 xops __attribute__ ((unused)) = {
32236 .get = get,
32237 };
32238
32239int
32240main (void)
32241{
32242
32243
32244 ;
32245 return 0;
32246}
32247
32248_ACEOF
32249
32250
32251
32252cat - <<_ACEOF >conftest.h
32253
32254_ACEOF
32255
32256
32257 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32258 echo "obj-m := conftest.o" >build/Makefile
32259 modpost_flag=''
32260 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32261 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'
32262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32263 (eval $ac_try) 2>&5
32264 ac_status=$?
32265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32266 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32268 (eval $ac_try) 2>&5
32269 ac_status=$?
32270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32271 test $ac_status = 0; }; }; then :
32272
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32274$as_echo "yes" >&6; }
32275
32276$as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32277
32278
32279else
32280 $as_echo "$as_me: failed program was:" >&5
32281sed 's/^/| /' conftest.$ac_ext >&5
32282
86e3c28a
CIK
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32284$as_echo "no" >&6; }
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
70e083d2
TG
32286$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32287
32288
32289cat confdefs.h - <<_ACEOF >conftest.c
32290
32291
32292 #include <linux/xattr.h>
32293
32294 int get(const struct xattr_handler *handler,
32295 struct dentry *dentry, const char *name,
32296 void *buffer, size_t size) { return 0; }
32297 static const struct xattr_handler
32298 xops __attribute__ ((unused)) = {
32299 .get = get,
32300 };
32301
32302int
32303main (void)
32304{
32305
32306
32307 ;
32308 return 0;
32309}
32310
32311_ACEOF
32312
32313
32314
32315cat - <<_ACEOF >conftest.h
32316
32317_ACEOF
32318
32319
32320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32321 echo "obj-m := conftest.o" >build/Makefile
32322 modpost_flag=''
32323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32324 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'
32325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32326 (eval $ac_try) 2>&5
32327 ac_status=$?
32328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32329 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32331 (eval $ac_try) 2>&5
32332 ac_status=$?
32333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32334 test $ac_status = 0; }; }; then :
32335
32336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32337$as_echo "yes" >&6; }
32338
32339$as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32340
32341
32342else
32343 $as_echo "$as_me: failed program was:" >&5
32344sed 's/^/| /' conftest.$ac_ext >&5
32345
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32347$as_echo "no" >&6; }
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32349$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32350
32351
32352cat confdefs.h - <<_ACEOF >conftest.c
32353
32354
32355 #include <linux/xattr.h>
32356
32357 int get(struct dentry *dentry, const char *name,
32358 void *buffer, size_t size, int handler_flags)
32359 { return 0; }
32360 static const struct xattr_handler
32361 xops __attribute__ ((unused)) = {
32362 .get = get,
32363 };
32364
32365int
32366main (void)
32367{
32368
32369
32370 ;
32371 return 0;
32372}
32373
32374_ACEOF
32375
32376
32377
32378cat - <<_ACEOF >conftest.h
32379
32380_ACEOF
32381
32382
32383 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32384 echo "obj-m := conftest.o" >build/Makefile
32385 modpost_flag=''
32386 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32387 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'
32388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32389 (eval $ac_try) 2>&5
32390 ac_status=$?
32391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32392 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32397 test $ac_status = 0; }; }; then :
32398
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32400$as_echo "yes" >&6; }
32401
32402$as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32403
32404
32405else
32406 $as_echo "$as_me: failed program was:" >&5
32407sed 's/^/| /' conftest.$ac_ext >&5
32408
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32410$as_echo "no" >&6; }
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32412$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32413
32414
32415cat confdefs.h - <<_ACEOF >conftest.c
32416
32417
32418 #include <linux/xattr.h>
32419
32420 int get(struct inode *ip, const char *name,
32421 void *buffer, size_t size) { return 0; }
32422 static const struct xattr_handler
32423 xops __attribute__ ((unused)) = {
32424 .get = get,
32425 };
32426
32427int
32428main (void)
32429{
32430
32431
32432 ;
32433 return 0;
32434}
32435
32436_ACEOF
32437
32438
32439
32440cat - <<_ACEOF >conftest.h
32441
32442_ACEOF
32443
32444
32445 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32446 echo "obj-m := conftest.o" >build/Makefile
32447 modpost_flag=''
32448 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32449 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'
32450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32451 (eval $ac_try) 2>&5
32452 ac_status=$?
32453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32454 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32456 (eval $ac_try) 2>&5
32457 ac_status=$?
32458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32459 test $ac_status = 0; }; }; then :
32460
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32462$as_echo "yes" >&6; }
32463
32464$as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32465
32466
32467else
32468 $as_echo "$as_me: failed program was:" >&5
32469sed 's/^/| /' conftest.$ac_ext >&5
32470
32471 as_fn_error $? "no; please file a bug report" "$LINENO" 5
32472
32473
32474
32475fi
32476 rm -Rf build
32477
32478
32479
32480
32481
32482fi
32483 rm -Rf build
32484
32485
32486
32487
32488
32489fi
32490 rm -Rf build
32491
32492
32493
32494
32495
32496fi
32497 rm -Rf build
32498
32499
32500
32501
32502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32503$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32504
32505
32506cat confdefs.h - <<_ACEOF >conftest.c
32507
32508
32509 #include <linux/xattr.h>
32510
32511 int set(const struct xattr_handler *handler,
32512 struct dentry *dentry, struct inode *inode,
32513 const char *name, const void *buffer,
32514 size_t size, int flags)
32515 { return 0; }
32516 static const struct xattr_handler
32517 xops __attribute__ ((unused)) = {
32518 .set = set,
32519 };
32520
32521int
32522main (void)
32523{
32524
32525
32526 ;
32527 return 0;
32528}
32529
32530_ACEOF
32531
32532
32533
32534cat - <<_ACEOF >conftest.h
32535
32536_ACEOF
32537
32538
32539 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32540 echo "obj-m := conftest.o" >build/Makefile
32541 modpost_flag=''
32542 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32543 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'
32544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32548 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32550 (eval $ac_try) 2>&5
32551 ac_status=$?
32552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32553 test $ac_status = 0; }; }; then :
32554
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32556$as_echo "yes" >&6; }
32557
32558$as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32559
32560
32561else
32562 $as_echo "$as_me: failed program was:" >&5
32563sed 's/^/| /' conftest.$ac_ext >&5
32564
86e3c28a
CIK
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32566$as_echo "no" >&6; }
32567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
70e083d2
TG
32568$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32569
32570
32571cat confdefs.h - <<_ACEOF >conftest.c
32572
32573
32574 #include <linux/xattr.h>
32575
32576 int set(const struct xattr_handler *handler,
32577 struct dentry *dentry, const char *name,
32578 const void *buffer, size_t size, int flags)
32579 { return 0; }
32580 static const struct xattr_handler
32581 xops __attribute__ ((unused)) = {
32582 .set = set,
32583 };
32584
32585int
32586main (void)
32587{
32588
32589
32590 ;
32591 return 0;
32592}
32593
32594_ACEOF
32595
32596
32597
32598cat - <<_ACEOF >conftest.h
32599
32600_ACEOF
32601
32602
32603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32604 echo "obj-m := conftest.o" >build/Makefile
32605 modpost_flag=''
32606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32607 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'
32608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32609 (eval $ac_try) 2>&5
32610 ac_status=$?
32611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32612 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32614 (eval $ac_try) 2>&5
32615 ac_status=$?
32616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32617 test $ac_status = 0; }; }; then :
32618
32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32620$as_echo "yes" >&6; }
32621
32622$as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32623
32624
32625else
32626 $as_echo "$as_me: failed program was:" >&5
32627sed 's/^/| /' conftest.$ac_ext >&5
32628
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630$as_echo "no" >&6; }
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32632$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32633
32634
32635cat confdefs.h - <<_ACEOF >conftest.c
32636
32637
32638 #include <linux/xattr.h>
32639
32640 int set(struct dentry *dentry, const char *name,
32641 const void *buffer, size_t size, int flags,
32642 int handler_flags) { return 0; }
32643 static const struct xattr_handler
32644 xops __attribute__ ((unused)) = {
32645 .set = set,
32646 };
32647
32648int
32649main (void)
32650{
32651
32652
32653 ;
32654 return 0;
32655}
32656
32657_ACEOF
32658
32659
32660
32661cat - <<_ACEOF >conftest.h
32662
32663_ACEOF
32664
32665
32666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32667 echo "obj-m := conftest.o" >build/Makefile
32668 modpost_flag=''
32669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32670 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'
32671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32672 (eval $ac_try) 2>&5
32673 ac_status=$?
32674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32675 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32680 test $ac_status = 0; }; }; then :
32681
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32683$as_echo "yes" >&6; }
32684
32685$as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32686
32687
32688else
32689 $as_echo "$as_me: failed program was:" >&5
32690sed 's/^/| /' conftest.$ac_ext >&5
32691
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32693$as_echo "no" >&6; }
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32695$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32696
32697
32698cat confdefs.h - <<_ACEOF >conftest.c
32699
32700
32701 #include <linux/xattr.h>
32702
32703 int set(struct inode *ip, const char *name,
32704 const void *buffer, size_t size, int flags)
32705 { return 0; }
32706 static const struct xattr_handler
32707 xops __attribute__ ((unused)) = {
32708 .set = set,
32709 };
32710
32711int
32712main (void)
32713{
32714
32715
32716 ;
32717 return 0;
32718}
32719
32720_ACEOF
32721
32722
32723
32724cat - <<_ACEOF >conftest.h
32725
32726_ACEOF
32727
32728
32729 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32730 echo "obj-m := conftest.o" >build/Makefile
32731 modpost_flag=''
32732 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32733 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'
32734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32735 (eval $ac_try) 2>&5
32736 ac_status=$?
32737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32738 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32740 (eval $ac_try) 2>&5
32741 ac_status=$?
32742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32743 test $ac_status = 0; }; }; then :
32744
32745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32746$as_echo "yes" >&6; }
32747
32748$as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32749
32750
32751else
32752 $as_echo "$as_me: failed program was:" >&5
32753sed 's/^/| /' conftest.$ac_ext >&5
32754
32755 as_fn_error $? "no; please file a bug report" "$LINENO" 5
32756
32757
32758
32759fi
32760 rm -Rf build
32761
32762
32763
32764
32765
32766fi
32767 rm -Rf build
32768
32769
32770
32771
32772
32773fi
32774 rm -Rf build
32775
32776
32777
32778
32779
32780fi
32781 rm -Rf build
32782
32783
32784
32785
32786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
32787$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
32788
32789
32790cat confdefs.h - <<_ACEOF >conftest.c
32791
32792
32793 #include <linux/xattr.h>
32794
32795 bool list(struct dentry *dentry) { return 0; }
32796 static const struct xattr_handler
32797 xops __attribute__ ((unused)) = {
32798 .list = list,
32799 };
32800
32801int
32802main (void)
32803{
32804
32805
32806 ;
32807 return 0;
32808}
32809
32810_ACEOF
32811
32812
32813
32814cat - <<_ACEOF >conftest.h
32815
32816_ACEOF
32817
32818
32819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32820 echo "obj-m := conftest.o" >build/Makefile
32821 modpost_flag=''
32822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32823 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'
32824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32825 (eval $ac_try) 2>&5
32826 ac_status=$?
32827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32830 (eval $ac_try) 2>&5
32831 ac_status=$?
32832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32833 test $ac_status = 0; }; }; then :
32834
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32836$as_echo "yes" >&6; }
32837
32838$as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
32839
32840
32841else
32842 $as_echo "$as_me: failed program was:" >&5
32843sed 's/^/| /' conftest.$ac_ext >&5
32844
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32846$as_echo "no" >&6; }
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
32848$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
32849
32850
32851cat confdefs.h - <<_ACEOF >conftest.c
32852
32853
32854 #include <linux/xattr.h>
32855
32856 size_t list(const struct xattr_handler *handler,
32857 struct dentry *dentry, char *list, size_t list_size,
32858 const char *name, size_t name_len) { return 0; }
32859 static const struct xattr_handler
32860 xops __attribute__ ((unused)) = {
32861 .list = list,
32862 };
32863
32864int
32865main (void)
32866{
32867
32868
32869 ;
32870 return 0;
32871}
32872
32873_ACEOF
32874
32875
32876
32877cat - <<_ACEOF >conftest.h
32878
32879_ACEOF
32880
32881
32882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32883 echo "obj-m := conftest.o" >build/Makefile
32884 modpost_flag=''
32885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32886 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'
32887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32888 (eval $ac_try) 2>&5
32889 ac_status=$?
32890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32891 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32893 (eval $ac_try) 2>&5
32894 ac_status=$?
32895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32896 test $ac_status = 0; }; }; then :
32897
32898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32899$as_echo "yes" >&6; }
32900
32901$as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
32902
32903
32904else
32905 $as_echo "$as_me: failed program was:" >&5
32906sed 's/^/| /' conftest.$ac_ext >&5
32907
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32909$as_echo "no" >&6; }
32910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
32911$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
32912
32913
32914cat confdefs.h - <<_ACEOF >conftest.c
32915
32916
32917 #include <linux/xattr.h>
32918
32919 size_t list(struct dentry *dentry,
32920 char *list, size_t list_size,
32921 const char *name, size_t name_len,
32922 int handler_flags) { return 0; }
32923 static const struct xattr_handler
32924 xops __attribute__ ((unused)) = {
32925 .list = list,
32926 };
32927
32928int
32929main (void)
32930{
32931
32932
32933 ;
32934 return 0;
32935}
32936
32937_ACEOF
32938
32939
32940
32941cat - <<_ACEOF >conftest.h
32942
32943_ACEOF
32944
32945
32946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32947 echo "obj-m := conftest.o" >build/Makefile
32948 modpost_flag=''
32949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32950 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'
32951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32952 (eval $ac_try) 2>&5
32953 ac_status=$?
32954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32957 (eval $ac_try) 2>&5
32958 ac_status=$?
32959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32960 test $ac_status = 0; }; }; then :
32961
32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32963$as_echo "yes" >&6; }
32964
32965$as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
32966
32967
32968else
32969 $as_echo "$as_me: failed program was:" >&5
32970sed 's/^/| /' conftest.$ac_ext >&5
32971
32972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32973$as_echo "no" >&6; }
32974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
32975$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
32976
32977
32978cat confdefs.h - <<_ACEOF >conftest.c
32979
32980
32981 #include <linux/xattr.h>
32982
32983 size_t list(struct inode *ip, char *lst,
32984 size_t list_size, const char *name,
32985 size_t name_len) { return 0; }
32986 static const struct xattr_handler
32987 xops __attribute__ ((unused)) = {
32988 .list = list,
32989 };
32990
32991int
32992main (void)
32993{
32994
32995
32996 ;
32997 return 0;
32998}
32999
33000_ACEOF
33001
33002
33003
33004cat - <<_ACEOF >conftest.h
33005
33006_ACEOF
33007
33008
33009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33010 echo "obj-m := conftest.o" >build/Makefile
33011 modpost_flag=''
33012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33013 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'
33014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33015 (eval $ac_try) 2>&5
33016 ac_status=$?
33017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33018 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33020 (eval $ac_try) 2>&5
33021 ac_status=$?
33022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33023 test $ac_status = 0; }; }; then :
33024
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33026$as_echo "yes" >&6; }
33027
33028$as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33029
33030
33031else
33032 $as_echo "$as_me: failed program was:" >&5
33033sed 's/^/| /' conftest.$ac_ext >&5
33034
33035 as_fn_error $? "no; please file a bug report" "$LINENO" 5
33036
33037
33038
33039fi
33040 rm -Rf build
33041
33042
33043
33044
33045
33046fi
33047 rm -Rf build
33048
33049
33050
33051
33052
33053fi
33054 rm -Rf build
33055
33056
33057
33058
33059
33060fi
33061 rm -Rf build
33062
33063
33064
33065
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33067$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33068
33069
33070cat confdefs.h - <<_ACEOF >conftest.c
33071
33072
33073 #include <linux/fs.h>
33074
33075int
33076main (void)
33077{
33078
33079 struct inode *ip = NULL;
33080 (void) inode_owner_or_capable(ip);
33081
33082 ;
33083 return 0;
33084}
33085
33086_ACEOF
33087
33088
33089
33090cat - <<_ACEOF >conftest.h
33091
33092_ACEOF
33093
33094
33095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33096 echo "obj-m := conftest.o" >build/Makefile
33097 modpost_flag=''
33098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33099 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'
33100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33101 (eval $ac_try) 2>&5
33102 ac_status=$?
33103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33104 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33106 (eval $ac_try) 2>&5
33107 ac_status=$?
33108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33109 test $ac_status = 0; }; }; then :
33110
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33112$as_echo "yes" >&6; }
33113
33114$as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33115
33116
33117else
33118 $as_echo "$as_me: failed program was:" >&5
33119sed 's/^/| /' conftest.$ac_ext >&5
33120
33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33122$as_echo "no" >&6; }
33123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33124$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33125
33126
33127cat confdefs.h - <<_ACEOF >conftest.c
33128
33129
33130 #include <linux/fs.h>
33131 #include <linux/sched.h>
33132
33133int
33134main (void)
33135{
33136
33137 struct inode *ip = NULL;
33138 (void) is_owner_or_cap(ip);
33139
33140 ;
33141 return 0;
33142}
33143
33144_ACEOF
33145
33146
33147
33148cat - <<_ACEOF >conftest.h
33149
33150_ACEOF
33151
33152
33153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33154 echo "obj-m := conftest.o" >build/Makefile
33155 modpost_flag=''
33156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33157 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'
33158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33162 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33164 (eval $ac_try) 2>&5
33165 ac_status=$?
33166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33167 test $ac_status = 0; }; }; then :
33168
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33170$as_echo "yes" >&6; }
33171
33172$as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33173
33174
33175else
33176 $as_echo "$as_me: failed program was:" >&5
33177sed 's/^/| /' conftest.$ac_ext >&5
33178
33179 as_fn_error $? "no - Please file a bug report at
33180 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33181
33182
33183
33184fi
33185 rm -Rf build
33186
33187
33188
33189
33190
33191fi
33192 rm -Rf build
33193
33194
33195
33196
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33198$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33199
33200
33201cat confdefs.h - <<_ACEOF >conftest.c
33202
33203
33204 #include <linux/cred.h>
33205 #include <linux/fs.h>
33206 #include <linux/posix_acl_xattr.h>
33207
33208int
33209main (void)
33210{
33211
33212 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33213
33214 ;
33215 return 0;
33216}
33217
33218_ACEOF
33219
33220
33221
33222cat - <<_ACEOF >conftest.h
33223
33224_ACEOF
33225
33226
33227 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33228 echo "obj-m := conftest.o" >build/Makefile
33229 modpost_flag=''
33230 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33231 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'
33232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33233 (eval $ac_try) 2>&5
33234 ac_status=$?
33235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33236 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33238 (eval $ac_try) 2>&5
33239 ac_status=$?
33240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33241 test $ac_status = 0; }; }; then :
33242
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33244$as_echo "yes" >&6; }
33245
33246$as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33247
33248
33249else
33250 $as_echo "$as_me: failed program was:" >&5
33251sed 's/^/| /' conftest.$ac_ext >&5
33252
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33254$as_echo "no" >&6; }
33255
33256
33257
33258fi
33259 rm -Rf build
33260
33261
33262
33263
33264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33265$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33266
33267
33268cat confdefs.h - <<_ACEOF >conftest.c
33269
33270
33271 #include <linux/cred.h>
33272 #include <linux/fs.h>
33273 #include <linux/posix_acl.h>
33274
33275int
33276main (void)
33277{
33278
33279 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33280 posix_acl_release(tmp);
33281
33282 ;
33283 return 0;
33284}
33285
33286_ACEOF
33287
33288
33289
33290cat - <<_ACEOF >conftest.h
33291
33292_ACEOF
33293
33294
33295 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33296 echo "obj-m := conftest.o" >build/Makefile
33297 modpost_flag=''
33298 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33299 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'
33300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33301 (eval $ac_try) 2>&5
33302 ac_status=$?
33303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33304 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33306 (eval $ac_try) 2>&5
33307 ac_status=$?
33308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33309 test $ac_status = 0; }; }; then :
33310
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33312$as_echo "yes" >&6; }
33313
33314$as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33315
33316
86e3c28a 33317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
70e083d2
TG
33318$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33319
33320
33321cat confdefs.h - <<_ACEOF >conftest.c
33322
33323
86e3c28a
CIK
33324 #include <linux/module.h>
33325 #include <linux/cred.h>
33326 #include <linux/fs.h>
33327 #include <linux/posix_acl.h>
70e083d2 33328
86e3c28a 33329 MODULE_LICENSE("$ZFS_META_LICENSE");
70e083d2
TG
33330
33331int
33332main (void)
33333{
33334
86e3c28a
CIK
33335 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33336 posix_acl_release(tmp);
70e083d2
TG
33337
33338 ;
33339 return 0;
33340}
33341
33342_ACEOF
33343
33344
33345
33346cat - <<_ACEOF >conftest.h
33347
33348_ACEOF
33349
33350
33351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33352 echo "obj-m := conftest.o" >build/Makefile
33353 modpost_flag=''
33354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33355 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'
33356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33357 (eval $ac_try) 2>&5
33358 ac_status=$?
33359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33360 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33362 (eval $ac_try) 2>&5
33363 ac_status=$?
33364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33365 test $ac_status = 0; }; }; then :
33366
86e3c28a 33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
33368$as_echo "no" >&6; }
33369
33370else
33371 $as_echo "$as_me: failed program was:" >&5
33372sed 's/^/| /' conftest.$ac_ext >&5
33373
86e3c28a 33374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
33375$as_echo "yes" >&6; }
33376
33377$as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33378
33379
33380
33381
86e3c28a
CIK
33382fi
33383 rm -Rf build
33384
33385
33386
33387else
33388 $as_echo "$as_me: failed program was:" >&5
33389sed 's/^/| /' conftest.$ac_ext >&5
33390
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392$as_echo "no" >&6; }
33393
33394
33395
70e083d2
TG
33396fi
33397 rm -Rf build
33398
33399
33400
33401
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33403$as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33404
33405
33406cat confdefs.h - <<_ACEOF >conftest.c
33407
33408
33409 #include <linux/module.h>
33410 #include <linux/cred.h>
33411 #include <linux/fs.h>
33412 #include <linux/posix_acl.h>
33413
33414 MODULE_LICENSE("$ZFS_META_LICENSE");
33415
33416int
33417main (void)
33418{
33419
33420 struct inode *ip = NULL;
33421 struct posix_acl *acl = posix_acl_alloc(1, 0);
33422 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33423 forget_cached_acl(ip, ACL_TYPE_ACCESS);
33424
33425 ;
33426 return 0;
33427}
33428
33429_ACEOF
33430
33431
33432
33433cat - <<_ACEOF >conftest.h
33434
33435_ACEOF
33436
33437
33438 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33439 echo "obj-m := conftest.o" >build/Makefile
33440 modpost_flag=''
33441 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33442 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'
33443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33444 (eval $ac_try) 2>&5
33445 ac_status=$?
33446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33447 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33449 (eval $ac_try) 2>&5
33450 ac_status=$?
33451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33452 test $ac_status = 0; }; }; then :
33453
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33455$as_echo "yes" >&6; }
33456
33457$as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33458
33459
33460else
33461 $as_echo "$as_me: failed program was:" >&5
33462sed 's/^/| /' conftest.$ac_ext >&5
33463
33464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33465$as_echo "no" >&6; }
33466
33467
33468
33469fi
33470 rm -Rf build
33471
33472
33473
33474
33475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33476$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33477
33478
33479cat confdefs.h - <<_ACEOF >conftest.c
33480
33481
33482 #include <linux/fs.h>
33483 #include <linux/posix_acl.h>
33484
33485int
33486main (void)
33487{
33488
33489 posix_acl_chmod(NULL, 0, 0)
33490
33491 ;
33492 return 0;
33493}
33494
33495_ACEOF
33496
33497
33498
33499cat - <<_ACEOF >conftest.h
33500
33501_ACEOF
33502
33503
33504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33505 echo "obj-m := conftest.o" >build/Makefile
33506 modpost_flag=''
33507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33508 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'
33509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33510 (eval $ac_try) 2>&5
33511 ac_status=$?
33512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33513 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33518 test $ac_status = 0; }; }; then :
33519
33520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33521$as_echo "yes" >&6; }
33522
33523$as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33524
33525
33526else
33527 $as_echo "$as_me: failed program was:" >&5
33528sed 's/^/| /' conftest.$ac_ext >&5
33529
33530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33531$as_echo "no" >&6; }
33532
33533
33534
33535fi
33536 rm -Rf build
33537
33538
33539
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33541$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33542
33543
33544cat confdefs.h - <<_ACEOF >conftest.c
33545
33546
33547 #include <linux/fs.h>
33548 #include <linux/posix_acl.h>
33549
33550int
33551main (void)
33552{
33553
33554 __posix_acl_chmod(NULL, 0, 0)
33555
33556 ;
33557 return 0;
33558}
33559
33560_ACEOF
33561
33562
33563
33564cat - <<_ACEOF >conftest.h
33565
33566_ACEOF
33567
33568
33569 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33570 echo "obj-m := conftest.o" >build/Makefile
33571 modpost_flag=''
33572 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33573 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'
33574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33575 (eval $ac_try) 2>&5
33576 ac_status=$?
33577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33578 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33580 (eval $ac_try) 2>&5
33581 ac_status=$?
33582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33583 test $ac_status = 0; }; }; then :
33584
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33586$as_echo "yes" >&6; }
33587
33588$as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33589
33590
33591else
33592 $as_echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33596$as_echo "no" >&6; }
33597
33598
33599
33600fi
33601 rm -Rf build
33602
33603
33604
33605
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33607$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33608
33609
33610cat confdefs.h - <<_ACEOF >conftest.c
33611
33612
33613 #include <linux/fs.h>
33614 #include <linux/posix_acl.h>
33615
33616int
33617main (void)
33618{
33619
33620 umode_t tmp;
33621 posix_acl_equiv_mode(NULL,&tmp);
33622
33623 ;
33624 return 0;
33625}
33626
33627_ACEOF
33628
33629
33630
33631cat - <<_ACEOF >conftest.h
33632
33633_ACEOF
33634
33635
33636 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33637 echo "obj-m := conftest.o" >build/Makefile
33638 modpost_flag=''
33639 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33640 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'
33641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33642 (eval $ac_try) 2>&5
33643 ac_status=$?
33644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33645 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33647 (eval $ac_try) 2>&5
33648 ac_status=$?
33649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33650 test $ac_status = 0; }; }; then :
33651
33652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33653$as_echo "yes" >&6; }
33654
33655$as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33656
33657
33658else
33659 $as_echo "$as_me: failed program was:" >&5
33660sed 's/^/| /' conftest.$ac_ext >&5
33661
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33663$as_echo "no" >&6; }
33664
33665
33666
33667fi
33668 rm -Rf build
33669
33670
33671
33672
33673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33674$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33675
33676
33677cat confdefs.h - <<_ACEOF >conftest.c
33678
33679
33680 #include <linux/fs.h>
33681 #include <linux/posix_acl.h>
33682
33683int
33684main (void)
33685{
33686
33687 struct user_namespace *user_ns = NULL;
33688 const struct posix_acl *acl = NULL;
33689 int error;
33690
33691 error = posix_acl_valid(user_ns, acl);
33692
33693 ;
33694 return 0;
33695}
33696
33697_ACEOF
33698
33699
33700
33701cat - <<_ACEOF >conftest.h
33702
33703_ACEOF
33704
33705
33706 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33707 echo "obj-m := conftest.o" >build/Makefile
33708 modpost_flag=''
33709 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33710 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'
33711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33712 (eval $ac_try) 2>&5
33713 ac_status=$?
33714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33715 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33717 (eval $ac_try) 2>&5
33718 ac_status=$?
33719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33720 test $ac_status = 0; }; }; then :
33721
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723$as_echo "yes" >&6; }
33724
33725$as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33726
33727
33728else
33729 $as_echo "$as_me: failed program was:" >&5
33730sed 's/^/| /' conftest.$ac_ext >&5
33731
33732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33733$as_echo "no" >&6; }
33734
33735
33736
33737fi
33738 rm -Rf build
33739
33740
33741
33742
33743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33744$as_echo_n "checking whether iops->permission() exists... " >&6; }
33745
33746
33747cat confdefs.h - <<_ACEOF >conftest.c
33748
33749
33750 #include <linux/fs.h>
33751
33752 int permission_fn(struct inode *inode, int mask) { return 0; }
33753
33754 static const struct inode_operations
33755 iops __attribute__ ((unused)) = {
33756 .permission = permission_fn,
33757 };
33758
33759int
33760main (void)
33761{
33762
33763
33764 ;
33765 return 0;
33766}
33767
33768_ACEOF
33769
33770
33771
33772cat - <<_ACEOF >conftest.h
33773
33774_ACEOF
33775
33776
33777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33778 echo "obj-m := conftest.o" >build/Makefile
33779 modpost_flag=''
33780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33781 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'
33782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33783 (eval $ac_try) 2>&5
33784 ac_status=$?
33785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33786 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33788 (eval $ac_try) 2>&5
33789 ac_status=$?
33790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33791 test $ac_status = 0; }; }; then :
33792
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33794$as_echo "yes" >&6; }
33795
33796$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
33797
33798
33799else
33800 $as_echo "$as_me: failed program was:" >&5
33801sed 's/^/| /' conftest.$ac_ext >&5
33802
33803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33804$as_echo "no" >&6; }
33805
33806
33807
33808fi
33809 rm -Rf build
33810
33811
33812
33813
33814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
33815$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
33816
33817
33818cat confdefs.h - <<_ACEOF >conftest.c
33819
33820
33821 #include <linux/fs.h>
33822
33823 int permission_fn(struct inode *inode, int mask,
33824 struct nameidata *nd) { return 0; }
33825
33826 static const struct inode_operations
33827 iops __attribute__ ((unused)) = {
33828 .permission = permission_fn,
33829 };
33830
33831int
33832main (void)
33833{
33834
33835
33836 ;
33837 return 0;
33838}
33839
33840_ACEOF
33841
33842
33843
33844cat - <<_ACEOF >conftest.h
33845
33846_ACEOF
33847
33848
33849 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33850 echo "obj-m := conftest.o" >build/Makefile
33851 modpost_flag=''
33852 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33853 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'
33854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33855 (eval $ac_try) 2>&5
33856 ac_status=$?
33857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33858 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33860 (eval $ac_try) 2>&5
33861 ac_status=$?
33862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33863 test $ac_status = 0; }; }; then :
33864
33865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33866$as_echo "yes" >&6; }
33867
33868$as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
33869
33870
33871$as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
33872
33873
33874else
33875 $as_echo "$as_me: failed program was:" >&5
33876sed 's/^/| /' conftest.$ac_ext >&5
33877
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33879$as_echo "no" >&6; }
33880
33881
33882
33883fi
33884 rm -Rf build
33885
33886
33887
33888
33889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
33890$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
33891
33892
33893cat confdefs.h - <<_ACEOF >conftest.c
33894
33895
33896 #include <linux/fs.h>
33897
33898 int check_acl_fn(struct inode *inode, int mask) { return 0; }
33899
33900 static const struct inode_operations
33901 iops __attribute__ ((unused)) = {
33902 .check_acl = check_acl_fn,
33903 };
33904
33905int
33906main (void)
33907{
33908
33909
33910 ;
33911 return 0;
33912}
33913
33914_ACEOF
33915
33916
33917
33918cat - <<_ACEOF >conftest.h
33919
33920_ACEOF
33921
33922
33923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33924 echo "obj-m := conftest.o" >build/Makefile
33925 modpost_flag=''
33926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33927 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'
33928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33934 (eval $ac_try) 2>&5
33935 ac_status=$?
33936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33937 test $ac_status = 0; }; }; then :
33938
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33940$as_echo "yes" >&6; }
33941
33942$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
33943
33944
33945else
33946 $as_echo "$as_me: failed program was:" >&5
33947sed 's/^/| /' conftest.$ac_ext >&5
33948
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33950$as_echo "no" >&6; }
33951
33952
33953
33954fi
33955 rm -Rf build
33956
33957
33958
33959
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
33961$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
33962
33963
33964cat confdefs.h - <<_ACEOF >conftest.c
33965
33966
33967 #include <linux/fs.h>
33968
33969 int check_acl_fn(struct inode *inode, int mask,
33970 unsigned int flags) { return 0; }
33971
33972 static const struct inode_operations
33973 iops __attribute__ ((unused)) = {
33974 .check_acl = check_acl_fn,
33975 };
33976
33977int
33978main (void)
33979{
33980
33981
33982 ;
33983 return 0;
33984}
33985
33986_ACEOF
33987
33988
33989
33990cat - <<_ACEOF >conftest.h
33991
33992_ACEOF
33993
33994
33995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33996 echo "obj-m := conftest.o" >build/Makefile
33997 modpost_flag=''
33998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33999 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'
34000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34001 (eval $ac_try) 2>&5
34002 ac_status=$?
34003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34004 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34006 (eval $ac_try) 2>&5
34007 ac_status=$?
34008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34009 test $ac_status = 0; }; }; then :
34010
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34012$as_echo "yes" >&6; }
34013
34014$as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34015
34016
34017$as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34018
34019
34020else
34021 $as_echo "$as_me: failed program was:" >&5
34022sed 's/^/| /' conftest.$ac_ext >&5
34023
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34025$as_echo "no" >&6; }
34026
34027
34028
34029fi
34030 rm -Rf build
34031
34032
34033
34034
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34036$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34037
34038
34039cat confdefs.h - <<_ACEOF >conftest.c
34040
34041
34042 #include <linux/fs.h>
34043
34044 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34045 { return NULL; }
34046
34047 static const struct inode_operations
34048 iops __attribute__ ((unused)) = {
34049 .get_acl = get_acl_fn,
34050 };
34051
34052int
34053main (void)
34054{
34055
34056
34057 ;
34058 return 0;
34059}
34060
34061_ACEOF
34062
34063
34064
34065cat - <<_ACEOF >conftest.h
34066
34067_ACEOF
34068
34069
34070 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34071 echo "obj-m := conftest.o" >build/Makefile
34072 modpost_flag=''
34073 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34074 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'
34075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34076 (eval $ac_try) 2>&5
34077 ac_status=$?
34078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34079 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34081 (eval $ac_try) 2>&5
34082 ac_status=$?
34083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34084 test $ac_status = 0; }; }; then :
34085
34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34087$as_echo "yes" >&6; }
34088
86e3c28a
CIK
34089$as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34090
34091
34092else
34093 $as_echo "$as_me: failed program was:" >&5
34094sed 's/^/| /' conftest.$ac_ext >&5
34095
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34097$as_echo "no" >&6; }
34098
34099
34100
34101fi
34102 rm -Rf build
34103
34104
34105
34106
34107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34108$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34109
34110
34111cat confdefs.h - <<_ACEOF >conftest.c
34112
34113
34114 #include <linux/fs.h>
34115
34116 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34117 { return 0; }
34118
34119 static const struct inode_operations
34120 iops __attribute__ ((unused)) = {
34121 .set_acl = set_acl_fn,
34122 };
34123
34124int
34125main (void)
34126{
34127
34128
34129 ;
34130 return 0;
34131}
34132
34133_ACEOF
34134
34135
34136
34137cat - <<_ACEOF >conftest.h
34138
34139_ACEOF
34140
34141
34142 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34143 echo "obj-m := conftest.o" >build/Makefile
34144 modpost_flag=''
34145 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34146 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'
34147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34151 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34153 (eval $ac_try) 2>&5
34154 ac_status=$?
34155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34156 test $ac_status = 0; }; }; then :
34157
34158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34159$as_echo "yes" >&6; }
34160
34161$as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
70e083d2
TG
34162
34163
34164else
34165 $as_echo "$as_me: failed program was:" >&5
34166sed 's/^/| /' conftest.$ac_ext >&5
34167
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34169$as_echo "no" >&6; }
34170
34171
34172
34173fi
34174 rm -Rf build
34175
34176
34177
34178
86e3c28a
CIK
34179
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34181$as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
70e083d2
TG
34182
34183
34184cat confdefs.h - <<_ACEOF >conftest.c
34185
34186
34187 #include <linux/fs.h>
34188
86e3c28a
CIK
34189 int test_getattr(
34190 const struct path *p, struct kstat *k,
34191 u32 request_mask, unsigned int query_flags)
70e083d2
TG
34192 { return 0; }
34193
34194 static const struct inode_operations
34195 iops __attribute__ ((unused)) = {
86e3c28a 34196 .getattr = test_getattr,
70e083d2
TG
34197 };
34198
34199int
34200main (void)
34201{
34202
34203
34204 ;
34205 return 0;
34206}
34207
34208_ACEOF
34209
34210
34211
34212cat - <<_ACEOF >conftest.h
34213
34214_ACEOF
34215
34216
34217 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34218 echo "obj-m := conftest.o" >build/Makefile
34219 modpost_flag=''
34220 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34221 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'
34222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34223 (eval $ac_try) 2>&5
34224 ac_status=$?
34225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34226 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34228 (eval $ac_try) 2>&5
34229 ac_status=$?
34230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34231 test $ac_status = 0; }; }; then :
34232
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34234$as_echo "yes" >&6; }
34235
86e3c28a 34236$as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
70e083d2
TG
34237
34238
34239else
34240 $as_echo "$as_me: failed program was:" >&5
34241sed 's/^/| /' conftest.$ac_ext >&5
34242
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34244$as_echo "no" >&6; }
34245
34246
34247
34248fi
34249 rm -Rf build
34250
34251
34252
34253
86e3c28a
CIK
34254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34255$as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
0d6103dd
CIK
34256
34257
34258cat confdefs.h - <<_ACEOF >conftest.c
34259
34260
34261 #include <linux/fs.h>
34262
34263 int test_getattr(
86e3c28a
CIK
34264 struct vfsmount *mnt, struct dentry *d,
34265 struct kstat *k)
0d6103dd
CIK
34266 { return 0; }
34267
34268 static const struct inode_operations
34269 iops __attribute__ ((unused)) = {
34270 .getattr = test_getattr,
34271 };
34272
34273int
34274main (void)
34275{
34276
34277
34278 ;
34279 return 0;
34280}
34281
34282_ACEOF
34283
34284
34285
34286cat - <<_ACEOF >conftest.h
34287
34288_ACEOF
34289
34290
34291 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34292 echo "obj-m := conftest.o" >build/Makefile
34293 modpost_flag=''
34294 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34295 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'
34296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34297 (eval $ac_try) 2>&5
34298 ac_status=$?
34299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34300 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34302 (eval $ac_try) 2>&5
34303 ac_status=$?
34304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34305 test $ac_status = 0; }; }; then :
34306
34307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34308$as_echo "yes" >&6; }
34309
86e3c28a 34310$as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
0d6103dd
CIK
34311
34312
34313else
34314 $as_echo "$as_me: failed program was:" >&5
34315sed 's/^/| /' conftest.$ac_ext >&5
34316
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34318$as_echo "no" >&6; }
34319
34320
34321
34322fi
34323 rm -Rf build
34324
34325
34326
34327
86e3c28a
CIK
34328
34329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34330$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
0d6103dd
CIK
34331
34332
34333cat confdefs.h - <<_ACEOF >conftest.c
34334
34335
34336 #include <linux/fs.h>
34337
0d6103dd
CIK
34338int
34339main (void)
34340{
34341
86e3c28a
CIK
34342 struct inode inode;
34343 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
0d6103dd
CIK
34344
34345 ;
34346 return 0;
34347}
34348
34349_ACEOF
34350
34351
34352
34353cat - <<_ACEOF >conftest.h
34354
34355_ACEOF
34356
34357
34358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34359 echo "obj-m := conftest.o" >build/Makefile
34360 modpost_flag=''
34361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34362 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'
34363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34364 (eval $ac_try) 2>&5
34365 ac_status=$?
34366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34369 (eval $ac_try) 2>&5
34370 ac_status=$?
34371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34372 test $ac_status = 0; }; }; then :
34373
34374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34375$as_echo "yes" >&6; }
34376
86e3c28a 34377$as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
0d6103dd
CIK
34378
34379
34380else
34381 $as_echo "$as_me: failed program was:" >&5
34382sed 's/^/| /' conftest.$ac_ext >&5
34383
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34385$as_echo "no" >&6; }
34386
34387
34388
34389fi
34390 rm -Rf build
34391
34392
34393
34394
70e083d2
TG
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34396$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34397
34398
34399cat confdefs.h - <<_ACEOF >conftest.c
34400
34401
34402 #include <linux/fs.h>
34403
34404int
34405main (void)
34406{
34407
34408 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34409
34410 ;
34411 return 0;
34412}
34413
34414_ACEOF
34415
34416
34417
34418cat - <<_ACEOF >conftest.h
34419
34420_ACEOF
34421
34422
34423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34424 echo "obj-m := conftest.o" >build/Makefile
34425 modpost_flag=''
34426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34427 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'
34428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34429 (eval $ac_try) 2>&5
34430 ac_status=$?
34431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34432 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34434 (eval $ac_try) 2>&5
34435 ac_status=$?
34436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34437 test $ac_status = 0; }; }; then :
34438
34439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34440$as_echo "yes" >&6; }
34441
34442$as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34443
34444
34445else
34446 $as_echo "$as_me: failed program was:" >&5
34447sed 's/^/| /' conftest.$ac_ext >&5
34448
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450$as_echo "no" >&6; }
34451
34452
34453
34454fi
34455 rm -Rf build
34456
34457
34458
34459
34460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34461$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34462
34463
34464
34465cat confdefs.h - <<_ACEOF >conftest.c
34466
34467
34468 #include <linux/fs.h>
34469
34470 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34471 static struct super_operations sops __attribute__ ((unused)) = {
34472 .show_options = show_options,
34473 };
34474
34475int
34476main (void)
34477{
34478
34479
34480 ;
34481 return 0;
34482}
34483
34484_ACEOF
34485
34486
34487
34488cat - <<_ACEOF >conftest.h
34489
34490_ACEOF
34491
34492
34493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34494 echo "obj-m := conftest.o" >build/Makefile
34495 modpost_flag=''
34496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34497 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'
34498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34499 (eval $ac_try) 2>&5
34500 ac_status=$?
34501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34504 (eval $ac_try) 2>&5
34505 ac_status=$?
34506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34507 test $ac_status = 0; }; }; then :
34508
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34510$as_echo "yes" >&6; }
34511
34512$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34513
34514
34515else
34516 $as_echo "$as_me: failed program was:" >&5
34517sed 's/^/| /' conftest.$ac_ext >&5
34518
34519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34520$as_echo "no" >&6; }
34521
34522
34523
34524fi
34525 rm -Rf build
34526
34527
34528
34529
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34531$as_echo_n "checking whether file_inode() is available... " >&6; }
34532
34533
34534cat confdefs.h - <<_ACEOF >conftest.c
34535
34536
34537 #include <linux/fs.h>
34538
34539int
34540main (void)
34541{
34542
34543 struct file *f = NULL;
34544 file_inode(f);
34545
34546 ;
34547 return 0;
34548}
34549
34550_ACEOF
34551
34552
34553
34554cat - <<_ACEOF >conftest.h
34555
34556_ACEOF
34557
34558
34559 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34560 echo "obj-m := conftest.o" >build/Makefile
34561 modpost_flag=''
34562 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34563 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'
34564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34565 (eval $ac_try) 2>&5
34566 ac_status=$?
34567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34568 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34570 (eval $ac_try) 2>&5
34571 ac_status=$?
34572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34573 test $ac_status = 0; }; }; then :
34574
34575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34576$as_echo "yes" >&6; }
34577
34578$as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34579
34580
34581else
34582 $as_echo "$as_me: failed program was:" >&5
34583sed 's/^/| /' conftest.$ac_ext >&5
34584
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34586$as_echo "no" >&6; }
34587
34588
34589
34590fi
34591 rm -Rf build
34592
34593
34594
34595
86e3c28a
CIK
34596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34597$as_echo_n "checking whether file_dentry() is available... " >&6; }
34598
34599
34600cat confdefs.h - <<_ACEOF >conftest.c
34601
34602
34603 #include <linux/fs.h>
34604
34605int
34606main (void)
34607{
34608
34609 struct file *f = NULL;
34610 file_dentry(f);
34611
34612 ;
34613 return 0;
34614}
34615
34616_ACEOF
34617
34618
34619
34620cat - <<_ACEOF >conftest.h
34621
34622_ACEOF
34623
34624
34625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34626 echo "obj-m := conftest.o" >build/Makefile
34627 modpost_flag=''
34628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34629 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'
34630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34631 (eval $ac_try) 2>&5
34632 ac_status=$?
34633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34634 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34636 (eval $ac_try) 2>&5
34637 ac_status=$?
34638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34639 test $ac_status = 0; }; }; then :
34640
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34642$as_echo "yes" >&6; }
34643
34644$as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34645
34646
34647else
34648 $as_echo "$as_me: failed program was:" >&5
34649sed 's/^/| /' conftest.$ac_ext >&5
34650
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34652$as_echo "no" >&6; }
34653
34654
34655
34656fi
34657 rm -Rf build
34658
34659
34660
34661
70e083d2
TG
34662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34663$as_echo_n "checking whether fops->fsync() wants... " >&6; }
34664
34665
34666
34667cat confdefs.h - <<_ACEOF >conftest.c
34668
34669
34670 #include <linux/fs.h>
34671
34672 int test_fsync(struct file *f, struct dentry *dentry, int x)
34673 { return 0; }
34674
34675 static const struct file_operations
34676 fops __attribute__ ((unused)) = {
34677 .fsync = test_fsync,
34678 };
34679
34680int
34681main (void)
34682{
34683
34684
34685 ;
34686 return 0;
34687}
34688
34689_ACEOF
34690
34691
34692
34693cat - <<_ACEOF >conftest.h
34694
34695_ACEOF
34696
34697
34698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34699 echo "obj-m := conftest.o" >build/Makefile
34700 modpost_flag=''
34701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34702 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'
34703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34704 (eval $ac_try) 2>&5
34705 ac_status=$?
34706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34707 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34709 (eval $ac_try) 2>&5
34710 ac_status=$?
34711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34712 test $ac_status = 0; }; }; then :
34713
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34715$as_echo "dentry" >&6; }
34716
34717$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34718
34719
34720else
34721 $as_echo "$as_me: failed program was:" >&5
34722sed 's/^/| /' conftest.$ac_ext >&5
34723
34724
34725
34726
34727fi
34728 rm -Rf build
34729
34730
34731
34732
34733
34734
34735cat confdefs.h - <<_ACEOF >conftest.c
34736
34737
34738 #include <linux/fs.h>
34739
34740 int test_fsync(struct file *f, int x) { return 0; }
34741
34742 static const struct file_operations
34743 fops __attribute__ ((unused)) = {
34744 .fsync = test_fsync,
34745 };
34746
34747int
34748main (void)
34749{
34750
34751
34752 ;
34753 return 0;
34754}
34755
34756_ACEOF
34757
34758
34759
34760cat - <<_ACEOF >conftest.h
34761
34762_ACEOF
34763
34764
34765 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34766 echo "obj-m := conftest.o" >build/Makefile
34767 modpost_flag=''
34768 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34769 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'
34770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34771 (eval $ac_try) 2>&5
34772 ac_status=$?
34773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34774 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34779 test $ac_status = 0; }; }; then :
34780
34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
34782$as_echo "no dentry" >&6; }
34783
34784$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
34785
34786
34787else
34788 $as_echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791
34792
34793
34794fi
34795 rm -Rf build
34796
34797
34798
34799
34800
34801
34802cat confdefs.h - <<_ACEOF >conftest.c
34803
34804
34805 #include <linux/fs.h>
34806
34807 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
34808 { return 0; }
34809
34810 static const struct file_operations
34811 fops __attribute__ ((unused)) = {
34812 .fsync = test_fsync,
34813 };
34814
34815int
34816main (void)
34817{
34818
34819
34820 ;
34821 return 0;
34822}
34823
34824_ACEOF
34825
34826
34827
34828cat - <<_ACEOF >conftest.h
34829
34830_ACEOF
34831
34832
34833 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34834 echo "obj-m := conftest.o" >build/Makefile
34835 modpost_flag=''
34836 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34837 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'
34838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34839 (eval $ac_try) 2>&5
34840 ac_status=$?
34841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34842 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34844 (eval $ac_try) 2>&5
34845 ac_status=$?
34846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34847 test $ac_status = 0; }; }; then :
34848
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
34850$as_echo "range" >&6; }
34851
34852$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
34853
34854
34855else
34856 $as_echo "$as_me: failed program was:" >&5
34857sed 's/^/| /' conftest.$ac_ext >&5
34858
34859
34860
34861
34862fi
34863 rm -Rf build
34864
34865
34866
34867
34868
34869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
34870$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
34871
34872
34873cat confdefs.h - <<_ACEOF >conftest.c
34874
34875
34876 #include <linux/fs.h>
34877 void evict_inode (struct inode * t) { return; }
34878 static struct super_operations sops __attribute__ ((unused)) = {
34879 .evict_inode = evict_inode,
34880 };
34881
34882int
34883main (void)
34884{
34885
34886
34887 ;
34888 return 0;
34889}
34890
34891_ACEOF
34892
34893
34894
34895cat - <<_ACEOF >conftest.h
34896
34897_ACEOF
34898
34899
34900 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34901 echo "obj-m := conftest.o" >build/Makefile
34902 modpost_flag=''
34903 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34904 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'
34905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34906 (eval $ac_try) 2>&5
34907 ac_status=$?
34908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34909 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34911 (eval $ac_try) 2>&5
34912 ac_status=$?
34913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34914 test $ac_status = 0; }; }; then :
34915
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34917$as_echo "yes" >&6; }
34918
34919$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
34920
34921
34922else
34923 $as_echo "$as_me: failed program was:" >&5
34924sed 's/^/| /' conftest.$ac_ext >&5
34925
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34927$as_echo "no" >&6; }
34928
34929
34930
34931fi
34932 rm -Rf build
34933
34934
34935
34936
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
34938$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
34939
34940
34941cat confdefs.h - <<_ACEOF >conftest.c
34942
34943
34944 #include <linux/fs.h>
34945
34946 void dirty_inode(struct inode *a, int b) { return; }
34947
34948 static const struct super_operations
34949 sops __attribute__ ((unused)) = {
34950 .dirty_inode = dirty_inode,
34951 };
34952
34953int
34954main (void)
34955{
34956
34957
34958 ;
34959 return 0;
34960}
34961
34962_ACEOF
34963
34964
34965
34966cat - <<_ACEOF >conftest.h
34967
34968_ACEOF
34969
34970
34971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34972 echo "obj-m := conftest.o" >build/Makefile
34973 modpost_flag=''
34974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34975 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'
34976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34977 (eval $ac_try) 2>&5
34978 ac_status=$?
34979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34980 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34982 (eval $ac_try) 2>&5
34983 ac_status=$?
34984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34985 test $ac_status = 0; }; }; then :
34986
34987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34988$as_echo "yes" >&6; }
34989
34990$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
34991
34992
34993else
34994 $as_echo "$as_me: failed program was:" >&5
34995sed 's/^/| /' conftest.$ac_ext >&5
34996
34997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34998$as_echo "no" >&6; }
34999
35000
35001
35002fi
35003 rm -Rf build
35004
35005
35006
35007
35008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35009$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35010
35011
35012cat confdefs.h - <<_ACEOF >conftest.c
35013
35014
35015 #include <linux/fs.h>
35016
35017 int nr_cached_objects(struct super_block *sb) { return 0; }
35018
35019 static const struct super_operations
35020 sops __attribute__ ((unused)) = {
35021 .nr_cached_objects = nr_cached_objects,
35022 };
35023
35024int
35025main (void)
35026{
35027
35028
35029 ;
35030 return 0;
35031}
35032
35033_ACEOF
35034
35035
35036
35037cat - <<_ACEOF >conftest.h
35038
35039_ACEOF
35040
35041
35042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35043 echo "obj-m := conftest.o" >build/Makefile
35044 modpost_flag=''
35045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35046 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'
35047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35048 (eval $ac_try) 2>&5
35049 ac_status=$?
35050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35051 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35053 (eval $ac_try) 2>&5
35054 ac_status=$?
35055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35056 test $ac_status = 0; }; }; then :
35057
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35059$as_echo "yes" >&6; }
35060
35061$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35062
35063
35064else
35065 $as_echo "$as_me: failed program was:" >&5
35066sed 's/^/| /' conftest.$ac_ext >&5
35067
35068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35069$as_echo "no" >&6; }
35070
35071
35072
35073fi
35074 rm -Rf build
35075
35076
35077
35078
35079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35080$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35081
35082
35083cat confdefs.h - <<_ACEOF >conftest.c
35084
35085
35086 #include <linux/fs.h>
35087
35088 void free_cached_objects(struct super_block *sb, int x)
35089 { return; }
35090
35091 static const struct super_operations
35092 sops __attribute__ ((unused)) = {
35093 .free_cached_objects = free_cached_objects,
35094 };
35095
35096int
35097main (void)
35098{
35099
35100
35101 ;
35102 return 0;
35103}
35104
35105_ACEOF
35106
35107
35108
35109cat - <<_ACEOF >conftest.h
35110
35111_ACEOF
35112
35113
35114 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35115 echo "obj-m := conftest.o" >build/Makefile
35116 modpost_flag=''
35117 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35118 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'
35119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35120 (eval $ac_try) 2>&5
35121 ac_status=$?
35122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35123 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35128 test $ac_status = 0; }; }; then :
35129
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35131$as_echo "yes" >&6; }
35132
35133$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
35134
35135
35136else
35137 $as_echo "$as_me: failed program was:" >&5
35138sed 's/^/| /' conftest.$ac_ext >&5
35139
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35141$as_echo "no" >&6; }
35142
35143
35144
35145fi
35146 rm -Rf build
35147
35148
35149
35150
35151
35152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35153$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35154
35155
35156cat confdefs.h - <<_ACEOF >conftest.c
35157
35158
35159 #include <linux/fs.h>
35160
35161 long test_fallocate(struct file *file, int mode,
35162 loff_t offset, loff_t len) { return 0; }
35163
35164 static const struct file_operations
35165 fops __attribute__ ((unused)) = {
35166 .fallocate = test_fallocate,
35167 };
35168
35169int
35170main (void)
35171{
35172
35173
35174 ;
35175 return 0;
35176}
35177
35178_ACEOF
35179
35180
35181
35182cat - <<_ACEOF >conftest.h
35183
35184_ACEOF
35185
35186
35187 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35188 echo "obj-m := conftest.o" >build/Makefile
35189 modpost_flag=''
35190 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35191 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'
35192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35193 (eval $ac_try) 2>&5
35194 ac_status=$?
35195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35196 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35198 (eval $ac_try) 2>&5
35199 ac_status=$?
35200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35201 test $ac_status = 0; }; }; then :
35202
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35204$as_echo "yes" >&6; }
35205
35206$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35207
35208
35209else
35210 $as_echo "$as_me: failed program was:" >&5
35211sed 's/^/| /' conftest.$ac_ext >&5
35212
35213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35214$as_echo "no" >&6; }
35215
35216
35217
35218fi
35219 rm -Rf build
35220
35221
35222
35223
35224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35225$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35226
35227
35228cat confdefs.h - <<_ACEOF >conftest.c
35229
35230
35231 #include <linux/fs.h>
35232
35233 long test_fallocate(struct inode *inode, int mode,
35234 loff_t offset, loff_t len) { return 0; }
35235
35236 static const struct inode_operations
35237 fops __attribute__ ((unused)) = {
35238 .fallocate = test_fallocate,
35239 };
35240
35241int
35242main (void)
35243{
35244
35245
35246 ;
35247 return 0;
35248}
35249
35250_ACEOF
35251
35252
35253
35254cat - <<_ACEOF >conftest.h
35255
35256_ACEOF
35257
35258
35259 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35260 echo "obj-m := conftest.o" >build/Makefile
35261 modpost_flag=''
35262 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35263 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'
35264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35265 (eval $ac_try) 2>&5
35266 ac_status=$?
35267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35268 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35270 (eval $ac_try) 2>&5
35271 ac_status=$?
35272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35273 test $ac_status = 0; }; }; then :
35274
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35276$as_echo "yes" >&6; }
35277
35278$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
35279
35280
35281else
35282 $as_echo "$as_me: failed program was:" >&5
35283sed 's/^/| /' conftest.$ac_ext >&5
35284
35285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286$as_echo "no" >&6; }
35287
35288
35289
35290fi
35291 rm -Rf build
35292
35293
35294
35295
35296
35297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35298$as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35299
35300
35301cat confdefs.h - <<_ACEOF >conftest.c
35302
35303
35304 #include <linux/fs.h>
35305
35306 static const struct file_operations
35307 fops __attribute__ ((unused)) = {
35308 .aio_fsync = NULL,
35309 };
35310
35311int
35312main (void)
35313{
35314
35315
35316 ;
35317 return 0;
35318}
35319
35320_ACEOF
35321
35322
35323
35324cat - <<_ACEOF >conftest.h
35325
35326_ACEOF
35327
35328
35329 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35330 echo "obj-m := conftest.o" >build/Makefile
35331 modpost_flag=''
35332 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35333 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'
35334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35335 (eval $ac_try) 2>&5
35336 ac_status=$?
35337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35338 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35340 (eval $ac_try) 2>&5
35341 ac_status=$?
35342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35343 test $ac_status = 0; }; }; then :
35344
35345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35346$as_echo "yes" >&6; }
35347
35348$as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35349
35350
35351else
35352 $as_echo "$as_me: failed program was:" >&5
35353sed 's/^/| /' conftest.$ac_ext >&5
35354
35355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35356$as_echo "no" >&6; }
35357
35358
35359
35360fi
35361 rm -Rf build
35362
35363
35364
35365
35366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35367$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35368
35369
35370cat confdefs.h - <<_ACEOF >conftest.c
35371
35372
35373 #include <linux/fs.h>
35374
35375 int mkdir(struct inode *inode, struct dentry *dentry,
35376 umode_t umode) { return 0; }
35377
35378 static const struct inode_operations
35379 iops __attribute__ ((unused)) = {
35380 .mkdir = mkdir,
35381 };
35382
35383int
35384main (void)
35385{
35386
35387
35388 ;
35389 return 0;
35390}
35391
35392_ACEOF
35393
35394
35395
35396cat - <<_ACEOF >conftest.h
35397
35398_ACEOF
35399
35400
35401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35402 echo "obj-m := conftest.o" >build/Makefile
35403 modpost_flag=''
35404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35405 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'
35406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35407 (eval $ac_try) 2>&5
35408 ac_status=$?
35409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35410 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35412 (eval $ac_try) 2>&5
35413 ac_status=$?
35414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35415 test $ac_status = 0; }; }; then :
35416
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35418$as_echo "yes" >&6; }
35419
35420$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35421
35422
35423else
35424 $as_echo "$as_me: failed program was:" >&5
35425sed 's/^/| /' conftest.$ac_ext >&5
35426
35427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35428$as_echo "no" >&6; }
35429
35430
35431
35432fi
35433 rm -Rf build
35434
35435
35436
35437
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35439$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35440
35441
35442cat confdefs.h - <<_ACEOF >conftest.c
35443
35444
35445 #include <linux/fs.h>
35446
35447 struct dentry *inode_lookup(struct inode *inode,
35448 struct dentry *dentry, struct nameidata *nidata)
35449 { return NULL; }
35450
35451 static const struct inode_operations iops
35452 __attribute__ ((unused)) = {
35453 .lookup = inode_lookup,
35454 };
35455
35456int
35457main (void)
35458{
35459
35460
35461 ;
35462 return 0;
35463}
35464
35465_ACEOF
35466
35467
35468
35469cat - <<_ACEOF >conftest.h
35470
35471_ACEOF
35472
35473
35474 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35475 echo "obj-m := conftest.o" >build/Makefile
35476 modpost_flag=''
35477 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35478 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'
35479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35480 (eval $ac_try) 2>&5
35481 ac_status=$?
35482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35483 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35485 (eval $ac_try) 2>&5
35486 ac_status=$?
35487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35488 test $ac_status = 0; }; }; then :
35489
35490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35491$as_echo "yes" >&6; }
35492
35493$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35494
35495
35496else
35497 $as_echo "$as_me: failed program was:" >&5
35498sed 's/^/| /' conftest.$ac_ext >&5
35499
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35501$as_echo "no" >&6; }
35502
35503
35504
35505fi
35506 rm -Rf build
35507
35508
35509
35510
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35512$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35513
35514
35515cat confdefs.h - <<_ACEOF >conftest.c
35516
35517
35518 #include <linux/fs.h>
35519
35520 #ifdef HAVE_MKDIR_UMODE_T
35521 int inode_create(struct inode *inode ,struct dentry *dentry,
35522 umode_t umode, struct nameidata *nidata) { return 0; }
35523 #else
35524 int inode_create(struct inode *inode,struct dentry *dentry,
35525 int umode, struct nameidata * nidata) { return 0; }
35526 #endif
35527
35528 static const struct inode_operations
35529 iops __attribute__ ((unused)) = {
35530 .create = inode_create,
35531 };
35532
35533int
35534main (void)
35535{
35536
35537
35538 ;
35539 return 0;
35540}
35541
35542_ACEOF
35543
35544
35545
35546cat - <<_ACEOF >conftest.h
35547
35548_ACEOF
35549
35550
35551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35552 echo "obj-m := conftest.o" >build/Makefile
35553 modpost_flag=''
35554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35555 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'
35556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35557 (eval $ac_try) 2>&5
35558 ac_status=$?
35559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35560 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35562 (eval $ac_try) 2>&5
35563 ac_status=$?
35564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35565 test $ac_status = 0; }; }; then :
35566
35567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35568$as_echo "yes" >&6; }
35569
35570$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35571
35572
35573else
35574 $as_echo "$as_me: failed program was:" >&5
35575sed 's/^/| /' conftest.$ac_ext >&5
35576
35577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35578$as_echo "no" >&6; }
35579
35580
35581
35582fi
35583 rm -Rf build
35584
35585
35586
35587
35588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35589$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35590
35591
35592cat confdefs.h - <<_ACEOF >conftest.c
35593
35594
35595 #include <linux/fs.h>
35596 const char *get_link(struct dentry *de, struct inode *ip,
35597 struct delayed_call *done) { return "symlink"; }
35598 static struct inode_operations
35599 iops __attribute__ ((unused)) = {
35600 .get_link = get_link,
35601 };
35602
35603int
35604main (void)
35605{
35606
35607
35608 ;
35609 return 0;
35610}
35611
35612_ACEOF
35613
35614
35615
35616cat - <<_ACEOF >conftest.h
35617
35618_ACEOF
35619
35620
35621 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35622 echo "obj-m := conftest.o" >build/Makefile
35623 modpost_flag=''
35624 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35625 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'
35626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35627 (eval $ac_try) 2>&5
35628 ac_status=$?
35629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35630 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35632 (eval $ac_try) 2>&5
35633 ac_status=$?
35634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35635 test $ac_status = 0; }; }; then :
35636
35637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35638$as_echo "yes" >&6; }
35639
35640$as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35641
35642
35643else
35644 $as_echo "$as_me: failed program was:" >&5
35645sed 's/^/| /' conftest.$ac_ext >&5
35646
35647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35648$as_echo "no" >&6; }
35649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35650$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35651
35652
35653cat confdefs.h - <<_ACEOF >conftest.c
35654
35655
35656 #include <linux/fs.h>
35657 const char *get_link(struct dentry *de, struct
35658 inode *ip, void **cookie) { return "symlink"; }
35659 static struct inode_operations
35660 iops __attribute__ ((unused)) = {
35661 .get_link = get_link,
35662 };
35663
35664int
35665main (void)
35666{
35667
35668
35669 ;
35670 return 0;
35671}
35672
35673_ACEOF
35674
35675
35676
35677cat - <<_ACEOF >conftest.h
35678
35679_ACEOF
35680
35681
35682 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35683 echo "obj-m := conftest.o" >build/Makefile
35684 modpost_flag=''
35685 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35686 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'
35687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35691 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35693 (eval $ac_try) 2>&5
35694 ac_status=$?
35695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35696 test $ac_status = 0; }; }; then :
35697
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699$as_echo "yes" >&6; }
35700
35701$as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35702
35703
35704else
35705 $as_echo "$as_me: failed program was:" >&5
35706sed 's/^/| /' conftest.$ac_ext >&5
35707
35708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35709$as_echo "no" >&6; }
35710
35711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35712$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35713
35714
35715cat confdefs.h - <<_ACEOF >conftest.c
35716
35717
35718 #include <linux/fs.h>
35719 const char *follow_link(struct dentry *de,
35720 void **cookie) { return "symlink"; }
35721 static struct inode_operations
35722 iops __attribute__ ((unused)) = {
35723 .follow_link = follow_link,
35724 };
35725
35726int
35727main (void)
35728{
35729
35730
35731 ;
35732 return 0;
35733}
35734
35735_ACEOF
35736
35737
35738
35739cat - <<_ACEOF >conftest.h
35740
35741_ACEOF
35742
35743
35744 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35745 echo "obj-m := conftest.o" >build/Makefile
35746 modpost_flag=''
35747 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35748 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'
35749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35750 (eval $ac_try) 2>&5
35751 ac_status=$?
35752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35753 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35758 test $ac_status = 0; }; }; then :
35759
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35761$as_echo "yes" >&6; }
35762
35763$as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
35764
35765
35766else
35767 $as_echo "$as_me: failed program was:" >&5
35768sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35771$as_echo "no" >&6; }
35772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
35773$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
35774
35775
35776cat confdefs.h - <<_ACEOF >conftest.c
35777
35778
35779 #include <linux/fs.h>
35780 void *follow_link(struct dentry *de, struct
35781 nameidata *nd) { return (void *)NULL; }
35782 static struct inode_operations
35783 iops __attribute__ ((unused)) = {
35784 .follow_link = follow_link,
35785 };
35786
35787int
35788main (void)
35789{
35790
35791
35792 ;
35793 return 0;
35794}
35795
35796_ACEOF
35797
35798
35799
35800cat - <<_ACEOF >conftest.h
35801
35802_ACEOF
35803
35804
35805 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35806 echo "obj-m := conftest.o" >build/Makefile
35807 modpost_flag=''
35808 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35809 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'
35810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35811 (eval $ac_try) 2>&5
35812 ac_status=$?
35813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35814 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35816 (eval $ac_try) 2>&5
35817 ac_status=$?
35818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35819 test $ac_status = 0; }; }; then :
35820
837ca015
CIK
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822$as_echo "yes" >&6; }
35823
35824$as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
35825
35826
35827else
35828 $as_echo "$as_me: failed program was:" >&5
35829sed 's/^/| /' conftest.$ac_ext >&5
35830
35831 as_fn_error $? "no; please file a bug report" "$LINENO" 5
35832
35833
35834
35835fi
35836 rm -Rf build
35837
35838
35839
35840
35841
35842fi
35843 rm -Rf build
35844
35845
35846
35847
35848
35849
35850fi
35851 rm -Rf build
35852
35853
35854
35855
35856
35857fi
35858 rm -Rf build
35859
35860
35861
35862
35863
35864
35865cat confdefs.h - <<_ACEOF >conftest.c
35866
35867
35868 #if !defined(HAVE_GET_LINK_DELAYED)
35869 #error "Expecting get_link() delayed done"
35870 #endif
35871
35872int
35873main (void)
35874{
35875
35876
35877 ;
35878 return 0;
35879}
35880
35881_ACEOF
35882
35883
35884
35885cat - <<_ACEOF >conftest.h
35886
35887_ACEOF
35888
35889
35890 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35891 echo "obj-m := conftest.o" >build/Makefile
35892 modpost_flag=''
35893 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35894 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'
35895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35896 (eval $ac_try) 2>&5
35897 ac_status=$?
35898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35899 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35901 (eval $ac_try) 2>&5
35902 ac_status=$?
35903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35904 test $ac_status = 0; }; }; then :
35905
35906
35907$as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
35908
35909
35910else
35911 $as_echo "$as_me: failed program was:" >&5
35912sed 's/^/| /' conftest.$ac_ext >&5
35913
35914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
35915$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
35916
35917
35918cat confdefs.h - <<_ACEOF >conftest.c
35919
35920
35921 #include <linux/fs.h>
35922 void put_link(struct inode *ip, void *cookie)
35923 { return; }
35924 static struct inode_operations
35925 iops __attribute__ ((unused)) = {
35926 .put_link = put_link,
35927 };
35928
35929int
35930main (void)
35931{
35932
35933
35934 ;
35935 return 0;
35936}
35937
35938_ACEOF
35939
35940
35941
35942cat - <<_ACEOF >conftest.h
35943
35944_ACEOF
35945
35946
35947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35948 echo "obj-m := conftest.o" >build/Makefile
35949 modpost_flag=''
35950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35951 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'
35952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35953 (eval $ac_try) 2>&5
35954 ac_status=$?
35955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35956 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35958 (eval $ac_try) 2>&5
35959 ac_status=$?
35960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35961 test $ac_status = 0; }; }; then :
35962
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35964$as_echo "yes" >&6; }
35965
35966$as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
35967
35968
35969else
35970 $as_echo "$as_me: failed program was:" >&5
35971sed 's/^/| /' conftest.$ac_ext >&5
35972
35973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35974$as_echo "no" >&6; }
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
35976$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
35977
35978
35979cat confdefs.h - <<_ACEOF >conftest.c
35980
35981
35982 #include <linux/fs.h>
35983 void put_link(struct dentry *de, struct
35984 nameidata *nd, void *ptr) { return; }
35985 static struct inode_operations
35986 iops __attribute__ ((unused)) = {
35987 .put_link = put_link,
35988 };
35989
35990int
35991main (void)
35992{
35993
35994
35995 ;
35996 return 0;
35997}
35998
35999_ACEOF
36000
36001
36002
36003cat - <<_ACEOF >conftest.h
36004
36005_ACEOF
36006
36007
36008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36009 echo "obj-m := conftest.o" >build/Makefile
36010 modpost_flag=''
36011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36012 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'
36013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36014 (eval $ac_try) 2>&5
36015 ac_status=$?
36016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36017 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36019 (eval $ac_try) 2>&5
36020 ac_status=$?
36021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36022 test $ac_status = 0; }; }; then :
36023
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
36025$as_echo "yes" >&6; }
36026
837ca015 36027$as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
70e083d2
TG
36028
36029
36030else
36031 $as_echo "$as_me: failed program was:" >&5
36032sed 's/^/| /' conftest.$ac_ext >&5
36033
837ca015 36034 as_fn_error $? "no; please file a bug report" "$LINENO" 5
70e083d2
TG
36035
36036
36037
36038fi
36039 rm -Rf build
36040
36041
36042
36043
36044
70e083d2
TG
36045fi
36046 rm -Rf build
36047
36048
36049
36050
36051
86e3c28a
CIK
36052fi
36053 rm -Rf build
36054
36055
36056
36057
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36059$as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36060
36061
36062cat confdefs.h - <<_ACEOF >conftest.c
36063
36064
36065 #include <linux/fs.h>
36066 int tmpfile(struct inode *inode, struct dentry *dentry,
36067 umode_t mode) { return 0; }
36068 static struct inode_operations
36069 iops __attribute__ ((unused)) = {
36070 .tmpfile = tmpfile,
36071 };
36072
36073int
36074main (void)
36075{
36076
36077
36078 ;
36079 return 0;
36080}
36081
36082_ACEOF
36083
36084
36085
36086cat - <<_ACEOF >conftest.h
36087
36088_ACEOF
36089
36090
36091 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36092 echo "obj-m := conftest.o" >build/Makefile
36093 modpost_flag=''
36094 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36095 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'
36096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36097 (eval $ac_try) 2>&5
36098 ac_status=$?
36099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36100 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36102 (eval $ac_try) 2>&5
36103 ac_status=$?
36104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36105 test $ac_status = 0; }; }; then :
36106
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36108$as_echo "yes" >&6; }
36109
36110$as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36111
36112
36113else
36114 $as_echo "$as_me: failed program was:" >&5
36115sed 's/^/| /' conftest.$ac_ext >&5
36116
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36118$as_echo "no" >&6; }
36119
36120
36121
70e083d2
TG
36122fi
36123 rm -Rf build
36124
36125
36126
36127
837ca015
CIK
36128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36129$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
70e083d2
TG
36130
36131
36132cat confdefs.h - <<_ACEOF >conftest.c
36133
36134
837ca015
CIK
36135 #include <linux/fs.h>
36136 void truncate_range(struct inode *inode, loff_t start,
36137 loff_t end) { return; }
36138 static struct inode_operations iops __attribute__ ((unused)) = {
36139 .truncate_range = truncate_range,
36140 };
70e083d2
TG
36141
36142int
36143main (void)
36144{
36145
36146
36147 ;
36148 return 0;
36149}
36150
36151_ACEOF
36152
36153
36154
36155cat - <<_ACEOF >conftest.h
36156
36157_ACEOF
36158
36159
36160 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36161 echo "obj-m := conftest.o" >build/Makefile
36162 modpost_flag=''
36163 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36164 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'
36165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36166 (eval $ac_try) 2>&5
36167 ac_status=$?
36168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36169 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36171 (eval $ac_try) 2>&5
36172 ac_status=$?
36173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36174 test $ac_status = 0; }; }; then :
36175
837ca015
CIK
36176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36177$as_echo "yes" >&6; }
70e083d2 36178
837ca015 36179$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
70e083d2
TG
36180
36181
36182else
36183 $as_echo "$as_me: failed program was:" >&5
36184sed 's/^/| /' conftest.$ac_ext >&5
36185
837ca015
CIK
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36187$as_echo "no" >&6; }
36188
36189
36190
36191fi
36192 rm -Rf build
36193
36194
36195
36196
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36198$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
70e083d2
TG
36199
36200
36201cat confdefs.h - <<_ACEOF >conftest.c
36202
36203
837ca015
CIK
36204 #include <linux/dcache.h>
36205 struct vfsmount *d_automount(struct path *p) { return NULL; }
36206 struct dentry_operations dops __attribute__ ((unused)) = {
36207 .d_automount = d_automount,
36208 };
70e083d2
TG
36209
36210int
36211main (void)
36212{
36213
36214
36215 ;
36216 return 0;
36217}
36218
36219_ACEOF
36220
36221
36222
36223cat - <<_ACEOF >conftest.h
36224
36225_ACEOF
36226
36227
36228 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36229 echo "obj-m := conftest.o" >build/Makefile
36230 modpost_flag=''
36231 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36232 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'
36233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36237 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36239 (eval $ac_try) 2>&5
36240 ac_status=$?
36241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36242 test $ac_status = 0; }; }; then :
36243
837ca015 36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
36245$as_echo "yes" >&6; }
36246
837ca015 36247$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
70e083d2
TG
36248
36249
36250else
36251 $as_echo "$as_me: failed program was:" >&5
36252sed 's/^/| /' conftest.$ac_ext >&5
36253
837ca015 36254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2 36255$as_echo "no" >&6; }
837ca015
CIK
36256
36257
36258
36259fi
36260 rm -Rf build
36261
36262
36263
36264
36265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36266$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
70e083d2
TG
36267
36268
36269cat confdefs.h - <<_ACEOF >conftest.c
36270
36271
837ca015
CIK
36272 #include <linux/exportfs.h>
36273 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36274 struct inode *parent) { return 0; }
36275 static struct export_operations eops __attribute__ ((unused))={
36276 .encode_fh = encode_fh,
36277 };
70e083d2
TG
36278
36279int
36280main (void)
36281{
36282
36283
36284 ;
36285 return 0;
36286}
36287
36288_ACEOF
36289
36290
36291
36292cat - <<_ACEOF >conftest.h
36293
36294_ACEOF
36295
36296
36297 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36298 echo "obj-m := conftest.o" >build/Makefile
36299 modpost_flag=''
36300 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36301 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'
36302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36303 (eval $ac_try) 2>&5
36304 ac_status=$?
36305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36306 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36308 (eval $ac_try) 2>&5
36309 ac_status=$?
36310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36311 test $ac_status = 0; }; }; then :
36312
837ca015 36313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
36314$as_echo "yes" >&6; }
36315
837ca015 36316$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
70e083d2
TG
36317
36318
36319else
36320 $as_echo "$as_me: failed program was:" >&5
36321sed 's/^/| /' conftest.$ac_ext >&5
36322
837ca015
CIK
36323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36324$as_echo "no" >&6; }
70e083d2
TG
36325
36326
36327
36328fi
36329 rm -Rf build
36330
36331
36332
36333
837ca015
CIK
36334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36335$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36336
70e083d2 36337
837ca015
CIK
36338cat confdefs.h - <<_ACEOF >conftest.c
36339
36340
36341 #include <linux/exportfs.h>
36342 int commit_metadata(struct inode *inode) { return 0; }
36343 static struct export_operations eops __attribute__ ((unused))={
36344 .commit_metadata = commit_metadata,
36345 };
36346
36347int
36348main (void)
36349{
36350
36351
36352 ;
36353 return 0;
36354}
70e083d2 36355
837ca015
CIK
36356_ACEOF
36357
36358
36359
36360cat - <<_ACEOF >conftest.h
36361
36362_ACEOF
36363
36364
36365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36366 echo "obj-m := conftest.o" >build/Makefile
36367 modpost_flag=''
36368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36369 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'
36370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36371 (eval $ac_try) 2>&5
36372 ac_status=$?
36373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36374 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36376 (eval $ac_try) 2>&5
36377 ac_status=$?
36378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36379 test $ac_status = 0; }; }; then :
36380
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36382$as_echo "yes" >&6; }
36383
36384$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36385
36386
36387else
36388 $as_echo "$as_me: failed program was:" >&5
36389sed 's/^/| /' conftest.$ac_ext >&5
70e083d2 36390
837ca015
CIK
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36392$as_echo "no" >&6; }
70e083d2
TG
36393
36394
36395
36396fi
36397 rm -Rf build
36398
36399
36400
837ca015
CIK
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36402$as_echo_n "checking whether clear_inode() is available... " >&6; }
70e083d2 36403
70e083d2
TG
36404
36405
36406cat confdefs.h - <<_ACEOF >conftest.c
36407
36408
36409 #include <linux/fs.h>
70e083d2
TG
36410
36411int
36412main (void)
36413{
36414
837ca015 36415 clear_inode(NULL);
70e083d2
TG
36416
36417 ;
36418 return 0;
36419}
36420
36421_ACEOF
36422
36423
36424
36425cat - <<_ACEOF >conftest.h
36426
36427_ACEOF
36428
36429
36430 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36431 echo "obj-m := conftest.o" >build/Makefile
36432 modpost_flag=''
36433 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36434 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'
36435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36436 (eval $ac_try) 2>&5
36437 ac_status=$?
36438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36439 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36441 (eval $ac_try) 2>&5
36442 ac_status=$?
36443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36444 test $ac_status = 0; }; }; then :
837ca015
CIK
36445 rc=0
36446else
36447 $as_echo "$as_me: failed program was:" >&5
36448sed 's/^/| /' conftest.$ac_ext >&5
36449 rc=1
70e083d2 36450
70e083d2 36451
837ca015
CIK
36452fi
36453 rm -Rf build
70e083d2
TG
36454
36455
837ca015
CIK
36456 if test $rc -ne 0; then :
36457
36458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36459$as_echo "no" >&6; }
36460
36461 else
36462 if test "x$enable_linux_builtin" != xyes; then
36463
36464 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36465 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36466 rc=$?
36467 if test $rc -ne 0; then
36468 export=0
36469 for file in fs/inode.c; do
36470 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36471 "$LINUX/$file" 2>/dev/null
36472 rc=$?
36473 if test $rc -eq 0; then
36474 export=1
36475 break;
36476 fi
36477 done
36478 if test $export -eq 0; then :
36479 rc=1
36480 else :
36481 rc=0
36482 fi
36483 else :
36484 rc=0
36485 fi
36486
36487 fi
36488 if test $rc -ne 0; then :
70e083d2
TG
36489
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36491$as_echo "no" >&6; }
36492
837ca015 36493 else :
70e083d2 36494
837ca015
CIK
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36496$as_echo "yes" >&6; }
70e083d2 36497
837ca015 36498$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
70e083d2
TG
36499
36500
837ca015
CIK
36501 fi
36502 fi
70e083d2
TG
36503
36504
837ca015
CIK
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36506$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36507
70e083d2
TG
36508
36509
36510cat confdefs.h - <<_ACEOF >conftest.c
36511
36512
837ca015 36513 #include <linux/fs.h>
70e083d2
TG
36514
36515int
36516main (void)
36517{
36518
837ca015
CIK
36519 struct dentry *dentry = NULL;
36520 struct iattr *attr = NULL;
36521 int error;
36522
36523 error = setattr_prepare(dentry, attr);
70e083d2
TG
36524
36525 ;
36526 return 0;
36527}
36528
36529_ACEOF
36530
36531
36532
36533cat - <<_ACEOF >conftest.h
36534
36535_ACEOF
36536
36537
36538 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36539 echo "obj-m := conftest.o" >build/Makefile
36540 modpost_flag=''
36541 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36542 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'
36543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36544 (eval $ac_try) 2>&5
36545 ac_status=$?
36546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36547 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36549 (eval $ac_try) 2>&5
36550 ac_status=$?
36551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36552 test $ac_status = 0; }; }; then :
837ca015
CIK
36553 rc=0
36554else
36555 $as_echo "$as_me: failed program was:" >&5
36556sed 's/^/| /' conftest.$ac_ext >&5
36557 rc=1
36558
36559
36560fi
36561 rm -Rf build
36562
36563
36564 if test $rc -ne 0; then :
70e083d2 36565
837ca015
CIK
36566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36567$as_echo "no" >&6; }
70e083d2 36568
837ca015
CIK
36569 else
36570 if test "x$enable_linux_builtin" != xyes; then
70e083d2 36571
837ca015
CIK
36572 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36573 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36574 rc=$?
36575 if test $rc -ne 0; then
36576 export=0
36577 for file in fs/attr.c; do
36578 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36579 "$LINUX/$file" 2>/dev/null
36580 rc=$?
36581 if test $rc -eq 0; then
36582 export=1
36583 break;
36584 fi
36585 done
36586 if test $export -eq 0; then :
36587 rc=1
36588 else :
36589 rc=0
36590 fi
36591 else :
36592 rc=0
36593 fi
70e083d2 36594
837ca015
CIK
36595 fi
36596 if test $rc -ne 0; then :
70e083d2
TG
36597
36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36599$as_echo "no" >&6; }
36600
837ca015 36601 else :
70e083d2 36602
837ca015
CIK
36603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36604$as_echo "yes" >&6; }
70e083d2 36605
837ca015 36606$as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
70e083d2
TG
36607
36608
837ca015
CIK
36609 fi
36610 fi
70e083d2
TG
36611
36612
837ca015
CIK
36613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36614$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36615
70e083d2
TG
36616
36617
36618cat confdefs.h - <<_ACEOF >conftest.c
36619
36620
837ca015 36621 #include <linux/fs.h>
70e083d2
TG
36622
36623int
36624main (void)
36625{
36626
837ca015 36627 insert_inode_locked(NULL);
70e083d2
TG
36628
36629 ;
36630 return 0;
36631}
36632
36633_ACEOF
36634
36635
36636
36637cat - <<_ACEOF >conftest.h
36638
36639_ACEOF
36640
36641
36642 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36643 echo "obj-m := conftest.o" >build/Makefile
36644 modpost_flag=''
36645 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36646 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'
36647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36648 (eval $ac_try) 2>&5
36649 ac_status=$?
36650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36651 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36653 (eval $ac_try) 2>&5
36654 ac_status=$?
36655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36656 test $ac_status = 0; }; }; then :
837ca015
CIK
36657 rc=0
36658else
36659 $as_echo "$as_me: failed program was:" >&5
36660sed 's/^/| /' conftest.$ac_ext >&5
36661 rc=1
70e083d2 36662
70e083d2 36663
837ca015
CIK
36664fi
36665 rm -Rf build
70e083d2
TG
36666
36667
837ca015 36668 if test $rc -ne 0; then :
70e083d2
TG
36669
36670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36671$as_echo "no" >&6; }
36672
837ca015
CIK
36673 else
36674 if test "x$enable_linux_builtin" != xyes; then
70e083d2 36675
837ca015
CIK
36676 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36677 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36678 rc=$?
36679 if test $rc -ne 0; then
36680 export=0
36681 for file in fs/inode.c; do
36682 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36683 "$LINUX/$file" 2>/dev/null
36684 rc=$?
36685 if test $rc -eq 0; then
36686 export=1
36687 break;
36688 fi
36689 done
36690 if test $export -eq 0; then :
36691 rc=1
36692 else :
36693 rc=0
36694 fi
36695 else :
36696 rc=0
36697 fi
70e083d2 36698
837ca015
CIK
36699 fi
36700 if test $rc -ne 0; then :
70e083d2 36701
837ca015
CIK
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36703$as_echo "no" >&6; }
70e083d2 36704
837ca015 36705 else :
70e083d2 36706
837ca015
CIK
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36708$as_echo "yes" >&6; }
36709
36710$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36711
36712
36713 fi
36714 fi
36715
36716
36717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36718$as_echo_n "checking whether d_make_root() is available... " >&6; }
70e083d2 36719
70e083d2
TG
36720
36721
36722cat confdefs.h - <<_ACEOF >conftest.c
36723
36724
837ca015 36725 #include <linux/dcache.h>
70e083d2
TG
36726
36727int
36728main (void)
36729{
36730
837ca015 36731 d_make_root(NULL);
70e083d2
TG
36732
36733 ;
36734 return 0;
36735}
36736
36737_ACEOF
36738
36739
36740
36741cat - <<_ACEOF >conftest.h
36742
36743_ACEOF
36744
36745
36746 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36747 echo "obj-m := conftest.o" >build/Makefile
36748 modpost_flag=''
36749 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36750 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'
36751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36755 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36757 (eval $ac_try) 2>&5
36758 ac_status=$?
36759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36760 test $ac_status = 0; }; }; then :
837ca015
CIK
36761 rc=0
36762else
36763 $as_echo "$as_me: failed program was:" >&5
36764sed 's/^/| /' conftest.$ac_ext >&5
36765 rc=1
70e083d2 36766
70e083d2 36767
837ca015
CIK
36768fi
36769 rm -Rf build
70e083d2
TG
36770
36771
837ca015 36772 if test $rc -ne 0; then :
70e083d2
TG
36773
36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36775$as_echo "no" >&6; }
36776
837ca015
CIK
36777 else
36778 if test "x$enable_linux_builtin" != xyes; then
70e083d2 36779
837ca015
CIK
36780 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
36781 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36782 rc=$?
36783 if test $rc -ne 0; then
36784 export=0
36785 for file in fs/dcache.c; do
36786 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
36787 "$LINUX/$file" 2>/dev/null
36788 rc=$?
36789 if test $rc -eq 0; then
36790 export=1
36791 break;
36792 fi
36793 done
36794 if test $export -eq 0; then :
36795 rc=1
36796 else :
36797 rc=0
36798 fi
36799 else :
36800 rc=0
36801 fi
70e083d2 36802
837ca015
CIK
36803 fi
36804 if test $rc -ne 0; then :
70e083d2 36805
837ca015
CIK
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36807$as_echo "no" >&6; }
70e083d2 36808
837ca015 36809 else :
70e083d2 36810
837ca015
CIK
36811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36812$as_echo "yes" >&6; }
36813
36814$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
36815
36816
36817 fi
36818 fi
36819
36820
36821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
36822$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
70e083d2
TG
36823
36824
36825
36826cat confdefs.h - <<_ACEOF >conftest.c
36827
36828
837ca015 36829 #include <linux/dcache.h>
70e083d2
TG
36830
36831int
36832main (void)
36833{
36834
837ca015 36835 d_obtain_alias(NULL);
70e083d2
TG
36836
36837 ;
36838 return 0;
36839}
36840
36841_ACEOF
36842
36843
36844
36845cat - <<_ACEOF >conftest.h
36846
36847_ACEOF
36848
36849
36850 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36851 echo "obj-m := conftest.o" >build/Makefile
36852 modpost_flag=''
36853 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36854 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'
36855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36856 (eval $ac_try) 2>&5
36857 ac_status=$?
36858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36859 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36861 (eval $ac_try) 2>&5
36862 ac_status=$?
36863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36864 test $ac_status = 0; }; }; then :
36865 rc=0
36866else
36867 $as_echo "$as_me: failed program was:" >&5
36868sed 's/^/| /' conftest.$ac_ext >&5
36869 rc=1
36870
36871
36872fi
36873 rm -Rf build
36874
36875
36876 if test $rc -ne 0; then :
36877
36878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36879$as_echo "no" >&6; }
36880
36881 else
36882 if test "x$enable_linux_builtin" != xyes; then
36883
837ca015 36884 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
70e083d2
TG
36885 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36886 rc=$?
36887 if test $rc -ne 0; then
36888 export=0
837ca015
CIK
36889 for file in fs/dcache.c; do
36890 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
70e083d2
TG
36891 "$LINUX/$file" 2>/dev/null
36892 rc=$?
36893 if test $rc -eq 0; then
36894 export=1
36895 break;
36896 fi
36897 done
36898 if test $export -eq 0; then :
36899 rc=1
36900 else :
36901 rc=0
36902 fi
36903 else :
36904 rc=0
36905 fi
36906
36907 fi
36908 if test $rc -ne 0; then :
36909
36910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36911$as_echo "no" >&6; }
36912
36913 else :
36914
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36916$as_echo "yes" >&6; }
36917
837ca015 36918$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
70e083d2
TG
36919
36920
36921 fi
36922 fi
36923
36924
837ca015
CIK
36925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
36926$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
70e083d2
TG
36927
36928
36929
36930cat confdefs.h - <<_ACEOF >conftest.c
36931
36932
837ca015 36933 #include <linux/dcache.h>
70e083d2
TG
36934
36935int
36936main (void)
36937{
36938
837ca015
CIK
36939 struct inode *ip = NULL;
36940 d_prune_aliases(ip);
70e083d2
TG
36941
36942 ;
36943 return 0;
36944}
36945
36946_ACEOF
36947
36948
36949
36950cat - <<_ACEOF >conftest.h
36951
36952_ACEOF
36953
36954
36955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36956 echo "obj-m := conftest.o" >build/Makefile
36957 modpost_flag=''
36958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36959 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'
36960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36961 (eval $ac_try) 2>&5
36962 ac_status=$?
36963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36964 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36966 (eval $ac_try) 2>&5
36967 ac_status=$?
36968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36969 test $ac_status = 0; }; }; then :
36970 rc=0
36971else
36972 $as_echo "$as_me: failed program was:" >&5
36973sed 's/^/| /' conftest.$ac_ext >&5
36974 rc=1
36975
36976
36977fi
36978 rm -Rf build
36979
36980
36981 if test $rc -ne 0; then :
36982
36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36984$as_echo "no" >&6; }
36985
36986 else
36987 if test "x$enable_linux_builtin" != xyes; then
36988
837ca015 36989 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
70e083d2
TG
36990 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36991 rc=$?
36992 if test $rc -ne 0; then
36993 export=0
837ca015
CIK
36994 for file in fs/dcache.c; do
36995 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
70e083d2
TG
36996 "$LINUX/$file" 2>/dev/null
36997 rc=$?
36998 if test $rc -eq 0; then
36999 export=1
37000 break;
37001 fi
37002 done
37003 if test $export -eq 0; then :
37004 rc=1
37005 else :
37006 rc=0
37007 fi
37008 else :
37009 rc=0
37010 fi
37011
37012 fi
37013 if test $rc -ne 0; then :
37014
37015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37016$as_echo "no" >&6; }
37017
37018 else :
37019
37020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37021$as_echo "yes" >&6; }
37022
837ca015 37023$as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
70e083d2
TG
37024
37025
37026 fi
37027 fi
37028
37029
837ca015
CIK
37030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37031$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
70e083d2
TG
37032
37033
37034
37035cat confdefs.h - <<_ACEOF >conftest.c
37036
37037
837ca015 37038 #include <linux/dcache.h>
70e083d2
TG
37039
37040int
37041main (void)
37042{
37043
837ca015 37044 d_set_d_op(NULL, NULL);
70e083d2
TG
37045
37046 ;
37047 return 0;
37048}
37049
37050_ACEOF
37051
37052
37053
37054cat - <<_ACEOF >conftest.h
37055
37056_ACEOF
37057
37058
37059 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37060 echo "obj-m := conftest.o" >build/Makefile
37061 modpost_flag=''
37062 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37063 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'
37064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37065 (eval $ac_try) 2>&5
37066 ac_status=$?
37067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37068 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37070 (eval $ac_try) 2>&5
37071 ac_status=$?
37072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37073 test $ac_status = 0; }; }; then :
37074 rc=0
37075else
37076 $as_echo "$as_me: failed program was:" >&5
37077sed 's/^/| /' conftest.$ac_ext >&5
37078 rc=1
37079
37080
37081fi
37082 rm -Rf build
37083
37084
37085 if test $rc -ne 0; then :
37086
37087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088$as_echo "no" >&6; }
37089
37090 else
37091 if test "x$enable_linux_builtin" != xyes; then
37092
837ca015 37093 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
70e083d2
TG
37094 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37095 rc=$?
37096 if test $rc -ne 0; then
37097 export=0
837ca015
CIK
37098 for file in fs/dcache.c; do
37099 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
70e083d2
TG
37100 "$LINUX/$file" 2>/dev/null
37101 rc=$?
37102 if test $rc -eq 0; then
37103 export=1
37104 break;
37105 fi
37106 done
37107 if test $export -eq 0; then :
37108 rc=1
37109 else :
37110 rc=0
37111 fi
37112 else :
37113 rc=0
37114 fi
37115
37116 fi
37117 if test $rc -ne 0; then :
37118
37119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37120$as_echo "no" >&6; }
37121
37122 else :
37123
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125$as_echo "yes" >&6; }
37126
837ca015 37127$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
70e083d2
TG
37128
37129
37130 fi
37131 fi
37132
37133
70e083d2 37134
837ca015
CIK
37135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37136$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
70e083d2
TG
37137
37138
37139cat confdefs.h - <<_ACEOF >conftest.c
37140
37141
37142 #include <linux/dcache.h>
37143
837ca015
CIK
37144 int revalidate (struct dentry *dentry,
37145 struct nameidata *nidata) { return 0; }
37146
37147 static const struct dentry_operations
37148 dops __attribute__ ((unused)) = {
37149 .d_revalidate = revalidate,
37150 };
37151
70e083d2
TG
37152int
37153main (void)
37154{
37155
70e083d2
TG
37156
37157 ;
37158 return 0;
37159}
37160
37161_ACEOF
37162
37163
37164
37165cat - <<_ACEOF >conftest.h
37166
37167_ACEOF
37168
37169
37170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37171 echo "obj-m := conftest.o" >build/Makefile
37172 modpost_flag=''
37173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37174 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'
37175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37176 (eval $ac_try) 2>&5
37177 ac_status=$?
37178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37181 (eval $ac_try) 2>&5
37182 ac_status=$?
37183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37184 test $ac_status = 0; }; }; then :
70e083d2 37185
837ca015
CIK
37186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37187$as_echo "yes" >&6; }
70e083d2 37188
837ca015 37189$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
70e083d2 37190
70e083d2 37191
837ca015
CIK
37192else
37193 $as_echo "$as_me: failed program was:" >&5
37194sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
37195
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37197$as_echo "no" >&6; }
37198
70e083d2 37199
70e083d2 37200
837ca015
CIK
37201fi
37202 rm -Rf build
70e083d2 37203
70e083d2
TG
37204
37205
70e083d2 37206
837ca015
CIK
37207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37208$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
70e083d2
TG
37209
37210
37211cat confdefs.h - <<_ACEOF >conftest.c
37212
37213
37214 #include <linux/dcache.h>
37215
837ca015
CIK
37216 const struct dentry_operations test_d_op = {
37217 .d_revalidate = NULL,
37218 };
37219
70e083d2
TG
37220int
37221main (void)
37222{
37223
837ca015
CIK
37224 struct dentry d __attribute__ ((unused));
37225
37226 d.d_op = &test_d_op;
70e083d2
TG
37227
37228 ;
37229 return 0;
37230}
37231
37232_ACEOF
37233
37234
37235
37236cat - <<_ACEOF >conftest.h
37237
37238_ACEOF
37239
37240
37241 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37242 echo "obj-m := conftest.o" >build/Makefile
37243 modpost_flag=''
37244 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37245 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'
37246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37247 (eval $ac_try) 2>&5
37248 ac_status=$?
37249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37250 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37255 test $ac_status = 0; }; }; then :
70e083d2 37256
837ca015
CIK
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37258$as_echo "yes" >&6; }
70e083d2 37259
837ca015 37260$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
70e083d2 37261
70e083d2 37262
837ca015
CIK
37263else
37264 $as_echo "$as_me: failed program was:" >&5
37265sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
37266
37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37268$as_echo "no" >&6; }
37269
70e083d2 37270
70e083d2 37271
837ca015
CIK
37272fi
37273 rm -Rf build
70e083d2 37274
70e083d2
TG
37275
37276
837ca015
CIK
37277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37278$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
70e083d2
TG
37279
37280
37281
37282cat confdefs.h - <<_ACEOF >conftest.c
37283
37284
837ca015 37285 #include <linux/mm.h>
70e083d2
TG
37286
37287int
37288main (void)
37289{
37290
837ca015 37291 truncate_setsize(NULL, 0);
70e083d2
TG
37292
37293 ;
37294 return 0;
37295}
37296
37297_ACEOF
37298
37299
37300
37301cat - <<_ACEOF >conftest.h
37302
37303_ACEOF
37304
37305
37306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37307 echo "obj-m := conftest.o" >build/Makefile
37308 modpost_flag=''
37309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37310 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'
37311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37312 (eval $ac_try) 2>&5
37313 ac_status=$?
37314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37315 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37317 (eval $ac_try) 2>&5
37318 ac_status=$?
37319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37320 test $ac_status = 0; }; }; then :
37321 rc=0
37322else
37323 $as_echo "$as_me: failed program was:" >&5
37324sed 's/^/| /' conftest.$ac_ext >&5
37325 rc=1
37326
37327
37328fi
37329 rm -Rf build
37330
37331
37332 if test $rc -ne 0; then :
37333
37334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37335$as_echo "no" >&6; }
37336
37337 else
37338 if test "x$enable_linux_builtin" != xyes; then
37339
837ca015 37340 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
70e083d2
TG
37341 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37342 rc=$?
37343 if test $rc -ne 0; then
37344 export=0
837ca015
CIK
37345 for file in mm/truncate.c; do
37346 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
70e083d2
TG
37347 "$LINUX/$file" 2>/dev/null
37348 rc=$?
37349 if test $rc -eq 0; then
37350 export=1
37351 break;
37352 fi
37353 done
37354 if test $export -eq 0; then :
37355 rc=1
37356 else :
37357 rc=0
37358 fi
37359 else :
37360 rc=0
37361 fi
37362
37363 fi
37364 if test $rc -ne 0; then :
37365
37366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37367$as_echo "no" >&6; }
37368
37369 else :
37370
37371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37372$as_echo "yes" >&6; }
37373
837ca015 37374$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
70e083d2
TG
37375
37376
37377 fi
37378 fi
37379
37380
37381
837ca015
CIK
37382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37383$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
70e083d2
TG
37384
37385
37386cat confdefs.h - <<_ACEOF >conftest.c
37387
37388
837ca015 37389 #include <linux/security.h>
70e083d2
TG
37390
37391int
37392main (void)
37393{
37394
837ca015
CIK
37395 struct inode *ip __attribute__ ((unused)) = NULL;
37396 struct inode *dip __attribute__ ((unused)) = NULL;
37397 const struct qstr *str __attribute__ ((unused)) = NULL;
37398 char *name __attribute__ ((unused)) = NULL;
37399 void *value __attribute__ ((unused)) = NULL;
37400 size_t len __attribute__ ((unused)) = 0;
37401
37402 security_inode_init_security(ip, dip, str, &name, &value, &len);
70e083d2
TG
37403
37404 ;
37405 return 0;
37406}
37407
37408_ACEOF
37409
37410
37411
37412cat - <<_ACEOF >conftest.h
37413
37414_ACEOF
37415
37416
37417 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37418 echo "obj-m := conftest.o" >build/Makefile
37419 modpost_flag=''
37420 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37421 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'
37422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37423 (eval $ac_try) 2>&5
37424 ac_status=$?
37425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37426 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37428 (eval $ac_try) 2>&5
37429 ac_status=$?
37430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37431 test $ac_status = 0; }; }; then :
37432
37433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37434$as_echo "yes" >&6; }
37435
837ca015 37436$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
70e083d2
TG
37437
37438
37439else
37440 $as_echo "$as_me: failed program was:" >&5
37441sed 's/^/| /' conftest.$ac_ext >&5
37442
37443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37444$as_echo "no" >&6; }
37445
37446
37447
37448fi
37449 rm -Rf build
37450
37451
37452
37453
837ca015
CIK
37454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37455$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
70e083d2
TG
37456
37457
37458cat confdefs.h - <<_ACEOF >conftest.c
37459
37460
837ca015 37461 #include <linux/security.h>
70e083d2
TG
37462
37463int
37464main (void)
37465{
37466
837ca015
CIK
37467 struct inode *ip __attribute__ ((unused)) = NULL;
37468 struct inode *dip __attribute__ ((unused)) = NULL;
37469 const struct qstr *str __attribute__ ((unused)) = NULL;
37470 initxattrs func __attribute__ ((unused)) = NULL;
70e083d2 37471
837ca015 37472 security_inode_init_security(ip, dip, str, func, NULL);
70e083d2
TG
37473
37474 ;
37475 return 0;
37476}
37477
37478_ACEOF
37479
37480
37481
37482cat - <<_ACEOF >conftest.h
37483
37484_ACEOF
37485
37486
37487 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37488 echo "obj-m := conftest.o" >build/Makefile
37489 modpost_flag=''
37490 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37491 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'
37492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37493 (eval $ac_try) 2>&5
37494 ac_status=$?
37495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37496 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37498 (eval $ac_try) 2>&5
37499 ac_status=$?
37500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37501 test $ac_status = 0; }; }; then :
37502
37503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37504$as_echo "yes" >&6; }
37505
837ca015 37506$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
70e083d2
TG
37507
37508
37509else
37510 $as_echo "$as_me: failed program was:" >&5
37511sed 's/^/| /' conftest.$ac_ext >&5
37512
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37514$as_echo "no" >&6; }
37515
37516
37517
37518fi
37519 rm -Rf build
37520
37521
37522
837ca015
CIK
37523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
37524$as_echo_n "checking whether mount_nodev() is available... " >&6; }
70e083d2
TG
37525
37526
37527
37528cat confdefs.h - <<_ACEOF >conftest.c
37529
37530
37531 #include <linux/fs.h>
37532
37533int
37534main (void)
37535{
37536
837ca015 37537 mount_nodev(NULL, 0, NULL, NULL);
70e083d2
TG
37538
37539 ;
37540 return 0;
37541}
37542
37543_ACEOF
37544
37545
37546
37547cat - <<_ACEOF >conftest.h
37548
37549_ACEOF
37550
37551
37552 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37553 echo "obj-m := conftest.o" >build/Makefile
37554 modpost_flag=''
37555 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37556 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'
37557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37558 (eval $ac_try) 2>&5
37559 ac_status=$?
37560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37561 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37563 (eval $ac_try) 2>&5
37564 ac_status=$?
37565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37566 test $ac_status = 0; }; }; then :
37567 rc=0
37568else
37569 $as_echo "$as_me: failed program was:" >&5
37570sed 's/^/| /' conftest.$ac_ext >&5
37571 rc=1
37572
37573
37574fi
37575 rm -Rf build
37576
37577
37578 if test $rc -ne 0; then :
37579
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37581$as_echo "no" >&6; }
37582
37583 else
37584 if test "x$enable_linux_builtin" != xyes; then
37585
837ca015 37586 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
70e083d2
TG
37587 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37588 rc=$?
37589 if test $rc -ne 0; then
37590 export=0
837ca015
CIK
37591 for file in fs/super.c; do
37592 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
70e083d2
TG
37593 "$LINUX/$file" 2>/dev/null
37594 rc=$?
37595 if test $rc -eq 0; then
37596 export=1
37597 break;
37598 fi
37599 done
37600 if test $export -eq 0; then :
37601 rc=1
37602 else :
37603 rc=0
37604 fi
37605 else :
37606 rc=0
37607 fi
37608
37609 fi
37610 if test $rc -ne 0; then :
37611
37612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37613$as_echo "no" >&6; }
37614
37615 else :
37616
37617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37618$as_echo "yes" >&6; }
37619
837ca015 37620$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
70e083d2
TG
37621
37622
37623 fi
37624 fi
37625
37626
70e083d2 37627
837ca015
CIK
37628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37629$as_echo_n "checking whether super_block has s_shrink... " >&6; }
70e083d2
TG
37630
37631
37632cat confdefs.h - <<_ACEOF >conftest.c
37633
37634
837ca015
CIK
37635 #include <linux/fs.h>
37636
37637 int shrink(struct shrinker *s, struct shrink_control *sc)
37638 { return 0; }
37639
37640 static const struct super_block
37641 sb __attribute__ ((unused)) = {
37642 .s_shrink.shrink = shrink,
37643 .s_shrink.seeks = DEFAULT_SEEKS,
37644 .s_shrink.batch = 0,
37645 };
70e083d2
TG
37646
37647int
37648main (void)
37649{
37650
70e083d2
TG
37651
37652 ;
37653 return 0;
37654}
37655
37656_ACEOF
37657
37658
37659
37660cat - <<_ACEOF >conftest.h
37661
37662_ACEOF
37663
37664
37665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37666 echo "obj-m := conftest.o" >build/Makefile
37667 modpost_flag=''
37668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37669 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'
37670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37671 (eval $ac_try) 2>&5
37672 ac_status=$?
37673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37674 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37679 test $ac_status = 0; }; }; then :
70e083d2 37680
837ca015
CIK
37681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37682$as_echo "yes" >&6; }
70e083d2 37683
837ca015 37684$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
70e083d2 37685
837ca015
CIK
37686
37687
37688else
37689 $as_echo "$as_me: failed program was:" >&5
37690sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
37691
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37693$as_echo "no" >&6; }
37694
70e083d2 37695
70e083d2 37696
837ca015
CIK
37697fi
37698 rm -Rf build
70e083d2 37699
70e083d2
TG
37700
37701
37702
837ca015
CIK
37703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37704$as_echo_n "checking whether shrink_control has nid... " >&6; }
70e083d2
TG
37705
37706
37707cat confdefs.h - <<_ACEOF >conftest.c
37708
37709
837ca015 37710 #include <linux/fs.h>
70e083d2
TG
37711
37712int
37713main (void)
37714{
37715
837ca015
CIK
37716 struct shrink_control sc __attribute__ ((unused));
37717 unsigned long scnidsize __attribute__ ((unused)) =
37718 sizeof(sc.nid);
70e083d2
TG
37719
37720 ;
37721 return 0;
37722}
37723
37724_ACEOF
37725
37726
37727
37728cat - <<_ACEOF >conftest.h
37729
37730_ACEOF
37731
37732
37733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37734 echo "obj-m := conftest.o" >build/Makefile
37735 modpost_flag=''
37736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37737 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'
37738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37739 (eval $ac_try) 2>&5
37740 ac_status=$?
37741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37744 (eval $ac_try) 2>&5
37745 ac_status=$?
37746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37747 test $ac_status = 0; }; }; then :
37748
37749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37750$as_echo "yes" >&6; }
37751
837ca015 37752$as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
70e083d2
TG
37753
37754
37755else
37756 $as_echo "$as_me: failed program was:" >&5
37757sed 's/^/| /' conftest.$ac_ext >&5
37758
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37760$as_echo "no" >&6; }
37761
37762
37763
37764fi
37765 rm -Rf build
37766
37767
37768
37769
837ca015
CIK
37770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
37771$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
70e083d2
TG
37772
37773
37774cat confdefs.h - <<_ACEOF >conftest.c
37775
37776
837ca015 37777 #include <linux/fs.h>
70e083d2
TG
37778
37779int
37780main (void)
37781{
37782
837ca015 37783 struct super_block sb __attribute__ ((unused));
70e083d2 37784
837ca015 37785 INIT_LIST_HEAD(&sb.s_instances);
70e083d2
TG
37786
37787 ;
37788 return 0;
37789}
37790
37791_ACEOF
37792
37793
37794
37795cat - <<_ACEOF >conftest.h
37796
37797_ACEOF
37798
37799
37800 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37801 echo "obj-m := conftest.o" >build/Makefile
37802 modpost_flag=''
37803 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37804 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'
37805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37806 (eval $ac_try) 2>&5
37807 ac_status=$?
37808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37809 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37811 (eval $ac_try) 2>&5
37812 ac_status=$?
37813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37814 test $ac_status = 0; }; }; then :
37815
37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37817$as_echo "yes" >&6; }
37818
837ca015 37819$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
70e083d2
TG
37820
37821
37822else
37823 $as_echo "$as_me: failed program was:" >&5
37824sed 's/^/| /' conftest.$ac_ext >&5
37825
37826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37827$as_echo "no" >&6; }
37828
37829
37830
37831fi
37832 rm -Rf build
37833
37834
37835
837ca015
CIK
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
37837$as_echo_n "checking whether super_block has s_d_op... " >&6; }
70e083d2
TG
37838
37839
37840cat confdefs.h - <<_ACEOF >conftest.c
37841
37842
37843 #include <linux/fs.h>
37844
37845int
37846main (void)
37847{
37848
837ca015
CIK
37849 struct super_block sb __attribute__ ((unused));
37850 sb.s_d_op = NULL;
70e083d2
TG
37851
37852 ;
37853 return 0;
37854}
37855
37856_ACEOF
37857
37858
37859
37860cat - <<_ACEOF >conftest.h
37861
37862_ACEOF
37863
37864
37865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37866 echo "obj-m := conftest.o" >build/Makefile
37867 modpost_flag=''
37868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37869 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'
37870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37871 (eval $ac_try) 2>&5
37872 ac_status=$?
37873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37874 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37876 (eval $ac_try) 2>&5
37877 ac_status=$?
37878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37879 test $ac_status = 0; }; }; then :
70e083d2 37880
837ca015
CIK
37881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37882$as_echo "yes" >&6; }
70e083d2 37883
837ca015 37884$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
70e083d2 37885
70e083d2 37886
837ca015
CIK
37887else
37888 $as_echo "$as_me: failed program was:" >&5
37889sed 's/^/| /' conftest.$ac_ext >&5
70e083d2
TG
37890
37891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892$as_echo "no" >&6; }
37893
70e083d2 37894
70e083d2 37895
837ca015
CIK
37896fi
37897 rm -Rf build
70e083d2
TG
37898
37899
70e083d2
TG
37900
37901
837ca015
CIK
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
37903$as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
70e083d2 37904
70e083d2
TG
37905
37906
37907cat confdefs.h - <<_ACEOF >conftest.c
37908
37909
37910 #include <linux/fs.h>
837ca015 37911 struct super_block sb;
70e083d2
TG
37912
37913int
37914main (void)
37915{
37916
837ca015 37917 char *name = "bdi";
86e3c28a 37918 atomic_long_t zfs_bdi_seq;
837ca015 37919 int error __attribute__((unused)) =
86e3c28a 37920 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
70e083d2
TG
37921
37922 ;
37923 return 0;
37924}
37925
37926_ACEOF
37927
37928
37929
37930cat - <<_ACEOF >conftest.h
37931
37932_ACEOF
37933
37934
37935 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37936 echo "obj-m := conftest.o" >build/Makefile
37937 modpost_flag=''
37938 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37939 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'
37940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37941 (eval $ac_try) 2>&5
37942 ac_status=$?
37943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37944 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37946 (eval $ac_try) 2>&5
37947 ac_status=$?
37948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37949 test $ac_status = 0; }; }; then :
837ca015 37950 rc=0
70e083d2
TG
37951else
37952 $as_echo "$as_me: failed program was:" >&5
37953sed 's/^/| /' conftest.$ac_ext >&5
837ca015 37954 rc=1
70e083d2
TG
37955
37956
37957fi
37958 rm -Rf build
37959
37960
837ca015 37961 if test $rc -ne 0; then :
70e083d2 37962
837ca015
CIK
37963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37964$as_echo "no" >&6; }
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
37966$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
70e083d2 37967
70e083d2
TG
37968
37969
37970cat confdefs.h - <<_ACEOF >conftest.c
37971
37972
837ca015
CIK
37973 #include <linux/backing-dev.h>
37974 struct backing_dev_info bdi;
70e083d2
TG
37975
37976int
37977main (void)
37978{
37979
837ca015
CIK
37980 char *name = "bdi";
37981 int error __attribute__((unused)) =
37982 bdi_setup_and_register(&bdi, name);
70e083d2
TG
37983
37984 ;
37985 return 0;
37986}
37987
37988_ACEOF
37989
37990
37991
37992cat - <<_ACEOF >conftest.h
37993
37994_ACEOF
37995
37996
37997 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37998 echo "obj-m := conftest.o" >build/Makefile
37999 modpost_flag=''
38000 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38001 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'
38002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38003 (eval $ac_try) 2>&5
38004 ac_status=$?
38005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38006 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38008 (eval $ac_try) 2>&5
38009 ac_status=$?
38010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38011 test $ac_status = 0; }; }; then :
837ca015 38012 rc=0
70e083d2
TG
38013else
38014 $as_echo "$as_me: failed program was:" >&5
38015sed 's/^/| /' conftest.$ac_ext >&5
837ca015 38016 rc=1
70e083d2
TG
38017
38018
38019fi
38020 rm -Rf build
38021
38022
837ca015 38023 if test $rc -ne 0; then :
70e083d2 38024
837ca015
CIK
38025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38026$as_echo "no" >&6; }
38027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38028$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
70e083d2 38029
70e083d2
TG
38030
38031
38032cat confdefs.h - <<_ACEOF >conftest.c
38033
38034
837ca015
CIK
38035 #include <linux/backing-dev.h>
38036 struct backing_dev_info bdi;
70e083d2
TG
38037
38038int
38039main (void)
38040{
38041
837ca015
CIK
38042 char *name = "bdi";
38043 unsigned int cap = BDI_CAP_MAP_COPY;
38044 int error __attribute__((unused)) =
38045 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
38046
38047 ;
38048 return 0;
38049}
38050
38051_ACEOF
38052
38053
38054
38055cat - <<_ACEOF >conftest.h
38056
38057_ACEOF
38058
38059
38060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38061 echo "obj-m := conftest.o" >build/Makefile
38062 modpost_flag=''
38063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38064 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'
38065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38066 (eval $ac_try) 2>&5
38067 ac_status=$?
38068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38071 (eval $ac_try) 2>&5
38072 ac_status=$?
38073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38074 test $ac_status = 0; }; }; then :
837ca015
CIK
38075 rc=0
38076else
38077 $as_echo "$as_me: failed program was:" >&5
38078sed 's/^/| /' conftest.$ac_ext >&5
38079 rc=1
70e083d2 38080
70e083d2 38081
837ca015
CIK
38082fi
38083 rm -Rf build
70e083d2
TG
38084
38085
837ca015 38086 if test $rc -ne 0; then :
70e083d2 38087
837ca015 38088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
38089$as_echo "no" >&6; }
38090
837ca015
CIK
38091 else
38092 if test "x$enable_linux_builtin" != xyes; then
38093
38094 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38095 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38096 rc=$?
38097 if test $rc -ne 0; then
38098 export=0
38099 for file in mm/backing-dev.c; do
38100 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38101 "$LINUX/$file" 2>/dev/null
38102 rc=$?
38103 if test $rc -eq 0; then
38104 export=1
38105 break;
38106 fi
38107 done
38108 if test $export -eq 0; then :
38109 rc=1
38110 else :
38111 rc=0
38112 fi
38113 else :
38114 rc=0
38115 fi
70e083d2 38116
837ca015
CIK
38117 fi
38118 if test $rc -ne 0; then :
70e083d2 38119
837ca015
CIK
38120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38121$as_echo "no" >&6; }
38122
38123 else :
38124
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126$as_echo "yes" >&6; }
38127
38128$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38129
38130
38131 fi
38132 fi
38133
38134
38135 else
38136 if test "x$enable_linux_builtin" != xyes; then
38137
38138 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38139 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38140 rc=$?
38141 if test $rc -ne 0; then
38142 export=0
38143 for file in mm/backing-dev.c; do
38144 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38145 "$LINUX/$file" 2>/dev/null
38146 rc=$?
38147 if test $rc -eq 0; then
38148 export=1
38149 break;
38150 fi
38151 done
38152 if test $export -eq 0; then :
38153 rc=1
38154 else :
38155 rc=0
38156 fi
38157 else :
38158 rc=0
38159 fi
70e083d2 38160
837ca015
CIK
38161 fi
38162 if test $rc -ne 0; then :
70e083d2 38163
837ca015
CIK
38164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38165$as_echo "no" >&6; }
38166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38167$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
70e083d2 38168
70e083d2
TG
38169
38170
38171cat confdefs.h - <<_ACEOF >conftest.c
38172
38173
837ca015
CIK
38174 #include <linux/backing-dev.h>
38175 struct backing_dev_info bdi;
70e083d2
TG
38176
38177int
38178main (void)
38179{
38180
837ca015
CIK
38181 char *name = "bdi";
38182 unsigned int cap = BDI_CAP_MAP_COPY;
38183 int error __attribute__((unused)) =
38184 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
38185
38186 ;
38187 return 0;
38188}
38189
38190_ACEOF
38191
38192
38193
38194cat - <<_ACEOF >conftest.h
38195
38196_ACEOF
38197
38198
38199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38200 echo "obj-m := conftest.o" >build/Makefile
38201 modpost_flag=''
38202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38203 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'
38204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38205 (eval $ac_try) 2>&5
38206 ac_status=$?
38207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38208 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38210 (eval $ac_try) 2>&5
38211 ac_status=$?
38212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38213 test $ac_status = 0; }; }; then :
837ca015
CIK
38214 rc=0
38215else
38216 $as_echo "$as_me: failed program was:" >&5
38217sed 's/^/| /' conftest.$ac_ext >&5
38218 rc=1
70e083d2 38219
70e083d2 38220
837ca015
CIK
38221fi
38222 rm -Rf build
70e083d2
TG
38223
38224
837ca015 38225 if test $rc -ne 0; then :
70e083d2 38226
837ca015 38227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
38228$as_echo "no" >&6; }
38229
837ca015
CIK
38230 else
38231 if test "x$enable_linux_builtin" != xyes; then
38232
38233 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38235 rc=$?
38236 if test $rc -ne 0; then
38237 export=0
38238 for file in mm/backing-dev.c; do
38239 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38240 "$LINUX/$file" 2>/dev/null
38241 rc=$?
38242 if test $rc -eq 0; then
38243 export=1
38244 break;
38245 fi
38246 done
38247 if test $export -eq 0; then :
38248 rc=1
38249 else :
38250 rc=0
38251 fi
38252 else :
38253 rc=0
38254 fi
70e083d2 38255
837ca015
CIK
38256 fi
38257 if test $rc -ne 0; then :
70e083d2 38258
837ca015
CIK
38259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38260$as_echo "no" >&6; }
70e083d2 38261
837ca015
CIK
38262 else :
38263
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38265$as_echo "yes" >&6; }
38266
38267$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38268
38269
38270 fi
38271 fi
38272
38273
38274 else :
38275
38276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38277$as_echo "yes" >&6; }
70e083d2 38278
837ca015
CIK
38279$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38280
38281
38282 fi
38283 fi
38284
38285
38286 else
38287 if test "x$enable_linux_builtin" != xyes; then
38288
38289 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38290 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38291 rc=$?
38292 if test $rc -ne 0; then
38293 export=0
38294 for file in fs/super.c; do
38295 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38296 "$LINUX/$file" 2>/dev/null
38297 rc=$?
38298 if test $rc -eq 0; then
38299 export=1
38300 break;
38301 fi
38302 done
38303 if test $export -eq 0; then :
38304 rc=1
38305 else :
38306 rc=0
38307 fi
38308 else :
38309 rc=0
38310 fi
70e083d2 38311
837ca015
CIK
38312 fi
38313 if test $rc -ne 0; then :
70e083d2 38314
837ca015
CIK
38315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38316$as_echo "no" >&6; }
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
70e083d2
TG
38318$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38319
38320
38321
38322cat confdefs.h - <<_ACEOF >conftest.c
38323
38324
837ca015
CIK
38325 #include <linux/backing-dev.h>
38326 struct backing_dev_info bdi;
70e083d2
TG
38327
38328int
38329main (void)
38330{
38331
837ca015
CIK
38332 char *name = "bdi";
38333 int error __attribute__((unused)) =
38334 bdi_setup_and_register(&bdi, name);
70e083d2
TG
38335
38336 ;
38337 return 0;
38338}
38339
38340_ACEOF
38341
38342
38343
38344cat - <<_ACEOF >conftest.h
38345
38346_ACEOF
38347
38348
38349 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38350 echo "obj-m := conftest.o" >build/Makefile
38351 modpost_flag=''
38352 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38353 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'
38354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38355 (eval $ac_try) 2>&5
38356 ac_status=$?
38357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38358 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38360 (eval $ac_try) 2>&5
38361 ac_status=$?
38362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38363 test $ac_status = 0; }; }; then :
38364 rc=0
38365else
38366 $as_echo "$as_me: failed program was:" >&5
38367sed 's/^/| /' conftest.$ac_ext >&5
38368 rc=1
38369
38370
38371fi
38372 rm -Rf build
38373
38374
38375 if test $rc -ne 0; then :
38376
837ca015 38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2 38378$as_echo "no" >&6; }
837ca015 38379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
70e083d2
TG
38380$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38381
38382
38383
38384cat confdefs.h - <<_ACEOF >conftest.c
38385
38386
837ca015
CIK
38387 #include <linux/backing-dev.h>
38388 struct backing_dev_info bdi;
70e083d2
TG
38389
38390int
38391main (void)
38392{
38393
837ca015
CIK
38394 char *name = "bdi";
38395 unsigned int cap = BDI_CAP_MAP_COPY;
38396 int error __attribute__((unused)) =
38397 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
38398
38399 ;
38400 return 0;
38401}
38402
38403_ACEOF
38404
38405
38406
38407cat - <<_ACEOF >conftest.h
38408
38409_ACEOF
38410
38411
38412 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38413 echo "obj-m := conftest.o" >build/Makefile
38414 modpost_flag=''
38415 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38416 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'
38417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38418 (eval $ac_try) 2>&5
38419 ac_status=$?
38420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38421 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38423 (eval $ac_try) 2>&5
38424 ac_status=$?
38425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38426 test $ac_status = 0; }; }; then :
38427 rc=0
38428else
38429 $as_echo "$as_me: failed program was:" >&5
38430sed 's/^/| /' conftest.$ac_ext >&5
38431 rc=1
38432
38433
38434fi
38435 rm -Rf build
38436
38437
38438 if test $rc -ne 0; then :
38439
837ca015 38440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
38441$as_echo "no" >&6; }
38442
38443 else
38444 if test "x$enable_linux_builtin" != xyes; then
38445
38446 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38447 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38448 rc=$?
38449 if test $rc -ne 0; then
38450 export=0
38451 for file in mm/backing-dev.c; do
38452 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38453 "$LINUX/$file" 2>/dev/null
38454 rc=$?
38455 if test $rc -eq 0; then
38456 export=1
38457 break;
38458 fi
38459 done
38460 if test $export -eq 0; then :
38461 rc=1
38462 else :
38463 rc=0
38464 fi
38465 else :
38466 rc=0
38467 fi
38468
38469 fi
38470 if test $rc -ne 0; then :
38471
837ca015 38472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
38473$as_echo "no" >&6; }
38474
38475 else :
38476
837ca015 38477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
38478$as_echo "yes" >&6; }
38479
38480$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38481
38482
38483 fi
38484 fi
38485
38486
38487 else
38488 if test "x$enable_linux_builtin" != xyes; then
38489
38490 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38492 rc=$?
38493 if test $rc -ne 0; then
38494 export=0
38495 for file in mm/backing-dev.c; do
38496 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38497 "$LINUX/$file" 2>/dev/null
38498 rc=$?
38499 if test $rc -eq 0; then
38500 export=1
38501 break;
38502 fi
38503 done
38504 if test $export -eq 0; then :
38505 rc=1
38506 else :
38507 rc=0
38508 fi
38509 else :
38510 rc=0
38511 fi
38512
38513 fi
38514 if test $rc -ne 0; then :
38515
837ca015 38516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2 38517$as_echo "no" >&6; }
837ca015 38518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
70e083d2
TG
38519$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38520
38521
38522
38523cat confdefs.h - <<_ACEOF >conftest.c
38524
38525
837ca015
CIK
38526 #include <linux/backing-dev.h>
38527 struct backing_dev_info bdi;
70e083d2
TG
38528
38529int
38530main (void)
38531{
38532
837ca015
CIK
38533 char *name = "bdi";
38534 unsigned int cap = BDI_CAP_MAP_COPY;
38535 int error __attribute__((unused)) =
38536 bdi_setup_and_register(&bdi, name, cap);
70e083d2
TG
38537
38538 ;
38539 return 0;
38540}
38541
38542_ACEOF
38543
38544
38545
38546cat - <<_ACEOF >conftest.h
38547
38548_ACEOF
38549
38550
38551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38552 echo "obj-m := conftest.o" >build/Makefile
38553 modpost_flag=''
38554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38555 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'
38556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38557 (eval $ac_try) 2>&5
38558 ac_status=$?
38559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38560 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38562 (eval $ac_try) 2>&5
38563 ac_status=$?
38564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38565 test $ac_status = 0; }; }; then :
38566 rc=0
38567else
38568 $as_echo "$as_me: failed program was:" >&5
38569sed 's/^/| /' conftest.$ac_ext >&5
38570 rc=1
38571
38572
38573fi
38574 rm -Rf build
38575
38576
38577 if test $rc -ne 0; then :
38578
837ca015 38579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
38580$as_echo "no" >&6; }
38581
38582 else
38583 if test "x$enable_linux_builtin" != xyes; then
38584
38585 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38586 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38587 rc=$?
38588 if test $rc -ne 0; then
38589 export=0
38590 for file in mm/backing-dev.c; do
38591 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38592 "$LINUX/$file" 2>/dev/null
38593 rc=$?
38594 if test $rc -eq 0; then
38595 export=1
38596 break;
38597 fi
38598 done
38599 if test $export -eq 0; then :
38600 rc=1
38601 else :
38602 rc=0
38603 fi
38604 else :
38605 rc=0
38606 fi
38607
38608 fi
38609 if test $rc -ne 0; then :
38610
837ca015 38611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2
TG
38612$as_echo "no" >&6; }
38613
38614 else :
38615
837ca015 38616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
38617$as_echo "yes" >&6; }
38618
38619$as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38620
38621
38622 fi
38623 fi
38624
38625
38626 else :
38627
837ca015 38628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2
TG
38629$as_echo "yes" >&6; }
38630
38631$as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38632
38633
38634 fi
38635 fi
38636
38637
837ca015
CIK
38638 else :
38639
38640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38641$as_echo "yes" >&6; }
38642
38643$as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38644
38645
38646 fi
38647 fi
38648
38649
70e083d2
TG
38650
38651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38652$as_echo_n "checking whether set_nlink() is available... " >&6; }
38653
38654
38655cat confdefs.h - <<_ACEOF >conftest.c
38656
38657
38658 #include <linux/fs.h>
38659
38660int
38661main (void)
38662{
38663
38664 struct inode node;
38665 unsigned int link = 0;
38666 (void) set_nlink(&node, link);
38667
38668 ;
38669 return 0;
38670}
38671
38672_ACEOF
38673
38674
38675
38676cat - <<_ACEOF >conftest.h
38677
38678_ACEOF
38679
38680
38681 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38682 echo "obj-m := conftest.o" >build/Makefile
38683 modpost_flag=''
38684 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38685 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'
38686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38687 (eval $ac_try) 2>&5
38688 ac_status=$?
38689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38690 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38692 (eval $ac_try) 2>&5
38693 ac_status=$?
38694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38695 test $ac_status = 0; }; }; then :
38696
38697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38698$as_echo "yes" >&6; }
38699
38700$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38701
38702
38703else
38704 $as_echo "$as_me: failed program was:" >&5
38705sed 's/^/| /' conftest.$ac_ext >&5
38706
38707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38708$as_echo "no" >&6; }
38709
38710
38711
38712fi
38713 rm -Rf build
38714
38715
38716
38717
38718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38719$as_echo_n "checking whether elevator_change() is available... " >&6; }
38720 tmp_flags="$EXTRA_KCFLAGS"
38721 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
38722
38723
38724cat confdefs.h - <<_ACEOF >conftest.c
38725
38726
38727 #include <linux/blkdev.h>
38728 #include <linux/elevator.h>
38729
38730int
38731main (void)
38732{
38733
38734 int ret;
38735 struct request_queue *q = NULL;
38736 char *elevator = NULL;
38737 ret = elevator_change(q, elevator);
38738
38739 ;
38740 return 0;
38741}
38742
38743_ACEOF
38744
38745
38746
38747cat - <<_ACEOF >conftest.h
38748
38749_ACEOF
38750
38751
38752 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38753 echo "obj-m := conftest.o" >build/Makefile
38754 modpost_flag=''
38755 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38756 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'
38757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38758 (eval $ac_try) 2>&5
38759 ac_status=$?
38760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38761 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38763 (eval $ac_try) 2>&5
38764 ac_status=$?
38765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38766 test $ac_status = 0; }; }; then :
38767
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38769$as_echo "yes" >&6; }
38770
38771$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
38772
38773
38774else
38775 $as_echo "$as_me: failed program was:" >&5
38776sed 's/^/| /' conftest.$ac_ext >&5
38777
38778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38779$as_echo "no" >&6; }
38780
38781
38782
38783fi
38784 rm -Rf build
38785
38786
38787 EXTRA_KCFLAGS="$tmp_flags"
38788
38789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
38790$as_echo_n "checking whether sget() wants 5 args... " >&6; }
38791
38792
38793cat confdefs.h - <<_ACEOF >conftest.c
38794
38795
38796 #include <linux/fs.h>
38797
38798int
38799main (void)
38800{
38801
38802 struct file_system_type *type = NULL;
38803 int (*test)(struct super_block *,void *) = NULL;
38804 int (*set)(struct super_block *,void *) = NULL;
38805 int flags = 0;
38806 void *data = NULL;
38807 (void) sget(type, test, set, flags, data);
38808
38809 ;
38810 return 0;
38811}
38812
38813_ACEOF
38814
38815
38816
38817cat - <<_ACEOF >conftest.h
38818
38819_ACEOF
38820
38821
38822 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38823 echo "obj-m := conftest.o" >build/Makefile
38824 modpost_flag=''
38825 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38826 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'
38827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38828 (eval $ac_try) 2>&5
38829 ac_status=$?
38830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38831 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38833 (eval $ac_try) 2>&5
38834 ac_status=$?
38835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38836 test $ac_status = 0; }; }; then :
38837
38838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38839$as_echo "yes" >&6; }
38840
38841$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
38842
38843
38844else
38845 $as_echo "$as_me: failed program was:" >&5
38846sed 's/^/| /' conftest.$ac_ext >&5
38847
38848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38849$as_echo "no" >&6; }
38850
38851
38852
38853fi
38854 rm -Rf build
38855
38856
38857
38858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
38859$as_echo_n "checking whether lseek_execute() is available... " >&6; }
38860
38861
38862
38863cat confdefs.h - <<_ACEOF >conftest.c
38864
38865
38866 #include <linux/fs.h>
38867
38868int
38869main (void)
38870{
38871
38872 struct file *fp __attribute__ ((unused)) = NULL;
38873 struct inode *ip __attribute__ ((unused)) = NULL;
38874 loff_t offset __attribute__ ((unused)) = 0;
38875 loff_t maxsize __attribute__ ((unused)) = 0;
38876
38877 lseek_execute(fp, ip, offset, maxsize);
38878
38879 ;
38880 return 0;
38881}
38882
38883_ACEOF
38884
38885
38886
38887cat - <<_ACEOF >conftest.h
38888
38889_ACEOF
38890
38891
38892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38893 echo "obj-m := conftest.o" >build/Makefile
38894 modpost_flag=''
38895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38896 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'
38897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38898 (eval $ac_try) 2>&5
38899 ac_status=$?
38900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38901 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38903 (eval $ac_try) 2>&5
38904 ac_status=$?
38905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38906 test $ac_status = 0; }; }; then :
38907 rc=0
38908else
38909 $as_echo "$as_me: failed program was:" >&5
38910sed 's/^/| /' conftest.$ac_ext >&5
38911 rc=1
38912
38913
38914fi
38915 rm -Rf build
38916
38917
38918 if test $rc -ne 0; then :
38919
38920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38921$as_echo "no" >&6; }
38922
38923 else
38924 if test "x$enable_linux_builtin" != xyes; then
38925
38926 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
38927 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38928 rc=$?
38929 if test $rc -ne 0; then
38930 export=0
38931 for file in fs/read_write.c; do
38932 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
38933 "$LINUX/$file" 2>/dev/null
38934 rc=$?
38935 if test $rc -eq 0; then
38936 export=1
38937 break;
38938 fi
38939 done
38940 if test $export -eq 0; then :
38941 rc=1
38942 else :
38943 rc=0
38944 fi
38945 else :
38946 rc=0
38947 fi
38948
38949 fi
38950 if test $rc -ne 0; then :
38951
38952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38953$as_echo "no" >&6; }
38954
38955 else :
38956
38957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38958$as_echo "yes" >&6; }
38959
38960$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
38961
38962
38963 fi
38964 fi
38965
38966
38967
38968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
38969$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
38970
38971
38972cat confdefs.h - <<_ACEOF >conftest.c
38973
38974
38975 #include <linux/fs.h>
38976 int iterate(struct file *filp, struct dir_context * context)
38977 { return 0; }
38978
38979 static const struct file_operations fops
38980 __attribute__ ((unused)) = {
38981 .iterate_shared = iterate,
38982 };
38983
38984int
38985main (void)
38986{
38987
38988
38989 ;
38990 return 0;
38991}
38992
38993_ACEOF
38994
38995
38996
38997cat - <<_ACEOF >conftest.h
38998
38999_ACEOF
39000
39001
39002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39003 echo "obj-m := conftest.o" >build/Makefile
39004 modpost_flag=''
39005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39006 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'
39007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39008 (eval $ac_try) 2>&5
39009 ac_status=$?
39010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39011 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39013 (eval $ac_try) 2>&5
39014 ac_status=$?
39015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39016 test $ac_status = 0; }; }; then :
39017
39018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39019$as_echo "yes" >&6; }
39020
39021$as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39022
39023
39024else
39025 $as_echo "$as_me: failed program was:" >&5
39026sed 's/^/| /' conftest.$ac_ext >&5
39027
39028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39029$as_echo "no" >&6; }
39030
39031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39032$as_echo_n "checking whether fops->iterate() is available... " >&6; }
39033
39034
39035cat confdefs.h - <<_ACEOF >conftest.c
39036
39037
39038 #include <linux/fs.h>
39039 int iterate(struct file *filp, struct dir_context * context)
39040 { return 0; }
39041
39042 static const struct file_operations fops
39043 __attribute__ ((unused)) = {
39044 .iterate = iterate,
39045 };
39046
39047int
39048main (void)
39049{
39050
39051
39052 ;
39053 return 0;
39054}
39055
39056_ACEOF
39057
39058
39059
39060cat - <<_ACEOF >conftest.h
39061
39062_ACEOF
39063
39064
39065 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39066 echo "obj-m := conftest.o" >build/Makefile
39067 modpost_flag=''
39068 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39069 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'
39070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39071 (eval $ac_try) 2>&5
39072 ac_status=$?
39073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39074 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39076 (eval $ac_try) 2>&5
39077 ac_status=$?
39078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39079 test $ac_status = 0; }; }; then :
39080
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39082$as_echo "yes" >&6; }
39083
39084$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39085
39086
39087else
39088 $as_echo "$as_me: failed program was:" >&5
39089sed 's/^/| /' conftest.$ac_ext >&5
39090
39091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39092$as_echo "no" >&6; }
39093
39094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39095$as_echo_n "checking whether fops->readdir() is available... " >&6; }
39096
39097
39098cat confdefs.h - <<_ACEOF >conftest.c
39099
39100
39101 #include <linux/fs.h>
39102 int readdir(struct file *filp, void *entry, filldir_t func)
39103 { return 0; }
39104
39105 static const struct file_operations fops
39106 __attribute__ ((unused)) = {
39107 .readdir = readdir,
39108 };
39109
39110int
39111main (void)
39112{
39113
39114
39115 ;
39116 return 0;
39117}
39118
39119_ACEOF
39120
39121
39122
39123cat - <<_ACEOF >conftest.h
39124
39125_ACEOF
39126
39127
39128 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39129 echo "obj-m := conftest.o" >build/Makefile
39130 modpost_flag=''
39131 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39132 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'
39133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39134 (eval $ac_try) 2>&5
39135 ac_status=$?
39136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39137 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39139 (eval $ac_try) 2>&5
39140 ac_status=$?
39141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39142 test $ac_status = 0; }; }; then :
39143
39144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39145$as_echo "yes" >&6; }
39146
39147$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39148
39149
39150else
39151 $as_echo "$as_me: failed program was:" >&5
39152sed 's/^/| /' conftest.$ac_ext >&5
39153
39154 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
39155
39156
39157
39158fi
39159 rm -Rf build
39160
39161
39162
39163
39164
39165fi
39166 rm -Rf build
39167
39168
39169
39170
39171
39172fi
39173 rm -Rf build
39174
39175
39176
39177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39178$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39179
39180
39181cat confdefs.h - <<_ACEOF >conftest.c
39182
39183
39184 #include <linux/fs.h>
39185
39186 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39187 { return 0; }
39188 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39189 { return 0; }
39190
39191 static const struct file_operations
39192 fops __attribute__ ((unused)) = {
39193 .read_iter = test_read,
39194 .write_iter = test_write,
39195 };
39196
39197int
39198main (void)
39199{
39200
39201
39202 ;
39203 return 0;
39204}
39205
39206_ACEOF
39207
39208
39209
39210cat - <<_ACEOF >conftest.h
39211
39212_ACEOF
39213
39214
39215 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39216 echo "obj-m := conftest.o" >build/Makefile
39217 modpost_flag=''
39218 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39219 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'
39220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39221 (eval $ac_try) 2>&5
39222 ac_status=$?
39223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39224 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39226 (eval $ac_try) 2>&5
39227 ac_status=$?
39228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39229 test $ac_status = 0; }; }; then :
39230
39231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39232$as_echo "yes" >&6; }
39233
39234$as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39235
39236
9784fa9e
CIK
39237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39238$as_echo_n "checking whether new_sync_read() is available... " >&6; }
39239
39240
39241cat confdefs.h - <<_ACEOF >conftest.c
39242
39243
39244 #include <linux/fs.h>
39245
39246int
39247main (void)
39248{
39249
39250 new_sync_read(NULL, NULL, 0, NULL);
39251
39252 ;
39253 return 0;
39254}
39255
39256_ACEOF
39257
39258
39259
39260cat - <<_ACEOF >conftest.h
39261
39262_ACEOF
39263
39264
39265 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39266 echo "obj-m := conftest.o" >build/Makefile
39267 modpost_flag=''
39268 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39269 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'
39270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39274 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39276 (eval $ac_try) 2>&5
39277 ac_status=$?
39278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39279 test $ac_status = 0; }; }; then :
39280
39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39282$as_echo "yes" >&6; }
39283
39284$as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39285
39286
39287else
39288 $as_echo "$as_me: failed program was:" >&5
39289sed 's/^/| /' conftest.$ac_ext >&5
39290
39291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39292$as_echo "no" >&6; }
39293
39294
39295
39296fi
39297 rm -Rf build
39298
39299
39300
39301
70e083d2
TG
39302else
39303 $as_echo "$as_me: failed program was:" >&5
39304sed 's/^/| /' conftest.$ac_ext >&5
39305
39306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39307$as_echo "no" >&6; }
39308
39309
39310
39311fi
39312 rm -Rf build
39313
39314
39315
39316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39317$as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39318
39319
39320cat confdefs.h - <<_ACEOF >conftest.c
39321
39322
39323 #include <linux/fs.h>
39324
39325
39326int
39327main (void)
39328{
39329
39330 struct kiocb *iocb = NULL;
39331 struct iov_iter *iov = NULL;
39332 generic_write_checks(iocb, iov);
39333
39334 ;
39335 return 0;
39336}
39337
39338_ACEOF
39339
39340
39341
39342cat - <<_ACEOF >conftest.h
39343
39344_ACEOF
39345
39346
39347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39348 echo "obj-m := conftest.o" >build/Makefile
39349 modpost_flag=''
39350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39351 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'
39352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39353 (eval $ac_try) 2>&5
39354 ac_status=$?
39355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39356 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39358 (eval $ac_try) 2>&5
39359 ac_status=$?
39360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39361 test $ac_status = 0; }; }; then :
39362
39363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39364$as_echo "yes" >&6; }
39365
39366$as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39367
39368
39369else
39370 $as_echo "$as_me: failed program was:" >&5
39371sed 's/^/| /' conftest.$ac_ext >&5
39372
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39374$as_echo "no" >&6; }
39375
39376
39377
39378fi
39379 rm -Rf build
39380
39381
39382
39383
39384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39385$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39386
39387
39388cat confdefs.h - <<_ACEOF >conftest.c
39389
39390
39391 #include <linux/pagemap.h>
39392
39393int
39394main (void)
39395{
39396
39397 struct page page;
39398 kmap_atomic(&page);
39399
39400 ;
39401 return 0;
39402}
39403
39404_ACEOF
39405
39406
39407
39408cat - <<_ACEOF >conftest.h
39409
39410_ACEOF
39411
39412
39413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39414 echo "obj-m := conftest.o" >build/Makefile
39415 modpost_flag=''
39416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39417 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'
39418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39419 (eval $ac_try) 2>&5
39420 ac_status=$?
39421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39424 (eval $ac_try) 2>&5
39425 ac_status=$?
39426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39427 test $ac_status = 0; }; }; then :
39428
39429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39430$as_echo "yes" >&6; }
39431
39432$as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39433
39434
39435else
39436 $as_echo "$as_me: failed program was:" >&5
39437sed 's/^/| /' conftest.$ac_ext >&5
39438
39439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39440$as_echo "no" >&6; }
39441
39442
39443
39444fi
39445 rm -Rf build
39446
39447
39448
39449
39450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39451$as_echo_n "checking whether follow_down_one() is available... " >&6; }
39452
39453
39454cat confdefs.h - <<_ACEOF >conftest.c
39455
39456
39457 #include <linux/namei.h>
39458
39459int
39460main (void)
39461{
39462
39463 struct path *p = NULL;
39464 follow_down_one(p);
39465
39466 ;
39467 return 0;
39468}
39469
39470_ACEOF
39471
39472
39473
39474cat - <<_ACEOF >conftest.h
39475
39476_ACEOF
39477
39478
39479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39480 echo "obj-m := conftest.o" >build/Makefile
39481 modpost_flag=''
39482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39483 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'
39484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39485 (eval $ac_try) 2>&5
39486 ac_status=$?
39487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39490 (eval $ac_try) 2>&5
39491 ac_status=$?
39492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39493 test $ac_status = 0; }; }; then :
39494
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39496$as_echo "yes" >&6; }
39497
39498$as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39499
39500
39501else
39502 $as_echo "$as_me: failed program was:" >&5
39503sed 's/^/| /' conftest.$ac_ext >&5
39504
39505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39506$as_echo "no" >&6; }
39507
39508
39509
39510fi
39511 rm -Rf build
39512
39513
39514
39515
39516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39517$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39518
39519
39520cat confdefs.h - <<_ACEOF >conftest.c
39521
39522
39523 #include <linux/blkdev.h>
39524
39525 int make_request(struct request_queue *q, struct bio *bio)
39526 {
39527 return (0);
39528 }
39529
39530int
39531main (void)
39532{
39533
39534 blk_queue_make_request(NULL, &make_request);
39535
39536 ;
39537 return 0;
39538}
39539
39540_ACEOF
39541
39542
39543
39544cat - <<_ACEOF >conftest.h
39545
39546_ACEOF
39547
39548
39549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39550 echo "obj-m := conftest.o" >build/Makefile
39551 modpost_flag=''
39552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39553 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'
39554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39555 (eval $ac_try) 2>&5
39556 ac_status=$?
39557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39560 (eval $ac_try) 2>&5
39561 ac_status=$?
39562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39563 test $ac_status = 0; }; }; then :
39564
39565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39566$as_echo "yes" >&6; }
39567
39568$as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39569
39570
39571$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39572
39573
39574else
39575 $as_echo "$as_me: failed program was:" >&5
39576sed 's/^/| /' conftest.$ac_ext >&5
39577
39578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39579$as_echo "no" >&6; }
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39581$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39582
39583
39584cat confdefs.h - <<_ACEOF >conftest.c
39585
39586
39587 #include <linux/blkdev.h>
39588
39589 void make_request(struct request_queue *q, struct bio *bio)
39590 {
39591 return;
39592 }
39593
39594int
39595main (void)
39596{
39597
39598 blk_queue_make_request(NULL, &make_request);
39599
39600 ;
39601 return 0;
39602}
39603
39604_ACEOF
39605
39606
39607
39608cat - <<_ACEOF >conftest.h
39609
39610_ACEOF
39611
39612
39613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39614 echo "obj-m := conftest.o" >build/Makefile
39615 modpost_flag=''
39616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39617 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'
39618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39619 (eval $ac_try) 2>&5
39620 ac_status=$?
39621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39622 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39624 (eval $ac_try) 2>&5
39625 ac_status=$?
39626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39627 test $ac_status = 0; }; }; then :
39628
39629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39630$as_echo "yes" >&6; }
39631
39632$as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39633
39634
39635else
39636 $as_echo "$as_me: failed program was:" >&5
39637sed 's/^/| /' conftest.$ac_ext >&5
39638
39639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39640$as_echo "no" >&6; }
39641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39642$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39643
39644
39645cat confdefs.h - <<_ACEOF >conftest.c
39646
39647
39648 #include <linux/blkdev.h>
39649
39650 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39651 {
39652 return (BLK_QC_T_NONE);
39653 }
39654
39655int
39656main (void)
39657{
39658
39659 blk_queue_make_request(NULL, &make_request);
39660
39661 ;
39662 return 0;
39663}
39664
39665_ACEOF
39666
39667
39668
39669cat - <<_ACEOF >conftest.h
39670
39671_ACEOF
39672
39673
39674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39675 echo "obj-m := conftest.o" >build/Makefile
39676 modpost_flag=''
39677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39678 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'
39679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39680 (eval $ac_try) 2>&5
39681 ac_status=$?
39682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39685 (eval $ac_try) 2>&5
39686 ac_status=$?
39687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39688 test $ac_status = 0; }; }; then :
39689
39690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691$as_echo "yes" >&6; }
39692
39693$as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39694
39695
39696$as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39697
39698
39699else
39700 $as_echo "$as_me: failed program was:" >&5
39701sed 's/^/| /' conftest.$ac_ext >&5
39702
39703 as_fn_error $? "no - Please file a bug report at
39704 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39705
39706
39707
39708fi
39709 rm -Rf build
39710
39711
39712
39713
39714
39715fi
39716 rm -Rf build
39717
39718
39719
39720
39721
39722fi
39723 rm -Rf build
39724
39725
39726
39727
86e3c28a
CIK
39728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39729$as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
70e083d2
TG
39730
39731
39732
39733cat confdefs.h - <<_ACEOF >conftest.c
39734
39735
39736 #include <linux/bio.h>
39737
39738 void (*generic_start_io_acct_f)(int, unsigned long,
39739 struct hd_struct *) = &generic_start_io_acct;
39740 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39741 unsigned long) = &generic_end_io_acct;
39742
39743int
39744main (void)
39745{
39746
39747 generic_start_io_acct(0, 0, NULL);
39748 generic_end_io_acct(0, NULL, 0);
39749
39750 ;
39751 return 0;
39752}
39753
39754_ACEOF
39755
39756
39757
39758cat - <<_ACEOF >conftest.h
39759
39760_ACEOF
39761
39762
39763 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39764 echo "obj-m := conftest.o" >build/Makefile
39765 modpost_flag=''
39766 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39767 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'
39768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39769 (eval $ac_try) 2>&5
39770 ac_status=$?
39771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39772 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39774 (eval $ac_try) 2>&5
39775 ac_status=$?
39776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39777 test $ac_status = 0; }; }; then :
39778 rc=0
39779else
39780 $as_echo "$as_me: failed program was:" >&5
39781sed 's/^/| /' conftest.$ac_ext >&5
39782 rc=1
39783
39784
39785fi
39786 rm -Rf build
39787
39788
39789 if test $rc -ne 0; then :
39790
39791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39792$as_echo "no" >&6; }
39793
39794 else
39795 if test "x$enable_linux_builtin" != xyes; then
39796
39797 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
39798 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39799 rc=$?
39800 if test $rc -ne 0; then
39801 export=0
39802 for file in block/bio.c; do
39803 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
39804 "$LINUX/$file" 2>/dev/null
39805 rc=$?
39806 if test $rc -eq 0; then
39807 export=1
39808 break;
39809 fi
39810 done
39811 if test $export -eq 0; then :
39812 rc=1
39813 else :
39814 rc=0
39815 fi
39816 else :
39817 rc=0
39818 fi
39819
39820 fi
39821 if test $rc -ne 0; then :
39822
39823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39824$as_echo "no" >&6; }
39825
39826 else :
39827
39828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39829$as_echo "yes" >&6; }
39830
86e3c28a 39831$as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
70e083d2
TG
39832
39833
39834 fi
39835 fi
39836
39837
39838
86e3c28a
CIK
39839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
39840$as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
70e083d2
TG
39841
39842
70e083d2
TG
39843
39844cat confdefs.h - <<_ACEOF >conftest.c
39845
39846
86e3c28a 39847 #include <linux/bio.h>
837ca015 39848
86e3c28a
CIK
39849 void (*generic_start_io_acct_f)(struct request_queue *, int,
39850 unsigned long, struct hd_struct *) = &generic_start_io_acct;
39851 void (*generic_end_io_acct_f)(struct request_queue *, int,
39852 struct hd_struct *, unsigned long) = &generic_end_io_acct;
837ca015
CIK
39853
39854int
39855main (void)
39856{
39857
86e3c28a
CIK
39858 generic_start_io_acct(NULL, 0, 0, NULL);
39859 generic_end_io_acct(NULL, 0, NULL, 0);
837ca015
CIK
39860
39861 ;
39862 return 0;
39863}
39864
39865_ACEOF
39866
39867
39868
39869cat - <<_ACEOF >conftest.h
39870
39871_ACEOF
39872
39873
39874 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39875 echo "obj-m := conftest.o" >build/Makefile
39876 modpost_flag=''
39877 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39878 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'
39879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39880 (eval $ac_try) 2>&5
39881 ac_status=$?
39882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39883 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39885 (eval $ac_try) 2>&5
39886 ac_status=$?
39887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39888 test $ac_status = 0; }; }; then :
39889 rc=0
39890else
39891 $as_echo "$as_me: failed program was:" >&5
39892sed 's/^/| /' conftest.$ac_ext >&5
39893 rc=1
39894
39895
39896fi
39897 rm -Rf build
39898
39899
39900 if test $rc -ne 0; then :
39901
39902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39903$as_echo "no" >&6; }
39904
39905 else
39906 if test "x$enable_linux_builtin" != xyes; then
39907
86e3c28a 39908 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
837ca015
CIK
39909 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39910 rc=$?
39911 if test $rc -ne 0; then
39912 export=0
86e3c28a
CIK
39913 for file in block/bio.c; do
39914 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
837ca015
CIK
39915 "$LINUX/$file" 2>/dev/null
39916 rc=$?
39917 if test $rc -eq 0; then
39918 export=1
39919 break;
39920 fi
39921 done
39922 if test $export -eq 0; then :
39923 rc=1
39924 else :
39925 rc=0
39926 fi
39927 else :
39928 rc=0
39929 fi
39930
39931 fi
39932 if test $rc -ne 0; then :
39933
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39935$as_echo "no" >&6; }
39936
39937 else :
39938
39939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39940$as_echo "yes" >&6; }
39941
86e3c28a 39942$as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
837ca015
CIK
39943
39944
39945 fi
39946 fi
39947
39948
70e083d2 39949
86e3c28a
CIK
39950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
39951$as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
70e083d2
TG
39952
39953
86e3c28a 39954cat confdefs.h - <<_ACEOF >conftest.c
70e083d2 39955
70e083d2 39956
86e3c28a
CIK
39957 #include <linux/kernel.h>
39958 #include <asm/fpu/api.h>
70e083d2 39959
86e3c28a
CIK
39960int
39961main (void)
39962{
70e083d2 39963
86e3c28a 39964 __kernel_fpu_begin();
70e083d2 39965
86e3c28a
CIK
39966 ;
39967 return 0;
39968}
70e083d2 39969
86e3c28a 39970_ACEOF
70e083d2
TG
39971
39972
39973
86e3c28a 39974cat - <<_ACEOF >conftest.h
70e083d2 39975
86e3c28a 39976_ACEOF
70e083d2 39977
70e083d2 39978
86e3c28a
CIK
39979 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39980 echo "obj-m := conftest.o" >build/Makefile
39981 modpost_flag=''
39982 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39983 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'
39984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39985 (eval $ac_try) 2>&5
39986 ac_status=$?
39987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39988 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39990 (eval $ac_try) 2>&5
39991 ac_status=$?
39992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39993 test $ac_status = 0; }; }; then :
70e083d2 39994
86e3c28a
CIK
39995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39996$as_echo "yes" >&6; }
70e083d2 39997
86e3c28a 39998$as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
70e083d2 39999
70e083d2 40000
70e083d2 40001else
86e3c28a
CIK
40002 $as_echo "$as_me: failed program was:" >&5
40003sed 's/^/| /' conftest.$ac_ext >&5
70e083d2 40004
86e3c28a
CIK
40005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40006$as_echo "no" >&6; }
70e083d2 40007
70e083d2 40008
70e083d2
TG
40009
40010fi
86e3c28a 40011 rm -Rf build
70e083d2
TG
40012
40013
70e083d2 40014
70e083d2 40015
86e3c28a
CIK
40016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40017$as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
70e083d2 40018
70e083d2 40019
86e3c28a 40020cat confdefs.h - <<_ACEOF >conftest.c
70e083d2
TG
40021
40022
86e3c28a 40023 #include <linux/fs.h>
70e083d2 40024
70e083d2 40025int
86e3c28a 40026main (void)
70e083d2 40027{
70e083d2 40028
86e3c28a
CIK
40029 struct inode *ip = NULL;
40030 (void) i_uid_read(ip);
70e083d2 40031
70e083d2
TG
40032 ;
40033 return 0;
40034}
86e3c28a 40035
70e083d2
TG
40036_ACEOF
40037
70e083d2 40038
70e083d2 40039
86e3c28a 40040cat - <<_ACEOF >conftest.h
70e083d2 40041
70e083d2
TG
40042_ACEOF
40043
70e083d2 40044
86e3c28a
CIK
40045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40046 echo "obj-m := conftest.o" >build/Makefile
40047 modpost_flag=''
40048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40049 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'
40050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40051 (eval $ac_try) 2>&5
40052 ac_status=$?
40053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40054 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40056 (eval $ac_try) 2>&5
40057 ac_status=$?
40058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40059 test $ac_status = 0; }; }; then :
40060
40061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40062$as_echo "yes" >&6; }
40063
40064$as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
70e083d2
TG
40065
40066
86e3c28a
CIK
40067else
40068 $as_echo "$as_me: failed program was:" >&5
40069sed 's/^/| /' conftest.$ac_ext >&5
70e083d2 40070
86e3c28a
CIK
40071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40072$as_echo "no" >&6; }
70e083d2 40073
70e083d2
TG
40074
40075
86e3c28a
CIK
40076fi
40077 rm -Rf build
70e083d2 40078
70e083d2 40079
70e083d2 40080
70e083d2 40081
86e3c28a
CIK
40082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40083$as_echo_n "checking whether module_param_call() is hardened... " >&6; }
70e083d2
TG
40084
40085
86e3c28a 40086cat confdefs.h - <<_ACEOF >conftest.c
70e083d2 40087
70e083d2 40088
86e3c28a
CIK
40089 #include <linux/module.h>
40090 #include <linux/moduleparam.h>
70e083d2 40091
86e3c28a
CIK
40092 int param_get(char *b, const struct kernel_param *kp)
40093 {
40094 return (0);
40095 }
70e083d2 40096
86e3c28a
CIK
40097 int param_set(const char *b, const struct kernel_param *kp)
40098 {
40099 return (0);
40100 }
70e083d2 40101
86e3c28a 40102 module_param_call(p, param_set, param_get, NULL, 0644);
70e083d2 40103
70e083d2 40104int
86e3c28a 40105main (void)
70e083d2 40106{
86e3c28a
CIK
40107
40108
70e083d2
TG
40109 ;
40110 return 0;
40111}
86e3c28a 40112
70e083d2
TG
40113_ACEOF
40114
70e083d2 40115
70e083d2 40116
86e3c28a 40117cat - <<_ACEOF >conftest.h
70e083d2 40118
86e3c28a 40119_ACEOF
70e083d2
TG
40120
40121
86e3c28a
CIK
40122 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40123 echo "obj-m := conftest.o" >build/Makefile
40124 modpost_flag=''
40125 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40126 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'
40127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40128 (eval $ac_try) 2>&5
40129 ac_status=$?
40130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40131 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40133 (eval $ac_try) 2>&5
40134 ac_status=$?
40135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40136 test $ac_status = 0; }; }; then :
70e083d2 40137
86e3c28a
CIK
40138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40139$as_echo "yes" >&6; }
70e083d2 40140
86e3c28a 40141$as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
70e083d2
TG
40142
40143
70e083d2 40144else
86e3c28a
CIK
40145 $as_echo "$as_me: failed program was:" >&5
40146sed 's/^/| /' conftest.$ac_ext >&5
40147
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40149$as_echo "no" >&6; }
40150
40151
40152
70e083d2 40153fi
86e3c28a 40154 rm -Rf build
70e083d2
TG
40155
40156
70e083d2 40157
70e083d2 40158
86e3c28a
CIK
40159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40160$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
70e083d2 40161
70e083d2 40162
86e3c28a 40163cat confdefs.h - <<_ACEOF >conftest.c
70e083d2 40164
70e083d2 40165
86e3c28a
CIK
40166 #include <linux/fs.h>
40167 int rename_fn(struct inode *sip, struct dentry *sdp,
40168 struct inode *tip, struct dentry *tdp,
40169 unsigned int flags) { return 0; }
70e083d2 40170
86e3c28a
CIK
40171 static const struct inode_operations
40172 iops __attribute__ ((unused)) = {
40173 .rename = rename_fn,
40174 };
70e083d2 40175
70e083d2 40176int
86e3c28a 40177main (void)
70e083d2 40178{
86e3c28a
CIK
40179
40180
70e083d2
TG
40181 ;
40182 return 0;
40183}
70e083d2 40184
86e3c28a 40185_ACEOF
70e083d2 40186
70e083d2 40187
70e083d2 40188
86e3c28a 40189cat - <<_ACEOF >conftest.h
70e083d2 40190
86e3c28a 40191_ACEOF
70e083d2 40192
70e083d2 40193
86e3c28a
CIK
40194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40195 echo "obj-m := conftest.o" >build/Makefile
40196 modpost_flag=''
40197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40198 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'
40199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40200 (eval $ac_try) 2>&5
40201 ac_status=$?
40202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40203 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40205 (eval $ac_try) 2>&5
40206 ac_status=$?
40207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40208 test $ac_status = 0; }; }; then :
70e083d2 40209
86e3c28a 40210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70e083d2 40211$as_echo "yes" >&6; }
70e083d2 40212
86e3c28a 40213$as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
70e083d2
TG
40214
40215
40216else
86e3c28a
CIK
40217 $as_echo "$as_me: failed program was:" >&5
40218sed 's/^/| /' conftest.$ac_ext >&5
70e083d2 40219
86e3c28a 40220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70e083d2 40221$as_echo "no" >&6; }
70e083d2 40222
70e083d2
TG
40223
40224
70e083d2 40225fi
86e3c28a 40226 rm -Rf build
70e083d2
TG
40227
40228
70e083d2
TG
40229
40230
86e3c28a
CIK
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40232$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
70e083d2
TG
40233
40234
86e3c28a 40235cat confdefs.h - <<_ACEOF >conftest.c
70e083d2 40236
70e083d2 40237
86e3c28a
CIK
40238 #include <linux/fs.h>
40239 #include <linux/xattr.h>
40240
40241 static const struct inode_operations
40242 iops __attribute__ ((unused)) = {
40243 .setxattr = generic_setxattr
40244 };
70e083d2
TG
40245
40246int
86e3c28a 40247main (void)
70e083d2
TG
40248{
40249
86e3c28a 40250
70e083d2
TG
40251 ;
40252 return 0;
40253}
86e3c28a 40254
70e083d2 40255_ACEOF
70e083d2 40256
86e3c28a
CIK
40257
40258
40259cat - <<_ACEOF >conftest.h
40260
40261_ACEOF
40262
40263
40264 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40265 echo "obj-m := conftest.o" >build/Makefile
40266 modpost_flag=''
40267 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40268 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'
40269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40270 (eval $ac_try) 2>&5
40271 ac_status=$?
40272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40273 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40275 (eval $ac_try) 2>&5
40276 ac_status=$?
40277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40278 test $ac_status = 0; }; }; then :
40279
70e083d2
TG
40280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40281$as_echo "yes" >&6; }
40282
86e3c28a
CIK
40283$as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40284
40285
70e083d2 40286else
86e3c28a
CIK
40287 $as_echo "$as_me: failed program was:" >&5
40288sed 's/^/| /' conftest.$ac_ext >&5
70e083d2 40289
70e083d2
TG
40290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40291$as_echo "no" >&6; }
40292
86e3c28a
CIK
40293
40294
70e083d2 40295fi
86e3c28a 40296 rm -Rf build
70e083d2 40297
70e083d2
TG
40298
40299
86e3c28a
CIK
40300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40301$as_echo_n "checking whether current_time() exists... " >&6; }
70e083d2 40302
70e083d2 40303
70e083d2 40304
86e3c28a 40305cat confdefs.h - <<_ACEOF >conftest.c
43c96d9a 40306
43c96d9a 40307
86e3c28a 40308 #include <linux/fs.h>
43c96d9a
CIK
40309
40310int
86e3c28a 40311main (void)
43c96d9a
CIK
40312{
40313
86e3c28a
CIK
40314 struct inode ip;
40315 struct timespec now __attribute__ ((unused));
40316
40317 now = current_time(&ip);
43c96d9a
CIK
40318
40319 ;
40320 return 0;
40321}
86e3c28a 40322
43c96d9a 40323_ACEOF
43c96d9a 40324
43c96d9a 40325
86e3c28a
CIK
40326
40327cat - <<_ACEOF >conftest.h
40328
40329_ACEOF
43c96d9a
CIK
40330
40331
86e3c28a
CIK
40332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40333 echo "obj-m := conftest.o" >build/Makefile
40334 modpost_flag=''
40335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40336 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'
40337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40338 (eval $ac_try) 2>&5
40339 ac_status=$?
40340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40343 (eval $ac_try) 2>&5
40344 ac_status=$?
40345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40346 test $ac_status = 0; }; }; then :
40347 rc=0
43c96d9a 40348else
86e3c28a
CIK
40349 $as_echo "$as_me: failed program was:" >&5
40350sed 's/^/| /' conftest.$ac_ext >&5
40351 rc=1
43c96d9a 40352
43c96d9a
CIK
40353
40354fi
86e3c28a 40355 rm -Rf build
43c96d9a
CIK
40356
40357
86e3c28a 40358 if test $rc -ne 0; then :
43c96d9a 40359
86e3c28a
CIK
40360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40361$as_echo "no" >&6; }
43c96d9a 40362
86e3c28a
CIK
40363 else
40364 if test "x$enable_linux_builtin" != xyes; then
43c96d9a 40365
86e3c28a
CIK
40366 grep -q -E '[[:space:]]current_time[[:space:]]' \
40367 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
40368 rc=$?
40369 if test $rc -ne 0; then
40370 export=0
40371 for file in fs/inode.c; do
40372 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40373 "$LINUX/$file" 2>/dev/null
40374 rc=$?
40375 if test $rc -eq 0; then
40376 export=1
40377 break;
40378 fi
40379 done
40380 if test $export -eq 0; then :
40381 rc=1
40382 else :
40383 rc=0
40384 fi
40385 else :
40386 rc=0
40387 fi
43c96d9a 40388
86e3c28a
CIK
40389 fi
40390 if test $rc -ne 0; then :
40391
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40393$as_echo "no" >&6; }
40394
40395 else :
43c96d9a
CIK
40396
40397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40398$as_echo "yes" >&6; }
40399
86e3c28a 40400$as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
43c96d9a
CIK
40401
40402
86e3c28a
CIK
40403 fi
40404 fi
43c96d9a 40405
43c96d9a 40406
43c96d9a 40407
86e3c28a
CIK
40408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40409$as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
43c96d9a 40410
43c96d9a 40411
86e3c28a 40412cat confdefs.h - <<_ACEOF >conftest.c
43c96d9a 40413
86e3c28a
CIK
40414
40415 #include <linux/mm.h>
40416 #include <linux/vmstat.h>
43c96d9a
CIK
40417
40418int
86e3c28a 40419main (void)
43c96d9a
CIK
40420{
40421
86e3c28a
CIK
40422 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40423 long x __attribute__ ((unused)) =
40424 atomic_long_read(&vm_node_stat[0]);
40425 (void) global_node_page_state(0);
40426
43c96d9a
CIK
40427 ;
40428 return 0;
40429}
86e3c28a 40430
43c96d9a 40431_ACEOF
43c96d9a 40432
86e3c28a
CIK
40433
40434
40435cat - <<_ACEOF >conftest.h
40436
40437_ACEOF
40438
40439
40440 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40441 echo "obj-m := conftest.o" >build/Makefile
40442 modpost_flag=''
40443 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40444 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'
40445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40446 (eval $ac_try) 2>&5
40447 ac_status=$?
40448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40449 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40451 (eval $ac_try) 2>&5
40452 ac_status=$?
40453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40454 test $ac_status = 0; }; }; then :
40455
43c96d9a
CIK
40456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40457$as_echo "yes" >&6; }
40458
86e3c28a
CIK
40459$as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40460
40461
43c96d9a 40462else
86e3c28a
CIK
40463 $as_echo "$as_me: failed program was:" >&5
40464sed 's/^/| /' conftest.$ac_ext >&5
43c96d9a 40465
43c96d9a
CIK
40466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40467$as_echo "no" >&6; }
40468
86e3c28a
CIK
40469
40470
43c96d9a 40471fi
86e3c28a 40472 rm -Rf build
43c96d9a 40473
43c96d9a
CIK
40474
40475
86e3c28a
CIK
40476
40477 if test "$LINUX_OBJ" != "$LINUX"; then :
40478
40479 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
70e083d2
TG
40480
40481fi
70e083d2 40482
86e3c28a
CIK
40483
40484
40485 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
40486 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40487 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40488 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40489 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40490 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40491
40492
40493 ;;
70e083d2
TG
40494 srpm) ;;
40495 *)
40496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40497$as_echo "Error!" >&6; }
40498 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
40499 user kernel|user|all|srpm" "$LINENO" 5 ;;
40500 esac
40501
40502 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
40503 CONFIG_USER_TRUE=
40504 CONFIG_USER_FALSE='#'
40505else
40506 CONFIG_USER_TRUE='#'
40507 CONFIG_USER_FALSE=
40508fi
40509
40510 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
86e3c28a 40511 test "x$enable_linux_builtin" != xyes ; then
70e083d2
TG
40512 CONFIG_KERNEL_TRUE=
40513 CONFIG_KERNEL_FALSE='#'
40514else
40515 CONFIG_KERNEL_TRUE='#'
40516 CONFIG_KERNEL_FALSE=
40517fi
40518
86e3c28a
CIK
40519 if test "x$user_libudev" = xyes ; then
40520 WANT_DEVNAME2DEVID_TRUE=
40521 WANT_DEVNAME2DEVID_FALSE='#'
40522else
40523 WANT_DEVNAME2DEVID_TRUE='#'
40524 WANT_DEVNAME2DEVID_FALSE=
40525fi
40526
40527 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
40528 test "x$qatsrc" != x ; then
40529 CONFIG_QAT_TRUE=
40530 CONFIG_QAT_FALSE='#'
40531else
40532 CONFIG_QAT_TRUE='#'
40533 CONFIG_QAT_FALSE=
40534fi
40535
70e083d2
TG
40536
40537
40538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40539$as_echo_n "checking whether debugging is enabled... " >&6; }
40540 # Check whether --enable-debug was given.
40541if test "${enable_debug+set}" = set; then :
40542 enableval=$enable_debug;
40543else
40544 enable_debug=no
40545fi
40546
40547
40548 if test "x$enable_debug" = xyes; then :
40549
40550 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
40551 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
40552 DEBUG_CFLAGS="-DDEBUG -Werror"
40553 DEBUG_STACKFLAGS="-fstack-check"
40554 DEBUG_ZFS="_with_debug"
40555
40556$as_echo "#define ZFS_DEBUG 1" >>confdefs.h
40557
40558
40559else
40560
40561 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
40562 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
40563 DEBUG_CFLAGS="-DNDEBUG"
40564 DEBUG_STACKFLAGS=""
40565 DEBUG_ZFS="_without_debug"
40566
40567fi
40568
40569
40570
40571
40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
40573$as_echo "$enable_debug" >&6; }
40574
40575
86e3c28a 40576ac_config_files="$ac_config_files Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile module/icp/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile include/sys/crypto/Makefile include/sys/sysevent/Makefile zfs.release"
70e083d2 40577
70e083d2
TG
40578
40579
40580cat >confcache <<\_ACEOF
40581# This file is a shell script that caches the results of configure
40582# tests run on this system so they can be shared between configure
40583# scripts and configure runs, see configure's option --config-cache.
40584# It is not useful on other systems. If it contains results you don't
40585# want to keep, you may remove or edit it.
40586#
40587# config.status only pays attention to the cache file if you give it
40588# the --recheck option to rerun configure.
40589#
40590# `ac_cv_env_foo' variables (set or unset) will be overridden when
40591# loading this file, other *unset* `ac_cv_foo' will be assigned the
40592# following values.
40593
40594_ACEOF
40595
40596# The following way of writing the cache mishandles newlines in values,
40597# but we know of no workaround that is simple, portable, and efficient.
40598# So, we kill variables containing newlines.
40599# Ultrix sh set writes to stderr and can't be redirected directly,
40600# and sets the high bit in the cache file unless we assign to the vars.
40601(
40602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40603 eval ac_val=\$$ac_var
40604 case $ac_val in #(
40605 *${as_nl}*)
40606 case $ac_var in #(
40607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40609 esac
40610 case $ac_var in #(
40611 _ | IFS | as_nl) ;; #(
40612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40613 *) { eval $ac_var=; unset $ac_var;} ;;
40614 esac ;;
40615 esac
40616 done
40617
40618 (set) 2>&1 |
40619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40620 *${as_nl}ac_space=\ *)
40621 # `set' does not quote correctly, so add quotes: double-quote
40622 # substitution turns \\\\ into \\, and sed turns \\ into \.
40623 sed -n \
40624 "s/'/'\\\\''/g;
40625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40626 ;; #(
40627 *)
40628 # `set' quotes correctly as required by POSIX, so do not add quotes.
40629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40630 ;;
40631 esac |
40632 sort
40633) |
40634 sed '
40635 /^ac_cv_env_/b end
40636 t clear
40637 :clear
40638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40639 t end
40640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40641 :end' >>confcache
40642if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40643 if test -w "$cache_file"; then
40644 if test "x$cache_file" != "x/dev/null"; then
40645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40646$as_echo "$as_me: updating cache $cache_file" >&6;}
40647 if test ! -f "$cache_file" || test -h "$cache_file"; then
40648 cat confcache >"$cache_file"
40649 else
40650 case $cache_file in #(
40651 */* | ?:*)
40652 mv -f confcache "$cache_file"$$ &&
40653 mv -f "$cache_file"$$ "$cache_file" ;; #(
40654 *)
40655 mv -f confcache "$cache_file" ;;
40656 esac
40657 fi
40658 fi
40659 else
40660 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40661$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40662 fi
40663fi
40664rm -f confcache
40665
40666test "x$prefix" = xNONE && prefix=$ac_default_prefix
40667# Let make expand exec_prefix.
40668test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40669
40670DEFS=-DHAVE_CONFIG_H
40671
40672ac_libobjs=
40673ac_ltlibobjs=
40674U=
40675for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40676 # 1. Remove the extension, and $U if already installed.
40677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40680 # will be set to the directory where LIBOBJS objects are built.
40681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40683done
40684LIBOBJS=$ac_libobjs
40685
40686LTLIBOBJS=$ac_ltlibobjs
40687
40688
40689if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
40690 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
40691Usually this means the macro was only invoked conditionally." "$LINENO" 5
40692fi
40693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40694$as_echo_n "checking that generated files are newer than configure... " >&6; }
40695 if test -n "$am_sleep_pid"; then
40696 # Hide warnings about reused PIDs.
40697 wait $am_sleep_pid 2>/dev/null
40698 fi
40699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
40700$as_echo "done" >&6; }
40701 if test -n "$EXEEXT"; then
40702 am__EXEEXT_TRUE=
40703 am__EXEEXT_FALSE='#'
40704else
40705 am__EXEEXT_TRUE='#'
40706 am__EXEEXT_FALSE=
40707fi
40708
40709if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40710 as_fn_error $? "conditional \"AMDEP\" was never defined.
40711Usually this means the macro was only invoked conditionally." "$LINENO" 5
40712fi
40713if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40714 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
40715Usually this means the macro was only invoked conditionally." "$LINENO" 5
40716fi
40717if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
40718 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
40719Usually this means the macro was only invoked conditionally." "$LINENO" 5
40720fi
86e3c28a
CIK
40721if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
40722 as_fn_error $? "conditional \"TARGET_ASM_X86_64\" was never defined.
40723Usually this means the macro was only invoked conditionally." "$LINENO" 5
40724fi
40725if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
40726 as_fn_error $? "conditional \"TARGET_ASM_I386\" was never defined.
40727Usually this means the macro was only invoked conditionally." "$LINENO" 5
40728fi
40729if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
40730 as_fn_error $? "conditional \"TARGET_ASM_GENERIC\" was never defined.
40731Usually this means the macro was only invoked conditionally." "$LINENO" 5
40732fi
70e083d2
TG
40733if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
40734 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
40735Usually this means the macro was only invoked conditionally." "$LINENO" 5
40736fi
40737if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
40738 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
40739Usually this means the macro was only invoked conditionally." "$LINENO" 5
40740fi
86e3c28a
CIK
40741if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
40742 as_fn_error $? "conditional \"WANT_DEVNAME2DEVID\" was never defined.
40743Usually this means the macro was only invoked conditionally." "$LINENO" 5
40744fi
40745if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
40746 as_fn_error $? "conditional \"CONFIG_QAT\" was never defined.
40747Usually this means the macro was only invoked conditionally." "$LINENO" 5
40748fi
70e083d2
TG
40749
40750: "${CONFIG_STATUS=./config.status}"
40751ac_write_fail=0
40752ac_clean_files_save=$ac_clean_files
40753ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40754{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
40755$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
40756as_write_fail=0
40757cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
40758#! $SHELL
40759# Generated by $as_me.
40760# Run this file to recreate the current configuration.
40761# Compiler output produced by configure, useful for debugging
40762# configure, is in config.log if it exists.
40763
40764debug=false
40765ac_cs_recheck=false
40766ac_cs_silent=false
40767
40768SHELL=\${CONFIG_SHELL-$SHELL}
40769export SHELL
40770_ASEOF
40771cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
40772## -------------------- ##
40773## M4sh Initialization. ##
40774## -------------------- ##
40775
40776# Be more Bourne compatible
40777DUALCASE=1; export DUALCASE # for MKS sh
40778if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40779 emulate sh
40780 NULLCMD=:
40781 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
40782 # is contrary to our usage. Disable this feature.
40783 alias -g '${1+"$@"}'='"$@"'
40784 setopt NO_GLOB_SUBST
40785else
40786 case `(set -o) 2>/dev/null` in #(
40787 *posix*) :
40788 set -o posix ;; #(
40789 *) :
40790 ;;
40791esac
40792fi
40793
40794
40795as_nl='
40796'
40797export as_nl
40798# Printing a long string crashes Solaris 7 /usr/bin/printf.
40799as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40800as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40801as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40802# Prefer a ksh shell builtin over an external printf program on Solaris,
40803# but without wasting forks for bash or zsh.
40804if test -z "$BASH_VERSION$ZSH_VERSION" \
40805 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40806 as_echo='print -r --'
40807 as_echo_n='print -rn --'
40808elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40809 as_echo='printf %s\n'
40810 as_echo_n='printf %s'
40811else
40812 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40813 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
40814 as_echo_n='/usr/ucb/echo -n'
40815 else
40816 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40817 as_echo_n_body='eval
40818 arg=$1;
40819 case $arg in #(
40820 *"$as_nl"*)
40821 expr "X$arg" : "X\\(.*\\)$as_nl";
40822 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40823 esac;
40824 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
40825 '
40826 export as_echo_n_body
40827 as_echo_n='sh -c $as_echo_n_body as_echo'
40828 fi
40829 export as_echo_body
40830 as_echo='sh -c $as_echo_body as_echo'
40831fi
40832
40833# The user is always right.
40834if test "${PATH_SEPARATOR+set}" != set; then
40835 PATH_SEPARATOR=:
40836 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
40837 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
40838 PATH_SEPARATOR=';'
40839 }
40840fi
40841
40842
40843# IFS
40844# We need space, tab and new line, in precisely that order. Quoting is
40845# there to prevent editors from complaining about space-tab.
40846# (If _AS_PATH_WALK were called with IFS unset, it would disable word
40847# splitting by setting IFS to empty value.)
40848IFS=" "" $as_nl"
40849
40850# Find who we are. Look in the path if we contain no directory separator.
40851as_myself=
40852case $0 in #((
40853 *[\\/]* ) as_myself=$0 ;;
40854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40855for as_dir in $PATH
40856do
40857 IFS=$as_save_IFS
40858 test -z "$as_dir" && as_dir=.
40859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40860 done
40861IFS=$as_save_IFS
40862
40863 ;;
40864esac
40865# We did not find ourselves, most probably we were run as `sh COMMAND'
40866# in which case we are not to be found in the path.
40867if test "x$as_myself" = x; then
40868 as_myself=$0
40869fi
40870if test ! -f "$as_myself"; then
40871 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40872 exit 1
40873fi
40874
40875# Unset variables that we do not need and which cause bugs (e.g. in
40876# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
40877# suppresses any "Segmentation fault" message there. '((' could
40878# trigger a bug in pdksh 5.2.14.
40879for as_var in BASH_ENV ENV MAIL MAILPATH
40880do eval test x\${$as_var+set} = xset \
40881 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40882done
40883PS1='$ '
40884PS2='> '
40885PS4='+ '
40886
40887# NLS nuisances.
40888LC_ALL=C
40889export LC_ALL
40890LANGUAGE=C
40891export LANGUAGE
40892
40893# CDPATH.
40894(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40895
40896
40897# as_fn_error STATUS ERROR [LINENO LOG_FD]
40898# ----------------------------------------
40899# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40900# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40901# script with STATUS, using 1 if that was 0.
40902as_fn_error ()
40903{
40904 as_status=$1; test $as_status -eq 0 && as_status=1
40905 if test "$4"; then
40906 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
40907 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40908 fi
40909 $as_echo "$as_me: error: $2" >&2
40910 as_fn_exit $as_status
40911} # as_fn_error
40912
40913
40914# as_fn_set_status STATUS
40915# -----------------------
40916# Set $? to STATUS, without forking.
40917as_fn_set_status ()
40918{
40919 return $1
40920} # as_fn_set_status
40921
40922# as_fn_exit STATUS
40923# -----------------
40924# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40925as_fn_exit ()
40926{
40927 set +e
40928 as_fn_set_status $1
40929 exit $1
40930} # as_fn_exit
40931
40932# as_fn_unset VAR
40933# ---------------
40934# Portably unset VAR.
40935as_fn_unset ()
40936{
40937 { eval $1=; unset $1;}
40938}
40939as_unset=as_fn_unset
40940# as_fn_append VAR VALUE
40941# ----------------------
40942# Append the text in VALUE to the end of the definition contained in VAR. Take
40943# advantage of any shell optimizations that allow amortized linear growth over
40944# repeated appends, instead of the typical quadratic growth present in naive
40945# implementations.
40946if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
40947 eval 'as_fn_append ()
40948 {
40949 eval $1+=\$2
40950 }'
40951else
40952 as_fn_append ()
40953 {
40954 eval $1=\$$1\$2
40955 }
40956fi # as_fn_append
40957
40958# as_fn_arith ARG...
40959# ------------------
40960# Perform arithmetic evaluation on the ARGs, and store the result in the
40961# global $as_val. Take advantage of shells that can avoid forks. The arguments
40962# must be portable across $(()) and expr.
40963if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
40964 eval 'as_fn_arith ()
40965 {
40966 as_val=$(( $* ))
40967 }'
40968else
40969 as_fn_arith ()
40970 {
40971 as_val=`expr "$@" || test $? -eq 1`
40972 }
40973fi # as_fn_arith
40974
40975
40976if expr a : '\(a\)' >/dev/null 2>&1 &&
40977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
40978 as_expr=expr
40979else
40980 as_expr=false
40981fi
40982
40983if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40984 as_basename=basename
40985else
40986 as_basename=false
40987fi
40988
40989if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40990 as_dirname=dirname
40991else
40992 as_dirname=false
40993fi
40994
40995as_me=`$as_basename -- "$0" ||
40996$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40997 X"$0" : 'X\(//\)$' \| \
40998 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40999$as_echo X/"$0" |
41000 sed '/^.*\/\([^/][^/]*\)\/*$/{
41001 s//\1/
41002 q
41003 }
41004 /^X\/\(\/\/\)$/{
41005 s//\1/
41006 q
41007 }
41008 /^X\/\(\/\).*/{
41009 s//\1/
41010 q
41011 }
41012 s/.*/./; q'`
41013
41014# Avoid depending upon Character Ranges.
41015as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41016as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41017as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41018as_cr_digits='0123456789'
41019as_cr_alnum=$as_cr_Letters$as_cr_digits
41020
41021ECHO_C= ECHO_N= ECHO_T=
41022case `echo -n x` in #(((((
41023-n*)
41024 case `echo 'xy\c'` in
41025 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41026 xy) ECHO_C='\c';;
41027 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41028 ECHO_T=' ';;
41029 esac;;
41030*)
41031 ECHO_N='-n';;
41032esac
41033
41034rm -f conf$$ conf$$.exe conf$$.file
41035if test -d conf$$.dir; then
41036 rm -f conf$$.dir/conf$$.file
41037else
41038 rm -f conf$$.dir
41039 mkdir conf$$.dir 2>/dev/null
41040fi
41041if (echo >conf$$.file) 2>/dev/null; then
41042 if ln -s conf$$.file conf$$ 2>/dev/null; then
41043 as_ln_s='ln -s'
41044 # ... but there are two gotchas:
41045 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41046 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41047 # In both cases, we have to default to `cp -pR'.
41048 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41049 as_ln_s='cp -pR'
41050 elif ln conf$$.file conf$$ 2>/dev/null; then
41051 as_ln_s=ln
41052 else
41053 as_ln_s='cp -pR'
41054 fi
41055else
41056 as_ln_s='cp -pR'
41057fi
41058rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41059rmdir conf$$.dir 2>/dev/null
41060
41061
41062# as_fn_mkdir_p
41063# -------------
41064# Create "$as_dir" as a directory, including parents if necessary.
41065as_fn_mkdir_p ()
41066{
41067
41068 case $as_dir in #(
41069 -*) as_dir=./$as_dir;;
41070 esac
41071 test -d "$as_dir" || eval $as_mkdir_p || {
41072 as_dirs=
41073 while :; do
41074 case $as_dir in #(
41075 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41076 *) as_qdir=$as_dir;;
41077 esac
41078 as_dirs="'$as_qdir' $as_dirs"
41079 as_dir=`$as_dirname -- "$as_dir" ||
41080$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41081 X"$as_dir" : 'X\(//\)[^/]' \| \
41082 X"$as_dir" : 'X\(//\)$' \| \
41083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41084$as_echo X"$as_dir" |
41085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41086 s//\1/
41087 q
41088 }
41089 /^X\(\/\/\)[^/].*/{
41090 s//\1/
41091 q
41092 }
41093 /^X\(\/\/\)$/{
41094 s//\1/
41095 q
41096 }
41097 /^X\(\/\).*/{
41098 s//\1/
41099 q
41100 }
41101 s/.*/./; q'`
41102 test -d "$as_dir" && break
41103 done
41104 test -z "$as_dirs" || eval "mkdir $as_dirs"
41105 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41106
41107
41108} # as_fn_mkdir_p
41109if mkdir -p . 2>/dev/null; then
41110 as_mkdir_p='mkdir -p "$as_dir"'
41111else
41112 test -d ./-p && rmdir ./-p
41113 as_mkdir_p=false
41114fi
41115
41116
41117# as_fn_executable_p FILE
41118# -----------------------
41119# Test if FILE is an executable regular file.
41120as_fn_executable_p ()
41121{
41122 test -f "$1" && test -x "$1"
41123} # as_fn_executable_p
41124as_test_x='test -x'
41125as_executable_p=as_fn_executable_p
41126
41127# Sed expression to map a string onto a valid CPP name.
41128as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41129
41130# Sed expression to map a string onto a valid variable name.
41131as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41132
41133
41134exec 6>&1
41135## ----------------------------------- ##
41136## Main body of $CONFIG_STATUS script. ##
41137## ----------------------------------- ##
41138_ASEOF
41139test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41140
41141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41142# Save the log message, to keep $0 and so on meaningful, and to
41143# report actual input values of CONFIG_FILES etc. instead of their
41144# values after options handling.
41145ac_log="
b3a88519 41146This file was extended by zfs $as_me 0.7.5, which was
70e083d2
TG
41147generated by GNU Autoconf 2.69. Invocation command line was
41148
41149 CONFIG_FILES = $CONFIG_FILES
41150 CONFIG_HEADERS = $CONFIG_HEADERS
41151 CONFIG_LINKS = $CONFIG_LINKS
41152 CONFIG_COMMANDS = $CONFIG_COMMANDS
41153 $ $0 $@
41154
41155on `(hostname || uname -n) 2>/dev/null | sed 1q`
41156"
41157
41158_ACEOF
41159
41160case $ac_config_files in *"
41161"*) set x $ac_config_files; shift; ac_config_files=$*;;
41162esac
41163
41164case $ac_config_headers in *"
41165"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41166esac
41167
41168
41169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41170# Files that config.status was made for.
41171config_files="$ac_config_files"
41172config_headers="$ac_config_headers"
41173config_commands="$ac_config_commands"
41174
41175_ACEOF
41176
41177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41178ac_cs_usage="\
41179\`$as_me' instantiates files and other configuration actions
41180from templates according to the current configuration. Unless the files
41181and actions are specified as TAGs, all are instantiated by default.
41182
41183Usage: $0 [OPTION]... [TAG]...
41184
41185 -h, --help print this help, then exit
41186 -V, --version print version number and configuration settings, then exit
41187 --config print configuration, then exit
41188 -q, --quiet, --silent
41189 do not print progress messages
41190 -d, --debug don't remove temporary files
41191 --recheck update $as_me by reconfiguring in the same conditions
41192 --file=FILE[:TEMPLATE]
41193 instantiate the configuration file FILE
41194 --header=FILE[:TEMPLATE]
41195 instantiate the configuration header FILE
41196
41197Configuration files:
41198$config_files
41199
41200Configuration headers:
41201$config_headers
41202
41203Configuration commands:
41204$config_commands
41205
41206Report bugs to the package provider."
41207
41208_ACEOF
41209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41210ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41211ac_cs_version="\\
b3a88519 41212zfs config.status 0.7.5
70e083d2
TG
41213configured by $0, generated by GNU Autoconf 2.69,
41214 with options \\"\$ac_cs_config\\"
41215
41216Copyright (C) 2012 Free Software Foundation, Inc.
41217This config.status script is free software; the Free Software Foundation
41218gives unlimited permission to copy, distribute and modify it."
41219
41220ac_pwd='$ac_pwd'
41221srcdir='$srcdir'
41222INSTALL='$INSTALL'
41223MKDIR_P='$MKDIR_P'
41224AWK='$AWK'
41225test -n "\$AWK" || AWK=awk
41226_ACEOF
41227
41228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41229# The default lists apply if the user does not specify any file.
41230ac_need_defaults=:
41231while test $# != 0
41232do
41233 case $1 in
41234 --*=?*)
41235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41236 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41237 ac_shift=:
41238 ;;
41239 --*=)
41240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41241 ac_optarg=
41242 ac_shift=:
41243 ;;
41244 *)
41245 ac_option=$1
41246 ac_optarg=$2
41247 ac_shift=shift
41248 ;;
41249 esac
41250
41251 case $ac_option in
41252 # Handling of the options.
41253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41254 ac_cs_recheck=: ;;
41255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41256 $as_echo "$ac_cs_version"; exit ;;
41257 --config | --confi | --conf | --con | --co | --c )
41258 $as_echo "$ac_cs_config"; exit ;;
41259 --debug | --debu | --deb | --de | --d | -d )
41260 debug=: ;;
41261 --file | --fil | --fi | --f )
41262 $ac_shift
41263 case $ac_optarg in
41264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41265 '') as_fn_error $? "missing file argument" ;;
41266 esac
41267 as_fn_append CONFIG_FILES " '$ac_optarg'"
41268 ac_need_defaults=false;;
41269 --header | --heade | --head | --hea )
41270 $ac_shift
41271 case $ac_optarg in
41272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41273 esac
41274 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41275 ac_need_defaults=false;;
41276 --he | --h)
41277 # Conflict between --help and --header
41278 as_fn_error $? "ambiguous option: \`$1'
41279Try \`$0 --help' for more information.";;
41280 --help | --hel | -h )
41281 $as_echo "$ac_cs_usage"; exit ;;
41282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41284 ac_cs_silent=: ;;
41285
41286 # This is an error.
41287 -*) as_fn_error $? "unrecognized option: \`$1'
41288Try \`$0 --help' for more information." ;;
41289
41290 *) as_fn_append ac_config_targets " $1"
41291 ac_need_defaults=false ;;
41292
41293 esac
41294 shift
41295done
41296
41297ac_configure_extra_args=
41298
41299if $ac_cs_silent; then
41300 exec 6>/dev/null
41301 ac_configure_extra_args="$ac_configure_extra_args --silent"
41302fi
41303
41304_ACEOF
41305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41306if \$ac_cs_recheck; then
41307 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41308 shift
41309 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41310 CONFIG_SHELL='$SHELL'
41311 export CONFIG_SHELL
41312 exec "\$@"
41313fi
41314
41315_ACEOF
41316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41317exec 5>>config.log
41318{
41319 echo
41320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41321## Running $as_me. ##
41322_ASBOX
41323 $as_echo "$ac_log"
41324} >&5
41325
41326_ACEOF
41327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41328#
41329# INIT-COMMANDS
41330#
41331AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41332
41333
41334# The HP-UX ksh and POSIX shell print the target directory to stdout
41335# if CDPATH is set.
41336(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41337
41338sed_quote_subst='$sed_quote_subst'
41339double_quote_subst='$double_quote_subst'
41340delay_variable_subst='$delay_variable_subst'
41341macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41342macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41343enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41344enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41345pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41346enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41347shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41348SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41349ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41350PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41351host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41352host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41353host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41354build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41355build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41356build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41357SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41358Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41359GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41360EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41361FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41362LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41363NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41364LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41365max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41366ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41367exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41368lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41369lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41370lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41371lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41372lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41373reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41374reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41375OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41376deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41377file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41378file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41379want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41380DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41381sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41382AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41383AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41384archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41385STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41386RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41387old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41388old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41389old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41390lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41391CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41392CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41393compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41394GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41395lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41396lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41397lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41398lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41399lt_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"`'
41400lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41401nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41402lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41403lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41404objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41405MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41406lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41407lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41408lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41409lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41410lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41411need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41412MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41413DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41414NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41415LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41416OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41417OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41418libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41419shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41420extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41421archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41422enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41423export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41424whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41425compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41426old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41427old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41428archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41429archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41430module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41431module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41432with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41433allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41434no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41435hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41436hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41437hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41438hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41439hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41440hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41441hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41442inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41443link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41444always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41445export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41446exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41447include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41448prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41449postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41450file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41451variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41452need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41453need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41454version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41455runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41456shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41457shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41458libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41459library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41460soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41461install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41462postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41463postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41464finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41465finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41466hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41467sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41468configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41469configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41470hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41471enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41472enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41473enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41474old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41475striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41476
41477LTCC='$LTCC'
41478LTCFLAGS='$LTCFLAGS'
41479compiler='$compiler_DEFAULT'
41480
41481# A function that is used when there is no print builtin or printf.
41482func_fallback_echo ()
41483{
41484 eval 'cat <<_LTECHO_EOF
41485\$1
41486_LTECHO_EOF'
41487}
41488
41489# Quote evaled strings.
41490for var in SHELL \
41491ECHO \
41492PATH_SEPARATOR \
41493SED \
41494GREP \
41495EGREP \
41496FGREP \
41497LD \
41498NM \
41499LN_S \
41500lt_SP2NL \
41501lt_NL2SP \
41502reload_flag \
41503OBJDUMP \
41504deplibs_check_method \
41505file_magic_cmd \
41506file_magic_glob \
41507want_nocaseglob \
41508DLLTOOL \
41509sharedlib_from_linklib_cmd \
41510AR \
41511AR_FLAGS \
41512archiver_list_spec \
41513STRIP \
41514RANLIB \
41515CC \
41516CFLAGS \
41517compiler \
41518lt_cv_sys_global_symbol_pipe \
41519lt_cv_sys_global_symbol_to_cdecl \
41520lt_cv_sys_global_symbol_to_import \
41521lt_cv_sys_global_symbol_to_c_name_address \
41522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41523lt_cv_nm_interface \
41524nm_file_list_spec \
41525lt_cv_truncate_bin \
41526lt_prog_compiler_no_builtin_flag \
41527lt_prog_compiler_pic \
41528lt_prog_compiler_wl \
41529lt_prog_compiler_static \
41530lt_cv_prog_compiler_c_o \
41531need_locks \
41532MANIFEST_TOOL \
41533DSYMUTIL \
41534NMEDIT \
41535LIPO \
41536OTOOL \
41537OTOOL64 \
41538shrext_cmds \
41539export_dynamic_flag_spec \
41540whole_archive_flag_spec \
41541compiler_needs_object \
41542with_gnu_ld \
41543allow_undefined_flag \
41544no_undefined_flag \
41545hardcode_libdir_flag_spec \
41546hardcode_libdir_separator \
41547exclude_expsyms \
41548include_expsyms \
41549file_list_spec \
41550variables_saved_for_relink \
41551libname_spec \
41552library_names_spec \
41553soname_spec \
41554install_override_mode \
41555finish_eval \
41556old_striplib \
41557striplib; do
41558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41559 *[\\\\\\\`\\"\\\$]*)
41560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41561 ;;
41562 *)
41563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41564 ;;
41565 esac
41566done
41567
41568# Double-quote double-evaled strings.
41569for var in reload_cmds \
41570old_postinstall_cmds \
41571old_postuninstall_cmds \
41572old_archive_cmds \
41573extract_expsyms_cmds \
41574old_archive_from_new_cmds \
41575old_archive_from_expsyms_cmds \
41576archive_cmds \
41577archive_expsym_cmds \
41578module_cmds \
41579module_expsym_cmds \
41580export_symbols_cmds \
41581prelink_cmds \
41582postlink_cmds \
41583postinstall_cmds \
41584postuninstall_cmds \
41585finish_cmds \
41586sys_lib_search_path_spec \
41587configure_time_dlsearch_path \
41588configure_time_lt_sys_library_path; do
41589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41590 *[\\\\\\\`\\"\\\$]*)
41591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41592 ;;
41593 *)
41594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41595 ;;
41596 esac
41597done
41598
41599ac_aux_dir='$ac_aux_dir'
41600
41601# See if we are running on zsh, and set the options that allow our
41602# commands through without removal of \ escapes INIT.
41603if test -n "\${ZSH_VERSION+set}"; then
41604 setopt NO_GLOB_SUBST
41605fi
41606
41607
41608 PACKAGE='$PACKAGE'
41609 VERSION='$VERSION'
41610 RM='$RM'
41611 ofile='$ofile'
41612
41613
41614
41615
41616_ACEOF
41617
41618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41619
41620# Handling of arguments.
41621for ac_config_target in $ac_config_targets
41622do
41623 case $ac_config_target in
41624 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
41625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41626 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
41627 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41628 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
41629 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
41630 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
41631 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
41632 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
41633 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
41634 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
86e3c28a 41635 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
70e083d2
TG
41636 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
41637 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
41638 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
41639 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
41640 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
41641 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
86e3c28a
CIK
41642 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
41643 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
70e083d2
TG
41644 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
41645
41646 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41647 esac
41648done
41649
41650
41651# If the user did not use the arguments to specify the items to instantiate,
41652# then the envvar interface is used. Set only those that are not.
41653# We use the long form for the default assignment because of an extremely
41654# bizarre bug on SunOS 4.1.3.
41655if $ac_need_defaults; then
41656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41659fi
41660
41661# Have a temporary directory for convenience. Make it in the build tree
41662# simply because there is no reason against having it here, and in addition,
41663# creating and moving files from /tmp can sometimes cause problems.
41664# Hook for its removal unless debugging.
41665# Note that there is a small window in which the directory will not be cleaned:
41666# after its creation but before its name has been assigned to `$tmp'.
41667$debug ||
41668{
41669 tmp= ac_tmp=
41670 trap 'exit_status=$?
41671 : "${ac_tmp:=$tmp}"
41672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
41673' 0
41674 trap 'as_fn_exit 1' 1 2 13 15
41675}
41676# Create a (secure) tmp directory for tmp files.
41677
41678{
41679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41680 test -d "$tmp"
41681} ||
41682{
41683 tmp=./conf$$-$RANDOM
41684 (umask 077 && mkdir "$tmp")
41685} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
41686ac_tmp=$tmp
41687
41688# Set up the scripts for CONFIG_FILES section.
41689# No need to generate them if there are no CONFIG_FILES.
41690# This happens for instance with `./config.status config.h'.
41691if test -n "$CONFIG_FILES"; then
41692
41693
41694ac_cr=`echo X | tr X '\015'`
41695# On cygwin, bash can eat \r inside `` if the user requested igncr.
41696# But we know of no other shell where ac_cr would be empty at this
41697# point, so we can use a bashism as a fallback.
41698if test "x$ac_cr" = x; then
41699 eval ac_cr=\$\'\\r\'
41700fi
41701ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
41702if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
41703 ac_cs_awk_cr='\\r'
41704else
41705 ac_cs_awk_cr=$ac_cr
41706fi
41707
41708echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
41709_ACEOF
41710
41711
41712{
41713 echo "cat >conf$$subs.awk <<_ACEOF" &&
41714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
41715 echo "_ACEOF"
41716} >conf$$subs.sh ||
41717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41718ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
41719ac_delim='%!_!# '
41720for ac_last_try in false false false false false :; do
41721 . ./conf$$subs.sh ||
41722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41723
41724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
41725 if test $ac_delim_n = $ac_delim_num; then
41726 break
41727 elif $ac_last_try; then
41728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41729 else
41730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41731 fi
41732done
41733rm -f conf$$subs.sh
41734
41735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41736cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
41737_ACEOF
41738sed -n '
41739h
41740s/^/S["/; s/!.*/"]=/
41741p
41742g
41743s/^[^!]*!//
41744:repl
41745t repl
41746s/'"$ac_delim"'$//
41747t delim
41748:nl
41749h
41750s/\(.\{148\}\)..*/\1/
41751t more1
41752s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
41753p
41754n
41755b repl
41756:more1
41757s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41758p
41759g
41760s/.\{148\}//
41761t nl
41762:delim
41763h
41764s/\(.\{148\}\)..*/\1/
41765t more2
41766s/["\\]/\\&/g; s/^/"/; s/$/"/
41767p
41768b
41769:more2
41770s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41771p
41772g
41773s/.\{148\}//
41774t delim
41775' <conf$$subs.awk | sed '
41776/^[^""]/{
41777 N
41778 s/\n//
41779}
41780' >>$CONFIG_STATUS || ac_write_fail=1
41781rm -f conf$$subs.awk
41782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41783_ACAWK
41784cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
41785 for (key in S) S_is_set[key] = 1
41786 FS = "\a"
41787
41788}
41789{
41790 line = $ 0
41791 nfields = split(line, field, "@")
41792 substed = 0
41793 len = length(field[1])
41794 for (i = 2; i < nfields; i++) {
41795 key = field[i]
41796 keylen = length(key)
41797 if (S_is_set[key]) {
41798 value = S[key]
41799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41800 len += length(value) + length(field[++i])
41801 substed = 1
41802 } else
41803 len += 1 + keylen
41804 }
41805
41806 print line
41807}
41808
41809_ACAWK
41810_ACEOF
41811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41812if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
41814else
41815 cat
41816fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
41817 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
41818_ACEOF
41819
41820# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41821# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
41822# trailing colons and then remove the whole line if VPATH becomes empty
41823# (actually we leave an empty line to preserve line numbers).
41824if test "x$srcdir" = x.; then
41825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
41826h
41827s///
41828s/^/:/
41829s/[ ]*$/:/
41830s/:\$(srcdir):/:/g
41831s/:\${srcdir}:/:/g
41832s/:@srcdir@:/:/g
41833s/^:*//
41834s/:*$//
41835x
41836s/\(=[ ]*\).*/\1/
41837G
41838s/\n//
41839s/^[^=]*=[ ]*$//
41840}'
41841fi
41842
41843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41844fi # test -n "$CONFIG_FILES"
41845
41846# Set up the scripts for CONFIG_HEADERS section.
41847# No need to generate them if there are no CONFIG_HEADERS.
41848# This happens for instance with `./config.status Makefile'.
41849if test -n "$CONFIG_HEADERS"; then
41850cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
41851BEGIN {
41852_ACEOF
41853
41854# Transform confdefs.h into an awk script `defines.awk', embedded as
41855# here-document in config.status, that substitutes the proper values into
41856# config.h.in to produce config.h.
41857
41858# Create a delimiter string that does not exist in confdefs.h, to ease
41859# handling of long lines.
41860ac_delim='%!_!# '
41861for ac_last_try in false false :; do
41862 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
41863 if test -z "$ac_tt"; then
41864 break
41865 elif $ac_last_try; then
41866 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
41867 else
41868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41869 fi
41870done
41871
41872# For the awk script, D is an array of macro values keyed by name,
41873# likewise P contains macro parameters if any. Preserve backslash
41874# newline sequences.
41875
41876ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41877sed -n '
41878s/.\{148\}/&'"$ac_delim"'/g
41879t rset
41880:rset
41881s/^[ ]*#[ ]*define[ ][ ]*/ /
41882t def
41883d
41884:def
41885s/\\$//
41886t bsnl
41887s/["\\]/\\&/g
41888s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
41889D["\1"]=" \3"/p
41890s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
41891d
41892:bsnl
41893s/["\\]/\\&/g
41894s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
41895D["\1"]=" \3\\\\\\n"\\/p
41896t cont
41897s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
41898t cont
41899d
41900:cont
41901n
41902s/.\{148\}/&'"$ac_delim"'/g
41903t clear
41904:clear
41905s/\\$//
41906t bsnlc
41907s/["\\]/\\&/g; s/^/"/; s/$/"/p
41908d
41909:bsnlc
41910s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
41911b cont
41912' <confdefs.h | sed '
41913s/'"$ac_delim"'/"\\\
41914"/g' >>$CONFIG_STATUS || ac_write_fail=1
41915
41916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41917 for (key in D) D_is_set[key] = 1
41918 FS = "\a"
41919}
41920/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41921 line = \$ 0
41922 split(line, arg, " ")
41923 if (arg[1] == "#") {
41924 defundef = arg[2]
41925 mac1 = arg[3]
41926 } else {
41927 defundef = substr(arg[1], 2)
41928 mac1 = arg[2]
41929 }
41930 split(mac1, mac2, "(") #)
41931 macro = mac2[1]
41932 prefix = substr(line, 1, index(line, defundef) - 1)
41933 if (D_is_set[macro]) {
41934 # Preserve the white space surrounding the "#".
41935 print prefix "define", macro P[macro] D[macro]
41936 next
41937 } else {
41938 # Replace #undef with comments. This is necessary, for example,
41939 # in the case of _POSIX_SOURCE, which is predefined and required
41940 # on some systems where configure will not decide to define it.
41941 if (defundef == "undef") {
41942 print "/*", prefix defundef, macro, "*/"
41943 next
41944 }
41945 }
41946}
41947{ print }
41948_ACAWK
41949_ACEOF
41950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41951 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
41952fi # test -n "$CONFIG_HEADERS"
41953
41954
41955eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
41956shift
41957for ac_tag
41958do
41959 case $ac_tag in
41960 :[FHLC]) ac_mode=$ac_tag; continue;;
41961 esac
41962 case $ac_mode$ac_tag in
41963 :[FHL]*:*);;
41964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
41965 :[FH]-) ac_tag=-:-;;
41966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41967 esac
41968 ac_save_IFS=$IFS
41969 IFS=:
41970 set x $ac_tag
41971 IFS=$ac_save_IFS
41972 shift
41973 ac_file=$1
41974 shift
41975
41976 case $ac_mode in
41977 :L) ac_source=$1;;
41978 :[FH])
41979 ac_file_inputs=
41980 for ac_f
41981 do
41982 case $ac_f in
41983 -) ac_f="$ac_tmp/stdin";;
41984 *) # Look for the file first in the build tree, then in the source tree
41985 # (if the path is not absolute). The absolute path cannot be DOS-style,
41986 # because $ac_f cannot contain `:'.
41987 test -f "$ac_f" ||
41988 case $ac_f in
41989 [\\/$]*) false;;
41990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41991 esac ||
41992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41993 esac
41994 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41995 as_fn_append ac_file_inputs " '$ac_f'"
41996 done
41997
41998 # Let's still pretend it is `configure' which instantiates (i.e., don't
41999 # use $as_me), people would be surprised to read:
42000 # /* config.h. Generated by config.status. */
42001 configure_input='Generated from '`
42002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42003 `' by configure.'
42004 if test x"$ac_file" != x-; then
42005 configure_input="$ac_file. $configure_input"
42006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42007$as_echo "$as_me: creating $ac_file" >&6;}
42008 fi
42009 # Neutralize special characters interpreted by sed in replacement strings.
42010 case $configure_input in #(
42011 *\&* | *\|* | *\\* )
42012 ac_sed_conf_input=`$as_echo "$configure_input" |
42013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42014 *) ac_sed_conf_input=$configure_input;;
42015 esac
42016
42017 case $ac_tag in
42018 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42020 esac
42021 ;;
42022 esac
42023
42024 ac_dir=`$as_dirname -- "$ac_file" ||
42025$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42026 X"$ac_file" : 'X\(//\)[^/]' \| \
42027 X"$ac_file" : 'X\(//\)$' \| \
42028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42029$as_echo X"$ac_file" |
42030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42031 s//\1/
42032 q
42033 }
42034 /^X\(\/\/\)[^/].*/{
42035 s//\1/
42036 q
42037 }
42038 /^X\(\/\/\)$/{
42039 s//\1/
42040 q
42041 }
42042 /^X\(\/\).*/{
42043 s//\1/
42044 q
42045 }
42046 s/.*/./; q'`
42047 as_dir="$ac_dir"; as_fn_mkdir_p
42048 ac_builddir=.
42049
42050case "$ac_dir" in
42051.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42052*)
42053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42054 # A ".." for each directory in $ac_dir_suffix.
42055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42056 case $ac_top_builddir_sub in
42057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42059 esac ;;
42060esac
42061ac_abs_top_builddir=$ac_pwd
42062ac_abs_builddir=$ac_pwd$ac_dir_suffix
42063# for backward compatibility:
42064ac_top_builddir=$ac_top_build_prefix
42065
42066case $srcdir in
42067 .) # We are building in place.
42068 ac_srcdir=.
42069 ac_top_srcdir=$ac_top_builddir_sub
42070 ac_abs_top_srcdir=$ac_pwd ;;
42071 [\\/]* | ?:[\\/]* ) # Absolute name.
42072 ac_srcdir=$srcdir$ac_dir_suffix;
42073 ac_top_srcdir=$srcdir
42074 ac_abs_top_srcdir=$srcdir ;;
42075 *) # Relative name.
42076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42077 ac_top_srcdir=$ac_top_build_prefix$srcdir
42078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42079esac
42080ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42081
42082
42083 case $ac_mode in
42084 :F)
42085 #
42086 # CONFIG_FILE
42087 #
42088
42089 case $INSTALL in
42090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42092 esac
42093 ac_MKDIR_P=$MKDIR_P
42094 case $MKDIR_P in
42095 [\\/$]* | ?:[\\/]* ) ;;
42096 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42097 esac
42098_ACEOF
42099
42100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42101# If the template does not know about datarootdir, expand it.
42102# FIXME: This hack should be removed a few years after 2.60.
42103ac_datarootdir_hack=; ac_datarootdir_seen=
42104ac_sed_dataroot='
42105/datarootdir/ {
42106 p
42107 q
42108}
42109/@datadir@/p
42110/@docdir@/p
42111/@infodir@/p
42112/@localedir@/p
42113/@mandir@/p'
42114case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42115*datarootdir*) ac_datarootdir_seen=yes;;
42116*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42118$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42119_ACEOF
42120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42121 ac_datarootdir_hack='
42122 s&@datadir@&$datadir&g
42123 s&@docdir@&$docdir&g
42124 s&@infodir@&$infodir&g
42125 s&@localedir@&$localedir&g
42126 s&@mandir@&$mandir&g
42127 s&\\\${datarootdir}&$datarootdir&g' ;;
42128esac
42129_ACEOF
42130
42131# Neutralize VPATH when `$srcdir' = `.'.
42132# Shell code in configure.ac might set extrasub.
42133# FIXME: do we really want to maintain this feature?
42134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42135ac_sed_extra="$ac_vpsub
42136$extrasub
42137_ACEOF
42138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42139:t
42140/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42141s|@configure_input@|$ac_sed_conf_input|;t t
42142s&@top_builddir@&$ac_top_builddir_sub&;t t
42143s&@top_build_prefix@&$ac_top_build_prefix&;t t
42144s&@srcdir@&$ac_srcdir&;t t
42145s&@abs_srcdir@&$ac_abs_srcdir&;t t
42146s&@top_srcdir@&$ac_top_srcdir&;t t
42147s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42148s&@builddir@&$ac_builddir&;t t
42149s&@abs_builddir@&$ac_abs_builddir&;t t
42150s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42151s&@INSTALL@&$ac_INSTALL&;t t
42152s&@MKDIR_P@&$ac_MKDIR_P&;t t
42153$ac_datarootdir_hack
42154"
42155eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42156 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42157
42158test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42161 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42163which seems to be undefined. Please make sure it is defined" >&5
42164$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42165which seems to be undefined. Please make sure it is defined" >&2;}
42166
42167 rm -f "$ac_tmp/stdin"
42168 case $ac_file in
42169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42171 esac \
42172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42173 ;;
42174 :H)
42175 #
42176 # CONFIG_HEADER
42177 #
42178 if test x"$ac_file" != x-; then
42179 {
42180 $as_echo "/* $configure_input */" \
42181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42182 } >"$ac_tmp/config.h" \
42183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42185 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42186$as_echo "$as_me: $ac_file is unchanged" >&6;}
42187 else
42188 rm -f "$ac_file"
42189 mv "$ac_tmp/config.h" "$ac_file" \
42190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42191 fi
42192 else
42193 $as_echo "/* $configure_input */" \
42194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42195 || as_fn_error $? "could not create -" "$LINENO" 5
42196 fi
42197# Compute "$ac_file"'s index in $config_headers.
42198_am_arg="$ac_file"
42199_am_stamp_count=1
42200for _am_header in $config_headers :; do
42201 case $_am_header in
42202 $_am_arg | $_am_arg:* )
42203 break ;;
42204 * )
42205 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42206 esac
42207done
42208echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42209$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42210 X"$_am_arg" : 'X\(//\)[^/]' \| \
42211 X"$_am_arg" : 'X\(//\)$' \| \
42212 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42213$as_echo X"$_am_arg" |
42214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42215 s//\1/
42216 q
42217 }
42218 /^X\(\/\/\)[^/].*/{
42219 s//\1/
42220 q
42221 }
42222 /^X\(\/\/\)$/{
42223 s//\1/
42224 q
42225 }
42226 /^X\(\/\).*/{
42227 s//\1/
42228 q
42229 }
42230 s/.*/./; q'`/stamp-h$_am_stamp_count
42231 ;;
42232
42233 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42234$as_echo "$as_me: executing $ac_file commands" >&6;}
42235 ;;
42236 esac
42237
42238
42239 case $ac_file$ac_mode in
42240 "zfs_config.h":H)
42241 (mv zfs_config.h zfs_config.h.tmp &&
42242 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
42243 rm zfs_config.h.tmp) || exit 1 ;;
42244 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42245 # Older Autoconf quotes --file arguments for eval, but not when files
42246 # are listed without --file. Let's play safe and only enable the eval
42247 # if we detect the quoting.
42248 case $CONFIG_FILES in
42249 *\'*) eval set x "$CONFIG_FILES" ;;
42250 *) set x $CONFIG_FILES ;;
42251 esac
42252 shift
42253 for mf
42254 do
42255 # Strip MF so we end up with the name of the file.
42256 mf=`echo "$mf" | sed -e 's/:.*$//'`
42257 # Check whether this is an Automake generated Makefile or not.
42258 # We used to match only the files named 'Makefile.in', but
42259 # some people rename them; so instead we look at the file content.
42260 # Grep'ing the first line is not enough: some people post-process
42261 # each Makefile.in and add a new line on top of each file to say so.
42262 # Grep'ing the whole file is not good either: AIX grep has a line
42263 # limit of 2048, but all sed's we know have understand at least 4000.
42264 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42265 dirpart=`$as_dirname -- "$mf" ||
42266$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42267 X"$mf" : 'X\(//\)[^/]' \| \
42268 X"$mf" : 'X\(//\)$' \| \
42269 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42270$as_echo X"$mf" |
42271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42272 s//\1/
42273 q
42274 }
42275 /^X\(\/\/\)[^/].*/{
42276 s//\1/
42277 q
42278 }
42279 /^X\(\/\/\)$/{
42280 s//\1/
42281 q
42282 }
42283 /^X\(\/\).*/{
42284 s//\1/
42285 q
42286 }
42287 s/.*/./; q'`
42288 else
42289 continue
42290 fi
42291 # Extract the definition of DEPDIR, am__include, and am__quote
42292 # from the Makefile without running 'make'.
42293 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42294 test -z "$DEPDIR" && continue
42295 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42296 test -z "$am__include" && continue
42297 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42298 # Find all dependency output files, they are included files with
42299 # $(DEPDIR) in their names. We invoke sed twice because it is the
42300 # simplest approach to changing $(DEPDIR) to its actual value in the
42301 # expansion.
42302 for file in `sed -n "
42303 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42304 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42305 # Make sure the directory exists.
42306 test -f "$dirpart/$file" && continue
42307 fdir=`$as_dirname -- "$file" ||
42308$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42309 X"$file" : 'X\(//\)[^/]' \| \
42310 X"$file" : 'X\(//\)$' \| \
42311 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42312$as_echo X"$file" |
42313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42314 s//\1/
42315 q
42316 }
42317 /^X\(\/\/\)[^/].*/{
42318 s//\1/
42319 q
42320 }
42321 /^X\(\/\/\)$/{
42322 s//\1/
42323 q
42324 }
42325 /^X\(\/\).*/{
42326 s//\1/
42327 q
42328 }
42329 s/.*/./; q'`
42330 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42331 # echo "creating $dirpart/$file"
42332 echo '# dummy' > "$dirpart/$file"
42333 done
42334 done
42335}
42336 ;;
42337 "libtool":C)
42338
42339 # See if we are running on zsh, and set the options that allow our
42340 # commands through without removal of \ escapes.
42341 if test -n "${ZSH_VERSION+set}"; then
42342 setopt NO_GLOB_SUBST
42343 fi
42344
42345 cfgfile=${ofile}T
42346 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42347 $RM "$cfgfile"
42348
42349 cat <<_LT_EOF >> "$cfgfile"
42350#! $SHELL
42351# Generated automatically by $as_me ($PACKAGE) $VERSION
42352# NOTE: Changes made to this file will be lost: look at ltmain.sh.
42353
42354# Provide generalized library-building support services.
42355# Written by Gordon Matzigkeit, 1996
42356
42357# Copyright (C) 2014 Free Software Foundation, Inc.
42358# This is free software; see the source for copying conditions. There is NO
42359# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42360
42361# GNU Libtool is free software; you can redistribute it and/or modify
42362# it under the terms of the GNU General Public License as published by
42363# the Free Software Foundation; either version 2 of of the License, or
42364# (at your option) any later version.
42365#
42366# As a special exception to the GNU General Public License, if you
42367# distribute this file as part of a program or library that is built
42368# using GNU Libtool, you may include this file under the same
42369# distribution terms that you use for the rest of that program.
42370#
42371# GNU Libtool is distributed in the hope that it will be useful, but
42372# WITHOUT ANY WARRANTY; without even the implied warranty of
42373# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42374# GNU General Public License for more details.
42375#
42376# You should have received a copy of the GNU General Public License
42377# along with this program. If not, see <http://www.gnu.org/licenses/>.
42378
42379
42380# The names of the tagged configurations supported by this script.
42381available_tags=''
42382
42383# Configured defaults for sys_lib_dlsearch_path munging.
42384: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42385
42386# ### BEGIN LIBTOOL CONFIG
42387
42388# Which release of libtool.m4 was used?
42389macro_version=$macro_version
42390macro_revision=$macro_revision
42391
42392# Whether or not to build shared libraries.
42393build_libtool_libs=$enable_shared
42394
42395# Whether or not to build static libraries.
42396build_old_libs=$enable_static
42397
42398# What type of objects to build.
42399pic_mode=$pic_mode
42400
42401# Whether or not to optimize for fast installation.
42402fast_install=$enable_fast_install
42403
42404# Shared archive member basename,for filename based shared library versioning on AIX.
42405shared_archive_member_spec=$shared_archive_member_spec
42406
42407# Shell to use when invoking shell scripts.
42408SHELL=$lt_SHELL
42409
42410# An echo program that protects backslashes.
42411ECHO=$lt_ECHO
42412
42413# The PATH separator for the build system.
42414PATH_SEPARATOR=$lt_PATH_SEPARATOR
42415
42416# The host system.
42417host_alias=$host_alias
42418host=$host
42419host_os=$host_os
42420
42421# The build system.
42422build_alias=$build_alias
42423build=$build
42424build_os=$build_os
42425
42426# A sed program that does not truncate output.
42427SED=$lt_SED
42428
42429# Sed that helps us avoid accidentally triggering echo(1) options like -n.
42430Xsed="\$SED -e 1s/^X//"
42431
42432# A grep program that handles long lines.
42433GREP=$lt_GREP
42434
42435# An ERE matcher.
42436EGREP=$lt_EGREP
42437
42438# A literal string matcher.
42439FGREP=$lt_FGREP
42440
42441# A BSD- or MS-compatible name lister.
42442NM=$lt_NM
42443
42444# Whether we need soft or hard links.
42445LN_S=$lt_LN_S
42446
42447# What is the maximum length of a command?
42448max_cmd_len=$max_cmd_len
42449
42450# Object file suffix (normally "o").
42451objext=$ac_objext
42452
42453# Executable file suffix (normally "").
42454exeext=$exeext
42455
42456# whether the shell understands "unset".
42457lt_unset=$lt_unset
42458
42459# turn spaces into newlines.
42460SP2NL=$lt_lt_SP2NL
42461
42462# turn newlines into spaces.
42463NL2SP=$lt_lt_NL2SP
42464
42465# convert \$build file names to \$host format.
42466to_host_file_cmd=$lt_cv_to_host_file_cmd
42467
42468# convert \$build files to toolchain format.
42469to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42470
42471# An object symbol dumper.
42472OBJDUMP=$lt_OBJDUMP
42473
42474# Method to check whether dependent libraries are shared objects.
42475deplibs_check_method=$lt_deplibs_check_method
42476
42477# Command to use when deplibs_check_method = "file_magic".
42478file_magic_cmd=$lt_file_magic_cmd
42479
42480# How to find potential files when deplibs_check_method = "file_magic".
42481file_magic_glob=$lt_file_magic_glob
42482
42483# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42484want_nocaseglob=$lt_want_nocaseglob
42485
42486# DLL creation program.
42487DLLTOOL=$lt_DLLTOOL
42488
42489# Command to associate shared and link libraries.
42490sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42491
42492# The archiver.
42493AR=$lt_AR
42494
42495# Flags to create an archive.
42496AR_FLAGS=$lt_AR_FLAGS
42497
42498# How to feed a file listing to the archiver.
42499archiver_list_spec=$lt_archiver_list_spec
42500
42501# A symbol stripping program.
42502STRIP=$lt_STRIP
42503
42504# Commands used to install an old-style archive.
42505RANLIB=$lt_RANLIB
42506old_postinstall_cmds=$lt_old_postinstall_cmds
42507old_postuninstall_cmds=$lt_old_postuninstall_cmds
42508
42509# Whether to use a lock for old archive extraction.
42510lock_old_archive_extraction=$lock_old_archive_extraction
42511
42512# A C compiler.
42513LTCC=$lt_CC
42514
42515# LTCC compiler flags.
42516LTCFLAGS=$lt_CFLAGS
42517
42518# Take the output of nm and produce a listing of raw symbols and C names.
42519global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42520
42521# Transform the output of nm in a proper C declaration.
42522global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42523
42524# Transform the output of nm into a list of symbols to manually relocate.
42525global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42526
42527# Transform the output of nm in a C name address pair.
42528global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42529
42530# Transform the output of nm in a C name address pair when lib prefix is needed.
42531global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42532
42533# The name lister interface.
42534nm_interface=$lt_lt_cv_nm_interface
42535
42536# Specify filename containing input files for \$NM.
42537nm_file_list_spec=$lt_nm_file_list_spec
42538
42539# The root where to search for dependent libraries,and where our libraries should be installed.
42540lt_sysroot=$lt_sysroot
42541
42542# Command to truncate a binary pipe.
42543lt_truncate_bin=$lt_lt_cv_truncate_bin
42544
42545# The name of the directory that contains temporary libtool files.
42546objdir=$objdir
42547
42548# Used to examine libraries when file_magic_cmd begins with "file".
42549MAGIC_CMD=$MAGIC_CMD
42550
42551# Must we lock files when doing compilation?
42552need_locks=$lt_need_locks
42553
42554# Manifest tool.
42555MANIFEST_TOOL=$lt_MANIFEST_TOOL
42556
42557# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42558DSYMUTIL=$lt_DSYMUTIL
42559
42560# Tool to change global to local symbols on Mac OS X.
42561NMEDIT=$lt_NMEDIT
42562
42563# Tool to manipulate fat objects and archives on Mac OS X.
42564LIPO=$lt_LIPO
42565
42566# ldd/readelf like tool for Mach-O binaries on Mac OS X.
42567OTOOL=$lt_OTOOL
42568
42569# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42570OTOOL64=$lt_OTOOL64
42571
42572# Old archive suffix (normally "a").
42573libext=$libext
42574
42575# Shared library suffix (normally ".so").
42576shrext_cmds=$lt_shrext_cmds
42577
42578# The commands to extract the exported symbol list from a shared archive.
42579extract_expsyms_cmds=$lt_extract_expsyms_cmds
42580
42581# Variables whose values should be saved in libtool wrapper scripts and
42582# restored at link time.
42583variables_saved_for_relink=$lt_variables_saved_for_relink
42584
42585# Do we need the "lib" prefix for modules?
42586need_lib_prefix=$need_lib_prefix
42587
42588# Do we need a version for libraries?
42589need_version=$need_version
42590
42591# Library versioning type.
42592version_type=$version_type
42593
42594# Shared library runtime path variable.
42595runpath_var=$runpath_var
42596
42597# Shared library path variable.
42598shlibpath_var=$shlibpath_var
42599
42600# Is shlibpath searched before the hard-coded library search path?
42601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42602
42603# Format of library name prefix.
42604libname_spec=$lt_libname_spec
42605
42606# List of archive names. First name is the real one, the rest are links.
42607# The last name is the one that the linker finds with -lNAME
42608library_names_spec=$lt_library_names_spec
42609
42610# The coded name of the library, if different from the real name.
42611soname_spec=$lt_soname_spec
42612
42613# Permission mode override for installation of shared libraries.
42614install_override_mode=$lt_install_override_mode
42615
42616# Command to use after installation of a shared archive.
42617postinstall_cmds=$lt_postinstall_cmds
42618
42619# Command to use after uninstallation of a shared archive.
42620postuninstall_cmds=$lt_postuninstall_cmds
42621
42622# Commands used to finish a libtool library installation in a directory.
42623finish_cmds=$lt_finish_cmds
42624
42625# As "finish_cmds", except a single script fragment to be evaled but
42626# not shown.
42627finish_eval=$lt_finish_eval
42628
42629# Whether we should hardcode library paths into libraries.
42630hardcode_into_libs=$hardcode_into_libs
42631
42632# Compile-time system search path for libraries.
42633sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42634
42635# Detected run-time system search path for libraries.
42636sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
42637
42638# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
42639configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
42640
42641# Whether dlopen is supported.
42642dlopen_support=$enable_dlopen
42643
42644# Whether dlopen of programs is supported.
42645dlopen_self=$enable_dlopen_self
42646
42647# Whether dlopen of statically linked programs is supported.
42648dlopen_self_static=$enable_dlopen_self_static
42649
42650# Commands to strip libraries.
42651old_striplib=$lt_old_striplib
42652striplib=$lt_striplib
42653
42654
42655# The linker used to build libraries.
42656LD=$lt_LD
42657
42658# How to create reloadable object files.
42659reload_flag=$lt_reload_flag
42660reload_cmds=$lt_reload_cmds
42661
42662# Commands used to build an old-style archive.
42663old_archive_cmds=$lt_old_archive_cmds
42664
42665# A language specific compiler.
42666CC=$lt_compiler
42667
42668# Is the compiler the GNU compiler?
42669with_gcc=$GCC
42670
42671# Compiler flag to turn off builtin functions.
42672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42673
42674# Additional compiler flags for building library objects.
42675pic_flag=$lt_lt_prog_compiler_pic
42676
42677# How to pass a linker flag through the compiler.
42678wl=$lt_lt_prog_compiler_wl
42679
42680# Compiler flag to prevent dynamic linking.
42681link_static_flag=$lt_lt_prog_compiler_static
42682
42683# Does compiler simultaneously support -c and -o options?
42684compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42685
42686# Whether or not to add -lc for building shared libraries.
42687build_libtool_need_lc=$archive_cmds_need_lc
42688
42689# Whether or not to disallow shared libs when runtime libs are static.
42690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42691
42692# Compiler flag to allow reflexive dlopens.
42693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42694
42695# Compiler flag to generate shared objects directly from archives.
42696whole_archive_flag_spec=$lt_whole_archive_flag_spec
42697
42698# Whether the compiler copes with passing no objects directly.
42699compiler_needs_object=$lt_compiler_needs_object
42700
42701# Create an old-style archive from a shared archive.
42702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42703
42704# Create a temporary old-style archive to link instead of a shared archive.
42705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42706
42707# Commands used to build a shared archive.
42708archive_cmds=$lt_archive_cmds
42709archive_expsym_cmds=$lt_archive_expsym_cmds
42710
42711# Commands used to build a loadable module if different from building
42712# a shared archive.
42713module_cmds=$lt_module_cmds
42714module_expsym_cmds=$lt_module_expsym_cmds
42715
42716# Whether we are building with GNU ld or not.
42717with_gnu_ld=$lt_with_gnu_ld
42718
42719# Flag that allows shared libraries with undefined symbols to be built.
42720allow_undefined_flag=$lt_allow_undefined_flag
42721
42722# Flag that enforces no undefined symbols.
42723no_undefined_flag=$lt_no_undefined_flag
42724
42725# Flag to hardcode \$libdir into a binary during linking.
42726# This must work even if \$libdir does not exist
42727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42728
42729# Whether we need a single "-rpath" flag with a separated argument.
42730hardcode_libdir_separator=$lt_hardcode_libdir_separator
42731
42732# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42733# DIR into the resulting binary.
42734hardcode_direct=$hardcode_direct
42735
42736# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42737# DIR into the resulting binary and the resulting library dependency is
42738# "absolute",i.e impossible to change by setting \$shlibpath_var if the
42739# library is relocated.
42740hardcode_direct_absolute=$hardcode_direct_absolute
42741
42742# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42743# into the resulting binary.
42744hardcode_minus_L=$hardcode_minus_L
42745
42746# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42747# into the resulting binary.
42748hardcode_shlibpath_var=$hardcode_shlibpath_var
42749
42750# Set to "yes" if building a shared library automatically hardcodes DIR
42751# into the library and all subsequent libraries and executables linked
42752# against it.
42753hardcode_automatic=$hardcode_automatic
42754
42755# Set to yes if linker adds runtime paths of dependent libraries
42756# to runtime path list.
42757inherit_rpath=$inherit_rpath
42758
42759# Whether libtool must link a program against all its dependency libraries.
42760link_all_deplibs=$link_all_deplibs
42761
42762# Set to "yes" if exported symbols are required.
42763always_export_symbols=$always_export_symbols
42764
42765# The commands to list exported symbols.
42766export_symbols_cmds=$lt_export_symbols_cmds
42767
42768# Symbols that should not be listed in the preloaded symbols.
42769exclude_expsyms=$lt_exclude_expsyms
42770
42771# Symbols that must always be exported.
42772include_expsyms=$lt_include_expsyms
42773
42774# Commands necessary for linking programs (against libraries) with templates.
42775prelink_cmds=$lt_prelink_cmds
42776
42777# Commands necessary for finishing linking programs.
42778postlink_cmds=$lt_postlink_cmds
42779
42780# Specify filename containing input files.
42781file_list_spec=$lt_file_list_spec
42782
42783# How to hardcode a shared library path into an executable.
42784hardcode_action=$hardcode_action
42785
42786# ### END LIBTOOL CONFIG
42787
42788_LT_EOF
42789
42790 cat <<'_LT_EOF' >> "$cfgfile"
42791
42792# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
42793
42794# func_munge_path_list VARIABLE PATH
42795# -----------------------------------
42796# VARIABLE is name of variable containing _space_ separated list of
42797# directories to be munged by the contents of PATH, which is string
42798# having a format:
42799# "DIR[:DIR]:"
42800# string "DIR[ DIR]" will be prepended to VARIABLE
42801# ":DIR[:DIR]"
42802# string "DIR[ DIR]" will be appended to VARIABLE
42803# "DIRP[:DIRP]::[DIRA:]DIRA"
42804# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
42805# "DIRA[ DIRA]" will be appended to VARIABLE
42806# "DIR[:DIR]"
42807# VARIABLE will be replaced by "DIR[ DIR]"
42808func_munge_path_list ()
42809{
42810 case x$2 in
42811 x)
42812 ;;
42813 *:)
42814 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
42815 ;;
42816 x:*)
42817 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
42818 ;;
42819 *::*)
42820 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
42821 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
42822 ;;
42823 *)
42824 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
42825 ;;
42826 esac
42827}
42828
42829
42830# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
42831func_cc_basename ()
42832{
42833 for cc_temp in $*""; do
42834 case $cc_temp in
42835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42837 \-*) ;;
42838 *) break;;
42839 esac
42840 done
42841 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
42842}
42843
42844
42845# ### END FUNCTIONS SHARED WITH CONFIGURE
42846
42847_LT_EOF
42848
42849 case $host_os in
42850 aix3*)
42851 cat <<\_LT_EOF >> "$cfgfile"
42852# AIX sometimes has problems with the GCC collect2 program. For some
42853# reason, if we set the COLLECT_NAMES environment variable, the problems
42854# vanish in a puff of smoke.
42855if test set != "${COLLECT_NAMES+set}"; then
42856 COLLECT_NAMES=
42857 export COLLECT_NAMES
42858fi
42859_LT_EOF
42860 ;;
42861 esac
42862
42863
42864ltmain=$ac_aux_dir/ltmain.sh
42865
42866
42867 # We use sed instead of cat because bash on DJGPP gets confused if
42868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
42869 # text mode, it properly converts lines to CR/LF. This bash problem
42870 # is reportedly fixed, but why not run on old versions too?
42871 sed '$q' "$ltmain" >> "$cfgfile" \
42872 || (rm -f "$cfgfile"; exit 1)
42873
42874 mv -f "$cfgfile" "$ofile" ||
42875 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42876 chmod +x "$ofile"
42877
42878 ;;
42879
42880 esac
42881done # for ac_tag
42882
42883
42884as_fn_exit 0
42885_ACEOF
42886ac_clean_files=$ac_clean_files_save
42887
42888test $ac_write_fail = 0 ||
42889 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
42890
42891
42892# configure is writing to config.log, and then calls config.status.
42893# config.status does its own redirection, appending to config.log.
42894# Unfortunately, on DOS this fails, as config.log is still kept open
42895# by configure, so config.status won't be able to write to it; its
42896# output is simply discarded. So we exec the FD to /dev/null,
42897# effectively closing config.log, so it can be properly (re)opened and
42898# appended to by config.status. When coming back to configure, we
42899# need to make the FD available again.
42900if test "$no_create" != yes; then
42901 ac_cs_success=:
42902 ac_config_status_args=
42903 test "$silent" = yes &&
42904 ac_config_status_args="$ac_config_status_args --quiet"
42905 exec 5>/dev/null
42906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42907 exec 5>>config.log
42908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42909 # would make configure fail if this is the last instruction.
42910 $ac_cs_success || as_fn_exit 1
42911fi
42912if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
42913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42914$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42915fi
42916