]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - zfs/configure
157b19684af65045c2a70330bdc3a36842729a5f
[mirror_ubuntu-bionic-kernel.git] / zfs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.7.5.
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
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
100 IFS=$as_save_IFS
101
102 ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export 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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -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
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
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
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $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
265 exit 255
266 fi
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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_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.
313 as_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.
323 as_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.
371 as_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.
381 if (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 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # 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.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # 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.
416 as_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
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_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.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_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
508 ECHO_C= ECHO_N= ECHO_T=
509 case `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';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (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
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_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.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 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.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='zfs'
589 PACKAGE_TARNAME='zfs'
590 PACKAGE_VERSION='0.7.5'
591 PACKAGE_STRING='zfs 0.7.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_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
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 DEBUG_ZFS
636 DEBUG_STACKFLAGS
637 DEBUG_CFLAGS
638 WANT_MMAP_LIBAIO_FALSE
639 WANT_MMAP_LIBAIO_TRUE
640 WANT_DEVNAME2DEVID_FALSE
641 WANT_DEVNAME2DEVID_TRUE
642 CONFIG_QAT_FALSE
643 CONFIG_QAT_TRUE
644 CONFIG_KERNEL_FALSE
645 CONFIG_KERNEL_TRUE
646 CONFIG_USER_FALSE
647 CONFIG_USER_TRUE
648 RM
649 ZONENAME
650 NO_FORMAT_TRUNCATION
651 FRAME_LARGER_THAN
652 LIBAIO
653 LIBUDEV
654 LIBATTR
655 LIBBLKID
656 LIBTIRPC_CFLAGS
657 LIBTIRPC
658 LIBUUID
659 ZLIB
660 dracutdir
661 ZFS_INIT_SYSV
662 modulesloaddir
663 systemdpresetdir
664 systemdunitdir
665 ZFS_MODULE_LOAD
666 ZFS_INIT_SYSTEMD
667 udevruledir
668 udevdir
669 mounthelperdir
670 KERNELCPPFLAGS
671 KERNELMAKE_PARAMS
672 QAT_SYMBOLS
673 QAT_OBJ
674 QAT_SRC
675 SPL_SYMBOLS
676 SPL_VERSION
677 SPL_OBJ
678 SPL
679 LINUX_SYMBOLS
680 LINUX_VERSION
681 LINUX_OBJ
682 LINUX
683 TARGET_ASM_GENERIC_FALSE
684 TARGET_ASM_GENERIC_TRUE
685 TARGET_ASM_I386_FALSE
686 TARGET_ASM_I386_TRUE
687 TARGET_ASM_X86_64_FALSE
688 TARGET_ASM_X86_64_TRUE
689 TARGET_ASM_DIR
690 NO_BOOL_COMPARE
691 NO_UNUSED_BUT_SET_VARIABLE
692 ZFS_CONFIG
693 ALIEN_VERSION
694 ALIEN
695 HAVE_ALIEN
696 DPKGBUILD_VERSION
697 DPKGBUILD
698 HAVE_DPKGBUILD
699 DPKG_VERSION
700 DPKG
701 HAVE_DPKG
702 SRPM_DEFINE_COMMON
703 SRPM_DEFINE_DKMS
704 SRPM_DEFINE_KMOD
705 SRPM_DEFINE_UTIL
706 RPM_DEFINE_COMMON
707 RPM_DEFINE_DKMS
708 RPM_DEFINE_KMOD
709 RPM_DEFINE_UTIL
710 RPM_SPEC_DIR
711 RPMBUILD_VERSION
712 RPMBUILD
713 HAVE_RPMBUILD
714 RPM_VERSION
715 RPM
716 HAVE_RPM
717 DEFINE_INITRAMFS
718 DEFAULT_INITCONF_DIR
719 DEFAULT_INIT_SCRIPT
720 DEFAULT_INIT_DIR
721 DEFAULT_PACKAGE
722 VENDOR
723 am__fastdepCCAS_FALSE
724 am__fastdepCCAS_TRUE
725 CCASDEPMODE
726 CCASFLAGS
727 CCAS
728 CPP
729 LT_SYS_LIBRARY_PATH
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 RANLIB
737 ac_ct_AR
738 AR
739 DLLTOOL
740 OBJDUMP
741 LN_S
742 NM
743 ac_ct_DUMPBIN
744 DUMPBIN
745 LD
746 FGREP
747 EGREP
748 GREP
749 SED
750 LIBTOOL
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__quote
759 am__include
760 DEPDIR
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 AM_BACKSLASH
791 AM_DEFAULT_VERBOSITY
792 AM_DEFAULT_V
793 AM_V
794 MAINT
795 MAINTAINER_MODE_FALSE
796 MAINTAINER_MODE_TRUE
797 target_os
798 target_vendor
799 target_cpu
800 target
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 ZFS_META_LT_AGE
810 ZFS_META_LT_REVISION
811 ZFS_META_LT_CURRENT
812 ZFS_META_AUTHOR
813 ZFS_META_DATA
814 ZFS_META_ALIAS
815 ZFS_META_LICENSE
816 RELEASE
817 ZFS_META_RELEASE
818 ZFS_META_VERSION
819 ZFS_META_NAME
820 AWK
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 runstatedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_maintainer_mode
864 enable_silent_rules
865 enable_dependency_tracking
866 enable_shared
867 enable_static
868 with_pic
869 enable_fast_install
870 with_aix_soname
871 with_gnu_ld
872 with_sysroot
873 enable_libtool_lock
874 with_spec
875 with_config
876 enable_linux_builtin
877 with_linux
878 with_linux_obj
879 with_spl
880 with_spl_obj
881 with_spl_timeout
882 with_qat
883 with_qat_obj
884 with_mounthelperdir
885 with_udevdir
886 with_udevruledir
887 enable_systemd
888 with_systemdunitdir
889 with_systemdpresetdir
890 with_systemdmodulesloaddir
891 enable_sysvinit
892 with_dracutdir
893 with_tirpc
894 enable_debug
895 '
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 LT_SYS_LIBRARY_PATH
905 CPP
906 CCAS
907 CCASFLAGS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
931
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 runstatedir='${localstatedir}/run'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *=) ac_optarg= ;;
973 *) ac_optarg=yes ;;
974 esac
975
976 # Accept the important Cygnus configure options, so we can diagnose typos.
977
978 case $ac_dashdash$ac_option in
979 --)
980 ac_dashdash=yes ;;
981
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
986
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
991
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
998
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1001
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1006
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1013
1014 -disable-* | --disable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1039
1040 -enable-* | --enable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=\$ac_optarg ;;
1055
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1064
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1068
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1075
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1080
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1086
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1093
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1098
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1103
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1110
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1115
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1122
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1127
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1131
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1134 no_create=yes ;;
1135
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1139
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1148
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1153
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1160
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1167
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1184
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1189
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1194
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1198
1199 -runstatedir | --runstatedir | --runstatedi | --runstated \
1200 | --runstate | --runstat | --runsta | --runst | --runs \
1201 | --run | --ru | --r)
1202 ac_prev=runstatedir ;;
1203 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1204 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1205 | --run=* | --ru=* | --r=*)
1206 runstatedir=$ac_optarg ;;
1207
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1224
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1234
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1241
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1252
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1268
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1302
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1316
1317 *)
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 ;;
1324
1325 esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1331 fi
1332
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1339 fi
1340
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir runstatedir
1346 do
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1361
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1368
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1422 fi
1423 else
1424 ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458 \`configure' configures zfs 0.7.5 to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1513
1514 cat <<\_ACEOF
1515
1516 Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525 _ACEOF
1526 fi
1527
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive ) echo "Configuration of zfs 0.7.5:";;
1531 esac
1532 cat <<\_ACEOF
1533
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-maintainer-mode
1539 enable make rules and dependencies not useful (and
1540 sometimes confusing) to the casual installer
1541 --enable-silent-rules less verbose build output (undo: "make V=1")
1542 --disable-silent-rules verbose build output (undo: "make V=0")
1543 --enable-dependency-tracking
1544 do not reject slow dependency extractors
1545 --disable-dependency-tracking
1546 speeds up one-time build
1547 --enable-shared[=PKGS] build shared libraries [default=yes]
1548 --enable-static[=PKGS] build static libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --enable-linux-builtin Configure for builtin in-tree kernel modules
1553 [default=no]
1554 --enable-systemd install systemd unit/preset files [[default: yes]]
1555 --enable-sysvinit install SysV init scripts [default: yes]
1556 --enable-debug Enable generic debug support [default=no]
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-aix-soname=aix|svr4|both
1564 shared library versioning (aka "SONAME") variant to
1565 provide on AIX, [default=aix].
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1568 compiler's sysroot if not specified).
1569 --with-spec=SPEC Spec files 'generic|redhat'
1570 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1571 --with-linux=PATH Path to kernel source
1572 --with-linux-obj=PATH Path to kernel build objects
1573 --with-spl=PATH Path to spl source
1574 --with-spl-obj=PATH Path to spl build objects
1575 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1576 --with-qat=PATH Path to qat source
1577 --with-qat-obj=PATH Path to qat build objects
1578 --with-mounthelperdir=DIR
1579 install mount.zfs in dir [[/sbin]]
1580 --with-udevdir=DIR install udev helpers [default=check]
1581 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1582 --with-systemdunitdir=DIR
1583 install systemd unit files in dir
1584 [[/usr/lib/systemd/system]]
1585 --with-systemdpresetdir=DIR
1586 install systemd preset files in dir
1587 [[/usr/lib/systemd/system-preset]]
1588 --with-systemdmodulesloaddir=DIR
1589 install systemd module load files into dir
1590 [[/usr/lib/modules-load.d]]
1591 --with-dracutdir=DIR install dracut helpers [default=check]
1592 --with-tirpc use tirpc for xdr encoding [default=check]
1593
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 LT_SYS_LIBRARY_PATH
1603 User-defined run-time library search path.
1604 CPP C preprocessor
1605 CCAS assembler compiler command (defaults to CC)
1606 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1607
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1610
1611 Report bugs to the package provider.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 zfs configure 0.7.5
1675 generated by GNU Autoconf 2.69
1676
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 test -x conftest$ac_exeext
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_header_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1844 ac_fn_c_try_run ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=$ac_status
1875 fi
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_run
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_c_check_header_mongrel ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if eval \${$3+:} false; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ;;
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ;;
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2027 fi
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 fi
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034 } # ac_fn_c_check_header_mongrel
2035 cat >config.log <<_ACEOF
2036 This file contains any messages produced by compilers while
2037 running configure, to aid debugging if configure makes a mistake.
2038
2039 It was created by zfs $as_me 0.7.5, which was
2040 generated by GNU Autoconf 2.69. Invocation command line was
2041
2042 $ $0 $@
2043
2044 _ACEOF
2045 exec 5>>config.log
2046 {
2047 cat <<_ASUNAME
2048 ## --------- ##
2049 ## Platform. ##
2050 ## --------- ##
2051
2052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057
2058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2060
2061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2064 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2068
2069 _ASUNAME
2070
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 $as_echo "PATH: $as_dir"
2077 done
2078 IFS=$as_save_IFS
2079
2080 } >&5
2081
2082 cat >&5 <<_ACEOF
2083
2084
2085 ## ----------- ##
2086 ## Core tests. ##
2087 ## ----------- ##
2088
2089 _ACEOF
2090
2091
2092 # Keep a trace of the command line.
2093 # Strip out --no-create and --no-recursion so they do not pile up.
2094 # Strip out --silent because we don't want to record it for future runs.
2095 # Also quote any args containing shell meta-characters.
2096 # Make two passes to allow for proper duplicate-argument suppression.
2097 ac_configure_args=
2098 ac_configure_args0=
2099 ac_configure_args1=
2100 ac_must_keep_next=false
2101 for ac_pass in 1 2
2102 do
2103 for ac_arg
2104 do
2105 case $ac_arg in
2106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2108 | -silent | --silent | --silen | --sile | --sil)
2109 continue ;;
2110 *\'*)
2111 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 esac
2113 case $ac_pass in
2114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2115 2)
2116 as_fn_append ac_configure_args1 " '$ac_arg'"
2117 if test $ac_must_keep_next = true; then
2118 ac_must_keep_next=false # Got value, back to normal.
2119 else
2120 case $ac_arg in
2121 *=* | --config-cache | -C | -disable-* | --disable-* \
2122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2124 | -with-* | --with-* | -without-* | --without-* | --x)
2125 case "$ac_configure_args0 " in
2126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2127 esac
2128 ;;
2129 -* ) ac_must_keep_next=true ;;
2130 esac
2131 fi
2132 as_fn_append ac_configure_args " '$ac_arg'"
2133 ;;
2134 esac
2135 done
2136 done
2137 { ac_configure_args0=; unset ac_configure_args0;}
2138 { ac_configure_args1=; unset ac_configure_args1;}
2139
2140 # When interrupted or exit'd, cleanup temporary files, and complete
2141 # config.log. We remove comments because anyway the quotes in there
2142 # would cause problems or look ugly.
2143 # WARNING: Use '\'' to represent an apostrophe within the trap.
2144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2145 trap 'exit_status=$?
2146 # Save into config.log some information that might help in debugging.
2147 {
2148 echo
2149
2150 $as_echo "## ---------------- ##
2151 ## Cache variables. ##
2152 ## ---------------- ##"
2153 echo
2154 # The following way of writing the cache mishandles newlines in values,
2155 (
2156 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2157 eval ac_val=\$$ac_var
2158 case $ac_val in #(
2159 *${as_nl}*)
2160 case $ac_var in #(
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 esac
2164 case $ac_var in #(
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2168 esac ;;
2169 esac
2170 done
2171 (set) 2>&1 |
2172 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
2174 sed -n \
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 ;; #(
2178 *)
2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 ;;
2181 esac |
2182 sort
2183 )
2184 echo
2185
2186 $as_echo "## ----------------- ##
2187 ## Output variables. ##
2188 ## ----------------- ##"
2189 echo
2190 for ac_var in $ac_subst_vars
2191 do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
2197 done | sort
2198 echo
2199
2200 if test -n "$ac_subst_files"; then
2201 $as_echo "## ------------------- ##
2202 ## File substitutions. ##
2203 ## ------------------- ##"
2204 echo
2205 for ac_var in $ac_subst_files
2206 do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
2212 done | sort
2213 echo
2214 fi
2215
2216 if test -s confdefs.h; then
2217 $as_echo "## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##"
2220 echo
2221 cat confdefs.h
2222 echo
2223 fi
2224 test "$ac_signal" != 0 &&
2225 $as_echo "$as_me: caught signal $ac_signal"
2226 $as_echo "$as_me: exit $exit_status"
2227 } >&5
2228 rm -f core *.core core.conftest.* &&
2229 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 exit $exit_status
2231 ' 0
2232 for ac_signal in 1 2 13 15; do
2233 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234 done
2235 ac_signal=0
2236
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest* confdefs.h
2239
2240 $as_echo "/* confdefs.h */" > confdefs.h
2241
2242 # Predefined preprocessor variables.
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_URL "$PACKAGE_URL"
2266 _ACEOF
2267
2268
2269 # Let the site file select an alternate cache file if it wants to.
2270 # Prefer an explicitly selected file to automatically selected ones.
2271 ac_site_file1=NONE
2272 ac_site_file2=NONE
2273 if test -n "$CONFIG_SITE"; then
2274 # We do not want a PATH search for config.site.
2275 case $CONFIG_SITE in #((
2276 -*) ac_site_file1=./$CONFIG_SITE;;
2277 */*) ac_site_file1=$CONFIG_SITE;;
2278 *) ac_site_file1=./$CONFIG_SITE;;
2279 esac
2280 elif test "x$prefix" != xNONE; then
2281 ac_site_file1=$prefix/share/config.site
2282 ac_site_file2=$prefix/etc/config.site
2283 else
2284 ac_site_file1=$ac_default_prefix/share/config.site
2285 ac_site_file2=$ac_default_prefix/etc/config.site
2286 fi
2287 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2288 do
2289 test "x$ac_site_file" = xNONE && continue
2290 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2292 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2293 sed 's/^/| /' "$ac_site_file" >&5
2294 . "$ac_site_file" \
2295 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 as_fn_error $? "failed to load site script $ac_site_file
2298 See \`config.log' for more details" "$LINENO" 5; }
2299 fi
2300 done
2301
2302 if test -r "$cache_file"; then
2303 # Some versions of bash will fail to source /dev/null (special files
2304 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2305 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 $as_echo "$as_me: loading cache $cache_file" >&6;}
2308 case $cache_file in
2309 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310 *) . "./$cache_file";;
2311 esac
2312 fi
2313 else
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 $as_echo "$as_me: creating cache $cache_file" >&6;}
2316 >$cache_file
2317 fi
2318
2319 # Check that the precious variables saved in the cache have kept the same
2320 # value.
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324 eval ac_new_set=\$ac_env_${ac_var}_set
2325 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326 eval ac_new_val=\$ac_env_${ac_var}_value
2327 case $ac_old_set,$ac_new_set in
2328 set,)
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2332 ,set)
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,);;
2337 *)
2338 if test "x$ac_old_val" != "x$ac_new_val"; then
2339 # differences in whitespace do not lead to failure.
2340 ac_old_val_w=`echo x $ac_old_val`
2341 ac_new_val_w=`echo x $ac_new_val`
2342 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345 ac_cache_corrupted=:
2346 else
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349 eval $ac_var=\$ac_old_val
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2352 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2355 fi;;
2356 esac
2357 # Pass precious variables to config.status.
2358 if test "$ac_new_set" = set; then
2359 case $ac_new_val in
2360 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 *) ac_arg=$ac_var=$ac_new_val ;;
2362 esac
2363 case " $ac_configure_args " in
2364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2365 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366 esac
2367 fi
2368 done
2369 if $ac_cache_corrupted; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 fi
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395
2396
2397 for ac_prog in gawk mawk nawk awk
2398 do
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_AWK+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$AWK"; then
2407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_AWK="$ac_prog"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 AWK=$ac_cv_prog_AWK
2427 if test -n "$AWK"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2429 $as_echo "$AWK" >&6; }
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435
2436 test -n "$AWK" && break
2437 done
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2440 $as_echo_n "checking metadata... " >&6; }
2441
2442 META="$srcdir/META"
2443 _zfs_ac_meta_type="none"
2444 if test -f "$META"; then
2445 _zfs_ac_meta_type="META file"
2446 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2447
2448 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_NAME"; then
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define ZFS_META_NAME "$ZFS_META_NAME"
2453 _ACEOF
2454
2455
2456 fi
2457
2458 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_VERSION"; then
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2463 _ACEOF
2464
2465
2466 fi
2467
2468 if test -n "${_dpkg_parsechangelog}"; then
2469 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2470 | $AWK '$1 == "Version:" { print $2; }' \
2471 | cut -d- -f1)
2472 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2473 as_fn_error $? "
2474 *** Version $ZFS_META_VERSION in the META file is different than
2475 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2476 *** packaging require that these files have the same version.
2477 " "$LINENO" 5
2478 fi
2479 fi
2480
2481 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2482
2483 if test -n "${_dpkg_parsechangelog}"; then
2484 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2485 | $AWK '$1 == "Version:" { print $2; }' \
2486 | cut -d- -f2-)
2487 if test -n "${_dpkg_release}"; then
2488 ZFS_META_RELEASE=${_dpkg_release}
2489 _zfs_ac_meta_type="dpkg-parsechangelog"
2490 fi
2491 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2492 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2493 _alias=$(git describe --match=${_match} 2>/dev/null)
2494 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2495 if test -n "${_release}"; then
2496 ZFS_META_RELEASE=${_release}
2497 _zfs_ac_meta_type="git describe"
2498 else
2499 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2500 _alias=$(git describe --match=${_match} 2>/dev/null)
2501 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2502 if test -n "${_release}"; then
2503 ZFS_META_RELEASE=${_release}
2504 _zfs_ac_meta_type="git describe"
2505 fi
2506 fi
2507 fi
2508
2509 if test -n "$ZFS_META_RELEASE"; then
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2513 _ACEOF
2514
2515
2516
2517 RELEASE="$ZFS_META_RELEASE"
2518
2519 fi
2520
2521 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2522 if test -n "$ZFS_META_LICENSE"; then
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2526 _ACEOF
2527
2528
2529 fi
2530
2531 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2532 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2533 test -n "$ZFS_META_RELEASE" &&
2534 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2538 _ACEOF
2539
2540
2541 fi
2542
2543 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2544 if test -n "$ZFS_META_DATA"; then
2545
2546 cat >>confdefs.h <<_ACEOF
2547 #define ZFS_META_DATA "$ZFS_META_DATA"
2548 _ACEOF
2549
2550
2551 fi
2552
2553 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2554 if test -n "$ZFS_META_AUTHOR"; then
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2558 _ACEOF
2559
2560
2561 fi
2562
2563
2564 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2565 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2566 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2567 if test -n "$ZFS_META_LT_CURRENT" \
2568 -o -n "$ZFS_META_LT_REVISION" \
2569 -o -n "$ZFS_META_LT_AGE"; then
2570 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2571 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2572 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2576 _ACEOF
2577
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2581 _ACEOF
2582
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2586 _ACEOF
2587
2588
2589
2590
2591 fi
2592 fi
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2595 $as_echo "$_zfs_ac_meta_type" >&6; }
2596
2597
2598 ac_aux_dir=
2599 for ac_dir in config "$srcdir"/config; do
2600 if test -f "$ac_dir/install-sh"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/install-sh -c"
2603 break
2604 elif test -f "$ac_dir/install.sh"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/install.sh -c"
2607 break
2608 elif test -f "$ac_dir/shtool"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 break
2612 fi
2613 done
2614 if test -z "$ac_aux_dir"; then
2615 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2616 fi
2617
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625
2626
2627
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2644
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2649 *-*-*) ;;
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2651 esac
2652 build=$ac_cv_build
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_build
2655 shift
2656 build_cpu=$1
2657 build_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 build_os=$*
2662 IFS=$ac_save_IFS
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2664
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2673 else
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676 fi
2677
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2681 case $ac_cv_host in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2684 esac
2685 host=$ac_cv_host
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_host
2688 shift
2689 host_cpu=$1
2690 host_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 host_os=$*
2695 IFS=$ac_save_IFS
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2697
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if ${ac_cv_target+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2706 else
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2709 fi
2710
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2715 *-*-*) ;;
2716 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2717 esac
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2720 set x $ac_cv_target
2721 shift
2722 target_cpu=$1
2723 target_vendor=$2
2724 shift; shift
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2727 target_os=$*
2728 IFS=$ac_save_IFS
2729 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2730
2731
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2736 NONENONEs,x,x, &&
2737 program_prefix=${target_alias}-
2738
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2742 # Check whether --enable-maintainer-mode was given.
2743 if test "${enable_maintainer_mode+set}" = set; then :
2744 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2745 else
2746 USE_MAINTAINER_MODE=no
2747 fi
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2750 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2751 if test $USE_MAINTAINER_MODE = yes; then
2752 MAINTAINER_MODE_TRUE=
2753 MAINTAINER_MODE_FALSE='#'
2754 else
2755 MAINTAINER_MODE_TRUE='#'
2756 MAINTAINER_MODE_FALSE=
2757 fi
2758
2759 MAINT=$MAINTAINER_MODE_TRUE
2760
2761
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2765 fi
2766
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=0;;
2771 esac
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if $as_echo 'TRUE=$(BAR$(V))
2779 BAR0=false
2780 BAR1=true
2781 V=1
2782 am__doit:
2783 @$(TRUE)
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2786 else
2787 am_cv_make_support_nested_variables=no
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2793 AM_V='$(V)'
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795 else
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 fi
2799 AM_BACKSLASH='\'
2800
2801 am__api_version='1.15'
2802
2803 # Find a good install program. We prefer a C program (faster),
2804 # so one script is as good as another. But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2809 # AIX /bin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if ${ac_cv_path_install+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830 ./ | .// | /[cC]/* | \
2831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2833 /usr/ucb/* ) ;;
2834 *)
2835 # OSF1 and SCO ODT 3.0 have their own names for install.
2836 # Don't use installbsd from OSF since it installs stuff as root
2837 # by default.
2838 for ac_prog in ginstall scoinst install; do
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2841 if test $ac_prog = install &&
2842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843 # AIX install. It has an incompatible calling convention.
2844 :
2845 elif test $ac_prog = install &&
2846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # program-specific install script used by HP pwplus--don't use.
2848 :
2849 else
2850 rm -rf conftest.one conftest.two conftest.dir
2851 echo one > conftest.one
2852 echo two > conftest.two
2853 mkdir conftest.dir
2854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855 test -s conftest.one && test -s conftest.two &&
2856 test -s conftest.dir/conftest.one &&
2857 test -s conftest.dir/conftest.two
2858 then
2859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2860 break 3
2861 fi
2862 fi
2863 fi
2864 done
2865 done
2866 ;;
2867 esac
2868
2869 done
2870 IFS=$as_save_IFS
2871
2872 rm -rf conftest.one conftest.two conftest.dir
2873
2874 fi
2875 if test "${ac_cv_path_install+set}" = set; then
2876 INSTALL=$ac_cv_path_install
2877 else
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for INSTALL within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 INSTALL=$ac_install_sh
2883 fi
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2887
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2897 $as_echo_n "checking whether build environment is sane... " >&6; }
2898 # Reject unsafe characters in $srcdir or the absolute working directory
2899 # name. Accept space and tab only in the latter.
2900 am_lf='
2901 '
2902 case `pwd` in
2903 *[\\\"\#\$\&\'\`$am_lf]*)
2904 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2905 esac
2906 case $srcdir in
2907 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2908 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2909 esac
2910
2911 # Do 'set' in a subshell so we don't clobber the current shell's
2912 # arguments. Must try -L first in case configure is actually a
2913 # symlink; some systems play weird games with the mod time of symlinks
2914 # (eg FreeBSD returns the mod time of the symlink's containing
2915 # directory).
2916 if (
2917 am_has_slept=no
2918 for am_try in 1 2; do
2919 echo "timestamp, slept: $am_has_slept" > conftest.file
2920 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2921 if test "$*" = "X"; then
2922 # -L didn't work.
2923 set X `ls -t "$srcdir/configure" conftest.file`
2924 fi
2925 if test "$*" != "X $srcdir/configure conftest.file" \
2926 && test "$*" != "X conftest.file $srcdir/configure"; then
2927
2928 # If neither matched, then we have a broken ls. This can happen
2929 # if, for instance, CONFIG_SHELL is bash and it inherits a
2930 # broken ls alias from the environment. This has actually
2931 # happened. Such a system could not be considered "sane".
2932 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2933 alias in your environment" "$LINENO" 5
2934 fi
2935 if test "$2" = conftest.file || test $am_try -eq 2; then
2936 break
2937 fi
2938 # Just in case.
2939 sleep 1
2940 am_has_slept=yes
2941 done
2942 test "$2" = conftest.file
2943 )
2944 then
2945 # Ok.
2946 :
2947 else
2948 as_fn_error $? "newly created file is older than distributed files!
2949 Check your system clock" "$LINENO" 5
2950 fi
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 # If we didn't sleep, we still need to ensure time stamps of config.status and
2954 # generated files are strictly newer.
2955 am_sleep_pid=
2956 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2957 ( sleep 1 ) &
2958 am_sleep_pid=$!
2959 fi
2960
2961 rm -f conftest.file
2962
2963 test "$program_prefix" != NONE &&
2964 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE &&
2967 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2968 # Double any \ or $.
2969 # By default was `s,x,x', remove it if useless.
2970 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2971 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2972
2973 # Expand $ac_aux_dir to an absolute path.
2974 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2975
2976 if test x"${MISSING+set}" != xset; then
2977 case $am_aux_dir in
2978 *\ * | *\ *)
2979 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980 *)
2981 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982 esac
2983 fi
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --is-lightweight"; then
2986 am_missing_run="$MISSING "
2987 else
2988 am_missing_run=
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2991 fi
2992
2993 if test x"${install_sh+set}" != xset; then
2994 case $am_aux_dir in
2995 *\ * | *\ *)
2996 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997 *)
2998 install_sh="\${SHELL} $am_aux_dir/install-sh"
2999 esac
3000 fi
3001
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip". However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_STRIP"; then
3047 ac_ct_STRIP=$STRIP
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_STRIP="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084 if test "x$ac_ct_STRIP" = x; then
3085 STRIP=":"
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 STRIP=$ac_ct_STRIP
3094 fi
3095 else
3096 STRIP="$ac_cv_prog_STRIP"
3097 fi
3098
3099 fi
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if ${ac_cv_path_mkdir+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in mkdir gmkdir; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3121 break 3;;
3122 esac
3123 done
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129
3130 test -d ./--version && rmdir ./--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P="$ac_cv_path_mkdir -p"
3133 else
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P="$ac_install_sh -d"
3139 fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146 set x ${MAKE-make}
3147 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 cat >conftest.make <<\_ACEOF
3152 SHELL = /bin/sh
3153 all:
3154 @echo '@@@%%%=$(MAKE)=@@@%%%'
3155 _ACEOF
3156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 *@@@%%%=?*=@@@%%%*)
3159 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 *)
3161 eval ac_cv_prog_make_${ac_make}_set=no;;
3162 esac
3163 rm -f conftest.make
3164 fi
3165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168 SET_MAKE=
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 SET_MAKE="MAKE=${MAKE-make}"
3173 fi
3174
3175 rm -rf .tst 2>/dev/null
3176 mkdir .tst 2>/dev/null
3177 if test -d .tst; then
3178 am__leading_dot=.
3179 else
3180 am__leading_dot=_
3181 fi
3182 rmdir .tst 2>/dev/null
3183
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status; then
3190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191 fi
3192 fi
3193
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196 if (cygpath --version) >/dev/null 2>/dev/null; then
3197 CYGPATH_W='cygpath -w'
3198 else
3199 CYGPATH_W=echo
3200 fi
3201 fi
3202
3203
3204 # Define the identity of the package.
3205 PACKAGE='zfs'
3206 VERSION='0.7.5'
3207
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE "$PACKAGE"
3211 _ACEOF
3212
3213
3214 cat >>confdefs.h <<_ACEOF
3215 #define VERSION "$VERSION"
3216 _ACEOF
3217
3218 # Some tools Automake needs.
3219
3220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221
3222
3223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3224
3225
3226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227
3228
3229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3230
3231
3232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233
3234 # For better backward compatibility. To be removed once Automake 1.9.x
3235 # dies out for good. For more background, see:
3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3238 mkdir_p='$(MKDIR_P)'
3239
3240 # We need awk for the "check" target (and possibly the TAP driver). The
3241 # system "awk" is bad on some platforms.
3242 # Always define AMTAR for backward compatibility. Yes, it's still used
3243 # in the wild :-( We should find a proper way to deprecate it ...
3244 AMTAR='$${TAR-tar}'
3245
3246
3247 # We'll loop over all known methods to create a tar archive until one works.
3248 _am_tools='gnutar pax cpio none'
3249
3250 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3251
3252
3253
3254
3255
3256
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK; else
3266 cat >&2 <<'END'
3267 Oops!
3268
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3273
3274 Please tell bug-automake@gnu.org about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3277
3278 END
3279 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282 echo >&2
3283 else
3284 cat >&2 <<'END'
3285 Aborting the configuration process, to ensure you take notice of the issue.
3286
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3289
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3293
3294 END
3295 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3296 fi
3297 fi
3298
3299 ac_config_headers="$ac_config_headers zfs_config.h"
3300
3301
3302
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$ac_cv_prog_CC"; then
3348 ac_ct_CC=$CC
3349 # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 if test -n "$ac_ct_CC"; then
3357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_ac_ct_CC="gcc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3369 fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385 if test "x$ac_ct_CC" = x; then
3386 CC=""
3387 else
3388 case $cross_compiling:$ac_tool_warned in
3389 yes:)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394 CC=$ac_ct_CC
3395 fi
3396 else
3397 CC="$ac_cv_prog_CC"
3398 fi
3399
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC="${ac_tool_prefix}cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439 fi
3440 fi
3441 if test -z "$CC"; then
3442 # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3451 else
3452 ac_prog_rejected=no
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461 ac_prog_rejected=yes
3462 continue
3463 fi
3464 ac_cv_prog_CC="cc"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468 done
3469 done
3470 IFS=$as_save_IFS
3471
3472 if test $ac_prog_rejected = yes; then
3473 # We found a bogon in the path, so make sure we never use it.
3474 set dummy $ac_cv_prog_CC
3475 shift
3476 if test $# != 0; then
3477 # We chose a different compiler from the bogus one.
3478 # However, it has the same basename, so the bogon will be chosen
3479 # first if we set CC to just the basename; use the full file name.
3480 shift
3481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3482 fi
3483 fi
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$CC"; then
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog in cl.exe
3500 do
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 fi
3536
3537
3538 test -n "$CC" && break
3539 done
3540 fi
3541 if test -z "$CC"; then
3542 ac_ct_CC=$CC
3543 for ac_prog in cl.exe
3544 do
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582 test -n "$ac_ct_CC" && break
3583 done
3584
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3595 fi
3596 fi
3597
3598 fi
3599
3600
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3605
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3608 set X $ac_compile
3609 ac_compiler=$2
3610 for ac_option in --version -v -V -qversion; do
3611 { { ac_try="$ac_compiler $ac_option >&5"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3619 ac_status=$?
3620 if test -s conftest.err; then
3621 sed '10a\
3622 ... rest of stderr output deleted ...
3623 10q' conftest.err >conftest.er1
3624 cat conftest.er1 >&5
3625 fi
3626 rm -f conftest.er1 conftest.err
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3629 done
3630
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3646 # of exeext.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3650
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3653
3654 ac_rmfiles=
3655 for ac_file in $ac_files
3656 do
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3660 esac
3661 done
3662 rm -f $ac_rmfiles
3663
3664 if { { ac_try="$ac_link_default"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link_default") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3679 # Autoconf.
3680 for ac_file in $ac_files ''
3681 do
3682 test -f "$ac_file" || continue
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3685 ;;
3686 [ab].out )
3687 # We found the default executable, but exeext='' is most
3688 # certainly right.
3689 break;;
3690 *.* )
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3692 then :; else
3693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694 fi
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3699 # actually working.
3700 break;;
3701 * )
3702 break;;
3703 esac
3704 done
3705 test "$ac_cv_exeext" = no && ac_cv_exeext=
3706
3707 else
3708 ac_file=''
3709 fi
3710 if test -z "$ac_file"; then :
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error 77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext=$ac_cv_exeext
3729
3730 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3731 ac_clean_files=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try="$ac_link"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link") 2>&5
3742 ac_status=$?
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3748 # `rm'.
3749 for ac_file in conftest.exe conftest conftest.*; do
3750 test -f "$ac_file" || continue
3751 case $ac_file in
3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754 break;;
3755 * ) break;;
3756 esac
3757 done
3758 else
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3763 fi
3764 rm -f conftest conftest$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3767
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdio.h>
3774 int
3775 main ()
3776 {
3777 FILE *f = fopen ("conftest.out", "w");
3778 return ferror (f) || fclose (f) != 0;
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 ac_clean_files="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run. If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790 { { ac_try="$ac_link"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link") 2>&5
3798 ac_status=$?
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801 if { ac_try='./conftest$ac_cv_exeext'
3802 { { case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3809 ac_status=$?
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3812 cross_compiling=no
3813 else
3814 if test "$cross_compiling" = maybe; then
3815 cross_compiling=yes
3816 else
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3827
3828 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try="$ac_compile"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compile") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863 break;;
3864 esac
3865 done
3866 else
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3876 fi
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3880 ac_objext=$OBJEXT
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892 #ifndef __GNUC__
3893 choke me
3894 #endif
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_compiler_gnu=yes
3902 else
3903 ac_compiler_gnu=no
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3912 GCC=yes
3913 else
3914 GCC=
3915 fi
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 ac_save_c_werror_flag=$ac_c_werror_flag
3924 ac_c_werror_flag=yes
3925 ac_cv_prog_cc_g=no
3926 CFLAGS="-g"
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 int
3931 main ()
3932 {
3933
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_cv_prog_cc_g=yes
3940 else
3941 CFLAGS=""
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954
3955 else
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3957 CFLAGS="-g"
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960
3961 int
3962 main ()
3963 {
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_cv_prog_cc_g=yes
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982 CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984 if test "$GCC" = yes; then
3985 CFLAGS="-g -O2"
3986 else
3987 CFLAGS="-g"
3988 fi
3989 else
3990 if test "$GCC" = yes; then
3991 CFLAGS="-O2"
3992 else
3993 CFLAGS=
3994 fi
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 ac_cv_prog_cc_c89=no
4002 ac_save_CC=$CC
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <stdarg.h>
4006 #include <stdio.h>
4007 struct stat;
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4012 char **p;
4013 int i;
4014 {
4015 return p[i];
4016 }
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4018 {
4019 char *s;
4020 va_list v;
4021 va_start (v,p);
4022 s = g (p, va_arg (v,int));
4023 va_end (v);
4024 return s;
4025 }
4026
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4028 function prototypes and stuff, but not '\xHH' hex character constants.
4029 These don't provoke an error unfortunately, instead are silently treated
4030 as 'x'. The following induces an error, until -std is added to get
4031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4032 array size at least. It's necessary to write '\x00'==0 to get something
4033 that's true only with -std. */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4035
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037 inside strings and character constants. */
4038 #define FOO(x) 'x'
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4040
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045 int argc;
4046 char **argv;
4047 int
4048 main ()
4049 {
4050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4057 do
4058 CC="$ac_save_CC $ac_arg"
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_c89=$ac_arg
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4067
4068 fi
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4071 x)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 $as_echo "none needed" >&6; } ;;
4074 xno)
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 $as_echo "unsupported" >&6; } ;;
4077 *)
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4082 if test "x$ac_cv_prog_cc_c89" != xno; then :
4083
4084 fi
4085
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4098 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4099 if ${am_cv_prog_cc_c_o+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 # Make sure it works both with $CC and with simple cc.
4114 # Following AC_PROG_CC_C_O, we do the test twice because some
4115 # compilers refuse to overwrite an existing .o file with -o,
4116 # though they will create one.
4117 am_cv_prog_cc_c_o=yes
4118 for am_i in 1 2; do
4119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } \
4124 && test -f conftest2.$ac_objext; then
4125 : OK
4126 else
4127 am_cv_prog_cc_c_o=no
4128 break
4129 fi
4130 done
4131 rm -f core conftest*
4132 unset am_i
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4135 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4136 if test "$am_cv_prog_cc_c_o" != yes; then
4137 # Losing compiler, so override with the script.
4138 # FIXME: It is wrong to rewrite CC.
4139 # But if we don't then we get into trouble of one sort or another.
4140 # A longer-term fix would be to have automake use am__CC in this case,
4141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4142 CC="$am_aux_dir/compile $CC"
4143 fi
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150 DEPDIR="${am__leading_dot}deps"
4151
4152 ac_config_commands="$ac_config_commands depfiles"
4153
4154
4155 am_make=${MAKE-make}
4156 cat > confinc << 'END'
4157 am__doit:
4158 @echo this is the am__doit target
4159 .PHONY: am__doit
4160 END
4161 # If we don't find an include directive, just comment out the code.
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4163 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4164 am__include="#"
4165 am__quote=
4166 _am_result=none
4167 # First try GNU make style include.
4168 echo "include confinc" > confmf
4169 # Ignore all kinds of additional output from 'make'.
4170 case `$am_make -s -f confmf 2> /dev/null` in #(
4171 *the\ am__doit\ target*)
4172 am__include=include
4173 am__quote=
4174 _am_result=GNU
4175 ;;
4176 esac
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179 echo '.include "confinc"' > confmf
4180 case `$am_make -s -f confmf 2> /dev/null` in #(
4181 *the\ am__doit\ target*)
4182 am__include=.include
4183 am__quote="\""
4184 _am_result=BSD
4185 ;;
4186 esac
4187 fi
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4191 $as_echo "$_am_result" >&6; }
4192 rm -f confinc confmf
4193
4194 # Check whether --enable-dependency-tracking was given.
4195 if test "${enable_dependency_tracking+set}" = set; then :
4196 enableval=$enable_dependency_tracking;
4197 fi
4198
4199 if test "x$enable_dependency_tracking" != xno; then
4200 am_depcomp="$ac_aux_dir/depcomp"
4201 AMDEPBACKSLASH='\'
4202 am__nodep='_no'
4203 fi
4204 if test "x$enable_dependency_tracking" != xno; then
4205 AMDEP_TRUE=
4206 AMDEP_FALSE='#'
4207 else
4208 AMDEP_TRUE='#'
4209 AMDEP_FALSE=
4210 fi
4211
4212
4213
4214 depcc="$CC" am_compiler_list=
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217 $as_echo_n "checking dependency style of $depcc... " >&6; }
4218 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named 'D' -- because '-MD' means "put the output
4226 # in D".
4227 rm -rf conftest.dir
4228 mkdir conftest.dir
4229 # Copy depcomp to subdir because otherwise we won't find it if we're
4230 # using a relative directory.
4231 cp "$am_depcomp" conftest.dir
4232 cd conftest.dir
4233 # We will build objects and dependencies in a subdirectory because
4234 # it helps to detect inapplicable dependency modes. For instance
4235 # both Tru64's cc and ICC support -MD to output dependencies as a
4236 # side effect of compilation, but ICC will put the dependencies in
4237 # the current directory while Tru64 will put them in the object
4238 # directory.
4239 mkdir sub
4240
4241 am_cv_CC_dependencies_compiler_type=none
4242 if test "$am_compiler_list" = ""; then
4243 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4244 fi
4245 am__universal=false
4246 case " $depcc " in #(
4247 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4248 esac
4249
4250 for depmode in $am_compiler_list; do
4251 # Setup a source with many dependencies, because some compilers
4252 # like to wrap large dependency lists on column 80 (with \), and
4253 # we should not choose a depcomp mode which is confused by this.
4254 #
4255 # We need to recreate these files for each test, as the compiler may
4256 # overwrite some of them when testing with obscure command lines.
4257 # This happens at least with the AIX C compiler.
4258 : > sub/conftest.c
4259 for i in 1 2 3 4 5 6; do
4260 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4261 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4262 # Solaris 10 /bin/sh.
4263 echo '/* dummy */' > sub/conftst$i.h
4264 done
4265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4266
4267 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4268 # mode. It turns out that the SunPro C++ compiler does not properly
4269 # handle '-M -o', and we need to detect this. Also, some Intel
4270 # versions had trouble with output in subdirs.
4271 am__obj=sub/conftest.${OBJEXT-o}
4272 am__minus_obj="-o $am__obj"
4273 case $depmode in
4274 gcc)
4275 # This depmode causes a compiler race in universal mode.
4276 test "$am__universal" = false || continue
4277 ;;
4278 nosideeffect)
4279 # After this tag, mechanisms are not by side-effect, so they'll
4280 # only be used when explicitly requested.
4281 if test "x$enable_dependency_tracking" = xyes; then
4282 continue
4283 else
4284 break
4285 fi
4286 ;;
4287 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4288 # This compiler won't grok '-c -o', but also, the minuso test has
4289 # not run yet. These depmodes are late enough in the game, and
4290 # so weak that their functioning should not be impacted.
4291 am__obj=conftest.${OBJEXT-o}
4292 am__minus_obj=
4293 ;;
4294 none) break ;;
4295 esac
4296 if depmode=$depmode \
4297 source=sub/conftest.c object=$am__obj \
4298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4299 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4300 >/dev/null 2>conftest.err &&
4301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4303 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4305 # icc doesn't choke on unknown options, it will just issue warnings
4306 # or remarks (even with -Werror). So we grep stderr for any message
4307 # that says an option was ignored or not supported.
4308 # When given -MP, icc 7.0 and 7.1 complain thusly:
4309 # icc: Command line warning: ignoring option '-M'; no argument required
4310 # The diagnosis changed in icc 8.0:
4311 # icc: Command line remark: option '-MP' not supported
4312 if (grep 'ignoring option' conftest.err ||
4313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4314 am_cv_CC_dependencies_compiler_type=$depmode
4315 break
4316 fi
4317 fi
4318 done
4319
4320 cd ..
4321 rm -rf conftest.dir
4322 else
4323 am_cv_CC_dependencies_compiler_type=none
4324 fi
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4328 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4329 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4330
4331 if
4332 test "x$enable_dependency_tracking" != xno \
4333 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4334 am__fastdepCC_TRUE=
4335 am__fastdepCC_FALSE='#'
4336 else
4337 am__fastdepCC_TRUE='#'
4338 am__fastdepCC_FALSE=
4339 fi
4340
4341
4342 case `pwd` in
4343 *\ * | *\ *)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4345 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4346 esac
4347
4348
4349
4350 macro_version='2.4.6'
4351 macro_revision='2.4.6'
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365 ltmain=$ac_aux_dir/ltmain.sh
4366
4367 # Backslashify metacharacters that are still active within
4368 # double-quoted strings.
4369 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4370
4371 # Same as above, but do not quote variable references.
4372 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4373
4374 # Sed substitution to delay expansion of an escaped shell variable in a
4375 # double_quote_subst'ed string.
4376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4377
4378 # Sed substitution to delay expansion of an escaped single quote.
4379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4380
4381 # Sed substitution to avoid accidental globbing in evaled expressions
4382 no_glob_subst='s/\*/\\\*/g'
4383
4384 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4385 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4386 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4389 $as_echo_n "checking how to print strings... " >&6; }
4390 # Test print first, because it will be a builtin if present.
4391 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4392 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4393 ECHO='print -r --'
4394 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4395 ECHO='printf %s\n'
4396 else
4397 # Use this function as a fallback that always works.
4398 func_fallback_echo ()
4399 {
4400 eval 'cat <<_LTECHO_EOF
4401 $1
4402 _LTECHO_EOF'
4403 }
4404 ECHO='func_fallback_echo'
4405 fi
4406
4407 # func_echo_all arg...
4408 # Invoke $ECHO with all args, space-separated.
4409 func_echo_all ()
4410 {
4411 $ECHO ""
4412 }
4413
4414 case $ECHO in
4415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4416 $as_echo "printf" >&6; } ;;
4417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4418 $as_echo "print -r" >&6; } ;;
4419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4420 $as_echo "cat" >&6; } ;;
4421 esac
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4437 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4438 if ${ac_cv_path_SED+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4442 for ac_i in 1 2 3 4 5 6 7; do
4443 ac_script="$ac_script$as_nl$ac_script"
4444 done
4445 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4446 { ac_script=; unset ac_script;}
4447 if test -z "$SED"; then
4448 ac_path_SED_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in sed gsed; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_SED" || continue
4459 # Check for GNU ac_path_SED and select it if it is found.
4460 # Check for GNU $ac_path_SED
4461 case `"$ac_path_SED" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4464 *)
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo '' >> "conftest.nl"
4473 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_SED_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_SED="$ac_path_SED"
4479 ac_path_SED_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487 $ac_path_SED_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_SED"; then
4493 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4494 fi
4495 else
4496 ac_cv_path_SED=$SED
4497 fi
4498
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4501 $as_echo "$ac_cv_path_SED" >&6; }
4502 SED="$ac_cv_path_SED"
4503 rm -f conftest.sed
4504
4505 test -z "$SED" && SED=sed
4506 Xsed="$SED -e 1s/^X//"
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4519 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4520 if ${ac_cv_path_GREP+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_GREP" || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4540 *)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4562
4563 $ac_path_GREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
4571 else
4572 ac_cv_path_GREP=$GREP
4573 fi
4574
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4577 $as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4582 $as_echo_n "checking for egrep... " >&6; }
4583 if ${ac_cv_path_EGREP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4587 then ac_cv_path_EGREP="$GREP -E"
4588 else
4589 if test -z "$EGREP"; then
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in egrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 as_fn_executable_p "$ac_path_EGREP" || continue
4601 # Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603 case `"$ac_path_EGREP" --version 2>&1` in
4604 *GNU*)
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4606 *)
4607 ac_count=0
4608 $as_echo_n 0123456789 >"conftest.in"
4609 while :
4610 do
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 $as_echo 'EGREP' >> "conftest.nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4622 fi
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4625 done
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 esac
4628
4629 $ac_path_EGREP_found && break 3
4630 done
4631 done
4632 done
4633 IFS=$as_save_IFS
4634 if test -z "$ac_cv_path_EGREP"; then
4635 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 fi
4637 else
4638 ac_cv_path_EGREP=$EGREP
4639 fi
4640
4641 fi
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4644 $as_echo "$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4649 $as_echo_n "checking for fgrep... " >&6; }
4650 if ${ac_cv_path_FGREP+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4655 else
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in fgrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_FGREP" || continue
4668 # Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670 case `"$ac_path_FGREP" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4673 *)
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4677 do
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'FGREP' >> "conftest.nl"
4682 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4689 fi
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4695
4696 $ac_path_FGREP_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703 fi
4704 else
4705 ac_cv_path_FGREP=$FGREP
4706 fi
4707
4708 fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4711 $as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
4713
4714
4715 test -z "$GREP" && GREP=grep
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735 # Check whether --with-gnu-ld was given.
4736 if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4738 else
4739 with_gnu_ld=no
4740 fi
4741
4742 ac_prog=ld
4743 if test yes = "$GCC"; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4746 $as_echo_n "checking for ld used by $CC... " >&6; }
4747 case $host in
4748 *-*-mingw*)
4749 # gcc leaves a trailing carriage return, which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4751 *)
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4753 esac
4754 case $ac_prog in
4755 # Accept absolute paths.
4756 [\\/]* | ?:[\\/]*)
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4762 done
4763 test -z "$LD" && LD=$ac_prog
4764 ;;
4765 "")
4766 # If it fails, then pretend we aren't using GCC.
4767 ac_prog=ld
4768 ;;
4769 *)
4770 # If it is relative, then search for the first ld in PATH.
4771 with_gnu_ld=unknown
4772 ;;
4773 esac
4774 elif test yes = "$with_gnu_ld"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4776 $as_echo_n "checking for GNU ld... " >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4779 $as_echo_n "checking for non-GNU ld... " >&6; }
4780 fi
4781 if ${lt_cv_path_LD+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -z "$LD"; then
4785 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4787 IFS=$lt_save_ifs
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD=$ac_dir/$ac_prog
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test no != "$with_gnu_ld" && break
4797 ;;
4798 *)
4799 test yes != "$with_gnu_ld" && break
4800 ;;
4801 esac
4802 fi
4803 done
4804 IFS=$lt_save_ifs
4805 else
4806 lt_cv_path_LD=$LD # Let the user override the test with a path.
4807 fi
4808 fi
4809
4810 LD=$lt_cv_path_LD
4811 if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4813 $as_echo "$LD" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4821 if ${lt_cv_prog_gnu_ld+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825 case `$LD -v 2>&1 </dev/null` in
4826 *GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4828 ;;
4829 *)
4830 lt_cv_prog_gnu_ld=no
4831 ;;
4832 esac
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836 with_gnu_ld=$lt_cv_prog_gnu_ld
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4847 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4848 if ${lt_cv_path_NM+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4853 lt_cv_path_NM=$NM
4854 else
4855 lt_nm_to_check=${ac_tool_prefix}nm
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm"
4858 fi
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 IFS=$lt_save_ifs
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm=$ac_dir/$lt_tmp_nm
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4871 case $build_os in
4872 mingw*) lt_bad_file=conftest.nm/nofile ;;
4873 *) lt_bad_file=/dev/null ;;
4874 esac
4875 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4876 *$lt_bad_file* | *'Invalid file or object type'*)
4877 lt_cv_path_NM="$tmp_nm -B"
4878 break 2
4879 ;;
4880 *)
4881 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4882 */dev/null*)
4883 lt_cv_path_NM="$tmp_nm -p"
4884 break 2
4885 ;;
4886 *)
4887 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4888 continue # so that we can try to find one that supports BSD flags
4889 ;;
4890 esac
4891 ;;
4892 esac
4893 fi
4894 done
4895 IFS=$lt_save_ifs
4896 done
4897 : ${lt_cv_path_NM=no}
4898 fi
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4901 $as_echo "$lt_cv_path_NM" >&6; }
4902 if test no != "$lt_cv_path_NM"; then
4903 NM=$lt_cv_path_NM
4904 else
4905 # Didn't find any BSD compatible name lister, look for dumpbin.
4906 if test -n "$DUMPBIN"; then :
4907 # Let the user override the test.
4908 else
4909 if test -n "$ac_tool_prefix"; then
4910 for ac_prog in dumpbin "link -dump"
4911 do
4912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_DUMPBIN+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$DUMPBIN"; then
4920 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 DUMPBIN=$ac_cv_prog_DUMPBIN
4940 if test -n "$DUMPBIN"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4942 $as_echo "$DUMPBIN" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 test -n "$DUMPBIN" && break
4950 done
4951 fi
4952 if test -z "$DUMPBIN"; then
4953 ac_ct_DUMPBIN=$DUMPBIN
4954 for ac_prog in dumpbin "link -dump"
4955 do
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$ac_ct_DUMPBIN"; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977 done
4978 done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4984 if test -n "$ac_ct_DUMPBIN"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4986 $as_echo "$ac_ct_DUMPBIN" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993 test -n "$ac_ct_DUMPBIN" && break
4994 done
4995
4996 if test "x$ac_ct_DUMPBIN" = x; then
4997 DUMPBIN=":"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005 DUMPBIN=$ac_ct_DUMPBIN
5006 fi
5007 fi
5008
5009 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5010 *COFF*)
5011 DUMPBIN="$DUMPBIN -symbols -headers"
5012 ;;
5013 *)
5014 DUMPBIN=:
5015 ;;
5016 esac
5017 fi
5018
5019 if test : != "$DUMPBIN"; then
5020 NM=$DUMPBIN
5021 fi
5022 fi
5023 test -z "$NM" && NM=nm
5024
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5031 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5032 if ${lt_cv_nm_interface+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 lt_cv_nm_interface="BSD nm"
5036 echo "int some_variable = 0;" > conftest.$ac_ext
5037 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5038 (eval "$ac_compile" 2>conftest.err)
5039 cat conftest.err >&5
5040 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5041 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5042 cat conftest.err >&5
5043 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5044 cat conftest.out >&5
5045 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5046 lt_cv_nm_interface="MS dumpbin"
5047 fi
5048 rm -f conftest*
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5051 $as_echo "$lt_cv_nm_interface" >&6; }
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5054 $as_echo_n "checking whether ln -s works... " >&6; }
5055 LN_S=$as_ln_s
5056 if test "$LN_S" = "ln -s"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 $as_echo "yes" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5061 $as_echo "no, using $LN_S" >&6; }
5062 fi
5063
5064 # find the maximum length of command line arguments
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5066 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5067 if ${lt_cv_sys_max_cmd_len+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 i=0
5071 teststring=ABCD
5072
5073 case $build_os in
5074 msdosdjgpp*)
5075 # On DJGPP, this test can blow up pretty badly due to problems in libc
5076 # (any single argument exceeding 2000 bytes causes a buffer overrun
5077 # during glob expansion). Even if it were fixed, the result of this
5078 # check would be larger than it should be.
5079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5080 ;;
5081
5082 gnu*)
5083 # Under GNU Hurd, this test is not required because there is
5084 # no limit to the length of command line arguments.
5085 # Libtool will interpret -1 as no limit whatsoever
5086 lt_cv_sys_max_cmd_len=-1;
5087 ;;
5088
5089 cygwin* | mingw* | cegcc*)
5090 # On Win9x/ME, this test blows up -- it succeeds, but takes
5091 # about 5 minutes as the teststring grows exponentially.
5092 # Worse, since 9x/ME are not pre-emptively multitasking,
5093 # you end up with a "frozen" computer, even though with patience
5094 # the test eventually succeeds (with a max line length of 256k).
5095 # Instead, let's just punt: use the minimum linelength reported by
5096 # all of the supported platforms: 8192 (on NT/2K/XP).
5097 lt_cv_sys_max_cmd_len=8192;
5098 ;;
5099
5100 mint*)
5101 # On MiNT this can take a long time and run out of memory.
5102 lt_cv_sys_max_cmd_len=8192;
5103 ;;
5104
5105 amigaos*)
5106 # On AmigaOS with pdksh, this test takes hours, literally.
5107 # So we just punt and use a minimum line length of 8192.
5108 lt_cv_sys_max_cmd_len=8192;
5109 ;;
5110
5111 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5112 # This has been around since 386BSD, at least. Likely further.
5113 if test -x /sbin/sysctl; then
5114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5115 elif test -x /usr/sbin/sysctl; then
5116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5117 else
5118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5119 fi
5120 # And add a safety zone
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123 ;;
5124
5125 interix*)
5126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5127 lt_cv_sys_max_cmd_len=196608
5128 ;;
5129
5130 os2*)
5131 # The test takes a long time on OS/2.
5132 lt_cv_sys_max_cmd_len=8192
5133 ;;
5134
5135 osf*)
5136 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5137 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5138 # nice to cause kernel panics so lets avoid the loop below.
5139 # First set a reasonable default.
5140 lt_cv_sys_max_cmd_len=16384
5141 #
5142 if test -x /sbin/sysconfig; then
5143 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5144 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5145 esac
5146 fi
5147 ;;
5148 sco3.2v5*)
5149 lt_cv_sys_max_cmd_len=102400
5150 ;;
5151 sysv5* | sco5v6* | sysv4.2uw2*)
5152 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5153 if test -n "$kargmax"; then
5154 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5155 else
5156 lt_cv_sys_max_cmd_len=32768
5157 fi
5158 ;;
5159 *)
5160 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5161 if test -n "$lt_cv_sys_max_cmd_len" && \
5162 test undefined != "$lt_cv_sys_max_cmd_len"; then
5163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165 else
5166 # Make teststring a little bigger before we do anything with it.
5167 # a 1K string should be a reasonable start.
5168 for i in 1 2 3 4 5 6 7 8; do
5169 teststring=$teststring$teststring
5170 done
5171 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5172 # If test is not a shell built-in, we'll probably end up computing a
5173 # maximum length that is only half of the actual maximum length, but
5174 # we can't tell.
5175 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5176 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5177 test 17 != "$i" # 1/2 MB should be enough
5178 do
5179 i=`expr $i + 1`
5180 teststring=$teststring$teststring
5181 done
5182 # Only check the string length outside the loop.
5183 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5184 teststring=
5185 # Add a significant safety factor because C++ compilers can tack on
5186 # massive amounts of additional arguments before passing them to the
5187 # linker. It appears as though 1/2 is a usable value.
5188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5189 fi
5190 ;;
5191 esac
5192
5193 fi
5194
5195 if test -n "$lt_cv_sys_max_cmd_len"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5197 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5200 $as_echo "none" >&6; }
5201 fi
5202 max_cmd_len=$lt_cv_sys_max_cmd_len
5203
5204
5205
5206
5207
5208
5209 : ${CP="cp -f"}
5210 : ${MV="mv -f"}
5211 : ${RM="rm -f"}
5212
5213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5214 lt_unset=unset
5215 else
5216 lt_unset=false
5217 fi
5218
5219
5220
5221
5222
5223 # test EBCDIC or ASCII
5224 case `echo X|tr X '\101'` in
5225 A) # ASCII based system
5226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5227 lt_SP2NL='tr \040 \012'
5228 lt_NL2SP='tr \015\012 \040\040'
5229 ;;
5230 *) # EBCDIC based system
5231 lt_SP2NL='tr \100 \n'
5232 lt_NL2SP='tr \r\n \100\100'
5233 ;;
5234 esac
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5245 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5246 if ${lt_cv_to_host_file_cmd+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 case $host in
5250 *-*-mingw* )
5251 case $build in
5252 *-*-mingw* ) # actually msys
5253 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5254 ;;
5255 *-*-cygwin* )
5256 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5257 ;;
5258 * ) # otherwise, assume *nix
5259 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5260 ;;
5261 esac
5262 ;;
5263 *-*-cygwin* )
5264 case $build in
5265 *-*-mingw* ) # actually msys
5266 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5267 ;;
5268 *-*-cygwin* )
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5270 ;;
5271 * ) # otherwise, assume *nix
5272 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5273 ;;
5274 esac
5275 ;;
5276 * ) # unhandled hosts (and "normal" native builds)
5277 lt_cv_to_host_file_cmd=func_convert_file_noop
5278 ;;
5279 esac
5280
5281 fi
5282
5283 to_host_file_cmd=$lt_cv_to_host_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5285 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5286
5287
5288
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5292 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5293 if ${lt_cv_to_tool_file_cmd+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 #assume ordinary cross tools, or native build.
5297 lt_cv_to_tool_file_cmd=func_convert_file_noop
5298 case $host in
5299 *-*-mingw* )
5300 case $build in
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5303 ;;
5304 esac
5305 ;;
5306 esac
5307
5308 fi
5309
5310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5312 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5313
5314
5315
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5319 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5320 if ${lt_cv_ld_reload_flag+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 lt_cv_ld_reload_flag='-r'
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5326 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5329 "" | " "*) ;;
5330 *) reload_flag=" $reload_flag" ;;
5331 esac
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5333 case $host_os in
5334 cygwin* | mingw* | pw32* | cegcc*)
5335 if test yes != "$GCC"; then
5336 reload_cmds=false
5337 fi
5338 ;;
5339 darwin*)
5340 if test yes = "$GCC"; then
5341 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5342 else
5343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5344 fi
5345 ;;
5346 esac
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_OBJDUMP+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$OBJDUMP"; then
5365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 OBJDUMP=$ac_cv_prog_OBJDUMP
5385 if test -n "$OBJDUMP"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5387 $as_echo "$OBJDUMP" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_prog_OBJDUMP"; then
5396 ac_ct_OBJDUMP=$OBJDUMP
5397 # Extract the first word of "objdump", so it can be a program name with args.
5398 set dummy objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_OBJDUMP"; then
5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5425 if test -n "$ac_ct_OBJDUMP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5427 $as_echo "$ac_ct_OBJDUMP" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433 if test "x$ac_ct_OBJDUMP" = x; then
5434 OBJDUMP="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 OBJDUMP=$ac_ct_OBJDUMP
5443 fi
5444 else
5445 OBJDUMP="$ac_cv_prog_OBJDUMP"
5446 fi
5447
5448 test -z "$OBJDUMP" && OBJDUMP=objdump
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5459 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5460 if ${lt_cv_deplibs_check_method+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 lt_cv_file_magic_cmd='$MAGIC_CMD'
5464 lt_cv_file_magic_test_file=
5465 lt_cv_deplibs_check_method='unknown'
5466 # Need to set the preceding variable on all platforms that support
5467 # interlibrary dependencies.
5468 # 'none' -- dependencies not supported.
5469 # 'unknown' -- same as none, but documents that we really don't know.
5470 # 'pass_all' -- all dependencies passed with no checks.
5471 # 'test_compile' -- check by making test program.
5472 # 'file_magic [[regex]]' -- check by looking for files in library path
5473 # that responds to the $file_magic_cmd with a given extended regex.
5474 # If you have 'file' or equivalent on your system and you're not sure
5475 # whether 'pass_all' will *always* work, you probably want this one.
5476
5477 case $host_os in
5478 aix[4-9]*)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5481
5482 beos*)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485
5486 bsdi[45]*)
5487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5488 lt_cv_file_magic_cmd='/usr/bin/file -L'
5489 lt_cv_file_magic_test_file=/shlib/libc.so
5490 ;;
5491
5492 cygwin*)
5493 # func_win32_libid is a shell function defined in ltmain.sh
5494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5495 lt_cv_file_magic_cmd='func_win32_libid'
5496 ;;
5497
5498 mingw* | pw32*)
5499 # Base MSYS/MinGW do not provide the 'file' command needed by
5500 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5501 # unless we find 'file', for example because we are cross-compiling.
5502 if ( file / ) >/dev/null 2>&1; then
5503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504 lt_cv_file_magic_cmd='func_win32_libid'
5505 else
5506 # Keep this pattern in sync with the one in func_win32_libid.
5507 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5508 lt_cv_file_magic_cmd='$OBJDUMP -f'
5509 fi
5510 ;;
5511
5512 cegcc*)
5513 # use the weaker test based on 'objdump'. See mingw*.
5514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5515 lt_cv_file_magic_cmd='$OBJDUMP -f'
5516 ;;
5517
5518 darwin* | rhapsody*)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522 freebsd* | dragonfly*)
5523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5524 case $host_cpu in
5525 i*86 )
5526 # Not sure whether the presence of OpenBSD here was a mistake.
5527 # Let's accept both of them until this is cleared up.
5528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5529 lt_cv_file_magic_cmd=/usr/bin/file
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5531 ;;
5532 esac
5533 else
5534 lt_cv_deplibs_check_method=pass_all
5535 fi
5536 ;;
5537
5538 haiku*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542 hpux10.20* | hpux11*)
5543 lt_cv_file_magic_cmd=/usr/bin/file
5544 case $host_cpu in
5545 ia64*)
5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5548 ;;
5549 hppa*64*)
5550 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]'
5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5552 ;;
5553 *)
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5556 ;;
5557 esac
5558 ;;
5559
5560 interix[3-9]*)
5561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5563 ;;
5564
5565 irix5* | irix6* | nonstopux*)
5566 case $LD in
5567 *-32|*"-32 ") libmagic=32-bit;;
5568 *-n32|*"-n32 ") libmagic=N32;;
5569 *-64|*"-64 ") libmagic=64-bit;;
5570 *) libmagic=never-match;;
5571 esac
5572 lt_cv_deplibs_check_method=pass_all
5573 ;;
5574
5575 # This must be glibc/ELF.
5576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5577 lt_cv_deplibs_check_method=pass_all
5578 ;;
5579
5580 netbsd* | netbsdelf*-gnu)
5581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5583 else
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5585 fi
5586 ;;
5587
5588 newos6*)
5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5590 lt_cv_file_magic_cmd=/usr/bin/file
5591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5592 ;;
5593
5594 *nto* | *qnx*)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598 openbsd* | bitrig*)
5599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5601 else
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603 fi
5604 ;;
5605
5606 osf3* | osf4* | osf5*)
5607 lt_cv_deplibs_check_method=pass_all
5608 ;;
5609
5610 rdos*)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613
5614 solaris*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622 sysv4 | sysv4.3*)
5623 case $host_vendor in
5624 motorola)
5625 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]'
5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5627 ;;
5628 ncr)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631 sequent)
5632 lt_cv_file_magic_cmd='/bin/file'
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5634 ;;
5635 sni)
5636 lt_cv_file_magic_cmd='/bin/file'
5637 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5638 lt_cv_file_magic_test_file=/lib/libc.so
5639 ;;
5640 siemens)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643 pc)
5644 lt_cv_deplibs_check_method=pass_all
5645 ;;
5646 esac
5647 ;;
5648
5649 tpf*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652 os2*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655 esac
5656
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660
5661 file_magic_glob=
5662 want_nocaseglob=no
5663 if test "$build" = "$host"; then
5664 case $host_os in
5665 mingw* | pw32*)
5666 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5667 want_nocaseglob=yes
5668 else
5669 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5670 fi
5671 ;;
5672 esac
5673 fi
5674
5675 file_magic_cmd=$lt_cv_file_magic_cmd
5676 deplibs_check_method=$lt_cv_deplibs_check_method
5677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_DLLTOOL+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$DLLTOOL"; then
5709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 DLLTOOL=$ac_cv_prog_DLLTOOL
5729 if test -n "$DLLTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5731 $as_echo "$DLLTOOL" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 fi
5739 if test -z "$ac_cv_prog_DLLTOOL"; then
5740 ac_ct_DLLTOOL=$DLLTOOL
5741 # Extract the first word of "dlltool", so it can be a program name with args.
5742 set dummy dlltool; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$ac_ct_DLLTOOL"; then
5749 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5769 if test -n "$ac_ct_DLLTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5771 $as_echo "$ac_ct_DLLTOOL" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777 if test "x$ac_ct_DLLTOOL" = x; then
5778 DLLTOOL="false"
5779 else
5780 case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786 DLLTOOL=$ac_ct_DLLTOOL
5787 fi
5788 else
5789 DLLTOOL="$ac_cv_prog_DLLTOOL"
5790 fi
5791
5792 test -z "$DLLTOOL" && DLLTOOL=dlltool
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5804 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5805 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 lt_cv_sharedlib_from_linklib_cmd='unknown'
5809
5810 case $host_os in
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 # two different shell functions defined in ltmain.sh;
5813 # decide which one to use based on capabilities of $DLLTOOL
5814 case `$DLLTOOL --help 2>&1` in
5815 *--identify-strict*)
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5817 ;;
5818 *)
5819 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5820 ;;
5821 esac
5822 ;;
5823 *)
5824 # fallback: assume linklib IS sharedlib
5825 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5826 ;;
5827 esac
5828
5829 fi
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5831 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5832 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5833 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5834
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843 for ac_prog in ar
5844 do
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_AR+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$AR"; then
5853 ac_cv_prog_AR="$AR" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 AR=$ac_cv_prog_AR
5873 if test -n "$AR"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5875 $as_echo "$AR" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 test -n "$AR" && break
5883 done
5884 fi
5885 if test -z "$AR"; then
5886 ac_ct_AR=$AR
5887 for ac_prog in ar
5888 do
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_AR"; then
5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_AR="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917 if test -n "$ac_ct_AR"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5919 $as_echo "$ac_ct_AR" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926 test -n "$ac_ct_AR" && break
5927 done
5928
5929 if test "x$ac_ct_AR" = x; then
5930 AR="false"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938 AR=$ac_ct_AR
5939 fi
5940 fi
5941
5942 : ${AR=ar}
5943 : ${AR_FLAGS=cru}
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5956 $as_echo_n "checking for archiver @FILE support... " >&6; }
5957 if ${lt_cv_ar_at_file+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 lt_cv_ar_at_file=no
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963
5964 int
5965 main ()
5966 {
5967
5968 ;
5969 return 0;
5970 }
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 echo conftest.$ac_objext > conftest.lst
5974 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5976 (eval $lt_ar_try) 2>&5
5977 ac_status=$?
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }
5980 if test 0 -eq "$ac_status"; then
5981 # Ensure the archiver fails upon bogus file names.
5982 rm -f conftest.$ac_objext libconftest.a
5983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5984 (eval $lt_ar_try) 2>&5
5985 ac_status=$?
5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5987 test $ac_status = 0; }
5988 if test 0 -ne "$ac_status"; then
5989 lt_cv_ar_at_file=@
5990 fi
5991 fi
5992 rm -f conftest.* libconftest.a
5993
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5999 $as_echo "$lt_cv_ar_at_file" >&6; }
6000
6001 if test no = "$lt_cv_ar_at_file"; then
6002 archiver_list_spec=
6003 else
6004 archiver_list_spec=$lt_cv_ar_at_file
6005 fi
6006
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}strip; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_STRIP+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$STRIP"; then
6022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 STRIP=$ac_cv_prog_STRIP
6042 if test -n "$STRIP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6044 $as_echo "$STRIP" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_STRIP"; then
6053 ac_ct_STRIP=$STRIP
6054 # Extract the first word of "strip", so it can be a program name with args.
6055 set dummy strip; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -n "$ac_ct_STRIP"; then
6062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_STRIP="strip"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6082 if test -n "$ac_ct_STRIP"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6084 $as_echo "$ac_ct_STRIP" >&6; }
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090 if test "x$ac_ct_STRIP" = x; then
6091 STRIP=":"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099 STRIP=$ac_ct_STRIP
6100 fi
6101 else
6102 STRIP="$ac_cv_prog_STRIP"
6103 fi
6104
6105 test -z "$STRIP" && STRIP=:
6106
6107
6108
6109
6110
6111
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_RANLIB+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$RANLIB"; then
6121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 RANLIB=$ac_cv_prog_RANLIB
6141 if test -n "$RANLIB"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6143 $as_echo "$RANLIB" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_RANLIB"; then
6152 ac_ct_RANLIB=$RANLIB
6153 # Extract the first word of "ranlib", so it can be a program name with args.
6154 set dummy ranlib; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_RANLIB"; then
6161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_RANLIB="ranlib"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6181 if test -n "$ac_ct_RANLIB"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6183 $as_echo "$ac_ct_RANLIB" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189 if test "x$ac_ct_RANLIB" = x; then
6190 RANLIB=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 RANLIB=$ac_ct_RANLIB
6199 fi
6200 else
6201 RANLIB="$ac_cv_prog_RANLIB"
6202 fi
6203
6204 test -z "$RANLIB" && RANLIB=:
6205
6206
6207
6208
6209
6210
6211 # Determine commands to create old-style static archives.
6212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6213 old_postinstall_cmds='chmod 644 $oldlib'
6214 old_postuninstall_cmds=
6215
6216 if test -n "$RANLIB"; then
6217 case $host_os in
6218 bitrig* | openbsd*)
6219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6220 ;;
6221 *)
6222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6223 ;;
6224 esac
6225 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6226 fi
6227
6228 case $host_os in
6229 darwin*)
6230 lock_old_archive_extraction=yes ;;
6231 *)
6232 lock_old_archive_extraction=no ;;
6233 esac
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
6271
6272
6273 # If no C compiler was specified, use CC.
6274 LTCC=${LTCC-"$CC"}
6275
6276 # If no C compiler flags were specified, use CFLAGS.
6277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6278
6279 # Allow CC to be a program name with arguments.
6280 compiler=$CC
6281
6282
6283 # Check for command to grab the raw symbol name followed by C symbol from nm.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6285 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6286 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289
6290 # These are sane defaults that work on at least a few old systems.
6291 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6292
6293 # Character class describing NM global symbol codes.
6294 symcode='[BCDEGRST]'
6295
6296 # Regexp to match symbols that can be accessed directly from C.
6297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298
6299 # Define system-specific variables.
6300 case $host_os in
6301 aix*)
6302 symcode='[BCDT]'
6303 ;;
6304 cygwin* | mingw* | pw32* | cegcc*)
6305 symcode='[ABCDGISTW]'
6306 ;;
6307 hpux*)
6308 if test ia64 = "$host_cpu"; then
6309 symcode='[ABCDEGRST]'
6310 fi
6311 ;;
6312 irix* | nonstopux*)
6313 symcode='[BCDEGRST]'
6314 ;;
6315 osf*)
6316 symcode='[BCDEGQRST]'
6317 ;;
6318 solaris*)
6319 symcode='[BDRT]'
6320 ;;
6321 sco3.2v5*)
6322 symcode='[DT]'
6323 ;;
6324 sysv4.2uw2*)
6325 symcode='[DT]'
6326 ;;
6327 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6328 symcode='[ABDT]'
6329 ;;
6330 sysv4)
6331 symcode='[DFNSTU]'
6332 ;;
6333 esac
6334
6335 # If we're using GNU nm, then use its standard symbol codes.
6336 case `$NM -V 2>&1` in
6337 *GNU* | *'with BFD'*)
6338 symcode='[ABCDGIRSTW]' ;;
6339 esac
6340
6341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6342 # Gets list of data symbols to import.
6343 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6344 # Adjust the below global symbol transforms to fixup imported variables.
6345 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6346 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6347 lt_c_name_lib_hook="\
6348 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6349 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6350 else
6351 # Disable hooks by default.
6352 lt_cv_sys_global_symbol_to_import=
6353 lt_cdecl_hook=
6354 lt_c_name_hook=
6355 lt_c_name_lib_hook=
6356 fi
6357
6358 # Transform an extracted symbol line into a proper C declaration.
6359 # Some systems (esp. on ia64) link data and code symbols differently,
6360 # so use this general approach.
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6362 $lt_cdecl_hook\
6363 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6364 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6365
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6368 $lt_c_name_hook\
6369 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6370 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6371
6372 # Transform an extracted symbol line into symbol name with lib prefix and
6373 # symbol address.
6374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6375 $lt_c_name_lib_hook\
6376 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6377 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6378 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6379
6380 # Handle CRLF in mingw tool chain
6381 opt_cr=
6382 case $build_os in
6383 mingw*)
6384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6385 ;;
6386 esac
6387
6388 # Try without a prefix underscore, then with it.
6389 for ac_symprfx in "" "_"; do
6390
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6393
6394 # Write the raw and C identifiers.
6395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6396 # Fake it for dumpbin and say T for any non-static function,
6397 # D for any global variable and I for any imported variable.
6398 # Also find C++ and __fastcall symbols from MSVC++,
6399 # which start with @ or ?.
6400 lt_cv_sys_global_symbol_pipe="$AWK '"\
6401 " {last_section=section; section=\$ 3};"\
6402 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6403 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6404 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6405 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6406 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6407 " \$ 0!~/External *\|/{next};"\
6408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6409 " {if(hide[section]) next};"\
6410 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6411 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6412 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6413 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6414 " ' prfx=^$ac_symprfx"
6415 else
6416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6417 fi
6418 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6419
6420 # Check to see that the pipe works correctly.
6421 pipe_works=no
6422
6423 rm -f conftest*
6424 cat > conftest.$ac_ext <<_LT_EOF
6425 #ifdef __cplusplus
6426 extern "C" {
6427 #endif
6428 char nm_test_var;
6429 void nm_test_func(void);
6430 void nm_test_func(void){}
6431 #ifdef __cplusplus
6432 }
6433 #endif
6434 int main(){nm_test_var='a';nm_test_func();return(0);}
6435 _LT_EOF
6436
6437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6439 ac_status=$?
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 # Now try to grab the symbols.
6443 nlist=conftest.nm
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; } && test -s "$nlist"; then
6449 # Try sorting and uniquifying the output.
6450 if sort "$nlist" | uniq > "$nlist"T; then
6451 mv -f "$nlist"T "$nlist"
6452 else
6453 rm -f "$nlist"T
6454 fi
6455
6456 # Make sure that we snagged all the symbols we need.
6457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6459 cat <<_LT_EOF > conftest.$ac_ext
6460 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6461 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6462 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6463 relocations are performed -- see ld's documentation on pseudo-relocs. */
6464 # define LT_DLSYM_CONST
6465 #elif defined __osf__
6466 /* This system does not cope well with relocations in const data. */
6467 # define LT_DLSYM_CONST
6468 #else
6469 # define LT_DLSYM_CONST const
6470 #endif
6471
6472 #ifdef __cplusplus
6473 extern "C" {
6474 #endif
6475
6476 _LT_EOF
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6479
6480 cat <<_LT_EOF >> conftest.$ac_ext
6481
6482 /* The mapping between symbol names and symbols. */
6483 LT_DLSYM_CONST struct {
6484 const char *name;
6485 void *address;
6486 }
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6488 {
6489 { "@PROGRAM@", (void *) 0 },
6490 _LT_EOF
6491 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6493 {0, (void *) 0}
6494 };
6495
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6500 }
6501 #endif
6502
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 _LT_EOF
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_globsym_save_LIBS=$LIBS
6510 lt_globsym_save_CFLAGS=$CFLAGS
6511 LIBS=conftstm.$ac_objext
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6518 pipe_works=yes
6519 fi
6520 LIBS=$lt_globsym_save_LIBS
6521 CFLAGS=$lt_globsym_save_CFLAGS
6522 else
6523 echo "cannot find nm_test_func in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot find nm_test_var in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530 fi
6531 else
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 fi
6535 rm -rf conftest* conftst*
6536
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test yes = "$pipe_works"; then
6539 break
6540 else
6541 lt_cv_sys_global_symbol_pipe=
6542 fi
6543 done
6544
6545 fi
6546
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6549 fi
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6552 $as_echo "failed" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6555 $as_echo "ok" >&6; }
6556 fi
6557
6558 # Response file support.
6559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6560 nm_file_list_spec='@'
6561 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6562 nm_file_list_spec='@'
6563 fi
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
6599
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6602 $as_echo_n "checking for sysroot... " >&6; }
6603
6604 # Check whether --with-sysroot was given.
6605 if test "${with_sysroot+set}" = set; then :
6606 withval=$with_sysroot;
6607 else
6608 with_sysroot=no
6609 fi
6610
6611
6612 lt_sysroot=
6613 case $with_sysroot in #(
6614 yes)
6615 if test yes = "$GCC"; then
6616 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6617 fi
6618 ;; #(
6619 /*)
6620 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6621 ;; #(
6622 no|'')
6623 ;; #(
6624 *)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6626 $as_echo "$with_sysroot" >&6; }
6627 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6628 ;;
6629 esac
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6632 $as_echo "${lt_sysroot:-no}" >&6; }
6633
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6639 $as_echo_n "checking for a working dd... " >&6; }
6640 if ${ac_cv_path_lt_DD+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 printf 0123456789abcdef0123456789abcdef >conftest.i
6644 cat conftest.i conftest.i >conftest2.i
6645 : ${lt_DD:=$DD}
6646 if test -z "$lt_DD"; then
6647 ac_path_lt_DD_found=false
6648 # Loop through the user's path and test for each of PROGNAME-LIST
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_prog in dd; do
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6657 as_fn_executable_p "$ac_path_lt_DD" || continue
6658 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6659 cmp -s conftest.i conftest.out \
6660 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6661 fi
6662 $ac_path_lt_DD_found && break 3
6663 done
6664 done
6665 done
6666 IFS=$as_save_IFS
6667 if test -z "$ac_cv_path_lt_DD"; then
6668 :
6669 fi
6670 else
6671 ac_cv_path_lt_DD=$lt_DD
6672 fi
6673
6674 rm -f conftest.i conftest2.i conftest.out
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6677 $as_echo "$ac_cv_path_lt_DD" >&6; }
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6681 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6682 if ${lt_cv_truncate_bin+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 printf 0123456789abcdef0123456789abcdef >conftest.i
6686 cat conftest.i conftest.i >conftest2.i
6687 lt_cv_truncate_bin=
6688 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6689 cmp -s conftest.i conftest.out \
6690 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6691 fi
6692 rm -f conftest.i conftest2.i conftest.out
6693 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6696 $as_echo "$lt_cv_truncate_bin" >&6; }
6697
6698
6699
6700
6701
6702
6703
6704 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6705 func_cc_basename ()
6706 {
6707 for cc_temp in $*""; do
6708 case $cc_temp in
6709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6711 \-*) ;;
6712 *) break;;
6713 esac
6714 done
6715 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6716 }
6717
6718 # Check whether --enable-libtool-lock was given.
6719 if test "${enable_libtool_lock+set}" = set; then :
6720 enableval=$enable_libtool_lock;
6721 fi
6722
6723 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6724
6725 # Some flags need to be propagated to the compiler or linker for good
6726 # libtool support.
6727 case $host in
6728 ia64-*-hpux*)
6729 # Find out what ABI is being produced by ac_compile, and set mode
6730 # options accordingly.
6731 echo 'int i;' > conftest.$ac_ext
6732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6734 ac_status=$?
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 case `/usr/bin/file conftest.$ac_objext` in
6738 *ELF-32*)
6739 HPUX_IA64_MODE=32
6740 ;;
6741 *ELF-64*)
6742 HPUX_IA64_MODE=64
6743 ;;
6744 esac
6745 fi
6746 rm -rf conftest*
6747 ;;
6748 *-*-irix6*)
6749 # Find out what ABI is being produced by ac_compile, and set linker
6750 # options accordingly.
6751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6754 ac_status=$?
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 if test yes = "$lt_cv_prog_gnu_ld"; then
6758 case `/usr/bin/file conftest.$ac_objext` in
6759 *32-bit*)
6760 LD="${LD-ld} -melf32bsmip"
6761 ;;
6762 *N32*)
6763 LD="${LD-ld} -melf32bmipn32"
6764 ;;
6765 *64-bit*)
6766 LD="${LD-ld} -melf64bmip"
6767 ;;
6768 esac
6769 else
6770 case `/usr/bin/file conftest.$ac_objext` in
6771 *32-bit*)
6772 LD="${LD-ld} -32"
6773 ;;
6774 *N32*)
6775 LD="${LD-ld} -n32"
6776 ;;
6777 *64-bit*)
6778 LD="${LD-ld} -64"
6779 ;;
6780 esac
6781 fi
6782 fi
6783 rm -rf conftest*
6784 ;;
6785
6786 mips64*-*linux*)
6787 # Find out what ABI is being produced by ac_compile, and set linker
6788 # options accordingly.
6789 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 emul=elf
6796 case `/usr/bin/file conftest.$ac_objext` in
6797 *32-bit*)
6798 emul="${emul}32"
6799 ;;
6800 *64-bit*)
6801 emul="${emul}64"
6802 ;;
6803 esac
6804 case `/usr/bin/file conftest.$ac_objext` in
6805 *MSB*)
6806 emul="${emul}btsmip"
6807 ;;
6808 *LSB*)
6809 emul="${emul}ltsmip"
6810 ;;
6811 esac
6812 case `/usr/bin/file conftest.$ac_objext` in
6813 *N32*)
6814 emul="${emul}n32"
6815 ;;
6816 esac
6817 LD="${LD-ld} -m $emul"
6818 fi
6819 rm -rf conftest*
6820 ;;
6821
6822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824 # Find out what ABI is being produced by ac_compile, and set linker
6825 # options accordingly. Note that the listed cases only cover the
6826 # situations where additional linker options are needed (such as when
6827 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6828 # vice versa); the common cases where no linker options are needed do
6829 # not appear in the list.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.o` in
6837 *32-bit*)
6838 case $host in
6839 x86_64-*kfreebsd*-gnu)
6840 LD="${LD-ld} -m elf_i386_fbsd"
6841 ;;
6842 x86_64-*linux*)
6843 case `/usr/bin/file conftest.o` in
6844 *x86-64*)
6845 LD="${LD-ld} -m elf32_x86_64"
6846 ;;
6847 *)
6848 LD="${LD-ld} -m elf_i386"
6849 ;;
6850 esac
6851 ;;
6852 powerpc64le-*linux*)
6853 LD="${LD-ld} -m elf32lppclinux"
6854 ;;
6855 powerpc64-*linux*)
6856 LD="${LD-ld} -m elf32ppclinux"
6857 ;;
6858 s390x-*linux*)
6859 LD="${LD-ld} -m elf_s390"
6860 ;;
6861 sparc64-*linux*)
6862 LD="${LD-ld} -m elf32_sparc"
6863 ;;
6864 esac
6865 ;;
6866 *64-bit*)
6867 case $host in
6868 x86_64-*kfreebsd*-gnu)
6869 LD="${LD-ld} -m elf_x86_64_fbsd"
6870 ;;
6871 x86_64-*linux*)
6872 LD="${LD-ld} -m elf_x86_64"
6873 ;;
6874 powerpcle-*linux*)
6875 LD="${LD-ld} -m elf64lppc"
6876 ;;
6877 powerpc-*linux*)
6878 LD="${LD-ld} -m elf64ppc"
6879 ;;
6880 s390*-*linux*|s390*-*tpf*)
6881 LD="${LD-ld} -m elf64_s390"
6882 ;;
6883 sparc*-*linux*)
6884 LD="${LD-ld} -m elf64_sparc"
6885 ;;
6886 esac
6887 ;;
6888 esac
6889 fi
6890 rm -rf conftest*
6891 ;;
6892
6893 *-*-sco3.2v5*)
6894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6895 SAVE_CFLAGS=$CFLAGS
6896 CFLAGS="$CFLAGS -belf"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6898 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6899 if ${lt_cv_cc_needs_belf+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 ac_ext=c
6903 ac_cpp='$CPP $CPPFLAGS'
6904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6910
6911 int
6912 main ()
6913 {
6914
6915 ;
6916 return 0;
6917 }
6918 _ACEOF
6919 if ac_fn_c_try_link "$LINENO"; then :
6920 lt_cv_cc_needs_belf=yes
6921 else
6922 lt_cv_cc_needs_belf=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6926 ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6934 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6935 if test yes != "$lt_cv_cc_needs_belf"; then
6936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6937 CFLAGS=$SAVE_CFLAGS
6938 fi
6939 ;;
6940 *-*solaris*)
6941 # Find out what ABI is being produced by ac_compile, and set linker
6942 # options accordingly.
6943 echo 'int i;' > conftest.$ac_ext
6944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6945 (eval $ac_compile) 2>&5
6946 ac_status=$?
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948 test $ac_status = 0; }; then
6949 case `/usr/bin/file conftest.o` in
6950 *64-bit*)
6951 case $lt_cv_prog_gnu_ld in
6952 yes*)
6953 case $host in
6954 i?86-*-solaris*|x86_64-*-solaris*)
6955 LD="${LD-ld} -m elf_x86_64"
6956 ;;
6957 sparc*-*-solaris*)
6958 LD="${LD-ld} -m elf64_sparc"
6959 ;;
6960 esac
6961 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6962 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6963 LD=${LD-ld}_sol2
6964 fi
6965 ;;
6966 *)
6967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6968 LD="${LD-ld} -64"
6969 fi
6970 ;;
6971 esac
6972 ;;
6973 esac
6974 fi
6975 rm -rf conftest*
6976 ;;
6977 esac
6978
6979 need_locks=$enable_libtool_lock
6980
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}mt; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$MANIFEST_TOOL"; then
6990 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7010 if test -n "$MANIFEST_TOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7012 $as_echo "$MANIFEST_TOOL" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7021 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7022 # Extract the first word of "mt", so it can be a program name with args.
7023 set dummy mt; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$ac_ct_MANIFEST_TOOL"; then
7030 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7050 if test -n "$ac_ct_MANIFEST_TOOL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7052 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7059 MANIFEST_TOOL=":"
7060 else
7061 case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7068 fi
7069 else
7070 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7071 fi
7072
7073 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7075 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7076 if ${lt_cv_path_mainfest_tool+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 lt_cv_path_mainfest_tool=no
7080 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7081 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7082 cat conftest.err >&5
7083 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7084 lt_cv_path_mainfest_tool=yes
7085 fi
7086 rm -f conftest*
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7089 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7090 if test yes != "$lt_cv_path_mainfest_tool"; then
7091 MANIFEST_TOOL=:
7092 fi
7093
7094
7095
7096
7097
7098
7099 case $host_os in
7100 rhapsody* | darwin*)
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$DSYMUTIL"; then
7110 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7130 if test -n "$DSYMUTIL"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7132 $as_echo "$DSYMUTIL" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138
7139 fi
7140 if test -z "$ac_cv_prog_DSYMUTIL"; then
7141 ac_ct_DSYMUTIL=$DSYMUTIL
7142 # Extract the first word of "dsymutil", so it can be a program name with args.
7143 set dummy dsymutil; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 if test -n "$ac_ct_DSYMUTIL"; then
7150 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7170 if test -n "$ac_ct_DSYMUTIL"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7172 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178 if test "x$ac_ct_DSYMUTIL" = x; then
7179 DSYMUTIL=":"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187 DSYMUTIL=$ac_ct_DSYMUTIL
7188 fi
7189 else
7190 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7191 fi
7192
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_NMEDIT+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$NMEDIT"; then
7202 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 NMEDIT=$ac_cv_prog_NMEDIT
7222 if test -n "$NMEDIT"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7224 $as_echo "$NMEDIT" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_NMEDIT"; then
7233 ac_ct_NMEDIT=$NMEDIT
7234 # Extract the first word of "nmedit", so it can be a program name with args.
7235 set dummy nmedit; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_NMEDIT"; then
7242 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7262 if test -n "$ac_ct_NMEDIT"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7264 $as_echo "$ac_ct_NMEDIT" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270 if test "x$ac_ct_NMEDIT" = x; then
7271 NMEDIT=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 NMEDIT=$ac_ct_NMEDIT
7280 fi
7281 else
7282 NMEDIT="$ac_cv_prog_NMEDIT"
7283 fi
7284
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_LIPO+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$LIPO"; then
7294 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 LIPO=$ac_cv_prog_LIPO
7314 if test -n "$LIPO"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7316 $as_echo "$LIPO" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_LIPO"; then
7325 ac_ct_LIPO=$LIPO
7326 # Extract the first word of "lipo", so it can be a program name with args.
7327 set dummy lipo; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$ac_ct_LIPO"; then
7334 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_LIPO="lipo"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347 done
7348 done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7354 if test -n "$ac_ct_LIPO"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7356 $as_echo "$ac_ct_LIPO" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362 if test "x$ac_ct_LIPO" = x; then
7363 LIPO=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371 LIPO=$ac_ct_LIPO
7372 fi
7373 else
7374 LIPO="$ac_cv_prog_LIPO"
7375 fi
7376
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}otool; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_OTOOL+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$OTOOL"; then
7386 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 OTOOL=$ac_cv_prog_OTOOL
7406 if test -n "$OTOOL"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7408 $as_echo "$OTOOL" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414
7415 fi
7416 if test -z "$ac_cv_prog_OTOOL"; then
7417 ac_ct_OTOOL=$OTOOL
7418 # Extract the first word of "otool", so it can be a program name with args.
7419 set dummy otool; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 if test -n "$ac_ct_OTOOL"; then
7426 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_OTOOL="otool"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7446 if test -n "$ac_ct_OTOOL"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7448 $as_echo "$ac_ct_OTOOL" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454 if test "x$ac_ct_OTOOL" = x; then
7455 OTOOL=":"
7456 else
7457 case $cross_compiling:$ac_tool_warned in
7458 yes:)
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7462 esac
7463 OTOOL=$ac_ct_OTOOL
7464 fi
7465 else
7466 OTOOL="$ac_cv_prog_OTOOL"
7467 fi
7468
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_OTOOL64+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$OTOOL64"; then
7478 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 OTOOL64=$ac_cv_prog_OTOOL64
7498 if test -n "$OTOOL64"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7500 $as_echo "$OTOOL64" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507 fi
7508 if test -z "$ac_cv_prog_OTOOL64"; then
7509 ac_ct_OTOOL64=$OTOOL64
7510 # Extract the first word of "otool64", so it can be a program name with args.
7511 set dummy otool64; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$ac_ct_OTOOL64"; then
7518 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_OTOOL64="otool64"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531 done
7532 done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7538 if test -n "$ac_ct_OTOOL64"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7540 $as_echo "$ac_ct_OTOOL64" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546 if test "x$ac_ct_OTOOL64" = x; then
7547 OTOOL64=":"
7548 else
7549 case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555 OTOOL64=$ac_ct_OTOOL64
7556 fi
7557 else
7558 OTOOL64="$ac_cv_prog_OTOOL64"
7559 fi
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
7585
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7588 $as_echo_n "checking for -single_module linker flag... " >&6; }
7589 if ${lt_cv_apple_cc_single_mod+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 lt_cv_apple_cc_single_mod=no
7593 if test -z "$LT_MULTI_MODULE"; then
7594 # By default we will add the -single_module flag. You can override
7595 # by either setting the environment variable LT_MULTI_MODULE
7596 # non-empty at configure time, or by adding -multi_module to the
7597 # link flags.
7598 rm -rf libconftest.dylib*
7599 echo "int foo(void){return 1;}" > conftest.c
7600 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7601 -dynamiclib -Wl,-single_module conftest.c" >&5
7602 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7604 _lt_result=$?
7605 # If there is a non-empty error log, and "single_module"
7606 # appears in it, assume the flag caused a linker warning
7607 if test -s conftest.err && $GREP single_module conftest.err; then
7608 cat conftest.err >&5
7609 # Otherwise, if the output was created with a 0 exit code from
7610 # the compiler, it worked.
7611 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7612 lt_cv_apple_cc_single_mod=yes
7613 else
7614 cat conftest.err >&5
7615 fi
7616 rm -rf libconftest.dylib*
7617 rm -f conftest.*
7618 fi
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7621 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7624 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7625 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 lt_cv_ld_exported_symbols_list=no
7629 save_LDFLAGS=$LDFLAGS
7630 echo "_main" > conftest.sym
7631 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634
7635 int
7636 main ()
7637 {
7638
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 lt_cv_ld_exported_symbols_list=yes
7645 else
7646 lt_cv_ld_exported_symbols_list=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LDFLAGS=$save_LDFLAGS
7651
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7654 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7657 $as_echo_n "checking for -force_load linker flag... " >&6; }
7658 if ${lt_cv_ld_force_load+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 lt_cv_ld_force_load=no
7662 cat > conftest.c << _LT_EOF
7663 int forced_loaded() { return 2;}
7664 _LT_EOF
7665 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7666 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7667 echo "$AR cru libconftest.a conftest.o" >&5
7668 $AR cru libconftest.a conftest.o 2>&5
7669 echo "$RANLIB libconftest.a" >&5
7670 $RANLIB libconftest.a 2>&5
7671 cat > conftest.c << _LT_EOF
7672 int main() { return 0;}
7673 _LT_EOF
7674 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7675 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7676 _lt_result=$?
7677 if test -s conftest.err && $GREP force_load conftest.err; then
7678 cat conftest.err >&5
7679 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7680 lt_cv_ld_force_load=yes
7681 else
7682 cat conftest.err >&5
7683 fi
7684 rm -f conftest.err libconftest.a conftest conftest.c
7685 rm -rf conftest.dSYM
7686
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7689 $as_echo "$lt_cv_ld_force_load" >&6; }
7690 case $host_os in
7691 rhapsody* | darwin1.[012])
7692 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7693 darwin1.*)
7694 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7695 darwin*) # darwin 5.x on
7696 # if running on 10.5 or later, the deployment target defaults
7697 # to the OS version, if on x86, and 10.4, the deployment
7698 # target defaults to 10.4. Don't you love it?
7699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7700 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7701 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7702 10.[012][,.]*)
7703 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7704 10.*)
7705 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7706 esac
7707 ;;
7708 esac
7709 if test yes = "$lt_cv_apple_cc_single_mod"; then
7710 _lt_dar_single_mod='$single_module'
7711 fi
7712 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7713 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7714 else
7715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7716 fi
7717 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7718 _lt_dsymutil='~$DSYMUTIL $lib || :'
7719 else
7720 _lt_dsymutil=
7721 fi
7722 ;;
7723 esac
7724
7725 # func_munge_path_list VARIABLE PATH
7726 # -----------------------------------
7727 # VARIABLE is name of variable containing _space_ separated list of
7728 # directories to be munged by the contents of PATH, which is string
7729 # having a format:
7730 # "DIR[:DIR]:"
7731 # string "DIR[ DIR]" will be prepended to VARIABLE
7732 # ":DIR[:DIR]"
7733 # string "DIR[ DIR]" will be appended to VARIABLE
7734 # "DIRP[:DIRP]::[DIRA:]DIRA"
7735 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7736 # "DIRA[ DIRA]" will be appended to VARIABLE
7737 # "DIR[:DIR]"
7738 # VARIABLE will be replaced by "DIR[ DIR]"
7739 func_munge_path_list ()
7740 {
7741 case x$2 in
7742 x)
7743 ;;
7744 *:)
7745 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7746 ;;
7747 x:*)
7748 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7749 ;;
7750 *::*)
7751 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7752 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7753 ;;
7754 *)
7755 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7756 ;;
7757 esac
7758 }
7759
7760 ac_ext=c
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7766 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7767 # On Suns, sometimes $CPP names a directory.
7768 if test -n "$CPP" && test -d "$CPP"; then
7769 CPP=
7770 fi
7771 if test -z "$CPP"; then
7772 if ${ac_cv_prog_CPP+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 # Double quotes because CPP needs to be expanded
7776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7777 do
7778 ac_preproc_ok=false
7779 for ac_c_preproc_warn_flag in '' yes
7780 do
7781 # Use a header file that comes with gcc, so configuring glibc
7782 # with a fresh cross-compiler works.
7783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784 # <limits.h> exists even on freestanding compilers.
7785 # On the NeXT, cc -E runs the code through the compiler's parser,
7786 # not just through cpp. "Syntax error" is here to catch this case.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #ifdef __STDC__
7790 # include <limits.h>
7791 #else
7792 # include <assert.h>
7793 #endif
7794 Syntax error
7795 _ACEOF
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7797
7798 else
7799 # Broken: fails on valid input.
7800 continue
7801 fi
7802 rm -f conftest.err conftest.i conftest.$ac_ext
7803
7804 # OK, works on sane cases. Now check whether nonexistent headers
7805 # can be detected and how.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7809 _ACEOF
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811 # Broken: success on invalid input.
7812 continue
7813 else
7814 # Passes both tests.
7815 ac_preproc_ok=:
7816 break
7817 fi
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7819
7820 done
7821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7822 rm -f conftest.i conftest.err conftest.$ac_ext
7823 if $ac_preproc_ok; then :
7824 break
7825 fi
7826
7827 done
7828 ac_cv_prog_CPP=$CPP
7829
7830 fi
7831 CPP=$ac_cv_prog_CPP
7832 else
7833 ac_cv_prog_CPP=$CPP
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7836 $as_echo "$CPP" >&6; }
7837 ac_preproc_ok=false
7838 for ac_c_preproc_warn_flag in '' yes
7839 do
7840 # Use a header file that comes with gcc, so configuring glibc
7841 # with a fresh cross-compiler works.
7842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7843 # <limits.h> exists even on freestanding compilers.
7844 # On the NeXT, cc -E runs the code through the compiler's parser,
7845 # not just through cpp. "Syntax error" is here to catch this case.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #ifdef __STDC__
7849 # include <limits.h>
7850 #else
7851 # include <assert.h>
7852 #endif
7853 Syntax error
7854 _ACEOF
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7856
7857 else
7858 # Broken: fails on valid input.
7859 continue
7860 fi
7861 rm -f conftest.err conftest.i conftest.$ac_ext
7862
7863 # OK, works on sane cases. Now check whether nonexistent headers
7864 # can be detected and how.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <ac_nonexistent.h>
7868 _ACEOF
7869 if ac_fn_c_try_cpp "$LINENO"; then :
7870 # Broken: success on invalid input.
7871 continue
7872 else
7873 # Passes both tests.
7874 ac_preproc_ok=:
7875 break
7876 fi
7877 rm -f conftest.err conftest.i conftest.$ac_ext
7878
7879 done
7880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7881 rm -f conftest.i conftest.err conftest.$ac_ext
7882 if $ac_preproc_ok; then :
7883
7884 else
7885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7887 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7888 See \`config.log' for more details" "$LINENO" 5; }
7889 fi
7890
7891 ac_ext=c
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7899 $as_echo_n "checking for ANSI C header files... " >&6; }
7900 if ${ac_cv_header_stdc+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #include <stdlib.h>
7906 #include <stdarg.h>
7907 #include <string.h>
7908 #include <float.h>
7909
7910 int
7911 main ()
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_header_stdc=yes
7920 else
7921 ac_cv_header_stdc=no
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924
7925 if test $ac_cv_header_stdc = yes; then
7926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 #include <string.h>
7930
7931 _ACEOF
7932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7933 $EGREP "memchr" >/dev/null 2>&1; then :
7934
7935 else
7936 ac_cv_header_stdc=no
7937 fi
7938 rm -f conftest*
7939
7940 fi
7941
7942 if test $ac_cv_header_stdc = yes; then
7943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <stdlib.h>
7947
7948 _ACEOF
7949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7950 $EGREP "free" >/dev/null 2>&1; then :
7951
7952 else
7953 ac_cv_header_stdc=no
7954 fi
7955 rm -f conftest*
7956
7957 fi
7958
7959 if test $ac_cv_header_stdc = yes; then
7960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961 if test "$cross_compiling" = yes; then :
7962 :
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 #include <ctype.h>
7967 #include <stdlib.h>
7968 #if ((' ' & 0x0FF) == 0x020)
7969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7971 #else
7972 # define ISLOWER(c) \
7973 (('a' <= (c) && (c) <= 'i') \
7974 || ('j' <= (c) && (c) <= 'r') \
7975 || ('s' <= (c) && (c) <= 'z'))
7976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7977 #endif
7978
7979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7980 int
7981 main ()
7982 {
7983 int i;
7984 for (i = 0; i < 256; i++)
7985 if (XOR (islower (i), ISLOWER (i))
7986 || toupper (i) != TOUPPER (i))
7987 return 2;
7988 return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_run "$LINENO"; then :
7992
7993 else
7994 ac_cv_header_stdc=no
7995 fi
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
7998 fi
7999
8000 fi
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8003 $as_echo "$ac_cv_header_stdc" >&6; }
8004 if test $ac_cv_header_stdc = yes; then
8005
8006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8007
8008 fi
8009
8010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8012 inttypes.h stdint.h unistd.h
8013 do :
8014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8016 "
8017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020 _ACEOF
8021
8022 fi
8023
8024 done
8025
8026
8027 for ac_header in dlfcn.h
8028 do :
8029 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8030 "
8031 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8032 cat >>confdefs.h <<_ACEOF
8033 #define HAVE_DLFCN_H 1
8034 _ACEOF
8035
8036 fi
8037
8038 done
8039
8040
8041
8042
8043
8044 # Set options
8045
8046
8047
8048 enable_dlopen=no
8049
8050
8051 enable_win32_dll=no
8052
8053
8054 # Check whether --enable-shared was given.
8055 if test "${enable_shared+set}" = set; then :
8056 enableval=$enable_shared; p=${PACKAGE-default}
8057 case $enableval in
8058 yes) enable_shared=yes ;;
8059 no) enable_shared=no ;;
8060 *)
8061 enable_shared=no
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8064 for pkg in $enableval; do
8065 IFS=$lt_save_ifs
8066 if test "X$pkg" = "X$p"; then
8067 enable_shared=yes
8068 fi
8069 done
8070 IFS=$lt_save_ifs
8071 ;;
8072 esac
8073 else
8074 enable_shared=yes
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 # Check whether --enable-static was given.
8086 if test "${enable_static+set}" = set; then :
8087 enableval=$enable_static; p=${PACKAGE-default}
8088 case $enableval in
8089 yes) enable_static=yes ;;
8090 no) enable_static=no ;;
8091 *)
8092 enable_static=no
8093 # Look at the argument we got. We use all the common list separators.
8094 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8095 for pkg in $enableval; do
8096 IFS=$lt_save_ifs
8097 if test "X$pkg" = "X$p"; then
8098 enable_static=yes
8099 fi
8100 done
8101 IFS=$lt_save_ifs
8102 ;;
8103 esac
8104 else
8105 enable_static=yes
8106 fi
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 # Check whether --with-pic was given.
8118 if test "${with_pic+set}" = set; then :
8119 withval=$with_pic; lt_p=${PACKAGE-default}
8120 case $withval in
8121 yes|no) pic_mode=$withval ;;
8122 *)
8123 pic_mode=default
8124 # Look at the argument we got. We use all the common list separators.
8125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8126 for lt_pkg in $withval; do
8127 IFS=$lt_save_ifs
8128 if test "X$lt_pkg" = "X$lt_p"; then
8129 pic_mode=yes
8130 fi
8131 done
8132 IFS=$lt_save_ifs
8133 ;;
8134 esac
8135 else
8136 pic_mode=default
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145
8146 # Check whether --enable-fast-install was given.
8147 if test "${enable_fast_install+set}" = set; then :
8148 enableval=$enable_fast_install; p=${PACKAGE-default}
8149 case $enableval in
8150 yes) enable_fast_install=yes ;;
8151 no) enable_fast_install=no ;;
8152 *)
8153 enable_fast_install=no
8154 # Look at the argument we got. We use all the common list separators.
8155 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8156 for pkg in $enableval; do
8157 IFS=$lt_save_ifs
8158 if test "X$pkg" = "X$p"; then
8159 enable_fast_install=yes
8160 fi
8161 done
8162 IFS=$lt_save_ifs
8163 ;;
8164 esac
8165 else
8166 enable_fast_install=yes
8167 fi
8168
8169
8170
8171
8172
8173
8174
8175
8176 shared_archive_member_spec=
8177 case $host,$enable_shared in
8178 power*-*-aix[5-9]*,yes)
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8180 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8181
8182 # Check whether --with-aix-soname was given.
8183 if test "${with_aix_soname+set}" = set; then :
8184 withval=$with_aix_soname; case $withval in
8185 aix|svr4|both)
8186 ;;
8187 *)
8188 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8189 ;;
8190 esac
8191 lt_cv_with_aix_soname=$with_aix_soname
8192 else
8193 if ${lt_cv_with_aix_soname+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 lt_cv_with_aix_soname=aix
8197 fi
8198
8199 with_aix_soname=$lt_cv_with_aix_soname
8200 fi
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8203 $as_echo "$with_aix_soname" >&6; }
8204 if test aix != "$with_aix_soname"; then
8205 # For the AIX way of multilib, we name the shared archive member
8206 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8207 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8208 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8209 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8210 if test 64 = "${OBJECT_MODE-32}"; then
8211 shared_archive_member_spec=shr_64
8212 else
8213 shared_archive_member_spec=shr
8214 fi
8215 fi
8216 ;;
8217 *)
8218 with_aix_soname=aix
8219 ;;
8220 esac
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231 # This can be used to rebuild libtool when needed
8232 LIBTOOL_DEPS=$ltmain
8233
8234 # Always use our own libtool.
8235 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8263
8264
8265
8266 test -z "$LN_S" && LN_S="ln -s"
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281 if test -n "${ZSH_VERSION+set}"; then
8282 setopt NO_GLOB_SUBST
8283 fi
8284
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8286 $as_echo_n "checking for objdir... " >&6; }
8287 if ${lt_cv_objdir+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 rm -f .libs 2>/dev/null
8291 mkdir .libs 2>/dev/null
8292 if test -d .libs; then
8293 lt_cv_objdir=.libs
8294 else
8295 # MS-DOS does not allow filenames that begin with a dot.
8296 lt_cv_objdir=_libs
8297 fi
8298 rmdir .libs 2>/dev/null
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8301 $as_echo "$lt_cv_objdir" >&6; }
8302 objdir=$lt_cv_objdir
8303
8304
8305
8306
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define LT_OBJDIR "$lt_cv_objdir/"
8310 _ACEOF
8311
8312
8313
8314
8315 case $host_os in
8316 aix3*)
8317 # AIX sometimes has problems with the GCC collect2 program. For some
8318 # reason, if we set the COLLECT_NAMES environment variable, the problems
8319 # vanish in a puff of smoke.
8320 if test set != "${COLLECT_NAMES+set}"; then
8321 COLLECT_NAMES=
8322 export COLLECT_NAMES
8323 fi
8324 ;;
8325 esac
8326
8327 # Global variables:
8328 ofile=libtool
8329 can_build_shared=yes
8330
8331 # All known linkers require a '.a' archive for static linking (except MSVC,
8332 # which needs '.lib').
8333 libext=a
8334
8335 with_gnu_ld=$lt_cv_prog_gnu_ld
8336
8337 old_CC=$CC
8338 old_CFLAGS=$CFLAGS
8339
8340 # Set sane defaults for various variables
8341 test -z "$CC" && CC=cc
8342 test -z "$LTCC" && LTCC=$CC
8343 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8344 test -z "$LD" && LD=ld
8345 test -z "$ac_objext" && ac_objext=o
8346
8347 func_cc_basename $compiler
8348 cc_basename=$func_cc_basename_result
8349
8350
8351 # Only perform the check for file, if the check method requires it
8352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8353 case $deplibs_check_method in
8354 file_magic*)
8355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8357 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8358 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 case $MAGIC_CMD in
8362 [\\/*] | ?:[\\/]*)
8363 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8364 ;;
8365 *)
8366 lt_save_MAGIC_CMD=$MAGIC_CMD
8367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8369 for ac_dir in $ac_dummy; do
8370 IFS=$lt_save_ifs
8371 test -z "$ac_dir" && ac_dir=.
8372 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8373 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8374 if test -n "$file_magic_test_file"; then
8375 case $deplibs_check_method in
8376 "file_magic "*)
8377 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8378 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8380 $EGREP "$file_magic_regex" > /dev/null; then
8381 :
8382 else
8383 cat <<_LT_EOF 1>&2
8384
8385 *** Warning: the command libtool uses to detect shared libraries,
8386 *** $file_magic_cmd, produces output that libtool cannot recognize.
8387 *** The result is that libtool may fail to recognize shared libraries
8388 *** as such. This will affect the creation of libtool libraries that
8389 *** depend on shared libraries, but programs linked with such libtool
8390 *** libraries will work regardless of this problem. Nevertheless, you
8391 *** may want to report the problem to your system manager and/or to
8392 *** bug-libtool@gnu.org
8393
8394 _LT_EOF
8395 fi ;;
8396 esac
8397 fi
8398 break
8399 fi
8400 done
8401 IFS=$lt_save_ifs
8402 MAGIC_CMD=$lt_save_MAGIC_CMD
8403 ;;
8404 esac
8405 fi
8406
8407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8408 if test -n "$MAGIC_CMD"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8410 $as_echo "$MAGIC_CMD" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417
8418
8419
8420 if test -z "$lt_cv_path_MAGIC_CMD"; then
8421 if test -n "$ac_tool_prefix"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8423 $as_echo_n "checking for file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 case $MAGIC_CMD in
8428 [\\/*] | ?:[\\/]*)
8429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8430 ;;
8431 *)
8432 lt_save_MAGIC_CMD=$MAGIC_CMD
8433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir in $ac_dummy; do
8436 IFS=$lt_save_ifs
8437 test -z "$ac_dir" && ac_dir=.
8438 if test -f "$ac_dir/file"; then
8439 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8442 "file_magic "*)
8443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8446 $EGREP "$file_magic_regex" > /dev/null; then
8447 :
8448 else
8449 cat <<_LT_EOF 1>&2
8450
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** bug-libtool@gnu.org
8459
8460 _LT_EOF
8461 fi ;;
8462 esac
8463 fi
8464 break
8465 fi
8466 done
8467 IFS=$lt_save_ifs
8468 MAGIC_CMD=$lt_save_MAGIC_CMD
8469 ;;
8470 esac
8471 fi
8472
8473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483 else
8484 MAGIC_CMD=:
8485 fi
8486 fi
8487
8488 fi
8489 ;;
8490 esac
8491
8492 # Use C for the default configuration in the libtool script
8493
8494 lt_save_CC=$CC
8495 ac_ext=c
8496 ac_cpp='$CPP $CPPFLAGS'
8497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
8502 # Source file extension for C test sources.
8503 ac_ext=c
8504
8505 # Object file extension for compiled C test sources.
8506 objext=o
8507 objext=$objext
8508
8509 # Code to be used in simple compile tests
8510 lt_simple_compile_test_code="int some_variable = 0;"
8511
8512 # Code to be used in simple link tests
8513 lt_simple_link_test_code='int main(){return(0);}'
8514
8515
8516
8517
8518
8519
8520
8521 # If no C compiler was specified, use CC.
8522 LTCC=${LTCC-"$CC"}
8523
8524 # If no C compiler flags were specified, use CFLAGS.
8525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8526
8527 # Allow CC to be a program name with arguments.
8528 compiler=$CC
8529
8530 # Save the default compiler, since it gets overwritten when the other
8531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8532 compiler_DEFAULT=$CC
8533
8534 # save warnings/boilerplate of simple test code
8535 ac_outfile=conftest.$ac_objext
8536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8538 _lt_compiler_boilerplate=`cat conftest.err`
8539 $RM conftest*
8540
8541 ac_outfile=conftest.$ac_objext
8542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8544 _lt_linker_boilerplate=`cat conftest.err`
8545 $RM -r conftest*
8546
8547
8548 ## CAVEAT EMPTOR:
8549 ## There is no encapsulation within the following macros, do not change
8550 ## the running order or otherwise move them around unless you know exactly
8551 ## what you are doing...
8552 if test -n "$compiler"; then
8553
8554 lt_prog_compiler_no_builtin_flag=
8555
8556 if test yes = "$GCC"; then
8557 case $cc_basename in
8558 nvcc*)
8559 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8560 *)
8561 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8562 esac
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8565 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8566 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_prog_compiler_rtti_exceptions=no
8570 ac_outfile=conftest.$ac_objext
8571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 # The option is referenced via a variable to avoid confusing sed.
8578 lt_compile=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>conftest.err)
8584 ac_status=$?
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s "$ac_outfile"; then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings other than the usual output.
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_rtti_exceptions=yes
8594 fi
8595 fi
8596 $RM conftest*
8597
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8600 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8601
8602 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8603 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8604 else
8605 :
8606 fi
8607
8608 fi
8609
8610
8611
8612
8613
8614
8615 lt_prog_compiler_wl=
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_static=
8618
8619
8620 if test yes = "$GCC"; then
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_static='-static'
8623
8624 case $host_os in
8625 aix*)
8626 # All AIX code is PIC.
8627 if test ia64 = "$host_cpu"; then
8628 # AIX 5 now supports IA64 processor
8629 lt_prog_compiler_static='-Bstatic'
8630 fi
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633
8634 amigaos*)
8635 case $host_cpu in
8636 powerpc)
8637 # see comment about AmigaOS4 .so support
8638 lt_prog_compiler_pic='-fPIC'
8639 ;;
8640 m68k)
8641 # FIXME: we need at least 68020 code to build shared libraries, but
8642 # adding the '-m68020' flag to GCC prevents building anything better,
8643 # like '-m68040'.
8644 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8645 ;;
8646 esac
8647 ;;
8648
8649 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650 # PIC is the default for these OSes.
8651 ;;
8652
8653 mingw* | cygwin* | pw32* | os2* | cegcc*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8657 # (--disable-auto-import) libraries
8658 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 case $host_os in
8660 os2*)
8661 lt_prog_compiler_static='$wl-static'
8662 ;;
8663 esac
8664 ;;
8665
8666 darwin* | rhapsody*)
8667 # PIC is the default on this platform
8668 # Common symbols not allowed in MH_DYLIB files
8669 lt_prog_compiler_pic='-fno-common'
8670 ;;
8671
8672 haiku*)
8673 # PIC is the default for Haiku.
8674 # The "-static" flag exists, but is broken.
8675 lt_prog_compiler_static=
8676 ;;
8677
8678 hpux*)
8679 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8680 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8681 # sets the default TLS model and affects inlining.
8682 case $host_cpu in
8683 hppa*64*)
8684 # +Z the default
8685 ;;
8686 *)
8687 lt_prog_compiler_pic='-fPIC'
8688 ;;
8689 esac
8690 ;;
8691
8692 interix[3-9]*)
8693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8694 # Instead, we relocate shared libraries at runtime.
8695 ;;
8696
8697 msdosdjgpp*)
8698 # Just because we use GCC doesn't mean we suddenly get shared libraries
8699 # on systems that don't support them.
8700 lt_prog_compiler_can_build_shared=no
8701 enable_shared=no
8702 ;;
8703
8704 *nto* | *qnx*)
8705 # QNX uses GNU C++, but need to define -shared option too, otherwise
8706 # it will coredump.
8707 lt_prog_compiler_pic='-fPIC -shared'
8708 ;;
8709
8710 sysv4*MP*)
8711 if test -d /usr/nec; then
8712 lt_prog_compiler_pic=-Kconform_pic
8713 fi
8714 ;;
8715
8716 *)
8717 lt_prog_compiler_pic='-fPIC'
8718 ;;
8719 esac
8720
8721 case $cc_basename in
8722 nvcc*) # Cuda Compiler Driver 2.2
8723 lt_prog_compiler_wl='-Xlinker '
8724 if test -n "$lt_prog_compiler_pic"; then
8725 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8726 fi
8727 ;;
8728 esac
8729 else
8730 # PORTME Check for flag to pass linker flags through the system compiler.
8731 case $host_os in
8732 aix*)
8733 lt_prog_compiler_wl='-Wl,'
8734 if test ia64 = "$host_cpu"; then
8735 # AIX 5 now supports IA64 processor
8736 lt_prog_compiler_static='-Bstatic'
8737 else
8738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8739 fi
8740 ;;
8741
8742 darwin* | rhapsody*)
8743 # PIC is the default on this platform
8744 # Common symbols not allowed in MH_DYLIB files
8745 lt_prog_compiler_pic='-fno-common'
8746 case $cc_basename in
8747 nagfor*)
8748 # NAG Fortran compiler
8749 lt_prog_compiler_wl='-Wl,-Wl,,'
8750 lt_prog_compiler_pic='-PIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 ;;
8753 esac
8754 ;;
8755
8756 mingw* | cygwin* | pw32* | os2* | cegcc*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 lt_prog_compiler_pic='-DDLL_EXPORT'
8760 case $host_os in
8761 os2*)
8762 lt_prog_compiler_static='$wl-static'
8763 ;;
8764 esac
8765 ;;
8766
8767 hpux9* | hpux10* | hpux11*)
8768 lt_prog_compiler_wl='-Wl,'
8769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8770 # not for PA HP-UX.
8771 case $host_cpu in
8772 hppa*64*|ia64*)
8773 # +Z the default
8774 ;;
8775 *)
8776 lt_prog_compiler_pic='+Z'
8777 ;;
8778 esac
8779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8780 lt_prog_compiler_static='$wl-a ${wl}archive'
8781 ;;
8782
8783 irix5* | irix6* | nonstopux*)
8784 lt_prog_compiler_wl='-Wl,'
8785 # PIC (with -KPIC) is the default.
8786 lt_prog_compiler_static='-non_shared'
8787 ;;
8788
8789 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8790 case $cc_basename in
8791 # old Intel for x86_64, which still supported -KPIC.
8792 ecc*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-static'
8796 ;;
8797 # icc used to be incompatible with GCC.
8798 # ICC 10 doesn't accept -KPIC any more.
8799 icc* | ifort*)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-fPIC'
8802 lt_prog_compiler_static='-static'
8803 ;;
8804 # Lahey Fortran 8.1.
8805 lf95*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='--shared'
8808 lt_prog_compiler_static='--static'
8809 ;;
8810 nagfor*)
8811 # NAG Fortran compiler
8812 lt_prog_compiler_wl='-Wl,-Wl,,'
8813 lt_prog_compiler_pic='-PIC'
8814 lt_prog_compiler_static='-Bstatic'
8815 ;;
8816 tcc*)
8817 # Fabrice Bellard et al's Tiny C Compiler
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-fPIC'
8820 lt_prog_compiler_static='-static'
8821 ;;
8822 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8823 # Portland Group compilers (*not* the Pentium gcc compiler,
8824 # which looks to be a dead project)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-fpic'
8827 lt_prog_compiler_static='-Bstatic'
8828 ;;
8829 ccc*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # All Alpha code is PIC.
8832 lt_prog_compiler_static='-non_shared'
8833 ;;
8834 xl* | bgxl* | bgf* | mpixl*)
8835 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-qpic'
8838 lt_prog_compiler_static='-qstaticlink'
8839 ;;
8840 *)
8841 case `$CC -V 2>&1 | sed 5q` in
8842 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8843 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8844 lt_prog_compiler_pic='-KPIC'
8845 lt_prog_compiler_static='-Bstatic'
8846 lt_prog_compiler_wl=''
8847 ;;
8848 *Sun\ F* | *Sun*Fortran*)
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8851 lt_prog_compiler_wl='-Qoption ld '
8852 ;;
8853 *Sun\ C*)
8854 # Sun C 5.9
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 lt_prog_compiler_wl='-Wl,'
8858 ;;
8859 *Intel*\ [CF]*Compiler*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-fPIC'
8862 lt_prog_compiler_static='-static'
8863 ;;
8864 *Portland\ Group*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-fpic'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869 esac
8870 ;;
8871 esac
8872 ;;
8873
8874 newsos6)
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 ;;
8878
8879 *nto* | *qnx*)
8880 # QNX uses GNU C++, but need to define -shared option too, otherwise
8881 # it will coredump.
8882 lt_prog_compiler_pic='-fPIC -shared'
8883 ;;
8884
8885 osf3* | osf4* | osf5*)
8886 lt_prog_compiler_wl='-Wl,'
8887 # All OSF/1 code is PIC.
8888 lt_prog_compiler_static='-non_shared'
8889 ;;
8890
8891 rdos*)
8892 lt_prog_compiler_static='-non_shared'
8893 ;;
8894
8895 solaris*)
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 case $cc_basename in
8899 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8900 lt_prog_compiler_wl='-Qoption ld ';;
8901 *)
8902 lt_prog_compiler_wl='-Wl,';;
8903 esac
8904 ;;
8905
8906 sunos4*)
8907 lt_prog_compiler_wl='-Qoption ld '
8908 lt_prog_compiler_pic='-PIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911
8912 sysv4 | sysv4.2uw2* | sysv4.3*)
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
8917
8918 sysv4*MP*)
8919 if test -d /usr/nec; then
8920 lt_prog_compiler_pic='-Kconform_pic'
8921 lt_prog_compiler_static='-Bstatic'
8922 fi
8923 ;;
8924
8925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
8930
8931 unicos*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_can_build_shared=no
8934 ;;
8935
8936 uts4*)
8937 lt_prog_compiler_pic='-pic'
8938 lt_prog_compiler_static='-Bstatic'
8939 ;;
8940
8941 *)
8942 lt_prog_compiler_can_build_shared=no
8943 ;;
8944 esac
8945 fi
8946
8947 case $host_os in
8948 # For platforms that do not support PIC, -DPIC is meaningless:
8949 *djgpp*)
8950 lt_prog_compiler_pic=
8951 ;;
8952 *)
8953 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8954 ;;
8955 esac
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8959 if ${lt_cv_prog_compiler_pic+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8963 fi
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8966 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8967
8968 #
8969 # Check to make sure the PIC flag actually works.
8970 #
8971 if test -n "$lt_prog_compiler_pic"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8974 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 lt_cv_prog_compiler_pic_works=no
8978 ac_outfile=conftest.$ac_objext
8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8981 # Insert the option either (1) after the last *FLAGS variable, or
8982 # (2) before a word containing "conftest.", or (3) at the end.
8983 # Note that $ac_compile itself does not contain backslashes and begins
8984 # with a dollar sign (not a hyphen), so the echo should work correctly.
8985 # The option is referenced via a variable to avoid confusing sed.
8986 lt_compile=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>conftest.err)
8992 ac_status=$?
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 if (exit $ac_status) && test -s "$ac_outfile"; then
8996 # The compiler can only warn and ignore the option if not recognized
8997 # So say no if there are warnings other than the usual output.
8998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9001 lt_cv_prog_compiler_pic_works=yes
9002 fi
9003 fi
9004 $RM conftest*
9005
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9009
9010 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9011 case $lt_prog_compiler_pic in
9012 "" | " "*) ;;
9013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9014 esac
9015 else
9016 lt_prog_compiler_pic=
9017 lt_prog_compiler_can_build_shared=no
9018 fi
9019
9020 fi
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 #
9033 # Check to make sure the static flag actually works.
9034 #
9035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9038 if ${lt_cv_prog_compiler_static_works+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 lt_cv_prog_compiler_static_works=no
9042 save_LDFLAGS=$LDFLAGS
9043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9046 # The linker can only warn and ignore the option if not recognized
9047 # So say no if there are warnings
9048 if test -s conftest.err; then
9049 # Append any errors to the config.log.
9050 cat conftest.err 1>&5
9051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9053 if diff conftest.exp conftest.er2 >/dev/null; then
9054 lt_cv_prog_compiler_static_works=yes
9055 fi
9056 else
9057 lt_cv_prog_compiler_static_works=yes
9058 fi
9059 fi
9060 $RM -r conftest*
9061 LDFLAGS=$save_LDFLAGS
9062
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9066
9067 if test yes = "$lt_cv_prog_compiler_static_works"; then
9068 :
9069 else
9070 lt_prog_compiler_static=
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9081 if ${lt_cv_prog_compiler_c_o+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 lt_cv_prog_compiler_c_o=no
9085 $RM -r conftest 2>/dev/null
9086 mkdir conftest
9087 cd conftest
9088 mkdir out
9089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090
9091 lt_compiler_flag="-o out/conftest2.$ac_objext"
9092 # Insert the option either (1) after the last *FLAGS variable, or
9093 # (2) before a word containing "conftest.", or (3) at the end.
9094 # Note that $ac_compile itself does not contain backslashes and begins
9095 # with a dollar sign (not a hyphen), so the echo should work correctly.
9096 lt_compile=`echo "$ac_compile" | $SED \
9097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099 -e 's:$: $lt_compiler_flag:'`
9100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101 (eval "$lt_compile" 2>out/conftest.err)
9102 ac_status=$?
9103 cat out/conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9106 then
9107 # The compiler can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_c_o=yes
9113 fi
9114 fi
9115 chmod u+w . 2>&5
9116 $RM conftest*
9117 # SGI C++ compiler will create directory out/ii_files/ for
9118 # template instantiation
9119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9120 $RM out/* && rmdir out
9121 cd ..
9122 $RM -r conftest
9123 $RM conftest*
9124
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128
9129
9130
9131
9132
9133
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9136 if ${lt_cv_prog_compiler_c_o+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 lt_cv_prog_compiler_c_o=no
9140 $RM -r conftest 2>/dev/null
9141 mkdir conftest
9142 cd conftest
9143 mkdir out
9144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145
9146 lt_compiler_flag="-o out/conftest2.$ac_objext"
9147 # Insert the option either (1) after the last *FLAGS variable, or
9148 # (2) before a word containing "conftest.", or (3) at the end.
9149 # Note that $ac_compile itself does not contain backslashes and begins
9150 # with a dollar sign (not a hyphen), so the echo should work correctly.
9151 lt_compile=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>out/conftest.err)
9157 ac_status=$?
9158 cat out/conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9161 then
9162 # The compiler can only warn and ignore the option if not recognized
9163 # So say no if there are warnings
9164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9167 lt_cv_prog_compiler_c_o=yes
9168 fi
9169 fi
9170 chmod u+w . 2>&5
9171 $RM conftest*
9172 # SGI C++ compiler will create directory out/ii_files/ for
9173 # template instantiation
9174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9175 $RM out/* && rmdir out
9176 cd ..
9177 $RM -r conftest
9178 $RM conftest*
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9183
9184
9185
9186
9187 hard_links=nottested
9188 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9189 # do not overwrite the value of need_locks provided by the user
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9191 $as_echo_n "checking if we can lock with hard links... " >&6; }
9192 hard_links=yes
9193 $RM conftest*
9194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9195 touch conftest.a
9196 ln conftest.a conftest.b 2>&5 || hard_links=no
9197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9199 $as_echo "$hard_links" >&6; }
9200 if test no = "$hard_links"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9202 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9203 need_locks=warn
9204 fi
9205 else
9206 need_locks=no
9207 fi
9208
9209
9210
9211
9212
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9216
9217 runpath_var=
9218 allow_undefined_flag=
9219 always_export_symbols=no
9220 archive_cmds=
9221 archive_expsym_cmds=
9222 compiler_needs_object=no
9223 enable_shared_with_static_runtimes=no
9224 export_dynamic_flag_spec=
9225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9226 hardcode_automatic=no
9227 hardcode_direct=no
9228 hardcode_direct_absolute=no
9229 hardcode_libdir_flag_spec=
9230 hardcode_libdir_separator=
9231 hardcode_minus_L=no
9232 hardcode_shlibpath_var=unsupported
9233 inherit_rpath=no
9234 link_all_deplibs=unknown
9235 module_cmds=
9236 module_expsym_cmds=
9237 old_archive_from_new_cmds=
9238 old_archive_from_expsyms_cmds=
9239 thread_safe_flag_spec=
9240 whole_archive_flag_spec=
9241 # include_expsyms should be a list of space-separated symbols to be *always*
9242 # included in the symbol list
9243 include_expsyms=
9244 # exclude_expsyms can be an extended regexp of symbols to exclude
9245 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9246 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9247 # as well as any symbol that contains 'd'.
9248 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9250 # platforms (ab)use it in PIC code, but their linkers get confused if
9251 # the symbol is explicitly referenced. Since portable code cannot
9252 # rely on this symbol name, it's probably fine to never include it in
9253 # preloaded symbol tables.
9254 # Exclude shared library initialization/finalization symbols.
9255 extract_expsyms_cmds=
9256
9257 case $host_os in
9258 cygwin* | mingw* | pw32* | cegcc*)
9259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9260 # When not using gcc, we currently assume that we are using
9261 # Microsoft Visual C++.
9262 if test yes != "$GCC"; then
9263 with_gnu_ld=no
9264 fi
9265 ;;
9266 interix*)
9267 # we just hope/assume this is gcc and not c89 (= MSVC++)
9268 with_gnu_ld=yes
9269 ;;
9270 openbsd* | bitrig*)
9271 with_gnu_ld=no
9272 ;;
9273 linux* | k*bsd*-gnu | gnu*)
9274 link_all_deplibs=no
9275 ;;
9276 esac
9277
9278 ld_shlibs=yes
9279
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface=no
9283 if test yes = "$with_gnu_ld"; then
9284 case $host_os in
9285 aix*)
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9292 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9293 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9294 *)
9295 lt_use_gnu_ld_interface=yes
9296 ;;
9297 esac
9298 ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 fi
9304
9305 if test yes = "$lt_use_gnu_ld_interface"; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9307 wlarc='$wl'
9308
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var=LD_RUN_PATH
9313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9314 export_dynamic_flag_spec='$wl--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9317 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9318 else
9319 whole_archive_flag_spec=
9320 fi
9321 supports_anon_versioning=no
9322 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9323 *GNU\ gold*) supports_anon_versioning=yes ;;
9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9327 *\ 2.11.*) ;; # other 2.11 versions
9328 *) supports_anon_versioning=yes ;;
9329 esac
9330
9331 # See if GNU ld supports shared libraries.
9332 case $host_os in
9333 aix[3-9]*)
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test ia64 != "$host_cpu"; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339 *** Warning: the GNU linker, at least up to release 2.19, is reported
9340 *** to be unable to reliably create shared libraries on AIX.
9341 *** Therefore, libtool is disabling shared libraries support. If you
9342 *** really care for shared libraries, you may want to install binutils
9343 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344 *** You will then need to restart the configuration process.
9345
9346 _LT_EOF
9347 fi
9348 ;;
9349
9350 amigaos*)
9351 case $host_cpu in
9352 powerpc)
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9355 archive_expsym_cmds=''
9356 ;;
9357 m68k)
9358 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)'
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_minus_L=yes
9361 ;;
9362 esac
9363 ;;
9364
9365 beos*)
9366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367 allow_undefined_flag=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9371 else
9372 ld_shlibs=no
9373 fi
9374 ;;
9375
9376 cygwin* | mingw* | pw32* | cegcc*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 export_dynamic_flag_spec='$wl--export-all-symbols'
9381 allow_undefined_flag=unsupported
9382 always_export_symbols=no
9383 enable_shared_with_static_runtimes=yes
9384 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'
9385 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9386
9387 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389 # If the export-symbols file already is a .def file, use it as
9390 # is; otherwise, prepend EXPORTS...
9391 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9392 cp $export_symbols $output_objdir/$soname.def;
9393 else
9394 echo EXPORTS > $output_objdir/$soname.def;
9395 cat $export_symbols >> $output_objdir/$soname.def;
9396 fi~
9397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9398 else
9399 ld_shlibs=no
9400 fi
9401 ;;
9402
9403 haiku*)
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9405 link_all_deplibs=yes
9406 ;;
9407
9408 os2*)
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_minus_L=yes
9411 allow_undefined_flag=unsupported
9412 shrext_cmds=.dll
9413 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9416 $ECHO EXPORTS >> $output_objdir/$libname.def~
9417 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9418 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9419 emximp -o $lib $output_objdir/$libname.def'
9420 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9421 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9422 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9423 $ECHO EXPORTS >> $output_objdir/$libname.def~
9424 prefix_cmds="$SED"~
9425 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9426 prefix_cmds="$prefix_cmds -e 1d";
9427 fi~
9428 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9429 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9431 emximp -o $lib $output_objdir/$libname.def'
9432 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9433 enable_shared_with_static_runtimes=yes
9434 ;;
9435
9436 interix[3-9]*)
9437 hardcode_direct=no
9438 hardcode_shlibpath_var=no
9439 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9440 export_dynamic_flag_spec='$wl-E'
9441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9442 # Instead, shared libraries are loaded at an image base (0x10000000 by
9443 # default) and relocated if they conflict, which is a slow very memory
9444 # consuming and fragmenting process. To avoid this, we pick a random,
9445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9448 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'
9449 ;;
9450
9451 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9452 tmp_diet=no
9453 if test linux-dietlibc = "$host_os"; then
9454 case $cc_basename in
9455 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9456 esac
9457 fi
9458 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9459 && test no = "$tmp_diet"
9460 then
9461 tmp_addflag=' $pic_flag'
9462 tmp_sharedflag='-shared'
9463 case $cc_basename,$host_cpu in
9464 pgcc*) # Portland Group C compiler
9465 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'
9466 tmp_addflag=' $pic_flag'
9467 ;;
9468 pgf77* | pgf90* | pgf95* | pgfortran*)
9469 # Portland Group f77 and f90 compilers
9470 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'
9471 tmp_addflag=' $pic_flag -Mnomain' ;;
9472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9473 tmp_addflag=' -i_dynamic' ;;
9474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9475 tmp_addflag=' -i_dynamic -nofor_main' ;;
9476 ifc* | ifort*) # Intel Fortran compiler
9477 tmp_addflag=' -nofor_main' ;;
9478 lf95*) # Lahey Fortran 8.1
9479 whole_archive_flag_spec=
9480 tmp_sharedflag='--shared' ;;
9481 nagfor*) # NAGFOR 5.3
9482 tmp_sharedflag='-Wl,-shared' ;;
9483 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9484 tmp_sharedflag='-qmkshrobj'
9485 tmp_addflag= ;;
9486 nvcc*) # Cuda Compiler Driver 2.2
9487 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'
9488 compiler_needs_object=yes
9489 ;;
9490 esac
9491 case `$CC -V 2>&1 | sed 5q` in
9492 *Sun\ C*) # Sun C 5.9
9493 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'
9494 compiler_needs_object=yes
9495 tmp_sharedflag='-G' ;;
9496 *Sun\ F*) # Sun Fortran 8.3
9497 tmp_sharedflag='-G' ;;
9498 esac
9499 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9500
9501 if test yes = "$supports_anon_versioning"; then
9502 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9504 echo "local: *; };" >> $output_objdir/$libname.ver~
9505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9506 fi
9507
9508 case $cc_basename in
9509 tcc*)
9510 export_dynamic_flag_spec='-rdynamic'
9511 ;;
9512 xlf* | bgf* | bgxlf* | mpixlf*)
9513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9514 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9516 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9517 if test yes = "$supports_anon_versioning"; then
9518 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9520 echo "local: *; };" >> $output_objdir/$libname.ver~
9521 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9522 fi
9523 ;;
9524 esac
9525 else
9526 ld_shlibs=no
9527 fi
9528 ;;
9529
9530 netbsd* | netbsdelf*-gnu)
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9533 wlarc=
9534 else
9535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9536 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9537 fi
9538 ;;
9539
9540 solaris*)
9541 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9542 ld_shlibs=no
9543 cat <<_LT_EOF 1>&2
9544
9545 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9546 *** create shared libraries on Solaris systems. Therefore, libtool
9547 *** is disabling shared libraries support. We urge you to upgrade GNU
9548 *** binutils to release 2.9.1 or newer. Another option is to modify
9549 *** your PATH or compiler configuration so that the native linker is
9550 *** used, and then restart.
9551
9552 _LT_EOF
9553 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9556 else
9557 ld_shlibs=no
9558 fi
9559 ;;
9560
9561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9562 case `$LD -v 2>&1` in
9563 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9564 ld_shlibs=no
9565 cat <<_LT_EOF 1>&2
9566
9567 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9568 *** reliably create shared libraries on SCO systems. Therefore, libtool
9569 *** is disabling shared libraries support. We urge you to upgrade GNU
9570 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9573
9574 _LT_EOF
9575 ;;
9576 *)
9577 # For security reasons, it is highly recommended that you always
9578 # use absolute paths for naming shared libraries, and exclude the
9579 # DT_RUNPATH tag from executables and libraries. But doing so
9580 # requires that you compile everything twice, which is a pain.
9581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9585 else
9586 ld_shlibs=no
9587 fi
9588 ;;
9589 esac
9590 ;;
9591
9592 sunos4*)
9593 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9594 wlarc=
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 *)
9600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9603 else
9604 ld_shlibs=no
9605 fi
9606 ;;
9607 esac
9608
9609 if test no = "$ld_shlibs"; then
9610 runpath_var=
9611 hardcode_libdir_flag_spec=
9612 export_dynamic_flag_spec=
9613 whole_archive_flag_spec=
9614 fi
9615 else
9616 # PORTME fill in a description of your system's linker (not GNU ld)
9617 case $host_os in
9618 aix3*)
9619 allow_undefined_flag=unsupported
9620 always_export_symbols=yes
9621 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'
9622 # Note: this linker hardcodes the directories in LIBPATH if there
9623 # are no directories specified by -L.
9624 hardcode_minus_L=yes
9625 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9626 # Neither direct hardcoding nor static linking is supported with a
9627 # broken collect2.
9628 hardcode_direct=unsupported
9629 fi
9630 ;;
9631
9632 aix[4-9]*)
9633 if test ia64 = "$host_cpu"; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking=no
9637 exp_sym_flag='-Bexport'
9638 no_entry_flag=
9639 else
9640 # If we're using GNU nm, then we don't want the "-C" option.
9641 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9642 # Without the "-l" option, or with the "-B" option, AIX nm treats
9643 # weak defined symbols like other global defined symbols, whereas
9644 # GNU nm marks them as "W".
9645 # While the 'weak' keyword is ignored in the Export File, we need
9646 # it in the Import File for the 'aix-soname' feature, so we have
9647 # to replace the "-B" option with "-P" for AIX nm.
9648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9649 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'
9650 else
9651 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'
9652 fi
9653 aix_use_runtimelinking=no
9654
9655 # Test if we are trying to use run time linking or normal
9656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9657 # have runtime linking enabled, and use it for executables.
9658 # For shared libraries, we enable/disable runtime linking
9659 # depending on the kind of the shared library created -
9660 # when "with_aix_soname,aix_use_runtimelinking" is:
9661 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9662 # "aix,yes" lib.so shared, rtl:yes, for executables
9663 # lib.a static archive
9664 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9665 # lib.a(lib.so.V) shared, rtl:no, for executables
9666 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9667 # lib.a(lib.so.V) shared, rtl:no
9668 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9669 # lib.a static archive
9670 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9671 for ld_flag in $LDFLAGS; do
9672 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9673 aix_use_runtimelinking=yes
9674 break
9675 fi
9676 done
9677 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9678 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9679 # so we don't have lib.a shared libs to link our executables.
9680 # We have to force runtime linking in this case.
9681 aix_use_runtimelinking=yes
9682 LDFLAGS="$LDFLAGS -Wl,-brtl"
9683 fi
9684 ;;
9685 esac
9686
9687 exp_sym_flag='-bexport'
9688 no_entry_flag='-bnoentry'
9689 fi
9690
9691 # When large executables or shared objects are built, AIX ld can
9692 # have problems creating the table of contents. If linking a library
9693 # or program results in "error TOC overflow" add -mminimal-toc to
9694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9696
9697 archive_cmds=''
9698 hardcode_direct=yes
9699 hardcode_direct_absolute=yes
9700 hardcode_libdir_separator=':'
9701 link_all_deplibs=yes
9702 file_list_spec='$wl-f,'
9703 case $with_aix_soname,$aix_use_runtimelinking in
9704 aix,*) ;; # traditional, no import file
9705 svr4,* | *,yes) # use import file
9706 # The Import File defines what to hardcode.
9707 hardcode_direct=no
9708 hardcode_direct_absolute=no
9709 ;;
9710 esac
9711
9712 if test yes = "$GCC"; then
9713 case $host_os in aix4.[012]|aix4.[012].*)
9714 # We only want to do this on AIX 4.2 and lower, the check
9715 # below for broken collect2 doesn't work under 4.3+
9716 collect2name=`$CC -print-prog-name=collect2`
9717 if test -f "$collect2name" &&
9718 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9719 then
9720 # We have reworked collect2
9721 :
9722 else
9723 # We have old collect2
9724 hardcode_direct=unsupported
9725 # It fails to find uninstalled libraries when the uninstalled
9726 # path is not listed in the libpath. Setting hardcode_minus_L
9727 # to unsupported forces relinking
9728 hardcode_minus_L=yes
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_libdir_separator=
9731 fi
9732 ;;
9733 esac
9734 shared_flag='-shared'
9735 if test yes = "$aix_use_runtimelinking"; then
9736 shared_flag="$shared_flag "'$wl-G'
9737 fi
9738 # Need to ensure runtime linking is disabled for the traditional
9739 # shared library, or the linker may eventually find shared libraries
9740 # /with/ Import File - we do not want to mix them.
9741 shared_flag_aix='-shared'
9742 shared_flag_svr4='-shared $wl-G'
9743 else
9744 # not using gcc
9745 if test ia64 = "$host_cpu"; then
9746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9747 # chokes on -Wl,-G. The following line is correct:
9748 shared_flag='-G'
9749 else
9750 if test yes = "$aix_use_runtimelinking"; then
9751 shared_flag='$wl-G'
9752 else
9753 shared_flag='$wl-bM:SRE'
9754 fi
9755 shared_flag_aix='$wl-bM:SRE'
9756 shared_flag_svr4='$wl-G'
9757 fi
9758 fi
9759
9760 export_dynamic_flag_spec='$wl-bexpall'
9761 # It seems that -bexpall does not export symbols beginning with
9762 # underscore (_), so it is better to generate a list of symbols to export.
9763 always_export_symbols=yes
9764 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9765 # Warning - without using the other runtime loading flags (-brtl),
9766 # -berok will link without error, but may produce a broken library.
9767 allow_undefined_flag='-berok'
9768 # Determine the default libpath from the value encoded in an
9769 # empty executable.
9770 if test set = "${lt_cv_aix_libpath+set}"; then
9771 aix_libpath=$lt_cv_aix_libpath
9772 else
9773 if ${lt_cv_aix_libpath_+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778
9779 int
9780 main ()
9781 {
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788
9789 lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9791 /^0/ {
9792 s/^0 *\([^ ]*\) *$/\1/
9793 p
9794 }
9795 }'
9796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 fi
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 if test -z "$lt_cv_aix_libpath_"; then
9805 lt_cv_aix_libpath_=/usr/lib:/lib
9806 fi
9807
9808 fi
9809
9810 aix_libpath=$lt_cv_aix_libpath_
9811 fi
9812
9813 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9814 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
9815 else
9816 if test ia64 = "$host_cpu"; then
9817 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag="-z nodefs"
9819 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"
9820 else
9821 # Determine the default libpath from the value encoded in an
9822 # empty executable.
9823 if test set = "${lt_cv_aix_libpath+set}"; then
9824 aix_libpath=$lt_cv_aix_libpath
9825 else
9826 if ${lt_cv_aix_libpath_+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831
9832 int
9833 main ()
9834 {
9835
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841
9842 lt_aix_libpath_sed='
9843 /Import File Strings/,/^$/ {
9844 /^0/ {
9845 s/^0 *\([^ ]*\) *$/\1/
9846 p
9847 }
9848 }'
9849 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9850 # Check for a 64-bit object if we didn't find anything.
9851 if test -z "$lt_cv_aix_libpath_"; then
9852 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 fi
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 if test -z "$lt_cv_aix_libpath_"; then
9858 lt_cv_aix_libpath_=/usr/lib:/lib
9859 fi
9860
9861 fi
9862
9863 aix_libpath=$lt_cv_aix_libpath_
9864 fi
9865
9866 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9867 # Warning - without using the other run time loading flags,
9868 # -berok will link without error, but may produce a broken library.
9869 no_undefined_flag=' $wl-bernotok'
9870 allow_undefined_flag=' $wl-berok'
9871 if test yes = "$with_gnu_ld"; then
9872 # We only use this code for GNU lds that support --whole-archive.
9873 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9874 else
9875 # Exported symbols can be pulled into shared objects from archives
9876 whole_archive_flag_spec='$convenience'
9877 fi
9878 archive_cmds_need_lc=yes
9879 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9880 # -brtl affects multiple linker settings, -berok does not and is overridden later
9881 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9882 if test svr4 != "$with_aix_soname"; then
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 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'
9885 fi
9886 if test aix != "$with_aix_soname"; then
9887 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'
9888 else
9889 # used by -dlpreopen to get the symbols
9890 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9891 fi
9892 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9893 fi
9894 fi
9895 ;;
9896
9897 amigaos*)
9898 case $host_cpu in
9899 powerpc)
9900 # see comment about AmigaOS4 .so support
9901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 archive_expsym_cmds=''
9903 ;;
9904 m68k)
9905 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)'
9906 hardcode_libdir_flag_spec='-L$libdir'
9907 hardcode_minus_L=yes
9908 ;;
9909 esac
9910 ;;
9911
9912 bsdi[45]*)
9913 export_dynamic_flag_spec=-rdynamic
9914 ;;
9915
9916 cygwin* | mingw* | pw32* | cegcc*)
9917 # When not using gcc, we currently assume that we are using
9918 # Microsoft Visual C++.
9919 # hardcode_libdir_flag_spec is actually meaningless, as there is
9920 # no search path for DLLs.
9921 case $cc_basename in
9922 cl*)
9923 # Native MSVC
9924 hardcode_libdir_flag_spec=' '
9925 allow_undefined_flag=unsupported
9926 always_export_symbols=yes
9927 file_list_spec='@'
9928 # Tell ltmain to make .lib files, not .a files.
9929 libext=lib
9930 # Tell ltmain to make .dll files, not .so files.
9931 shrext_cmds=.dll
9932 # FIXME: Setting linknames here is a bad hack.
9933 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9934 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9935 cp "$export_symbols" "$output_objdir/$soname.def";
9936 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9937 else
9938 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9939 fi~
9940 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9941 linknames='
9942 # The linker will not automatically build a static lib if we build a DLL.
9943 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9944 enable_shared_with_static_runtimes=yes
9945 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9947 # Don't use ranlib
9948 old_postinstall_cmds='chmod 644 $oldlib'
9949 postlink_cmds='lt_outputfile="@OUTPUT@"~
9950 lt_tool_outputfile="@TOOL_OUTPUT@"~
9951 case $lt_outputfile in
9952 *.exe|*.EXE) ;;
9953 *)
9954 lt_outputfile=$lt_outputfile.exe
9955 lt_tool_outputfile=$lt_tool_outputfile.exe
9956 ;;
9957 esac~
9958 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9959 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9960 $RM "$lt_outputfile.manifest";
9961 fi'
9962 ;;
9963 *)
9964 # Assume MSVC wrapper
9965 hardcode_libdir_flag_spec=' '
9966 allow_undefined_flag=unsupported
9967 # Tell ltmain to make .lib files, not .a files.
9968 libext=lib
9969 # Tell ltmain to make .dll files, not .so files.
9970 shrext_cmds=.dll
9971 # FIXME: Setting linknames here is a bad hack.
9972 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9973 # The linker will automatically build a .lib file if we build a DLL.
9974 old_archive_from_new_cmds='true'
9975 # FIXME: Should let the user specify the lib program.
9976 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9977 enable_shared_with_static_runtimes=yes
9978 ;;
9979 esac
9980 ;;
9981
9982 darwin* | rhapsody*)
9983
9984
9985 archive_cmds_need_lc=no
9986 hardcode_direct=no
9987 hardcode_automatic=yes
9988 hardcode_shlibpath_var=unsupported
9989 if test yes = "$lt_cv_ld_force_load"; then
9990 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\"`'
9991
9992 else
9993 whole_archive_flag_spec=''
9994 fi
9995 link_all_deplibs=yes
9996 allow_undefined_flag=$_lt_dar_allow_undefined
9997 case $cc_basename in
9998 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9999 *) _lt_dar_can_shared=$GCC ;;
10000 esac
10001 if test yes = "$_lt_dar_can_shared"; then
10002 output_verbose_link_cmd=func_echo_all
10003 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10004 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10005 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"
10006 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"
10007
10008 else
10009 ld_shlibs=no
10010 fi
10011
10012 ;;
10013
10014 dgux*)
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_shlibpath_var=no
10018 ;;
10019
10020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10021 # support. Future versions do this automatically, but an explicit c++rt0.o
10022 # does not break anything, and helps significantly (at the cost of a little
10023 # extra space).
10024 freebsd2.2*)
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10026 hardcode_libdir_flag_spec='-R$libdir'
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10032 freebsd2.*)
10033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct=yes
10035 hardcode_minus_L=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10040 freebsd* | dragonfly*)
10041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec='-R$libdir'
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10045 ;;
10046
10047 hpux9*)
10048 if test yes = "$GCC"; then
10049 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'
10050 else
10051 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'
10052 fi
10053 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10054 hardcode_libdir_separator=:
10055 hardcode_direct=yes
10056
10057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L=yes
10060 export_dynamic_flag_spec='$wl-E'
10061 ;;
10062
10063 hpux10*)
10064 if test yes,no = "$GCC,$with_gnu_ld"; then
10065 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068 fi
10069 if test no = "$with_gnu_ld"; then
10070 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10071 hardcode_libdir_separator=:
10072 hardcode_direct=yes
10073 hardcode_direct_absolute=yes
10074 export_dynamic_flag_spec='$wl-E'
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L=yes
10078 fi
10079 ;;
10080
10081 hpux11*)
10082 if test yes,no = "$GCC,$with_gnu_ld"; then
10083 case $host_cpu in
10084 hppa*64*)
10085 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 ;;
10087 ia64*)
10088 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10089 ;;
10090 *)
10091 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10092 ;;
10093 esac
10094 else
10095 case $host_cpu in
10096 hppa*64*)
10097 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 ;;
10099 ia64*)
10100 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101 ;;
10102 *)
10103
10104 # Older versions of the 11.00 compiler do not understand -b yet
10105 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10107 $as_echo_n "checking if $CC understands -b... " >&6; }
10108 if ${lt_cv_prog_compiler__b+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 lt_cv_prog_compiler__b=no
10112 save_LDFLAGS=$LDFLAGS
10113 LDFLAGS="$LDFLAGS -b"
10114 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10115 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10116 # The linker can only warn and ignore the option if not recognized
10117 # So say no if there are warnings
10118 if test -s conftest.err; then
10119 # Append any errors to the config.log.
10120 cat conftest.err 1>&5
10121 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10123 if diff conftest.exp conftest.er2 >/dev/null; then
10124 lt_cv_prog_compiler__b=yes
10125 fi
10126 else
10127 lt_cv_prog_compiler__b=yes
10128 fi
10129 fi
10130 $RM -r conftest*
10131 LDFLAGS=$save_LDFLAGS
10132
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10135 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10136
10137 if test yes = "$lt_cv_prog_compiler__b"; then
10138 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10139 else
10140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10141 fi
10142
10143 ;;
10144 esac
10145 fi
10146 if test no = "$with_gnu_ld"; then
10147 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10148 hardcode_libdir_separator=:
10149
10150 case $host_cpu in
10151 hppa*64*|ia64*)
10152 hardcode_direct=no
10153 hardcode_shlibpath_var=no
10154 ;;
10155 *)
10156 hardcode_direct=yes
10157 hardcode_direct_absolute=yes
10158 export_dynamic_flag_spec='$wl-E'
10159
10160 # hardcode_minus_L: Not really in the search PATH,
10161 # but as the default location of the library.
10162 hardcode_minus_L=yes
10163 ;;
10164 esac
10165 fi
10166 ;;
10167
10168 irix5* | irix6* | nonstopux*)
10169 if test yes = "$GCC"; then
10170 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'
10171 # Try to use the -exported_symbol ld option, if it does not
10172 # work, assume that -exports_file does not work either and
10173 # implicitly export all symbols.
10174 # This should be the same for all languages, so no per-tag cache variable.
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10176 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10177 if ${lt_cv_irix_exported_symbol+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 save_LDFLAGS=$LDFLAGS
10181 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int foo (void) { return 0; }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187 lt_cv_irix_exported_symbol=yes
10188 else
10189 lt_cv_irix_exported_symbol=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LDFLAGS=$save_LDFLAGS
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10196 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10197 if test yes = "$lt_cv_irix_exported_symbol"; then
10198 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'
10199 fi
10200 link_all_deplibs=no
10201 else
10202 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'
10203 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'
10204 fi
10205 archive_cmds_need_lc='no'
10206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10207 hardcode_libdir_separator=:
10208 inherit_rpath=yes
10209 link_all_deplibs=yes
10210 ;;
10211
10212 linux*)
10213 case $cc_basename in
10214 tcc*)
10215 # Fabrice Bellard et al's Tiny C Compiler
10216 ld_shlibs=yes
10217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10218 ;;
10219 esac
10220 ;;
10221
10222 netbsd* | netbsdelf*-gnu)
10223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10225 else
10226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10227 fi
10228 hardcode_libdir_flag_spec='-R$libdir'
10229 hardcode_direct=yes
10230 hardcode_shlibpath_var=no
10231 ;;
10232
10233 newsos6)
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct=yes
10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10237 hardcode_libdir_separator=:
10238 hardcode_shlibpath_var=no
10239 ;;
10240
10241 *nto* | *qnx*)
10242 ;;
10243
10244 openbsd* | bitrig*)
10245 if test -f /usr/libexec/ld.so; then
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10248 hardcode_direct_absolute=yes
10249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10252 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10253 export_dynamic_flag_spec='$wl-E'
10254 else
10255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10257 fi
10258 else
10259 ld_shlibs=no
10260 fi
10261 ;;
10262
10263 os2*)
10264 hardcode_libdir_flag_spec='-L$libdir'
10265 hardcode_minus_L=yes
10266 allow_undefined_flag=unsupported
10267 shrext_cmds=.dll
10268 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10271 $ECHO EXPORTS >> $output_objdir/$libname.def~
10272 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10273 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10274 emximp -o $lib $output_objdir/$libname.def'
10275 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10278 $ECHO EXPORTS >> $output_objdir/$libname.def~
10279 prefix_cmds="$SED"~
10280 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10281 prefix_cmds="$prefix_cmds -e 1d";
10282 fi~
10283 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10284 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10286 emximp -o $lib $output_objdir/$libname.def'
10287 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10288 enable_shared_with_static_runtimes=yes
10289 ;;
10290
10291 osf3*)
10292 if test yes = "$GCC"; then
10293 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10294 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'
10295 else
10296 allow_undefined_flag=' -expect_unresolved \*'
10297 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'
10298 fi
10299 archive_cmds_need_lc='no'
10300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10301 hardcode_libdir_separator=:
10302 ;;
10303
10304 osf4* | osf5*) # as osf3* with the addition of -msym flag
10305 if test yes = "$GCC"; then
10306 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10307 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'
10308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10309 else
10310 allow_undefined_flag=' -expect_unresolved \*'
10311 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'
10312 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~
10313 $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'
10314
10315 # Both c and cxx compiler support -rpath directly
10316 hardcode_libdir_flag_spec='-rpath $libdir'
10317 fi
10318 archive_cmds_need_lc='no'
10319 hardcode_libdir_separator=:
10320 ;;
10321
10322 solaris*)
10323 no_undefined_flag=' -z defs'
10324 if test yes = "$GCC"; then
10325 wlarc='$wl'
10326 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328 $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'
10329 else
10330 case `$CC -V 2>&1` in
10331 *"Compilers 5.0"*)
10332 wlarc=''
10333 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10335 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10336 ;;
10337 *)
10338 wlarc='$wl'
10339 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10341 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10342 ;;
10343 esac
10344 fi
10345 hardcode_libdir_flag_spec='-R$libdir'
10346 hardcode_shlibpath_var=no
10347 case $host_os in
10348 solaris2.[0-5] | solaris2.[0-5].*) ;;
10349 *)
10350 # The compiler driver will combine and reorder linker options,
10351 # but understands '-z linker_flag'. GCC discards it without '$wl',
10352 # but is careful enough not to reorder.
10353 # Supported since Solaris 2.6 (maybe 2.5.1?)
10354 if test yes = "$GCC"; then
10355 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10356 else
10357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10358 fi
10359 ;;
10360 esac
10361 link_all_deplibs=yes
10362 ;;
10363
10364 sunos4*)
10365 if test sequent = "$host_vendor"; then
10366 # Use $CC to link under sequent, because it throws in some extra .o
10367 # files that make .init and .fini sections work.
10368 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10369 else
10370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10371 fi
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_direct=yes
10374 hardcode_minus_L=yes
10375 hardcode_shlibpath_var=no
10376 ;;
10377
10378 sysv4)
10379 case $host_vendor in
10380 sni)
10381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_direct=yes # is this really true???
10383 ;;
10384 siemens)
10385 ## LD is ld it makes a PLAMLIB
10386 ## CC just makes a GrossModule.
10387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10388 reload_cmds='$CC -r -o $output$reload_objs'
10389 hardcode_direct=no
10390 ;;
10391 motorola)
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10394 ;;
10395 esac
10396 runpath_var='LD_RUN_PATH'
10397 hardcode_shlibpath_var=no
10398 ;;
10399
10400 sysv4.3*)
10401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_shlibpath_var=no
10403 export_dynamic_flag_spec='-Bexport'
10404 ;;
10405
10406 sysv4*MP*)
10407 if test -d /usr/nec; then
10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_shlibpath_var=no
10410 runpath_var=LD_RUN_PATH
10411 hardcode_runpath_var=yes
10412 ld_shlibs=yes
10413 fi
10414 ;;
10415
10416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10417 no_undefined_flag='$wl-z,text'
10418 archive_cmds_need_lc=no
10419 hardcode_shlibpath_var=no
10420 runpath_var='LD_RUN_PATH'
10421
10422 if test yes = "$GCC"; then
10423 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 else
10426 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 fi
10429 ;;
10430
10431 sysv5* | sco3.2v5* | sco5v6*)
10432 # Note: We CANNOT use -z defs as we might desire, because we do not
10433 # link with -lc, and that would cause any symbols used from libc to
10434 # always be unresolved, which means just about no library would
10435 # ever link correctly. If we're not using GNU ld we use -z text
10436 # though, which does catch some bad symbols but isn't as heavy-handed
10437 # as -z defs.
10438 no_undefined_flag='$wl-z,text'
10439 allow_undefined_flag='$wl-z,nodefs'
10440 archive_cmds_need_lc=no
10441 hardcode_shlibpath_var=no
10442 hardcode_libdir_flag_spec='$wl-R,$libdir'
10443 hardcode_libdir_separator=':'
10444 link_all_deplibs=yes
10445 export_dynamic_flag_spec='$wl-Bexport'
10446 runpath_var='LD_RUN_PATH'
10447
10448 if test yes = "$GCC"; then
10449 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 else
10452 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454 fi
10455 ;;
10456
10457 uts4*)
10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_libdir_flag_spec='-L$libdir'
10460 hardcode_shlibpath_var=no
10461 ;;
10462
10463 *)
10464 ld_shlibs=no
10465 ;;
10466 esac
10467
10468 if test sni = "$host_vendor"; then
10469 case $host in
10470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10471 export_dynamic_flag_spec='$wl-Blargedynsym'
10472 ;;
10473 esac
10474 fi
10475 fi
10476
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10478 $as_echo "$ld_shlibs" >&6; }
10479 test no = "$ld_shlibs" && can_build_shared=no
10480
10481 with_gnu_ld=$with_gnu_ld
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497 #
10498 # Do we need to explicitly link libc?
10499 #
10500 case "x$archive_cmds_need_lc" in
10501 x|xyes)
10502 # Assume -lc should be added
10503 archive_cmds_need_lc=yes
10504
10505 if test yes,yes = "$GCC,$enable_shared"; then
10506 case $archive_cmds in
10507 *'~'*)
10508 # FIXME: we may have to deal with multi-command sequences.
10509 ;;
10510 '$CC '*)
10511 # Test whether the compiler implicitly links with -lc since on some
10512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10513 # to ld, don't add -lc before -lgcc.
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10516 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 $RM conftest*
10520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10521
10522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10523 (eval $ac_compile) 2>&5
10524 ac_status=$?
10525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10526 test $ac_status = 0; } 2>conftest.err; then
10527 soname=conftest
10528 lib=conftest
10529 libobjs=conftest.$ac_objext
10530 deplibs=
10531 wl=$lt_prog_compiler_wl
10532 pic_flag=$lt_prog_compiler_pic
10533 compiler_flags=-v
10534 linker_flags=-v
10535 verstring=
10536 output_objdir=.
10537 libname=conftest
10538 lt_save_allow_undefined_flag=$allow_undefined_flag
10539 allow_undefined_flag=
10540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10541 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10542 ac_status=$?
10543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; }
10545 then
10546 lt_cv_archive_cmds_need_lc=no
10547 else
10548 lt_cv_archive_cmds_need_lc=yes
10549 fi
10550 allow_undefined_flag=$lt_save_allow_undefined_flag
10551 else
10552 cat conftest.err 1>&5
10553 fi
10554 $RM conftest*
10555
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10558 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10559 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10560 ;;
10561 esac
10562 fi
10563 ;;
10564 esac
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
10715
10716
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10719
10720 if test yes = "$GCC"; then
10721 case $host_os in
10722 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10723 *) lt_awk_arg='/^libraries:/' ;;
10724 esac
10725 case $host_os in
10726 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10727 *) lt_sed_strip_eq='s|=/|/|g' ;;
10728 esac
10729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10730 case $lt_search_path_spec in
10731 *\;*)
10732 # if the path contains ";" then we assume it to be the separator
10733 # otherwise default to the standard path separator (i.e. ":") - it is
10734 # assumed that no part of a normal pathname contains ";" but that should
10735 # okay in the real world where ";" in dirpaths is itself problematic.
10736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10737 ;;
10738 *)
10739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10740 ;;
10741 esac
10742 # Ok, now we have the path, separated by spaces, we can step through it
10743 # and add multilib dir if necessary...
10744 lt_tmp_lt_search_path_spec=
10745 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10746 # ...but if some path component already ends with the multilib dir we assume
10747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10748 case "$lt_multi_os_dir; $lt_search_path_spec " in
10749 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10750 lt_multi_os_dir=
10751 ;;
10752 esac
10753 for lt_sys_path in $lt_search_path_spec; do
10754 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10756 elif test -n "$lt_multi_os_dir"; then
10757 test -d "$lt_sys_path" && \
10758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10759 fi
10760 done
10761 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10762 BEGIN {RS = " "; FS = "/|\n";} {
10763 lt_foo = "";
10764 lt_count = 0;
10765 for (lt_i = NF; lt_i > 0; lt_i--) {
10766 if ($lt_i != "" && $lt_i != ".") {
10767 if ($lt_i == "..") {
10768 lt_count++;
10769 } else {
10770 if (lt_count == 0) {
10771 lt_foo = "/" $lt_i lt_foo;
10772 } else {
10773 lt_count--;
10774 }
10775 }
10776 }
10777 }
10778 if (lt_foo != "") { lt_freq[lt_foo]++; }
10779 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10780 }'`
10781 # AWK program above erroneously prepends '/' to C:/dos/paths
10782 # for these hosts.
10783 case $host_os in
10784 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10786 esac
10787 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10788 else
10789 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10790 fi
10791 library_names_spec=
10792 libname_spec='lib$name'
10793 soname_spec=
10794 shrext_cmds=.so
10795 postinstall_cmds=
10796 postuninstall_cmds=
10797 finish_cmds=
10798 finish_eval=
10799 shlibpath_var=
10800 shlibpath_overrides_runpath=unknown
10801 version_type=none
10802 dynamic_linker="$host_os ld.so"
10803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10804 need_lib_prefix=unknown
10805 hardcode_into_libs=no
10806
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version=unknown
10810
10811
10812
10813 case $host_os in
10814 aix3*)
10815 version_type=linux # correct to gnu/linux during the next big refactor
10816 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10817 shlibpath_var=LIBPATH
10818
10819 # AIX 3 has no versioning support, so we append a major version to the name.
10820 soname_spec='$libname$release$shared_ext$major'
10821 ;;
10822
10823 aix[4-9]*)
10824 version_type=linux # correct to gnu/linux during the next big refactor
10825 need_lib_prefix=no
10826 need_version=no
10827 hardcode_into_libs=yes
10828 if test ia64 = "$host_cpu"; then
10829 # AIX 5 supports IA64
10830 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 else
10833 # With GCC up to 2.95.x, collect2 would create an import file
10834 # for dependence libraries. The import file would start with
10835 # the line '#! .'. This would cause the generated library to
10836 # depend on '.', always an invalid library. This was fixed in
10837 # development snapshots of GCC prior to 3.0.
10838 case $host_os in
10839 aix4 | aix4.[01] | aix4.[01].*)
10840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10841 echo ' yes '
10842 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10843 :
10844 else
10845 can_build_shared=no
10846 fi
10847 ;;
10848 esac
10849 # Using Import Files as archive members, it is possible to support
10850 # filename-based versioning of shared library archives on AIX. While
10851 # this would work for both with and without runtime linking, it will
10852 # prevent static linking of such archives. So we do filename-based
10853 # shared library versioning with .so extension only, which is used
10854 # when both runtime linking and shared linking is enabled.
10855 # Unfortunately, runtime linking may impact performance, so we do
10856 # not want this to be the default eventually. Also, we use the
10857 # versioned .so libs for executables only if there is the -brtl
10858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10859 # To allow for filename-based versioning support, we need to create
10860 # libNAME.so.V as an archive file, containing:
10861 # *) an Import File, referring to the versioned filename of the
10862 # archive as well as the shared archive member, telling the
10863 # bitwidth (32 or 64) of that shared object, and providing the
10864 # list of exported symbols of that shared object, eventually
10865 # decorated with the 'weak' keyword
10866 # *) the shared object with the F_LOADONLY flag set, to really avoid
10867 # it being seen by the linker.
10868 # At run time we better use the real file rather than another symlink,
10869 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10870
10871 case $with_aix_soname,$aix_use_runtimelinking in
10872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10873 # soname into executable. Probably we can add versioning support to
10874 # collect2, so additional links can be useful in future.
10875 aix,yes) # traditional libtool
10876 dynamic_linker='AIX unversionable lib.so'
10877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10878 # instead of lib<name>.a to let people know that these are not
10879 # typical AIX shared libraries.
10880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10881 ;;
10882 aix,no) # traditional AIX only
10883 dynamic_linker='AIX lib.a(lib.so.V)'
10884 # We preserve .a as extension for shared libraries through AIX4.2
10885 # and later when we are not doing run time linking.
10886 library_names_spec='$libname$release.a $libname.a'
10887 soname_spec='$libname$release$shared_ext$major'
10888 ;;
10889 svr4,*) # full svr4 only
10890 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10891 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10892 # We do not specify a path in Import Files, so LIBPATH fires.
10893 shlibpath_overrides_runpath=yes
10894 ;;
10895 *,yes) # both, prefer svr4
10896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10898 # unpreferred sharedlib libNAME.a needs extra handling
10899 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"'
10900 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"'
10901 # We do not specify a path in Import Files, so LIBPATH fires.
10902 shlibpath_overrides_runpath=yes
10903 ;;
10904 *,no) # both, prefer aix
10905 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10906 library_names_spec='$libname$release.a $libname.a'
10907 soname_spec='$libname$release$shared_ext$major'
10908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10909 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)'
10910 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"'
10911 ;;
10912 esac
10913 shlibpath_var=LIBPATH
10914 fi
10915 ;;
10916
10917 amigaos*)
10918 case $host_cpu in
10919 powerpc)
10920 # Since July 2007 AmigaOS4 officially supports .so libraries.
10921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923 ;;
10924 m68k)
10925 library_names_spec='$libname.ixlibrary $libname.a'
10926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10927 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'
10928 ;;
10929 esac
10930 ;;
10931
10932 beos*)
10933 library_names_spec='$libname$shared_ext'
10934 dynamic_linker="$host_os ld.so"
10935 shlibpath_var=LIBRARY_PATH
10936 ;;
10937
10938 bsdi[45]*)
10939 version_type=linux # correct to gnu/linux during the next big refactor
10940 need_version=no
10941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec='$libname$release$shared_ext$major'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10947 # the default ld.so.conf also contains /usr/contrib/lib and
10948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10949 # libtool to hard-code these into programs
10950 ;;
10951
10952 cygwin* | mingw* | pw32* | cegcc*)
10953 version_type=windows
10954 shrext_cmds=.dll
10955 need_version=no
10956 need_lib_prefix=no
10957
10958 case $GCC,$cc_basename in
10959 yes,*)
10960 # gcc
10961 library_names_spec='$libname.dll.a'
10962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963 postinstall_cmds='base_file=`basename \$file`~
10964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10965 dldir=$destdir/`dirname \$dlpath`~
10966 test -d \$dldir || mkdir -p \$dldir~
10967 $install_prog $dir/$dlname \$dldir/$dlname~
10968 chmod a+x \$dldir/$dlname~
10969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10971 fi'
10972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10973 dlpath=$dir/\$dldll~
10974 $RM \$dlpath'
10975 shlibpath_overrides_runpath=yes
10976
10977 case $host_os in
10978 cygwin*)
10979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10980 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10981
10982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10983 ;;
10984 mingw* | cegcc*)
10985 # MinGW DLLs use traditional 'lib' prefix
10986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987 ;;
10988 pw32*)
10989 # pw32 DLLs use 'pw' prefix rather than 'lib'
10990 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10991 ;;
10992 esac
10993 dynamic_linker='Win32 ld.exe'
10994 ;;
10995
10996 *,cl*)
10997 # Native MSVC
10998 libname_spec='$name'
10999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11000 library_names_spec='$libname.dll.lib'
11001
11002 case $build_os in
11003 mingw*)
11004 sys_lib_search_path_spec=
11005 lt_save_ifs=$IFS
11006 IFS=';'
11007 for lt_path in $LIB
11008 do
11009 IFS=$lt_save_ifs
11010 # Let DOS variable expansion print the short 8.3 style file name.
11011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11013 done
11014 IFS=$lt_save_ifs
11015 # Convert to MSYS style.
11016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11017 ;;
11018 cygwin*)
11019 # Convert to unix form, then to dos form, then back to unix form
11020 # but this time dos style (no spaces!) so that the unix form looks
11021 # like /cygdrive/c/PROGRA~1:/cygdr...
11022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11025 ;;
11026 *)
11027 sys_lib_search_path_spec=$LIB
11028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11029 # It is most probably a Windows format PATH.
11030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11031 else
11032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11033 fi
11034 # FIXME: find the short name or the path components, as spaces are
11035 # common. (e.g. "Program Files" -> "PROGRA~1")
11036 ;;
11037 esac
11038
11039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040 postinstall_cmds='base_file=`basename \$file`~
11041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11042 dldir=$destdir/`dirname \$dlpath`~
11043 test -d \$dldir || mkdir -p \$dldir~
11044 $install_prog $dir/$dlname \$dldir/$dlname'
11045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11046 dlpath=$dir/\$dldll~
11047 $RM \$dlpath'
11048 shlibpath_overrides_runpath=yes
11049 dynamic_linker='Win32 link.exe'
11050 ;;
11051
11052 *)
11053 # Assume MSVC wrapper
11054 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11055 dynamic_linker='Win32 ld.exe'
11056 ;;
11057 esac
11058 # FIXME: first we should search . and the directory the executable is in
11059 shlibpath_var=PATH
11060 ;;
11061
11062 darwin* | rhapsody*)
11063 dynamic_linker="$host_os dyld"
11064 version_type=darwin
11065 need_lib_prefix=no
11066 need_version=no
11067 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11068 soname_spec='$libname$release$major$shared_ext'
11069 shlibpath_overrides_runpath=yes
11070 shlibpath_var=DYLD_LIBRARY_PATH
11071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11072
11073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11075 ;;
11076
11077 dgux*)
11078 version_type=linux # correct to gnu/linux during the next big refactor
11079 need_lib_prefix=no
11080 need_version=no
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec='$libname$release$shared_ext$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 ;;
11085
11086 freebsd* | dragonfly*)
11087 # DragonFly does not have aout. When/if they implement a new
11088 # versioning mechanism, adjust this.
11089 if test -x /usr/bin/objformat; then
11090 objformat=`/usr/bin/objformat`
11091 else
11092 case $host_os in
11093 freebsd[23].*) objformat=aout ;;
11094 *) objformat=elf ;;
11095 esac
11096 fi
11097 version_type=freebsd-$objformat
11098 case $version_type in
11099 freebsd-elf*)
11100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101 soname_spec='$libname$release$shared_ext$major'
11102 need_version=no
11103 need_lib_prefix=no
11104 ;;
11105 freebsd-*)
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11107 need_version=yes
11108 ;;
11109 esac
11110 shlibpath_var=LD_LIBRARY_PATH
11111 case $host_os in
11112 freebsd2.*)
11113 shlibpath_overrides_runpath=yes
11114 ;;
11115 freebsd3.[01]* | freebsdelf3.[01]*)
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 ;;
11119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11121 shlibpath_overrides_runpath=no
11122 hardcode_into_libs=yes
11123 ;;
11124 *) # from 4.6 on, and DragonFly
11125 shlibpath_overrides_runpath=yes
11126 hardcode_into_libs=yes
11127 ;;
11128 esac
11129 ;;
11130
11131 haiku*)
11132 version_type=linux # correct to gnu/linux during the next big refactor
11133 need_lib_prefix=no
11134 need_version=no
11135 dynamic_linker="$host_os runtime_loader"
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 shlibpath_var=LIBRARY_PATH
11139 shlibpath_overrides_runpath=no
11140 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11141 hardcode_into_libs=yes
11142 ;;
11143
11144 hpux9* | hpux10* | hpux11*)
11145 # Give a soname corresponding to the major version so that dld.sl refuses to
11146 # link against other versions.
11147 version_type=sunos
11148 need_lib_prefix=no
11149 need_version=no
11150 case $host_cpu in
11151 ia64*)
11152 shrext_cmds='.so'
11153 hardcode_into_libs=yes
11154 dynamic_linker="$host_os dld.so"
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec='$libname$release$shared_ext$major'
11159 if test 32 = "$HPUX_IA64_MODE"; then
11160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11161 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11162 else
11163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11164 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11165 fi
11166 ;;
11167 hppa*64*)
11168 shrext_cmds='.sl'
11169 hardcode_into_libs=yes
11170 dynamic_linker="$host_os dld.sl"
11171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec='$libname$release$shared_ext$major'
11175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11177 ;;
11178 *)
11179 shrext_cmds='.sl'
11180 dynamic_linker="$host_os dld.sl"
11181 shlibpath_var=SHLIB_PATH
11182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184 soname_spec='$libname$release$shared_ext$major'
11185 ;;
11186 esac
11187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11188 postinstall_cmds='chmod 555 $lib'
11189 # or fails outright, so override atomically:
11190 install_override_mode=555
11191 ;;
11192
11193 interix[3-9]*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 need_lib_prefix=no
11196 need_version=no
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec='$libname$release$shared_ext$major'
11199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=no
11202 hardcode_into_libs=yes
11203 ;;
11204
11205 irix5* | irix6* | nonstopux*)
11206 case $host_os in
11207 nonstopux*) version_type=nonstopux ;;
11208 *)
11209 if test yes = "$lt_cv_prog_gnu_ld"; then
11210 version_type=linux # correct to gnu/linux during the next big refactor
11211 else
11212 version_type=irix
11213 fi ;;
11214 esac
11215 need_lib_prefix=no
11216 need_version=no
11217 soname_spec='$libname$release$shared_ext$major'
11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11219 case $host_os in
11220 irix5* | nonstopux*)
11221 libsuff= shlibsuff=
11222 ;;
11223 *)
11224 case $LD in # libtool.m4 will add one of these switches to LD
11225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11226 libsuff= shlibsuff= libmagic=32-bit;;
11227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11228 libsuff=32 shlibsuff=N32 libmagic=N32;;
11229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11231 *) libsuff= shlibsuff= libmagic=never-match;;
11232 esac
11233 ;;
11234 esac
11235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11236 shlibpath_overrides_runpath=no
11237 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11238 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11239 hardcode_into_libs=yes
11240 ;;
11241
11242 # No shared lib support for Linux oldld, aout, or coff.
11243 linux*oldld* | linux*aout* | linux*coff*)
11244 dynamic_linker=no
11245 ;;
11246
11247 linux*android*)
11248 version_type=none # Android doesn't support versioned libraries.
11249 need_lib_prefix=no
11250 need_version=no
11251 library_names_spec='$libname$release$shared_ext'
11252 soname_spec='$libname$release$shared_ext'
11253 finish_cmds=
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes
11256
11257 # This implies no fast_install, which is unacceptable.
11258 # Some rework will be needed to allow for fast_install
11259 # before this can be enabled.
11260 hardcode_into_libs=yes
11261
11262 dynamic_linker='Android linker'
11263 # Don't embed -rpath directories since the linker doesn't support them.
11264 hardcode_libdir_flag_spec='-L$libdir'
11265 ;;
11266
11267 # This must be glibc/ELF.
11268 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11269 version_type=linux # correct to gnu/linux during the next big refactor
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec='$libname$release$shared_ext$major'
11274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=no
11277
11278 # Some binutils ld are patched to set DT_RUNPATH
11279 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 lt_cv_shlibpath_overrides_runpath=no
11283 save_LDFLAGS=$LDFLAGS
11284 save_libdir=$libdir
11285 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11286 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289
11290 int
11291 main ()
11292 {
11293
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11300 lt_cv_shlibpath_overrides_runpath=yes
11301 fi
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LDFLAGS=$save_LDFLAGS
11306 libdir=$save_libdir
11307
11308 fi
11309
11310 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11311
11312 # This implies no fast_install, which is unacceptable.
11313 # Some rework will be needed to allow for fast_install
11314 # before this can be enabled.
11315 hardcode_into_libs=yes
11316
11317 # Ideally, we could use ldconfig to report *all* directores which are
11318 # searched for libraries, however this is still not possible. Aside from not
11319 # being certain /sbin/ldconfig is available, command
11320 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11321 # even though it is searched at run-time. Try to do the best guess by
11322 # appending ld.so.conf contents (and includes) to the search path.
11323 if test -f /etc/ld.so.conf; then
11324 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' ' '`
11325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11326 fi
11327
11328 # We used to test for /lib/ld.so.1 and disable shared libraries on
11329 # powerpc, because MkLinux only supported shared libraries with the
11330 # GNU dynamic linker. Since this was broken with cross compilers,
11331 # most powerpc-linux boxes support dynamic linking these days and
11332 # people can always --disable-shared, the test was removed, and we
11333 # assume the GNU/Linux dynamic linker is in use.
11334 dynamic_linker='GNU/Linux ld.so'
11335 ;;
11336
11337 netbsdelf*-gnu)
11338 version_type=linux
11339 need_lib_prefix=no
11340 need_version=no
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
11346 dynamic_linker='NetBSD ld.elf_so'
11347 ;;
11348
11349 netbsd*)
11350 version_type=sunos
11351 need_lib_prefix=no
11352 need_version=no
11353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11356 dynamic_linker='NetBSD (a.out) ld.so'
11357 else
11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 soname_spec='$libname$release$shared_ext$major'
11360 dynamic_linker='NetBSD ld.elf_so'
11361 fi
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=yes
11364 hardcode_into_libs=yes
11365 ;;
11366
11367 newsos6)
11368 version_type=linux # correct to gnu/linux during the next big refactor
11369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=yes
11372 ;;
11373
11374 *nto* | *qnx*)
11375 version_type=qnx
11376 need_lib_prefix=no
11377 need_version=no
11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 soname_spec='$libname$release$shared_ext$major'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=no
11382 hardcode_into_libs=yes
11383 dynamic_linker='ldqnx.so'
11384 ;;
11385
11386 openbsd* | bitrig*)
11387 version_type=sunos
11388 sys_lib_dlsearch_path_spec=/usr/lib
11389 need_lib_prefix=no
11390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11391 need_version=no
11392 else
11393 need_version=yes
11394 fi
11395 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397 shlibpath_var=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes
11399 ;;
11400
11401 os2*)
11402 libname_spec='$name'
11403 version_type=windows
11404 shrext_cmds=.dll
11405 need_version=no
11406 need_lib_prefix=no
11407 # OS/2 can only load a DLL with a base name of 8 characters or less.
11408 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11409 v=$($ECHO $release$versuffix | tr -d .-);
11410 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11411 $ECHO $n$v`$shared_ext'
11412 library_names_spec='${libname}_dll.$libext'
11413 dynamic_linker='OS/2 ld.exe'
11414 shlibpath_var=BEGINLIBPATH
11415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11417 postinstall_cmds='base_file=`basename \$file`~
11418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11419 dldir=$destdir/`dirname \$dlpath`~
11420 test -d \$dldir || mkdir -p \$dldir~
11421 $install_prog $dir/$dlname \$dldir/$dlname~
11422 chmod a+x \$dldir/$dlname~
11423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11425 fi'
11426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11427 dlpath=$dir/\$dldll~
11428 $RM \$dlpath'
11429 ;;
11430
11431 osf3* | osf4* | osf5*)
11432 version_type=osf
11433 need_lib_prefix=no
11434 need_version=no
11435 soname_spec='$libname$release$shared_ext$major'
11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11440 ;;
11441
11442 rdos*)
11443 dynamic_linker=no
11444 ;;
11445
11446 solaris*)
11447 version_type=linux # correct to gnu/linux during the next big refactor
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451 soname_spec='$libname$release$shared_ext$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes
11454 hardcode_into_libs=yes
11455 # ldd complains unless libraries are executable
11456 postinstall_cmds='chmod +x $lib'
11457 ;;
11458
11459 sunos4*)
11460 version_type=sunos
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=yes
11465 if test yes = "$with_gnu_ld"; then
11466 need_lib_prefix=no
11467 fi
11468 need_version=yes
11469 ;;
11470
11471 sysv4 | sysv4.3*)
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474 soname_spec='$libname$release$shared_ext$major'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 case $host_vendor in
11477 sni)
11478 shlibpath_overrides_runpath=no
11479 need_lib_prefix=no
11480 runpath_var=LD_RUN_PATH
11481 ;;
11482 siemens)
11483 need_lib_prefix=no
11484 ;;
11485 motorola)
11486 need_lib_prefix=no
11487 need_version=no
11488 shlibpath_overrides_runpath=no
11489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11490 ;;
11491 esac
11492 ;;
11493
11494 sysv4*MP*)
11495 if test -d /usr/nec; then
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11498 soname_spec='$libname$shared_ext.$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 fi
11501 ;;
11502
11503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11504 version_type=sco
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11508 soname_spec='$libname$release$shared_ext$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 if test yes = "$with_gnu_ld"; then
11513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11514 else
11515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11516 case $host_os in
11517 sco3.2v5*)
11518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11519 ;;
11520 esac
11521 fi
11522 sys_lib_dlsearch_path_spec='/usr/lib'
11523 ;;
11524
11525 tpf*)
11526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11527 version_type=linux # correct to gnu/linux during the next big refactor
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath=no
11533 hardcode_into_libs=yes
11534 ;;
11535
11536 uts4*)
11537 version_type=linux # correct to gnu/linux during the next big refactor
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539 soname_spec='$libname$release$shared_ext$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 ;;
11542
11543 *)
11544 dynamic_linker=no
11545 ;;
11546 esac
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11548 $as_echo "$dynamic_linker" >&6; }
11549 test no = "$dynamic_linker" && can_build_shared=no
11550
11551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11552 if test yes = "$GCC"; then
11553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11554 fi
11555
11556 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11557 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11558 fi
11559
11560 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11561 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11562 fi
11563
11564 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11565 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11566
11567 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11568 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11569
11570 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11571 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11667
11668
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11671 hardcode_action=
11672 if test -n "$hardcode_libdir_flag_spec" ||
11673 test -n "$runpath_var" ||
11674 test yes = "$hardcode_automatic"; then
11675
11676 # We can hardcode non-existent directories.
11677 if test no != "$hardcode_direct" &&
11678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11679 # have to relink, otherwise we might link with an installed library
11680 # when we should be linking with a yet-to-be-installed one
11681 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11682 test no != "$hardcode_minus_L"; then
11683 # Linking always hardcodes the temporary library directory.
11684 hardcode_action=relink
11685 else
11686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11687 hardcode_action=immediate
11688 fi
11689 else
11690 # We cannot hardcode anything, or else we can only hardcode existing
11691 # directories.
11692 hardcode_action=unsupported
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11695 $as_echo "$hardcode_action" >&6; }
11696
11697 if test relink = "$hardcode_action" ||
11698 test yes = "$inherit_rpath"; then
11699 # Fast installation is not supported
11700 enable_fast_install=no
11701 elif test yes = "$shlibpath_overrides_runpath" ||
11702 test no = "$enable_shared"; then
11703 # Fast installation is not necessary
11704 enable_fast_install=needless
11705 fi
11706
11707
11708
11709
11710
11711
11712 if test yes != "$enable_dlopen"; then
11713 enable_dlopen=unknown
11714 enable_dlopen_self=unknown
11715 enable_dlopen_self_static=unknown
11716 else
11717 lt_cv_dlopen=no
11718 lt_cv_dlopen_libs=
11719
11720 case $host_os in
11721 beos*)
11722 lt_cv_dlopen=load_add_on
11723 lt_cv_dlopen_libs=
11724 lt_cv_dlopen_self=yes
11725 ;;
11726
11727 mingw* | pw32* | cegcc*)
11728 lt_cv_dlopen=LoadLibrary
11729 lt_cv_dlopen_libs=
11730 ;;
11731
11732 cygwin*)
11733 lt_cv_dlopen=dlopen
11734 lt_cv_dlopen_libs=
11735 ;;
11736
11737 darwin*)
11738 # if libdl is installed we need to link against it
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11741 if ${ac_cv_lib_dl_dlopen+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-ldl $LIBS"
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char dlopen ();
11756 int
11757 main ()
11758 {
11759 return dlopen ();
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 ac_cv_lib_dl_dlopen=yes
11766 else
11767 ac_cv_lib_dl_dlopen=no
11768 fi
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11775 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11776 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11777 else
11778
11779 lt_cv_dlopen=dyld
11780 lt_cv_dlopen_libs=
11781 lt_cv_dlopen_self=yes
11782
11783 fi
11784
11785 ;;
11786
11787 tpf*)
11788 # Don't try to run any link tests for TPF. We know it's impossible
11789 # because TPF is a cross-compiler, and we know how we open DSOs.
11790 lt_cv_dlopen=dlopen
11791 lt_cv_dlopen_libs=
11792 lt_cv_dlopen_self=no
11793 ;;
11794
11795 *)
11796 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11797 if test "x$ac_cv_func_shl_load" = xyes; then :
11798 lt_cv_dlopen=shl_load
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11801 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11802 if ${ac_cv_lib_dld_shl_load+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-ldld $LIBS"
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11809
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11813 #ifdef __cplusplus
11814 extern "C"
11815 #endif
11816 char shl_load ();
11817 int
11818 main ()
11819 {
11820 return shl_load ();
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 if ac_fn_c_try_link "$LINENO"; then :
11826 ac_cv_lib_dld_shl_load=yes
11827 else
11828 ac_cv_lib_dld_shl_load=no
11829 fi
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11832 LIBS=$ac_check_lib_save_LIBS
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11835 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11836 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11837 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11838 else
11839 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11840 if test "x$ac_cv_func_dlopen" = xyes; then :
11841 lt_cv_dlopen=dlopen
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11845 if ${ac_cv_lib_dl_dlopen+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 ac_check_lib_save_LIBS=$LIBS
11849 LIBS="-ldl $LIBS"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char dlopen ();
11860 int
11861 main ()
11862 {
11863 return dlopen ();
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 ac_cv_lib_dl_dlopen=yes
11870 else
11871 ac_cv_lib_dl_dlopen=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11880 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11883 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11884 if ${ac_cv_lib_svld_dlopen+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lsvld $LIBS"
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895 #ifdef __cplusplus
11896 extern "C"
11897 #endif
11898 char dlopen ();
11899 int
11900 main ()
11901 {
11902 return dlopen ();
11903 ;
11904 return 0;
11905 }
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_svld_dlopen=yes
11909 else
11910 ac_cv_lib_svld_dlopen=no
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11917 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11918 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11919 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11922 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11923 if ${ac_cv_lib_dld_dld_link+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldld $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char dld_link ();
11938 int
11939 main ()
11940 {
11941 return dld_link ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 ac_cv_lib_dld_dld_link=yes
11948 else
11949 ac_cv_lib_dld_dld_link=no
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11956 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11957 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11958 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11959 fi
11960
11961
11962 fi
11963
11964
11965 fi
11966
11967
11968 fi
11969
11970
11971 fi
11972
11973
11974 fi
11975
11976 ;;
11977 esac
11978
11979 if test no = "$lt_cv_dlopen"; then
11980 enable_dlopen=no
11981 else
11982 enable_dlopen=yes
11983 fi
11984
11985 case $lt_cv_dlopen in
11986 dlopen)
11987 save_CPPFLAGS=$CPPFLAGS
11988 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11989
11990 save_LDFLAGS=$LDFLAGS
11991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11992
11993 save_LIBS=$LIBS
11994 LIBS="$lt_cv_dlopen_libs $LIBS"
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11997 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11998 if ${lt_cv_dlopen_self+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 if test yes = "$cross_compiling"; then :
12002 lt_cv_dlopen_self=cross
12003 else
12004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12005 lt_status=$lt_dlunknown
12006 cat > conftest.$ac_ext <<_LT_EOF
12007 #line $LINENO "configure"
12008 #include "confdefs.h"
12009
12010 #if HAVE_DLFCN_H
12011 #include <dlfcn.h>
12012 #endif
12013
12014 #include <stdio.h>
12015
12016 #ifdef RTLD_GLOBAL
12017 # define LT_DLGLOBAL RTLD_GLOBAL
12018 #else
12019 # ifdef DL_GLOBAL
12020 # define LT_DLGLOBAL DL_GLOBAL
12021 # else
12022 # define LT_DLGLOBAL 0
12023 # endif
12024 #endif
12025
12026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12027 find out it does not work in some platform. */
12028 #ifndef LT_DLLAZY_OR_NOW
12029 # ifdef RTLD_LAZY
12030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12031 # else
12032 # ifdef DL_LAZY
12033 # define LT_DLLAZY_OR_NOW DL_LAZY
12034 # else
12035 # ifdef RTLD_NOW
12036 # define LT_DLLAZY_OR_NOW RTLD_NOW
12037 # else
12038 # ifdef DL_NOW
12039 # define LT_DLLAZY_OR_NOW DL_NOW
12040 # else
12041 # define LT_DLLAZY_OR_NOW 0
12042 # endif
12043 # endif
12044 # endif
12045 # endif
12046 #endif
12047
12048 /* When -fvisibility=hidden is used, assume the code has been annotated
12049 correspondingly for the symbols needed. */
12050 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12051 int fnord () __attribute__((visibility("default")));
12052 #endif
12053
12054 int fnord () { return 42; }
12055 int main ()
12056 {
12057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12058 int status = $lt_dlunknown;
12059
12060 if (self)
12061 {
12062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12063 else
12064 {
12065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12066 else puts (dlerror ());
12067 }
12068 /* dlclose (self); */
12069 }
12070 else
12071 puts (dlerror ());
12072
12073 return status;
12074 }
12075 _LT_EOF
12076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12077 (eval $ac_link) 2>&5
12078 ac_status=$?
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12081 (./conftest; exit; ) >&5 2>/dev/null
12082 lt_status=$?
12083 case x$lt_status in
12084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12086 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12087 esac
12088 else :
12089 # compilation failed
12090 lt_cv_dlopen_self=no
12091 fi
12092 fi
12093 rm -fr conftest*
12094
12095
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12098 $as_echo "$lt_cv_dlopen_self" >&6; }
12099
12100 if test yes = "$lt_cv_dlopen_self"; then
12101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12103 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12104 if ${lt_cv_dlopen_self_static+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if test yes = "$cross_compiling"; then :
12108 lt_cv_dlopen_self_static=cross
12109 else
12110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12111 lt_status=$lt_dlunknown
12112 cat > conftest.$ac_ext <<_LT_EOF
12113 #line $LINENO "configure"
12114 #include "confdefs.h"
12115
12116 #if HAVE_DLFCN_H
12117 #include <dlfcn.h>
12118 #endif
12119
12120 #include <stdio.h>
12121
12122 #ifdef RTLD_GLOBAL
12123 # define LT_DLGLOBAL RTLD_GLOBAL
12124 #else
12125 # ifdef DL_GLOBAL
12126 # define LT_DLGLOBAL DL_GLOBAL
12127 # else
12128 # define LT_DLGLOBAL 0
12129 # endif
12130 #endif
12131
12132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12133 find out it does not work in some platform. */
12134 #ifndef LT_DLLAZY_OR_NOW
12135 # ifdef RTLD_LAZY
12136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12137 # else
12138 # ifdef DL_LAZY
12139 # define LT_DLLAZY_OR_NOW DL_LAZY
12140 # else
12141 # ifdef RTLD_NOW
12142 # define LT_DLLAZY_OR_NOW RTLD_NOW
12143 # else
12144 # ifdef DL_NOW
12145 # define LT_DLLAZY_OR_NOW DL_NOW
12146 # else
12147 # define LT_DLLAZY_OR_NOW 0
12148 # endif
12149 # endif
12150 # endif
12151 # endif
12152 #endif
12153
12154 /* When -fvisibility=hidden is used, assume the code has been annotated
12155 correspondingly for the symbols needed. */
12156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12157 int fnord () __attribute__((visibility("default")));
12158 #endif
12159
12160 int fnord () { return 42; }
12161 int main ()
12162 {
12163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164 int status = $lt_dlunknown;
12165
12166 if (self)
12167 {
12168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12169 else
12170 {
12171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172 else puts (dlerror ());
12173 }
12174 /* dlclose (self); */
12175 }
12176 else
12177 puts (dlerror ());
12178
12179 return status;
12180 }
12181 _LT_EOF
12182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12183 (eval $ac_link) 2>&5
12184 ac_status=$?
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12187 (./conftest; exit; ) >&5 2>/dev/null
12188 lt_status=$?
12189 case x$lt_status in
12190 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12191 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12192 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12193 esac
12194 else :
12195 # compilation failed
12196 lt_cv_dlopen_self_static=no
12197 fi
12198 fi
12199 rm -fr conftest*
12200
12201
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12204 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12205 fi
12206
12207 CPPFLAGS=$save_CPPFLAGS
12208 LDFLAGS=$save_LDFLAGS
12209 LIBS=$save_LIBS
12210 ;;
12211 esac
12212
12213 case $lt_cv_dlopen_self in
12214 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12215 *) enable_dlopen_self=unknown ;;
12216 esac
12217
12218 case $lt_cv_dlopen_self_static in
12219 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12220 *) enable_dlopen_self_static=unknown ;;
12221 esac
12222 fi
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 striplib=
12241 old_striplib=
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12244 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12245 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12246 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 $as_echo "yes" >&6; }
12249 else
12250 # FIXME - insert some real tests, host_os isn't really good enough
12251 case $host_os in
12252 darwin*)
12253 if test -n "$STRIP"; then
12254 striplib="$STRIP -x"
12255 old_striplib="$STRIP -S"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12258 else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 fi
12262 ;;
12263 *)
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266 ;;
12267 esac
12268 fi
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281 # Report what library types will actually be built
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12283 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12285 $as_echo "$can_build_shared" >&6; }
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12288 $as_echo_n "checking whether to build shared libraries... " >&6; }
12289 test no = "$can_build_shared" && enable_shared=no
12290
12291 # On AIX, shared libraries and static libraries use the same namespace, and
12292 # are all built from PIC.
12293 case $host_os in
12294 aix3*)
12295 test yes = "$enable_shared" && enable_static=no
12296 if test -n "$RANLIB"; then
12297 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12298 postinstall_cmds='$RANLIB $lib'
12299 fi
12300 ;;
12301
12302 aix[4-9]*)
12303 if test ia64 != "$host_cpu"; then
12304 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12305 yes,aix,yes) ;; # shared object as lib.so file only
12306 yes,svr4,*) ;; # shared object as lib.so archive member only
12307 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12308 esac
12309 fi
12310 ;;
12311 esac
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12313 $as_echo "$enable_shared" >&6; }
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12316 $as_echo_n "checking whether to build static libraries... " >&6; }
12317 # Make sure either enable_shared or enable_static is yes.
12318 test yes = "$enable_shared" || enable_static=yes
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12320 $as_echo "$enable_static" >&6; }
12321
12322
12323
12324
12325 fi
12326 ac_ext=c
12327 ac_cpp='$CPP $CPPFLAGS'
12328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12331
12332 CC=$lt_save_CC
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348 ac_config_commands="$ac_config_commands libtool"
12349
12350
12351
12352
12353 # Only expand once:
12354
12355
12356 # By default we simply use the C compiler to build assembly code.
12357
12358 test "${CCAS+set}" = set || CCAS=$CC
12359 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12360
12361
12362
12363 depcc="$CCAS" am_compiler_list=
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12366 $as_echo_n "checking dependency style of $depcc... " >&6; }
12367 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12371 # We make a subdir and do the tests there. Otherwise we can end up
12372 # making bogus files that we don't know about and never remove. For
12373 # instance it was reported that on HP-UX the gcc test will end up
12374 # making a dummy file named 'D' -- because '-MD' means "put the output
12375 # in D".
12376 rm -rf conftest.dir
12377 mkdir conftest.dir
12378 # Copy depcomp to subdir because otherwise we won't find it if we're
12379 # using a relative directory.
12380 cp "$am_depcomp" conftest.dir
12381 cd conftest.dir
12382 # We will build objects and dependencies in a subdirectory because
12383 # it helps to detect inapplicable dependency modes. For instance
12384 # both Tru64's cc and ICC support -MD to output dependencies as a
12385 # side effect of compilation, but ICC will put the dependencies in
12386 # the current directory while Tru64 will put them in the object
12387 # directory.
12388 mkdir sub
12389
12390 am_cv_CCAS_dependencies_compiler_type=none
12391 if test "$am_compiler_list" = ""; then
12392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12393 fi
12394 am__universal=false
12395
12396
12397 for depmode in $am_compiler_list; do
12398 # Setup a source with many dependencies, because some compilers
12399 # like to wrap large dependency lists on column 80 (with \), and
12400 # we should not choose a depcomp mode which is confused by this.
12401 #
12402 # We need to recreate these files for each test, as the compiler may
12403 # overwrite some of them when testing with obscure command lines.
12404 # This happens at least with the AIX C compiler.
12405 : > sub/conftest.c
12406 for i in 1 2 3 4 5 6; do
12407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12409 # Solaris 10 /bin/sh.
12410 echo '/* dummy */' > sub/conftst$i.h
12411 done
12412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12413
12414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12415 # mode. It turns out that the SunPro C++ compiler does not properly
12416 # handle '-M -o', and we need to detect this. Also, some Intel
12417 # versions had trouble with output in subdirs.
12418 am__obj=sub/conftest.${OBJEXT-o}
12419 am__minus_obj="-o $am__obj"
12420 case $depmode in
12421 gcc)
12422 # This depmode causes a compiler race in universal mode.
12423 test "$am__universal" = false || continue
12424 ;;
12425 nosideeffect)
12426 # After this tag, mechanisms are not by side-effect, so they'll
12427 # only be used when explicitly requested.
12428 if test "x$enable_dependency_tracking" = xyes; then
12429 continue
12430 else
12431 break
12432 fi
12433 ;;
12434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12435 # This compiler won't grok '-c -o', but also, the minuso test has
12436 # not run yet. These depmodes are late enough in the game, and
12437 # so weak that their functioning should not be impacted.
12438 am__obj=conftest.${OBJEXT-o}
12439 am__minus_obj=
12440 ;;
12441 none) break ;;
12442 esac
12443 if depmode=$depmode \
12444 source=sub/conftest.c object=$am__obj \
12445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12447 >/dev/null 2>conftest.err &&
12448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12452 # icc doesn't choke on unknown options, it will just issue warnings
12453 # or remarks (even with -Werror). So we grep stderr for any message
12454 # that says an option was ignored or not supported.
12455 # When given -MP, icc 7.0 and 7.1 complain thusly:
12456 # icc: Command line warning: ignoring option '-M'; no argument required
12457 # The diagnosis changed in icc 8.0:
12458 # icc: Command line remark: option '-MP' not supported
12459 if (grep 'ignoring option' conftest.err ||
12460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12461 am_cv_CCAS_dependencies_compiler_type=$depmode
12462 break
12463 fi
12464 fi
12465 done
12466
12467 cd ..
12468 rm -rf conftest.dir
12469 else
12470 am_cv_CCAS_dependencies_compiler_type=none
12471 fi
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12475 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12476 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12477
12478 if
12479 test "x$enable_dependency_tracking" != xno \
12480 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12481 am__fastdepCCAS_TRUE=
12482 am__fastdepCCAS_FALSE='#'
12483 else
12484 am__fastdepCCAS_TRUE='#'
12485 am__fastdepCCAS_FALSE=
12486 fi
12487
12488
12489
12490
12491
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12493 $as_echo_n "checking zfs author... " >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12495 $as_echo "$ZFS_META_AUTHOR" >&6; }
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12498 $as_echo_n "checking zfs license... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12500 $as_echo "$ZFS_META_LICENSE" >&6; }
12501
12502
12503
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12505 $as_echo_n "checking linux distribution... " >&6; }
12506 if test -f /etc/toss-release ; then
12507 VENDOR=toss ;
12508 elif test -f /etc/fedora-release ; then
12509 VENDOR=fedora ;
12510 elif test -f /etc/redhat-release ; then
12511 VENDOR=redhat ;
12512 elif test -f /etc/gentoo-release ; then
12513 VENDOR=gentoo ;
12514 elif test -f /etc/arch-release ; then
12515 VENDOR=arch ;
12516 elif test -f /etc/SuSE-release ; then
12517 VENDOR=sles ;
12518 elif test -f /etc/slackware-version ; then
12519 VENDOR=slackware ;
12520 elif test -f /etc/lunar.release ; then
12521 VENDOR=lunar ;
12522 elif test -f /etc/lsb-release ; then
12523 VENDOR=ubuntu ;
12524 elif test -f /etc/debian_version ; then
12525 VENDOR=debian ;
12526 elif test -f /etc/alpine-release ; then
12527 VENDOR=alpine ;
12528 else
12529 VENDOR= ;
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12532 $as_echo "$VENDOR" >&6; }
12533
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12536 $as_echo_n "checking default package type... " >&6; }
12537 case "$VENDOR" in
12538 toss) DEFAULT_PACKAGE=rpm ;;
12539 redhat) DEFAULT_PACKAGE=rpm ;;
12540 fedora) DEFAULT_PACKAGE=rpm ;;
12541 gentoo) DEFAULT_PACKAGE=tgz ;;
12542 alpine) DEFAULT_PACKAGE=tgz ;;
12543 arch) DEFAULT_PACKAGE=tgz ;;
12544 sles) DEFAULT_PACKAGE=rpm ;;
12545 slackware) DEFAULT_PACKAGE=tgz ;;
12546 lunar) DEFAULT_PACKAGE=tgz ;;
12547 ubuntu) DEFAULT_PACKAGE=deb ;;
12548 debian) DEFAULT_PACKAGE=deb ;;
12549 *) DEFAULT_PACKAGE=rpm ;;
12550 esac
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12552 $as_echo "$DEFAULT_PACKAGE" >&6; }
12553
12554
12555 DEFAULT_INIT_DIR=$sysconfdir/init.d
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12557 $as_echo_n "checking default init directory... " >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12559 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12560
12561
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12563 $as_echo_n "checking default init script type... " >&6; }
12564 case "$VENDOR" in
12565 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12566 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12567 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
12568 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12569 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
12570 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12571 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12572 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12573 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12574 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12575 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12576 *) DEFAULT_INIT_SCRIPT=lsb ;;
12577 esac
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12579 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12580
12581
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12583 $as_echo_n "checking default init config direectory... " >&6; }
12584 case "$VENDOR" in
12585 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12586 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12587 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12588 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12589 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12590 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12591 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12592 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12593 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12594 esac
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12596 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12597
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12600 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12601 if test -d /usr/share/initramfs-tools ; then
12602 DEFINE_INITRAMFS='--define "_initramfs 1"'
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 $as_echo "yes" >&6; }
12605 else
12606 DEFINE_INITRAMFS=''
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612
12613 RPM=rpm
12614 RPMBUILD=rpmbuild
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12617 $as_echo_n "checking whether $RPM is available... " >&6; }
12618 if tmp=$($RPM --version 2>/dev/null); then :
12619
12620 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12621 HAVE_RPM=yes
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12623 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12624
12625 else
12626
12627 HAVE_RPM=no
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12629 $as_echo "$HAVE_RPM" >&6; }
12630
12631 fi
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12634 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12635 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12636
12637 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12638 HAVE_RPMBUILD=yes
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12640 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12641
12642 else
12643
12644 HAVE_RPMBUILD=no
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12646 $as_echo "$HAVE_RPMBUILD" >&6; }
12647
12648 fi
12649
12650 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
12651 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12652 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12653 RPM_DEFINE_DKMS=
12654
12655 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12656 SRPM_DEFINE_UTIL=
12657 SRPM_DEFINE_KMOD=
12658 SRPM_DEFINE_DKMS=
12659
12660 RPM_SPEC_DIR="rpm/generic"
12661
12662 # Check whether --with-spec was given.
12663 if test "${with_spec+set}" = set; then :
12664 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12665 fi
12666
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12669 $as_echo_n "checking whether spec files are available... " >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12671 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 DPKG=dpkg
12693 DPKGBUILD=dpkg-buildpackage
12694
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12696 $as_echo_n "checking whether $DPKG is available... " >&6; }
12697 if tmp=$($DPKG --version 2>/dev/null); then :
12698
12699 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12700 HAVE_DPKG=yes
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12702 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12703
12704 else
12705
12706 HAVE_DPKG=no
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12708 $as_echo "$HAVE_DPKG" >&6; }
12709
12710 fi
12711
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12713 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12714 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12715
12716 DPKGBUILD_VERSION=$(echo $tmp | \
12717 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12718 HAVE_DPKGBUILD=yes
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12720 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12721
12722 else
12723
12724 HAVE_DPKGBUILD=no
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12726 $as_echo "$HAVE_DPKGBUILD" >&6; }
12727
12728 fi
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739 ALIEN=alien
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12742 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12743 if tmp=$($ALIEN --version 2>/dev/null); then :
12744
12745 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12746 HAVE_ALIEN=yes
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12748 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12749
12750 else
12751
12752 HAVE_ALIEN=no
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12754 $as_echo "$HAVE_ALIEN" >&6; }
12755
12756 fi
12757
12758
12759
12760
12761
12762
12763
12764 ZFS_CONFIG=all
12765
12766 # Check whether --with-config was given.
12767 if test "${with_config+set}" = set; then :
12768 withval=$with_config; ZFS_CONFIG="$withval"
12769 fi
12770
12771 # Check whether --enable-linux-builtin was given.
12772 if test "${enable_linux_builtin+set}" = set; then :
12773 enableval=$enable_linux_builtin;
12774 else
12775 enable_linux_builtin=no
12776 fi
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12780 $as_echo_n "checking zfs config... " >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12782 $as_echo "$ZFS_CONFIG" >&6; };
12783
12784
12785
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12788 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12789
12790 saved_flags="$CFLAGS"
12791 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12792
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795
12796 int
12797 main ()
12798 {
12799
12800 ;
12801 return 0;
12802 }
12803 _ACEOF
12804 if ac_fn_c_try_compile "$LINENO"; then :
12805
12806 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12809
12810 else
12811
12812 NO_UNUSED_BUT_SET_VARIABLE=
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818
12819 CFLAGS="$saved_flags"
12820
12821
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12824 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12825
12826 saved_flags="$CFLAGS"
12827 CFLAGS="$CFLAGS -Wbool-compare"
12828
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 int
12833 main ()
12834 {
12835
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_compile "$LINENO"; then :
12841
12842 NO_BOOL_COMPARE=-Wno-bool-compare
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 $as_echo "yes" >&6; }
12845
12846 else
12847
12848 NO_BOOL_COMPARE=
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854
12855 CFLAGS="$saved_flags"
12856
12857
12858
12859 case "$host_cpu" in
12860 x86_64 | x86 | i686)
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12863 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12864
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 void main()
12869 {
12870 __asm__ __volatile__("xorps %xmm0, %xmm1");
12871 }
12872
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875
12876
12877 $as_echo "#define HAVE_SSE 1" >>confdefs.h
12878
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12881
12882 else
12883
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12886
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12893 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12894
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897
12898 void main()
12899 {
12900 __asm__ __volatile__("pxor %xmm0, %xmm1");
12901 }
12902
12903 _ACEOF
12904 if ac_fn_c_try_link "$LINENO"; then :
12905
12906
12907 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12911
12912 else
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12923 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12924
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927
12928 void main()
12929 {
12930 char v[16];
12931 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12932 }
12933
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936
12937
12938 $as_echo "#define HAVE_SSE3 1" >>confdefs.h
12939
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12941 $as_echo "yes" >&6; }
12942
12943 else
12944
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12947
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951
12952
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12954 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12955
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958
12959 void main()
12960 {
12961 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12962 }
12963
12964 _ACEOF
12965 if ac_fn_c_try_link "$LINENO"; then :
12966
12967
12968 $as_echo "#define HAVE_SSSE3 1" >>confdefs.h
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972
12973 else
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981
12982
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12984 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12985
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988
12989 void main()
12990 {
12991 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12992 }
12993
12994 _ACEOF
12995 if ac_fn_c_try_link "$LINENO"; then :
12996
12997
12998 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001 $as_echo "yes" >&6; }
13002
13003 else
13004
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13007
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13014 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
13015
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018
13019 void main()
13020 {
13021 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13022 }
13023
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"; then :
13026
13027
13028 $as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032
13033 else
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13044 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13045
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048
13049 void main()
13050 {
13051 char v[32];
13052 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13053 }
13054
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13059 $as_echo "yes" >&6; }
13060
13061 $as_echo "#define HAVE_AVX 1" >>confdefs.h
13062
13063
13064 else
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13075 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13076
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080
13081 void main()
13082 {
13083 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13084 }
13085
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13091
13092 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
13093
13094
13095 else
13096
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13099
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13106 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13107
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110
13111
13112 void main()
13113 {
13114 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13115 }
13116
13117 _ACEOF
13118 if ac_fn_c_try_link "$LINENO"; then :
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13122
13123 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13124
13125
13126 else
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130
13131 fi
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13137 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13138
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141
13142
13143 void main()
13144 {
13145 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13146 }
13147
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153
13154 $as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
13155
13156
13157 else
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13168 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13169
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172
13173
13174 void main()
13175 {
13176 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13177 }
13178
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13184
13185 $as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
13186
13187
13188 else
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13199 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13200
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204
13205 void main()
13206 {
13207 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13208 }
13209
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13214 $as_echo "yes" >&6; }
13215
13216 $as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
13217
13218
13219 else
13220
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13223
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13230 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13231
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235
13236 void main()
13237 {
13238 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13239 }
13240
13241 _ACEOF
13242 if ac_fn_c_try_link "$LINENO"; then :
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13246
13247 $as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
13248
13249
13250 else
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13261 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13262
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265
13266
13267 void main()
13268 {
13269 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13270 }
13271
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13276 $as_echo "yes" >&6; }
13277
13278 $as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
13279
13280
13281 else
13282
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13285
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289
13290
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13292 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13293
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296
13297
13298 void main()
13299 {
13300 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13301 }
13302
13303 _ACEOF
13304 if ac_fn_c_try_link "$LINENO"; then :
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307 $as_echo "yes" >&6; }
13308
13309 $as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13310
13311
13312 else
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319 conftest$ac_exeext conftest.$ac_ext
13320
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13323 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13324
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327
13328
13329 void main()
13330 {
13331 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13332 }
13333
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13339
13340 $as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
13341
13342
13343 else
13344
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext conftest.$ac_ext
13351
13352
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13354 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13355
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358
13359
13360 void main()
13361 {
13362 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13363 }
13364
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13370
13371 $as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
13372
13373
13374 else
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382
13383 ;;
13384 esac
13385
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13388 $as_echo_n "checking for target asm dir... " >&6; }
13389 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13390
13391 case $TARGET_ARCH in
13392 i386|x86_64)
13393 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13394 ;;
13395 *)
13396 TARGET_ASM_DIR=asm-generic
13397 ;;
13398 esac
13399
13400
13401 if test $TARGET_ASM_DIR = asm-x86_64; then
13402 TARGET_ASM_X86_64_TRUE=
13403 TARGET_ASM_X86_64_FALSE='#'
13404 else
13405 TARGET_ASM_X86_64_TRUE='#'
13406 TARGET_ASM_X86_64_FALSE=
13407 fi
13408
13409 if test $TARGET_ASM_DIR = asm-i386; then
13410 TARGET_ASM_I386_TRUE=
13411 TARGET_ASM_I386_FALSE='#'
13412 else
13413 TARGET_ASM_I386_TRUE='#'
13414 TARGET_ASM_I386_FALSE=
13415 fi
13416
13417 if test $TARGET_ASM_DIR = asm-generic; then
13418 TARGET_ASM_GENERIC_TRUE=
13419 TARGET_ASM_GENERIC_FALSE='#'
13420 else
13421 TARGET_ASM_GENERIC_TRUE='#'
13422 TARGET_ASM_GENERIC_FALSE=
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13426 $as_echo "$TARGET_ASM_DIR" >&6; }
13427
13428
13429
13430 case "$ZFS_CONFIG" in
13431 kernel)
13432
13433
13434 # Check whether --with-linux was given.
13435 if test "${with_linux+set}" = set; then :
13436 withval=$with_linux; kernelsrc="$withval"
13437 fi
13438
13439
13440
13441 # Check whether --with-linux-obj was given.
13442 if test "${with_linux_obj+set}" = set; then :
13443 withval=$with_linux_obj; kernelbuild="$withval"
13444 fi
13445
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13448 $as_echo_n "checking kernel source directory... " >&6; }
13449 if test -z "$kernelsrc"; then :
13450
13451 if test -e "/lib/modules/$(uname -r)/source"; then :
13452
13453 headersdir="/lib/modules/$(uname -r)/source"
13454 sourcelink=$(readlink -f "$headersdir")
13455
13456 elif test -e "/lib/modules/$(uname -r)/build"; then :
13457
13458 headersdir="/lib/modules/$(uname -r)/build"
13459 sourcelink=$(readlink -f "$headersdir")
13460
13461 else
13462
13463 sourcelink=$(ls -1d /usr/src/kernels/* \
13464 /usr/src/linux-* \
13465 2>/dev/null | grep -v obj | tail -1)
13466
13467 fi
13468
13469 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13470
13471 kernelsrc=`readlink -f ${sourcelink}`
13472
13473 else
13474
13475 kernelsrc="Not found"
13476
13477 fi
13478
13479 else
13480
13481 if test "$kernelsrc" = "NONE"; then :
13482
13483 kernsrcver=NONE
13484
13485 fi
13486 withlinux=yes
13487
13488 fi
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13491 $as_echo "$kernelsrc" >&6; }
13492 if test ! -d "$kernelsrc"; then :
13493
13494 as_fn_error $? "
13495 *** Please make sure the kernel devel package for your distribution
13496 *** is installed and then try again. If that fails, you can specify the
13497 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13498
13499 fi
13500
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13502 $as_echo_n "checking kernel build directory... " >&6; }
13503 if test -z "$kernelbuild"; then :
13504
13505 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then :
13506
13507 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
13508
13509 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13510
13511 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13512
13513 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
13514
13515 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
13516
13517 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
13518
13519 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
13520
13521 else
13522
13523 kernelbuild=${kernelsrc}
13524
13525 fi
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13529 $as_echo "$kernelbuild" >&6; }
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13532 $as_echo_n "checking kernel source version... " >&6; }
13533 utsrelease1=$kernelbuild/include/linux/version.h
13534 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13535 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13536 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
13537
13538 utsrelease=linux/version.h
13539
13540 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
13541
13542 utsrelease=linux/utsrelease.h
13543
13544 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
13545
13546 utsrelease=generated/utsrelease.h
13547
13548 fi
13549
13550 if test "$utsrelease"; then :
13551
13552 kernsrcver=`(echo "#include <$utsrelease>";
13553 echo "kernsrcver=UTS_RELEASE") |
13554 cpp -I $kernelbuild/include |
13555 grep "^kernsrcver=" | cut -d \" -f 2`
13556
13557 if test -z "$kernsrcver"; then :
13558
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13560 $as_echo "Not found" >&6; }
13561 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
13562
13563 fi
13564
13565 else
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13568 $as_echo "Not found" >&6; }
13569 if test "x$enable_linux_builtin" != xyes; then
13570 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13571 else
13572 as_fn_error $? "
13573 *** Cannot find UTS_RELEASE definition.
13574 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13575 fi
13576
13577 fi
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13580 $as_echo "$kernsrcver" >&6; }
13581
13582 LINUX=${kernelsrc}
13583 LINUX_OBJ=${kernelbuild}
13584 LINUX_VERSION=${kernsrcver}
13585
13586
13587
13588
13589
13590
13591 modpost=$LINUX/scripts/Makefile.modpost
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13593 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13594 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
13595
13596 if grep -q Modules.symvers $modpost; then :
13597
13598 LINUX_SYMBOLS=Modules.symvers
13599
13600 else
13601
13602 LINUX_SYMBOLS=Module.symvers
13603
13604 fi
13605
13606 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13607
13608 as_fn_error $? "
13609 *** Please make sure the kernel devel package for your distribution
13610 *** is installed. If you are building with a custom kernel, make sure the
13611 *** kernel is configured, built, and the '--with-linux=PATH' configure
13612 *** option refers to the location of the kernel source." "$LINENO" 5
13613
13614 fi
13615
13616 else
13617
13618 LINUX_SYMBOLS=NONE
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13622 $as_echo "$LINUX_SYMBOLS" >&6; }
13623
13624
13625
13626
13627
13628 # Check whether --with-spl was given.
13629 if test "${with_spl+set}" = set; then :
13630 withval=$with_spl; if test "$withval" = "yes"; then :
13631 as_fn_error $? "--with-spl=PATH requires a PATH" "$LINENO" 5
13632 else
13633 splsrc="$withval"
13634 fi
13635 fi
13636
13637
13638
13639 # Check whether --with-spl-obj was given.
13640 if test "${with_spl_obj+set}" = set; then :
13641 withval=$with_spl_obj; splbuild="$withval"
13642 fi
13643
13644
13645
13646 # Check whether --with-spl-timeout was given.
13647 if test "${with_spl_timeout+set}" = set; then :
13648 withval=$with_spl_timeout; timeout="$withval"
13649 else
13650 timeout=0
13651 fi
13652
13653
13654 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
13655 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13656 splsrc2="/usr/local/src/spl-${VERSION}"
13657 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13658 splsrc4="/usr/src/spl-${VERSION}"
13659 splsrc5="../spl/"
13660 splsrc6="$LINUX"
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13663 $as_echo_n "checking spl source directory... " >&6; }
13664 if test -z "${splsrc}"; then :
13665
13666 all_spl_sources="
13667 ${splsrc0}
13668 ${splsrc1}
13669 ${splsrc2}
13670 ${splsrc3}
13671 ${splsrc4}
13672 ${splsrc5}
13673 ${splsrc6}",
13674 if test -e "${splsrc0}/spl.release.in"; then :
13675
13676 splsrc=${splsrc0}
13677
13678 elif test -e "${splsrc1}/spl.release.in"; then :
13679
13680 splsrc=${splsrc1}
13681
13682 elif test -e "${splsrc2}/spl.release.in"; then :
13683
13684 splsrc=${splsrc2}
13685
13686 elif test -e "${splsrc3}/spl.release.in"; then :
13687
13688 splsrc=$(readlink -f "${splsrc3}")
13689
13690 elif test -e "${splsrc4}/spl.release.in" ; then :
13691
13692 splsrc=${splsrc4}
13693
13694 elif test -e "${splsrc5}/spl.release.in"; then :
13695
13696 splsrc=$(readlink -f "${splsrc5}")
13697
13698 elif test -e "${splsrc6}/spl.release.in" ; then :
13699
13700 splsrc=${splsrc6}
13701
13702 else
13703
13704 splsrc="Not found"
13705
13706 fi
13707
13708 else
13709
13710 all_spl_sources="$withval",
13711 if test "$splsrc" = "NONE"; then :
13712
13713 splbuild=NONE
13714 splsrcver=NONE
13715
13716 fi
13717
13718 fi
13719
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13721 $as_echo "$splsrc" >&6; }
13722 if test ! -e "$splsrc/spl.release.in"; then :
13723
13724 as_fn_error $? "
13725 *** Please make sure the kmod spl devel package for your distribution
13726 *** is installed then try again. If that fails you can specify the
13727 *** location of the spl source with the '--with-spl=PATH' option.
13728 *** The spl version must match the version of ZFS you are building,
13729 *** ${VERSION}. Failed to find spl.release.in in the following:
13730 $all_spl_sources" "$LINENO" 5
13731
13732 fi
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13735 $as_echo_n "checking spl build directory... " >&6; }
13736
13737 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
13738 ${splsrc}"
13739
13740 while true; do
13741 if test -z "$splbuild"; then :
13742
13743 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13744
13745 splbuild="${splsrc}/${LINUX_VERSION}"
13746
13747 elif test -e "${splsrc}/spl_config.h" ; then :
13748
13749 splbuild="${splsrc}"
13750
13751 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
13752
13753 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
13754
13755 else
13756
13757 splbuild="Not found"
13758
13759 fi
13760
13761 fi
13762 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13763
13764 break;
13765
13766 else
13767
13768 sleep 1
13769 timeout=$((timeout-1))
13770
13771 fi
13772 done
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13775 $as_echo "$splbuild" >&6; }
13776 if ! test -e "$splbuild/spl_config.h"; then :
13777
13778 as_fn_error $? "
13779 *** Please make sure the kmod spl devel <kernel> package for your
13780 *** distribution is installed then try again. If that fails you
13781 *** can specify the location of the spl objects with the
13782 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13783 *** any of the following:
13784 $all_spl_config_locs" "$LINENO" 5
13785
13786 fi
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13789 $as_echo_n "checking spl source version... " >&6; }
13790 if test -r $splbuild/spl_config.h &&
13791 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
13792
13793
13794 splsrcver=`(echo "#include <spl_config.h>";
13795 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13796 cpp -I $splbuild |
13797 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13798
13799 fi
13800
13801 if test -z "$splsrcver"; then :
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13804 $as_echo "Not found" >&6; }
13805 as_fn_error $? "
13806 *** Cannot determine the version of the spl source.
13807 *** Please prepare the spl source before running this script" "$LINENO" 5
13808
13809 fi
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13812 $as_echo "$splsrcver" >&6; }
13813
13814 SPL=${splsrc}
13815 SPL_OBJ=${splbuild}
13816 SPL_VERSION=${splsrcver}
13817
13818
13819
13820
13821
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13823 $as_echo_n "checking spl file name for module symbols... " >&6; }
13824 SPL_SYMBOLS=NONE
13825
13826 while true; do
13827 if test -r $SPL_OBJ/Module.symvers; then :
13828
13829 SPL_SYMBOLS=Module.symvers
13830
13831 elif test -r $SPL_OBJ/Modules.symvers; then :
13832
13833 SPL_SYMBOLS=Modules.symvers
13834
13835 elif test -r $SPL_OBJ/module/Module.symvers; then :
13836
13837 SPL_SYMBOLS=Module.symvers
13838
13839 elif test -r $SPL_OBJ/module/Modules.symvers; then :
13840
13841 SPL_SYMBOLS=Modules.symvers
13842
13843 fi
13844
13845 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
13846
13847 break;
13848
13849 else
13850
13851 sleep 1
13852 timeout=$((timeout-1))
13853
13854 fi
13855 done
13856
13857 if test "$SPL_SYMBOLS" = NONE; then :
13858
13859 SPL_SYMBOLS=$LINUX_SYMBOLS
13860
13861 fi
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13864 $as_echo "$SPL_SYMBOLS" >&6; }
13865
13866
13867
13868
13869 # Check whether --with-qat was given.
13870 if test "${with_qat+set}" = set; then :
13871 withval=$with_qat; if test "$withval" = "yes"; then :
13872 as_fn_error $? "--with-qat=PATH requires a PATH" "$LINENO" 5
13873 else
13874 qatsrc="$withval"
13875 fi
13876 fi
13877
13878
13879
13880 # Check whether --with-qat-obj was given.
13881 if test "${with_qat_obj+set}" = set; then :
13882 withval=$with_qat_obj; qatbuild="$withval"
13883 fi
13884
13885
13886 if test ! -z "${qatsrc}"; then :
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13889 $as_echo_n "checking qat source directory... " >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13891 $as_echo "$qatsrc" >&6; }
13892 QAT_SRC="${qatsrc}/quickassist"
13893 if test ! -e "$QAT_SRC/include/cpa.h"; then :
13894
13895 as_fn_error $? "
13896 *** Please make sure the qat driver package is installed
13897 *** and specify the location of the qat source with the
13898 *** '--with-qat=PATH' option then try again. Failed to
13899 *** find cpa.h in:
13900 ${QAT_SRC}/include" "$LINENO" 5
13901
13902 fi
13903
13904 fi
13905
13906 if test ! -z "${qatsrc}"; then :
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13909 $as_echo_n "checking qat build directory... " >&6; }
13910 if test -z "$qatbuild"; then :
13911
13912 qatbuild="${qatsrc}/build"
13913
13914 fi
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13917 $as_echo "$qatbuild" >&6; }
13918 QAT_OBJ=${qatbuild}
13919 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
13920
13921 as_fn_error $? "
13922 *** Please make sure the qat driver is installed then try again.
13923 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13924 $QAT_OBJ" "$LINENO" 5
13925
13926 fi
13927
13928
13929
13930
13931
13932 $as_echo "#define HAVE_QAT 1" >>confdefs.h
13933
13934
13935 fi
13936
13937 if test ! -z "${qatsrc}"; then :
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13940 $as_echo_n "checking qat file for module symbols... " >&6; }
13941 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
13942
13943 if test -r $QAT_SYMBOLS; then :
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13946 $as_echo "$QAT_SYMBOLS" >&6; }
13947
13948
13949 else
13950
13951 as_fn_error $? "
13952 *** Please make sure the qat driver is installed then try again.
13953 *** Failed to find Module.symvers in:
13954 $QAT_SYMBOLS" "$LINENO" 5
13955
13956 fi
13957
13958 fi
13959
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13962 $as_echo_n "checking whether modules can be built... " >&6; }
13963
13964
13965 cat confdefs.h - <<_ACEOF >conftest.c
13966
13967
13968 int
13969 main (void)
13970 {
13971
13972 ;
13973 return 0;
13974 }
13975
13976 _ACEOF
13977
13978
13979
13980 cat - <<_ACEOF >conftest.h
13981
13982 _ACEOF
13983
13984
13985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13986 echo "obj-m := conftest.o" >build/Makefile
13987 modpost_flag=''
13988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; }; then :
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14002 $as_echo "yes" >&6; }
14003
14004 else
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 if test "x$enable_linux_builtin" != xyes; then
14011 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
14012 else
14013 as_fn_error $? "
14014 *** Unable to build an empty module.
14015 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14016 fi
14017
14018
14019
14020 fi
14021 rm -Rf build
14022
14023
14024
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14027 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14028
14029
14030 cat confdefs.h - <<_ACEOF >conftest.c
14031
14032
14033 #undef __ASSEMBLY__
14034 #include <asm/frame.h>
14035
14036 int
14037 main (void)
14038 {
14039
14040 #if !defined(FRAME_BEGIN)
14041 CTASSERT(1);
14042 #endif
14043
14044 ;
14045 return 0;
14046 }
14047
14048 _ACEOF
14049
14050
14051
14052 cat - <<_ACEOF >conftest.h
14053
14054 _ACEOF
14055
14056
14057 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14058 echo "obj-m := conftest.o" >build/Makefile
14059 modpost_flag=''
14060 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14061 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; }; then :
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14075
14076 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14077
14078
14079 else
14080 $as_echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14085
14086
14087
14088 fi
14089 rm -Rf build
14090
14091
14092
14093
14094 if test "x$cross_compiling" != xyes; then :
14095
14096 if test "$cross_compiling" = yes; then :
14097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14099 as_fn_error $? "cannot run test program while cross compiling
14100 See \`config.log' for more details" "$LINENO" 5; }
14101 else
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104
14105
14106 #include "$LINUX/include/linux/license.h"
14107
14108 int
14109 main ()
14110 {
14111
14112 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14113
14114 ;
14115 return 0;
14116 }
14117
14118 _ACEOF
14119 if ac_fn_c_try_run "$LINENO"; then :
14120
14121
14122 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14123
14124
14125 fi
14126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14127 conftest.$ac_objext conftest.beam conftest.$ac_ext
14128 fi
14129
14130
14131 fi
14132
14133
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14135 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14136
14137
14138 cat confdefs.h - <<_ACEOF >conftest.c
14139
14140
14141 #include <linux/module.h>
14142
14143 int
14144 main (void)
14145 {
14146
14147 #if (THREAD_SIZE < 16384)
14148 #error "THREAD_SIZE is less than 16K"
14149 #endif
14150
14151 ;
14152 return 0;
14153 }
14154
14155 _ACEOF
14156
14157
14158
14159 cat - <<_ACEOF >conftest.h
14160
14161 _ACEOF
14162
14163
14164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14165 echo "obj-m := conftest.o" >build/Makefile
14166 modpost_flag=''
14167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14168 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }; }; then :
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14181 $as_echo "yes" >&6; }
14182
14183 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14184
14185
14186 else
14187 $as_echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14192
14193
14194
14195 fi
14196 rm -Rf build
14197
14198
14199
14200
14201
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14203 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14204
14205
14206 cat confdefs.h - <<_ACEOF >conftest.c
14207
14208
14209 #include <linux/module.h>
14210
14211 int
14212 main (void)
14213 {
14214
14215 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14216 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14217 #endif
14218
14219 ;
14220 return 0;
14221 }
14222
14223 _ACEOF
14224
14225
14226
14227 cat - <<_ACEOF >conftest.h
14228
14229 _ACEOF
14230
14231
14232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14233 echo "obj-m := conftest.o" >build/Makefile
14234 modpost_flag=''
14235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14236 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; }; then :
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14252 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14253 tmp_flags="$EXTRA_KCFLAGS"
14254
14255
14256 cat confdefs.h - <<_ACEOF >conftest.c
14257
14258
14259 #include <linux/module.h>
14260 #include <linux/mutex.h>
14261
14262 MODULE_LICENSE("$ZFS_META_LICENSE");
14263
14264 int
14265 main (void)
14266 {
14267
14268 struct mutex lock;
14269
14270 mutex_init(&lock);
14271 mutex_lock(&lock);
14272 mutex_unlock(&lock);
14273
14274 ;
14275 return 0;
14276 }
14277
14278 _ACEOF
14279
14280
14281
14282 cat - <<_ACEOF >conftest.h
14283
14284 _ACEOF
14285
14286
14287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14288 echo "obj-m := conftest.o" >build/Makefile
14289 modpost_flag=''
14290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; }; then :
14302
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14305
14306 else
14307 $as_echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312 as_fn_error $? "
14313 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14314 *** with the CDDL license and will prevent the module linking stage
14315 *** from succeeding. You must rebuild your kernel without this
14316 *** option enabled." "$LINENO" 5
14317
14318
14319
14320 fi
14321 rm -Rf build
14322
14323
14324 EXTRA_KCFLAGS="$tmp_flags"
14325
14326
14327 else
14328 $as_echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14333
14334
14335
14336
14337 fi
14338 rm -Rf build
14339
14340
14341
14342
14343
14344
14345 tmp_flags="$EXTRA_KCFLAGS"
14346 EXTRA_KCFLAGS="-I\$(src)"
14347
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14349 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14350
14351
14352 cat confdefs.h - <<_ACEOF >conftest.c
14353
14354
14355 #include <linux/module.h>
14356 MODULE_LICENSE(ZFS_META_LICENSE);
14357
14358 #define CREATE_TRACE_POINTS
14359 #include "conftest.h"
14360
14361 int
14362 main (void)
14363 {
14364
14365 trace_zfs_autoconf_event_one(1UL);
14366 trace_zfs_autoconf_event_two(2UL);
14367
14368 ;
14369 return 0;
14370 }
14371
14372 _ACEOF
14373
14374
14375
14376 cat - <<_ACEOF >conftest.h
14377
14378 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14379 #define _CONFTEST_H
14380
14381 #undef TRACE_SYSTEM
14382 #define TRACE_SYSTEM zfs
14383 #include <linux/tracepoint.h>
14384
14385 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14386 TP_PROTO(unsigned long i),
14387 TP_ARGS(i),
14388 TP_STRUCT__entry(
14389 __field(unsigned long, i)
14390 ),
14391 TP_fast_assign(
14392 __entry->i = i;
14393 ),
14394 TP_printk("i = %lu", __entry->i)
14395 );
14396
14397 #define DEFINE_AUTOCONF_EVENT(name) \
14398 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14399 TP_PROTO(unsigned long i), \
14400 TP_ARGS(i))
14401 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14402 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14403
14404 #endif /* _CONFTEST_H */
14405
14406 #undef TRACE_INCLUDE_PATH
14407 #define TRACE_INCLUDE_PATH .
14408 #define TRACE_INCLUDE_FILE conftest
14409 #include <trace/define_trace.h>
14410
14411 _ACEOF
14412
14413
14414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14415 echo "obj-m := conftest.o" >build/Makefile
14416 modpost_flag=''
14417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14418 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14428 test $ac_status = 0; }; }; then :
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 $as_echo "yes" >&6; }
14432
14433 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14434
14435
14436 else
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442
14443
14444
14445 fi
14446 rm -Rf build
14447
14448
14449 EXTRA_KCFLAGS="$tmp_flags"
14450
14451
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14453 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14454
14455
14456 cat confdefs.h - <<_ACEOF >conftest.c
14457
14458
14459 #include <linux/sched.h>
14460
14461 int
14462 main (void)
14463 {
14464
14465 current->bio_tail = (struct bio **) NULL;
14466
14467 ;
14468 return 0;
14469 }
14470
14471 _ACEOF
14472
14473
14474
14475 cat - <<_ACEOF >conftest.h
14476
14477 _ACEOF
14478
14479
14480 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14481 echo "obj-m := conftest.o" >build/Makefile
14482 modpost_flag=''
14483 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14484 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14494 test $ac_status = 0; }; }; then :
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14498
14499 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14500
14501
14502 else
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14509 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14510
14511
14512 cat confdefs.h - <<_ACEOF >conftest.c
14513
14514
14515 #include <linux/sched.h>
14516
14517 int
14518 main (void)
14519 {
14520
14521 current->bio_list = (struct bio_list *) NULL;
14522
14523 ;
14524 return 0;
14525 }
14526
14527 _ACEOF
14528
14529
14530
14531 cat - <<_ACEOF >conftest.h
14532
14533 _ACEOF
14534
14535
14536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14537 echo "obj-m := conftest.o" >build/Makefile
14538 modpost_flag=''
14539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14540 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14545 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14550 test $ac_status = 0; }; }; then :
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14554
14555 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14556
14557
14558 else
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562 as_fn_error $? "no - Please file a bug report at
14563 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14564
14565
14566
14567 fi
14568 rm -Rf build
14569
14570
14571
14572
14573
14574 fi
14575 rm -Rf build
14576
14577
14578
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14581 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14582
14583
14584 cat confdefs.h - <<_ACEOF >conftest.c
14585
14586
14587 #include <linux/fs.h>
14588 #include <linux/user_namespace.h>
14589
14590 int
14591 main (void)
14592 {
14593
14594 struct super_block super;
14595 super.s_user_ns = (struct user_namespace *)NULL;
14596
14597 ;
14598 return 0;
14599 }
14600
14601 _ACEOF
14602
14603
14604
14605 cat - <<_ACEOF >conftest.h
14606
14607 _ACEOF
14608
14609
14610 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14611 echo "obj-m := conftest.o" >build/Makefile
14612 modpost_flag=''
14613 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14614 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }; }; then :
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14628
14629 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
14630
14631
14632 else
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638
14639
14640
14641 fi
14642 rm -Rf build
14643
14644
14645
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14648 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14649
14650
14651 cat confdefs.h - <<_ACEOF >conftest.c
14652
14653
14654 #include <linux/bio.h>
14655
14656 int
14657 main (void)
14658 {
14659
14660 blk_qc_t blk_qc;
14661 struct bio *bio = NULL;
14662 blk_qc = submit_bio(bio);
14663
14664 ;
14665 return 0;
14666 }
14667
14668 _ACEOF
14669
14670
14671
14672 cat - <<_ACEOF >conftest.h
14673
14674 _ACEOF
14675
14676
14677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14678 echo "obj-m := conftest.o" >build/Makefile
14679 modpost_flag=''
14680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }; }; then :
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 $as_echo "yes" >&6; }
14695
14696 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14697
14698
14699 else
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705
14706
14707
14708 fi
14709 rm -Rf build
14710
14711
14712
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14715 $as_echo_n "checking block device operation prototypes... " >&6; }
14716 tmp_flags="$EXTRA_KCFLAGS"
14717 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14718
14719
14720 cat confdefs.h - <<_ACEOF >conftest.c
14721
14722
14723 #include <linux/blkdev.h>
14724
14725 int blk_open(struct block_device *bdev, fmode_t mode)
14726 { return 0; }
14727 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14728 unsigned x, unsigned long y) { return 0; }
14729 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14730 unsigned x, unsigned long y) { return 0; }
14731
14732 static const struct block_device_operations
14733 bops __attribute__ ((unused)) = {
14734 .open = blk_open,
14735 .release = NULL,
14736 .ioctl = blk_ioctl,
14737 .compat_ioctl = blk_compat_ioctl,
14738 };
14739
14740 int
14741 main (void)
14742 {
14743
14744
14745 ;
14746 return 0;
14747 }
14748
14749 _ACEOF
14750
14751
14752
14753 cat - <<_ACEOF >conftest.h
14754
14755 _ACEOF
14756
14757
14758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14759 echo "obj-m := conftest.o" >build/Makefile
14760 modpost_flag=''
14761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14762 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772 test $ac_status = 0; }; }; then :
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14775 $as_echo "struct block_device" >&6; }
14776
14777 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14778
14779
14780 else
14781 $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14785 $as_echo "struct inode" >&6; }
14786
14787
14788
14789 fi
14790 rm -Rf build
14791
14792
14793 EXTRA_KCFLAGS="$tmp_flags"
14794
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14797 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14798 tmp_flags="$EXTRA_KCFLAGS"
14799 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14800
14801
14802 cat confdefs.h - <<_ACEOF >conftest.c
14803
14804
14805 #include <linux/blkdev.h>
14806
14807 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14808
14809 static const struct block_device_operations
14810 bops __attribute__ ((unused)) = {
14811 .open = NULL,
14812 .release = blk_release,
14813 .ioctl = NULL,
14814 .compat_ioctl = NULL,
14815 };
14816
14817 int
14818 main (void)
14819 {
14820
14821
14822 ;
14823 return 0;
14824 }
14825
14826 _ACEOF
14827
14828
14829
14830 cat - <<_ACEOF >conftest.h
14831
14832 _ACEOF
14833
14834
14835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14836 echo "obj-m := conftest.o" >build/Makefile
14837 modpost_flag=''
14838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14844 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 test $ac_status = 0; }; }; then :
14850
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14852 $as_echo "void" >&6; }
14853
14854 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14855
14856
14857 else
14858 $as_echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14862 $as_echo "int" >&6; }
14863
14864
14865
14866 fi
14867 rm -Rf build
14868
14869
14870 EXTRA_KCFLAGS="$tmp_flags"
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14873 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14874
14875
14876 cat confdefs.h - <<_ACEOF >conftest.c
14877
14878
14879 #include <linux/types.h>
14880
14881 int
14882 main (void)
14883 {
14884
14885 fmode_t *ptr __attribute__ ((unused));
14886
14887 ;
14888 return 0;
14889 }
14890
14891 _ACEOF
14892
14893
14894
14895 cat - <<_ACEOF >conftest.h
14896
14897 _ACEOF
14898
14899
14900 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14901 echo "obj-m := conftest.o" >build/Makefile
14902 modpost_flag=''
14903 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14904 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14914 test $ac_status = 0; }; }; then :
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14918
14919 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14920
14921
14922 else
14923 $as_echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928
14929
14930
14931 fi
14932 rm -Rf build
14933
14934
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14938 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14939
14940
14941 cat confdefs.h - <<_ACEOF >conftest.c
14942
14943
14944 #include <linux/fs.h>
14945
14946 int
14947 main (void)
14948 {
14949
14950 struct block_device *bdev = NULL;
14951 (void) blkdev_get(bdev, 0, NULL);
14952
14953 ;
14954 return 0;
14955 }
14956
14957 _ACEOF
14958
14959
14960
14961 cat - <<_ACEOF >conftest.h
14962
14963 _ACEOF
14964
14965
14966 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14967 echo "obj-m := conftest.o" >build/Makefile
14968 modpost_flag=''
14969 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14970 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; }; }; then :
14981
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983 $as_echo "yes" >&6; }
14984
14985 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14986
14987
14988 else
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14994
14995
14996
14997 fi
14998 rm -Rf build
14999
15000
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15003 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15004
15005
15006
15007 cat confdefs.h - <<_ACEOF >conftest.c
15008
15009
15010 #include <linux/fs.h>
15011
15012 int
15013 main (void)
15014 {
15015
15016 blkdev_get_by_path(NULL, 0, NULL);
15017
15018 ;
15019 return 0;
15020 }
15021
15022 _ACEOF
15023
15024
15025
15026 cat - <<_ACEOF >conftest.h
15027
15028 _ACEOF
15029
15030
15031 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15032 echo "obj-m := conftest.o" >build/Makefile
15033 modpost_flag=''
15034 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15035 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15040 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045 test $ac_status = 0; }; }; then :
15046 rc=0
15047 else
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050 rc=1
15051
15052
15053 fi
15054 rm -Rf build
15055
15056
15057 if test $rc -ne 0; then :
15058
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15061
15062 else
15063 if test "x$enable_linux_builtin" != xyes; then
15064
15065 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15066 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15067 rc=$?
15068 if test $rc -ne 0; then
15069 export=0
15070 for file in fs/block_dev.c; do
15071 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15072 "$LINUX/$file" 2>/dev/null
15073 rc=$?
15074 if test $rc -eq 0; then
15075 export=1
15076 break;
15077 fi
15078 done
15079 if test $export -eq 0; then :
15080 rc=1
15081 else :
15082 rc=0
15083 fi
15084 else :
15085 rc=0
15086 fi
15087
15088 fi
15089 if test $rc -ne 0; then :
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093
15094 else :
15095
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 $as_echo "yes" >&6; }
15098
15099 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15100
15101
15102 fi
15103 fi
15104
15105
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15107 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15108
15109
15110
15111 cat confdefs.h - <<_ACEOF >conftest.c
15112
15113
15114 #include <linux/fs.h>
15115
15116 int
15117 main (void)
15118 {
15119
15120 open_bdev_exclusive(NULL, 0, NULL);
15121
15122 ;
15123 return 0;
15124 }
15125
15126 _ACEOF
15127
15128
15129
15130 cat - <<_ACEOF >conftest.h
15131
15132 _ACEOF
15133
15134
15135 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15136 echo "obj-m := conftest.o" >build/Makefile
15137 modpost_flag=''
15138 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15139 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15144 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; }; }; then :
15150 rc=0
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154 rc=1
15155
15156
15157 fi
15158 rm -Rf build
15159
15160
15161 if test $rc -ne 0; then :
15162
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15165
15166 else
15167 if test "x$enable_linux_builtin" != xyes; then
15168
15169 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15170 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15171 rc=$?
15172 if test $rc -ne 0; then
15173 export=0
15174 for file in fs/block_dev.c; do
15175 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15176 "$LINUX/$file" 2>/dev/null
15177 rc=$?
15178 if test $rc -eq 0; then
15179 export=1
15180 break;
15181 fi
15182 done
15183 if test $export -eq 0; then :
15184 rc=1
15185 else :
15186 rc=0
15187 fi
15188 else :
15189 rc=0
15190 fi
15191
15192 fi
15193 if test $rc -ne 0; then :
15194
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15197
15198 else :
15199
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15201 $as_echo "yes" >&6; }
15202
15203 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15204
15205
15206 fi
15207 fi
15208
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15211 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15212
15213
15214
15215 cat confdefs.h - <<_ACEOF >conftest.c
15216
15217
15218 #include <linux/fs.h>
15219
15220 int
15221 main (void)
15222 {
15223
15224 lookup_bdev(NULL);
15225
15226 ;
15227 return 0;
15228 }
15229
15230 _ACEOF
15231
15232
15233
15234 cat - <<_ACEOF >conftest.h
15235
15236 _ACEOF
15237
15238
15239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15240 echo "obj-m := conftest.o" >build/Makefile
15241 modpost_flag=''
15242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; }; }; then :
15254 rc=0
15255 else
15256 $as_echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258 rc=1
15259
15260
15261 fi
15262 rm -Rf build
15263
15264
15265 if test $rc -ne 0; then :
15266
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15270 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15271
15272
15273
15274 cat confdefs.h - <<_ACEOF >conftest.c
15275
15276
15277 #include <linux/fs.h>
15278
15279 int
15280 main (void)
15281 {
15282
15283 lookup_bdev(NULL, FMODE_READ);
15284
15285 ;
15286 return 0;
15287 }
15288
15289 _ACEOF
15290
15291
15292
15293 cat - <<_ACEOF >conftest.h
15294
15295 _ACEOF
15296
15297
15298 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15299 echo "obj-m := conftest.o" >build/Makefile
15300 modpost_flag=''
15301 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15302 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15312 test $ac_status = 0; }; }; then :
15313 rc=0
15314 else
15315 $as_echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317 rc=1
15318
15319
15320 fi
15321 rm -Rf build
15322
15323
15324 if test $rc -ne 0; then :
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15328
15329 else
15330 if test "x$enable_linux_builtin" != xyes; then
15331
15332 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15333 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15334 rc=$?
15335 if test $rc -ne 0; then
15336 export=0
15337 for file in fs/block_dev.c; do
15338 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15339 "$LINUX/$file" 2>/dev/null
15340 rc=$?
15341 if test $rc -eq 0; then
15342 export=1
15343 break;
15344 fi
15345 done
15346 if test $export -eq 0; then :
15347 rc=1
15348 else :
15349 rc=0
15350 fi
15351 else :
15352 rc=0
15353 fi
15354
15355 fi
15356 if test $rc -ne 0; then :
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15360
15361 else :
15362
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364 $as_echo "yes" >&6; }
15365
15366 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15367
15368
15369 fi
15370 fi
15371
15372
15373 else
15374 if test "x$enable_linux_builtin" != xyes; then
15375
15376 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15377 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15378 rc=$?
15379 if test $rc -ne 0; then
15380 export=0
15381 for file in fs/block_dev.c; do
15382 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15383 "$LINUX/$file" 2>/dev/null
15384 rc=$?
15385 if test $rc -eq 0; then
15386 export=1
15387 break;
15388 fi
15389 done
15390 if test $export -eq 0; then :
15391 rc=1
15392 else :
15393 rc=0
15394 fi
15395 else :
15396 rc=0
15397 fi
15398
15399 fi
15400 if test $rc -ne 0; then :
15401
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15405 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15406
15407
15408
15409 cat confdefs.h - <<_ACEOF >conftest.c
15410
15411
15412 #include <linux/fs.h>
15413
15414 int
15415 main (void)
15416 {
15417
15418 lookup_bdev(NULL, FMODE_READ);
15419
15420 ;
15421 return 0;
15422 }
15423
15424 _ACEOF
15425
15426
15427
15428 cat - <<_ACEOF >conftest.h
15429
15430 _ACEOF
15431
15432
15433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15434 echo "obj-m := conftest.o" >build/Makefile
15435 modpost_flag=''
15436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15447 test $ac_status = 0; }; }; then :
15448 rc=0
15449 else
15450 $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452 rc=1
15453
15454
15455 fi
15456 rm -Rf build
15457
15458
15459 if test $rc -ne 0; then :
15460
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15463
15464 else
15465 if test "x$enable_linux_builtin" != xyes; then
15466
15467 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15468 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15469 rc=$?
15470 if test $rc -ne 0; then
15471 export=0
15472 for file in fs/block_dev.c; do
15473 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15474 "$LINUX/$file" 2>/dev/null
15475 rc=$?
15476 if test $rc -eq 0; then
15477 export=1
15478 break;
15479 fi
15480 done
15481 if test $export -eq 0; then :
15482 rc=1
15483 else :
15484 rc=0
15485 fi
15486 else :
15487 rc=0
15488 fi
15489
15490 fi
15491 if test $rc -ne 0; then :
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15495
15496 else :
15497
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15499 $as_echo "yes" >&6; }
15500
15501 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15502
15503
15504 fi
15505 fi
15506
15507
15508 else :
15509
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 $as_echo "yes" >&6; }
15512
15513 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15514
15515
15516 fi
15517 fi
15518
15519
15520
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15522 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15523
15524
15525 cat confdefs.h - <<_ACEOF >conftest.c
15526
15527
15528 #include <linux/buffer_head.h>
15529
15530 int
15531 main (void)
15532 {
15533
15534 struct block_device *bdev = NULL;
15535 invalidate_bdev(bdev);
15536
15537 ;
15538 return 0;
15539 }
15540
15541 _ACEOF
15542
15543
15544
15545 cat - <<_ACEOF >conftest.h
15546
15547 _ACEOF
15548
15549
15550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15551 echo "obj-m := conftest.o" >build/Makefile
15552 modpost_flag=''
15553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15554 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15564 test $ac_status = 0; }; }; then :
15565
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567 $as_echo "yes" >&6; }
15568
15569 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15570
15571
15572 else
15573 $as_echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15578
15579
15580
15581 fi
15582 rm -Rf build
15583
15584
15585
15586
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15588 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15589 tmp_flags="$EXTRA_KCFLAGS"
15590 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15591
15592
15593 cat confdefs.h - <<_ACEOF >conftest.c
15594
15595
15596 #include <linux/blkdev.h>
15597
15598 int
15599 main (void)
15600 {
15601
15602 struct block_device *bdev = NULL;
15603 bdev_logical_block_size(bdev);
15604
15605 ;
15606 return 0;
15607 }
15608
15609 _ACEOF
15610
15611
15612
15613 cat - <<_ACEOF >conftest.h
15614
15615 _ACEOF
15616
15617
15618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15619 echo "obj-m := conftest.o" >build/Makefile
15620 modpost_flag=''
15621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15622 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; }; }; then :
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15635 $as_echo "yes" >&6; }
15636
15637 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15638
15639
15640 else
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15646
15647
15648
15649 fi
15650 rm -Rf build
15651
15652
15653 EXTRA_KCFLAGS="$tmp_flags"
15654
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15657 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15658 tmp_flags="$EXTRA_KCFLAGS"
15659 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15660
15661
15662 cat confdefs.h - <<_ACEOF >conftest.c
15663
15664
15665 #include <linux/blkdev.h>
15666
15667 int
15668 main (void)
15669 {
15670
15671 struct block_device *bdev = NULL;
15672 bdev_physical_block_size(bdev);
15673
15674 ;
15675 return 0;
15676 }
15677
15678 _ACEOF
15679
15680
15681
15682 cat - <<_ACEOF >conftest.h
15683
15684 _ACEOF
15685
15686
15687 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15688 echo "obj-m := conftest.o" >build/Makefile
15689 modpost_flag=''
15690 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15691 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701 test $ac_status = 0; }; }; then :
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15704 $as_echo "yes" >&6; }
15705
15706 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15707
15708
15709 else
15710 $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15714 $as_echo "no" >&6; }
15715
15716
15717
15718 fi
15719 rm -Rf build
15720
15721
15722 EXTRA_KCFLAGS="$tmp_flags"
15723
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15726 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15727
15728
15729 cat confdefs.h - <<_ACEOF >conftest.c
15730
15731
15732 #include <linux/bio.h>
15733
15734 int
15735 main (void)
15736 {
15737
15738 struct bio bio;
15739 bio.bi_iter.bi_sector = 0;
15740
15741 ;
15742 return 0;
15743 }
15744
15745 _ACEOF
15746
15747
15748
15749 cat - <<_ACEOF >conftest.h
15750
15751 _ACEOF
15752
15753
15754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15755 echo "obj-m := conftest.o" >build/Makefile
15756 modpost_flag=''
15757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15758 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 test $ac_status = 0; }; }; then :
15769
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15771 $as_echo "yes" >&6; }
15772
15773 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15774
15775
15776 else
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15781 $as_echo "no" >&6; }
15782
15783
15784
15785 fi
15786 rm -Rf build
15787
15788
15789
15790
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15792 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15793
15794
15795 cat confdefs.h - <<_ACEOF >conftest.c
15796
15797
15798 #include <linux/bio.h>
15799
15800 int
15801 main (void)
15802 {
15803
15804 int flags __attribute__ ((unused));
15805 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15806 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15807 (1 << BIO_RW_FAILFAST_DRIVER));
15808
15809 ;
15810 return 0;
15811 }
15812
15813 _ACEOF
15814
15815
15816
15817 cat - <<_ACEOF >conftest.h
15818
15819 _ACEOF
15820
15821
15822 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15823 echo "obj-m := conftest.o" >build/Makefile
15824 modpost_flag=''
15825 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15826 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; }; then :
15837
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15839 $as_echo "yes" >&6; }
15840
15841 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15842
15843
15844 else
15845 $as_echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15850
15851
15852
15853 fi
15854 rm -Rf build
15855
15856
15857
15858
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15860 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15861
15862
15863 cat confdefs.h - <<_ACEOF >conftest.c
15864
15865
15866 #include <linux/bio.h>
15867 #include <linux/fs.h>
15868
15869 int
15870 main (void)
15871 {
15872
15873 struct block_device *bdev = NULL;
15874 struct bio *bio = NULL;
15875 bio_set_dev(bio, bdev);
15876
15877 ;
15878 return 0;
15879 }
15880
15881 _ACEOF
15882
15883
15884
15885 cat - <<_ACEOF >conftest.h
15886
15887 _ACEOF
15888
15889
15890 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15891 echo "obj-m := conftest.o" >build/Makefile
15892 modpost_flag=''
15893 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15894 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }; }; then :
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15907 $as_echo "yes" >&6; }
15908
15909 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15910
15911
15912 else
15913 $as_echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15918
15919
15920
15921 fi
15922 rm -Rf build
15923
15924
15925
15926
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15928 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15929
15930
15931 cat confdefs.h - <<_ACEOF >conftest.c
15932
15933
15934 #include <linux/bio.h>
15935
15936 int
15937 main (void)
15938 {
15939
15940 int flags __attribute__ ((unused));
15941 flags = REQ_FAILFAST_MASK;
15942
15943 ;
15944 return 0;
15945 }
15946
15947 _ACEOF
15948
15949
15950
15951 cat - <<_ACEOF >conftest.h
15952
15953 _ACEOF
15954
15955
15956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15957 echo "obj-m := conftest.o" >build/Makefile
15958 modpost_flag=''
15959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 test $ac_status = 0; }; }; then :
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15973 $as_echo "yes" >&6; }
15974
15975 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15976
15977
15978 else
15979 $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15984
15985
15986
15987 fi
15988 rm -Rf build
15989
15990
15991
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15994 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15995
15996
15997 cat confdefs.h - <<_ACEOF >conftest.c
15998
15999
16000 #include <linux/blk_types.h>
16001
16002 int
16003 main (void)
16004 {
16005
16006 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16007
16008 ;
16009 return 0;
16010 }
16011
16012 _ACEOF
16013
16014
16015
16016 cat - <<_ACEOF >conftest.h
16017
16018 _ACEOF
16019
16020
16021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16022 echo "obj-m := conftest.o" >build/Makefile
16023 modpost_flag=''
16024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; }; }; then :
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038 $as_echo "yes" >&6; }
16039
16040 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16041
16042
16043 else
16044 $as_echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16049
16050
16051
16052 fi
16053 rm -Rf build
16054
16055
16056
16057
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16059 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16060
16061
16062 cat confdefs.h - <<_ACEOF >conftest.c
16063
16064
16065 #include <linux/blk_types.h>
16066
16067 int
16068 main (void)
16069 {
16070
16071 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16072
16073 ;
16074 return 0;
16075 }
16076
16077 _ACEOF
16078
16079
16080
16081 cat - <<_ACEOF >conftest.h
16082
16083 _ACEOF
16084
16085
16086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16087 echo "obj-m := conftest.o" >build/Makefile
16088 modpost_flag=''
16089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16090 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100 test $ac_status = 0; }; }; then :
16101
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16104
16105 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16106
16107
16108 else
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114
16115
16116
16117 fi
16118 rm -Rf build
16119
16120
16121
16122
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16124 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16125
16126
16127 cat confdefs.h - <<_ACEOF >conftest.c
16128
16129
16130 #include <linux/blk_types.h>
16131
16132 int
16133 main (void)
16134 {
16135
16136 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16137
16138 ;
16139 return 0;
16140 }
16141
16142 _ACEOF
16143
16144
16145
16146 cat - <<_ACEOF >conftest.h
16147
16148 _ACEOF
16149
16150
16151 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16152 echo "obj-m := conftest.o" >build/Makefile
16153 modpost_flag=''
16154 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16155 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16160 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; }; then :
16166
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16168 $as_echo "yes" >&6; }
16169
16170 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16171
16172
16173 else
16174 $as_echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179
16180
16181
16182 fi
16183 rm -Rf build
16184
16185
16186
16187
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16189 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16190
16191
16192 cat confdefs.h - <<_ACEOF >conftest.c
16193
16194
16195 #include <linux/bio.h>
16196
16197 int
16198 main (void)
16199 {
16200
16201 struct bio bio __attribute__ ((unused));
16202 bio.bi_opf = 0;
16203
16204 ;
16205 return 0;
16206 }
16207
16208 _ACEOF
16209
16210
16211
16212 cat - <<_ACEOF >conftest.h
16213
16214 _ACEOF
16215
16216
16217 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16218 echo "obj-m := conftest.o" >build/Makefile
16219 modpost_flag=''
16220 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16221 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }; }; then :
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234 $as_echo "yes" >&6; }
16235
16236 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16237
16238
16239 else
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16244 $as_echo "no" >&6; }
16245
16246
16247
16248 fi
16249 rm -Rf build
16250
16251
16252
16253
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16255 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16256
16257
16258 cat confdefs.h - <<_ACEOF >conftest.c
16259
16260
16261 #include <linux/bio.h>
16262
16263 void wanted_end_io(struct bio *bio) { return; }
16264
16265 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16266
16267 int
16268 main (void)
16269 {
16270
16271
16272 ;
16273 return 0;
16274 }
16275
16276 _ACEOF
16277
16278
16279
16280 cat - <<_ACEOF >conftest.h
16281
16282 _ACEOF
16283
16284
16285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16286 echo "obj-m := conftest.o" >build/Makefile
16287 modpost_flag=''
16288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16294 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16299 test $ac_status = 0; }; }; then :
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16302 $as_echo "yes" >&6; }
16303
16304 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16305
16306
16307 else
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 $as_echo "no" >&6; }
16313
16314
16315
16316 fi
16317 rm -Rf build
16318
16319
16320
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16323 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16324
16325
16326 cat confdefs.h - <<_ACEOF >conftest.c
16327
16328
16329 #include <linux/bio.h>
16330
16331 int
16332 main (void)
16333 {
16334
16335 struct bio bio __attribute__ ((unused));
16336 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16337
16338 bio.bi_status = status;
16339
16340 ;
16341 return 0;
16342 }
16343
16344 _ACEOF
16345
16346
16347
16348 cat - <<_ACEOF >conftest.h
16349
16350 _ACEOF
16351
16352
16353 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16354 echo "obj-m := conftest.o" >build/Makefile
16355 modpost_flag=''
16356 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16357 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; }; }; then :
16368
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370 $as_echo "yes" >&6; }
16371
16372 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16373
16374
16375 else
16376 $as_echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16378
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16381
16382
16383
16384 fi
16385 rm -Rf build
16386
16387
16388
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16391 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16392
16393
16394 cat confdefs.h - <<_ACEOF >conftest.c
16395
16396
16397 #include <linux/bio.h>
16398
16399 int
16400 main (void)
16401 {
16402
16403 int flags __attribute__ ((unused));
16404 flags = BIO_RW_BARRIER;
16405
16406 ;
16407 return 0;
16408 }
16409
16410 _ACEOF
16411
16412
16413
16414 cat - <<_ACEOF >conftest.h
16415
16416 _ACEOF
16417
16418
16419 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16420 echo "obj-m := conftest.o" >build/Makefile
16421 modpost_flag=''
16422 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16423 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16425 (eval $ac_try) 2>&5
16426 ac_status=$?
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16433 test $ac_status = 0; }; }; then :
16434
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16436 $as_echo "yes" >&6; }
16437
16438 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16439
16440
16441 else
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16447
16448
16449
16450 fi
16451 rm -Rf build
16452
16453
16454
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16457 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16458
16459
16460 cat confdefs.h - <<_ACEOF >conftest.c
16461
16462
16463 #include <linux/bio.h>
16464
16465 int
16466 main (void)
16467 {
16468
16469 int flags __attribute__ ((unused));
16470 flags = BIO_RW_DISCARD;
16471
16472 ;
16473 return 0;
16474 }
16475
16476 _ACEOF
16477
16478
16479
16480 cat - <<_ACEOF >conftest.h
16481
16482 _ACEOF
16483
16484
16485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16486 echo "obj-m := conftest.o" >build/Makefile
16487 modpost_flag=''
16488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16489 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16494 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; }; }; then :
16500
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16502 $as_echo "yes" >&6; }
16503
16504 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16505
16506
16507 else
16508 $as_echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16513
16514
16515
16516 fi
16517 rm -Rf build
16518
16519
16520
16521
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16523 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16524
16525
16526 cat confdefs.h - <<_ACEOF >conftest.c
16527
16528
16529 #include <linux/blkdev.h>
16530
16531 int
16532 main (void)
16533 {
16534
16535 struct request_queue q;
16536 struct backing_dev_info bdi;
16537 q.backing_dev_info = &bdi;
16538
16539 ;
16540 return 0;
16541 }
16542
16543 _ACEOF
16544
16545
16546
16547 cat - <<_ACEOF >conftest.h
16548
16549 _ACEOF
16550
16551
16552 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16553 echo "obj-m := conftest.o" >build/Makefile
16554 modpost_flag=''
16555 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16556 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16566 test $ac_status = 0; }; }; then :
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569 $as_echo "yes" >&6; }
16570
16571 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
16572
16573
16574 else
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 $as_echo "no" >&6; }
16580
16581
16582
16583 fi
16584 rm -Rf build
16585
16586
16587
16588
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16590 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16591 tmp_flags="$EXTRA_KCFLAGS"
16592 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16593
16594
16595 cat confdefs.h - <<_ACEOF >conftest.c
16596
16597
16598 #include <linux/blkdev.h>
16599
16600 int
16601 main (void)
16602 {
16603
16604 struct request_queue *q = NULL;
16605 (void) blk_queue_flush(q, REQ_FLUSH);
16606
16607 ;
16608 return 0;
16609 }
16610
16611 _ACEOF
16612
16613
16614
16615 cat - <<_ACEOF >conftest.h
16616
16617 _ACEOF
16618
16619
16620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16621 echo "obj-m := conftest.o" >build/Makefile
16622 modpost_flag=''
16623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16624 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16634 test $ac_status = 0; }; }; then :
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16638
16639 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16640
16641
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16643 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16644
16645
16646 cat confdefs.h - <<_ACEOF >conftest.c
16647
16648
16649 #include <linux/module.h>
16650 #include <linux/blkdev.h>
16651
16652 MODULE_LICENSE("$ZFS_META_LICENSE");
16653
16654 int
16655 main (void)
16656 {
16657
16658 struct request_queue *q = NULL;
16659 (void) blk_queue_flush(q, REQ_FLUSH);
16660
16661 ;
16662 return 0;
16663 }
16664
16665 _ACEOF
16666
16667
16668
16669 cat - <<_ACEOF >conftest.h
16670
16671 _ACEOF
16672
16673
16674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16675 echo "obj-m := conftest.o" >build/Makefile
16676 modpost_flag=''
16677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }; }; then :
16689
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692
16693 else
16694 $as_echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698 $as_echo "yes" >&6; }
16699
16700 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16701
16702
16703
16704
16705 fi
16706 rm -Rf build
16707
16708
16709
16710 else
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16716
16717
16718
16719 fi
16720 rm -Rf build
16721
16722
16723
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16725 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16726
16727
16728 cat confdefs.h - <<_ACEOF >conftest.c
16729
16730
16731 #include <linux/kernel.h>
16732 #include <linux/blkdev.h>
16733
16734
16735 int
16736 main (void)
16737 {
16738
16739 struct request_queue *q = NULL;
16740 blk_queue_write_cache(q, true, true);
16741
16742 ;
16743 return 0;
16744 }
16745
16746 _ACEOF
16747
16748
16749
16750 cat - <<_ACEOF >conftest.h
16751
16752 _ACEOF
16753
16754
16755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16756 echo "obj-m := conftest.o" >build/Makefile
16757 modpost_flag=''
16758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16759 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }; }; then :
16770
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773
16774 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16775
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16778 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16779
16780
16781 cat confdefs.h - <<_ACEOF >conftest.c
16782
16783
16784 #include <linux/kernel.h>
16785 #include <linux/module.h>
16786 #include <linux/blkdev.h>
16787
16788 MODULE_LICENSE("$ZFS_META_LICENSE");
16789
16790 int
16791 main (void)
16792 {
16793
16794 struct request_queue *q = NULL;
16795 blk_queue_write_cache(q, true, true);
16796
16797 ;
16798 return 0;
16799 }
16800
16801 _ACEOF
16802
16803
16804
16805 cat - <<_ACEOF >conftest.h
16806
16807 _ACEOF
16808
16809
16810 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16811 echo "obj-m := conftest.o" >build/Makefile
16812 modpost_flag=''
16813 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16814 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16824 test $ac_status = 0; }; }; then :
16825
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16828
16829 else
16830 $as_echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16835
16836 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16837
16838
16839
16840
16841 fi
16842 rm -Rf build
16843
16844
16845
16846 else
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16852
16853
16854
16855 fi
16856 rm -Rf build
16857
16858
16859
16860 EXTRA_KCFLAGS="$tmp_flags"
16861
16862
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16864 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16865 tmp_flags="$EXTRA_KCFLAGS"
16866 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16867
16868
16869 cat confdefs.h - <<_ACEOF >conftest.c
16870
16871
16872 #include <linux/blkdev.h>
16873
16874 int
16875 main (void)
16876 {
16877
16878 struct request_queue *q = NULL;
16879 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16880
16881 ;
16882 return 0;
16883 }
16884
16885 _ACEOF
16886
16887
16888
16889 cat - <<_ACEOF >conftest.h
16890
16891 _ACEOF
16892
16893
16894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16895 echo "obj-m := conftest.o" >build/Makefile
16896 modpost_flag=''
16897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16898 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; }; }; then :
16909
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911 $as_echo "yes" >&6; }
16912
16913 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16914
16915
16916 else
16917 $as_echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
16922
16923
16924
16925 fi
16926 rm -Rf build
16927
16928
16929 EXTRA_KCFLAGS="$tmp_flags"
16930
16931
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16933 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16934 tmp_flags="$EXTRA_KCFLAGS"
16935 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16936
16937
16938 cat confdefs.h - <<_ACEOF >conftest.c
16939
16940
16941 #include <linux/blkdev.h>
16942
16943 int
16944 main (void)
16945 {
16946
16947 struct request_queue *q = NULL;
16948 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16949
16950 ;
16951 return 0;
16952 }
16953
16954 _ACEOF
16955
16956
16957
16958 cat - <<_ACEOF >conftest.h
16959
16960 _ACEOF
16961
16962
16963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16964 echo "obj-m := conftest.o" >build/Makefile
16965 modpost_flag=''
16966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16967 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16972 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16977 test $ac_status = 0; }; }; then :
16978
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16980 $as_echo "yes" >&6; }
16981
16982 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16983
16984
16985 else
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990 $as_echo "no" >&6; }
16991
16992
16993
16994 fi
16995 rm -Rf build
16996
16997
16998 EXTRA_KCFLAGS="$tmp_flags"
16999
17000
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
17002 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17003 tmp_flags="$EXTRA_KCFLAGS"
17004 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17005
17006
17007 cat confdefs.h - <<_ACEOF >conftest.c
17008
17009
17010 #include <linux/blkdev.h>
17011
17012 int
17013 main (void)
17014 {
17015
17016 extern enum bio_rw_flags rw;
17017
17018 rw = BIO_RW_UNPLUG;
17019
17020 ;
17021 return 0;
17022 }
17023
17024 _ACEOF
17025
17026
17027
17028 cat - <<_ACEOF >conftest.h
17029
17030 _ACEOF
17031
17032
17033 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17034 echo "obj-m := conftest.o" >build/Makefile
17035 modpost_flag=''
17036 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17037 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17047 test $ac_status = 0; }; }; then :
17048
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17050 $as_echo "yes" >&6; }
17051
17052 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
17053
17054
17055 else
17056 $as_echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17058
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17061
17062
17063
17064 fi
17065 rm -Rf build
17066
17067
17068 EXTRA_KCFLAGS="$tmp_flags"
17069
17070
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17072 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17073 tmp_flags="$EXTRA_KCFLAGS"
17074 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17075
17076
17077 cat confdefs.h - <<_ACEOF >conftest.c
17078
17079
17080 #include <linux/blkdev.h>
17081
17082 int
17083 main (void)
17084 {
17085
17086 struct blk_plug plug;
17087
17088 blk_start_plug(&plug);
17089 blk_finish_plug(&plug);
17090
17091 ;
17092 return 0;
17093 }
17094
17095 _ACEOF
17096
17097
17098
17099 cat - <<_ACEOF >conftest.h
17100
17101 _ACEOF
17102
17103
17104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17105 echo "obj-m := conftest.o" >build/Makefile
17106 modpost_flag=''
17107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17118 test $ac_status = 0; }; }; then :
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17122
17123 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17124
17125
17126 else
17127 $as_echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17132
17133
17134
17135 fi
17136 rm -Rf build
17137
17138
17139 EXTRA_KCFLAGS="$tmp_flags"
17140
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17143 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17144 tmp_flags="$EXTRA_KCFLAGS"
17145 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17146
17147
17148 cat confdefs.h - <<_ACEOF >conftest.c
17149
17150
17151 #include <linux/blkdev.h>
17152
17153 int
17154 main (void)
17155 {
17156
17157 struct gendisk *disk = NULL;
17158 (void) get_disk_ro(disk);
17159
17160 ;
17161 return 0;
17162 }
17163
17164 _ACEOF
17165
17166
17167
17168 cat - <<_ACEOF >conftest.h
17169
17170 _ACEOF
17171
17172
17173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17174 echo "obj-m := conftest.o" >build/Makefile
17175 modpost_flag=''
17176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17177 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17182 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }; }; then :
17188
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190 $as_echo "yes" >&6; }
17191
17192 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17193
17194
17195 else
17196 $as_echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 $as_echo "no" >&6; }
17201
17202
17203
17204 fi
17205 rm -Rf build
17206
17207
17208 EXTRA_KCFLAGS="$tmp_flags"
17209
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17211 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17212
17213
17214
17215 cat confdefs.h - <<_ACEOF >conftest.c
17216
17217
17218 #include <linux/genhd.h>
17219
17220 int
17221 main (void)
17222 {
17223
17224 get_gendisk(0, NULL);
17225
17226 ;
17227 return 0;
17228 }
17229
17230 _ACEOF
17231
17232
17233
17234 cat - <<_ACEOF >conftest.h
17235
17236 _ACEOF
17237
17238
17239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17240 echo "obj-m := conftest.o" >build/Makefile
17241 modpost_flag=''
17242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; }; }; then :
17254 rc=0
17255 else
17256 $as_echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258 rc=1
17259
17260
17261 fi
17262 rm -Rf build
17263
17264
17265 if test $rc -ne 0; then :
17266
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269
17270 else
17271 if test "x$enable_linux_builtin" != xyes; then
17272
17273 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17275 rc=$?
17276 if test $rc -ne 0; then
17277 export=0
17278 for file in block/genhd.c; do
17279 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17280 "$LINUX/$file" 2>/dev/null
17281 rc=$?
17282 if test $rc -eq 0; then
17283 export=1
17284 break;
17285 fi
17286 done
17287 if test $export -eq 0; then :
17288 rc=1
17289 else :
17290 rc=0
17291 fi
17292 else :
17293 rc=0
17294 fi
17295
17296 fi
17297 if test $rc -ne 0; then :
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17301
17302 else :
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17305 $as_echo "yes" >&6; }
17306
17307 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17308
17309
17310 fi
17311 fi
17312
17313
17314
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17316 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17317
17318
17319 cat confdefs.h - <<_ACEOF >conftest.c
17320
17321
17322 #include <linux/bio.h>
17323
17324 int
17325 main (void)
17326 {
17327
17328 struct bio *bio __attribute__ ((unused)) = NULL;
17329
17330 bio_set_op_attrs(bio, 0, 0);
17331
17332 ;
17333 return 0;
17334 }
17335
17336 _ACEOF
17337
17338
17339
17340 cat - <<_ACEOF >conftest.h
17341
17342 _ACEOF
17343
17344
17345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17346 echo "obj-m := conftest.o" >build/Makefile
17347 modpost_flag=''
17348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17349 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; }; }; then :
17360
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17363
17364 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17365
17366
17367 else
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373
17374
17375
17376 fi
17377 rm -Rf build
17378
17379
17380
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17383 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17384
17385
17386 cat confdefs.h - <<_ACEOF >conftest.c
17387
17388
17389 #include <linux/fs.h>
17390
17391 int
17392 main (void)
17393 {
17394
17395 int i __attribute__ ((unused));
17396
17397 i = generic_readlink(NULL, NULL, 0);
17398
17399 ;
17400 return 0;
17401 }
17402
17403 _ACEOF
17404
17405
17406
17407 cat - <<_ACEOF >conftest.h
17408
17409 _ACEOF
17410
17411
17412 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17413 echo "obj-m := conftest.o" >build/Makefile
17414 modpost_flag=''
17415 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17416 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17421 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17426 test $ac_status = 0; }; }; then :
17427
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17429 $as_echo "yes" >&6; }
17430
17431 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17432
17433
17434 else
17435 $as_echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17439 $as_echo "no" >&6; }
17440
17441
17442
17443 fi
17444 rm -Rf build
17445
17446
17447
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17450 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17451
17452
17453 cat confdefs.h - <<_ACEOF >conftest.c
17454
17455
17456 #include <linux/blkdev.h>
17457
17458 int
17459 main (void)
17460 {
17461
17462 struct queue_limits ql __attribute__ ((unused));
17463
17464 ql.discard_granularity = 0;
17465
17466 ;
17467 return 0;
17468 }
17469
17470 _ACEOF
17471
17472
17473
17474 cat - <<_ACEOF >conftest.h
17475
17476 _ACEOF
17477
17478
17479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17480 echo "obj-m := conftest.o" >build/Makefile
17481 modpost_flag=''
17482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17493 test $ac_status = 0; }; }; then :
17494
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497
17498 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17499
17500
17501 else
17502 $as_echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 $as_echo "no" >&6; }
17507
17508
17509
17510 fi
17511 rm -Rf build
17512
17513
17514
17515
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17517 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17518
17519
17520 cat confdefs.h - <<_ACEOF >conftest.c
17521
17522
17523 #include <linux/fs.h>
17524 #include <linux/xattr.h>
17525
17526 const struct xattr_handler xattr_test_handler = {
17527 .prefix = "test",
17528 .get = NULL,
17529 .set = NULL,
17530 };
17531
17532 const struct xattr_handler *xattr_handlers[] = {
17533 &xattr_test_handler,
17534 };
17535
17536 const struct super_block sb __attribute__ ((unused)) = {
17537 .s_xattr = xattr_handlers,
17538 };
17539
17540 int
17541 main (void)
17542 {
17543
17544
17545 ;
17546 return 0;
17547 }
17548
17549 _ACEOF
17550
17551
17552
17553 cat - <<_ACEOF >conftest.h
17554
17555 _ACEOF
17556
17557
17558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17559 echo "obj-m := conftest.o" >build/Makefile
17560 modpost_flag=''
17561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17572 test $ac_status = 0; }; }; then :
17573
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17576
17577 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17578
17579
17580 else
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17586
17587
17588
17589 fi
17590 rm -Rf build
17591
17592
17593
17594
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17596 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17597
17598
17599 cat confdefs.h - <<_ACEOF >conftest.c
17600
17601
17602 #include <linux/xattr.h>
17603
17604 static const struct xattr_handler
17605 xops __attribute__ ((unused)) = {
17606 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17607 };
17608
17609 int
17610 main (void)
17611 {
17612
17613
17614 ;
17615 return 0;
17616 }
17617
17618 _ACEOF
17619
17620
17621
17622 cat - <<_ACEOF >conftest.h
17623
17624 _ACEOF
17625
17626
17627 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17628 echo "obj-m := conftest.o" >build/Makefile
17629 modpost_flag=''
17630 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17631 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17636 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17641 test $ac_status = 0; }; }; then :
17642
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17644 $as_echo "yes" >&6; }
17645
17646 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17647
17648
17649 else
17650 $as_echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17655
17656
17657
17658 fi
17659 rm -Rf build
17660
17661
17662
17663
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17665 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17666
17667
17668 cat confdefs.h - <<_ACEOF >conftest.c
17669
17670
17671 #include <linux/xattr.h>
17672
17673 int get(const struct xattr_handler *handler,
17674 struct dentry *dentry, struct inode *inode,
17675 const char *name, void *buffer, size_t size) { return 0; }
17676 static const struct xattr_handler
17677 xops __attribute__ ((unused)) = {
17678 .get = get,
17679 };
17680
17681 int
17682 main (void)
17683 {
17684
17685
17686 ;
17687 return 0;
17688 }
17689
17690 _ACEOF
17691
17692
17693
17694 cat - <<_ACEOF >conftest.h
17695
17696 _ACEOF
17697
17698
17699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17700 echo "obj-m := conftest.o" >build/Makefile
17701 modpost_flag=''
17702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; }; }; then :
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716 $as_echo "yes" >&6; }
17717
17718 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17719
17720
17721 else
17722 $as_echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726 $as_echo "no" >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17728 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17729
17730
17731 cat confdefs.h - <<_ACEOF >conftest.c
17732
17733
17734 #include <linux/xattr.h>
17735
17736 int get(const struct xattr_handler *handler,
17737 struct dentry *dentry, const char *name,
17738 void *buffer, size_t size) { return 0; }
17739 static const struct xattr_handler
17740 xops __attribute__ ((unused)) = {
17741 .get = get,
17742 };
17743
17744 int
17745 main (void)
17746 {
17747
17748
17749 ;
17750 return 0;
17751 }
17752
17753 _ACEOF
17754
17755
17756
17757 cat - <<_ACEOF >conftest.h
17758
17759 _ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17763 echo "obj-m := conftest.o" >build/Makefile
17764 modpost_flag=''
17765 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17766 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; }; }; then :
17777
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17779 $as_echo "yes" >&6; }
17780
17781 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17782
17783
17784 else
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17791 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17792
17793
17794 cat confdefs.h - <<_ACEOF >conftest.c
17795
17796
17797 #include <linux/xattr.h>
17798
17799 int get(struct dentry *dentry, const char *name,
17800 void *buffer, size_t size, int handler_flags)
17801 { return 0; }
17802 static const struct xattr_handler
17803 xops __attribute__ ((unused)) = {
17804 .get = get,
17805 };
17806
17807 int
17808 main (void)
17809 {
17810
17811
17812 ;
17813 return 0;
17814 }
17815
17816 _ACEOF
17817
17818
17819
17820 cat - <<_ACEOF >conftest.h
17821
17822 _ACEOF
17823
17824
17825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17826 echo "obj-m := conftest.o" >build/Makefile
17827 modpost_flag=''
17828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17829 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17834 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17839 test $ac_status = 0; }; }; then :
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17842 $as_echo "yes" >&6; }
17843
17844 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17845
17846
17847 else
17848 $as_echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17850
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17854 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17855
17856
17857 cat confdefs.h - <<_ACEOF >conftest.c
17858
17859
17860 #include <linux/xattr.h>
17861
17862 int get(struct inode *ip, const char *name,
17863 void *buffer, size_t size) { return 0; }
17864 static const struct xattr_handler
17865 xops __attribute__ ((unused)) = {
17866 .get = get,
17867 };
17868
17869 int
17870 main (void)
17871 {
17872
17873
17874 ;
17875 return 0;
17876 }
17877
17878 _ACEOF
17879
17880
17881
17882 cat - <<_ACEOF >conftest.h
17883
17884 _ACEOF
17885
17886
17887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17888 echo "obj-m := conftest.o" >build/Makefile
17889 modpost_flag=''
17890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17891 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901 test $ac_status = 0; }; }; then :
17902
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17904 $as_echo "yes" >&6; }
17905
17906 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17907
17908
17909 else
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17914
17915
17916
17917 fi
17918 rm -Rf build
17919
17920
17921
17922
17923
17924 fi
17925 rm -Rf build
17926
17927
17928
17929
17930
17931 fi
17932 rm -Rf build
17933
17934
17935
17936
17937
17938 fi
17939 rm -Rf build
17940
17941
17942
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17945 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17946
17947
17948 cat confdefs.h - <<_ACEOF >conftest.c
17949
17950
17951 #include <linux/xattr.h>
17952
17953 int set(const struct xattr_handler *handler,
17954 struct dentry *dentry, struct inode *inode,
17955 const char *name, const void *buffer,
17956 size_t size, int flags)
17957 { return 0; }
17958 static const struct xattr_handler
17959 xops __attribute__ ((unused)) = {
17960 .set = set,
17961 };
17962
17963 int
17964 main (void)
17965 {
17966
17967
17968 ;
17969 return 0;
17970 }
17971
17972 _ACEOF
17973
17974
17975
17976 cat - <<_ACEOF >conftest.h
17977
17978 _ACEOF
17979
17980
17981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17982 echo "obj-m := conftest.o" >build/Makefile
17983 modpost_flag=''
17984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17985 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; }; then :
17996
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999
18000 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
18001
18002
18003 else
18004 $as_echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
18010 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18011
18012
18013 cat confdefs.h - <<_ACEOF >conftest.c
18014
18015
18016 #include <linux/xattr.h>
18017
18018 int set(const struct xattr_handler *handler,
18019 struct dentry *dentry, const char *name,
18020 const void *buffer, size_t size, int flags)
18021 { return 0; }
18022 static const struct xattr_handler
18023 xops __attribute__ ((unused)) = {
18024 .set = set,
18025 };
18026
18027 int
18028 main (void)
18029 {
18030
18031
18032 ;
18033 return 0;
18034 }
18035
18036 _ACEOF
18037
18038
18039
18040 cat - <<_ACEOF >conftest.h
18041
18042 _ACEOF
18043
18044
18045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18046 echo "obj-m := conftest.o" >build/Makefile
18047 modpost_flag=''
18048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18049 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18054 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18059 test $ac_status = 0; }; }; then :
18060
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062 $as_echo "yes" >&6; }
18063
18064 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18065
18066
18067 else
18068 $as_echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072 $as_echo "no" >&6; }
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18074 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18075
18076
18077 cat confdefs.h - <<_ACEOF >conftest.c
18078
18079
18080 #include <linux/xattr.h>
18081
18082 int set(struct dentry *dentry, const char *name,
18083 const void *buffer, size_t size, int flags,
18084 int handler_flags) { return 0; }
18085 static const struct xattr_handler
18086 xops __attribute__ ((unused)) = {
18087 .set = set,
18088 };
18089
18090 int
18091 main (void)
18092 {
18093
18094
18095 ;
18096 return 0;
18097 }
18098
18099 _ACEOF
18100
18101
18102
18103 cat - <<_ACEOF >conftest.h
18104
18105 _ACEOF
18106
18107
18108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18109 echo "obj-m := conftest.o" >build/Makefile
18110 modpost_flag=''
18111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18112 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18117 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; }; }; then :
18123
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18125 $as_echo "yes" >&6; }
18126
18127 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18128
18129
18130 else
18131 $as_echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18137 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18138
18139
18140 cat confdefs.h - <<_ACEOF >conftest.c
18141
18142
18143 #include <linux/xattr.h>
18144
18145 int set(struct inode *ip, const char *name,
18146 const void *buffer, size_t size, int flags)
18147 { return 0; }
18148 static const struct xattr_handler
18149 xops __attribute__ ((unused)) = {
18150 .set = set,
18151 };
18152
18153 int
18154 main (void)
18155 {
18156
18157
18158 ;
18159 return 0;
18160 }
18161
18162 _ACEOF
18163
18164
18165
18166 cat - <<_ACEOF >conftest.h
18167
18168 _ACEOF
18169
18170
18171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18172 echo "obj-m := conftest.o" >build/Makefile
18173 modpost_flag=''
18174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18180 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18185 test $ac_status = 0; }; }; then :
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188 $as_echo "yes" >&6; }
18189
18190 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18191
18192
18193 else
18194 $as_echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18198
18199
18200
18201 fi
18202 rm -Rf build
18203
18204
18205
18206
18207
18208 fi
18209 rm -Rf build
18210
18211
18212
18213
18214
18215 fi
18216 rm -Rf build
18217
18218
18219
18220
18221
18222 fi
18223 rm -Rf build
18224
18225
18226
18227
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18229 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18230
18231
18232 cat confdefs.h - <<_ACEOF >conftest.c
18233
18234
18235 #include <linux/xattr.h>
18236
18237 bool list(struct dentry *dentry) { return 0; }
18238 static const struct xattr_handler
18239 xops __attribute__ ((unused)) = {
18240 .list = list,
18241 };
18242
18243 int
18244 main (void)
18245 {
18246
18247
18248 ;
18249 return 0;
18250 }
18251
18252 _ACEOF
18253
18254
18255
18256 cat - <<_ACEOF >conftest.h
18257
18258 _ACEOF
18259
18260
18261 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18262 echo "obj-m := conftest.o" >build/Makefile
18263 modpost_flag=''
18264 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18265 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; }; }; then :
18276
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18279
18280 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18281
18282
18283 else
18284 $as_echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288 $as_echo "no" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18290 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18291
18292
18293 cat confdefs.h - <<_ACEOF >conftest.c
18294
18295
18296 #include <linux/xattr.h>
18297
18298 size_t list(const struct xattr_handler *handler,
18299 struct dentry *dentry, char *list, size_t list_size,
18300 const char *name, size_t name_len) { return 0; }
18301 static const struct xattr_handler
18302 xops __attribute__ ((unused)) = {
18303 .list = list,
18304 };
18305
18306 int
18307 main (void)
18308 {
18309
18310
18311 ;
18312 return 0;
18313 }
18314
18315 _ACEOF
18316
18317
18318
18319 cat - <<_ACEOF >conftest.h
18320
18321 _ACEOF
18322
18323
18324 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18325 echo "obj-m := conftest.o" >build/Makefile
18326 modpost_flag=''
18327 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18328 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18333 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18338 test $ac_status = 0; }; }; then :
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341 $as_echo "yes" >&6; }
18342
18343 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18344
18345
18346 else
18347 $as_echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18353 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18354
18355
18356 cat confdefs.h - <<_ACEOF >conftest.c
18357
18358
18359 #include <linux/xattr.h>
18360
18361 size_t list(struct dentry *dentry,
18362 char *list, size_t list_size,
18363 const char *name, size_t name_len,
18364 int handler_flags) { return 0; }
18365 static const struct xattr_handler
18366 xops __attribute__ ((unused)) = {
18367 .list = list,
18368 };
18369
18370 int
18371 main (void)
18372 {
18373
18374
18375 ;
18376 return 0;
18377 }
18378
18379 _ACEOF
18380
18381
18382
18383 cat - <<_ACEOF >conftest.h
18384
18385 _ACEOF
18386
18387
18388 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18389 echo "obj-m := conftest.o" >build/Makefile
18390 modpost_flag=''
18391 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18392 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18402 test $ac_status = 0; }; }; then :
18403
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18405 $as_echo "yes" >&6; }
18406
18407 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18408
18409
18410 else
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18417 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18418
18419
18420 cat confdefs.h - <<_ACEOF >conftest.c
18421
18422
18423 #include <linux/xattr.h>
18424
18425 size_t list(struct inode *ip, char *lst,
18426 size_t list_size, const char *name,
18427 size_t name_len) { return 0; }
18428 static const struct xattr_handler
18429 xops __attribute__ ((unused)) = {
18430 .list = list,
18431 };
18432
18433 int
18434 main (void)
18435 {
18436
18437
18438 ;
18439 return 0;
18440 }
18441
18442 _ACEOF
18443
18444
18445
18446 cat - <<_ACEOF >conftest.h
18447
18448 _ACEOF
18449
18450
18451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18452 echo "obj-m := conftest.o" >build/Makefile
18453 modpost_flag=''
18454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18455 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18465 test $ac_status = 0; }; }; then :
18466
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18468 $as_echo "yes" >&6; }
18469
18470 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18471
18472
18473 else
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18478
18479
18480
18481 fi
18482 rm -Rf build
18483
18484
18485
18486
18487
18488 fi
18489 rm -Rf build
18490
18491
18492
18493
18494
18495 fi
18496 rm -Rf build
18497
18498
18499
18500
18501
18502 fi
18503 rm -Rf build
18504
18505
18506
18507
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18509 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18510
18511
18512 cat confdefs.h - <<_ACEOF >conftest.c
18513
18514
18515 #include <linux/fs.h>
18516
18517 int
18518 main (void)
18519 {
18520
18521 struct inode *ip = NULL;
18522 (void) inode_owner_or_capable(ip);
18523
18524 ;
18525 return 0;
18526 }
18527
18528 _ACEOF
18529
18530
18531
18532 cat - <<_ACEOF >conftest.h
18533
18534 _ACEOF
18535
18536
18537 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18538 echo "obj-m := conftest.o" >build/Makefile
18539 modpost_flag=''
18540 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18541 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; }; }; then :
18552
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18555
18556 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18557
18558
18559 else
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18566 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18567
18568
18569 cat confdefs.h - <<_ACEOF >conftest.c
18570
18571
18572 #include <linux/fs.h>
18573 #include <linux/sched.h>
18574
18575 int
18576 main (void)
18577 {
18578
18579 struct inode *ip = NULL;
18580 (void) is_owner_or_cap(ip);
18581
18582 ;
18583 return 0;
18584 }
18585
18586 _ACEOF
18587
18588
18589
18590 cat - <<_ACEOF >conftest.h
18591
18592 _ACEOF
18593
18594
18595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18596 echo "obj-m := conftest.o" >build/Makefile
18597 modpost_flag=''
18598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18609 test $ac_status = 0; }; }; then :
18610
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18612 $as_echo "yes" >&6; }
18613
18614 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18615
18616
18617 else
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 as_fn_error $? "no - Please file a bug report at
18622 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18623
18624
18625
18626 fi
18627 rm -Rf build
18628
18629
18630
18631
18632
18633 fi
18634 rm -Rf build
18635
18636
18637
18638
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18640 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18641
18642
18643 cat confdefs.h - <<_ACEOF >conftest.c
18644
18645
18646 #include <linux/cred.h>
18647 #include <linux/fs.h>
18648 #include <linux/posix_acl_xattr.h>
18649
18650 int
18651 main (void)
18652 {
18653
18654 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18655
18656 ;
18657 return 0;
18658 }
18659
18660 _ACEOF
18661
18662
18663
18664 cat - <<_ACEOF >conftest.h
18665
18666 _ACEOF
18667
18668
18669 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18670 echo "obj-m := conftest.o" >build/Makefile
18671 modpost_flag=''
18672 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18673 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18678 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683 test $ac_status = 0; }; }; then :
18684
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687
18688 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18689
18690
18691 else
18692 $as_echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697
18698
18699
18700 fi
18701 rm -Rf build
18702
18703
18704
18705
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18707 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18708
18709
18710 cat confdefs.h - <<_ACEOF >conftest.c
18711
18712
18713 #include <linux/cred.h>
18714 #include <linux/fs.h>
18715 #include <linux/posix_acl.h>
18716
18717 int
18718 main (void)
18719 {
18720
18721 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18722 posix_acl_release(tmp);
18723
18724 ;
18725 return 0;
18726 }
18727
18728 _ACEOF
18729
18730
18731
18732 cat - <<_ACEOF >conftest.h
18733
18734 _ACEOF
18735
18736
18737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18738 echo "obj-m := conftest.o" >build/Makefile
18739 modpost_flag=''
18740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18751 test $ac_status = 0; }; }; then :
18752
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18754 $as_echo "yes" >&6; }
18755
18756 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18757
18758
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18760 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18761
18762
18763 cat confdefs.h - <<_ACEOF >conftest.c
18764
18765
18766 #include <linux/module.h>
18767 #include <linux/cred.h>
18768 #include <linux/fs.h>
18769 #include <linux/posix_acl.h>
18770
18771 MODULE_LICENSE("$ZFS_META_LICENSE");
18772
18773 int
18774 main (void)
18775 {
18776
18777 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18778 posix_acl_release(tmp);
18779
18780 ;
18781 return 0;
18782 }
18783
18784 _ACEOF
18785
18786
18787
18788 cat - <<_ACEOF >conftest.h
18789
18790 _ACEOF
18791
18792
18793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18794 echo "obj-m := conftest.o" >build/Makefile
18795 modpost_flag=''
18796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 test $ac_status = 0; }; }; then :
18808
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810 $as_echo "no" >&6; }
18811
18812 else
18813 $as_echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817 $as_echo "yes" >&6; }
18818
18819 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18820
18821
18822
18823
18824 fi
18825 rm -Rf build
18826
18827
18828
18829 else
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18835
18836
18837
18838 fi
18839 rm -Rf build
18840
18841
18842
18843
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18845 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18846
18847
18848 cat confdefs.h - <<_ACEOF >conftest.c
18849
18850
18851 #include <linux/module.h>
18852 #include <linux/cred.h>
18853 #include <linux/fs.h>
18854 #include <linux/posix_acl.h>
18855
18856 MODULE_LICENSE("$ZFS_META_LICENSE");
18857
18858 int
18859 main (void)
18860 {
18861
18862 struct inode *ip = NULL;
18863 struct posix_acl *acl = posix_acl_alloc(1, 0);
18864 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18865 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18866
18867 ;
18868 return 0;
18869 }
18870
18871 _ACEOF
18872
18873
18874
18875 cat - <<_ACEOF >conftest.h
18876
18877 _ACEOF
18878
18879
18880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18881 echo "obj-m := conftest.o" >build/Makefile
18882 modpost_flag=''
18883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18894 test $ac_status = 0; }; }; then :
18895
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18897 $as_echo "yes" >&6; }
18898
18899 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18900
18901
18902 else
18903 $as_echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908
18909
18910
18911 fi
18912 rm -Rf build
18913
18914
18915
18916
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18918 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18919
18920
18921 cat confdefs.h - <<_ACEOF >conftest.c
18922
18923
18924 #include <linux/fs.h>
18925 #include <linux/posix_acl.h>
18926
18927 int
18928 main (void)
18929 {
18930
18931 posix_acl_chmod(NULL, 0, 0)
18932
18933 ;
18934 return 0;
18935 }
18936
18937 _ACEOF
18938
18939
18940
18941 cat - <<_ACEOF >conftest.h
18942
18943 _ACEOF
18944
18945
18946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18947 echo "obj-m := conftest.o" >build/Makefile
18948 modpost_flag=''
18949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18950 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18960 test $ac_status = 0; }; }; then :
18961
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18963 $as_echo "yes" >&6; }
18964
18965 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18966
18967
18968 else
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18974
18975
18976
18977 fi
18978 rm -Rf build
18979
18980
18981
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18983 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18984
18985
18986 cat confdefs.h - <<_ACEOF >conftest.c
18987
18988
18989 #include <linux/fs.h>
18990 #include <linux/posix_acl.h>
18991
18992 int
18993 main (void)
18994 {
18995
18996 __posix_acl_chmod(NULL, 0, 0)
18997
18998 ;
18999 return 0;
19000 }
19001
19002 _ACEOF
19003
19004
19005
19006 cat - <<_ACEOF >conftest.h
19007
19008 _ACEOF
19009
19010
19011 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19012 echo "obj-m := conftest.o" >build/Makefile
19013 modpost_flag=''
19014 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19015 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025 test $ac_status = 0; }; }; then :
19026
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19029
19030 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19031
19032
19033 else
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19038 $as_echo "no" >&6; }
19039
19040
19041
19042 fi
19043 rm -Rf build
19044
19045
19046
19047
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19049 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19050
19051
19052 cat confdefs.h - <<_ACEOF >conftest.c
19053
19054
19055 #include <linux/fs.h>
19056 #include <linux/posix_acl.h>
19057
19058 int
19059 main (void)
19060 {
19061
19062 umode_t tmp;
19063 posix_acl_equiv_mode(NULL,&tmp);
19064
19065 ;
19066 return 0;
19067 }
19068
19069 _ACEOF
19070
19071
19072
19073 cat - <<_ACEOF >conftest.h
19074
19075 _ACEOF
19076
19077
19078 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19079 echo "obj-m := conftest.o" >build/Makefile
19080 modpost_flag=''
19081 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19082 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19087 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19092 test $ac_status = 0; }; }; then :
19093
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19095 $as_echo "yes" >&6; }
19096
19097 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19098
19099
19100 else
19101 $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19106
19107
19108
19109 fi
19110 rm -Rf build
19111
19112
19113
19114
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19116 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19117
19118
19119 cat confdefs.h - <<_ACEOF >conftest.c
19120
19121
19122 #include <linux/fs.h>
19123 #include <linux/posix_acl.h>
19124
19125 int
19126 main (void)
19127 {
19128
19129 struct user_namespace *user_ns = NULL;
19130 const struct posix_acl *acl = NULL;
19131 int error;
19132
19133 error = posix_acl_valid(user_ns, acl);
19134
19135 ;
19136 return 0;
19137 }
19138
19139 _ACEOF
19140
19141
19142
19143 cat - <<_ACEOF >conftest.h
19144
19145 _ACEOF
19146
19147
19148 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19149 echo "obj-m := conftest.o" >build/Makefile
19150 modpost_flag=''
19151 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19152 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; }; then :
19163
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19166
19167 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19168
19169
19170 else
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19176
19177
19178
19179 fi
19180 rm -Rf build
19181
19182
19183
19184
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19186 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19187
19188
19189 cat confdefs.h - <<_ACEOF >conftest.c
19190
19191
19192 #include <linux/fs.h>
19193
19194 int permission_fn(struct inode *inode, int mask) { return 0; }
19195
19196 static const struct inode_operations
19197 iops __attribute__ ((unused)) = {
19198 .permission = permission_fn,
19199 };
19200
19201 int
19202 main (void)
19203 {
19204
19205
19206 ;
19207 return 0;
19208 }
19209
19210 _ACEOF
19211
19212
19213
19214 cat - <<_ACEOF >conftest.h
19215
19216 _ACEOF
19217
19218
19219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19220 echo "obj-m := conftest.o" >build/Makefile
19221 modpost_flag=''
19222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19233 test $ac_status = 0; }; }; then :
19234
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236 $as_echo "yes" >&6; }
19237
19238 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19239
19240
19241 else
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19247
19248
19249
19250 fi
19251 rm -Rf build
19252
19253
19254
19255
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19257 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19258
19259
19260 cat confdefs.h - <<_ACEOF >conftest.c
19261
19262
19263 #include <linux/fs.h>
19264
19265 int permission_fn(struct inode *inode, int mask,
19266 struct nameidata *nd) { return 0; }
19267
19268 static const struct inode_operations
19269 iops __attribute__ ((unused)) = {
19270 .permission = permission_fn,
19271 };
19272
19273 int
19274 main (void)
19275 {
19276
19277
19278 ;
19279 return 0;
19280 }
19281
19282 _ACEOF
19283
19284
19285
19286 cat - <<_ACEOF >conftest.h
19287
19288 _ACEOF
19289
19290
19291 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19292 echo "obj-m := conftest.o" >build/Makefile
19293 modpost_flag=''
19294 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19295 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19300 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19305 test $ac_status = 0; }; }; then :
19306
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19309
19310 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19311
19312
19313 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19314
19315
19316 else
19317 $as_echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19322
19323
19324
19325 fi
19326 rm -Rf build
19327
19328
19329
19330
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19332 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19333
19334
19335 cat confdefs.h - <<_ACEOF >conftest.c
19336
19337
19338 #include <linux/fs.h>
19339
19340 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19341
19342 static const struct inode_operations
19343 iops __attribute__ ((unused)) = {
19344 .check_acl = check_acl_fn,
19345 };
19346
19347 int
19348 main (void)
19349 {
19350
19351
19352 ;
19353 return 0;
19354 }
19355
19356 _ACEOF
19357
19358
19359
19360 cat - <<_ACEOF >conftest.h
19361
19362 _ACEOF
19363
19364
19365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19366 echo "obj-m := conftest.o" >build/Makefile
19367 modpost_flag=''
19368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19379 test $ac_status = 0; }; }; then :
19380
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382 $as_echo "yes" >&6; }
19383
19384 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19385
19386
19387 else
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19393
19394
19395
19396 fi
19397 rm -Rf build
19398
19399
19400
19401
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19403 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19404
19405
19406 cat confdefs.h - <<_ACEOF >conftest.c
19407
19408
19409 #include <linux/fs.h>
19410
19411 int check_acl_fn(struct inode *inode, int mask,
19412 unsigned int flags) { return 0; }
19413
19414 static const struct inode_operations
19415 iops __attribute__ ((unused)) = {
19416 .check_acl = check_acl_fn,
19417 };
19418
19419 int
19420 main (void)
19421 {
19422
19423
19424 ;
19425 return 0;
19426 }
19427
19428 _ACEOF
19429
19430
19431
19432 cat - <<_ACEOF >conftest.h
19433
19434 _ACEOF
19435
19436
19437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19438 echo "obj-m := conftest.o" >build/Makefile
19439 modpost_flag=''
19440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19446 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19451 test $ac_status = 0; }; }; then :
19452
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454 $as_echo "yes" >&6; }
19455
19456 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19457
19458
19459 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19460
19461
19462 else
19463 $as_echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19468
19469
19470
19471 fi
19472 rm -Rf build
19473
19474
19475
19476
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19478 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19479
19480
19481 cat confdefs.h - <<_ACEOF >conftest.c
19482
19483
19484 #include <linux/fs.h>
19485
19486 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19487 { return NULL; }
19488
19489 static const struct inode_operations
19490 iops __attribute__ ((unused)) = {
19491 .get_acl = get_acl_fn,
19492 };
19493
19494 int
19495 main (void)
19496 {
19497
19498
19499 ;
19500 return 0;
19501 }
19502
19503 _ACEOF
19504
19505
19506
19507 cat - <<_ACEOF >conftest.h
19508
19509 _ACEOF
19510
19511
19512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19513 echo "obj-m := conftest.o" >build/Makefile
19514 modpost_flag=''
19515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19521 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19523 (eval $ac_try) 2>&5
19524 ac_status=$?
19525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19526 test $ac_status = 0; }; }; then :
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19529 $as_echo "yes" >&6; }
19530
19531 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19532
19533
19534 else
19535 $as_echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19540
19541
19542
19543 fi
19544 rm -Rf build
19545
19546
19547
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19550 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19551
19552
19553 cat confdefs.h - <<_ACEOF >conftest.c
19554
19555
19556 #include <linux/fs.h>
19557
19558 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19559 { return 0; }
19560
19561 static const struct inode_operations
19562 iops __attribute__ ((unused)) = {
19563 .set_acl = set_acl_fn,
19564 };
19565
19566 int
19567 main (void)
19568 {
19569
19570
19571 ;
19572 return 0;
19573 }
19574
19575 _ACEOF
19576
19577
19578
19579 cat - <<_ACEOF >conftest.h
19580
19581 _ACEOF
19582
19583
19584 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19585 echo "obj-m := conftest.o" >build/Makefile
19586 modpost_flag=''
19587 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19588 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19598 test $ac_status = 0; }; }; then :
19599
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19601 $as_echo "yes" >&6; }
19602
19603 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19604
19605
19606 else
19607 $as_echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611 $as_echo "no" >&6; }
19612
19613
19614
19615 fi
19616 rm -Rf build
19617
19618
19619
19620
19621
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19623 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19624
19625
19626 cat confdefs.h - <<_ACEOF >conftest.c
19627
19628
19629 #include <linux/fs.h>
19630
19631 int test_getattr(
19632 const struct path *p, struct kstat *k,
19633 u32 request_mask, unsigned int query_flags)
19634 { return 0; }
19635
19636 static const struct inode_operations
19637 iops __attribute__ ((unused)) = {
19638 .getattr = test_getattr,
19639 };
19640
19641 int
19642 main (void)
19643 {
19644
19645
19646 ;
19647 return 0;
19648 }
19649
19650 _ACEOF
19651
19652
19653
19654 cat - <<_ACEOF >conftest.h
19655
19656 _ACEOF
19657
19658
19659 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19660 echo "obj-m := conftest.o" >build/Makefile
19661 modpost_flag=''
19662 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19663 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19668 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }; }; then :
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19676 $as_echo "yes" >&6; }
19677
19678 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19679
19680
19681 else
19682 $as_echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19687
19688
19689
19690 fi
19691 rm -Rf build
19692
19693
19694
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19697 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19698
19699
19700 cat confdefs.h - <<_ACEOF >conftest.c
19701
19702
19703 #include <linux/fs.h>
19704
19705 int test_getattr(
19706 struct vfsmount *mnt, struct dentry *d,
19707 struct kstat *k)
19708 { return 0; }
19709
19710 static const struct inode_operations
19711 iops __attribute__ ((unused)) = {
19712 .getattr = test_getattr,
19713 };
19714
19715 int
19716 main (void)
19717 {
19718
19719
19720 ;
19721 return 0;
19722 }
19723
19724 _ACEOF
19725
19726
19727
19728 cat - <<_ACEOF >conftest.h
19729
19730 _ACEOF
19731
19732
19733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19734 echo "obj-m := conftest.o" >build/Makefile
19735 modpost_flag=''
19736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19737 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19747 test $ac_status = 0; }; }; then :
19748
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19750 $as_echo "yes" >&6; }
19751
19752 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19753
19754
19755 else
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19761
19762
19763
19764 fi
19765 rm -Rf build
19766
19767
19768
19769
19770
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19772 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19773
19774
19775 cat confdefs.h - <<_ACEOF >conftest.c
19776
19777
19778 #include <linux/fs.h>
19779
19780 int
19781 main (void)
19782 {
19783
19784 struct inode inode;
19785 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19786
19787 ;
19788 return 0;
19789 }
19790
19791 _ACEOF
19792
19793
19794
19795 cat - <<_ACEOF >conftest.h
19796
19797 _ACEOF
19798
19799
19800 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19801 echo "obj-m := conftest.o" >build/Makefile
19802 modpost_flag=''
19803 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19804 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19809 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19814 test $ac_status = 0; }; }; then :
19815
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 $as_echo "yes" >&6; }
19818
19819 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19820
19821
19822 else
19823 $as_echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19828
19829
19830
19831 fi
19832 rm -Rf build
19833
19834
19835
19836
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19838 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19839
19840
19841 cat confdefs.h - <<_ACEOF >conftest.c
19842
19843
19844 #include <linux/fs.h>
19845
19846 int
19847 main (void)
19848 {
19849
19850 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19851
19852 ;
19853 return 0;
19854 }
19855
19856 _ACEOF
19857
19858
19859
19860 cat - <<_ACEOF >conftest.h
19861
19862 _ACEOF
19863
19864
19865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19866 echo "obj-m := conftest.o" >build/Makefile
19867 modpost_flag=''
19868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19874 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19879 test $ac_status = 0; }; }; then :
19880
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19882 $as_echo "yes" >&6; }
19883
19884 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19885
19886
19887 else
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19892 $as_echo "no" >&6; }
19893
19894
19895
19896 fi
19897 rm -Rf build
19898
19899
19900
19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19903 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19904
19905
19906
19907 cat confdefs.h - <<_ACEOF >conftest.c
19908
19909
19910 #include <linux/fs.h>
19911
19912 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19913 static struct super_operations sops __attribute__ ((unused)) = {
19914 .show_options = show_options,
19915 };
19916
19917 int
19918 main (void)
19919 {
19920
19921
19922 ;
19923 return 0;
19924 }
19925
19926 _ACEOF
19927
19928
19929
19930 cat - <<_ACEOF >conftest.h
19931
19932 _ACEOF
19933
19934
19935 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19936 echo "obj-m := conftest.o" >build/Makefile
19937 modpost_flag=''
19938 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19939 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19944 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19949 test $ac_status = 0; }; }; then :
19950
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19952 $as_echo "yes" >&6; }
19953
19954 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19955
19956
19957 else
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19963
19964
19965
19966 fi
19967 rm -Rf build
19968
19969
19970
19971
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19973 $as_echo_n "checking whether file_inode() is available... " >&6; }
19974
19975
19976 cat confdefs.h - <<_ACEOF >conftest.c
19977
19978
19979 #include <linux/fs.h>
19980
19981 int
19982 main (void)
19983 {
19984
19985 struct file *f = NULL;
19986 file_inode(f);
19987
19988 ;
19989 return 0;
19990 }
19991
19992 _ACEOF
19993
19994
19995
19996 cat - <<_ACEOF >conftest.h
19997
19998 _ACEOF
19999
20000
20001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20002 echo "obj-m := conftest.o" >build/Makefile
20003 modpost_flag=''
20004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20005 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20015 test $ac_status = 0; }; }; then :
20016
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20018 $as_echo "yes" >&6; }
20019
20020 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20021
20022
20023 else
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029
20030
20031
20032 fi
20033 rm -Rf build
20034
20035
20036
20037
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20039 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20040
20041
20042 cat confdefs.h - <<_ACEOF >conftest.c
20043
20044
20045 #include <linux/fs.h>
20046
20047 int
20048 main (void)
20049 {
20050
20051 struct file *f = NULL;
20052 file_dentry(f);
20053
20054 ;
20055 return 0;
20056 }
20057
20058 _ACEOF
20059
20060
20061
20062 cat - <<_ACEOF >conftest.h
20063
20064 _ACEOF
20065
20066
20067 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20068 echo "obj-m := conftest.o" >build/Makefile
20069 modpost_flag=''
20070 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20071 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20076 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20081 test $ac_status = 0; }; }; then :
20082
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20085
20086 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20087
20088
20089 else
20090 $as_echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20095
20096
20097
20098 fi
20099 rm -Rf build
20100
20101
20102
20103
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20105 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20106
20107
20108
20109 cat confdefs.h - <<_ACEOF >conftest.c
20110
20111
20112 #include <linux/fs.h>
20113
20114 int test_fsync(struct file *f, struct dentry *dentry, int x)
20115 { return 0; }
20116
20117 static const struct file_operations
20118 fops __attribute__ ((unused)) = {
20119 .fsync = test_fsync,
20120 };
20121
20122 int
20123 main (void)
20124 {
20125
20126
20127 ;
20128 return 0;
20129 }
20130
20131 _ACEOF
20132
20133
20134
20135 cat - <<_ACEOF >conftest.h
20136
20137 _ACEOF
20138
20139
20140 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20141 echo "obj-m := conftest.o" >build/Makefile
20142 modpost_flag=''
20143 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20144 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20149 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154 test $ac_status = 0; }; }; then :
20155
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20157 $as_echo "dentry" >&6; }
20158
20159 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20160
20161
20162 else
20163 $as_echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166
20167
20168
20169 fi
20170 rm -Rf build
20171
20172
20173
20174
20175
20176
20177 cat confdefs.h - <<_ACEOF >conftest.c
20178
20179
20180 #include <linux/fs.h>
20181
20182 int test_fsync(struct file *f, int x) { return 0; }
20183
20184 static const struct file_operations
20185 fops __attribute__ ((unused)) = {
20186 .fsync = test_fsync,
20187 };
20188
20189 int
20190 main (void)
20191 {
20192
20193
20194 ;
20195 return 0;
20196 }
20197
20198 _ACEOF
20199
20200
20201
20202 cat - <<_ACEOF >conftest.h
20203
20204 _ACEOF
20205
20206
20207 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20208 echo "obj-m := conftest.o" >build/Makefile
20209 modpost_flag=''
20210 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20211 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20216 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; }; then :
20222
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20224 $as_echo "no dentry" >&6; }
20225
20226 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20227
20228
20229 else
20230 $as_echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233
20234
20235
20236 fi
20237 rm -Rf build
20238
20239
20240
20241
20242
20243
20244 cat confdefs.h - <<_ACEOF >conftest.c
20245
20246
20247 #include <linux/fs.h>
20248
20249 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20250 { return 0; }
20251
20252 static const struct file_operations
20253 fops __attribute__ ((unused)) = {
20254 .fsync = test_fsync,
20255 };
20256
20257 int
20258 main (void)
20259 {
20260
20261
20262 ;
20263 return 0;
20264 }
20265
20266 _ACEOF
20267
20268
20269
20270 cat - <<_ACEOF >conftest.h
20271
20272 _ACEOF
20273
20274
20275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20276 echo "obj-m := conftest.o" >build/Makefile
20277 modpost_flag=''
20278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20279 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20284 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20286 (eval $ac_try) 2>&5
20287 ac_status=$?
20288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20289 test $ac_status = 0; }; }; then :
20290
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20292 $as_echo "range" >&6; }
20293
20294 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20295
20296
20297 else
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301
20302
20303
20304 fi
20305 rm -Rf build
20306
20307
20308
20309
20310
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20312 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20313
20314
20315 cat confdefs.h - <<_ACEOF >conftest.c
20316
20317
20318 #include <linux/fs.h>
20319 void evict_inode (struct inode * t) { return; }
20320 static struct super_operations sops __attribute__ ((unused)) = {
20321 .evict_inode = evict_inode,
20322 };
20323
20324 int
20325 main (void)
20326 {
20327
20328
20329 ;
20330 return 0;
20331 }
20332
20333 _ACEOF
20334
20335
20336
20337 cat - <<_ACEOF >conftest.h
20338
20339 _ACEOF
20340
20341
20342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20343 echo "obj-m := conftest.o" >build/Makefile
20344 modpost_flag=''
20345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20346 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20351 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }; }; then :
20357
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359 $as_echo "yes" >&6; }
20360
20361 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20362
20363
20364 else
20365 $as_echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20369 $as_echo "no" >&6; }
20370
20371
20372
20373 fi
20374 rm -Rf build
20375
20376
20377
20378
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20380 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20381
20382
20383 cat confdefs.h - <<_ACEOF >conftest.c
20384
20385
20386 #include <linux/fs.h>
20387
20388 void dirty_inode(struct inode *a, int b) { return; }
20389
20390 static const struct super_operations
20391 sops __attribute__ ((unused)) = {
20392 .dirty_inode = dirty_inode,
20393 };
20394
20395 int
20396 main (void)
20397 {
20398
20399
20400 ;
20401 return 0;
20402 }
20403
20404 _ACEOF
20405
20406
20407
20408 cat - <<_ACEOF >conftest.h
20409
20410 _ACEOF
20411
20412
20413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20414 echo "obj-m := conftest.o" >build/Makefile
20415 modpost_flag=''
20416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427 test $ac_status = 0; }; }; then :
20428
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20430 $as_echo "yes" >&6; }
20431
20432 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20433
20434
20435 else
20436 $as_echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 $as_echo "no" >&6; }
20441
20442
20443
20444 fi
20445 rm -Rf build
20446
20447
20448
20449
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20451 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20452
20453
20454 cat confdefs.h - <<_ACEOF >conftest.c
20455
20456
20457 #include <linux/fs.h>
20458
20459 int nr_cached_objects(struct super_block *sb) { return 0; }
20460
20461 static const struct super_operations
20462 sops __attribute__ ((unused)) = {
20463 .nr_cached_objects = nr_cached_objects,
20464 };
20465
20466 int
20467 main (void)
20468 {
20469
20470
20471 ;
20472 return 0;
20473 }
20474
20475 _ACEOF
20476
20477
20478
20479 cat - <<_ACEOF >conftest.h
20480
20481 _ACEOF
20482
20483
20484 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20485 echo "obj-m := conftest.o" >build/Makefile
20486 modpost_flag=''
20487 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20488 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20498 test $ac_status = 0; }; }; then :
20499
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20501 $as_echo "yes" >&6; }
20502
20503 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20504
20505
20506 else
20507 $as_echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 $as_echo "no" >&6; }
20512
20513
20514
20515 fi
20516 rm -Rf build
20517
20518
20519
20520
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20522 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20523
20524
20525 cat confdefs.h - <<_ACEOF >conftest.c
20526
20527
20528 #include <linux/fs.h>
20529
20530 void free_cached_objects(struct super_block *sb, int x)
20531 { return; }
20532
20533 static const struct super_operations
20534 sops __attribute__ ((unused)) = {
20535 .free_cached_objects = free_cached_objects,
20536 };
20537
20538 int
20539 main (void)
20540 {
20541
20542
20543 ;
20544 return 0;
20545 }
20546
20547 _ACEOF
20548
20549
20550
20551 cat - <<_ACEOF >conftest.h
20552
20553 _ACEOF
20554
20555
20556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20557 echo "obj-m := conftest.o" >build/Makefile
20558 modpost_flag=''
20559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20560 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20565 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20570 test $ac_status = 0; }; }; then :
20571
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 $as_echo "yes" >&6; }
20574
20575 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20576
20577
20578 else
20579 $as_echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20583 $as_echo "no" >&6; }
20584
20585
20586
20587 fi
20588 rm -Rf build
20589
20590
20591
20592
20593
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20596
20597
20598 cat confdefs.h - <<_ACEOF >conftest.c
20599
20600
20601 #include <linux/fs.h>
20602
20603 long test_fallocate(struct file *file, int mode,
20604 loff_t offset, loff_t len) { return 0; }
20605
20606 static const struct file_operations
20607 fops __attribute__ ((unused)) = {
20608 .fallocate = test_fallocate,
20609 };
20610
20611 int
20612 main (void)
20613 {
20614
20615
20616 ;
20617 return 0;
20618 }
20619
20620 _ACEOF
20621
20622
20623
20624 cat - <<_ACEOF >conftest.h
20625
20626 _ACEOF
20627
20628
20629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20630 echo "obj-m := conftest.o" >build/Makefile
20631 modpost_flag=''
20632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20633 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20638 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20643 test $ac_status = 0; }; }; then :
20644
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20646 $as_echo "yes" >&6; }
20647
20648 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20649
20650
20651 else
20652 $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656 $as_echo "no" >&6; }
20657
20658
20659
20660 fi
20661 rm -Rf build
20662
20663
20664
20665
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20667 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20668
20669
20670 cat confdefs.h - <<_ACEOF >conftest.c
20671
20672
20673 #include <linux/fs.h>
20674
20675 long test_fallocate(struct inode *inode, int mode,
20676 loff_t offset, loff_t len) { return 0; }
20677
20678 static const struct inode_operations
20679 fops __attribute__ ((unused)) = {
20680 .fallocate = test_fallocate,
20681 };
20682
20683 int
20684 main (void)
20685 {
20686
20687
20688 ;
20689 return 0;
20690 }
20691
20692 _ACEOF
20693
20694
20695
20696 cat - <<_ACEOF >conftest.h
20697
20698 _ACEOF
20699
20700
20701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20702 echo "obj-m := conftest.o" >build/Makefile
20703 modpost_flag=''
20704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20715 test $ac_status = 0; }; }; then :
20716
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20718 $as_echo "yes" >&6; }
20719
20720 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20721
20722
20723 else
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20728 $as_echo "no" >&6; }
20729
20730
20731
20732 fi
20733 rm -Rf build
20734
20735
20736
20737
20738
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20740 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20741
20742
20743 cat confdefs.h - <<_ACEOF >conftest.c
20744
20745
20746 #include <linux/fs.h>
20747
20748 static const struct file_operations
20749 fops __attribute__ ((unused)) = {
20750 .aio_fsync = NULL,
20751 };
20752
20753 int
20754 main (void)
20755 {
20756
20757
20758 ;
20759 return 0;
20760 }
20761
20762 _ACEOF
20763
20764
20765
20766 cat - <<_ACEOF >conftest.h
20767
20768 _ACEOF
20769
20770
20771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20772 echo "obj-m := conftest.o" >build/Makefile
20773 modpost_flag=''
20774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20775 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20785 test $ac_status = 0; }; }; then :
20786
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20788 $as_echo "yes" >&6; }
20789
20790 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20791
20792
20793 else
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20798 $as_echo "no" >&6; }
20799
20800
20801
20802 fi
20803 rm -Rf build
20804
20805
20806
20807
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20809 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20810
20811
20812 cat confdefs.h - <<_ACEOF >conftest.c
20813
20814
20815 #include <linux/fs.h>
20816
20817 int mkdir(struct inode *inode, struct dentry *dentry,
20818 umode_t umode) { return 0; }
20819
20820 static const struct inode_operations
20821 iops __attribute__ ((unused)) = {
20822 .mkdir = mkdir,
20823 };
20824
20825 int
20826 main (void)
20827 {
20828
20829
20830 ;
20831 return 0;
20832 }
20833
20834 _ACEOF
20835
20836
20837
20838 cat - <<_ACEOF >conftest.h
20839
20840 _ACEOF
20841
20842
20843 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20844 echo "obj-m := conftest.o" >build/Makefile
20845 modpost_flag=''
20846 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20847 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20852 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; }; }; then :
20858
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20860 $as_echo "yes" >&6; }
20861
20862 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20863
20864
20865 else
20866 $as_echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20871
20872
20873
20874 fi
20875 rm -Rf build
20876
20877
20878
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20881 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20882
20883
20884 cat confdefs.h - <<_ACEOF >conftest.c
20885
20886
20887 #include <linux/fs.h>
20888
20889 struct dentry *inode_lookup(struct inode *inode,
20890 struct dentry *dentry, struct nameidata *nidata)
20891 { return NULL; }
20892
20893 static const struct inode_operations iops
20894 __attribute__ ((unused)) = {
20895 .lookup = inode_lookup,
20896 };
20897
20898 int
20899 main (void)
20900 {
20901
20902
20903 ;
20904 return 0;
20905 }
20906
20907 _ACEOF
20908
20909
20910
20911 cat - <<_ACEOF >conftest.h
20912
20913 _ACEOF
20914
20915
20916 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20917 echo "obj-m := conftest.o" >build/Makefile
20918 modpost_flag=''
20919 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20920 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20922 (eval $ac_try) 2>&5
20923 ac_status=$?
20924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20930 test $ac_status = 0; }; }; then :
20931
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20933 $as_echo "yes" >&6; }
20934
20935 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20936
20937
20938 else
20939 $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20944
20945
20946
20947 fi
20948 rm -Rf build
20949
20950
20951
20952
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20954 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20955
20956
20957 cat confdefs.h - <<_ACEOF >conftest.c
20958
20959
20960 #include <linux/fs.h>
20961
20962 #ifdef HAVE_MKDIR_UMODE_T
20963 int inode_create(struct inode *inode ,struct dentry *dentry,
20964 umode_t umode, struct nameidata *nidata) { return 0; }
20965 #else
20966 int inode_create(struct inode *inode,struct dentry *dentry,
20967 int umode, struct nameidata * nidata) { return 0; }
20968 #endif
20969
20970 static const struct inode_operations
20971 iops __attribute__ ((unused)) = {
20972 .create = inode_create,
20973 };
20974
20975 int
20976 main (void)
20977 {
20978
20979
20980 ;
20981 return 0;
20982 }
20983
20984 _ACEOF
20985
20986
20987
20988 cat - <<_ACEOF >conftest.h
20989
20990 _ACEOF
20991
20992
20993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20994 echo "obj-m := conftest.o" >build/Makefile
20995 modpost_flag=''
20996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21007 test $ac_status = 0; }; }; then :
21008
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21010 $as_echo "yes" >&6; }
21011
21012 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21013
21014
21015 else
21016 $as_echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020 $as_echo "no" >&6; }
21021
21022
21023
21024 fi
21025 rm -Rf build
21026
21027
21028
21029
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21031 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21032
21033
21034 cat confdefs.h - <<_ACEOF >conftest.c
21035
21036
21037 #include <linux/fs.h>
21038 const char *get_link(struct dentry *de, struct inode *ip,
21039 struct delayed_call *done) { return "symlink"; }
21040 static struct inode_operations
21041 iops __attribute__ ((unused)) = {
21042 .get_link = get_link,
21043 };
21044
21045 int
21046 main (void)
21047 {
21048
21049
21050 ;
21051 return 0;
21052 }
21053
21054 _ACEOF
21055
21056
21057
21058 cat - <<_ACEOF >conftest.h
21059
21060 _ACEOF
21061
21062
21063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21064 echo "obj-m := conftest.o" >build/Makefile
21065 modpost_flag=''
21066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21072 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; }; then :
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21080 $as_echo "yes" >&6; }
21081
21082 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21083
21084
21085 else
21086 $as_echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090 $as_echo "no" >&6; }
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21092 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21093
21094
21095 cat confdefs.h - <<_ACEOF >conftest.c
21096
21097
21098 #include <linux/fs.h>
21099 const char *get_link(struct dentry *de, struct
21100 inode *ip, void **cookie) { return "symlink"; }
21101 static struct inode_operations
21102 iops __attribute__ ((unused)) = {
21103 .get_link = get_link,
21104 };
21105
21106 int
21107 main (void)
21108 {
21109
21110
21111 ;
21112 return 0;
21113 }
21114
21115 _ACEOF
21116
21117
21118
21119 cat - <<_ACEOF >conftest.h
21120
21121 _ACEOF
21122
21123
21124 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21125 echo "obj-m := conftest.o" >build/Makefile
21126 modpost_flag=''
21127 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21128 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21133 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138 test $ac_status = 0; }; }; then :
21139
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21141 $as_echo "yes" >&6; }
21142
21143 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21144
21145
21146 else
21147 $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21152
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21154 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21155
21156
21157 cat confdefs.h - <<_ACEOF >conftest.c
21158
21159
21160 #include <linux/fs.h>
21161 const char *follow_link(struct dentry *de,
21162 void **cookie) { return "symlink"; }
21163 static struct inode_operations
21164 iops __attribute__ ((unused)) = {
21165 .follow_link = follow_link,
21166 };
21167
21168 int
21169 main (void)
21170 {
21171
21172
21173 ;
21174 return 0;
21175 }
21176
21177 _ACEOF
21178
21179
21180
21181 cat - <<_ACEOF >conftest.h
21182
21183 _ACEOF
21184
21185
21186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21187 echo "obj-m := conftest.o" >build/Makefile
21188 modpost_flag=''
21189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21195 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21200 test $ac_status = 0; }; }; then :
21201
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203 $as_echo "yes" >&6; }
21204
21205 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21206
21207
21208 else
21209 $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21215 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21216
21217
21218 cat confdefs.h - <<_ACEOF >conftest.c
21219
21220
21221 #include <linux/fs.h>
21222 void *follow_link(struct dentry *de, struct
21223 nameidata *nd) { return (void *)NULL; }
21224 static struct inode_operations
21225 iops __attribute__ ((unused)) = {
21226 .follow_link = follow_link,
21227 };
21228
21229 int
21230 main (void)
21231 {
21232
21233
21234 ;
21235 return 0;
21236 }
21237
21238 _ACEOF
21239
21240
21241
21242 cat - <<_ACEOF >conftest.h
21243
21244 _ACEOF
21245
21246
21247 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21248 echo "obj-m := conftest.o" >build/Makefile
21249 modpost_flag=''
21250 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21251 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21261 test $ac_status = 0; }; }; then :
21262
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21264 $as_echo "yes" >&6; }
21265
21266 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21267
21268
21269 else
21270 $as_echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 as_fn_error $? "no; please file a bug report" "$LINENO" 5
21274
21275
21276
21277 fi
21278 rm -Rf build
21279
21280
21281
21282
21283
21284 fi
21285 rm -Rf build
21286
21287
21288
21289
21290
21291
21292 fi
21293 rm -Rf build
21294
21295
21296
21297
21298
21299 fi
21300 rm -Rf build
21301
21302
21303
21304
21305
21306
21307 cat confdefs.h - <<_ACEOF >conftest.c
21308
21309
21310 #if !defined(HAVE_GET_LINK_DELAYED)
21311 #error "Expecting get_link() delayed done"
21312 #endif
21313
21314 int
21315 main (void)
21316 {
21317
21318
21319 ;
21320 return 0;
21321 }
21322
21323 _ACEOF
21324
21325
21326
21327 cat - <<_ACEOF >conftest.h
21328
21329 _ACEOF
21330
21331
21332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21333 echo "obj-m := conftest.o" >build/Makefile
21334 modpost_flag=''
21335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21336 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21346 test $ac_status = 0; }; }; then :
21347
21348
21349 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21350
21351
21352 else
21353 $as_echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21357 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21358
21359
21360 cat confdefs.h - <<_ACEOF >conftest.c
21361
21362
21363 #include <linux/fs.h>
21364 void put_link(struct inode *ip, void *cookie)
21365 { return; }
21366 static struct inode_operations
21367 iops __attribute__ ((unused)) = {
21368 .put_link = put_link,
21369 };
21370
21371 int
21372 main (void)
21373 {
21374
21375
21376 ;
21377 return 0;
21378 }
21379
21380 _ACEOF
21381
21382
21383
21384 cat - <<_ACEOF >conftest.h
21385
21386 _ACEOF
21387
21388
21389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21390 echo "obj-m := conftest.o" >build/Makefile
21391 modpost_flag=''
21392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21393 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21398 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403 test $ac_status = 0; }; }; then :
21404
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21406 $as_echo "yes" >&6; }
21407
21408 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21409
21410
21411 else
21412 $as_echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21414
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21418 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21419
21420
21421 cat confdefs.h - <<_ACEOF >conftest.c
21422
21423
21424 #include <linux/fs.h>
21425 void put_link(struct dentry *de, struct
21426 nameidata *nd, void *ptr) { return; }
21427 static struct inode_operations
21428 iops __attribute__ ((unused)) = {
21429 .put_link = put_link,
21430 };
21431
21432 int
21433 main (void)
21434 {
21435
21436
21437 ;
21438 return 0;
21439 }
21440
21441 _ACEOF
21442
21443
21444
21445 cat - <<_ACEOF >conftest.h
21446
21447 _ACEOF
21448
21449
21450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21451 echo "obj-m := conftest.o" >build/Makefile
21452 modpost_flag=''
21453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21454 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21464 test $ac_status = 0; }; }; then :
21465
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21467 $as_echo "yes" >&6; }
21468
21469 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21470
21471
21472 else
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476 as_fn_error $? "no; please file a bug report" "$LINENO" 5
21477
21478
21479
21480 fi
21481 rm -Rf build
21482
21483
21484
21485
21486
21487 fi
21488 rm -Rf build
21489
21490
21491
21492
21493
21494 fi
21495 rm -Rf build
21496
21497
21498
21499
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21501 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
21502
21503
21504 cat confdefs.h - <<_ACEOF >conftest.c
21505
21506
21507 #include <linux/fs.h>
21508 int tmpfile(struct inode *inode, struct dentry *dentry,
21509 umode_t mode) { return 0; }
21510 static struct inode_operations
21511 iops __attribute__ ((unused)) = {
21512 .tmpfile = tmpfile,
21513 };
21514
21515 int
21516 main (void)
21517 {
21518
21519
21520 ;
21521 return 0;
21522 }
21523
21524 _ACEOF
21525
21526
21527
21528 cat - <<_ACEOF >conftest.h
21529
21530 _ACEOF
21531
21532
21533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21534 echo "obj-m := conftest.o" >build/Makefile
21535 modpost_flag=''
21536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21537 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21547 test $ac_status = 0; }; }; then :
21548
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21550 $as_echo "yes" >&6; }
21551
21552 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
21553
21554
21555 else
21556 $as_echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560 $as_echo "no" >&6; }
21561
21562
21563
21564 fi
21565 rm -Rf build
21566
21567
21568
21569
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21571 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21572
21573
21574 cat confdefs.h - <<_ACEOF >conftest.c
21575
21576
21577 #include <linux/fs.h>
21578 void truncate_range(struct inode *inode, loff_t start,
21579 loff_t end) { return; }
21580 static struct inode_operations iops __attribute__ ((unused)) = {
21581 .truncate_range = truncate_range,
21582 };
21583
21584 int
21585 main (void)
21586 {
21587
21588
21589 ;
21590 return 0;
21591 }
21592
21593 _ACEOF
21594
21595
21596
21597 cat - <<_ACEOF >conftest.h
21598
21599 _ACEOF
21600
21601
21602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21603 echo "obj-m := conftest.o" >build/Makefile
21604 modpost_flag=''
21605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21606 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21611 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }; then :
21617
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21619 $as_echo "yes" >&6; }
21620
21621 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21622
21623
21624 else
21625 $as_echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21629 $as_echo "no" >&6; }
21630
21631
21632
21633 fi
21634 rm -Rf build
21635
21636
21637
21638
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21640 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21641
21642
21643 cat confdefs.h - <<_ACEOF >conftest.c
21644
21645
21646 #include <linux/dcache.h>
21647 struct vfsmount *d_automount(struct path *p) { return NULL; }
21648 struct dentry_operations dops __attribute__ ((unused)) = {
21649 .d_automount = d_automount,
21650 };
21651
21652 int
21653 main (void)
21654 {
21655
21656
21657 ;
21658 return 0;
21659 }
21660
21661 _ACEOF
21662
21663
21664
21665 cat - <<_ACEOF >conftest.h
21666
21667 _ACEOF
21668
21669
21670 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21671 echo "obj-m := conftest.o" >build/Makefile
21672 modpost_flag=''
21673 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21674 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21679 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21684 test $ac_status = 0; }; }; then :
21685
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21687 $as_echo "yes" >&6; }
21688
21689 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21690
21691
21692 else
21693 $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698
21699
21700
21701 fi
21702 rm -Rf build
21703
21704
21705
21706
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21708 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21709
21710
21711 cat confdefs.h - <<_ACEOF >conftest.c
21712
21713
21714 #include <linux/exportfs.h>
21715 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21716 struct inode *parent) { return 0; }
21717 static struct export_operations eops __attribute__ ((unused))={
21718 .encode_fh = encode_fh,
21719 };
21720
21721 int
21722 main (void)
21723 {
21724
21725
21726 ;
21727 return 0;
21728 }
21729
21730 _ACEOF
21731
21732
21733
21734 cat - <<_ACEOF >conftest.h
21735
21736 _ACEOF
21737
21738
21739 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21740 echo "obj-m := conftest.o" >build/Makefile
21741 modpost_flag=''
21742 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21743 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21753 test $ac_status = 0; }; }; then :
21754
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21756 $as_echo "yes" >&6; }
21757
21758 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21759
21760
21761 else
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21767
21768
21769
21770 fi
21771 rm -Rf build
21772
21773
21774
21775
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21777 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21778
21779
21780 cat confdefs.h - <<_ACEOF >conftest.c
21781
21782
21783 #include <linux/exportfs.h>
21784 int commit_metadata(struct inode *inode) { return 0; }
21785 static struct export_operations eops __attribute__ ((unused))={
21786 .commit_metadata = commit_metadata,
21787 };
21788
21789 int
21790 main (void)
21791 {
21792
21793
21794 ;
21795 return 0;
21796 }
21797
21798 _ACEOF
21799
21800
21801
21802 cat - <<_ACEOF >conftest.h
21803
21804 _ACEOF
21805
21806
21807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21808 echo "obj-m := conftest.o" >build/Makefile
21809 modpost_flag=''
21810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21816 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21821 test $ac_status = 0; }; }; then :
21822
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21825
21826 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21827
21828
21829 else
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835
21836
21837
21838 fi
21839 rm -Rf build
21840
21841
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21844 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21845
21846
21847
21848 cat confdefs.h - <<_ACEOF >conftest.c
21849
21850
21851 #include <linux/fs.h>
21852
21853 int
21854 main (void)
21855 {
21856
21857 clear_inode(NULL);
21858
21859 ;
21860 return 0;
21861 }
21862
21863 _ACEOF
21864
21865
21866
21867 cat - <<_ACEOF >conftest.h
21868
21869 _ACEOF
21870
21871
21872 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21873 echo "obj-m := conftest.o" >build/Makefile
21874 modpost_flag=''
21875 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21876 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21883 (eval $ac_try) 2>&5
21884 ac_status=$?
21885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21886 test $ac_status = 0; }; }; then :
21887 rc=0
21888 else
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891 rc=1
21892
21893
21894 fi
21895 rm -Rf build
21896
21897
21898 if test $rc -ne 0; then :
21899
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21902
21903 else
21904 if test "x$enable_linux_builtin" != xyes; then
21905
21906 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21907 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21908 rc=$?
21909 if test $rc -ne 0; then
21910 export=0
21911 for file in fs/inode.c; do
21912 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21913 "$LINUX/$file" 2>/dev/null
21914 rc=$?
21915 if test $rc -eq 0; then
21916 export=1
21917 break;
21918 fi
21919 done
21920 if test $export -eq 0; then :
21921 rc=1
21922 else :
21923 rc=0
21924 fi
21925 else :
21926 rc=0
21927 fi
21928
21929 fi
21930 if test $rc -ne 0; then :
21931
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934
21935 else :
21936
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21939
21940 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21941
21942
21943 fi
21944 fi
21945
21946
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21948 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21949
21950
21951
21952 cat confdefs.h - <<_ACEOF >conftest.c
21953
21954
21955 #include <linux/fs.h>
21956
21957 int
21958 main (void)
21959 {
21960
21961 struct dentry *dentry = NULL;
21962 struct iattr *attr = NULL;
21963 int error;
21964
21965 error = setattr_prepare(dentry, attr);
21966
21967 ;
21968 return 0;
21969 }
21970
21971 _ACEOF
21972
21973
21974
21975 cat - <<_ACEOF >conftest.h
21976
21977 _ACEOF
21978
21979
21980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21981 echo "obj-m := conftest.o" >build/Makefile
21982 modpost_flag=''
21983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }; then :
21995 rc=0
21996 else
21997 $as_echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999 rc=1
22000
22001
22002 fi
22003 rm -Rf build
22004
22005
22006 if test $rc -ne 0; then :
22007
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22010
22011 else
22012 if test "x$enable_linux_builtin" != xyes; then
22013
22014 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22015 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22016 rc=$?
22017 if test $rc -ne 0; then
22018 export=0
22019 for file in fs/attr.c; do
22020 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22021 "$LINUX/$file" 2>/dev/null
22022 rc=$?
22023 if test $rc -eq 0; then
22024 export=1
22025 break;
22026 fi
22027 done
22028 if test $export -eq 0; then :
22029 rc=1
22030 else :
22031 rc=0
22032 fi
22033 else :
22034 rc=0
22035 fi
22036
22037 fi
22038 if test $rc -ne 0; then :
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22042
22043 else :
22044
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22046 $as_echo "yes" >&6; }
22047
22048 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
22049
22050
22051 fi
22052 fi
22053
22054
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22056 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22057
22058
22059
22060 cat confdefs.h - <<_ACEOF >conftest.c
22061
22062
22063 #include <linux/fs.h>
22064
22065 int
22066 main (void)
22067 {
22068
22069 insert_inode_locked(NULL);
22070
22071 ;
22072 return 0;
22073 }
22074
22075 _ACEOF
22076
22077
22078
22079 cat - <<_ACEOF >conftest.h
22080
22081 _ACEOF
22082
22083
22084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22085 echo "obj-m := conftest.o" >build/Makefile
22086 modpost_flag=''
22087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22093 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098 test $ac_status = 0; }; }; then :
22099 rc=0
22100 else
22101 $as_echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103 rc=1
22104
22105
22106 fi
22107 rm -Rf build
22108
22109
22110 if test $rc -ne 0; then :
22111
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22114
22115 else
22116 if test "x$enable_linux_builtin" != xyes; then
22117
22118 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22119 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22120 rc=$?
22121 if test $rc -ne 0; then
22122 export=0
22123 for file in fs/inode.c; do
22124 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22125 "$LINUX/$file" 2>/dev/null
22126 rc=$?
22127 if test $rc -eq 0; then
22128 export=1
22129 break;
22130 fi
22131 done
22132 if test $export -eq 0; then :
22133 rc=1
22134 else :
22135 rc=0
22136 fi
22137 else :
22138 rc=0
22139 fi
22140
22141 fi
22142 if test $rc -ne 0; then :
22143
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22145 $as_echo "no" >&6; }
22146
22147 else :
22148
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22150 $as_echo "yes" >&6; }
22151
22152 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22153
22154
22155 fi
22156 fi
22157
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22160 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22161
22162
22163
22164 cat confdefs.h - <<_ACEOF >conftest.c
22165
22166
22167 #include <linux/dcache.h>
22168
22169 int
22170 main (void)
22171 {
22172
22173 d_make_root(NULL);
22174
22175 ;
22176 return 0;
22177 }
22178
22179 _ACEOF
22180
22181
22182
22183 cat - <<_ACEOF >conftest.h
22184
22185 _ACEOF
22186
22187
22188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22189 echo "obj-m := conftest.o" >build/Makefile
22190 modpost_flag=''
22191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22192 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22197 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22199 (eval $ac_try) 2>&5
22200 ac_status=$?
22201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22202 test $ac_status = 0; }; }; then :
22203 rc=0
22204 else
22205 $as_echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22207 rc=1
22208
22209
22210 fi
22211 rm -Rf build
22212
22213
22214 if test $rc -ne 0; then :
22215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217 $as_echo "no" >&6; }
22218
22219 else
22220 if test "x$enable_linux_builtin" != xyes; then
22221
22222 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22223 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22224 rc=$?
22225 if test $rc -ne 0; then
22226 export=0
22227 for file in fs/dcache.c; do
22228 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22229 "$LINUX/$file" 2>/dev/null
22230 rc=$?
22231 if test $rc -eq 0; then
22232 export=1
22233 break;
22234 fi
22235 done
22236 if test $export -eq 0; then :
22237 rc=1
22238 else :
22239 rc=0
22240 fi
22241 else :
22242 rc=0
22243 fi
22244
22245 fi
22246 if test $rc -ne 0; then :
22247
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22249 $as_echo "no" >&6; }
22250
22251 else :
22252
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22254 $as_echo "yes" >&6; }
22255
22256 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22257
22258
22259 fi
22260 fi
22261
22262
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22264 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22265
22266
22267
22268 cat confdefs.h - <<_ACEOF >conftest.c
22269
22270
22271 #include <linux/dcache.h>
22272
22273 int
22274 main (void)
22275 {
22276
22277 d_obtain_alias(NULL);
22278
22279 ;
22280 return 0;
22281 }
22282
22283 _ACEOF
22284
22285
22286
22287 cat - <<_ACEOF >conftest.h
22288
22289 _ACEOF
22290
22291
22292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22293 echo "obj-m := conftest.o" >build/Makefile
22294 modpost_flag=''
22295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22296 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22301 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22303 (eval $ac_try) 2>&5
22304 ac_status=$?
22305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22306 test $ac_status = 0; }; }; then :
22307 rc=0
22308 else
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311 rc=1
22312
22313
22314 fi
22315 rm -Rf build
22316
22317
22318 if test $rc -ne 0; then :
22319
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22321 $as_echo "no" >&6; }
22322
22323 else
22324 if test "x$enable_linux_builtin" != xyes; then
22325
22326 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22328 rc=$?
22329 if test $rc -ne 0; then
22330 export=0
22331 for file in fs/dcache.c; do
22332 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22333 "$LINUX/$file" 2>/dev/null
22334 rc=$?
22335 if test $rc -eq 0; then
22336 export=1
22337 break;
22338 fi
22339 done
22340 if test $export -eq 0; then :
22341 rc=1
22342 else :
22343 rc=0
22344 fi
22345 else :
22346 rc=0
22347 fi
22348
22349 fi
22350 if test $rc -ne 0; then :
22351
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 $as_echo "no" >&6; }
22354
22355 else :
22356
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22358 $as_echo "yes" >&6; }
22359
22360 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22361
22362
22363 fi
22364 fi
22365
22366
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22368 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22369
22370
22371
22372 cat confdefs.h - <<_ACEOF >conftest.c
22373
22374
22375 #include <linux/dcache.h>
22376
22377 int
22378 main (void)
22379 {
22380
22381 struct inode *ip = NULL;
22382 d_prune_aliases(ip);
22383
22384 ;
22385 return 0;
22386 }
22387
22388 _ACEOF
22389
22390
22391
22392 cat - <<_ACEOF >conftest.h
22393
22394 _ACEOF
22395
22396
22397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22398 echo "obj-m := conftest.o" >build/Makefile
22399 modpost_flag=''
22400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22411 test $ac_status = 0; }; }; then :
22412 rc=0
22413 else
22414 $as_echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416 rc=1
22417
22418
22419 fi
22420 rm -Rf build
22421
22422
22423 if test $rc -ne 0; then :
22424
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427
22428 else
22429 if test "x$enable_linux_builtin" != xyes; then
22430
22431 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22433 rc=$?
22434 if test $rc -ne 0; then
22435 export=0
22436 for file in fs/dcache.c; do
22437 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22438 "$LINUX/$file" 2>/dev/null
22439 rc=$?
22440 if test $rc -eq 0; then
22441 export=1
22442 break;
22443 fi
22444 done
22445 if test $export -eq 0; then :
22446 rc=1
22447 else :
22448 rc=0
22449 fi
22450 else :
22451 rc=0
22452 fi
22453
22454 fi
22455 if test $rc -ne 0; then :
22456
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22459
22460 else :
22461
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463 $as_echo "yes" >&6; }
22464
22465 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22466
22467
22468 fi
22469 fi
22470
22471
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22473 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22474
22475
22476
22477 cat confdefs.h - <<_ACEOF >conftest.c
22478
22479
22480 #include <linux/dcache.h>
22481
22482 int
22483 main (void)
22484 {
22485
22486 d_set_d_op(NULL, NULL);
22487
22488 ;
22489 return 0;
22490 }
22491
22492 _ACEOF
22493
22494
22495
22496 cat - <<_ACEOF >conftest.h
22497
22498 _ACEOF
22499
22500
22501 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22502 echo "obj-m := conftest.o" >build/Makefile
22503 modpost_flag=''
22504 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22505 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22507 (eval $ac_try) 2>&5
22508 ac_status=$?
22509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22510 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22515 test $ac_status = 0; }; }; then :
22516 rc=0
22517 else
22518 $as_echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520 rc=1
22521
22522
22523 fi
22524 rm -Rf build
22525
22526
22527 if test $rc -ne 0; then :
22528
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22531
22532 else
22533 if test "x$enable_linux_builtin" != xyes; then
22534
22535 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22536 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22537 rc=$?
22538 if test $rc -ne 0; then
22539 export=0
22540 for file in fs/dcache.c; do
22541 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22542 "$LINUX/$file" 2>/dev/null
22543 rc=$?
22544 if test $rc -eq 0; then
22545 export=1
22546 break;
22547 fi
22548 done
22549 if test $export -eq 0; then :
22550 rc=1
22551 else :
22552 rc=0
22553 fi
22554 else :
22555 rc=0
22556 fi
22557
22558 fi
22559 if test $rc -ne 0; then :
22560
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22562 $as_echo "no" >&6; }
22563
22564 else :
22565
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22567 $as_echo "yes" >&6; }
22568
22569 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22570
22571
22572 fi
22573 fi
22574
22575
22576
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22578 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22579
22580
22581 cat confdefs.h - <<_ACEOF >conftest.c
22582
22583
22584 #include <linux/dcache.h>
22585
22586 int revalidate (struct dentry *dentry,
22587 struct nameidata *nidata) { return 0; }
22588
22589 static const struct dentry_operations
22590 dops __attribute__ ((unused)) = {
22591 .d_revalidate = revalidate,
22592 };
22593
22594 int
22595 main (void)
22596 {
22597
22598
22599 ;
22600 return 0;
22601 }
22602
22603 _ACEOF
22604
22605
22606
22607 cat - <<_ACEOF >conftest.h
22608
22609 _ACEOF
22610
22611
22612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22613 echo "obj-m := conftest.o" >build/Makefile
22614 modpost_flag=''
22615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }; then :
22627
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22629 $as_echo "yes" >&6; }
22630
22631 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22632
22633
22634 else
22635 $as_echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22640
22641
22642
22643 fi
22644 rm -Rf build
22645
22646
22647
22648
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22650 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22651
22652
22653 cat confdefs.h - <<_ACEOF >conftest.c
22654
22655
22656 #include <linux/dcache.h>
22657
22658 const struct dentry_operations test_d_op = {
22659 .d_revalidate = NULL,
22660 };
22661
22662 int
22663 main (void)
22664 {
22665
22666 struct dentry d __attribute__ ((unused));
22667
22668 d.d_op = &test_d_op;
22669
22670 ;
22671 return 0;
22672 }
22673
22674 _ACEOF
22675
22676
22677
22678 cat - <<_ACEOF >conftest.h
22679
22680 _ACEOF
22681
22682
22683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22684 echo "obj-m := conftest.o" >build/Makefile
22685 modpost_flag=''
22686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22697 test $ac_status = 0; }; }; then :
22698
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22700 $as_echo "yes" >&6; }
22701
22702 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22703
22704
22705 else
22706 $as_echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22708
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22710 $as_echo "no" >&6; }
22711
22712
22713
22714 fi
22715 rm -Rf build
22716
22717
22718
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22720 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22721
22722
22723
22724 cat confdefs.h - <<_ACEOF >conftest.c
22725
22726
22727 #include <linux/mm.h>
22728
22729 int
22730 main (void)
22731 {
22732
22733 truncate_setsize(NULL, 0);
22734
22735 ;
22736 return 0;
22737 }
22738
22739 _ACEOF
22740
22741
22742
22743 cat - <<_ACEOF >conftest.h
22744
22745 _ACEOF
22746
22747
22748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22749 echo "obj-m := conftest.o" >build/Makefile
22750 modpost_flag=''
22751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22755 ac_status=$?
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }; then :
22763 rc=0
22764 else
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767 rc=1
22768
22769
22770 fi
22771 rm -Rf build
22772
22773
22774 if test $rc -ne 0; then :
22775
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22778
22779 else
22780 if test "x$enable_linux_builtin" != xyes; then
22781
22782 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22783 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22784 rc=$?
22785 if test $rc -ne 0; then
22786 export=0
22787 for file in mm/truncate.c; do
22788 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22789 "$LINUX/$file" 2>/dev/null
22790 rc=$?
22791 if test $rc -eq 0; then
22792 export=1
22793 break;
22794 fi
22795 done
22796 if test $export -eq 0; then :
22797 rc=1
22798 else :
22799 rc=0
22800 fi
22801 else :
22802 rc=0
22803 fi
22804
22805 fi
22806 if test $rc -ne 0; then :
22807
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22810
22811 else :
22812
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22814 $as_echo "yes" >&6; }
22815
22816 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22817
22818
22819 fi
22820 fi
22821
22822
22823
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22825 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22826
22827
22828 cat confdefs.h - <<_ACEOF >conftest.c
22829
22830
22831 #include <linux/security.h>
22832
22833 int
22834 main (void)
22835 {
22836
22837 struct inode *ip __attribute__ ((unused)) = NULL;
22838 struct inode *dip __attribute__ ((unused)) = NULL;
22839 const struct qstr *str __attribute__ ((unused)) = NULL;
22840 char *name __attribute__ ((unused)) = NULL;
22841 void *value __attribute__ ((unused)) = NULL;
22842 size_t len __attribute__ ((unused)) = 0;
22843
22844 security_inode_init_security(ip, dip, str, &name, &value, &len);
22845
22846 ;
22847 return 0;
22848 }
22849
22850 _ACEOF
22851
22852
22853
22854 cat - <<_ACEOF >conftest.h
22855
22856 _ACEOF
22857
22858
22859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22860 echo "obj-m := conftest.o" >build/Makefile
22861 modpost_flag=''
22862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }; }; then :
22874
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22876 $as_echo "yes" >&6; }
22877
22878 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22879
22880
22881 else
22882 $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887
22888
22889
22890 fi
22891 rm -Rf build
22892
22893
22894
22895
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22897 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22898
22899
22900 cat confdefs.h - <<_ACEOF >conftest.c
22901
22902
22903 #include <linux/security.h>
22904
22905 int
22906 main (void)
22907 {
22908
22909 struct inode *ip __attribute__ ((unused)) = NULL;
22910 struct inode *dip __attribute__ ((unused)) = NULL;
22911 const struct qstr *str __attribute__ ((unused)) = NULL;
22912 initxattrs func __attribute__ ((unused)) = NULL;
22913
22914 security_inode_init_security(ip, dip, str, func, NULL);
22915
22916 ;
22917 return 0;
22918 }
22919
22920 _ACEOF
22921
22922
22923
22924 cat - <<_ACEOF >conftest.h
22925
22926 _ACEOF
22927
22928
22929 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22930 echo "obj-m := conftest.o" >build/Makefile
22931 modpost_flag=''
22932 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22933 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }; then :
22944
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22946 $as_echo "yes" >&6; }
22947
22948 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22949
22950
22951 else
22952 $as_echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22954
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22957
22958
22959
22960 fi
22961 rm -Rf build
22962
22963
22964
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22966 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22967
22968
22969
22970 cat confdefs.h - <<_ACEOF >conftest.c
22971
22972
22973 #include <linux/fs.h>
22974
22975 int
22976 main (void)
22977 {
22978
22979 mount_nodev(NULL, 0, NULL, NULL);
22980
22981 ;
22982 return 0;
22983 }
22984
22985 _ACEOF
22986
22987
22988
22989 cat - <<_ACEOF >conftest.h
22990
22991 _ACEOF
22992
22993
22994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22995 echo "obj-m := conftest.o" >build/Makefile
22996 modpost_flag=''
22997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23003 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23005 (eval $ac_try) 2>&5
23006 ac_status=$?
23007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23008 test $ac_status = 0; }; }; then :
23009 rc=0
23010 else
23011 $as_echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013 rc=1
23014
23015
23016 fi
23017 rm -Rf build
23018
23019
23020 if test $rc -ne 0; then :
23021
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23023 $as_echo "no" >&6; }
23024
23025 else
23026 if test "x$enable_linux_builtin" != xyes; then
23027
23028 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23029 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23030 rc=$?
23031 if test $rc -ne 0; then
23032 export=0
23033 for file in fs/super.c; do
23034 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23035 "$LINUX/$file" 2>/dev/null
23036 rc=$?
23037 if test $rc -eq 0; then
23038 export=1
23039 break;
23040 fi
23041 done
23042 if test $export -eq 0; then :
23043 rc=1
23044 else :
23045 rc=0
23046 fi
23047 else :
23048 rc=0
23049 fi
23050
23051 fi
23052 if test $rc -ne 0; then :
23053
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 $as_echo "no" >&6; }
23056
23057 else :
23058
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23060 $as_echo "yes" >&6; }
23061
23062 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23063
23064
23065 fi
23066 fi
23067
23068
23069
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23071 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23072
23073
23074 cat confdefs.h - <<_ACEOF >conftest.c
23075
23076
23077 #include <linux/fs.h>
23078
23079 int shrink(struct shrinker *s, struct shrink_control *sc)
23080 { return 0; }
23081
23082 static const struct super_block
23083 sb __attribute__ ((unused)) = {
23084 .s_shrink.shrink = shrink,
23085 .s_shrink.seeks = DEFAULT_SEEKS,
23086 .s_shrink.batch = 0,
23087 };
23088
23089 int
23090 main (void)
23091 {
23092
23093
23094 ;
23095 return 0;
23096 }
23097
23098 _ACEOF
23099
23100
23101
23102 cat - <<_ACEOF >conftest.h
23103
23104 _ACEOF
23105
23106
23107 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23108 echo "obj-m := conftest.o" >build/Makefile
23109 modpost_flag=''
23110 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23111 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23118 (eval $ac_try) 2>&5
23119 ac_status=$?
23120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23121 test $ac_status = 0; }; }; then :
23122
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23124 $as_echo "yes" >&6; }
23125
23126 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23127
23128
23129
23130 else
23131 $as_echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23135 $as_echo "no" >&6; }
23136
23137
23138
23139 fi
23140 rm -Rf build
23141
23142
23143
23144
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23146 $as_echo_n "checking whether shrink_control has nid... " >&6; }
23147
23148
23149 cat confdefs.h - <<_ACEOF >conftest.c
23150
23151
23152 #include <linux/fs.h>
23153
23154 int
23155 main (void)
23156 {
23157
23158 struct shrink_control sc __attribute__ ((unused));
23159 unsigned long scnidsize __attribute__ ((unused)) =
23160 sizeof(sc.nid);
23161
23162 ;
23163 return 0;
23164 }
23165
23166 _ACEOF
23167
23168
23169
23170 cat - <<_ACEOF >conftest.h
23171
23172 _ACEOF
23173
23174
23175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23176 echo "obj-m := conftest.o" >build/Makefile
23177 modpost_flag=''
23178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23179 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23181 (eval $ac_try) 2>&5
23182 ac_status=$?
23183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23184 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189 test $ac_status = 0; }; }; then :
23190
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23192 $as_echo "yes" >&6; }
23193
23194 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23195
23196
23197 else
23198 $as_echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23200
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23202 $as_echo "no" >&6; }
23203
23204
23205
23206 fi
23207 rm -Rf build
23208
23209
23210
23211
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23213 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23214
23215
23216 cat confdefs.h - <<_ACEOF >conftest.c
23217
23218
23219 #include <linux/fs.h>
23220
23221 int
23222 main (void)
23223 {
23224
23225 struct super_block sb __attribute__ ((unused));
23226
23227 INIT_LIST_HEAD(&sb.s_instances);
23228
23229 ;
23230 return 0;
23231 }
23232
23233 _ACEOF
23234
23235
23236
23237 cat - <<_ACEOF >conftest.h
23238
23239 _ACEOF
23240
23241
23242 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23243 echo "obj-m := conftest.o" >build/Makefile
23244 modpost_flag=''
23245 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23246 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23248 (eval $ac_try) 2>&5
23249 ac_status=$?
23250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23251 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23256 test $ac_status = 0; }; }; then :
23257
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23259 $as_echo "yes" >&6; }
23260
23261 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23262
23263
23264 else
23265 $as_echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23267
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23270
23271
23272
23273 fi
23274 rm -Rf build
23275
23276
23277
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23279 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23280
23281
23282 cat confdefs.h - <<_ACEOF >conftest.c
23283
23284
23285 #include <linux/fs.h>
23286
23287 int
23288 main (void)
23289 {
23290
23291 struct super_block sb __attribute__ ((unused));
23292 sb.s_d_op = NULL;
23293
23294 ;
23295 return 0;
23296 }
23297
23298 _ACEOF
23299
23300
23301
23302 cat - <<_ACEOF >conftest.h
23303
23304 _ACEOF
23305
23306
23307 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23308 echo "obj-m := conftest.o" >build/Makefile
23309 modpost_flag=''
23310 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23311 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23316 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }; then :
23322
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23324 $as_echo "yes" >&6; }
23325
23326 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23327
23328
23329 else
23330 $as_echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23334 $as_echo "no" >&6; }
23335
23336
23337
23338 fi
23339 rm -Rf build
23340
23341
23342
23343
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23345 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23346
23347
23348
23349 cat confdefs.h - <<_ACEOF >conftest.c
23350
23351
23352 #include <linux/fs.h>
23353 struct super_block sb;
23354
23355 int
23356 main (void)
23357 {
23358
23359 char *name = "bdi";
23360 atomic_long_t zfs_bdi_seq;
23361 int error __attribute__((unused)) =
23362 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
23363
23364 ;
23365 return 0;
23366 }
23367
23368 _ACEOF
23369
23370
23371
23372 cat - <<_ACEOF >conftest.h
23373
23374 _ACEOF
23375
23376
23377 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23378 echo "obj-m := conftest.o" >build/Makefile
23379 modpost_flag=''
23380 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23381 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23388 (eval $ac_try) 2>&5
23389 ac_status=$?
23390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23391 test $ac_status = 0; }; }; then :
23392 rc=0
23393 else
23394 $as_echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23396 rc=1
23397
23398
23399 fi
23400 rm -Rf build
23401
23402
23403 if test $rc -ne 0; then :
23404
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23406 $as_echo "no" >&6; }
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23408 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23409
23410
23411
23412 cat confdefs.h - <<_ACEOF >conftest.c
23413
23414
23415 #include <linux/backing-dev.h>
23416 struct backing_dev_info bdi;
23417
23418 int
23419 main (void)
23420 {
23421
23422 char *name = "bdi";
23423 int error __attribute__((unused)) =
23424 bdi_setup_and_register(&bdi, name);
23425
23426 ;
23427 return 0;
23428 }
23429
23430 _ACEOF
23431
23432
23433
23434 cat - <<_ACEOF >conftest.h
23435
23436 _ACEOF
23437
23438
23439 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23440 echo "obj-m := conftest.o" >build/Makefile
23441 modpost_flag=''
23442 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23443 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23446 ac_status=$?
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23453 test $ac_status = 0; }; }; then :
23454 rc=0
23455 else
23456 $as_echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458 rc=1
23459
23460
23461 fi
23462 rm -Rf build
23463
23464
23465 if test $rc -ne 0; then :
23466
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23468 $as_echo "no" >&6; }
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23470 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23471
23472
23473
23474 cat confdefs.h - <<_ACEOF >conftest.c
23475
23476
23477 #include <linux/backing-dev.h>
23478 struct backing_dev_info bdi;
23479
23480 int
23481 main (void)
23482 {
23483
23484 char *name = "bdi";
23485 unsigned int cap = BDI_CAP_MAP_COPY;
23486 int error __attribute__((unused)) =
23487 bdi_setup_and_register(&bdi, name, cap);
23488
23489 ;
23490 return 0;
23491 }
23492
23493 _ACEOF
23494
23495
23496
23497 cat - <<_ACEOF >conftest.h
23498
23499 _ACEOF
23500
23501
23502 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23503 echo "obj-m := conftest.o" >build/Makefile
23504 modpost_flag=''
23505 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23506 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23508 (eval $ac_try) 2>&5
23509 ac_status=$?
23510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23511 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23513 (eval $ac_try) 2>&5
23514 ac_status=$?
23515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23516 test $ac_status = 0; }; }; then :
23517 rc=0
23518 else
23519 $as_echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521 rc=1
23522
23523
23524 fi
23525 rm -Rf build
23526
23527
23528 if test $rc -ne 0; then :
23529
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23531 $as_echo "no" >&6; }
23532
23533 else
23534 if test "x$enable_linux_builtin" != xyes; then
23535
23536 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23537 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23538 rc=$?
23539 if test $rc -ne 0; then
23540 export=0
23541 for file in mm/backing-dev.c; do
23542 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23543 "$LINUX/$file" 2>/dev/null
23544 rc=$?
23545 if test $rc -eq 0; then
23546 export=1
23547 break;
23548 fi
23549 done
23550 if test $export -eq 0; then :
23551 rc=1
23552 else :
23553 rc=0
23554 fi
23555 else :
23556 rc=0
23557 fi
23558
23559 fi
23560 if test $rc -ne 0; then :
23561
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23563 $as_echo "no" >&6; }
23564
23565 else :
23566
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23568 $as_echo "yes" >&6; }
23569
23570 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23571
23572
23573 fi
23574 fi
23575
23576
23577 else
23578 if test "x$enable_linux_builtin" != xyes; then
23579
23580 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23581 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23582 rc=$?
23583 if test $rc -ne 0; then
23584 export=0
23585 for file in mm/backing-dev.c; do
23586 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23587 "$LINUX/$file" 2>/dev/null
23588 rc=$?
23589 if test $rc -eq 0; then
23590 export=1
23591 break;
23592 fi
23593 done
23594 if test $export -eq 0; then :
23595 rc=1
23596 else :
23597 rc=0
23598 fi
23599 else :
23600 rc=0
23601 fi
23602
23603 fi
23604 if test $rc -ne 0; then :
23605
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23607 $as_echo "no" >&6; }
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23609 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23610
23611
23612
23613 cat confdefs.h - <<_ACEOF >conftest.c
23614
23615
23616 #include <linux/backing-dev.h>
23617 struct backing_dev_info bdi;
23618
23619 int
23620 main (void)
23621 {
23622
23623 char *name = "bdi";
23624 unsigned int cap = BDI_CAP_MAP_COPY;
23625 int error __attribute__((unused)) =
23626 bdi_setup_and_register(&bdi, name, cap);
23627
23628 ;
23629 return 0;
23630 }
23631
23632 _ACEOF
23633
23634
23635
23636 cat - <<_ACEOF >conftest.h
23637
23638 _ACEOF
23639
23640
23641 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23642 echo "obj-m := conftest.o" >build/Makefile
23643 modpost_flag=''
23644 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23645 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23650 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23655 test $ac_status = 0; }; }; then :
23656 rc=0
23657 else
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660 rc=1
23661
23662
23663 fi
23664 rm -Rf build
23665
23666
23667 if test $rc -ne 0; then :
23668
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23670 $as_echo "no" >&6; }
23671
23672 else
23673 if test "x$enable_linux_builtin" != xyes; then
23674
23675 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23676 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23677 rc=$?
23678 if test $rc -ne 0; then
23679 export=0
23680 for file in mm/backing-dev.c; do
23681 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23682 "$LINUX/$file" 2>/dev/null
23683 rc=$?
23684 if test $rc -eq 0; then
23685 export=1
23686 break;
23687 fi
23688 done
23689 if test $export -eq 0; then :
23690 rc=1
23691 else :
23692 rc=0
23693 fi
23694 else :
23695 rc=0
23696 fi
23697
23698 fi
23699 if test $rc -ne 0; then :
23700
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23703
23704 else :
23705
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23707 $as_echo "yes" >&6; }
23708
23709 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23710
23711
23712 fi
23713 fi
23714
23715
23716 else :
23717
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23719 $as_echo "yes" >&6; }
23720
23721 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23722
23723
23724 fi
23725 fi
23726
23727
23728 else
23729 if test "x$enable_linux_builtin" != xyes; then
23730
23731 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23733 rc=$?
23734 if test $rc -ne 0; then
23735 export=0
23736 for file in fs/super.c; do
23737 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23738 "$LINUX/$file" 2>/dev/null
23739 rc=$?
23740 if test $rc -eq 0; then
23741 export=1
23742 break;
23743 fi
23744 done
23745 if test $export -eq 0; then :
23746 rc=1
23747 else :
23748 rc=0
23749 fi
23750 else :
23751 rc=0
23752 fi
23753
23754 fi
23755 if test $rc -ne 0; then :
23756
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758 $as_echo "no" >&6; }
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23760 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23761
23762
23763
23764 cat confdefs.h - <<_ACEOF >conftest.c
23765
23766
23767 #include <linux/backing-dev.h>
23768 struct backing_dev_info bdi;
23769
23770 int
23771 main (void)
23772 {
23773
23774 char *name = "bdi";
23775 int error __attribute__((unused)) =
23776 bdi_setup_and_register(&bdi, name);
23777
23778 ;
23779 return 0;
23780 }
23781
23782 _ACEOF
23783
23784
23785
23786 cat - <<_ACEOF >conftest.h
23787
23788 _ACEOF
23789
23790
23791 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23792 echo "obj-m := conftest.o" >build/Makefile
23793 modpost_flag=''
23794 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23795 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23798 ac_status=$?
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23802 (eval $ac_try) 2>&5
23803 ac_status=$?
23804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23805 test $ac_status = 0; }; }; then :
23806 rc=0
23807 else
23808 $as_echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23810 rc=1
23811
23812
23813 fi
23814 rm -Rf build
23815
23816
23817 if test $rc -ne 0; then :
23818
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820 $as_echo "no" >&6; }
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23822 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23823
23824
23825
23826 cat confdefs.h - <<_ACEOF >conftest.c
23827
23828
23829 #include <linux/backing-dev.h>
23830 struct backing_dev_info bdi;
23831
23832 int
23833 main (void)
23834 {
23835
23836 char *name = "bdi";
23837 unsigned int cap = BDI_CAP_MAP_COPY;
23838 int error __attribute__((unused)) =
23839 bdi_setup_and_register(&bdi, name, cap);
23840
23841 ;
23842 return 0;
23843 }
23844
23845 _ACEOF
23846
23847
23848
23849 cat - <<_ACEOF >conftest.h
23850
23851 _ACEOF
23852
23853
23854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23855 echo "obj-m := conftest.o" >build/Makefile
23856 modpost_flag=''
23857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23858 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860 (eval $ac_try) 2>&5
23861 ac_status=$?
23862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }; then :
23869 rc=0
23870 else
23871 $as_echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873 rc=1
23874
23875
23876 fi
23877 rm -Rf build
23878
23879
23880 if test $rc -ne 0; then :
23881
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883 $as_echo "no" >&6; }
23884
23885 else
23886 if test "x$enable_linux_builtin" != xyes; then
23887
23888 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23889 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23890 rc=$?
23891 if test $rc -ne 0; then
23892 export=0
23893 for file in mm/backing-dev.c; do
23894 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23895 "$LINUX/$file" 2>/dev/null
23896 rc=$?
23897 if test $rc -eq 0; then
23898 export=1
23899 break;
23900 fi
23901 done
23902 if test $export -eq 0; then :
23903 rc=1
23904 else :
23905 rc=0
23906 fi
23907 else :
23908 rc=0
23909 fi
23910
23911 fi
23912 if test $rc -ne 0; then :
23913
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23915 $as_echo "no" >&6; }
23916
23917 else :
23918
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23920 $as_echo "yes" >&6; }
23921
23922 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23923
23924
23925 fi
23926 fi
23927
23928
23929 else
23930 if test "x$enable_linux_builtin" != xyes; then
23931
23932 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23933 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23934 rc=$?
23935 if test $rc -ne 0; then
23936 export=0
23937 for file in mm/backing-dev.c; do
23938 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23939 "$LINUX/$file" 2>/dev/null
23940 rc=$?
23941 if test $rc -eq 0; then
23942 export=1
23943 break;
23944 fi
23945 done
23946 if test $export -eq 0; then :
23947 rc=1
23948 else :
23949 rc=0
23950 fi
23951 else :
23952 rc=0
23953 fi
23954
23955 fi
23956 if test $rc -ne 0; then :
23957
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23959 $as_echo "no" >&6; }
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23961 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23962
23963
23964
23965 cat confdefs.h - <<_ACEOF >conftest.c
23966
23967
23968 #include <linux/backing-dev.h>
23969 struct backing_dev_info bdi;
23970
23971 int
23972 main (void)
23973 {
23974
23975 char *name = "bdi";
23976 unsigned int cap = BDI_CAP_MAP_COPY;
23977 int error __attribute__((unused)) =
23978 bdi_setup_and_register(&bdi, name, cap);
23979
23980 ;
23981 return 0;
23982 }
23983
23984 _ACEOF
23985
23986
23987
23988 cat - <<_ACEOF >conftest.h
23989
23990 _ACEOF
23991
23992
23993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23994 echo "obj-m := conftest.o" >build/Makefile
23995 modpost_flag=''
23996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24000 ac_status=$?
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }; then :
24008 rc=0
24009 else
24010 $as_echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012 rc=1
24013
24014
24015 fi
24016 rm -Rf build
24017
24018
24019 if test $rc -ne 0; then :
24020
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24022 $as_echo "no" >&6; }
24023
24024 else
24025 if test "x$enable_linux_builtin" != xyes; then
24026
24027 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24028 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24029 rc=$?
24030 if test $rc -ne 0; then
24031 export=0
24032 for file in mm/backing-dev.c; do
24033 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24034 "$LINUX/$file" 2>/dev/null
24035 rc=$?
24036 if test $rc -eq 0; then
24037 export=1
24038 break;
24039 fi
24040 done
24041 if test $export -eq 0; then :
24042 rc=1
24043 else :
24044 rc=0
24045 fi
24046 else :
24047 rc=0
24048 fi
24049
24050 fi
24051 if test $rc -ne 0; then :
24052
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054 $as_echo "no" >&6; }
24055
24056 else :
24057
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24059 $as_echo "yes" >&6; }
24060
24061 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24062
24063
24064 fi
24065 fi
24066
24067
24068 else :
24069
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24071 $as_echo "yes" >&6; }
24072
24073 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24074
24075
24076 fi
24077 fi
24078
24079
24080 else :
24081
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24083 $as_echo "yes" >&6; }
24084
24085 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24086
24087
24088 fi
24089 fi
24090
24091
24092
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24094 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24095
24096
24097 cat confdefs.h - <<_ACEOF >conftest.c
24098
24099
24100 #include <linux/fs.h>
24101
24102 int
24103 main (void)
24104 {
24105
24106 struct inode node;
24107 unsigned int link = 0;
24108 (void) set_nlink(&node, link);
24109
24110 ;
24111 return 0;
24112 }
24113
24114 _ACEOF
24115
24116
24117
24118 cat - <<_ACEOF >conftest.h
24119
24120 _ACEOF
24121
24122
24123 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24124 echo "obj-m := conftest.o" >build/Makefile
24125 modpost_flag=''
24126 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24127 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24134 (eval $ac_try) 2>&5
24135 ac_status=$?
24136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24137 test $ac_status = 0; }; }; then :
24138
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24140 $as_echo "yes" >&6; }
24141
24142 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24143
24144
24145 else
24146 $as_echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24148
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24150 $as_echo "no" >&6; }
24151
24152
24153
24154 fi
24155 rm -Rf build
24156
24157
24158
24159
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24161 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24162 tmp_flags="$EXTRA_KCFLAGS"
24163 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24164
24165
24166 cat confdefs.h - <<_ACEOF >conftest.c
24167
24168
24169 #include <linux/blkdev.h>
24170 #include <linux/elevator.h>
24171
24172 int
24173 main (void)
24174 {
24175
24176 int ret;
24177 struct request_queue *q = NULL;
24178 char *elevator = NULL;
24179 ret = elevator_change(q, elevator);
24180
24181 ;
24182 return 0;
24183 }
24184
24185 _ACEOF
24186
24187
24188
24189 cat - <<_ACEOF >conftest.h
24190
24191 _ACEOF
24192
24193
24194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24195 echo "obj-m := conftest.o" >build/Makefile
24196 modpost_flag=''
24197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24198 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208 test $ac_status = 0; }; }; then :
24209
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24211 $as_echo "yes" >&6; }
24212
24213 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24214
24215
24216 else
24217 $as_echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24222
24223
24224
24225 fi
24226 rm -Rf build
24227
24228
24229 EXTRA_KCFLAGS="$tmp_flags"
24230
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24232 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24233
24234
24235 cat confdefs.h - <<_ACEOF >conftest.c
24236
24237
24238 #include <linux/fs.h>
24239
24240 int
24241 main (void)
24242 {
24243
24244 struct file_system_type *type = NULL;
24245 int (*test)(struct super_block *,void *) = NULL;
24246 int (*set)(struct super_block *,void *) = NULL;
24247 int flags = 0;
24248 void *data = NULL;
24249 (void) sget(type, test, set, flags, data);
24250
24251 ;
24252 return 0;
24253 }
24254
24255 _ACEOF
24256
24257
24258
24259 cat - <<_ACEOF >conftest.h
24260
24261 _ACEOF
24262
24263
24264 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24265 echo "obj-m := conftest.o" >build/Makefile
24266 modpost_flag=''
24267 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24268 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24270 (eval $ac_try) 2>&5
24271 ac_status=$?
24272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24273 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24278 test $ac_status = 0; }; }; then :
24279
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24281 $as_echo "yes" >&6; }
24282
24283 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24284
24285
24286 else
24287 $as_echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24291 $as_echo "no" >&6; }
24292
24293
24294
24295 fi
24296 rm -Rf build
24297
24298
24299
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24301 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24302
24303
24304
24305 cat confdefs.h - <<_ACEOF >conftest.c
24306
24307
24308 #include <linux/fs.h>
24309
24310 int
24311 main (void)
24312 {
24313
24314 struct file *fp __attribute__ ((unused)) = NULL;
24315 struct inode *ip __attribute__ ((unused)) = NULL;
24316 loff_t offset __attribute__ ((unused)) = 0;
24317 loff_t maxsize __attribute__ ((unused)) = 0;
24318
24319 lseek_execute(fp, ip, offset, maxsize);
24320
24321 ;
24322 return 0;
24323 }
24324
24325 _ACEOF
24326
24327
24328
24329 cat - <<_ACEOF >conftest.h
24330
24331 _ACEOF
24332
24333
24334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24335 echo "obj-m := conftest.o" >build/Makefile
24336 modpost_flag=''
24337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24338 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24340 (eval $ac_try) 2>&5
24341 ac_status=$?
24342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24343 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }; then :
24349 rc=0
24350 else
24351 $as_echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353 rc=1
24354
24355
24356 fi
24357 rm -Rf build
24358
24359
24360 if test $rc -ne 0; then :
24361
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24363 $as_echo "no" >&6; }
24364
24365 else
24366 if test "x$enable_linux_builtin" != xyes; then
24367
24368 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24369 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24370 rc=$?
24371 if test $rc -ne 0; then
24372 export=0
24373 for file in fs/read_write.c; do
24374 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24375 "$LINUX/$file" 2>/dev/null
24376 rc=$?
24377 if test $rc -eq 0; then
24378 export=1
24379 break;
24380 fi
24381 done
24382 if test $export -eq 0; then :
24383 rc=1
24384 else :
24385 rc=0
24386 fi
24387 else :
24388 rc=0
24389 fi
24390
24391 fi
24392 if test $rc -ne 0; then :
24393
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24395 $as_echo "no" >&6; }
24396
24397 else :
24398
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24400 $as_echo "yes" >&6; }
24401
24402 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24403
24404
24405 fi
24406 fi
24407
24408
24409
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24411 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24412
24413
24414 cat confdefs.h - <<_ACEOF >conftest.c
24415
24416
24417 #include <linux/fs.h>
24418 int iterate(struct file *filp, struct dir_context * context)
24419 { return 0; }
24420
24421 static const struct file_operations fops
24422 __attribute__ ((unused)) = {
24423 .iterate_shared = iterate,
24424 };
24425
24426 int
24427 main (void)
24428 {
24429
24430
24431 ;
24432 return 0;
24433 }
24434
24435 _ACEOF
24436
24437
24438
24439 cat - <<_ACEOF >conftest.h
24440
24441 _ACEOF
24442
24443
24444 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24445 echo "obj-m := conftest.o" >build/Makefile
24446 modpost_flag=''
24447 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24448 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24455 (eval $ac_try) 2>&5
24456 ac_status=$?
24457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458 test $ac_status = 0; }; }; then :
24459
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24461 $as_echo "yes" >&6; }
24462
24463 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24464
24465
24466 else
24467 $as_echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24471 $as_echo "no" >&6; }
24472
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24474 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24475
24476
24477 cat confdefs.h - <<_ACEOF >conftest.c
24478
24479
24480 #include <linux/fs.h>
24481 int iterate(struct file *filp, struct dir_context * context)
24482 { return 0; }
24483
24484 static const struct file_operations fops
24485 __attribute__ ((unused)) = {
24486 .iterate = iterate,
24487 };
24488
24489 int
24490 main (void)
24491 {
24492
24493
24494 ;
24495 return 0;
24496 }
24497
24498 _ACEOF
24499
24500
24501
24502 cat - <<_ACEOF >conftest.h
24503
24504 _ACEOF
24505
24506
24507 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24508 echo "obj-m := conftest.o" >build/Makefile
24509 modpost_flag=''
24510 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24511 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24513 (eval $ac_try) 2>&5
24514 ac_status=$?
24515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24516 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518 (eval $ac_try) 2>&5
24519 ac_status=$?
24520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521 test $ac_status = 0; }; }; then :
24522
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524 $as_echo "yes" >&6; }
24525
24526 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24527
24528
24529 else
24530 $as_echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24532
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24534 $as_echo "no" >&6; }
24535
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24537 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24538
24539
24540 cat confdefs.h - <<_ACEOF >conftest.c
24541
24542
24543 #include <linux/fs.h>
24544 int readdir(struct file *filp, void *entry, filldir_t func)
24545 { return 0; }
24546
24547 static const struct file_operations fops
24548 __attribute__ ((unused)) = {
24549 .readdir = readdir,
24550 };
24551
24552 int
24553 main (void)
24554 {
24555
24556
24557 ;
24558 return 0;
24559 }
24560
24561 _ACEOF
24562
24563
24564
24565 cat - <<_ACEOF >conftest.h
24566
24567 _ACEOF
24568
24569
24570 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24571 echo "obj-m := conftest.o" >build/Makefile
24572 modpost_flag=''
24573 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24574 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24582 ac_status=$?
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }; then :
24585
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24587 $as_echo "yes" >&6; }
24588
24589 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24590
24591
24592 else
24593 $as_echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
24597
24598
24599
24600 fi
24601 rm -Rf build
24602
24603
24604
24605
24606
24607 fi
24608 rm -Rf build
24609
24610
24611
24612
24613
24614 fi
24615 rm -Rf build
24616
24617
24618
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24620 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24621
24622
24623 cat confdefs.h - <<_ACEOF >conftest.c
24624
24625
24626 #include <linux/fs.h>
24627
24628 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24629 { return 0; }
24630 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24631 { return 0; }
24632
24633 static const struct file_operations
24634 fops __attribute__ ((unused)) = {
24635 .read_iter = test_read,
24636 .write_iter = test_write,
24637 };
24638
24639 int
24640 main (void)
24641 {
24642
24643
24644 ;
24645 return 0;
24646 }
24647
24648 _ACEOF
24649
24650
24651
24652 cat - <<_ACEOF >conftest.h
24653
24654 _ACEOF
24655
24656
24657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24658 echo "obj-m := conftest.o" >build/Makefile
24659 modpost_flag=''
24660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24661 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }; then :
24672
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24674 $as_echo "yes" >&6; }
24675
24676 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24677
24678
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24680 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24681
24682
24683 cat confdefs.h - <<_ACEOF >conftest.c
24684
24685
24686 #include <linux/fs.h>
24687
24688 int
24689 main (void)
24690 {
24691
24692 new_sync_read(NULL, NULL, 0, NULL);
24693
24694 ;
24695 return 0;
24696 }
24697
24698 _ACEOF
24699
24700
24701
24702 cat - <<_ACEOF >conftest.h
24703
24704 _ACEOF
24705
24706
24707 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24708 echo "obj-m := conftest.o" >build/Makefile
24709 modpost_flag=''
24710 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24711 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }; then :
24722
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24724 $as_echo "yes" >&6; }
24725
24726 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24727
24728
24729 else
24730 $as_echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24735
24736
24737
24738 fi
24739 rm -Rf build
24740
24741
24742
24743
24744 else
24745 $as_echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24749 $as_echo "no" >&6; }
24750
24751
24752
24753 fi
24754 rm -Rf build
24755
24756
24757
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24759 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24760
24761
24762 cat confdefs.h - <<_ACEOF >conftest.c
24763
24764
24765 #include <linux/fs.h>
24766
24767
24768 int
24769 main (void)
24770 {
24771
24772 struct kiocb *iocb = NULL;
24773 struct iov_iter *iov = NULL;
24774 generic_write_checks(iocb, iov);
24775
24776 ;
24777 return 0;
24778 }
24779
24780 _ACEOF
24781
24782
24783
24784 cat - <<_ACEOF >conftest.h
24785
24786 _ACEOF
24787
24788
24789 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24790 echo "obj-m := conftest.o" >build/Makefile
24791 modpost_flag=''
24792 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24793 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; }; then :
24804
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24806 $as_echo "yes" >&6; }
24807
24808 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24809
24810
24811 else
24812 $as_echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24816 $as_echo "no" >&6; }
24817
24818
24819
24820 fi
24821 rm -Rf build
24822
24823
24824
24825
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24827 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24828
24829
24830 cat confdefs.h - <<_ACEOF >conftest.c
24831
24832
24833 #include <linux/pagemap.h>
24834
24835 int
24836 main (void)
24837 {
24838
24839 struct page page;
24840 kmap_atomic(&page);
24841
24842 ;
24843 return 0;
24844 }
24845
24846 _ACEOF
24847
24848
24849
24850 cat - <<_ACEOF >conftest.h
24851
24852 _ACEOF
24853
24854
24855 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24856 echo "obj-m := conftest.o" >build/Makefile
24857 modpost_flag=''
24858 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24859 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }; then :
24870
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24872 $as_echo "yes" >&6; }
24873
24874 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24875
24876
24877 else
24878 $as_echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24882 $as_echo "no" >&6; }
24883
24884
24885
24886 fi
24887 rm -Rf build
24888
24889
24890
24891
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24893 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24894
24895
24896 cat confdefs.h - <<_ACEOF >conftest.c
24897
24898
24899 #include <linux/namei.h>
24900
24901 int
24902 main (void)
24903 {
24904
24905 struct path *p = NULL;
24906 follow_down_one(p);
24907
24908 ;
24909 return 0;
24910 }
24911
24912 _ACEOF
24913
24914
24915
24916 cat - <<_ACEOF >conftest.h
24917
24918 _ACEOF
24919
24920
24921 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24922 echo "obj-m := conftest.o" >build/Makefile
24923 modpost_flag=''
24924 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24925 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24927 (eval $ac_try) 2>&5
24928 ac_status=$?
24929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24930 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24935 test $ac_status = 0; }; }; then :
24936
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24938 $as_echo "yes" >&6; }
24939
24940 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24941
24942
24943 else
24944 $as_echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24946
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24948 $as_echo "no" >&6; }
24949
24950
24951
24952 fi
24953 rm -Rf build
24954
24955
24956
24957
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24959 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24960
24961
24962 cat confdefs.h - <<_ACEOF >conftest.c
24963
24964
24965 #include <linux/blkdev.h>
24966
24967 int make_request(struct request_queue *q, struct bio *bio)
24968 {
24969 return (0);
24970 }
24971
24972 int
24973 main (void)
24974 {
24975
24976 blk_queue_make_request(NULL, &make_request);
24977
24978 ;
24979 return 0;
24980 }
24981
24982 _ACEOF
24983
24984
24985
24986 cat - <<_ACEOF >conftest.h
24987
24988 _ACEOF
24989
24990
24991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24992 echo "obj-m := conftest.o" >build/Makefile
24993 modpost_flag=''
24994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24995 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25005 test $ac_status = 0; }; }; then :
25006
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25008 $as_echo "yes" >&6; }
25009
25010 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
25011
25012
25013 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
25014
25015
25016 else
25017 $as_echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25021 $as_echo "no" >&6; }
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
25023 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
25024
25025
25026 cat confdefs.h - <<_ACEOF >conftest.c
25027
25028
25029 #include <linux/blkdev.h>
25030
25031 void make_request(struct request_queue *q, struct bio *bio)
25032 {
25033 return;
25034 }
25035
25036 int
25037 main (void)
25038 {
25039
25040 blk_queue_make_request(NULL, &make_request);
25041
25042 ;
25043 return 0;
25044 }
25045
25046 _ACEOF
25047
25048
25049
25050 cat - <<_ACEOF >conftest.h
25051
25052 _ACEOF
25053
25054
25055 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25056 echo "obj-m := conftest.o" >build/Makefile
25057 modpost_flag=''
25058 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25059 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25066 (eval $ac_try) 2>&5
25067 ac_status=$?
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; }; then :
25070
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25072 $as_echo "yes" >&6; }
25073
25074 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25075
25076
25077 else
25078 $as_echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25084 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25085
25086
25087 cat confdefs.h - <<_ACEOF >conftest.c
25088
25089
25090 #include <linux/blkdev.h>
25091
25092 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25093 {
25094 return (BLK_QC_T_NONE);
25095 }
25096
25097 int
25098 main (void)
25099 {
25100
25101 blk_queue_make_request(NULL, &make_request);
25102
25103 ;
25104 return 0;
25105 }
25106
25107 _ACEOF
25108
25109
25110
25111 cat - <<_ACEOF >conftest.h
25112
25113 _ACEOF
25114
25115
25116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25117 echo "obj-m := conftest.o" >build/Makefile
25118 modpost_flag=''
25119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25120 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }; then :
25131
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25133 $as_echo "yes" >&6; }
25134
25135 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25136
25137
25138 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25139
25140
25141 else
25142 $as_echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25144
25145 as_fn_error $? "no - Please file a bug report at
25146 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25147
25148
25149
25150 fi
25151 rm -Rf build
25152
25153
25154
25155
25156
25157 fi
25158 rm -Rf build
25159
25160
25161
25162
25163
25164 fi
25165 rm -Rf build
25166
25167
25168
25169
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25171 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
25172
25173
25174
25175 cat confdefs.h - <<_ACEOF >conftest.c
25176
25177
25178 #include <linux/bio.h>
25179
25180 void (*generic_start_io_acct_f)(int, unsigned long,
25181 struct hd_struct *) = &generic_start_io_acct;
25182 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25183 unsigned long) = &generic_end_io_acct;
25184
25185 int
25186 main (void)
25187 {
25188
25189 generic_start_io_acct(0, 0, NULL);
25190 generic_end_io_acct(0, NULL, 0);
25191
25192 ;
25193 return 0;
25194 }
25195
25196 _ACEOF
25197
25198
25199
25200 cat - <<_ACEOF >conftest.h
25201
25202 _ACEOF
25203
25204
25205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25206 echo "obj-m := conftest.o" >build/Makefile
25207 modpost_flag=''
25208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25209 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219 test $ac_status = 0; }; }; then :
25220 rc=0
25221 else
25222 $as_echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224 rc=1
25225
25226
25227 fi
25228 rm -Rf build
25229
25230
25231 if test $rc -ne 0; then :
25232
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25234 $as_echo "no" >&6; }
25235
25236 else
25237 if test "x$enable_linux_builtin" != xyes; then
25238
25239 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25240 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25241 rc=$?
25242 if test $rc -ne 0; then
25243 export=0
25244 for file in block/bio.c; do
25245 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25246 "$LINUX/$file" 2>/dev/null
25247 rc=$?
25248 if test $rc -eq 0; then
25249 export=1
25250 break;
25251 fi
25252 done
25253 if test $export -eq 0; then :
25254 rc=1
25255 else :
25256 rc=0
25257 fi
25258 else :
25259 rc=0
25260 fi
25261
25262 fi
25263 if test $rc -ne 0; then :
25264
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25266 $as_echo "no" >&6; }
25267
25268 else :
25269
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25271 $as_echo "yes" >&6; }
25272
25273 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
25274
25275
25276 fi
25277 fi
25278
25279
25280
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25282 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25283
25284
25285
25286 cat confdefs.h - <<_ACEOF >conftest.c
25287
25288
25289 #include <linux/bio.h>
25290
25291 void (*generic_start_io_acct_f)(struct request_queue *, int,
25292 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25293 void (*generic_end_io_acct_f)(struct request_queue *, int,
25294 struct hd_struct *, unsigned long) = &generic_end_io_acct;
25295
25296 int
25297 main (void)
25298 {
25299
25300 generic_start_io_acct(NULL, 0, 0, NULL);
25301 generic_end_io_acct(NULL, 0, NULL, 0);
25302
25303 ;
25304 return 0;
25305 }
25306
25307 _ACEOF
25308
25309
25310
25311 cat - <<_ACEOF >conftest.h
25312
25313 _ACEOF
25314
25315
25316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25317 echo "obj-m := conftest.o" >build/Makefile
25318 modpost_flag=''
25319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25320 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25330 test $ac_status = 0; }; }; then :
25331 rc=0
25332 else
25333 $as_echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335 rc=1
25336
25337
25338 fi
25339 rm -Rf build
25340
25341
25342 if test $rc -ne 0; then :
25343
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25345 $as_echo "no" >&6; }
25346
25347 else
25348 if test "x$enable_linux_builtin" != xyes; then
25349
25350 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25351 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25352 rc=$?
25353 if test $rc -ne 0; then
25354 export=0
25355 for file in block/bio.c; do
25356 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25357 "$LINUX/$file" 2>/dev/null
25358 rc=$?
25359 if test $rc -eq 0; then
25360 export=1
25361 break;
25362 fi
25363 done
25364 if test $export -eq 0; then :
25365 rc=1
25366 else :
25367 rc=0
25368 fi
25369 else :
25370 rc=0
25371 fi
25372
25373 fi
25374 if test $rc -ne 0; then :
25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25377 $as_echo "no" >&6; }
25378
25379 else :
25380
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25382 $as_echo "yes" >&6; }
25383
25384 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25385
25386
25387 fi
25388 fi
25389
25390
25391
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25393 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25394
25395
25396 cat confdefs.h - <<_ACEOF >conftest.c
25397
25398
25399 #include <linux/kernel.h>
25400 #include <asm/fpu/api.h>
25401
25402 int
25403 main (void)
25404 {
25405
25406 __kernel_fpu_begin();
25407
25408 ;
25409 return 0;
25410 }
25411
25412 _ACEOF
25413
25414
25415
25416 cat - <<_ACEOF >conftest.h
25417
25418 _ACEOF
25419
25420
25421 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25422 echo "obj-m := conftest.o" >build/Makefile
25423 modpost_flag=''
25424 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25425 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }; then :
25436
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25438 $as_echo "yes" >&6; }
25439
25440 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
25441
25442
25443 else
25444 $as_echo "$as_me: failed program was:" >&5
25445 sed 's/^/| /' conftest.$ac_ext >&5
25446
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 $as_echo "no" >&6; }
25449
25450
25451
25452 fi
25453 rm -Rf build
25454
25455
25456
25457
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25459 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
25460
25461
25462 cat confdefs.h - <<_ACEOF >conftest.c
25463
25464
25465 #include <linux/fs.h>
25466
25467 int
25468 main (void)
25469 {
25470
25471 struct inode *ip = NULL;
25472 (void) i_uid_read(ip);
25473
25474 ;
25475 return 0;
25476 }
25477
25478 _ACEOF
25479
25480
25481
25482 cat - <<_ACEOF >conftest.h
25483
25484 _ACEOF
25485
25486
25487 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25488 echo "obj-m := conftest.o" >build/Makefile
25489 modpost_flag=''
25490 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25491 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501 test $ac_status = 0; }; }; then :
25502
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25504 $as_echo "yes" >&6; }
25505
25506 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25507
25508
25509 else
25510 $as_echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25514 $as_echo "no" >&6; }
25515
25516
25517
25518 fi
25519 rm -Rf build
25520
25521
25522
25523
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25525 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25526
25527
25528 cat confdefs.h - <<_ACEOF >conftest.c
25529
25530
25531 #include <linux/module.h>
25532 #include <linux/moduleparam.h>
25533
25534 int param_get(char *b, const struct kernel_param *kp)
25535 {
25536 return (0);
25537 }
25538
25539 int param_set(const char *b, const struct kernel_param *kp)
25540 {
25541 return (0);
25542 }
25543
25544 module_param_call(p, param_set, param_get, NULL, 0644);
25545
25546 int
25547 main (void)
25548 {
25549
25550
25551 ;
25552 return 0;
25553 }
25554
25555 _ACEOF
25556
25557
25558
25559 cat - <<_ACEOF >conftest.h
25560
25561 _ACEOF
25562
25563
25564 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25565 echo "obj-m := conftest.o" >build/Makefile
25566 modpost_flag=''
25567 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25568 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25573 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575 (eval $ac_try) 2>&5
25576 ac_status=$?
25577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578 test $ac_status = 0; }; }; then :
25579
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25581 $as_echo "yes" >&6; }
25582
25583 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
25584
25585
25586 else
25587 $as_echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25591 $as_echo "no" >&6; }
25592
25593
25594
25595 fi
25596 rm -Rf build
25597
25598
25599
25600
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25602 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25603
25604
25605 cat confdefs.h - <<_ACEOF >conftest.c
25606
25607
25608 #include <linux/fs.h>
25609 int rename_fn(struct inode *sip, struct dentry *sdp,
25610 struct inode *tip, struct dentry *tdp,
25611 unsigned int flags) { return 0; }
25612
25613 static const struct inode_operations
25614 iops __attribute__ ((unused)) = {
25615 .rename = rename_fn,
25616 };
25617
25618 int
25619 main (void)
25620 {
25621
25622
25623 ;
25624 return 0;
25625 }
25626
25627 _ACEOF
25628
25629
25630
25631 cat - <<_ACEOF >conftest.h
25632
25633 _ACEOF
25634
25635
25636 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25637 echo "obj-m := conftest.o" >build/Makefile
25638 modpost_flag=''
25639 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25640 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25645 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25650 test $ac_status = 0; }; }; then :
25651
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25653 $as_echo "yes" >&6; }
25654
25655 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25656
25657
25658 else
25659 $as_echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25661
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25663 $as_echo "no" >&6; }
25664
25665
25666
25667 fi
25668 rm -Rf build
25669
25670
25671
25672
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25674 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25675
25676
25677 cat confdefs.h - <<_ACEOF >conftest.c
25678
25679
25680 #include <linux/fs.h>
25681 #include <linux/xattr.h>
25682
25683 static const struct inode_operations
25684 iops __attribute__ ((unused)) = {
25685 .setxattr = generic_setxattr
25686 };
25687
25688 int
25689 main (void)
25690 {
25691
25692
25693 ;
25694 return 0;
25695 }
25696
25697 _ACEOF
25698
25699
25700
25701 cat - <<_ACEOF >conftest.h
25702
25703 _ACEOF
25704
25705
25706 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25707 echo "obj-m := conftest.o" >build/Makefile
25708 modpost_flag=''
25709 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25710 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25720 test $ac_status = 0; }; }; then :
25721
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25723 $as_echo "yes" >&6; }
25724
25725 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25726
25727
25728 else
25729 $as_echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25733 $as_echo "no" >&6; }
25734
25735
25736
25737 fi
25738 rm -Rf build
25739
25740
25741
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25743 $as_echo_n "checking whether current_time() exists... " >&6; }
25744
25745
25746
25747 cat confdefs.h - <<_ACEOF >conftest.c
25748
25749
25750 #include <linux/fs.h>
25751
25752 int
25753 main (void)
25754 {
25755
25756 struct inode ip;
25757 struct timespec now __attribute__ ((unused));
25758
25759 now = current_time(&ip);
25760
25761 ;
25762 return 0;
25763 }
25764
25765 _ACEOF
25766
25767
25768
25769 cat - <<_ACEOF >conftest.h
25770
25771 _ACEOF
25772
25773
25774 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25775 echo "obj-m := conftest.o" >build/Makefile
25776 modpost_flag=''
25777 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25778 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788 test $ac_status = 0; }; }; then :
25789 rc=0
25790 else
25791 $as_echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793 rc=1
25794
25795
25796 fi
25797 rm -Rf build
25798
25799
25800 if test $rc -ne 0; then :
25801
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25803 $as_echo "no" >&6; }
25804
25805 else
25806 if test "x$enable_linux_builtin" != xyes; then
25807
25808 grep -q -E '[[:space:]]current_time[[:space:]]' \
25809 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25810 rc=$?
25811 if test $rc -ne 0; then
25812 export=0
25813 for file in fs/inode.c; do
25814 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25815 "$LINUX/$file" 2>/dev/null
25816 rc=$?
25817 if test $rc -eq 0; then
25818 export=1
25819 break;
25820 fi
25821 done
25822 if test $export -eq 0; then :
25823 rc=1
25824 else :
25825 rc=0
25826 fi
25827 else :
25828 rc=0
25829 fi
25830
25831 fi
25832 if test $rc -ne 0; then :
25833
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25835 $as_echo "no" >&6; }
25836
25837 else :
25838
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25840 $as_echo "yes" >&6; }
25841
25842 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25843
25844
25845 fi
25846 fi
25847
25848
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25851 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25852
25853
25854 cat confdefs.h - <<_ACEOF >conftest.c
25855
25856
25857 #include <linux/mm.h>
25858 #include <linux/vmstat.h>
25859
25860 int
25861 main (void)
25862 {
25863
25864 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25865 long x __attribute__ ((unused)) =
25866 atomic_long_read(&vm_node_stat[0]);
25867 (void) global_node_page_state(0);
25868
25869 ;
25870 return 0;
25871 }
25872
25873 _ACEOF
25874
25875
25876
25877 cat - <<_ACEOF >conftest.h
25878
25879 _ACEOF
25880
25881
25882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25883 echo "obj-m := conftest.o" >build/Makefile
25884 modpost_flag=''
25885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25886 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25891 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893 (eval $ac_try) 2>&5
25894 ac_status=$?
25895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }; }; then :
25897
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25899 $as_echo "yes" >&6; }
25900
25901 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25902
25903
25904 else
25905 $as_echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25909 $as_echo "no" >&6; }
25910
25911
25912
25913 fi
25914 rm -Rf build
25915
25916
25917
25918
25919
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
25921 $as_echo_n "checking whether ns_capable exists... " >&6; }
25922
25923
25924 cat confdefs.h - <<_ACEOF >conftest.c
25925
25926
25927 #include <linux/capability.h>
25928
25929 int
25930 main (void)
25931 {
25932
25933 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
25934
25935 ;
25936 return 0;
25937 }
25938
25939 _ACEOF
25940
25941
25942
25943 cat - <<_ACEOF >conftest.h
25944
25945 _ACEOF
25946
25947
25948 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25949 echo "obj-m := conftest.o" >build/Makefile
25950 modpost_flag=''
25951 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25952 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }; then :
25963
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25965 $as_echo "yes" >&6; }
25966
25967 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
25968
25969
25970 else
25971 $as_echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25975 $as_echo "no" >&6; }
25976
25977
25978
25979 fi
25980 rm -Rf build
25981
25982
25983
25984
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
25986 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
25987
25988
25989 cat confdefs.h - <<_ACEOF >conftest.c
25990
25991
25992 #include <linux/cred.h>
25993
25994 int
25995 main (void)
25996 {
25997
25998 struct cred cr;
25999 cr.user_ns = (struct user_namespace *)NULL;
26000
26001 ;
26002 return 0;
26003 }
26004
26005 _ACEOF
26006
26007
26008
26009 cat - <<_ACEOF >conftest.h
26010
26011 _ACEOF
26012
26013
26014 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26015 echo "obj-m := conftest.o" >build/Makefile
26016 modpost_flag=''
26017 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26018 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }; then :
26029
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26031 $as_echo "yes" >&6; }
26032
26033 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
26034
26035
26036 else
26037 $as_echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26042
26043
26044
26045 fi
26046 rm -Rf build
26047
26048
26049
26050
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
26052 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
26053
26054
26055 cat confdefs.h - <<_ACEOF >conftest.c
26056
26057
26058 #include <linux/uidgid.h>
26059
26060 int
26061 main (void)
26062 {
26063
26064 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
26065 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
26066
26067 ;
26068 return 0;
26069 }
26070
26071 _ACEOF
26072
26073
26074
26075 cat - <<_ACEOF >conftest.h
26076
26077 _ACEOF
26078
26079
26080 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26081 echo "obj-m := conftest.o" >build/Makefile
26082 modpost_flag=''
26083 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26084 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26094 test $ac_status = 0; }; }; then :
26095
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26097 $as_echo "yes" >&6; }
26098
26099 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
26100
26101
26102 else
26103 $as_echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.$ac_ext >&5
26105
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26108
26109
26110
26111 fi
26112 rm -Rf build
26113
26114
26115
26116
26117
26118 if test "$LINUX_OBJ" != "$LINUX"; then :
26119
26120 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
26121
26122 fi
26123
26124
26125
26126 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
26127 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
26128 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
26129 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
26130 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
26131 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
26132
26133
26134 ;;
26135 user)
26136
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26138 $as_echo_n "checking for dkms.conf file... " >&6; }
26139 if test -e dkms.conf; then :
26140
26141 as_fn_error $? "
26142 *** ZFS should not be manually built in the DKMS source tree.
26143 *** Remove all ZFS packages before compiling the ZoL sources.
26144 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26145
26146 else
26147
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26149 $as_echo "not found" >&6; }
26150
26151 fi
26152
26153
26154
26155 # Check whether --with-mounthelperdir was given.
26156 if test "${with_mounthelperdir+set}" = set; then :
26157 withval=$with_mounthelperdir; mounthelperdir=$withval
26158 else
26159 mounthelperdir=/sbin
26160 fi
26161
26162
26163
26164
26165
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26167 $as_echo_n "checking for udev directories... " >&6; }
26168
26169 # Check whether --with-udevdir was given.
26170 if test "${with_udevdir+set}" = set; then :
26171 withval=$with_udevdir; udevdir=$withval
26172 else
26173 udevdir=check
26174 fi
26175
26176
26177 if test "x$udevdir" = xcheck; then :
26178
26179 path1=/lib/udev
26180 path2=/usr/lib/udev
26181 default=$path2
26182
26183 if test -d "$path1"; then :
26184 udevdir="$path1"
26185 else
26186
26187 if test -d "$path2"; then :
26188 udevdir="$path2"
26189 else
26190 udevdir="$default"
26191 fi
26192
26193 fi
26194
26195 fi
26196
26197
26198 # Check whether --with-udevruledir was given.
26199 if test "${with_udevruledir+set}" = set; then :
26200 withval=$with_udevruledir; udevruledir=$withval
26201 else
26202 udevruledir="${udevdir}/rules.d"
26203 fi
26204
26205
26206
26207
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26209 $as_echo "$udevdir;$udevruledir" >&6; }
26210
26211
26212 # Check whether --enable-systemd was given.
26213 if test "${enable_systemd+set}" = set; then :
26214 enableval=$enable_systemd;
26215 else
26216 enable_systemd=yes
26217 fi
26218
26219
26220
26221 # Check whether --with-systemdunitdir was given.
26222 if test "${with_systemdunitdir+set}" = set; then :
26223 withval=$with_systemdunitdir; systemdunitdir=$withval
26224 else
26225 systemdunitdir=/usr/lib/systemd/system
26226 fi
26227
26228
26229
26230 # Check whether --with-systemdpresetdir was given.
26231 if test "${with_systemdpresetdir+set}" = set; then :
26232 withval=$with_systemdpresetdir; systemdpresetdir=$withval
26233 else
26234 systemdpresetdir=/usr/lib/systemd/system-preset
26235 fi
26236
26237
26238
26239 # Check whether --with-systemdmodulesloaddir was given.
26240 if test "${with_systemdmodulesloaddir+set}" = set; then :
26241 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
26242 else
26243 systemdmodulesloaddir=/usr/lib/modules-load.d
26244 fi
26245
26246
26247
26248 if test "x$enable_systemd" = xyes; then :
26249
26250 ZFS_INIT_SYSTEMD=systemd
26251 ZFS_MODULE_LOAD=modules-load.d
26252 modulesloaddir=$systemdmodulesloaddir
26253
26254 fi
26255
26256
26257
26258
26259
26260
26261
26262
26263 # Check whether --enable-sysvinit was given.
26264 if test "${enable_sysvinit+set}" = set; then :
26265 enableval=$enable_sysvinit;
26266 else
26267 enable_sysvinit=yes
26268 fi
26269
26270
26271 if test "x$enable_sysvinit" = xyes; then :
26272 ZFS_INIT_SYSV=init.d
26273 fi
26274
26275
26276
26277
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26279 $as_echo_n "checking for dracut directory... " >&6; }
26280
26281 # Check whether --with-dracutdir was given.
26282 if test "${with_dracutdir+set}" = set; then :
26283 withval=$with_dracutdir; dracutdir=$withval
26284 else
26285 dracutdir=check
26286 fi
26287
26288
26289 if test "x$dracutdir" = xcheck; then :
26290
26291 path1=/usr/share/dracut
26292 path2=/usr/lib/dracut
26293 default=$path2
26294
26295 if test -d "$path1"; then :
26296 dracutdir="$path1"
26297 else
26298
26299 if test -d "$path2"; then :
26300 dracutdir="$path2"
26301 else
26302 dracutdir="$default"
26303 fi
26304
26305 fi
26306
26307 fi
26308
26309
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26311 $as_echo "$dracutdir" >&6; }
26312
26313
26314 ZLIB=
26315
26316 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26317 if test "x$ac_cv_header_zlib_h" = xyes; then :
26318
26319 else
26320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26322 as_fn_error $? "
26323 *** zlib.h missing, zlib-devel package required
26324 See \`config.log' for more details" "$LINENO" 5; }
26325 fi
26326
26327
26328
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26330 $as_echo_n "checking for library containing compress2... " >&6; }
26331 if ${ac_cv_search_compress2+:} false; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26334 ac_func_search_save_LIBS=$LIBS
26335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26336 /* end confdefs.h. */
26337
26338 /* Override any GCC internal prototype to avoid an error.
26339 Use char because int might match the return type of a GCC
26340 builtin and then its argument prototype would still apply. */
26341 #ifdef __cplusplus
26342 extern "C"
26343 #endif
26344 char compress2 ();
26345 int
26346 main ()
26347 {
26348 return compress2 ();
26349 ;
26350 return 0;
26351 }
26352 _ACEOF
26353 for ac_lib in '' z; do
26354 if test -z "$ac_lib"; then
26355 ac_res="none required"
26356 else
26357 ac_res=-l$ac_lib
26358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26359 fi
26360 if ac_fn_c_try_link "$LINENO"; then :
26361 ac_cv_search_compress2=$ac_res
26362 fi
26363 rm -f core conftest.err conftest.$ac_objext \
26364 conftest$ac_exeext
26365 if ${ac_cv_search_compress2+:} false; then :
26366 break
26367 fi
26368 done
26369 if ${ac_cv_search_compress2+:} false; then :
26370
26371 else
26372 ac_cv_search_compress2=no
26373 fi
26374 rm conftest.$ac_ext
26375 LIBS=$ac_func_search_save_LIBS
26376 fi
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26378 $as_echo "$ac_cv_search_compress2" >&6; }
26379 ac_res=$ac_cv_search_compress2
26380 if test "$ac_res" != no; then :
26381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26382
26383 else
26384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26386 as_fn_error $? "
26387 *** compress2() missing, zlib-devel package required
26388 See \`config.log' for more details" "$LINENO" 5; }
26389 fi
26390
26391
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26393 $as_echo_n "checking for library containing uncompress... " >&6; }
26394 if ${ac_cv_search_uncompress+:} false; then :
26395 $as_echo_n "(cached) " >&6
26396 else
26397 ac_func_search_save_LIBS=$LIBS
26398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26399 /* end confdefs.h. */
26400
26401 /* Override any GCC internal prototype to avoid an error.
26402 Use char because int might match the return type of a GCC
26403 builtin and then its argument prototype would still apply. */
26404 #ifdef __cplusplus
26405 extern "C"
26406 #endif
26407 char uncompress ();
26408 int
26409 main ()
26410 {
26411 return uncompress ();
26412 ;
26413 return 0;
26414 }
26415 _ACEOF
26416 for ac_lib in '' z; do
26417 if test -z "$ac_lib"; then
26418 ac_res="none required"
26419 else
26420 ac_res=-l$ac_lib
26421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26422 fi
26423 if ac_fn_c_try_link "$LINENO"; then :
26424 ac_cv_search_uncompress=$ac_res
26425 fi
26426 rm -f core conftest.err conftest.$ac_objext \
26427 conftest$ac_exeext
26428 if ${ac_cv_search_uncompress+:} false; then :
26429 break
26430 fi
26431 done
26432 if ${ac_cv_search_uncompress+:} false; then :
26433
26434 else
26435 ac_cv_search_uncompress=no
26436 fi
26437 rm conftest.$ac_ext
26438 LIBS=$ac_func_search_save_LIBS
26439 fi
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26441 $as_echo "$ac_cv_search_uncompress" >&6; }
26442 ac_res=$ac_cv_search_uncompress
26443 if test "$ac_res" != no; then :
26444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26445
26446 else
26447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26449 as_fn_error $? "
26450 *** uncompress() missing, zlib-devel package required
26451 See \`config.log' for more details" "$LINENO" 5; }
26452 fi
26453
26454
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26456 $as_echo_n "checking for library containing crc32... " >&6; }
26457 if ${ac_cv_search_crc32+:} false; then :
26458 $as_echo_n "(cached) " >&6
26459 else
26460 ac_func_search_save_LIBS=$LIBS
26461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h. */
26463
26464 /* Override any GCC internal prototype to avoid an error.
26465 Use char because int might match the return type of a GCC
26466 builtin and then its argument prototype would still apply. */
26467 #ifdef __cplusplus
26468 extern "C"
26469 #endif
26470 char crc32 ();
26471 int
26472 main ()
26473 {
26474 return crc32 ();
26475 ;
26476 return 0;
26477 }
26478 _ACEOF
26479 for ac_lib in '' z; do
26480 if test -z "$ac_lib"; then
26481 ac_res="none required"
26482 else
26483 ac_res=-l$ac_lib
26484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26485 fi
26486 if ac_fn_c_try_link "$LINENO"; then :
26487 ac_cv_search_crc32=$ac_res
26488 fi
26489 rm -f core conftest.err conftest.$ac_objext \
26490 conftest$ac_exeext
26491 if ${ac_cv_search_crc32+:} false; then :
26492 break
26493 fi
26494 done
26495 if ${ac_cv_search_crc32+:} false; then :
26496
26497 else
26498 ac_cv_search_crc32=no
26499 fi
26500 rm conftest.$ac_ext
26501 LIBS=$ac_func_search_save_LIBS
26502 fi
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26504 $as_echo "$ac_cv_search_crc32" >&6; }
26505 ac_res=$ac_cv_search_crc32
26506 if test "$ac_res" != no; then :
26507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26508
26509 else
26510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26512 as_fn_error $? "
26513 *** crc32() missing, zlib-devel package required
26514 See \`config.log' for more details" "$LINENO" 5; }
26515 fi
26516
26517
26518 ZLIB="-lz"
26519
26520
26521 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26522
26523
26524
26525 LIBUUID=
26526
26527 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26528 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
26529
26530 else
26531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26533 as_fn_error $? "
26534 *** uuid/uuid.h missing, libuuid-devel package required
26535 See \`config.log' for more details" "$LINENO" 5; }
26536 fi
26537
26538
26539
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26541 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26542 if ${ac_cv_search_uuid_generate+:} false; then :
26543 $as_echo_n "(cached) " >&6
26544 else
26545 ac_func_search_save_LIBS=$LIBS
26546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26547 /* end confdefs.h. */
26548
26549 /* Override any GCC internal prototype to avoid an error.
26550 Use char because int might match the return type of a GCC
26551 builtin and then its argument prototype would still apply. */
26552 #ifdef __cplusplus
26553 extern "C"
26554 #endif
26555 char uuid_generate ();
26556 int
26557 main ()
26558 {
26559 return uuid_generate ();
26560 ;
26561 return 0;
26562 }
26563 _ACEOF
26564 for ac_lib in '' uuid; do
26565 if test -z "$ac_lib"; then
26566 ac_res="none required"
26567 else
26568 ac_res=-l$ac_lib
26569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26570 fi
26571 if ac_fn_c_try_link "$LINENO"; then :
26572 ac_cv_search_uuid_generate=$ac_res
26573 fi
26574 rm -f core conftest.err conftest.$ac_objext \
26575 conftest$ac_exeext
26576 if ${ac_cv_search_uuid_generate+:} false; then :
26577 break
26578 fi
26579 done
26580 if ${ac_cv_search_uuid_generate+:} false; then :
26581
26582 else
26583 ac_cv_search_uuid_generate=no
26584 fi
26585 rm conftest.$ac_ext
26586 LIBS=$ac_func_search_save_LIBS
26587 fi
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26589 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26590 ac_res=$ac_cv_search_uuid_generate
26591 if test "$ac_res" != no; then :
26592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26593
26594 else
26595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26597 as_fn_error $? "
26598 *** uuid_generate() missing, libuuid-devel package required
26599 See \`config.log' for more details" "$LINENO" 5; }
26600 fi
26601
26602
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26604 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
26605 if ${ac_cv_search_uuid_is_null+:} false; then :
26606 $as_echo_n "(cached) " >&6
26607 else
26608 ac_func_search_save_LIBS=$LIBS
26609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26610 /* end confdefs.h. */
26611
26612 /* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26615 #ifdef __cplusplus
26616 extern "C"
26617 #endif
26618 char uuid_is_null ();
26619 int
26620 main ()
26621 {
26622 return uuid_is_null ();
26623 ;
26624 return 0;
26625 }
26626 _ACEOF
26627 for ac_lib in '' uuid; do
26628 if test -z "$ac_lib"; then
26629 ac_res="none required"
26630 else
26631 ac_res=-l$ac_lib
26632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26633 fi
26634 if ac_fn_c_try_link "$LINENO"; then :
26635 ac_cv_search_uuid_is_null=$ac_res
26636 fi
26637 rm -f core conftest.err conftest.$ac_objext \
26638 conftest$ac_exeext
26639 if ${ac_cv_search_uuid_is_null+:} false; then :
26640 break
26641 fi
26642 done
26643 if ${ac_cv_search_uuid_is_null+:} false; then :
26644
26645 else
26646 ac_cv_search_uuid_is_null=no
26647 fi
26648 rm conftest.$ac_ext
26649 LIBS=$ac_func_search_save_LIBS
26650 fi
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26652 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
26653 ac_res=$ac_cv_search_uuid_is_null
26654 if test "$ac_res" != no; then :
26655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26656
26657 else
26658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26660 as_fn_error $? "
26661 *** uuid_is_null() missing, libuuid-devel package required
26662 See \`config.log' for more details" "$LINENO" 5; }
26663 fi
26664
26665
26666 LIBUUID="-luuid"
26667
26668
26669 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26670
26671
26672
26673
26674 # Check whether --with-tirpc was given.
26675 if test "${with_tirpc+set}" = set; then :
26676 withval=$with_tirpc;
26677 else
26678 with_tirpc=check
26679 fi
26680
26681
26682 LIBTIRPC=
26683 LIBTIRPC_CFLAGS=
26684
26685 if test "x$with_tirpc" != xno; then :
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26687 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26688 if ${ac_cv_lib_tirpc_xdrmem_create+:} false; then :
26689 $as_echo_n "(cached) " >&6
26690 else
26691 ac_check_lib_save_LIBS=$LIBS
26692 LIBS="-ltirpc $LIBS"
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26695
26696 /* Override any GCC internal prototype to avoid an error.
26697 Use char because int might match the return type of a GCC
26698 builtin and then its argument prototype would still apply. */
26699 #ifdef __cplusplus
26700 extern "C"
26701 #endif
26702 char xdrmem_create ();
26703 int
26704 main ()
26705 {
26706 return xdrmem_create ();
26707 ;
26708 return 0;
26709 }
26710 _ACEOF
26711 if ac_fn_c_try_link "$LINENO"; then :
26712 ac_cv_lib_tirpc_xdrmem_create=yes
26713 else
26714 ac_cv_lib_tirpc_xdrmem_create=no
26715 fi
26716 rm -f core conftest.err conftest.$ac_objext \
26717 conftest$ac_exeext conftest.$ac_ext
26718 LIBS=$ac_check_lib_save_LIBS
26719 fi
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26721 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26722 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes; then :
26723 LIBTIRPC=-ltirpc
26724
26725 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
26726
26727
26728 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26729
26730
26731 else
26732 if test "x$with_tirpc" != xcheck; then
26733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26735 as_fn_error $? "--with-tirpc was given, but test for tirpc failed
26736 See \`config.log' for more details" "$LINENO" 5; }
26737 fi
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26739 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26740 if ${ac_cv_search_xdrmem_create+:} false; then :
26741 $as_echo_n "(cached) " >&6
26742 else
26743 ac_func_search_save_LIBS=$LIBS
26744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26745 /* end confdefs.h. */
26746
26747 /* Override any GCC internal prototype to avoid an error.
26748 Use char because int might match the return type of a GCC
26749 builtin and then its argument prototype would still apply. */
26750 #ifdef __cplusplus
26751 extern "C"
26752 #endif
26753 char xdrmem_create ();
26754 int
26755 main ()
26756 {
26757 return xdrmem_create ();
26758 ;
26759 return 0;
26760 }
26761 _ACEOF
26762 for ac_lib in '' tirpc; do
26763 if test -z "$ac_lib"; then
26764 ac_res="none required"
26765 else
26766 ac_res=-l$ac_lib
26767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26768 fi
26769 if ac_fn_c_try_link "$LINENO"; then :
26770 ac_cv_search_xdrmem_create=$ac_res
26771 fi
26772 rm -f core conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext
26774 if ${ac_cv_search_xdrmem_create+:} false; then :
26775 break
26776 fi
26777 done
26778 if ${ac_cv_search_xdrmem_create+:} false; then :
26779
26780 else
26781 ac_cv_search_xdrmem_create=no
26782 fi
26783 rm conftest.$ac_ext
26784 LIBS=$ac_func_search_save_LIBS
26785 fi
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26787 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26788 ac_res=$ac_cv_search_xdrmem_create
26789 if test "$ac_res" != no; then :
26790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26791
26792 else
26793
26794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26796 as_fn_error $? "xdrmem_create() requires tirpc or libc
26797 See \`config.log' for more details" "$LINENO" 5; }
26798 fi
26799
26800
26801 fi
26802
26803 else
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26805 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26806 if ${ac_cv_search_xdrmem_create+:} false; then :
26807 $as_echo_n "(cached) " >&6
26808 else
26809 ac_func_search_save_LIBS=$LIBS
26810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26811 /* end confdefs.h. */
26812
26813 /* Override any GCC internal prototype to avoid an error.
26814 Use char because int might match the return type of a GCC
26815 builtin and then its argument prototype would still apply. */
26816 #ifdef __cplusplus
26817 extern "C"
26818 #endif
26819 char xdrmem_create ();
26820 int
26821 main ()
26822 {
26823 return xdrmem_create ();
26824 ;
26825 return 0;
26826 }
26827 _ACEOF
26828 for ac_lib in '' tirpc; do
26829 if test -z "$ac_lib"; then
26830 ac_res="none required"
26831 else
26832 ac_res=-l$ac_lib
26833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26834 fi
26835 if ac_fn_c_try_link "$LINENO"; then :
26836 ac_cv_search_xdrmem_create=$ac_res
26837 fi
26838 rm -f core conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext
26840 if ${ac_cv_search_xdrmem_create+:} false; then :
26841 break
26842 fi
26843 done
26844 if ${ac_cv_search_xdrmem_create+:} false; then :
26845
26846 else
26847 ac_cv_search_xdrmem_create=no
26848 fi
26849 rm conftest.$ac_ext
26850 LIBS=$ac_func_search_save_LIBS
26851 fi
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26853 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26854 ac_res=$ac_cv_search_xdrmem_create
26855 if test "$ac_res" != no; then :
26856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26857
26858 else
26859
26860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26862 as_fn_error $? "xdrmem_create() requires libc
26863 See \`config.log' for more details" "$LINENO" 5; }
26864 fi
26865
26866
26867 fi
26868
26869
26870 LIBBLKID=
26871
26872 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26873 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
26874
26875 else
26876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26878 as_fn_error $? "
26879 *** blkid.h missing, libblkid-devel package required
26880 See \`config.log' for more details" "$LINENO" 5; }
26881 fi
26882
26883
26884
26885 LIBBLKID="-lblkid"
26886
26887
26888 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26889
26890
26891
26892 LIBATTR=
26893
26894 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26895 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
26896
26897 else
26898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26900 as_fn_error $? "
26901 *** attr/xattr.h missing, libattr-devel package required
26902 See \`config.log' for more details" "$LINENO" 5; }
26903 fi
26904
26905
26906
26907 LIBATTR="-lattr"
26908
26909
26910 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26911
26912
26913
26914 LIBUDEV=
26915
26916 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26917 if test "x$ac_cv_header_libudev_h" = xyes; then :
26918
26919 user_libudev=yes
26920 LIBUDEV="-ludev"
26921
26922
26923 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26924
26925
26926 else
26927
26928 user_libudev=no
26929
26930 fi
26931
26932
26933
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26935 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26936 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26937 $as_echo_n "(cached) " >&6
26938 else
26939 ac_func_search_save_LIBS=$LIBS
26940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26941 /* end confdefs.h. */
26942
26943 /* Override any GCC internal prototype to avoid an error.
26944 Use char because int might match the return type of a GCC
26945 builtin and then its argument prototype would still apply. */
26946 #ifdef __cplusplus
26947 extern "C"
26948 #endif
26949 char udev_device_get_is_initialized ();
26950 int
26951 main ()
26952 {
26953 return udev_device_get_is_initialized ();
26954 ;
26955 return 0;
26956 }
26957 _ACEOF
26958 for ac_lib in '' udev; do
26959 if test -z "$ac_lib"; then
26960 ac_res="none required"
26961 else
26962 ac_res=-l$ac_lib
26963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26964 fi
26965 if ac_fn_c_try_link "$LINENO"; then :
26966 ac_cv_search_udev_device_get_is_initialized=$ac_res
26967 fi
26968 rm -f core conftest.err conftest.$ac_objext \
26969 conftest$ac_exeext
26970 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26971 break
26972 fi
26973 done
26974 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26975
26976 else
26977 ac_cv_search_udev_device_get_is_initialized=no
26978 fi
26979 rm conftest.$ac_ext
26980 LIBS=$ac_func_search_save_LIBS
26981 fi
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26983 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26984 ac_res=$ac_cv_search_udev_device_get_is_initialized
26985 if test "$ac_res" != no; then :
26986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26987
26988
26989 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26990
26991 fi
26992
26993
26994
26995
26996 LIBAIO=
26997
26998 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
26999 if test "x$ac_cv_header_libaio_h" = xyes; then :
27000
27001 user_libaio=yes
27002 LIBAIO="-laio"
27003
27004
27005 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
27006
27007
27008 else
27009
27010 user_libaio=no
27011
27012 fi
27013
27014
27015
27016
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
27018 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
27019
27020 saved_flags="$CFLAGS"
27021 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
27022
27023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27024 /* end confdefs.h. */
27025
27026 int
27027 main ()
27028 {
27029
27030 ;
27031 return 0;
27032 }
27033 _ACEOF
27034 if ac_fn_c_try_compile "$LINENO"; then :
27035
27036 FRAME_LARGER_THAN=-Wframe-larger-than=1024
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27038 $as_echo "yes" >&6; }
27039
27040 else
27041
27042 FRAME_LARGER_THAN=
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27044 $as_echo "no" >&6; }
27045
27046 fi
27047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048
27049 CFLAGS="$saved_flags"
27050
27051
27052
27053 if test "x$runstatedir" = x; then
27054 runstatedir='${localstatedir}/run'
27055
27056 fi
27057
27058
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27060 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27062 /* end confdefs.h. */
27063
27064 #include <sys/sysmacros.h>
27065
27066 int
27067 main ()
27068 {
27069
27070 int k;
27071 k = makedev(0,0);
27072
27073 ;
27074 return 0;
27075 }
27076 _ACEOF
27077 if ac_fn_c_try_compile "$LINENO"; then :
27078
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27080 $as_echo "yes" >&6; }
27081
27082 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27083
27084
27085 else
27086
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27088 $as_echo "no" >&6; }
27089
27090 fi
27091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27092
27093
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27095 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h. */
27098
27099 #include <sys/mkdev.h>
27100
27101 int
27102 main ()
27103 {
27104
27105 int k;
27106 k = makedev(0,0);
27107
27108 ;
27109 return 0;
27110 }
27111 _ACEOF
27112 if ac_fn_c_try_compile "$LINENO"; then :
27113
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27115 $as_echo "yes" >&6; }
27116
27117 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
27118
27119
27120 else
27121
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27123 $as_echo "no" >&6; }
27124
27125 fi
27126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27127
27128
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27130 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
27131
27132 saved_flags="$CFLAGS"
27133 CFLAGS="$CFLAGS -Wno-format-truncation"
27134
27135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27136 /* end confdefs.h. */
27137
27138 int
27139 main ()
27140 {
27141
27142 ;
27143 return 0;
27144 }
27145 _ACEOF
27146 if ac_fn_c_try_compile "$LINENO"; then :
27147
27148 NO_FORMAT_TRUNCATION=-Wno-format-truncation
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27150 $as_echo "yes" >&6; }
27151
27152 else
27153
27154 NO_FORMAT_TRUNCATION=
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27156 $as_echo "no" >&6; }
27157
27158 fi
27159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27160
27161 CFLAGS="$saved_flags"
27162
27163
27164
27165
27166 ZONENAME="echo global"
27167
27168
27169
27170
27171
27172 for ac_func in mlockall
27173 do :
27174 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27175 if test "x$ac_cv_func_mlockall" = xyes; then :
27176 cat >>confdefs.h <<_ACEOF
27177 #define HAVE_MLOCKALL 1
27178 _ACEOF
27179
27180 fi
27181 done
27182
27183 ;;
27184 all)
27185
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
27187 $as_echo_n "checking for dkms.conf file... " >&6; }
27188 if test -e dkms.conf; then :
27189
27190 as_fn_error $? "
27191 *** ZFS should not be manually built in the DKMS source tree.
27192 *** Remove all ZFS packages before compiling the ZoL sources.
27193 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
27194
27195 else
27196
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27198 $as_echo "not found" >&6; }
27199
27200 fi
27201
27202
27203
27204 # Check whether --with-mounthelperdir was given.
27205 if test "${with_mounthelperdir+set}" = set; then :
27206 withval=$with_mounthelperdir; mounthelperdir=$withval
27207 else
27208 mounthelperdir=/sbin
27209 fi
27210
27211
27212
27213
27214
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
27216 $as_echo_n "checking for udev directories... " >&6; }
27217
27218 # Check whether --with-udevdir was given.
27219 if test "${with_udevdir+set}" = set; then :
27220 withval=$with_udevdir; udevdir=$withval
27221 else
27222 udevdir=check
27223 fi
27224
27225
27226 if test "x$udevdir" = xcheck; then :
27227
27228 path1=/lib/udev
27229 path2=/usr/lib/udev
27230 default=$path2
27231
27232 if test -d "$path1"; then :
27233 udevdir="$path1"
27234 else
27235
27236 if test -d "$path2"; then :
27237 udevdir="$path2"
27238 else
27239 udevdir="$default"
27240 fi
27241
27242 fi
27243
27244 fi
27245
27246
27247 # Check whether --with-udevruledir was given.
27248 if test "${with_udevruledir+set}" = set; then :
27249 withval=$with_udevruledir; udevruledir=$withval
27250 else
27251 udevruledir="${udevdir}/rules.d"
27252 fi
27253
27254
27255
27256
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27258 $as_echo "$udevdir;$udevruledir" >&6; }
27259
27260
27261 # Check whether --enable-systemd was given.
27262 if test "${enable_systemd+set}" = set; then :
27263 enableval=$enable_systemd;
27264 else
27265 enable_systemd=yes
27266 fi
27267
27268
27269
27270 # Check whether --with-systemdunitdir was given.
27271 if test "${with_systemdunitdir+set}" = set; then :
27272 withval=$with_systemdunitdir; systemdunitdir=$withval
27273 else
27274 systemdunitdir=/usr/lib/systemd/system
27275 fi
27276
27277
27278
27279 # Check whether --with-systemdpresetdir was given.
27280 if test "${with_systemdpresetdir+set}" = set; then :
27281 withval=$with_systemdpresetdir; systemdpresetdir=$withval
27282 else
27283 systemdpresetdir=/usr/lib/systemd/system-preset
27284 fi
27285
27286
27287
27288 # Check whether --with-systemdmodulesloaddir was given.
27289 if test "${with_systemdmodulesloaddir+set}" = set; then :
27290 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
27291 else
27292 systemdmodulesloaddir=/usr/lib/modules-load.d
27293 fi
27294
27295
27296
27297 if test "x$enable_systemd" = xyes; then :
27298
27299 ZFS_INIT_SYSTEMD=systemd
27300 ZFS_MODULE_LOAD=modules-load.d
27301 modulesloaddir=$systemdmodulesloaddir
27302
27303 fi
27304
27305
27306
27307
27308
27309
27310
27311
27312 # Check whether --enable-sysvinit was given.
27313 if test "${enable_sysvinit+set}" = set; then :
27314 enableval=$enable_sysvinit;
27315 else
27316 enable_sysvinit=yes
27317 fi
27318
27319
27320 if test "x$enable_sysvinit" = xyes; then :
27321 ZFS_INIT_SYSV=init.d
27322 fi
27323
27324
27325
27326
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27328 $as_echo_n "checking for dracut directory... " >&6; }
27329
27330 # Check whether --with-dracutdir was given.
27331 if test "${with_dracutdir+set}" = set; then :
27332 withval=$with_dracutdir; dracutdir=$withval
27333 else
27334 dracutdir=check
27335 fi
27336
27337
27338 if test "x$dracutdir" = xcheck; then :
27339
27340 path1=/usr/share/dracut
27341 path2=/usr/lib/dracut
27342 default=$path2
27343
27344 if test -d "$path1"; then :
27345 dracutdir="$path1"
27346 else
27347
27348 if test -d "$path2"; then :
27349 dracutdir="$path2"
27350 else
27351 dracutdir="$default"
27352 fi
27353
27354 fi
27355
27356 fi
27357
27358
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27360 $as_echo "$dracutdir" >&6; }
27361
27362
27363 ZLIB=
27364
27365 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27366 if test "x$ac_cv_header_zlib_h" = xyes; then :
27367
27368 else
27369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27371 as_fn_error $? "
27372 *** zlib.h missing, zlib-devel package required
27373 See \`config.log' for more details" "$LINENO" 5; }
27374 fi
27375
27376
27377
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27379 $as_echo_n "checking for library containing compress2... " >&6; }
27380 if ${ac_cv_search_compress2+:} false; then :
27381 $as_echo_n "(cached) " >&6
27382 else
27383 ac_func_search_save_LIBS=$LIBS
27384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27385 /* end confdefs.h. */
27386
27387 /* Override any GCC internal prototype to avoid an error.
27388 Use char because int might match the return type of a GCC
27389 builtin and then its argument prototype would still apply. */
27390 #ifdef __cplusplus
27391 extern "C"
27392 #endif
27393 char compress2 ();
27394 int
27395 main ()
27396 {
27397 return compress2 ();
27398 ;
27399 return 0;
27400 }
27401 _ACEOF
27402 for ac_lib in '' z; do
27403 if test -z "$ac_lib"; then
27404 ac_res="none required"
27405 else
27406 ac_res=-l$ac_lib
27407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27408 fi
27409 if ac_fn_c_try_link "$LINENO"; then :
27410 ac_cv_search_compress2=$ac_res
27411 fi
27412 rm -f core conftest.err conftest.$ac_objext \
27413 conftest$ac_exeext
27414 if ${ac_cv_search_compress2+:} false; then :
27415 break
27416 fi
27417 done
27418 if ${ac_cv_search_compress2+:} false; then :
27419
27420 else
27421 ac_cv_search_compress2=no
27422 fi
27423 rm conftest.$ac_ext
27424 LIBS=$ac_func_search_save_LIBS
27425 fi
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27427 $as_echo "$ac_cv_search_compress2" >&6; }
27428 ac_res=$ac_cv_search_compress2
27429 if test "$ac_res" != no; then :
27430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27431
27432 else
27433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27435 as_fn_error $? "
27436 *** compress2() missing, zlib-devel package required
27437 See \`config.log' for more details" "$LINENO" 5; }
27438 fi
27439
27440
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27442 $as_echo_n "checking for library containing uncompress... " >&6; }
27443 if ${ac_cv_search_uncompress+:} false; then :
27444 $as_echo_n "(cached) " >&6
27445 else
27446 ac_func_search_save_LIBS=$LIBS
27447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27448 /* end confdefs.h. */
27449
27450 /* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27453 #ifdef __cplusplus
27454 extern "C"
27455 #endif
27456 char uncompress ();
27457 int
27458 main ()
27459 {
27460 return uncompress ();
27461 ;
27462 return 0;
27463 }
27464 _ACEOF
27465 for ac_lib in '' z; do
27466 if test -z "$ac_lib"; then
27467 ac_res="none required"
27468 else
27469 ac_res=-l$ac_lib
27470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27471 fi
27472 if ac_fn_c_try_link "$LINENO"; then :
27473 ac_cv_search_uncompress=$ac_res
27474 fi
27475 rm -f core conftest.err conftest.$ac_objext \
27476 conftest$ac_exeext
27477 if ${ac_cv_search_uncompress+:} false; then :
27478 break
27479 fi
27480 done
27481 if ${ac_cv_search_uncompress+:} false; then :
27482
27483 else
27484 ac_cv_search_uncompress=no
27485 fi
27486 rm conftest.$ac_ext
27487 LIBS=$ac_func_search_save_LIBS
27488 fi
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27490 $as_echo "$ac_cv_search_uncompress" >&6; }
27491 ac_res=$ac_cv_search_uncompress
27492 if test "$ac_res" != no; then :
27493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27494
27495 else
27496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27498 as_fn_error $? "
27499 *** uncompress() missing, zlib-devel package required
27500 See \`config.log' for more details" "$LINENO" 5; }
27501 fi
27502
27503
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27505 $as_echo_n "checking for library containing crc32... " >&6; }
27506 if ${ac_cv_search_crc32+:} false; then :
27507 $as_echo_n "(cached) " >&6
27508 else
27509 ac_func_search_save_LIBS=$LIBS
27510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h. */
27512
27513 /* Override any GCC internal prototype to avoid an error.
27514 Use char because int might match the return type of a GCC
27515 builtin and then its argument prototype would still apply. */
27516 #ifdef __cplusplus
27517 extern "C"
27518 #endif
27519 char crc32 ();
27520 int
27521 main ()
27522 {
27523 return crc32 ();
27524 ;
27525 return 0;
27526 }
27527 _ACEOF
27528 for ac_lib in '' z; do
27529 if test -z "$ac_lib"; then
27530 ac_res="none required"
27531 else
27532 ac_res=-l$ac_lib
27533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27534 fi
27535 if ac_fn_c_try_link "$LINENO"; then :
27536 ac_cv_search_crc32=$ac_res
27537 fi
27538 rm -f core conftest.err conftest.$ac_objext \
27539 conftest$ac_exeext
27540 if ${ac_cv_search_crc32+:} false; then :
27541 break
27542 fi
27543 done
27544 if ${ac_cv_search_crc32+:} false; then :
27545
27546 else
27547 ac_cv_search_crc32=no
27548 fi
27549 rm conftest.$ac_ext
27550 LIBS=$ac_func_search_save_LIBS
27551 fi
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27553 $as_echo "$ac_cv_search_crc32" >&6; }
27554 ac_res=$ac_cv_search_crc32
27555 if test "$ac_res" != no; then :
27556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27557
27558 else
27559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27561 as_fn_error $? "
27562 *** crc32() missing, zlib-devel package required
27563 See \`config.log' for more details" "$LINENO" 5; }
27564 fi
27565
27566
27567 ZLIB="-lz"
27568
27569
27570 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27571
27572
27573
27574 LIBUUID=
27575
27576 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27577 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
27578
27579 else
27580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27582 as_fn_error $? "
27583 *** uuid/uuid.h missing, libuuid-devel package required
27584 See \`config.log' for more details" "$LINENO" 5; }
27585 fi
27586
27587
27588
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27590 $as_echo_n "checking for library containing uuid_generate... " >&6; }
27591 if ${ac_cv_search_uuid_generate+:} false; then :
27592 $as_echo_n "(cached) " >&6
27593 else
27594 ac_func_search_save_LIBS=$LIBS
27595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596 /* end confdefs.h. */
27597
27598 /* Override any GCC internal prototype to avoid an error.
27599 Use char because int might match the return type of a GCC
27600 builtin and then its argument prototype would still apply. */
27601 #ifdef __cplusplus
27602 extern "C"
27603 #endif
27604 char uuid_generate ();
27605 int
27606 main ()
27607 {
27608 return uuid_generate ();
27609 ;
27610 return 0;
27611 }
27612 _ACEOF
27613 for ac_lib in '' uuid; do
27614 if test -z "$ac_lib"; then
27615 ac_res="none required"
27616 else
27617 ac_res=-l$ac_lib
27618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27619 fi
27620 if ac_fn_c_try_link "$LINENO"; then :
27621 ac_cv_search_uuid_generate=$ac_res
27622 fi
27623 rm -f core conftest.err conftest.$ac_objext \
27624 conftest$ac_exeext
27625 if ${ac_cv_search_uuid_generate+:} false; then :
27626 break
27627 fi
27628 done
27629 if ${ac_cv_search_uuid_generate+:} false; then :
27630
27631 else
27632 ac_cv_search_uuid_generate=no
27633 fi
27634 rm conftest.$ac_ext
27635 LIBS=$ac_func_search_save_LIBS
27636 fi
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27638 $as_echo "$ac_cv_search_uuid_generate" >&6; }
27639 ac_res=$ac_cv_search_uuid_generate
27640 if test "$ac_res" != no; then :
27641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27642
27643 else
27644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27646 as_fn_error $? "
27647 *** uuid_generate() missing, libuuid-devel package required
27648 See \`config.log' for more details" "$LINENO" 5; }
27649 fi
27650
27651
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27653 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
27654 if ${ac_cv_search_uuid_is_null+:} false; then :
27655 $as_echo_n "(cached) " >&6
27656 else
27657 ac_func_search_save_LIBS=$LIBS
27658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h. */
27660
27661 /* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27664 #ifdef __cplusplus
27665 extern "C"
27666 #endif
27667 char uuid_is_null ();
27668 int
27669 main ()
27670 {
27671 return uuid_is_null ();
27672 ;
27673 return 0;
27674 }
27675 _ACEOF
27676 for ac_lib in '' uuid; do
27677 if test -z "$ac_lib"; then
27678 ac_res="none required"
27679 else
27680 ac_res=-l$ac_lib
27681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27682 fi
27683 if ac_fn_c_try_link "$LINENO"; then :
27684 ac_cv_search_uuid_is_null=$ac_res
27685 fi
27686 rm -f core conftest.err conftest.$ac_objext \
27687 conftest$ac_exeext
27688 if ${ac_cv_search_uuid_is_null+:} false; then :
27689 break
27690 fi
27691 done
27692 if ${ac_cv_search_uuid_is_null+:} false; then :
27693
27694 else
27695 ac_cv_search_uuid_is_null=no
27696 fi
27697 rm conftest.$ac_ext
27698 LIBS=$ac_func_search_save_LIBS
27699 fi
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27701 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
27702 ac_res=$ac_cv_search_uuid_is_null
27703 if test "$ac_res" != no; then :
27704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27705
27706 else
27707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27709 as_fn_error $? "
27710 *** uuid_is_null() missing, libuuid-devel package required
27711 See \`config.log' for more details" "$LINENO" 5; }
27712 fi
27713
27714
27715 LIBUUID="-luuid"
27716
27717
27718 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27719
27720
27721
27722
27723 # Check whether --with-tirpc was given.
27724 if test "${with_tirpc+set}" = set; then :
27725 withval=$with_tirpc;
27726 else
27727 with_tirpc=check
27728 fi
27729
27730
27731 LIBTIRPC=
27732 LIBTIRPC_CFLAGS=
27733
27734 if test "x$with_tirpc" != xno; then :
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27736 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27737 if ${ac_cv_lib_tirpc_xdrmem_create+:} false; then :
27738 $as_echo_n "(cached) " >&6
27739 else
27740 ac_check_lib_save_LIBS=$LIBS
27741 LIBS="-ltirpc $LIBS"
27742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h. */
27744
27745 /* Override any GCC internal prototype to avoid an error.
27746 Use char because int might match the return type of a GCC
27747 builtin and then its argument prototype would still apply. */
27748 #ifdef __cplusplus
27749 extern "C"
27750 #endif
27751 char xdrmem_create ();
27752 int
27753 main ()
27754 {
27755 return xdrmem_create ();
27756 ;
27757 return 0;
27758 }
27759 _ACEOF
27760 if ac_fn_c_try_link "$LINENO"; then :
27761 ac_cv_lib_tirpc_xdrmem_create=yes
27762 else
27763 ac_cv_lib_tirpc_xdrmem_create=no
27764 fi
27765 rm -f core conftest.err conftest.$ac_objext \
27766 conftest$ac_exeext conftest.$ac_ext
27767 LIBS=$ac_check_lib_save_LIBS
27768 fi
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27770 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27771 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes; then :
27772 LIBTIRPC=-ltirpc
27773
27774 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
27775
27776
27777 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27778
27779
27780 else
27781 if test "x$with_tirpc" != xcheck; then
27782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27784 as_fn_error $? "--with-tirpc was given, but test for tirpc failed
27785 See \`config.log' for more details" "$LINENO" 5; }
27786 fi
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27788 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27789 if ${ac_cv_search_xdrmem_create+:} false; then :
27790 $as_echo_n "(cached) " >&6
27791 else
27792 ac_func_search_save_LIBS=$LIBS
27793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27794 /* end confdefs.h. */
27795
27796 /* Override any GCC internal prototype to avoid an error.
27797 Use char because int might match the return type of a GCC
27798 builtin and then its argument prototype would still apply. */
27799 #ifdef __cplusplus
27800 extern "C"
27801 #endif
27802 char xdrmem_create ();
27803 int
27804 main ()
27805 {
27806 return xdrmem_create ();
27807 ;
27808 return 0;
27809 }
27810 _ACEOF
27811 for ac_lib in '' tirpc; do
27812 if test -z "$ac_lib"; then
27813 ac_res="none required"
27814 else
27815 ac_res=-l$ac_lib
27816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27817 fi
27818 if ac_fn_c_try_link "$LINENO"; then :
27819 ac_cv_search_xdrmem_create=$ac_res
27820 fi
27821 rm -f core conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext
27823 if ${ac_cv_search_xdrmem_create+:} false; then :
27824 break
27825 fi
27826 done
27827 if ${ac_cv_search_xdrmem_create+:} false; then :
27828
27829 else
27830 ac_cv_search_xdrmem_create=no
27831 fi
27832 rm conftest.$ac_ext
27833 LIBS=$ac_func_search_save_LIBS
27834 fi
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27836 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27837 ac_res=$ac_cv_search_xdrmem_create
27838 if test "$ac_res" != no; then :
27839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27840
27841 else
27842
27843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27845 as_fn_error $? "xdrmem_create() requires tirpc or libc
27846 See \`config.log' for more details" "$LINENO" 5; }
27847 fi
27848
27849
27850 fi
27851
27852 else
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27854 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27855 if ${ac_cv_search_xdrmem_create+:} false; then :
27856 $as_echo_n "(cached) " >&6
27857 else
27858 ac_func_search_save_LIBS=$LIBS
27859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27860 /* end confdefs.h. */
27861
27862 /* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27865 #ifdef __cplusplus
27866 extern "C"
27867 #endif
27868 char xdrmem_create ();
27869 int
27870 main ()
27871 {
27872 return xdrmem_create ();
27873 ;
27874 return 0;
27875 }
27876 _ACEOF
27877 for ac_lib in '' tirpc; do
27878 if test -z "$ac_lib"; then
27879 ac_res="none required"
27880 else
27881 ac_res=-l$ac_lib
27882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27883 fi
27884 if ac_fn_c_try_link "$LINENO"; then :
27885 ac_cv_search_xdrmem_create=$ac_res
27886 fi
27887 rm -f core conftest.err conftest.$ac_objext \
27888 conftest$ac_exeext
27889 if ${ac_cv_search_xdrmem_create+:} false; then :
27890 break
27891 fi
27892 done
27893 if ${ac_cv_search_xdrmem_create+:} false; then :
27894
27895 else
27896 ac_cv_search_xdrmem_create=no
27897 fi
27898 rm conftest.$ac_ext
27899 LIBS=$ac_func_search_save_LIBS
27900 fi
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27902 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27903 ac_res=$ac_cv_search_xdrmem_create
27904 if test "$ac_res" != no; then :
27905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27906
27907 else
27908
27909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27911 as_fn_error $? "xdrmem_create() requires libc
27912 See \`config.log' for more details" "$LINENO" 5; }
27913 fi
27914
27915
27916 fi
27917
27918
27919 LIBBLKID=
27920
27921 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27922 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
27923
27924 else
27925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27927 as_fn_error $? "
27928 *** blkid.h missing, libblkid-devel package required
27929 See \`config.log' for more details" "$LINENO" 5; }
27930 fi
27931
27932
27933
27934 LIBBLKID="-lblkid"
27935
27936
27937 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27938
27939
27940
27941 LIBATTR=
27942
27943 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27944 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
27945
27946 else
27947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27949 as_fn_error $? "
27950 *** attr/xattr.h missing, libattr-devel package required
27951 See \`config.log' for more details" "$LINENO" 5; }
27952 fi
27953
27954
27955
27956 LIBATTR="-lattr"
27957
27958
27959 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27960
27961
27962
27963 LIBUDEV=
27964
27965 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27966 if test "x$ac_cv_header_libudev_h" = xyes; then :
27967
27968 user_libudev=yes
27969 LIBUDEV="-ludev"
27970
27971
27972 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27973
27974
27975 else
27976
27977 user_libudev=no
27978
27979 fi
27980
27981
27982
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27984 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27985 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27986 $as_echo_n "(cached) " >&6
27987 else
27988 ac_func_search_save_LIBS=$LIBS
27989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27990 /* end confdefs.h. */
27991
27992 /* Override any GCC internal prototype to avoid an error.
27993 Use char because int might match the return type of a GCC
27994 builtin and then its argument prototype would still apply. */
27995 #ifdef __cplusplus
27996 extern "C"
27997 #endif
27998 char udev_device_get_is_initialized ();
27999 int
28000 main ()
28001 {
28002 return udev_device_get_is_initialized ();
28003 ;
28004 return 0;
28005 }
28006 _ACEOF
28007 for ac_lib in '' udev; do
28008 if test -z "$ac_lib"; then
28009 ac_res="none required"
28010 else
28011 ac_res=-l$ac_lib
28012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28013 fi
28014 if ac_fn_c_try_link "$LINENO"; then :
28015 ac_cv_search_udev_device_get_is_initialized=$ac_res
28016 fi
28017 rm -f core conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext
28019 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
28020 break
28021 fi
28022 done
28023 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
28024
28025 else
28026 ac_cv_search_udev_device_get_is_initialized=no
28027 fi
28028 rm conftest.$ac_ext
28029 LIBS=$ac_func_search_save_LIBS
28030 fi
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
28032 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
28033 ac_res=$ac_cv_search_udev_device_get_is_initialized
28034 if test "$ac_res" != no; then :
28035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28036
28037
28038 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
28039
28040 fi
28041
28042
28043
28044
28045 LIBAIO=
28046
28047 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
28048 if test "x$ac_cv_header_libaio_h" = xyes; then :
28049
28050 user_libaio=yes
28051 LIBAIO="-laio"
28052
28053
28054 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
28055
28056
28057 else
28058
28059 user_libaio=no
28060
28061 fi
28062
28063
28064
28065
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
28067 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
28068
28069 saved_flags="$CFLAGS"
28070 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
28071
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h. */
28074
28075 int
28076 main ()
28077 {
28078
28079 ;
28080 return 0;
28081 }
28082 _ACEOF
28083 if ac_fn_c_try_compile "$LINENO"; then :
28084
28085 FRAME_LARGER_THAN=-Wframe-larger-than=1024
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28087 $as_echo "yes" >&6; }
28088
28089 else
28090
28091 FRAME_LARGER_THAN=
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28093 $as_echo "no" >&6; }
28094
28095 fi
28096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28097
28098 CFLAGS="$saved_flags"
28099
28100
28101
28102 if test "x$runstatedir" = x; then
28103 runstatedir='${localstatedir}/run'
28104
28105 fi
28106
28107
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
28109 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
28110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28111 /* end confdefs.h. */
28112
28113 #include <sys/sysmacros.h>
28114
28115 int
28116 main ()
28117 {
28118
28119 int k;
28120 k = makedev(0,0);
28121
28122 ;
28123 return 0;
28124 }
28125 _ACEOF
28126 if ac_fn_c_try_compile "$LINENO"; then :
28127
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28129 $as_echo "yes" >&6; }
28130
28131 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
28132
28133
28134 else
28135
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28137 $as_echo "no" >&6; }
28138
28139 fi
28140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28141
28142
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
28144 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
28145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28146 /* end confdefs.h. */
28147
28148 #include <sys/mkdev.h>
28149
28150 int
28151 main ()
28152 {
28153
28154 int k;
28155 k = makedev(0,0);
28156
28157 ;
28158 return 0;
28159 }
28160 _ACEOF
28161 if ac_fn_c_try_compile "$LINENO"; then :
28162
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28164 $as_echo "yes" >&6; }
28165
28166 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
28167
28168
28169 else
28170
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28172 $as_echo "no" >&6; }
28173
28174 fi
28175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176
28177
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
28179 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
28180
28181 saved_flags="$CFLAGS"
28182 CFLAGS="$CFLAGS -Wno-format-truncation"
28183
28184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28185 /* end confdefs.h. */
28186
28187 int
28188 main ()
28189 {
28190
28191 ;
28192 return 0;
28193 }
28194 _ACEOF
28195 if ac_fn_c_try_compile "$LINENO"; then :
28196
28197 NO_FORMAT_TRUNCATION=-Wno-format-truncation
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28199 $as_echo "yes" >&6; }
28200
28201 else
28202
28203 NO_FORMAT_TRUNCATION=
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28205 $as_echo "no" >&6; }
28206
28207 fi
28208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28209
28210 CFLAGS="$saved_flags"
28211
28212
28213
28214
28215 ZONENAME="echo global"
28216
28217
28218
28219
28220
28221 for ac_func in mlockall
28222 do :
28223 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
28224 if test "x$ac_cv_func_mlockall" = xyes; then :
28225 cat >>confdefs.h <<_ACEOF
28226 #define HAVE_MLOCKALL 1
28227 _ACEOF
28228
28229 fi
28230 done
28231
28232
28233
28234
28235
28236 # Check whether --with-linux was given.
28237 if test "${with_linux+set}" = set; then :
28238 withval=$with_linux; kernelsrc="$withval"
28239 fi
28240
28241
28242
28243 # Check whether --with-linux-obj was given.
28244 if test "${with_linux_obj+set}" = set; then :
28245 withval=$with_linux_obj; kernelbuild="$withval"
28246 fi
28247
28248
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28250 $as_echo_n "checking kernel source directory... " >&6; }
28251 if test -z "$kernelsrc"; then :
28252
28253 if test -e "/lib/modules/$(uname -r)/source"; then :
28254
28255 headersdir="/lib/modules/$(uname -r)/source"
28256 sourcelink=$(readlink -f "$headersdir")
28257
28258 elif test -e "/lib/modules/$(uname -r)/build"; then :
28259
28260 headersdir="/lib/modules/$(uname -r)/build"
28261 sourcelink=$(readlink -f "$headersdir")
28262
28263 else
28264
28265 sourcelink=$(ls -1d /usr/src/kernels/* \
28266 /usr/src/linux-* \
28267 2>/dev/null | grep -v obj | tail -1)
28268
28269 fi
28270
28271 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28272
28273 kernelsrc=`readlink -f ${sourcelink}`
28274
28275 else
28276
28277 kernelsrc="Not found"
28278
28279 fi
28280
28281 else
28282
28283 if test "$kernelsrc" = "NONE"; then :
28284
28285 kernsrcver=NONE
28286
28287 fi
28288 withlinux=yes
28289
28290 fi
28291
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28293 $as_echo "$kernelsrc" >&6; }
28294 if test ! -d "$kernelsrc"; then :
28295
28296 as_fn_error $? "
28297 *** Please make sure the kernel devel package for your distribution
28298 *** is installed and then try again. If that fails, you can specify the
28299 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28300
28301 fi
28302
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28304 $as_echo_n "checking kernel build directory... " >&6; }
28305 if test -z "$kernelbuild"; then :
28306
28307 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then :
28308
28309 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
28310
28311 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28312
28313 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28314
28315 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
28316
28317 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
28318
28319 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
28320
28321 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
28322
28323 else
28324
28325 kernelbuild=${kernelsrc}
28326
28327 fi
28328
28329 fi
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28331 $as_echo "$kernelbuild" >&6; }
28332
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28334 $as_echo_n "checking kernel source version... " >&6; }
28335 utsrelease1=$kernelbuild/include/linux/version.h
28336 utsrelease2=$kernelbuild/include/linux/utsrelease.h
28337 utsrelease3=$kernelbuild/include/generated/utsrelease.h
28338 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
28339
28340 utsrelease=linux/version.h
28341
28342 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
28343
28344 utsrelease=linux/utsrelease.h
28345
28346 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
28347
28348 utsrelease=generated/utsrelease.h
28349
28350 fi
28351
28352 if test "$utsrelease"; then :
28353
28354 kernsrcver=`(echo "#include <$utsrelease>";
28355 echo "kernsrcver=UTS_RELEASE") |
28356 cpp -I $kernelbuild/include |
28357 grep "^kernsrcver=" | cut -d \" -f 2`
28358
28359 if test -z "$kernsrcver"; then :
28360
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28362 $as_echo "Not found" >&6; }
28363 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
28364
28365 fi
28366
28367 else
28368
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28370 $as_echo "Not found" >&6; }
28371 if test "x$enable_linux_builtin" != xyes; then
28372 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28373 else
28374 as_fn_error $? "
28375 *** Cannot find UTS_RELEASE definition.
28376 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28377 fi
28378
28379 fi
28380
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28382 $as_echo "$kernsrcver" >&6; }
28383
28384 LINUX=${kernelsrc}
28385 LINUX_OBJ=${kernelbuild}
28386 LINUX_VERSION=${kernsrcver}
28387
28388
28389
28390
28391
28392
28393 modpost=$LINUX/scripts/Makefile.modpost
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28395 $as_echo_n "checking kernel file name for module symbols... " >&6; }
28396 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
28397
28398 if grep -q Modules.symvers $modpost; then :
28399
28400 LINUX_SYMBOLS=Modules.symvers
28401
28402 else
28403
28404 LINUX_SYMBOLS=Module.symvers
28405
28406 fi
28407
28408 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28409
28410 as_fn_error $? "
28411 *** Please make sure the kernel devel package for your distribution
28412 *** is installed. If you are building with a custom kernel, make sure the
28413 *** kernel is configured, built, and the '--with-linux=PATH' configure
28414 *** option refers to the location of the kernel source." "$LINENO" 5
28415
28416 fi
28417
28418 else
28419
28420 LINUX_SYMBOLS=NONE
28421
28422 fi
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28424 $as_echo "$LINUX_SYMBOLS" >&6; }
28425
28426
28427
28428
28429
28430 # Check whether --with-spl was given.
28431 if test "${with_spl+set}" = set; then :
28432 withval=$with_spl; if test "$withval" = "yes"; then :
28433 as_fn_error $? "--with-spl=PATH requires a PATH" "$LINENO" 5
28434 else
28435 splsrc="$withval"
28436 fi
28437 fi
28438
28439
28440
28441 # Check whether --with-spl-obj was given.
28442 if test "${with_spl_obj+set}" = set; then :
28443 withval=$with_spl_obj; splbuild="$withval"
28444 fi
28445
28446
28447
28448 # Check whether --with-spl-timeout was given.
28449 if test "${with_spl_timeout+set}" = set; then :
28450 withval=$with_spl_timeout; timeout="$withval"
28451 else
28452 timeout=0
28453 fi
28454
28455
28456 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
28457 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28458 splsrc2="/usr/local/src/spl-${VERSION}"
28459 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28460 splsrc4="/usr/src/spl-${VERSION}"
28461 splsrc5="../spl/"
28462 splsrc6="$LINUX"
28463
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28465 $as_echo_n "checking spl source directory... " >&6; }
28466 if test -z "${splsrc}"; then :
28467
28468 all_spl_sources="
28469 ${splsrc0}
28470 ${splsrc1}
28471 ${splsrc2}
28472 ${splsrc3}
28473 ${splsrc4}
28474 ${splsrc5}
28475 ${splsrc6}",
28476 if test -e "${splsrc0}/spl.release.in"; then :
28477
28478 splsrc=${splsrc0}
28479
28480 elif test -e "${splsrc1}/spl.release.in"; then :
28481
28482 splsrc=${splsrc1}
28483
28484 elif test -e "${splsrc2}/spl.release.in"; then :
28485
28486 splsrc=${splsrc2}
28487
28488 elif test -e "${splsrc3}/spl.release.in"; then :
28489
28490 splsrc=$(readlink -f "${splsrc3}")
28491
28492 elif test -e "${splsrc4}/spl.release.in" ; then :
28493
28494 splsrc=${splsrc4}
28495
28496 elif test -e "${splsrc5}/spl.release.in"; then :
28497
28498 splsrc=$(readlink -f "${splsrc5}")
28499
28500 elif test -e "${splsrc6}/spl.release.in" ; then :
28501
28502 splsrc=${splsrc6}
28503
28504 else
28505
28506 splsrc="Not found"
28507
28508 fi
28509
28510 else
28511
28512 all_spl_sources="$withval",
28513 if test "$splsrc" = "NONE"; then :
28514
28515 splbuild=NONE
28516 splsrcver=NONE
28517
28518 fi
28519
28520 fi
28521
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28523 $as_echo "$splsrc" >&6; }
28524 if test ! -e "$splsrc/spl.release.in"; then :
28525
28526 as_fn_error $? "
28527 *** Please make sure the kmod spl devel package for your distribution
28528 *** is installed then try again. If that fails you can specify the
28529 *** location of the spl source with the '--with-spl=PATH' option.
28530 *** The spl version must match the version of ZFS you are building,
28531 *** ${VERSION}. Failed to find spl.release.in in the following:
28532 $all_spl_sources" "$LINENO" 5
28533
28534 fi
28535
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28537 $as_echo_n "checking spl build directory... " >&6; }
28538
28539 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
28540 ${splsrc}"
28541
28542 while true; do
28543 if test -z "$splbuild"; then :
28544
28545 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28546
28547 splbuild="${splsrc}/${LINUX_VERSION}"
28548
28549 elif test -e "${splsrc}/spl_config.h" ; then :
28550
28551 splbuild="${splsrc}"
28552
28553 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
28554
28555 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
28556
28557 else
28558
28559 splbuild="Not found"
28560
28561 fi
28562
28563 fi
28564 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28565
28566 break;
28567
28568 else
28569
28570 sleep 1
28571 timeout=$((timeout-1))
28572
28573 fi
28574 done
28575
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28577 $as_echo "$splbuild" >&6; }
28578 if ! test -e "$splbuild/spl_config.h"; then :
28579
28580 as_fn_error $? "
28581 *** Please make sure the kmod spl devel <kernel> package for your
28582 *** distribution is installed then try again. If that fails you
28583 *** can specify the location of the spl objects with the
28584 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28585 *** any of the following:
28586 $all_spl_config_locs" "$LINENO" 5
28587
28588 fi
28589
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28591 $as_echo_n "checking spl source version... " >&6; }
28592 if test -r $splbuild/spl_config.h &&
28593 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
28594
28595
28596 splsrcver=`(echo "#include <spl_config.h>";
28597 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28598 cpp -I $splbuild |
28599 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28600
28601 fi
28602
28603 if test -z "$splsrcver"; then :
28604
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28606 $as_echo "Not found" >&6; }
28607 as_fn_error $? "
28608 *** Cannot determine the version of the spl source.
28609 *** Please prepare the spl source before running this script" "$LINENO" 5
28610
28611 fi
28612
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28614 $as_echo "$splsrcver" >&6; }
28615
28616 SPL=${splsrc}
28617 SPL_OBJ=${splbuild}
28618 SPL_VERSION=${splsrcver}
28619
28620
28621
28622
28623
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28625 $as_echo_n "checking spl file name for module symbols... " >&6; }
28626 SPL_SYMBOLS=NONE
28627
28628 while true; do
28629 if test -r $SPL_OBJ/Module.symvers; then :
28630
28631 SPL_SYMBOLS=Module.symvers
28632
28633 elif test -r $SPL_OBJ/Modules.symvers; then :
28634
28635 SPL_SYMBOLS=Modules.symvers
28636
28637 elif test -r $SPL_OBJ/module/Module.symvers; then :
28638
28639 SPL_SYMBOLS=Module.symvers
28640
28641 elif test -r $SPL_OBJ/module/Modules.symvers; then :
28642
28643 SPL_SYMBOLS=Modules.symvers
28644
28645 fi
28646
28647 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
28648
28649 break;
28650
28651 else
28652
28653 sleep 1
28654 timeout=$((timeout-1))
28655
28656 fi
28657 done
28658
28659 if test "$SPL_SYMBOLS" = NONE; then :
28660
28661 SPL_SYMBOLS=$LINUX_SYMBOLS
28662
28663 fi
28664
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28666 $as_echo "$SPL_SYMBOLS" >&6; }
28667
28668
28669
28670
28671 # Check whether --with-qat was given.
28672 if test "${with_qat+set}" = set; then :
28673 withval=$with_qat; if test "$withval" = "yes"; then :
28674 as_fn_error $? "--with-qat=PATH requires a PATH" "$LINENO" 5
28675 else
28676 qatsrc="$withval"
28677 fi
28678 fi
28679
28680
28681
28682 # Check whether --with-qat-obj was given.
28683 if test "${with_qat_obj+set}" = set; then :
28684 withval=$with_qat_obj; qatbuild="$withval"
28685 fi
28686
28687
28688 if test ! -z "${qatsrc}"; then :
28689
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28691 $as_echo_n "checking qat source directory... " >&6; }
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28693 $as_echo "$qatsrc" >&6; }
28694 QAT_SRC="${qatsrc}/quickassist"
28695 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28696
28697 as_fn_error $? "
28698 *** Please make sure the qat driver package is installed
28699 *** and specify the location of the qat source with the
28700 *** '--with-qat=PATH' option then try again. Failed to
28701 *** find cpa.h in:
28702 ${QAT_SRC}/include" "$LINENO" 5
28703
28704 fi
28705
28706 fi
28707
28708 if test ! -z "${qatsrc}"; then :
28709
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28711 $as_echo_n "checking qat build directory... " >&6; }
28712 if test -z "$qatbuild"; then :
28713
28714 qatbuild="${qatsrc}/build"
28715
28716 fi
28717
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28719 $as_echo "$qatbuild" >&6; }
28720 QAT_OBJ=${qatbuild}
28721 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
28722
28723 as_fn_error $? "
28724 *** Please make sure the qat driver is installed then try again.
28725 *** Failed to find icp_qa_al.ko or qat_api.ko in:
28726 $QAT_OBJ" "$LINENO" 5
28727
28728 fi
28729
28730
28731
28732
28733
28734 $as_echo "#define HAVE_QAT 1" >>confdefs.h
28735
28736
28737 fi
28738
28739 if test ! -z "${qatsrc}"; then :
28740
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28742 $as_echo_n "checking qat file for module symbols... " >&6; }
28743 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
28744
28745 if test -r $QAT_SYMBOLS; then :
28746
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28748 $as_echo "$QAT_SYMBOLS" >&6; }
28749
28750
28751 else
28752
28753 as_fn_error $? "
28754 *** Please make sure the qat driver is installed then try again.
28755 *** Failed to find Module.symvers in:
28756 $QAT_SYMBOLS" "$LINENO" 5
28757
28758 fi
28759
28760 fi
28761
28762
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28764 $as_echo_n "checking whether modules can be built... " >&6; }
28765
28766
28767 cat confdefs.h - <<_ACEOF >conftest.c
28768
28769
28770 int
28771 main (void)
28772 {
28773
28774 ;
28775 return 0;
28776 }
28777
28778 _ACEOF
28779
28780
28781
28782 cat - <<_ACEOF >conftest.h
28783
28784 _ACEOF
28785
28786
28787 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28788 echo "obj-m := conftest.o" >build/Makefile
28789 modpost_flag=''
28790 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28791 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28793 (eval $ac_try) 2>&5
28794 ac_status=$?
28795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28796 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28801 test $ac_status = 0; }; }; then :
28802
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28804 $as_echo "yes" >&6; }
28805
28806 else
28807 $as_echo "$as_me: failed program was:" >&5
28808 sed 's/^/| /' conftest.$ac_ext >&5
28809
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28811 $as_echo "no" >&6; }
28812 if test "x$enable_linux_builtin" != xyes; then
28813 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
28814 else
28815 as_fn_error $? "
28816 *** Unable to build an empty module.
28817 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28818 fi
28819
28820
28821
28822 fi
28823 rm -Rf build
28824
28825
28826
28827
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28829 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28830
28831
28832 cat confdefs.h - <<_ACEOF >conftest.c
28833
28834
28835 #undef __ASSEMBLY__
28836 #include <asm/frame.h>
28837
28838 int
28839 main (void)
28840 {
28841
28842 #if !defined(FRAME_BEGIN)
28843 CTASSERT(1);
28844 #endif
28845
28846 ;
28847 return 0;
28848 }
28849
28850 _ACEOF
28851
28852
28853
28854 cat - <<_ACEOF >conftest.h
28855
28856 _ACEOF
28857
28858
28859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28860 echo "obj-m := conftest.o" >build/Makefile
28861 modpost_flag=''
28862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28870 (eval $ac_try) 2>&5
28871 ac_status=$?
28872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28873 test $ac_status = 0; }; }; then :
28874
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28876 $as_echo "yes" >&6; }
28877
28878 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28879
28880
28881 else
28882 $as_echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28884
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28886 $as_echo "no" >&6; }
28887
28888
28889
28890 fi
28891 rm -Rf build
28892
28893
28894
28895
28896 if test "x$cross_compiling" != xyes; then :
28897
28898 if test "$cross_compiling" = yes; then :
28899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28901 as_fn_error $? "cannot run test program while cross compiling
28902 See \`config.log' for more details" "$LINENO" 5; }
28903 else
28904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28905 /* end confdefs.h. */
28906
28907
28908 #include "$LINUX/include/linux/license.h"
28909
28910 int
28911 main ()
28912 {
28913
28914 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28915
28916 ;
28917 return 0;
28918 }
28919
28920 _ACEOF
28921 if ac_fn_c_try_run "$LINENO"; then :
28922
28923
28924 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28925
28926
28927 fi
28928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28929 conftest.$ac_objext conftest.beam conftest.$ac_ext
28930 fi
28931
28932
28933 fi
28934
28935
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28937 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28938
28939
28940 cat confdefs.h - <<_ACEOF >conftest.c
28941
28942
28943 #include <linux/module.h>
28944
28945 int
28946 main (void)
28947 {
28948
28949 #if (THREAD_SIZE < 16384)
28950 #error "THREAD_SIZE is less than 16K"
28951 #endif
28952
28953 ;
28954 return 0;
28955 }
28956
28957 _ACEOF
28958
28959
28960
28961 cat - <<_ACEOF >conftest.h
28962
28963 _ACEOF
28964
28965
28966 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28967 echo "obj-m := conftest.o" >build/Makefile
28968 modpost_flag=''
28969 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28970 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28972 (eval $ac_try) 2>&5
28973 ac_status=$?
28974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28975 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28980 test $ac_status = 0; }; }; then :
28981
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983 $as_echo "yes" >&6; }
28984
28985 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28986
28987
28988 else
28989 $as_echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28991
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28993 $as_echo "no" >&6; }
28994
28995
28996
28997 fi
28998 rm -Rf build
28999
29000
29001
29002
29003
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
29005 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
29006
29007
29008 cat confdefs.h - <<_ACEOF >conftest.c
29009
29010
29011 #include <linux/module.h>
29012
29013 int
29014 main (void)
29015 {
29016
29017 #ifndef CONFIG_DEBUG_LOCK_ALLOC
29018 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
29019 #endif
29020
29021 ;
29022 return 0;
29023 }
29024
29025 _ACEOF
29026
29027
29028
29029 cat - <<_ACEOF >conftest.h
29030
29031 _ACEOF
29032
29033
29034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29035 echo "obj-m := conftest.o" >build/Makefile
29036 modpost_flag=''
29037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29038 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29040 (eval $ac_try) 2>&5
29041 ac_status=$?
29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29043 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29045 (eval $ac_try) 2>&5
29046 ac_status=$?
29047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29048 test $ac_status = 0; }; }; then :
29049
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29051 $as_echo "yes" >&6; }
29052
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
29054 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
29055 tmp_flags="$EXTRA_KCFLAGS"
29056
29057
29058 cat confdefs.h - <<_ACEOF >conftest.c
29059
29060
29061 #include <linux/module.h>
29062 #include <linux/mutex.h>
29063
29064 MODULE_LICENSE("$ZFS_META_LICENSE");
29065
29066 int
29067 main (void)
29068 {
29069
29070 struct mutex lock;
29071
29072 mutex_init(&lock);
29073 mutex_lock(&lock);
29074 mutex_unlock(&lock);
29075
29076 ;
29077 return 0;
29078 }
29079
29080 _ACEOF
29081
29082
29083
29084 cat - <<_ACEOF >conftest.h
29085
29086 _ACEOF
29087
29088
29089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29090 echo "obj-m := conftest.o" >build/Makefile
29091 modpost_flag=''
29092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29093 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29095 (eval $ac_try) 2>&5
29096 ac_status=$?
29097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29098 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
29104
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106 $as_echo "no" >&6; }
29107
29108 else
29109 $as_echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29113 $as_echo "yes" >&6; }
29114 as_fn_error $? "
29115 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
29116 *** with the CDDL license and will prevent the module linking stage
29117 *** from succeeding. You must rebuild your kernel without this
29118 *** option enabled." "$LINENO" 5
29119
29120
29121
29122 fi
29123 rm -Rf build
29124
29125
29126 EXTRA_KCFLAGS="$tmp_flags"
29127
29128
29129 else
29130 $as_echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29132
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29134 $as_echo "no" >&6; }
29135
29136
29137
29138
29139 fi
29140 rm -Rf build
29141
29142
29143
29144
29145
29146
29147 tmp_flags="$EXTRA_KCFLAGS"
29148 EXTRA_KCFLAGS="-I\$(src)"
29149
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
29151 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
29152
29153
29154 cat confdefs.h - <<_ACEOF >conftest.c
29155
29156
29157 #include <linux/module.h>
29158 MODULE_LICENSE(ZFS_META_LICENSE);
29159
29160 #define CREATE_TRACE_POINTS
29161 #include "conftest.h"
29162
29163 int
29164 main (void)
29165 {
29166
29167 trace_zfs_autoconf_event_one(1UL);
29168 trace_zfs_autoconf_event_two(2UL);
29169
29170 ;
29171 return 0;
29172 }
29173
29174 _ACEOF
29175
29176
29177
29178 cat - <<_ACEOF >conftest.h
29179
29180 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
29181 #define _CONFTEST_H
29182
29183 #undef TRACE_SYSTEM
29184 #define TRACE_SYSTEM zfs
29185 #include <linux/tracepoint.h>
29186
29187 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
29188 TP_PROTO(unsigned long i),
29189 TP_ARGS(i),
29190 TP_STRUCT__entry(
29191 __field(unsigned long, i)
29192 ),
29193 TP_fast_assign(
29194 __entry->i = i;
29195 ),
29196 TP_printk("i = %lu", __entry->i)
29197 );
29198
29199 #define DEFINE_AUTOCONF_EVENT(name) \
29200 DEFINE_EVENT(zfs_autoconf_event_class, name, \
29201 TP_PROTO(unsigned long i), \
29202 TP_ARGS(i))
29203 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
29204 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
29205
29206 #endif /* _CONFTEST_H */
29207
29208 #undef TRACE_INCLUDE_PATH
29209 #define TRACE_INCLUDE_PATH .
29210 #define TRACE_INCLUDE_FILE conftest
29211 #include <trace/define_trace.h>
29212
29213 _ACEOF
29214
29215
29216 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29217 echo "obj-m := conftest.o" >build/Makefile
29218 modpost_flag=''
29219 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29220 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29222 (eval $ac_try) 2>&5
29223 ac_status=$?
29224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29225 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29227 (eval $ac_try) 2>&5
29228 ac_status=$?
29229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29230 test $ac_status = 0; }; }; then :
29231
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233 $as_echo "yes" >&6; }
29234
29235 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
29236
29237
29238 else
29239 $as_echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29241
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29243 $as_echo "no" >&6; }
29244
29245
29246
29247 fi
29248 rm -Rf build
29249
29250
29251 EXTRA_KCFLAGS="$tmp_flags"
29252
29253
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29255 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
29256
29257
29258 cat confdefs.h - <<_ACEOF >conftest.c
29259
29260
29261 #include <linux/sched.h>
29262
29263 int
29264 main (void)
29265 {
29266
29267 current->bio_tail = (struct bio **) NULL;
29268
29269 ;
29270 return 0;
29271 }
29272
29273 _ACEOF
29274
29275
29276
29277 cat - <<_ACEOF >conftest.h
29278
29279 _ACEOF
29280
29281
29282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29283 echo "obj-m := conftest.o" >build/Makefile
29284 modpost_flag=''
29285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29291 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29293 (eval $ac_try) 2>&5
29294 ac_status=$?
29295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29296 test $ac_status = 0; }; }; then :
29297
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29299 $as_echo "yes" >&6; }
29300
29301 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29302
29303
29304 else
29305 $as_echo "$as_me: failed program was:" >&5
29306 sed 's/^/| /' conftest.$ac_ext >&5
29307
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29309 $as_echo "no" >&6; }
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29311 $as_echo_n "checking whether current->bio_list exists... " >&6; }
29312
29313
29314 cat confdefs.h - <<_ACEOF >conftest.c
29315
29316
29317 #include <linux/sched.h>
29318
29319 int
29320 main (void)
29321 {
29322
29323 current->bio_list = (struct bio_list *) NULL;
29324
29325 ;
29326 return 0;
29327 }
29328
29329 _ACEOF
29330
29331
29332
29333 cat - <<_ACEOF >conftest.h
29334
29335 _ACEOF
29336
29337
29338 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29339 echo "obj-m := conftest.o" >build/Makefile
29340 modpost_flag=''
29341 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29342 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29349 (eval $ac_try) 2>&5
29350 ac_status=$?
29351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29352 test $ac_status = 0; }; }; then :
29353
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29355 $as_echo "yes" >&6; }
29356
29357 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29358
29359
29360 else
29361 $as_echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29363
29364 as_fn_error $? "no - Please file a bug report at
29365 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29366
29367
29368
29369 fi
29370 rm -Rf build
29371
29372
29373
29374
29375
29376 fi
29377 rm -Rf build
29378
29379
29380
29381
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29383 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
29384
29385
29386 cat confdefs.h - <<_ACEOF >conftest.c
29387
29388
29389 #include <linux/fs.h>
29390 #include <linux/user_namespace.h>
29391
29392 int
29393 main (void)
29394 {
29395
29396 struct super_block super;
29397 super.s_user_ns = (struct user_namespace *)NULL;
29398
29399 ;
29400 return 0;
29401 }
29402
29403 _ACEOF
29404
29405
29406
29407 cat - <<_ACEOF >conftest.h
29408
29409 _ACEOF
29410
29411
29412 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29413 echo "obj-m := conftest.o" >build/Makefile
29414 modpost_flag=''
29415 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29416 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29418 (eval $ac_try) 2>&5
29419 ac_status=$?
29420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29421 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29423 (eval $ac_try) 2>&5
29424 ac_status=$?
29425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29426 test $ac_status = 0; }; }; then :
29427
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29429 $as_echo "yes" >&6; }
29430
29431 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
29432
29433
29434 else
29435 $as_echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439 $as_echo "no" >&6; }
29440
29441
29442
29443 fi
29444 rm -Rf build
29445
29446
29447
29448
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29450 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
29451
29452
29453 cat confdefs.h - <<_ACEOF >conftest.c
29454
29455
29456 #include <linux/bio.h>
29457
29458 int
29459 main (void)
29460 {
29461
29462 blk_qc_t blk_qc;
29463 struct bio *bio = NULL;
29464 blk_qc = submit_bio(bio);
29465
29466 ;
29467 return 0;
29468 }
29469
29470 _ACEOF
29471
29472
29473
29474 cat - <<_ACEOF >conftest.h
29475
29476 _ACEOF
29477
29478
29479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29480 echo "obj-m := conftest.o" >build/Makefile
29481 modpost_flag=''
29482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29493 test $ac_status = 0; }; }; then :
29494
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29496 $as_echo "yes" >&6; }
29497
29498 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
29499
29500
29501 else
29502 $as_echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29506 $as_echo "no" >&6; }
29507
29508
29509
29510 fi
29511 rm -Rf build
29512
29513
29514
29515
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29517 $as_echo_n "checking block device operation prototypes... " >&6; }
29518 tmp_flags="$EXTRA_KCFLAGS"
29519 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29520
29521
29522 cat confdefs.h - <<_ACEOF >conftest.c
29523
29524
29525 #include <linux/blkdev.h>
29526
29527 int blk_open(struct block_device *bdev, fmode_t mode)
29528 { return 0; }
29529 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29530 unsigned x, unsigned long y) { return 0; }
29531 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29532 unsigned x, unsigned long y) { return 0; }
29533
29534 static const struct block_device_operations
29535 bops __attribute__ ((unused)) = {
29536 .open = blk_open,
29537 .release = NULL,
29538 .ioctl = blk_ioctl,
29539 .compat_ioctl = blk_compat_ioctl,
29540 };
29541
29542 int
29543 main (void)
29544 {
29545
29546
29547 ;
29548 return 0;
29549 }
29550
29551 _ACEOF
29552
29553
29554
29555 cat - <<_ACEOF >conftest.h
29556
29557 _ACEOF
29558
29559
29560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29561 echo "obj-m := conftest.o" >build/Makefile
29562 modpost_flag=''
29563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29566 (eval $ac_try) 2>&5
29567 ac_status=$?
29568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29569 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29571 (eval $ac_try) 2>&5
29572 ac_status=$?
29573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29574 test $ac_status = 0; }; }; then :
29575
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29577 $as_echo "struct block_device" >&6; }
29578
29579 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
29580
29581
29582 else
29583 $as_echo "$as_me: failed program was:" >&5
29584 sed 's/^/| /' conftest.$ac_ext >&5
29585
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29587 $as_echo "struct inode" >&6; }
29588
29589
29590
29591 fi
29592 rm -Rf build
29593
29594
29595 EXTRA_KCFLAGS="$tmp_flags"
29596
29597
29598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29599 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29600 tmp_flags="$EXTRA_KCFLAGS"
29601 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29602
29603
29604 cat confdefs.h - <<_ACEOF >conftest.c
29605
29606
29607 #include <linux/blkdev.h>
29608
29609 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29610
29611 static const struct block_device_operations
29612 bops __attribute__ ((unused)) = {
29613 .open = NULL,
29614 .release = blk_release,
29615 .ioctl = NULL,
29616 .compat_ioctl = NULL,
29617 };
29618
29619 int
29620 main (void)
29621 {
29622
29623
29624 ;
29625 return 0;
29626 }
29627
29628 _ACEOF
29629
29630
29631
29632 cat - <<_ACEOF >conftest.h
29633
29634 _ACEOF
29635
29636
29637 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29638 echo "obj-m := conftest.o" >build/Makefile
29639 modpost_flag=''
29640 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29641 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29646 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29648 (eval $ac_try) 2>&5
29649 ac_status=$?
29650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29651 test $ac_status = 0; }; }; then :
29652
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29654 $as_echo "void" >&6; }
29655
29656 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
29657
29658
29659 else
29660 $as_echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29662
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29664 $as_echo "int" >&6; }
29665
29666
29667
29668 fi
29669 rm -Rf build
29670
29671
29672 EXTRA_KCFLAGS="$tmp_flags"
29673
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29675 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
29676
29677
29678 cat confdefs.h - <<_ACEOF >conftest.c
29679
29680
29681 #include <linux/types.h>
29682
29683 int
29684 main (void)
29685 {
29686
29687 fmode_t *ptr __attribute__ ((unused));
29688
29689 ;
29690 return 0;
29691 }
29692
29693 _ACEOF
29694
29695
29696
29697 cat - <<_ACEOF >conftest.h
29698
29699 _ACEOF
29700
29701
29702 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29703 echo "obj-m := conftest.o" >build/Makefile
29704 modpost_flag=''
29705 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29706 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29711 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29713 (eval $ac_try) 2>&5
29714 ac_status=$?
29715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29716 test $ac_status = 0; }; }; then :
29717
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29719 $as_echo "yes" >&6; }
29720
29721 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
29722
29723
29724 else
29725 $as_echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.$ac_ext >&5
29727
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29729 $as_echo "no" >&6; }
29730
29731
29732
29733 fi
29734 rm -Rf build
29735
29736
29737
29738
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29740 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29741
29742
29743 cat confdefs.h - <<_ACEOF >conftest.c
29744
29745
29746 #include <linux/fs.h>
29747
29748 int
29749 main (void)
29750 {
29751
29752 struct block_device *bdev = NULL;
29753 (void) blkdev_get(bdev, 0, NULL);
29754
29755 ;
29756 return 0;
29757 }
29758
29759 _ACEOF
29760
29761
29762
29763 cat - <<_ACEOF >conftest.h
29764
29765 _ACEOF
29766
29767
29768 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29769 echo "obj-m := conftest.o" >build/Makefile
29770 modpost_flag=''
29771 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29772 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29774 (eval $ac_try) 2>&5
29775 ac_status=$?
29776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29777 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29779 (eval $ac_try) 2>&5
29780 ac_status=$?
29781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29782 test $ac_status = 0; }; }; then :
29783
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29785 $as_echo "yes" >&6; }
29786
29787 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29788
29789
29790 else
29791 $as_echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29793
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29795 $as_echo "no" >&6; }
29796
29797
29798
29799 fi
29800 rm -Rf build
29801
29802
29803
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29805 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29806
29807
29808
29809 cat confdefs.h - <<_ACEOF >conftest.c
29810
29811
29812 #include <linux/fs.h>
29813
29814 int
29815 main (void)
29816 {
29817
29818 blkdev_get_by_path(NULL, 0, NULL);
29819
29820 ;
29821 return 0;
29822 }
29823
29824 _ACEOF
29825
29826
29827
29828 cat - <<_ACEOF >conftest.h
29829
29830 _ACEOF
29831
29832
29833 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29834 echo "obj-m := conftest.o" >build/Makefile
29835 modpost_flag=''
29836 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29837 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29844 (eval $ac_try) 2>&5
29845 ac_status=$?
29846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29847 test $ac_status = 0; }; }; then :
29848 rc=0
29849 else
29850 $as_echo "$as_me: failed program was:" >&5
29851 sed 's/^/| /' conftest.$ac_ext >&5
29852 rc=1
29853
29854
29855 fi
29856 rm -Rf build
29857
29858
29859 if test $rc -ne 0; then :
29860
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29862 $as_echo "no" >&6; }
29863
29864 else
29865 if test "x$enable_linux_builtin" != xyes; then
29866
29867 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29868 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29869 rc=$?
29870 if test $rc -ne 0; then
29871 export=0
29872 for file in fs/block_dev.c; do
29873 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29874 "$LINUX/$file" 2>/dev/null
29875 rc=$?
29876 if test $rc -eq 0; then
29877 export=1
29878 break;
29879 fi
29880 done
29881 if test $export -eq 0; then :
29882 rc=1
29883 else :
29884 rc=0
29885 fi
29886 else :
29887 rc=0
29888 fi
29889
29890 fi
29891 if test $rc -ne 0; then :
29892
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 $as_echo "no" >&6; }
29895
29896 else :
29897
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29899 $as_echo "yes" >&6; }
29900
29901 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29902
29903
29904 fi
29905 fi
29906
29907
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29909 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29910
29911
29912
29913 cat confdefs.h - <<_ACEOF >conftest.c
29914
29915
29916 #include <linux/fs.h>
29917
29918 int
29919 main (void)
29920 {
29921
29922 open_bdev_exclusive(NULL, 0, NULL);
29923
29924 ;
29925 return 0;
29926 }
29927
29928 _ACEOF
29929
29930
29931
29932 cat - <<_ACEOF >conftest.h
29933
29934 _ACEOF
29935
29936
29937 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29938 echo "obj-m := conftest.o" >build/Makefile
29939 modpost_flag=''
29940 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29941 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29943 (eval $ac_try) 2>&5
29944 ac_status=$?
29945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29946 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29951 test $ac_status = 0; }; }; then :
29952 rc=0
29953 else
29954 $as_echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29956 rc=1
29957
29958
29959 fi
29960 rm -Rf build
29961
29962
29963 if test $rc -ne 0; then :
29964
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 $as_echo "no" >&6; }
29967
29968 else
29969 if test "x$enable_linux_builtin" != xyes; then
29970
29971 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29972 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29973 rc=$?
29974 if test $rc -ne 0; then
29975 export=0
29976 for file in fs/block_dev.c; do
29977 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29978 "$LINUX/$file" 2>/dev/null
29979 rc=$?
29980 if test $rc -eq 0; then
29981 export=1
29982 break;
29983 fi
29984 done
29985 if test $export -eq 0; then :
29986 rc=1
29987 else :
29988 rc=0
29989 fi
29990 else :
29991 rc=0
29992 fi
29993
29994 fi
29995 if test $rc -ne 0; then :
29996
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29998 $as_echo "no" >&6; }
29999
30000 else :
30001
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30003 $as_echo "yes" >&6; }
30004
30005 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
30006
30007
30008 fi
30009 fi
30010
30011
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
30013 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
30014
30015
30016
30017 cat confdefs.h - <<_ACEOF >conftest.c
30018
30019
30020 #include <linux/fs.h>
30021
30022 int
30023 main (void)
30024 {
30025
30026 lookup_bdev(NULL);
30027
30028 ;
30029 return 0;
30030 }
30031
30032 _ACEOF
30033
30034
30035
30036 cat - <<_ACEOF >conftest.h
30037
30038 _ACEOF
30039
30040
30041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30042 echo "obj-m := conftest.o" >build/Makefile
30043 modpost_flag=''
30044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30045 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30047 (eval $ac_try) 2>&5
30048 ac_status=$?
30049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30050 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30052 (eval $ac_try) 2>&5
30053 ac_status=$?
30054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30055 test $ac_status = 0; }; }; then :
30056 rc=0
30057 else
30058 $as_echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.$ac_ext >&5
30060 rc=1
30061
30062
30063 fi
30064 rm -Rf build
30065
30066
30067 if test $rc -ne 0; then :
30068
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30070 $as_echo "no" >&6; }
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30072 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30073
30074
30075
30076 cat confdefs.h - <<_ACEOF >conftest.c
30077
30078
30079 #include <linux/fs.h>
30080
30081 int
30082 main (void)
30083 {
30084
30085 lookup_bdev(NULL, FMODE_READ);
30086
30087 ;
30088 return 0;
30089 }
30090
30091 _ACEOF
30092
30093
30094
30095 cat - <<_ACEOF >conftest.h
30096
30097 _ACEOF
30098
30099
30100 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30101 echo "obj-m := conftest.o" >build/Makefile
30102 modpost_flag=''
30103 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30104 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30106 (eval $ac_try) 2>&5
30107 ac_status=$?
30108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30109 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30111 (eval $ac_try) 2>&5
30112 ac_status=$?
30113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30114 test $ac_status = 0; }; }; then :
30115 rc=0
30116 else
30117 $as_echo "$as_me: failed program was:" >&5
30118 sed 's/^/| /' conftest.$ac_ext >&5
30119 rc=1
30120
30121
30122 fi
30123 rm -Rf build
30124
30125
30126 if test $rc -ne 0; then :
30127
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30129 $as_echo "no" >&6; }
30130
30131 else
30132 if test "x$enable_linux_builtin" != xyes; then
30133
30134 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30135 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30136 rc=$?
30137 if test $rc -ne 0; then
30138 export=0
30139 for file in fs/block_dev.c; do
30140 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30141 "$LINUX/$file" 2>/dev/null
30142 rc=$?
30143 if test $rc -eq 0; then
30144 export=1
30145 break;
30146 fi
30147 done
30148 if test $export -eq 0; then :
30149 rc=1
30150 else :
30151 rc=0
30152 fi
30153 else :
30154 rc=0
30155 fi
30156
30157 fi
30158 if test $rc -ne 0; then :
30159
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30161 $as_echo "no" >&6; }
30162
30163 else :
30164
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30166 $as_echo "yes" >&6; }
30167
30168 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30169
30170
30171 fi
30172 fi
30173
30174
30175 else
30176 if test "x$enable_linux_builtin" != xyes; then
30177
30178 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30179 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30180 rc=$?
30181 if test $rc -ne 0; then
30182 export=0
30183 for file in fs/block_dev.c; do
30184 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30185 "$LINUX/$file" 2>/dev/null
30186 rc=$?
30187 if test $rc -eq 0; then
30188 export=1
30189 break;
30190 fi
30191 done
30192 if test $export -eq 0; then :
30193 rc=1
30194 else :
30195 rc=0
30196 fi
30197 else :
30198 rc=0
30199 fi
30200
30201 fi
30202 if test $rc -ne 0; then :
30203
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30205 $as_echo "no" >&6; }
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30207 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30208
30209
30210
30211 cat confdefs.h - <<_ACEOF >conftest.c
30212
30213
30214 #include <linux/fs.h>
30215
30216 int
30217 main (void)
30218 {
30219
30220 lookup_bdev(NULL, FMODE_READ);
30221
30222 ;
30223 return 0;
30224 }
30225
30226 _ACEOF
30227
30228
30229
30230 cat - <<_ACEOF >conftest.h
30231
30232 _ACEOF
30233
30234
30235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30236 echo "obj-m := conftest.o" >build/Makefile
30237 modpost_flag=''
30238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30241 (eval $ac_try) 2>&5
30242 ac_status=$?
30243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30249 test $ac_status = 0; }; }; then :
30250 rc=0
30251 else
30252 $as_echo "$as_me: failed program was:" >&5
30253 sed 's/^/| /' conftest.$ac_ext >&5
30254 rc=1
30255
30256
30257 fi
30258 rm -Rf build
30259
30260
30261 if test $rc -ne 0; then :
30262
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30264 $as_echo "no" >&6; }
30265
30266 else
30267 if test "x$enable_linux_builtin" != xyes; then
30268
30269 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30270 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30271 rc=$?
30272 if test $rc -ne 0; then
30273 export=0
30274 for file in fs/block_dev.c; do
30275 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30276 "$LINUX/$file" 2>/dev/null
30277 rc=$?
30278 if test $rc -eq 0; then
30279 export=1
30280 break;
30281 fi
30282 done
30283 if test $export -eq 0; then :
30284 rc=1
30285 else :
30286 rc=0
30287 fi
30288 else :
30289 rc=0
30290 fi
30291
30292 fi
30293 if test $rc -ne 0; then :
30294
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30296 $as_echo "no" >&6; }
30297
30298 else :
30299
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301 $as_echo "yes" >&6; }
30302
30303 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30304
30305
30306 fi
30307 fi
30308
30309
30310 else :
30311
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313 $as_echo "yes" >&6; }
30314
30315 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30316
30317
30318 fi
30319 fi
30320
30321
30322
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30324 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30325
30326
30327 cat confdefs.h - <<_ACEOF >conftest.c
30328
30329
30330 #include <linux/buffer_head.h>
30331
30332 int
30333 main (void)
30334 {
30335
30336 struct block_device *bdev = NULL;
30337 invalidate_bdev(bdev);
30338
30339 ;
30340 return 0;
30341 }
30342
30343 _ACEOF
30344
30345
30346
30347 cat - <<_ACEOF >conftest.h
30348
30349 _ACEOF
30350
30351
30352 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30353 echo "obj-m := conftest.o" >build/Makefile
30354 modpost_flag=''
30355 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30356 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30358 (eval $ac_try) 2>&5
30359 ac_status=$?
30360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30361 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30363 (eval $ac_try) 2>&5
30364 ac_status=$?
30365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30366 test $ac_status = 0; }; }; then :
30367
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30369 $as_echo "yes" >&6; }
30370
30371 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30372
30373
30374 else
30375 $as_echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.$ac_ext >&5
30377
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30379 $as_echo "no" >&6; }
30380
30381
30382
30383 fi
30384 rm -Rf build
30385
30386
30387
30388
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30390 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30391 tmp_flags="$EXTRA_KCFLAGS"
30392 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30393
30394
30395 cat confdefs.h - <<_ACEOF >conftest.c
30396
30397
30398 #include <linux/blkdev.h>
30399
30400 int
30401 main (void)
30402 {
30403
30404 struct block_device *bdev = NULL;
30405 bdev_logical_block_size(bdev);
30406
30407 ;
30408 return 0;
30409 }
30410
30411 _ACEOF
30412
30413
30414
30415 cat - <<_ACEOF >conftest.h
30416
30417 _ACEOF
30418
30419
30420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30421 echo "obj-m := conftest.o" >build/Makefile
30422 modpost_flag=''
30423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30426 (eval $ac_try) 2>&5
30427 ac_status=$?
30428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30429 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30434 test $ac_status = 0; }; }; then :
30435
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30437 $as_echo "yes" >&6; }
30438
30439 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30440
30441
30442 else
30443 $as_echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30445
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30447 $as_echo "no" >&6; }
30448
30449
30450
30451 fi
30452 rm -Rf build
30453
30454
30455 EXTRA_KCFLAGS="$tmp_flags"
30456
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30459 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30460 tmp_flags="$EXTRA_KCFLAGS"
30461 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30462
30463
30464 cat confdefs.h - <<_ACEOF >conftest.c
30465
30466
30467 #include <linux/blkdev.h>
30468
30469 int
30470 main (void)
30471 {
30472
30473 struct block_device *bdev = NULL;
30474 bdev_physical_block_size(bdev);
30475
30476 ;
30477 return 0;
30478 }
30479
30480 _ACEOF
30481
30482
30483
30484 cat - <<_ACEOF >conftest.h
30485
30486 _ACEOF
30487
30488
30489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30490 echo "obj-m := conftest.o" >build/Makefile
30491 modpost_flag=''
30492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30495 (eval $ac_try) 2>&5
30496 ac_status=$?
30497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30498 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30500 (eval $ac_try) 2>&5
30501 ac_status=$?
30502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30503 test $ac_status = 0; }; }; then :
30504
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30506 $as_echo "yes" >&6; }
30507
30508 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30509
30510
30511 else
30512 $as_echo "$as_me: failed program was:" >&5
30513 sed 's/^/| /' conftest.$ac_ext >&5
30514
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30516 $as_echo "no" >&6; }
30517
30518
30519
30520 fi
30521 rm -Rf build
30522
30523
30524 EXTRA_KCFLAGS="$tmp_flags"
30525
30526
30527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30528 $as_echo_n "checking whether bio has bi_iter... " >&6; }
30529
30530
30531 cat confdefs.h - <<_ACEOF >conftest.c
30532
30533
30534 #include <linux/bio.h>
30535
30536 int
30537 main (void)
30538 {
30539
30540 struct bio bio;
30541 bio.bi_iter.bi_sector = 0;
30542
30543 ;
30544 return 0;
30545 }
30546
30547 _ACEOF
30548
30549
30550
30551 cat - <<_ACEOF >conftest.h
30552
30553 _ACEOF
30554
30555
30556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30557 echo "obj-m := conftest.o" >build/Makefile
30558 modpost_flag=''
30559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30560 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30570 test $ac_status = 0; }; }; then :
30571
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30573 $as_echo "yes" >&6; }
30574
30575 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30576
30577
30578 else
30579 $as_echo "$as_me: failed program was:" >&5
30580 sed 's/^/| /' conftest.$ac_ext >&5
30581
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30583 $as_echo "no" >&6; }
30584
30585
30586
30587 fi
30588 rm -Rf build
30589
30590
30591
30592
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30594 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30595
30596
30597 cat confdefs.h - <<_ACEOF >conftest.c
30598
30599
30600 #include <linux/bio.h>
30601
30602 int
30603 main (void)
30604 {
30605
30606 int flags __attribute__ ((unused));
30607 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30608 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30609 (1 << BIO_RW_FAILFAST_DRIVER));
30610
30611 ;
30612 return 0;
30613 }
30614
30615 _ACEOF
30616
30617
30618
30619 cat - <<_ACEOF >conftest.h
30620
30621 _ACEOF
30622
30623
30624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30625 echo "obj-m := conftest.o" >build/Makefile
30626 modpost_flag=''
30627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30635 (eval $ac_try) 2>&5
30636 ac_status=$?
30637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30638 test $ac_status = 0; }; }; then :
30639
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30641 $as_echo "yes" >&6; }
30642
30643 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30644
30645
30646 else
30647 $as_echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.$ac_ext >&5
30649
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30651 $as_echo "no" >&6; }
30652
30653
30654
30655 fi
30656 rm -Rf build
30657
30658
30659
30660
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30662 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30663
30664
30665 cat confdefs.h - <<_ACEOF >conftest.c
30666
30667
30668 #include <linux/bio.h>
30669 #include <linux/fs.h>
30670
30671 int
30672 main (void)
30673 {
30674
30675 struct block_device *bdev = NULL;
30676 struct bio *bio = NULL;
30677 bio_set_dev(bio, bdev);
30678
30679 ;
30680 return 0;
30681 }
30682
30683 _ACEOF
30684
30685
30686
30687 cat - <<_ACEOF >conftest.h
30688
30689 _ACEOF
30690
30691
30692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30693 echo "obj-m := conftest.o" >build/Makefile
30694 modpost_flag=''
30695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30701 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30703 (eval $ac_try) 2>&5
30704 ac_status=$?
30705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30706 test $ac_status = 0; }; }; then :
30707
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30709 $as_echo "yes" >&6; }
30710
30711 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30712
30713
30714 else
30715 $as_echo "$as_me: failed program was:" >&5
30716 sed 's/^/| /' conftest.$ac_ext >&5
30717
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30719 $as_echo "no" >&6; }
30720
30721
30722
30723 fi
30724 rm -Rf build
30725
30726
30727
30728
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30730 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30731
30732
30733 cat confdefs.h - <<_ACEOF >conftest.c
30734
30735
30736 #include <linux/bio.h>
30737
30738 int
30739 main (void)
30740 {
30741
30742 int flags __attribute__ ((unused));
30743 flags = REQ_FAILFAST_MASK;
30744
30745 ;
30746 return 0;
30747 }
30748
30749 _ACEOF
30750
30751
30752
30753 cat - <<_ACEOF >conftest.h
30754
30755 _ACEOF
30756
30757
30758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30759 echo "obj-m := conftest.o" >build/Makefile
30760 modpost_flag=''
30761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30762 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30764 (eval $ac_try) 2>&5
30765 ac_status=$?
30766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30772 test $ac_status = 0; }; }; then :
30773
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30775 $as_echo "yes" >&6; }
30776
30777 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30778
30779
30780 else
30781 $as_echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30785 $as_echo "no" >&6; }
30786
30787
30788
30789 fi
30790 rm -Rf build
30791
30792
30793
30794
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30796 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30797
30798
30799 cat confdefs.h - <<_ACEOF >conftest.c
30800
30801
30802 #include <linux/blk_types.h>
30803
30804 int
30805 main (void)
30806 {
30807
30808 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30809
30810 ;
30811 return 0;
30812 }
30813
30814 _ACEOF
30815
30816
30817
30818 cat - <<_ACEOF >conftest.h
30819
30820 _ACEOF
30821
30822
30823 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30824 echo "obj-m := conftest.o" >build/Makefile
30825 modpost_flag=''
30826 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30827 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30829 (eval $ac_try) 2>&5
30830 ac_status=$?
30831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30832 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30834 (eval $ac_try) 2>&5
30835 ac_status=$?
30836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30837 test $ac_status = 0; }; }; then :
30838
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30840 $as_echo "yes" >&6; }
30841
30842 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30843
30844
30845 else
30846 $as_echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30848
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30851
30852
30853
30854 fi
30855 rm -Rf build
30856
30857
30858
30859
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30861 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30862
30863
30864 cat confdefs.h - <<_ACEOF >conftest.c
30865
30866
30867 #include <linux/blk_types.h>
30868
30869 int
30870 main (void)
30871 {
30872
30873 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30874
30875 ;
30876 return 0;
30877 }
30878
30879 _ACEOF
30880
30881
30882
30883 cat - <<_ACEOF >conftest.h
30884
30885 _ACEOF
30886
30887
30888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30889 echo "obj-m := conftest.o" >build/Makefile
30890 modpost_flag=''
30891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30894 (eval $ac_try) 2>&5
30895 ac_status=$?
30896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30897 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30899 (eval $ac_try) 2>&5
30900 ac_status=$?
30901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30902 test $ac_status = 0; }; }; then :
30903
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30906
30907 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30908
30909
30910 else
30911 $as_echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30913
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30915 $as_echo "no" >&6; }
30916
30917
30918
30919 fi
30920 rm -Rf build
30921
30922
30923
30924
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30926 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30927
30928
30929 cat confdefs.h - <<_ACEOF >conftest.c
30930
30931
30932 #include <linux/blk_types.h>
30933
30934 int
30935 main (void)
30936 {
30937
30938 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30939
30940 ;
30941 return 0;
30942 }
30943
30944 _ACEOF
30945
30946
30947
30948 cat - <<_ACEOF >conftest.h
30949
30950 _ACEOF
30951
30952
30953 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30954 echo "obj-m := conftest.o" >build/Makefile
30955 modpost_flag=''
30956 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30957 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30959 (eval $ac_try) 2>&5
30960 ac_status=$?
30961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30962 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967 test $ac_status = 0; }; }; then :
30968
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30970 $as_echo "yes" >&6; }
30971
30972 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30973
30974
30975 else
30976 $as_echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30978
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30980 $as_echo "no" >&6; }
30981
30982
30983
30984 fi
30985 rm -Rf build
30986
30987
30988
30989
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30991 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30992
30993
30994 cat confdefs.h - <<_ACEOF >conftest.c
30995
30996
30997 #include <linux/bio.h>
30998
30999 int
31000 main (void)
31001 {
31002
31003 struct bio bio __attribute__ ((unused));
31004 bio.bi_opf = 0;
31005
31006 ;
31007 return 0;
31008 }
31009
31010 _ACEOF
31011
31012
31013
31014 cat - <<_ACEOF >conftest.h
31015
31016 _ACEOF
31017
31018
31019 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31020 echo "obj-m := conftest.o" >build/Makefile
31021 modpost_flag=''
31022 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31023 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31025 (eval $ac_try) 2>&5
31026 ac_status=$?
31027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31028 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31033 test $ac_status = 0; }; }; then :
31034
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31036 $as_echo "yes" >&6; }
31037
31038 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
31039
31040
31041 else
31042 $as_echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.$ac_ext >&5
31044
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31046 $as_echo "no" >&6; }
31047
31048
31049
31050 fi
31051 rm -Rf build
31052
31053
31054
31055
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
31057 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
31058
31059
31060 cat confdefs.h - <<_ACEOF >conftest.c
31061
31062
31063 #include <linux/bio.h>
31064
31065 void wanted_end_io(struct bio *bio) { return; }
31066
31067 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
31068
31069 int
31070 main (void)
31071 {
31072
31073
31074 ;
31075 return 0;
31076 }
31077
31078 _ACEOF
31079
31080
31081
31082 cat - <<_ACEOF >conftest.h
31083
31084 _ACEOF
31085
31086
31087 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31088 echo "obj-m := conftest.o" >build/Makefile
31089 modpost_flag=''
31090 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31091 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31093 (eval $ac_try) 2>&5
31094 ac_status=$?
31095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31096 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31098 (eval $ac_try) 2>&5
31099 ac_status=$?
31100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31101 test $ac_status = 0; }; }; then :
31102
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31104 $as_echo "yes" >&6; }
31105
31106 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
31107
31108
31109 else
31110 $as_echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31112
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31114 $as_echo "no" >&6; }
31115
31116
31117
31118 fi
31119 rm -Rf build
31120
31121
31122
31123
31124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
31125 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
31126
31127
31128 cat confdefs.h - <<_ACEOF >conftest.c
31129
31130
31131 #include <linux/bio.h>
31132
31133 int
31134 main (void)
31135 {
31136
31137 struct bio bio __attribute__ ((unused));
31138 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
31139
31140 bio.bi_status = status;
31141
31142 ;
31143 return 0;
31144 }
31145
31146 _ACEOF
31147
31148
31149
31150 cat - <<_ACEOF >conftest.h
31151
31152 _ACEOF
31153
31154
31155 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31156 echo "obj-m := conftest.o" >build/Makefile
31157 modpost_flag=''
31158 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31159 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31161 (eval $ac_try) 2>&5
31162 ac_status=$?
31163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31164 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31166 (eval $ac_try) 2>&5
31167 ac_status=$?
31168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31169 test $ac_status = 0; }; }; then :
31170
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31172 $as_echo "yes" >&6; }
31173
31174 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
31175
31176
31177 else
31178 $as_echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31180
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31182 $as_echo "no" >&6; }
31183
31184
31185
31186 fi
31187 rm -Rf build
31188
31189
31190
31191
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
31193 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
31194
31195
31196 cat confdefs.h - <<_ACEOF >conftest.c
31197
31198
31199 #include <linux/bio.h>
31200
31201 int
31202 main (void)
31203 {
31204
31205 int flags __attribute__ ((unused));
31206 flags = BIO_RW_BARRIER;
31207
31208 ;
31209 return 0;
31210 }
31211
31212 _ACEOF
31213
31214
31215
31216 cat - <<_ACEOF >conftest.h
31217
31218 _ACEOF
31219
31220
31221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31222 echo "obj-m := conftest.o" >build/Makefile
31223 modpost_flag=''
31224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31225 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31230 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31232 (eval $ac_try) 2>&5
31233 ac_status=$?
31234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31235 test $ac_status = 0; }; }; then :
31236
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31238 $as_echo "yes" >&6; }
31239
31240 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
31241
31242
31243 else
31244 $as_echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31246
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31248 $as_echo "no" >&6; }
31249
31250
31251
31252 fi
31253 rm -Rf build
31254
31255
31256
31257
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31259 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31260
31261
31262 cat confdefs.h - <<_ACEOF >conftest.c
31263
31264
31265 #include <linux/bio.h>
31266
31267 int
31268 main (void)
31269 {
31270
31271 int flags __attribute__ ((unused));
31272 flags = BIO_RW_DISCARD;
31273
31274 ;
31275 return 0;
31276 }
31277
31278 _ACEOF
31279
31280
31281
31282 cat - <<_ACEOF >conftest.h
31283
31284 _ACEOF
31285
31286
31287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31288 echo "obj-m := conftest.o" >build/Makefile
31289 modpost_flag=''
31290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31293 (eval $ac_try) 2>&5
31294 ac_status=$?
31295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31296 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31298 (eval $ac_try) 2>&5
31299 ac_status=$?
31300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31301 test $ac_status = 0; }; }; then :
31302
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31304 $as_echo "yes" >&6; }
31305
31306 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31307
31308
31309 else
31310 $as_echo "$as_me: failed program was:" >&5
31311 sed 's/^/| /' conftest.$ac_ext >&5
31312
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31314 $as_echo "no" >&6; }
31315
31316
31317
31318 fi
31319 rm -Rf build
31320
31321
31322
31323
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31325 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31326
31327
31328 cat confdefs.h - <<_ACEOF >conftest.c
31329
31330
31331 #include <linux/blkdev.h>
31332
31333 int
31334 main (void)
31335 {
31336
31337 struct request_queue q;
31338 struct backing_dev_info bdi;
31339 q.backing_dev_info = &bdi;
31340
31341 ;
31342 return 0;
31343 }
31344
31345 _ACEOF
31346
31347
31348
31349 cat - <<_ACEOF >conftest.h
31350
31351 _ACEOF
31352
31353
31354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31355 echo "obj-m := conftest.o" >build/Makefile
31356 modpost_flag=''
31357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31358 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31360 (eval $ac_try) 2>&5
31361 ac_status=$?
31362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31363 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31365 (eval $ac_try) 2>&5
31366 ac_status=$?
31367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31368 test $ac_status = 0; }; }; then :
31369
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31371 $as_echo "yes" >&6; }
31372
31373 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31374
31375
31376 else
31377 $as_echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31379
31380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31381 $as_echo "no" >&6; }
31382
31383
31384
31385 fi
31386 rm -Rf build
31387
31388
31389
31390
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31392 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31393 tmp_flags="$EXTRA_KCFLAGS"
31394 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31395
31396
31397 cat confdefs.h - <<_ACEOF >conftest.c
31398
31399
31400 #include <linux/blkdev.h>
31401
31402 int
31403 main (void)
31404 {
31405
31406 struct request_queue *q = NULL;
31407 (void) blk_queue_flush(q, REQ_FLUSH);
31408
31409 ;
31410 return 0;
31411 }
31412
31413 _ACEOF
31414
31415
31416
31417 cat - <<_ACEOF >conftest.h
31418
31419 _ACEOF
31420
31421
31422 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31423 echo "obj-m := conftest.o" >build/Makefile
31424 modpost_flag=''
31425 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31426 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31428 (eval $ac_try) 2>&5
31429 ac_status=$?
31430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31431 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31433 (eval $ac_try) 2>&5
31434 ac_status=$?
31435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31436 test $ac_status = 0; }; }; then :
31437
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31439 $as_echo "yes" >&6; }
31440
31441 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31442
31443
31444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31445 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31446
31447
31448 cat confdefs.h - <<_ACEOF >conftest.c
31449
31450
31451 #include <linux/module.h>
31452 #include <linux/blkdev.h>
31453
31454 MODULE_LICENSE("$ZFS_META_LICENSE");
31455
31456 int
31457 main (void)
31458 {
31459
31460 struct request_queue *q = NULL;
31461 (void) blk_queue_flush(q, REQ_FLUSH);
31462
31463 ;
31464 return 0;
31465 }
31466
31467 _ACEOF
31468
31469
31470
31471 cat - <<_ACEOF >conftest.h
31472
31473 _ACEOF
31474
31475
31476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31477 echo "obj-m := conftest.o" >build/Makefile
31478 modpost_flag=''
31479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31480 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31482 (eval $ac_try) 2>&5
31483 ac_status=$?
31484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31485 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31490 test $ac_status = 0; }; }; then :
31491
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31493 $as_echo "no" >&6; }
31494
31495 else
31496 $as_echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31498
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31500 $as_echo "yes" >&6; }
31501
31502 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31503
31504
31505
31506
31507 fi
31508 rm -Rf build
31509
31510
31511
31512 else
31513 $as_echo "$as_me: failed program was:" >&5
31514 sed 's/^/| /' conftest.$ac_ext >&5
31515
31516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31517 $as_echo "no" >&6; }
31518
31519
31520
31521 fi
31522 rm -Rf build
31523
31524
31525
31526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31527 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31528
31529
31530 cat confdefs.h - <<_ACEOF >conftest.c
31531
31532
31533 #include <linux/kernel.h>
31534 #include <linux/blkdev.h>
31535
31536
31537 int
31538 main (void)
31539 {
31540
31541 struct request_queue *q = NULL;
31542 blk_queue_write_cache(q, true, true);
31543
31544 ;
31545 return 0;
31546 }
31547
31548 _ACEOF
31549
31550
31551
31552 cat - <<_ACEOF >conftest.h
31553
31554 _ACEOF
31555
31556
31557 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31558 echo "obj-m := conftest.o" >build/Makefile
31559 modpost_flag=''
31560 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31561 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31563 (eval $ac_try) 2>&5
31564 ac_status=$?
31565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31566 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31571 test $ac_status = 0; }; }; then :
31572
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31574 $as_echo "yes" >&6; }
31575
31576 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31577
31578
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31580 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31581
31582
31583 cat confdefs.h - <<_ACEOF >conftest.c
31584
31585
31586 #include <linux/kernel.h>
31587 #include <linux/module.h>
31588 #include <linux/blkdev.h>
31589
31590 MODULE_LICENSE("$ZFS_META_LICENSE");
31591
31592 int
31593 main (void)
31594 {
31595
31596 struct request_queue *q = NULL;
31597 blk_queue_write_cache(q, true, true);
31598
31599 ;
31600 return 0;
31601 }
31602
31603 _ACEOF
31604
31605
31606
31607 cat - <<_ACEOF >conftest.h
31608
31609 _ACEOF
31610
31611
31612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31613 echo "obj-m := conftest.o" >build/Makefile
31614 modpost_flag=''
31615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31618 (eval $ac_try) 2>&5
31619 ac_status=$?
31620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31623 (eval $ac_try) 2>&5
31624 ac_status=$?
31625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31626 test $ac_status = 0; }; }; then :
31627
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31630
31631 else
31632 $as_echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.$ac_ext >&5
31634
31635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31636 $as_echo "yes" >&6; }
31637
31638 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31639
31640
31641
31642
31643 fi
31644 rm -Rf build
31645
31646
31647
31648 else
31649 $as_echo "$as_me: failed program was:" >&5
31650 sed 's/^/| /' conftest.$ac_ext >&5
31651
31652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31653 $as_echo "no" >&6; }
31654
31655
31656
31657 fi
31658 rm -Rf build
31659
31660
31661
31662 EXTRA_KCFLAGS="$tmp_flags"
31663
31664
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31666 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31667 tmp_flags="$EXTRA_KCFLAGS"
31668 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31669
31670
31671 cat confdefs.h - <<_ACEOF >conftest.c
31672
31673
31674 #include <linux/blkdev.h>
31675
31676 int
31677 main (void)
31678 {
31679
31680 struct request_queue *q = NULL;
31681 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31682
31683 ;
31684 return 0;
31685 }
31686
31687 _ACEOF
31688
31689
31690
31691 cat - <<_ACEOF >conftest.h
31692
31693 _ACEOF
31694
31695
31696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31697 echo "obj-m := conftest.o" >build/Makefile
31698 modpost_flag=''
31699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31700 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31705 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31707 (eval $ac_try) 2>&5
31708 ac_status=$?
31709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31710 test $ac_status = 0; }; }; then :
31711
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31713 $as_echo "yes" >&6; }
31714
31715 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31716
31717
31718 else
31719 $as_echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31721
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31723 $as_echo "no" >&6; }
31724
31725
31726
31727 fi
31728 rm -Rf build
31729
31730
31731 EXTRA_KCFLAGS="$tmp_flags"
31732
31733
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31735 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31736 tmp_flags="$EXTRA_KCFLAGS"
31737 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31738
31739
31740 cat confdefs.h - <<_ACEOF >conftest.c
31741
31742
31743 #include <linux/blkdev.h>
31744
31745 int
31746 main (void)
31747 {
31748
31749 struct request_queue *q = NULL;
31750 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31751
31752 ;
31753 return 0;
31754 }
31755
31756 _ACEOF
31757
31758
31759
31760 cat - <<_ACEOF >conftest.h
31761
31762 _ACEOF
31763
31764
31765 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31766 echo "obj-m := conftest.o" >build/Makefile
31767 modpost_flag=''
31768 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31769 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31771 (eval $ac_try) 2>&5
31772 ac_status=$?
31773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31774 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31776 (eval $ac_try) 2>&5
31777 ac_status=$?
31778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31779 test $ac_status = 0; }; }; then :
31780
31781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31782 $as_echo "yes" >&6; }
31783
31784 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31785
31786
31787 else
31788 $as_echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31790
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31792 $as_echo "no" >&6; }
31793
31794
31795
31796 fi
31797 rm -Rf build
31798
31799
31800 EXTRA_KCFLAGS="$tmp_flags"
31801
31802
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31804 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31805 tmp_flags="$EXTRA_KCFLAGS"
31806 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31807
31808
31809 cat confdefs.h - <<_ACEOF >conftest.c
31810
31811
31812 #include <linux/blkdev.h>
31813
31814 int
31815 main (void)
31816 {
31817
31818 extern enum bio_rw_flags rw;
31819
31820 rw = BIO_RW_UNPLUG;
31821
31822 ;
31823 return 0;
31824 }
31825
31826 _ACEOF
31827
31828
31829
31830 cat - <<_ACEOF >conftest.h
31831
31832 _ACEOF
31833
31834
31835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31836 echo "obj-m := conftest.o" >build/Makefile
31837 modpost_flag=''
31838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31841 (eval $ac_try) 2>&5
31842 ac_status=$?
31843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31844 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31849 test $ac_status = 0; }; }; then :
31850
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31852 $as_echo "yes" >&6; }
31853
31854 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31855
31856
31857 else
31858 $as_echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31860
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862 $as_echo "no" >&6; }
31863
31864
31865
31866 fi
31867 rm -Rf build
31868
31869
31870 EXTRA_KCFLAGS="$tmp_flags"
31871
31872
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31874 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
31875 tmp_flags="$EXTRA_KCFLAGS"
31876 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31877
31878
31879 cat confdefs.h - <<_ACEOF >conftest.c
31880
31881
31882 #include <linux/blkdev.h>
31883
31884 int
31885 main (void)
31886 {
31887
31888 struct blk_plug plug;
31889
31890 blk_start_plug(&plug);
31891 blk_finish_plug(&plug);
31892
31893 ;
31894 return 0;
31895 }
31896
31897 _ACEOF
31898
31899
31900
31901 cat - <<_ACEOF >conftest.h
31902
31903 _ACEOF
31904
31905
31906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31907 echo "obj-m := conftest.o" >build/Makefile
31908 modpost_flag=''
31909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31910 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31912 (eval $ac_try) 2>&5
31913 ac_status=$?
31914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31915 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31917 (eval $ac_try) 2>&5
31918 ac_status=$?
31919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31920 test $ac_status = 0; }; }; then :
31921
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31923 $as_echo "yes" >&6; }
31924
31925 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31926
31927
31928 else
31929 $as_echo "$as_me: failed program was:" >&5
31930 sed 's/^/| /' conftest.$ac_ext >&5
31931
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31933 $as_echo "no" >&6; }
31934
31935
31936
31937 fi
31938 rm -Rf build
31939
31940
31941 EXTRA_KCFLAGS="$tmp_flags"
31942
31943
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31945 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31946 tmp_flags="$EXTRA_KCFLAGS"
31947 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31948
31949
31950 cat confdefs.h - <<_ACEOF >conftest.c
31951
31952
31953 #include <linux/blkdev.h>
31954
31955 int
31956 main (void)
31957 {
31958
31959 struct gendisk *disk = NULL;
31960 (void) get_disk_ro(disk);
31961
31962 ;
31963 return 0;
31964 }
31965
31966 _ACEOF
31967
31968
31969
31970 cat - <<_ACEOF >conftest.h
31971
31972 _ACEOF
31973
31974
31975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31976 echo "obj-m := conftest.o" >build/Makefile
31977 modpost_flag=''
31978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31979 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31986 (eval $ac_try) 2>&5
31987 ac_status=$?
31988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31989 test $ac_status = 0; }; }; then :
31990
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31992 $as_echo "yes" >&6; }
31993
31994 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31995
31996
31997 else
31998 $as_echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32000
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002 $as_echo "no" >&6; }
32003
32004
32005
32006 fi
32007 rm -Rf build
32008
32009
32010 EXTRA_KCFLAGS="$tmp_flags"
32011
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
32013 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
32014
32015
32016
32017 cat confdefs.h - <<_ACEOF >conftest.c
32018
32019
32020 #include <linux/genhd.h>
32021
32022 int
32023 main (void)
32024 {
32025
32026 get_gendisk(0, NULL);
32027
32028 ;
32029 return 0;
32030 }
32031
32032 _ACEOF
32033
32034
32035
32036 cat - <<_ACEOF >conftest.h
32037
32038 _ACEOF
32039
32040
32041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32042 echo "obj-m := conftest.o" >build/Makefile
32043 modpost_flag=''
32044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32045 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32047 (eval $ac_try) 2>&5
32048 ac_status=$?
32049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32050 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32052 (eval $ac_try) 2>&5
32053 ac_status=$?
32054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32055 test $ac_status = 0; }; }; then :
32056 rc=0
32057 else
32058 $as_echo "$as_me: failed program was:" >&5
32059 sed 's/^/| /' conftest.$ac_ext >&5
32060 rc=1
32061
32062
32063 fi
32064 rm -Rf build
32065
32066
32067 if test $rc -ne 0; then :
32068
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070 $as_echo "no" >&6; }
32071
32072 else
32073 if test "x$enable_linux_builtin" != xyes; then
32074
32075 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
32076 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32077 rc=$?
32078 if test $rc -ne 0; then
32079 export=0
32080 for file in block/genhd.c; do
32081 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
32082 "$LINUX/$file" 2>/dev/null
32083 rc=$?
32084 if test $rc -eq 0; then
32085 export=1
32086 break;
32087 fi
32088 done
32089 if test $export -eq 0; then :
32090 rc=1
32091 else :
32092 rc=0
32093 fi
32094 else :
32095 rc=0
32096 fi
32097
32098 fi
32099 if test $rc -ne 0; then :
32100
32101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32102 $as_echo "no" >&6; }
32103
32104 else :
32105
32106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32107 $as_echo "yes" >&6; }
32108
32109 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
32110
32111
32112 fi
32113 fi
32114
32115
32116
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
32118 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
32119
32120
32121 cat confdefs.h - <<_ACEOF >conftest.c
32122
32123
32124 #include <linux/bio.h>
32125
32126 int
32127 main (void)
32128 {
32129
32130 struct bio *bio __attribute__ ((unused)) = NULL;
32131
32132 bio_set_op_attrs(bio, 0, 0);
32133
32134 ;
32135 return 0;
32136 }
32137
32138 _ACEOF
32139
32140
32141
32142 cat - <<_ACEOF >conftest.h
32143
32144 _ACEOF
32145
32146
32147 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32148 echo "obj-m := conftest.o" >build/Makefile
32149 modpost_flag=''
32150 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32151 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32153 (eval $ac_try) 2>&5
32154 ac_status=$?
32155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32156 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32158 (eval $ac_try) 2>&5
32159 ac_status=$?
32160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32161 test $ac_status = 0; }; }; then :
32162
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32164 $as_echo "yes" >&6; }
32165
32166 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
32167
32168
32169 else
32170 $as_echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32172
32173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32174 $as_echo "no" >&6; }
32175
32176
32177
32178 fi
32179 rm -Rf build
32180
32181
32182
32183
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
32185 $as_echo_n "checking whether generic_readlink is global... " >&6; }
32186
32187
32188 cat confdefs.h - <<_ACEOF >conftest.c
32189
32190
32191 #include <linux/fs.h>
32192
32193 int
32194 main (void)
32195 {
32196
32197 int i __attribute__ ((unused));
32198
32199 i = generic_readlink(NULL, NULL, 0);
32200
32201 ;
32202 return 0;
32203 }
32204
32205 _ACEOF
32206
32207
32208
32209 cat - <<_ACEOF >conftest.h
32210
32211 _ACEOF
32212
32213
32214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32215 echo "obj-m := conftest.o" >build/Makefile
32216 modpost_flag=''
32217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32220 (eval $ac_try) 2>&5
32221 ac_status=$?
32222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32223 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32225 (eval $ac_try) 2>&5
32226 ac_status=$?
32227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32228 test $ac_status = 0; }; }; then :
32229
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32231 $as_echo "yes" >&6; }
32232
32233 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
32234
32235
32236 else
32237 $as_echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.$ac_ext >&5
32239
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32241 $as_echo "no" >&6; }
32242
32243
32244
32245 fi
32246 rm -Rf build
32247
32248
32249
32250
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
32252 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32253
32254
32255 cat confdefs.h - <<_ACEOF >conftest.c
32256
32257
32258 #include <linux/blkdev.h>
32259
32260 int
32261 main (void)
32262 {
32263
32264 struct queue_limits ql __attribute__ ((unused));
32265
32266 ql.discard_granularity = 0;
32267
32268 ;
32269 return 0;
32270 }
32271
32272 _ACEOF
32273
32274
32275
32276 cat - <<_ACEOF >conftest.h
32277
32278 _ACEOF
32279
32280
32281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32282 echo "obj-m := conftest.o" >build/Makefile
32283 modpost_flag=''
32284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32285 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32287 (eval $ac_try) 2>&5
32288 ac_status=$?
32289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32290 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32292 (eval $ac_try) 2>&5
32293 ac_status=$?
32294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32295 test $ac_status = 0; }; }; then :
32296
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32298 $as_echo "yes" >&6; }
32299
32300 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32301
32302
32303 else
32304 $as_echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.$ac_ext >&5
32306
32307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32308 $as_echo "no" >&6; }
32309
32310
32311
32312 fi
32313 rm -Rf build
32314
32315
32316
32317
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32319 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32320
32321
32322 cat confdefs.h - <<_ACEOF >conftest.c
32323
32324
32325 #include <linux/fs.h>
32326 #include <linux/xattr.h>
32327
32328 const struct xattr_handler xattr_test_handler = {
32329 .prefix = "test",
32330 .get = NULL,
32331 .set = NULL,
32332 };
32333
32334 const struct xattr_handler *xattr_handlers[] = {
32335 &xattr_test_handler,
32336 };
32337
32338 const struct super_block sb __attribute__ ((unused)) = {
32339 .s_xattr = xattr_handlers,
32340 };
32341
32342 int
32343 main (void)
32344 {
32345
32346
32347 ;
32348 return 0;
32349 }
32350
32351 _ACEOF
32352
32353
32354
32355 cat - <<_ACEOF >conftest.h
32356
32357 _ACEOF
32358
32359
32360 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32361 echo "obj-m := conftest.o" >build/Makefile
32362 modpost_flag=''
32363 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32364 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32366 (eval $ac_try) 2>&5
32367 ac_status=$?
32368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32369 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32371 (eval $ac_try) 2>&5
32372 ac_status=$?
32373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32374 test $ac_status = 0; }; }; then :
32375
32376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32377 $as_echo "yes" >&6; }
32378
32379 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32380
32381
32382 else
32383 $as_echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32385
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32387 $as_echo "no" >&6; }
32388
32389
32390
32391 fi
32392 rm -Rf build
32393
32394
32395
32396
32397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32398 $as_echo_n "checking whether xattr_handler has name... " >&6; }
32399
32400
32401 cat confdefs.h - <<_ACEOF >conftest.c
32402
32403
32404 #include <linux/xattr.h>
32405
32406 static const struct xattr_handler
32407 xops __attribute__ ((unused)) = {
32408 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32409 };
32410
32411 int
32412 main (void)
32413 {
32414
32415
32416 ;
32417 return 0;
32418 }
32419
32420 _ACEOF
32421
32422
32423
32424 cat - <<_ACEOF >conftest.h
32425
32426 _ACEOF
32427
32428
32429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32430 echo "obj-m := conftest.o" >build/Makefile
32431 modpost_flag=''
32432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32433 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32435 (eval $ac_try) 2>&5
32436 ac_status=$?
32437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32438 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32440 (eval $ac_try) 2>&5
32441 ac_status=$?
32442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32443 test $ac_status = 0; }; }; then :
32444
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32446 $as_echo "yes" >&6; }
32447
32448 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32449
32450
32451 else
32452 $as_echo "$as_me: failed program was:" >&5
32453 sed 's/^/| /' conftest.$ac_ext >&5
32454
32455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32456 $as_echo "no" >&6; }
32457
32458
32459
32460 fi
32461 rm -Rf build
32462
32463
32464
32465
32466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32467 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32468
32469
32470 cat confdefs.h - <<_ACEOF >conftest.c
32471
32472
32473 #include <linux/xattr.h>
32474
32475 int get(const struct xattr_handler *handler,
32476 struct dentry *dentry, struct inode *inode,
32477 const char *name, void *buffer, size_t size) { return 0; }
32478 static const struct xattr_handler
32479 xops __attribute__ ((unused)) = {
32480 .get = get,
32481 };
32482
32483 int
32484 main (void)
32485 {
32486
32487
32488 ;
32489 return 0;
32490 }
32491
32492 _ACEOF
32493
32494
32495
32496 cat - <<_ACEOF >conftest.h
32497
32498 _ACEOF
32499
32500
32501 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32502 echo "obj-m := conftest.o" >build/Makefile
32503 modpost_flag=''
32504 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32505 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32507 (eval $ac_try) 2>&5
32508 ac_status=$?
32509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32510 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32512 (eval $ac_try) 2>&5
32513 ac_status=$?
32514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32515 test $ac_status = 0; }; }; then :
32516
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32518 $as_echo "yes" >&6; }
32519
32520 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32521
32522
32523 else
32524 $as_echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.$ac_ext >&5
32526
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32528 $as_echo "no" >&6; }
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
32530 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32531
32532
32533 cat confdefs.h - <<_ACEOF >conftest.c
32534
32535
32536 #include <linux/xattr.h>
32537
32538 int get(const struct xattr_handler *handler,
32539 struct dentry *dentry, const char *name,
32540 void *buffer, size_t size) { return 0; }
32541 static const struct xattr_handler
32542 xops __attribute__ ((unused)) = {
32543 .get = get,
32544 };
32545
32546 int
32547 main (void)
32548 {
32549
32550
32551 ;
32552 return 0;
32553 }
32554
32555 _ACEOF
32556
32557
32558
32559 cat - <<_ACEOF >conftest.h
32560
32561 _ACEOF
32562
32563
32564 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32565 echo "obj-m := conftest.o" >build/Makefile
32566 modpost_flag=''
32567 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32568 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32570 (eval $ac_try) 2>&5
32571 ac_status=$?
32572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32573 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32575 (eval $ac_try) 2>&5
32576 ac_status=$?
32577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32578 test $ac_status = 0; }; }; then :
32579
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32581 $as_echo "yes" >&6; }
32582
32583 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32584
32585
32586 else
32587 $as_echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32591 $as_echo "no" >&6; }
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32593 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32594
32595
32596 cat confdefs.h - <<_ACEOF >conftest.c
32597
32598
32599 #include <linux/xattr.h>
32600
32601 int get(struct dentry *dentry, const char *name,
32602 void *buffer, size_t size, int handler_flags)
32603 { return 0; }
32604 static const struct xattr_handler
32605 xops __attribute__ ((unused)) = {
32606 .get = get,
32607 };
32608
32609 int
32610 main (void)
32611 {
32612
32613
32614 ;
32615 return 0;
32616 }
32617
32618 _ACEOF
32619
32620
32621
32622 cat - <<_ACEOF >conftest.h
32623
32624 _ACEOF
32625
32626
32627 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32628 echo "obj-m := conftest.o" >build/Makefile
32629 modpost_flag=''
32630 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32631 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32636 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32638 (eval $ac_try) 2>&5
32639 ac_status=$?
32640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32641 test $ac_status = 0; }; }; then :
32642
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32644 $as_echo "yes" >&6; }
32645
32646 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32647
32648
32649 else
32650 $as_echo "$as_me: failed program was:" >&5
32651 sed 's/^/| /' conftest.$ac_ext >&5
32652
32653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32654 $as_echo "no" >&6; }
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32656 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32657
32658
32659 cat confdefs.h - <<_ACEOF >conftest.c
32660
32661
32662 #include <linux/xattr.h>
32663
32664 int get(struct inode *ip, const char *name,
32665 void *buffer, size_t size) { return 0; }
32666 static const struct xattr_handler
32667 xops __attribute__ ((unused)) = {
32668 .get = get,
32669 };
32670
32671 int
32672 main (void)
32673 {
32674
32675
32676 ;
32677 return 0;
32678 }
32679
32680 _ACEOF
32681
32682
32683
32684 cat - <<_ACEOF >conftest.h
32685
32686 _ACEOF
32687
32688
32689 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32690 echo "obj-m := conftest.o" >build/Makefile
32691 modpost_flag=''
32692 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32693 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32695 (eval $ac_try) 2>&5
32696 ac_status=$?
32697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32698 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32700 (eval $ac_try) 2>&5
32701 ac_status=$?
32702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32703 test $ac_status = 0; }; }; then :
32704
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32706 $as_echo "yes" >&6; }
32707
32708 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32709
32710
32711 else
32712 $as_echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32714
32715 as_fn_error $? "no; please file a bug report" "$LINENO" 5
32716
32717
32718
32719 fi
32720 rm -Rf build
32721
32722
32723
32724
32725
32726 fi
32727 rm -Rf build
32728
32729
32730
32731
32732
32733 fi
32734 rm -Rf build
32735
32736
32737
32738
32739
32740 fi
32741 rm -Rf build
32742
32743
32744
32745
32746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32747 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32748
32749
32750 cat confdefs.h - <<_ACEOF >conftest.c
32751
32752
32753 #include <linux/xattr.h>
32754
32755 int set(const struct xattr_handler *handler,
32756 struct dentry *dentry, struct inode *inode,
32757 const char *name, const void *buffer,
32758 size_t size, int flags)
32759 { return 0; }
32760 static const struct xattr_handler
32761 xops __attribute__ ((unused)) = {
32762 .set = set,
32763 };
32764
32765 int
32766 main (void)
32767 {
32768
32769
32770 ;
32771 return 0;
32772 }
32773
32774 _ACEOF
32775
32776
32777
32778 cat - <<_ACEOF >conftest.h
32779
32780 _ACEOF
32781
32782
32783 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32784 echo "obj-m := conftest.o" >build/Makefile
32785 modpost_flag=''
32786 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32787 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32789 (eval $ac_try) 2>&5
32790 ac_status=$?
32791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32792 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32794 (eval $ac_try) 2>&5
32795 ac_status=$?
32796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32797 test $ac_status = 0; }; }; then :
32798
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32800 $as_echo "yes" >&6; }
32801
32802 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32803
32804
32805 else
32806 $as_echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.$ac_ext >&5
32808
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32810 $as_echo "no" >&6; }
32811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
32812 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32813
32814
32815 cat confdefs.h - <<_ACEOF >conftest.c
32816
32817
32818 #include <linux/xattr.h>
32819
32820 int set(const struct xattr_handler *handler,
32821 struct dentry *dentry, const char *name,
32822 const void *buffer, size_t size, int flags)
32823 { return 0; }
32824 static const struct xattr_handler
32825 xops __attribute__ ((unused)) = {
32826 .set = set,
32827 };
32828
32829 int
32830 main (void)
32831 {
32832
32833
32834 ;
32835 return 0;
32836 }
32837
32838 _ACEOF
32839
32840
32841
32842 cat - <<_ACEOF >conftest.h
32843
32844 _ACEOF
32845
32846
32847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32848 echo "obj-m := conftest.o" >build/Makefile
32849 modpost_flag=''
32850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32851 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32853 (eval $ac_try) 2>&5
32854 ac_status=$?
32855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32856 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32858 (eval $ac_try) 2>&5
32859 ac_status=$?
32860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32861 test $ac_status = 0; }; }; then :
32862
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32864 $as_echo "yes" >&6; }
32865
32866 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32867
32868
32869 else
32870 $as_echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32872
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32874 $as_echo "no" >&6; }
32875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32876 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32877
32878
32879 cat confdefs.h - <<_ACEOF >conftest.c
32880
32881
32882 #include <linux/xattr.h>
32883
32884 int set(struct dentry *dentry, const char *name,
32885 const void *buffer, size_t size, int flags,
32886 int handler_flags) { return 0; }
32887 static const struct xattr_handler
32888 xops __attribute__ ((unused)) = {
32889 .set = set,
32890 };
32891
32892 int
32893 main (void)
32894 {
32895
32896
32897 ;
32898 return 0;
32899 }
32900
32901 _ACEOF
32902
32903
32904
32905 cat - <<_ACEOF >conftest.h
32906
32907 _ACEOF
32908
32909
32910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32911 echo "obj-m := conftest.o" >build/Makefile
32912 modpost_flag=''
32913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32914 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32916 (eval $ac_try) 2>&5
32917 ac_status=$?
32918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32919 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32924 test $ac_status = 0; }; }; then :
32925
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32927 $as_echo "yes" >&6; }
32928
32929 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32930
32931
32932 else
32933 $as_echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.$ac_ext >&5
32935
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32937 $as_echo "no" >&6; }
32938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32939 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32940
32941
32942 cat confdefs.h - <<_ACEOF >conftest.c
32943
32944
32945 #include <linux/xattr.h>
32946
32947 int set(struct inode *ip, const char *name,
32948 const void *buffer, size_t size, int flags)
32949 { return 0; }
32950 static const struct xattr_handler
32951 xops __attribute__ ((unused)) = {
32952 .set = set,
32953 };
32954
32955 int
32956 main (void)
32957 {
32958
32959
32960 ;
32961 return 0;
32962 }
32963
32964 _ACEOF
32965
32966
32967
32968 cat - <<_ACEOF >conftest.h
32969
32970 _ACEOF
32971
32972
32973 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32974 echo "obj-m := conftest.o" >build/Makefile
32975 modpost_flag=''
32976 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32977 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32979 (eval $ac_try) 2>&5
32980 ac_status=$?
32981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32982 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32984 (eval $ac_try) 2>&5
32985 ac_status=$?
32986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32987 test $ac_status = 0; }; }; then :
32988
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32990 $as_echo "yes" >&6; }
32991
32992 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32993
32994
32995 else
32996 $as_echo "$as_me: failed program was:" >&5
32997 sed 's/^/| /' conftest.$ac_ext >&5
32998
32999 as_fn_error $? "no; please file a bug report" "$LINENO" 5
33000
33001
33002
33003 fi
33004 rm -Rf build
33005
33006
33007
33008
33009
33010 fi
33011 rm -Rf build
33012
33013
33014
33015
33016
33017 fi
33018 rm -Rf build
33019
33020
33021
33022
33023
33024 fi
33025 rm -Rf build
33026
33027
33028
33029
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
33031 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
33032
33033
33034 cat confdefs.h - <<_ACEOF >conftest.c
33035
33036
33037 #include <linux/xattr.h>
33038
33039 bool list(struct dentry *dentry) { return 0; }
33040 static const struct xattr_handler
33041 xops __attribute__ ((unused)) = {
33042 .list = list,
33043 };
33044
33045 int
33046 main (void)
33047 {
33048
33049
33050 ;
33051 return 0;
33052 }
33053
33054 _ACEOF
33055
33056
33057
33058 cat - <<_ACEOF >conftest.h
33059
33060 _ACEOF
33061
33062
33063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33064 echo "obj-m := conftest.o" >build/Makefile
33065 modpost_flag=''
33066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33072 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33074 (eval $ac_try) 2>&5
33075 ac_status=$?
33076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33077 test $ac_status = 0; }; }; then :
33078
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081
33082 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
33083
33084
33085 else
33086 $as_echo "$as_me: failed program was:" >&5
33087 sed 's/^/| /' conftest.$ac_ext >&5
33088
33089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33090 $as_echo "no" >&6; }
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
33092 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
33093
33094
33095 cat confdefs.h - <<_ACEOF >conftest.c
33096
33097
33098 #include <linux/xattr.h>
33099
33100 size_t list(const struct xattr_handler *handler,
33101 struct dentry *dentry, char *list, size_t list_size,
33102 const char *name, size_t name_len) { return 0; }
33103 static const struct xattr_handler
33104 xops __attribute__ ((unused)) = {
33105 .list = list,
33106 };
33107
33108 int
33109 main (void)
33110 {
33111
33112
33113 ;
33114 return 0;
33115 }
33116
33117 _ACEOF
33118
33119
33120
33121 cat - <<_ACEOF >conftest.h
33122
33123 _ACEOF
33124
33125
33126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33127 echo "obj-m := conftest.o" >build/Makefile
33128 modpost_flag=''
33129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33130 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33135 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33137 (eval $ac_try) 2>&5
33138 ac_status=$?
33139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33140 test $ac_status = 0; }; }; then :
33141
33142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33143 $as_echo "yes" >&6; }
33144
33145 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
33146
33147
33148 else
33149 $as_echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33151
33152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33153 $as_echo "no" >&6; }
33154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
33155 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
33156
33157
33158 cat confdefs.h - <<_ACEOF >conftest.c
33159
33160
33161 #include <linux/xattr.h>
33162
33163 size_t list(struct dentry *dentry,
33164 char *list, size_t list_size,
33165 const char *name, size_t name_len,
33166 int handler_flags) { return 0; }
33167 static const struct xattr_handler
33168 xops __attribute__ ((unused)) = {
33169 .list = list,
33170 };
33171
33172 int
33173 main (void)
33174 {
33175
33176
33177 ;
33178 return 0;
33179 }
33180
33181 _ACEOF
33182
33183
33184
33185 cat - <<_ACEOF >conftest.h
33186
33187 _ACEOF
33188
33189
33190 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33191 echo "obj-m := conftest.o" >build/Makefile
33192 modpost_flag=''
33193 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33194 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33199 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33201 (eval $ac_try) 2>&5
33202 ac_status=$?
33203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33204 test $ac_status = 0; }; }; then :
33205
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33207 $as_echo "yes" >&6; }
33208
33209 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
33210
33211
33212 else
33213 $as_echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.$ac_ext >&5
33215
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33217 $as_echo "no" >&6; }
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
33219 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
33220
33221
33222 cat confdefs.h - <<_ACEOF >conftest.c
33223
33224
33225 #include <linux/xattr.h>
33226
33227 size_t list(struct inode *ip, char *lst,
33228 size_t list_size, const char *name,
33229 size_t name_len) { return 0; }
33230 static const struct xattr_handler
33231 xops __attribute__ ((unused)) = {
33232 .list = list,
33233 };
33234
33235 int
33236 main (void)
33237 {
33238
33239
33240 ;
33241 return 0;
33242 }
33243
33244 _ACEOF
33245
33246
33247
33248 cat - <<_ACEOF >conftest.h
33249
33250 _ACEOF
33251
33252
33253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33254 echo "obj-m := conftest.o" >build/Makefile
33255 modpost_flag=''
33256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33259 (eval $ac_try) 2>&5
33260 ac_status=$?
33261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33262 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33264 (eval $ac_try) 2>&5
33265 ac_status=$?
33266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33267 test $ac_status = 0; }; }; then :
33268
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33270 $as_echo "yes" >&6; }
33271
33272 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33273
33274
33275 else
33276 $as_echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33278
33279 as_fn_error $? "no; please file a bug report" "$LINENO" 5
33280
33281
33282
33283 fi
33284 rm -Rf build
33285
33286
33287
33288
33289
33290 fi
33291 rm -Rf build
33292
33293
33294
33295
33296
33297 fi
33298 rm -Rf build
33299
33300
33301
33302
33303
33304 fi
33305 rm -Rf build
33306
33307
33308
33309
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33311 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33312
33313
33314 cat confdefs.h - <<_ACEOF >conftest.c
33315
33316
33317 #include <linux/fs.h>
33318
33319 int
33320 main (void)
33321 {
33322
33323 struct inode *ip = NULL;
33324 (void) inode_owner_or_capable(ip);
33325
33326 ;
33327 return 0;
33328 }
33329
33330 _ACEOF
33331
33332
33333
33334 cat - <<_ACEOF >conftest.h
33335
33336 _ACEOF
33337
33338
33339 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33340 echo "obj-m := conftest.o" >build/Makefile
33341 modpost_flag=''
33342 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33343 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33345 (eval $ac_try) 2>&5
33346 ac_status=$?
33347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33348 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33353 test $ac_status = 0; }; }; then :
33354
33355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33356 $as_echo "yes" >&6; }
33357
33358 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33359
33360
33361 else
33362 $as_echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33364
33365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33366 $as_echo "no" >&6; }
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33368 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33369
33370
33371 cat confdefs.h - <<_ACEOF >conftest.c
33372
33373
33374 #include <linux/fs.h>
33375 #include <linux/sched.h>
33376
33377 int
33378 main (void)
33379 {
33380
33381 struct inode *ip = NULL;
33382 (void) is_owner_or_cap(ip);
33383
33384 ;
33385 return 0;
33386 }
33387
33388 _ACEOF
33389
33390
33391
33392 cat - <<_ACEOF >conftest.h
33393
33394 _ACEOF
33395
33396
33397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33398 echo "obj-m := conftest.o" >build/Makefile
33399 modpost_flag=''
33400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33403 (eval $ac_try) 2>&5
33404 ac_status=$?
33405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33408 (eval $ac_try) 2>&5
33409 ac_status=$?
33410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33411 test $ac_status = 0; }; }; then :
33412
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33414 $as_echo "yes" >&6; }
33415
33416 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33417
33418
33419 else
33420 $as_echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33422
33423 as_fn_error $? "no - Please file a bug report at
33424 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33425
33426
33427
33428 fi
33429 rm -Rf build
33430
33431
33432
33433
33434
33435 fi
33436 rm -Rf build
33437
33438
33439
33440
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33442 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33443
33444
33445 cat confdefs.h - <<_ACEOF >conftest.c
33446
33447
33448 #include <linux/cred.h>
33449 #include <linux/fs.h>
33450 #include <linux/posix_acl_xattr.h>
33451
33452 int
33453 main (void)
33454 {
33455
33456 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33457
33458 ;
33459 return 0;
33460 }
33461
33462 _ACEOF
33463
33464
33465
33466 cat - <<_ACEOF >conftest.h
33467
33468 _ACEOF
33469
33470
33471 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33472 echo "obj-m := conftest.o" >build/Makefile
33473 modpost_flag=''
33474 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33475 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33477 (eval $ac_try) 2>&5
33478 ac_status=$?
33479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33480 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33482 (eval $ac_try) 2>&5
33483 ac_status=$?
33484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33485 test $ac_status = 0; }; }; then :
33486
33487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33488 $as_echo "yes" >&6; }
33489
33490 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33491
33492
33493 else
33494 $as_echo "$as_me: failed program was:" >&5
33495 sed 's/^/| /' conftest.$ac_ext >&5
33496
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33498 $as_echo "no" >&6; }
33499
33500
33501
33502 fi
33503 rm -Rf build
33504
33505
33506
33507
33508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33509 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33510
33511
33512 cat confdefs.h - <<_ACEOF >conftest.c
33513
33514
33515 #include <linux/cred.h>
33516 #include <linux/fs.h>
33517 #include <linux/posix_acl.h>
33518
33519 int
33520 main (void)
33521 {
33522
33523 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33524 posix_acl_release(tmp);
33525
33526 ;
33527 return 0;
33528 }
33529
33530 _ACEOF
33531
33532
33533
33534 cat - <<_ACEOF >conftest.h
33535
33536 _ACEOF
33537
33538
33539 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33540 echo "obj-m := conftest.o" >build/Makefile
33541 modpost_flag=''
33542 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33543 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33545 (eval $ac_try) 2>&5
33546 ac_status=$?
33547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33548 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33550 (eval $ac_try) 2>&5
33551 ac_status=$?
33552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33553 test $ac_status = 0; }; }; then :
33554
33555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33556 $as_echo "yes" >&6; }
33557
33558 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33559
33560
33561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
33562 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33563
33564
33565 cat confdefs.h - <<_ACEOF >conftest.c
33566
33567
33568 #include <linux/module.h>
33569 #include <linux/cred.h>
33570 #include <linux/fs.h>
33571 #include <linux/posix_acl.h>
33572
33573 MODULE_LICENSE("$ZFS_META_LICENSE");
33574
33575 int
33576 main (void)
33577 {
33578
33579 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33580 posix_acl_release(tmp);
33581
33582 ;
33583 return 0;
33584 }
33585
33586 _ACEOF
33587
33588
33589
33590 cat - <<_ACEOF >conftest.h
33591
33592 _ACEOF
33593
33594
33595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33596 echo "obj-m := conftest.o" >build/Makefile
33597 modpost_flag=''
33598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33601 (eval $ac_try) 2>&5
33602 ac_status=$?
33603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33606 (eval $ac_try) 2>&5
33607 ac_status=$?
33608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33609 test $ac_status = 0; }; }; then :
33610
33611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33612 $as_echo "no" >&6; }
33613
33614 else
33615 $as_echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33617
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33619 $as_echo "yes" >&6; }
33620
33621 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33622
33623
33624
33625
33626 fi
33627 rm -Rf build
33628
33629
33630
33631 else
33632 $as_echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.$ac_ext >&5
33634
33635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33636 $as_echo "no" >&6; }
33637
33638
33639
33640 fi
33641 rm -Rf build
33642
33643
33644
33645
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33647 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33648
33649
33650 cat confdefs.h - <<_ACEOF >conftest.c
33651
33652
33653 #include <linux/module.h>
33654 #include <linux/cred.h>
33655 #include <linux/fs.h>
33656 #include <linux/posix_acl.h>
33657
33658 MODULE_LICENSE("$ZFS_META_LICENSE");
33659
33660 int
33661 main (void)
33662 {
33663
33664 struct inode *ip = NULL;
33665 struct posix_acl *acl = posix_acl_alloc(1, 0);
33666 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33667 forget_cached_acl(ip, ACL_TYPE_ACCESS);
33668
33669 ;
33670 return 0;
33671 }
33672
33673 _ACEOF
33674
33675
33676
33677 cat - <<_ACEOF >conftest.h
33678
33679 _ACEOF
33680
33681
33682 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33683 echo "obj-m := conftest.o" >build/Makefile
33684 modpost_flag=''
33685 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33686 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33688 (eval $ac_try) 2>&5
33689 ac_status=$?
33690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33691 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33693 (eval $ac_try) 2>&5
33694 ac_status=$?
33695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33696 test $ac_status = 0; }; }; then :
33697
33698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33699 $as_echo "yes" >&6; }
33700
33701 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33702
33703
33704 else
33705 $as_echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33707
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33709 $as_echo "no" >&6; }
33710
33711
33712
33713 fi
33714 rm -Rf build
33715
33716
33717
33718
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33720 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33721
33722
33723 cat confdefs.h - <<_ACEOF >conftest.c
33724
33725
33726 #include <linux/fs.h>
33727 #include <linux/posix_acl.h>
33728
33729 int
33730 main (void)
33731 {
33732
33733 posix_acl_chmod(NULL, 0, 0)
33734
33735 ;
33736 return 0;
33737 }
33738
33739 _ACEOF
33740
33741
33742
33743 cat - <<_ACEOF >conftest.h
33744
33745 _ACEOF
33746
33747
33748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33749 echo "obj-m := conftest.o" >build/Makefile
33750 modpost_flag=''
33751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33754 (eval $ac_try) 2>&5
33755 ac_status=$?
33756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33757 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33759 (eval $ac_try) 2>&5
33760 ac_status=$?
33761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33762 test $ac_status = 0; }; }; then :
33763
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33765 $as_echo "yes" >&6; }
33766
33767 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33768
33769
33770 else
33771 $as_echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33773
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33775 $as_echo "no" >&6; }
33776
33777
33778
33779 fi
33780 rm -Rf build
33781
33782
33783
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33785 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33786
33787
33788 cat confdefs.h - <<_ACEOF >conftest.c
33789
33790
33791 #include <linux/fs.h>
33792 #include <linux/posix_acl.h>
33793
33794 int
33795 main (void)
33796 {
33797
33798 __posix_acl_chmod(NULL, 0, 0)
33799
33800 ;
33801 return 0;
33802 }
33803
33804 _ACEOF
33805
33806
33807
33808 cat - <<_ACEOF >conftest.h
33809
33810 _ACEOF
33811
33812
33813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33814 echo "obj-m := conftest.o" >build/Makefile
33815 modpost_flag=''
33816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33817 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33819 (eval $ac_try) 2>&5
33820 ac_status=$?
33821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33822 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33824 (eval $ac_try) 2>&5
33825 ac_status=$?
33826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33827 test $ac_status = 0; }; }; then :
33828
33829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33830 $as_echo "yes" >&6; }
33831
33832 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33833
33834
33835 else
33836 $as_echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33841
33842
33843
33844 fi
33845 rm -Rf build
33846
33847
33848
33849
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33851 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33852
33853
33854 cat confdefs.h - <<_ACEOF >conftest.c
33855
33856
33857 #include <linux/fs.h>
33858 #include <linux/posix_acl.h>
33859
33860 int
33861 main (void)
33862 {
33863
33864 umode_t tmp;
33865 posix_acl_equiv_mode(NULL,&tmp);
33866
33867 ;
33868 return 0;
33869 }
33870
33871 _ACEOF
33872
33873
33874
33875 cat - <<_ACEOF >conftest.h
33876
33877 _ACEOF
33878
33879
33880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33881 echo "obj-m := conftest.o" >build/Makefile
33882 modpost_flag=''
33883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33886 (eval $ac_try) 2>&5
33887 ac_status=$?
33888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33891 (eval $ac_try) 2>&5
33892 ac_status=$?
33893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33894 test $ac_status = 0; }; }; then :
33895
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33897 $as_echo "yes" >&6; }
33898
33899 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33900
33901
33902 else
33903 $as_echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33905
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33907 $as_echo "no" >&6; }
33908
33909
33910
33911 fi
33912 rm -Rf build
33913
33914
33915
33916
33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33918 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33919
33920
33921 cat confdefs.h - <<_ACEOF >conftest.c
33922
33923
33924 #include <linux/fs.h>
33925 #include <linux/posix_acl.h>
33926
33927 int
33928 main (void)
33929 {
33930
33931 struct user_namespace *user_ns = NULL;
33932 const struct posix_acl *acl = NULL;
33933 int error;
33934
33935 error = posix_acl_valid(user_ns, acl);
33936
33937 ;
33938 return 0;
33939 }
33940
33941 _ACEOF
33942
33943
33944
33945 cat - <<_ACEOF >conftest.h
33946
33947 _ACEOF
33948
33949
33950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33951 echo "obj-m := conftest.o" >build/Makefile
33952 modpost_flag=''
33953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33954 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33956 (eval $ac_try) 2>&5
33957 ac_status=$?
33958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33959 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33964 test $ac_status = 0; }; }; then :
33965
33966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33967 $as_echo "yes" >&6; }
33968
33969 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33970
33971
33972 else
33973 $as_echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33975
33976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33977 $as_echo "no" >&6; }
33978
33979
33980
33981 fi
33982 rm -Rf build
33983
33984
33985
33986
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33988 $as_echo_n "checking whether iops->permission() exists... " >&6; }
33989
33990
33991 cat confdefs.h - <<_ACEOF >conftest.c
33992
33993
33994 #include <linux/fs.h>
33995
33996 int permission_fn(struct inode *inode, int mask) { return 0; }
33997
33998 static const struct inode_operations
33999 iops __attribute__ ((unused)) = {
34000 .permission = permission_fn,
34001 };
34002
34003 int
34004 main (void)
34005 {
34006
34007
34008 ;
34009 return 0;
34010 }
34011
34012 _ACEOF
34013
34014
34015
34016 cat - <<_ACEOF >conftest.h
34017
34018 _ACEOF
34019
34020
34021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34022 echo "obj-m := conftest.o" >build/Makefile
34023 modpost_flag=''
34024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34027 (eval $ac_try) 2>&5
34028 ac_status=$?
34029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34032 (eval $ac_try) 2>&5
34033 ac_status=$?
34034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34035 test $ac_status = 0; }; }; then :
34036
34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34038 $as_echo "yes" >&6; }
34039
34040 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34041
34042
34043 else
34044 $as_echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34046
34047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34048 $as_echo "no" >&6; }
34049
34050
34051
34052 fi
34053 rm -Rf build
34054
34055
34056
34057
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
34059 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
34060
34061
34062 cat confdefs.h - <<_ACEOF >conftest.c
34063
34064
34065 #include <linux/fs.h>
34066
34067 int permission_fn(struct inode *inode, int mask,
34068 struct nameidata *nd) { return 0; }
34069
34070 static const struct inode_operations
34071 iops __attribute__ ((unused)) = {
34072 .permission = permission_fn,
34073 };
34074
34075 int
34076 main (void)
34077 {
34078
34079
34080 ;
34081 return 0;
34082 }
34083
34084 _ACEOF
34085
34086
34087
34088 cat - <<_ACEOF >conftest.h
34089
34090 _ACEOF
34091
34092
34093 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34094 echo "obj-m := conftest.o" >build/Makefile
34095 modpost_flag=''
34096 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34097 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34099 (eval $ac_try) 2>&5
34100 ac_status=$?
34101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34102 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34104 (eval $ac_try) 2>&5
34105 ac_status=$?
34106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34107 test $ac_status = 0; }; }; then :
34108
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34110 $as_echo "yes" >&6; }
34111
34112 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34113
34114
34115 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
34116
34117
34118 else
34119 $as_echo "$as_me: failed program was:" >&5
34120 sed 's/^/| /' conftest.$ac_ext >&5
34121
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34123 $as_echo "no" >&6; }
34124
34125
34126
34127 fi
34128 rm -Rf build
34129
34130
34131
34132
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
34134 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
34135
34136
34137 cat confdefs.h - <<_ACEOF >conftest.c
34138
34139
34140 #include <linux/fs.h>
34141
34142 int check_acl_fn(struct inode *inode, int mask) { return 0; }
34143
34144 static const struct inode_operations
34145 iops __attribute__ ((unused)) = {
34146 .check_acl = check_acl_fn,
34147 };
34148
34149 int
34150 main (void)
34151 {
34152
34153
34154 ;
34155 return 0;
34156 }
34157
34158 _ACEOF
34159
34160
34161
34162 cat - <<_ACEOF >conftest.h
34163
34164 _ACEOF
34165
34166
34167 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34168 echo "obj-m := conftest.o" >build/Makefile
34169 modpost_flag=''
34170 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34171 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34173 (eval $ac_try) 2>&5
34174 ac_status=$?
34175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34176 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34178 (eval $ac_try) 2>&5
34179 ac_status=$?
34180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34181 test $ac_status = 0; }; }; then :
34182
34183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34184 $as_echo "yes" >&6; }
34185
34186 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34187
34188
34189 else
34190 $as_echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34192
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34194 $as_echo "no" >&6; }
34195
34196
34197
34198 fi
34199 rm -Rf build
34200
34201
34202
34203
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
34205 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
34206
34207
34208 cat confdefs.h - <<_ACEOF >conftest.c
34209
34210
34211 #include <linux/fs.h>
34212
34213 int check_acl_fn(struct inode *inode, int mask,
34214 unsigned int flags) { return 0; }
34215
34216 static const struct inode_operations
34217 iops __attribute__ ((unused)) = {
34218 .check_acl = check_acl_fn,
34219 };
34220
34221 int
34222 main (void)
34223 {
34224
34225
34226 ;
34227 return 0;
34228 }
34229
34230 _ACEOF
34231
34232
34233
34234 cat - <<_ACEOF >conftest.h
34235
34236 _ACEOF
34237
34238
34239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34240 echo "obj-m := conftest.o" >build/Makefile
34241 modpost_flag=''
34242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34245 (eval $ac_try) 2>&5
34246 ac_status=$?
34247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34250 (eval $ac_try) 2>&5
34251 ac_status=$?
34252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34253 test $ac_status = 0; }; }; then :
34254
34255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34256 $as_echo "yes" >&6; }
34257
34258 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34259
34260
34261 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34262
34263
34264 else
34265 $as_echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.$ac_ext >&5
34267
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34269 $as_echo "no" >&6; }
34270
34271
34272
34273 fi
34274 rm -Rf build
34275
34276
34277
34278
34279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34280 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34281
34282
34283 cat confdefs.h - <<_ACEOF >conftest.c
34284
34285
34286 #include <linux/fs.h>
34287
34288 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34289 { return NULL; }
34290
34291 static const struct inode_operations
34292 iops __attribute__ ((unused)) = {
34293 .get_acl = get_acl_fn,
34294 };
34295
34296 int
34297 main (void)
34298 {
34299
34300
34301 ;
34302 return 0;
34303 }
34304
34305 _ACEOF
34306
34307
34308
34309 cat - <<_ACEOF >conftest.h
34310
34311 _ACEOF
34312
34313
34314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34315 echo "obj-m := conftest.o" >build/Makefile
34316 modpost_flag=''
34317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34318 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34320 (eval $ac_try) 2>&5
34321 ac_status=$?
34322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34323 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34325 (eval $ac_try) 2>&5
34326 ac_status=$?
34327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34328 test $ac_status = 0; }; }; then :
34329
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34331 $as_echo "yes" >&6; }
34332
34333 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34334
34335
34336 else
34337 $as_echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34339
34340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34341 $as_echo "no" >&6; }
34342
34343
34344
34345 fi
34346 rm -Rf build
34347
34348
34349
34350
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34352 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34353
34354
34355 cat confdefs.h - <<_ACEOF >conftest.c
34356
34357
34358 #include <linux/fs.h>
34359
34360 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34361 { return 0; }
34362
34363 static const struct inode_operations
34364 iops __attribute__ ((unused)) = {
34365 .set_acl = set_acl_fn,
34366 };
34367
34368 int
34369 main (void)
34370 {
34371
34372
34373 ;
34374 return 0;
34375 }
34376
34377 _ACEOF
34378
34379
34380
34381 cat - <<_ACEOF >conftest.h
34382
34383 _ACEOF
34384
34385
34386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34387 echo "obj-m := conftest.o" >build/Makefile
34388 modpost_flag=''
34389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34390 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34392 (eval $ac_try) 2>&5
34393 ac_status=$?
34394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34395 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34397 (eval $ac_try) 2>&5
34398 ac_status=$?
34399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34400 test $ac_status = 0; }; }; then :
34401
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34403 $as_echo "yes" >&6; }
34404
34405 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
34406
34407
34408 else
34409 $as_echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34411
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413 $as_echo "no" >&6; }
34414
34415
34416
34417 fi
34418 rm -Rf build
34419
34420
34421
34422
34423
34424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34425 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
34426
34427
34428 cat confdefs.h - <<_ACEOF >conftest.c
34429
34430
34431 #include <linux/fs.h>
34432
34433 int test_getattr(
34434 const struct path *p, struct kstat *k,
34435 u32 request_mask, unsigned int query_flags)
34436 { return 0; }
34437
34438 static const struct inode_operations
34439 iops __attribute__ ((unused)) = {
34440 .getattr = test_getattr,
34441 };
34442
34443 int
34444 main (void)
34445 {
34446
34447
34448 ;
34449 return 0;
34450 }
34451
34452 _ACEOF
34453
34454
34455
34456 cat - <<_ACEOF >conftest.h
34457
34458 _ACEOF
34459
34460
34461 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34462 echo "obj-m := conftest.o" >build/Makefile
34463 modpost_flag=''
34464 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34465 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34467 (eval $ac_try) 2>&5
34468 ac_status=$?
34469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34470 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34472 (eval $ac_try) 2>&5
34473 ac_status=$?
34474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34475 test $ac_status = 0; }; }; then :
34476
34477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34478 $as_echo "yes" >&6; }
34479
34480 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
34481
34482
34483 else
34484 $as_echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.$ac_ext >&5
34486
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34488 $as_echo "no" >&6; }
34489
34490
34491
34492 fi
34493 rm -Rf build
34494
34495
34496
34497
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34499 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
34500
34501
34502 cat confdefs.h - <<_ACEOF >conftest.c
34503
34504
34505 #include <linux/fs.h>
34506
34507 int test_getattr(
34508 struct vfsmount *mnt, struct dentry *d,
34509 struct kstat *k)
34510 { return 0; }
34511
34512 static const struct inode_operations
34513 iops __attribute__ ((unused)) = {
34514 .getattr = test_getattr,
34515 };
34516
34517 int
34518 main (void)
34519 {
34520
34521
34522 ;
34523 return 0;
34524 }
34525
34526 _ACEOF
34527
34528
34529
34530 cat - <<_ACEOF >conftest.h
34531
34532 _ACEOF
34533
34534
34535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34536 echo "obj-m := conftest.o" >build/Makefile
34537 modpost_flag=''
34538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34541 (eval $ac_try) 2>&5
34542 ac_status=$?
34543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34546 (eval $ac_try) 2>&5
34547 ac_status=$?
34548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34549 test $ac_status = 0; }; }; then :
34550
34551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34552 $as_echo "yes" >&6; }
34553
34554 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
34555
34556
34557 else
34558 $as_echo "$as_me: failed program was:" >&5
34559 sed 's/^/| /' conftest.$ac_ext >&5
34560
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34562 $as_echo "no" >&6; }
34563
34564
34565
34566 fi
34567 rm -Rf build
34568
34569
34570
34571
34572
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34574 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
34575
34576
34577 cat confdefs.h - <<_ACEOF >conftest.c
34578
34579
34580 #include <linux/fs.h>
34581
34582 int
34583 main (void)
34584 {
34585
34586 struct inode inode;
34587 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
34588
34589 ;
34590 return 0;
34591 }
34592
34593 _ACEOF
34594
34595
34596
34597 cat - <<_ACEOF >conftest.h
34598
34599 _ACEOF
34600
34601
34602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34603 echo "obj-m := conftest.o" >build/Makefile
34604 modpost_flag=''
34605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34606 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34608 (eval $ac_try) 2>&5
34609 ac_status=$?
34610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34611 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34613 (eval $ac_try) 2>&5
34614 ac_status=$?
34615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34616 test $ac_status = 0; }; }; then :
34617
34618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34619 $as_echo "yes" >&6; }
34620
34621 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
34622
34623
34624 else
34625 $as_echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34627
34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34629 $as_echo "no" >&6; }
34630
34631
34632
34633 fi
34634 rm -Rf build
34635
34636
34637
34638
34639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34640 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34641
34642
34643 cat confdefs.h - <<_ACEOF >conftest.c
34644
34645
34646 #include <linux/fs.h>
34647
34648 int
34649 main (void)
34650 {
34651
34652 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34653
34654 ;
34655 return 0;
34656 }
34657
34658 _ACEOF
34659
34660
34661
34662 cat - <<_ACEOF >conftest.h
34663
34664 _ACEOF
34665
34666
34667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34668 echo "obj-m := conftest.o" >build/Makefile
34669 modpost_flag=''
34670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34671 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34673 (eval $ac_try) 2>&5
34674 ac_status=$?
34675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34676 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34678 (eval $ac_try) 2>&5
34679 ac_status=$?
34680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34681 test $ac_status = 0; }; }; then :
34682
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34684 $as_echo "yes" >&6; }
34685
34686 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34687
34688
34689 else
34690 $as_echo "$as_me: failed program was:" >&5
34691 sed 's/^/| /' conftest.$ac_ext >&5
34692
34693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34694 $as_echo "no" >&6; }
34695
34696
34697
34698 fi
34699 rm -Rf build
34700
34701
34702
34703
34704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34705 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34706
34707
34708
34709 cat confdefs.h - <<_ACEOF >conftest.c
34710
34711
34712 #include <linux/fs.h>
34713
34714 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34715 static struct super_operations sops __attribute__ ((unused)) = {
34716 .show_options = show_options,
34717 };
34718
34719 int
34720 main (void)
34721 {
34722
34723
34724 ;
34725 return 0;
34726 }
34727
34728 _ACEOF
34729
34730
34731
34732 cat - <<_ACEOF >conftest.h
34733
34734 _ACEOF
34735
34736
34737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34738 echo "obj-m := conftest.o" >build/Makefile
34739 modpost_flag=''
34740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34743 (eval $ac_try) 2>&5
34744 ac_status=$?
34745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34748 (eval $ac_try) 2>&5
34749 ac_status=$?
34750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34751 test $ac_status = 0; }; }; then :
34752
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34754 $as_echo "yes" >&6; }
34755
34756 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34757
34758
34759 else
34760 $as_echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.$ac_ext >&5
34762
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34764 $as_echo "no" >&6; }
34765
34766
34767
34768 fi
34769 rm -Rf build
34770
34771
34772
34773
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34775 $as_echo_n "checking whether file_inode() is available... " >&6; }
34776
34777
34778 cat confdefs.h - <<_ACEOF >conftest.c
34779
34780
34781 #include <linux/fs.h>
34782
34783 int
34784 main (void)
34785 {
34786
34787 struct file *f = NULL;
34788 file_inode(f);
34789
34790 ;
34791 return 0;
34792 }
34793
34794 _ACEOF
34795
34796
34797
34798 cat - <<_ACEOF >conftest.h
34799
34800 _ACEOF
34801
34802
34803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34804 echo "obj-m := conftest.o" >build/Makefile
34805 modpost_flag=''
34806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34807 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34809 (eval $ac_try) 2>&5
34810 ac_status=$?
34811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34814 (eval $ac_try) 2>&5
34815 ac_status=$?
34816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34817 test $ac_status = 0; }; }; then :
34818
34819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34820 $as_echo "yes" >&6; }
34821
34822 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34823
34824
34825 else
34826 $as_echo "$as_me: failed program was:" >&5
34827 sed 's/^/| /' conftest.$ac_ext >&5
34828
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830 $as_echo "no" >&6; }
34831
34832
34833
34834 fi
34835 rm -Rf build
34836
34837
34838
34839
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34841 $as_echo_n "checking whether file_dentry() is available... " >&6; }
34842
34843
34844 cat confdefs.h - <<_ACEOF >conftest.c
34845
34846
34847 #include <linux/fs.h>
34848
34849 int
34850 main (void)
34851 {
34852
34853 struct file *f = NULL;
34854 file_dentry(f);
34855
34856 ;
34857 return 0;
34858 }
34859
34860 _ACEOF
34861
34862
34863
34864 cat - <<_ACEOF >conftest.h
34865
34866 _ACEOF
34867
34868
34869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34870 echo "obj-m := conftest.o" >build/Makefile
34871 modpost_flag=''
34872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34873 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34875 (eval $ac_try) 2>&5
34876 ac_status=$?
34877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34878 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34880 (eval $ac_try) 2>&5
34881 ac_status=$?
34882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34883 test $ac_status = 0; }; }; then :
34884
34885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34886 $as_echo "yes" >&6; }
34887
34888 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34889
34890
34891 else
34892 $as_echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.$ac_ext >&5
34894
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34896 $as_echo "no" >&6; }
34897
34898
34899
34900 fi
34901 rm -Rf build
34902
34903
34904
34905
34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34907 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
34908
34909
34910
34911 cat confdefs.h - <<_ACEOF >conftest.c
34912
34913
34914 #include <linux/fs.h>
34915
34916 int test_fsync(struct file *f, struct dentry *dentry, int x)
34917 { return 0; }
34918
34919 static const struct file_operations
34920 fops __attribute__ ((unused)) = {
34921 .fsync = test_fsync,
34922 };
34923
34924 int
34925 main (void)
34926 {
34927
34928
34929 ;
34930 return 0;
34931 }
34932
34933 _ACEOF
34934
34935
34936
34937 cat - <<_ACEOF >conftest.h
34938
34939 _ACEOF
34940
34941
34942 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34943 echo "obj-m := conftest.o" >build/Makefile
34944 modpost_flag=''
34945 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34946 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34948 (eval $ac_try) 2>&5
34949 ac_status=$?
34950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34951 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34953 (eval $ac_try) 2>&5
34954 ac_status=$?
34955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34956 test $ac_status = 0; }; }; then :
34957
34958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34959 $as_echo "dentry" >&6; }
34960
34961 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34962
34963
34964 else
34965 $as_echo "$as_me: failed program was:" >&5
34966 sed 's/^/| /' conftest.$ac_ext >&5
34967
34968
34969
34970
34971 fi
34972 rm -Rf build
34973
34974
34975
34976
34977
34978
34979 cat confdefs.h - <<_ACEOF >conftest.c
34980
34981
34982 #include <linux/fs.h>
34983
34984 int test_fsync(struct file *f, int x) { return 0; }
34985
34986 static const struct file_operations
34987 fops __attribute__ ((unused)) = {
34988 .fsync = test_fsync,
34989 };
34990
34991 int
34992 main (void)
34993 {
34994
34995
34996 ;
34997 return 0;
34998 }
34999
35000 _ACEOF
35001
35002
35003
35004 cat - <<_ACEOF >conftest.h
35005
35006 _ACEOF
35007
35008
35009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35010 echo "obj-m := conftest.o" >build/Makefile
35011 modpost_flag=''
35012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35013 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35015 (eval $ac_try) 2>&5
35016 ac_status=$?
35017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35018 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35020 (eval $ac_try) 2>&5
35021 ac_status=$?
35022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35023 test $ac_status = 0; }; }; then :
35024
35025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
35026 $as_echo "no dentry" >&6; }
35027
35028 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
35029
35030
35031 else
35032 $as_echo "$as_me: failed program was:" >&5
35033 sed 's/^/| /' conftest.$ac_ext >&5
35034
35035
35036
35037
35038 fi
35039 rm -Rf build
35040
35041
35042
35043
35044
35045
35046 cat confdefs.h - <<_ACEOF >conftest.c
35047
35048
35049 #include <linux/fs.h>
35050
35051 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
35052 { return 0; }
35053
35054 static const struct file_operations
35055 fops __attribute__ ((unused)) = {
35056 .fsync = test_fsync,
35057 };
35058
35059 int
35060 main (void)
35061 {
35062
35063
35064 ;
35065 return 0;
35066 }
35067
35068 _ACEOF
35069
35070
35071
35072 cat - <<_ACEOF >conftest.h
35073
35074 _ACEOF
35075
35076
35077 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35078 echo "obj-m := conftest.o" >build/Makefile
35079 modpost_flag=''
35080 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35081 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35083 (eval $ac_try) 2>&5
35084 ac_status=$?
35085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35086 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35088 (eval $ac_try) 2>&5
35089 ac_status=$?
35090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35091 test $ac_status = 0; }; }; then :
35092
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
35094 $as_echo "range" >&6; }
35095
35096 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
35097
35098
35099 else
35100 $as_echo "$as_me: failed program was:" >&5
35101 sed 's/^/| /' conftest.$ac_ext >&5
35102
35103
35104
35105
35106 fi
35107 rm -Rf build
35108
35109
35110
35111
35112
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
35114 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
35115
35116
35117 cat confdefs.h - <<_ACEOF >conftest.c
35118
35119
35120 #include <linux/fs.h>
35121 void evict_inode (struct inode * t) { return; }
35122 static struct super_operations sops __attribute__ ((unused)) = {
35123 .evict_inode = evict_inode,
35124 };
35125
35126 int
35127 main (void)
35128 {
35129
35130
35131 ;
35132 return 0;
35133 }
35134
35135 _ACEOF
35136
35137
35138
35139 cat - <<_ACEOF >conftest.h
35140
35141 _ACEOF
35142
35143
35144 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35145 echo "obj-m := conftest.o" >build/Makefile
35146 modpost_flag=''
35147 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35148 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35150 (eval $ac_try) 2>&5
35151 ac_status=$?
35152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35153 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35155 (eval $ac_try) 2>&5
35156 ac_status=$?
35157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35158 test $ac_status = 0; }; }; then :
35159
35160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35161 $as_echo "yes" >&6; }
35162
35163 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
35164
35165
35166 else
35167 $as_echo "$as_me: failed program was:" >&5
35168 sed 's/^/| /' conftest.$ac_ext >&5
35169
35170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35171 $as_echo "no" >&6; }
35172
35173
35174
35175 fi
35176 rm -Rf build
35177
35178
35179
35180
35181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
35182 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
35183
35184
35185 cat confdefs.h - <<_ACEOF >conftest.c
35186
35187
35188 #include <linux/fs.h>
35189
35190 void dirty_inode(struct inode *a, int b) { return; }
35191
35192 static const struct super_operations
35193 sops __attribute__ ((unused)) = {
35194 .dirty_inode = dirty_inode,
35195 };
35196
35197 int
35198 main (void)
35199 {
35200
35201
35202 ;
35203 return 0;
35204 }
35205
35206 _ACEOF
35207
35208
35209
35210 cat - <<_ACEOF >conftest.h
35211
35212 _ACEOF
35213
35214
35215 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35216 echo "obj-m := conftest.o" >build/Makefile
35217 modpost_flag=''
35218 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35219 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35221 (eval $ac_try) 2>&5
35222 ac_status=$?
35223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35224 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35226 (eval $ac_try) 2>&5
35227 ac_status=$?
35228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35229 test $ac_status = 0; }; }; then :
35230
35231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35232 $as_echo "yes" >&6; }
35233
35234 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
35235
35236
35237 else
35238 $as_echo "$as_me: failed program was:" >&5
35239 sed 's/^/| /' conftest.$ac_ext >&5
35240
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35242 $as_echo "no" >&6; }
35243
35244
35245
35246 fi
35247 rm -Rf build
35248
35249
35250
35251
35252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35253 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35254
35255
35256 cat confdefs.h - <<_ACEOF >conftest.c
35257
35258
35259 #include <linux/fs.h>
35260
35261 int nr_cached_objects(struct super_block *sb) { return 0; }
35262
35263 static const struct super_operations
35264 sops __attribute__ ((unused)) = {
35265 .nr_cached_objects = nr_cached_objects,
35266 };
35267
35268 int
35269 main (void)
35270 {
35271
35272
35273 ;
35274 return 0;
35275 }
35276
35277 _ACEOF
35278
35279
35280
35281 cat - <<_ACEOF >conftest.h
35282
35283 _ACEOF
35284
35285
35286 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35287 echo "obj-m := conftest.o" >build/Makefile
35288 modpost_flag=''
35289 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35290 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35292 (eval $ac_try) 2>&5
35293 ac_status=$?
35294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35295 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35297 (eval $ac_try) 2>&5
35298 ac_status=$?
35299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35300 test $ac_status = 0; }; }; then :
35301
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35303 $as_echo "yes" >&6; }
35304
35305 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35306
35307
35308 else
35309 $as_echo "$as_me: failed program was:" >&5
35310 sed 's/^/| /' conftest.$ac_ext >&5
35311
35312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35313 $as_echo "no" >&6; }
35314
35315
35316
35317 fi
35318 rm -Rf build
35319
35320
35321
35322
35323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35324 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35325
35326
35327 cat confdefs.h - <<_ACEOF >conftest.c
35328
35329
35330 #include <linux/fs.h>
35331
35332 void free_cached_objects(struct super_block *sb, int x)
35333 { return; }
35334
35335 static const struct super_operations
35336 sops __attribute__ ((unused)) = {
35337 .free_cached_objects = free_cached_objects,
35338 };
35339
35340 int
35341 main (void)
35342 {
35343
35344
35345 ;
35346 return 0;
35347 }
35348
35349 _ACEOF
35350
35351
35352
35353 cat - <<_ACEOF >conftest.h
35354
35355 _ACEOF
35356
35357
35358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35359 echo "obj-m := conftest.o" >build/Makefile
35360 modpost_flag=''
35361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35362 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35364 (eval $ac_try) 2>&5
35365 ac_status=$?
35366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35369 (eval $ac_try) 2>&5
35370 ac_status=$?
35371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35372 test $ac_status = 0; }; }; then :
35373
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35375 $as_echo "yes" >&6; }
35376
35377 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
35378
35379
35380 else
35381 $as_echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35383
35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35385 $as_echo "no" >&6; }
35386
35387
35388
35389 fi
35390 rm -Rf build
35391
35392
35393
35394
35395
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35397 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35398
35399
35400 cat confdefs.h - <<_ACEOF >conftest.c
35401
35402
35403 #include <linux/fs.h>
35404
35405 long test_fallocate(struct file *file, int mode,
35406 loff_t offset, loff_t len) { return 0; }
35407
35408 static const struct file_operations
35409 fops __attribute__ ((unused)) = {
35410 .fallocate = test_fallocate,
35411 };
35412
35413 int
35414 main (void)
35415 {
35416
35417
35418 ;
35419 return 0;
35420 }
35421
35422 _ACEOF
35423
35424
35425
35426 cat - <<_ACEOF >conftest.h
35427
35428 _ACEOF
35429
35430
35431 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35432 echo "obj-m := conftest.o" >build/Makefile
35433 modpost_flag=''
35434 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35435 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35437 (eval $ac_try) 2>&5
35438 ac_status=$?
35439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35440 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35445 test $ac_status = 0; }; }; then :
35446
35447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35448 $as_echo "yes" >&6; }
35449
35450 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35451
35452
35453 else
35454 $as_echo "$as_me: failed program was:" >&5
35455 sed 's/^/| /' conftest.$ac_ext >&5
35456
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35458 $as_echo "no" >&6; }
35459
35460
35461
35462 fi
35463 rm -Rf build
35464
35465
35466
35467
35468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35469 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35470
35471
35472 cat confdefs.h - <<_ACEOF >conftest.c
35473
35474
35475 #include <linux/fs.h>
35476
35477 long test_fallocate(struct inode *inode, int mode,
35478 loff_t offset, loff_t len) { return 0; }
35479
35480 static const struct inode_operations
35481 fops __attribute__ ((unused)) = {
35482 .fallocate = test_fallocate,
35483 };
35484
35485 int
35486 main (void)
35487 {
35488
35489
35490 ;
35491 return 0;
35492 }
35493
35494 _ACEOF
35495
35496
35497
35498 cat - <<_ACEOF >conftest.h
35499
35500 _ACEOF
35501
35502
35503 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35504 echo "obj-m := conftest.o" >build/Makefile
35505 modpost_flag=''
35506 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35507 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35509 (eval $ac_try) 2>&5
35510 ac_status=$?
35511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35512 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
35516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35517 test $ac_status = 0; }; }; then :
35518
35519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35520 $as_echo "yes" >&6; }
35521
35522 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
35523
35524
35525 else
35526 $as_echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35528
35529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35530 $as_echo "no" >&6; }
35531
35532
35533
35534 fi
35535 rm -Rf build
35536
35537
35538
35539
35540
35541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35542 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35543
35544
35545 cat confdefs.h - <<_ACEOF >conftest.c
35546
35547
35548 #include <linux/fs.h>
35549
35550 static const struct file_operations
35551 fops __attribute__ ((unused)) = {
35552 .aio_fsync = NULL,
35553 };
35554
35555 int
35556 main (void)
35557 {
35558
35559
35560 ;
35561 return 0;
35562 }
35563
35564 _ACEOF
35565
35566
35567
35568 cat - <<_ACEOF >conftest.h
35569
35570 _ACEOF
35571
35572
35573 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35574 echo "obj-m := conftest.o" >build/Makefile
35575 modpost_flag=''
35576 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35577 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35579 (eval $ac_try) 2>&5
35580 ac_status=$?
35581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35582 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35584 (eval $ac_try) 2>&5
35585 ac_status=$?
35586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35587 test $ac_status = 0; }; }; then :
35588
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35590 $as_echo "yes" >&6; }
35591
35592 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35593
35594
35595 else
35596 $as_echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.$ac_ext >&5
35598
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35600 $as_echo "no" >&6; }
35601
35602
35603
35604 fi
35605 rm -Rf build
35606
35607
35608
35609
35610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35611 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35612
35613
35614 cat confdefs.h - <<_ACEOF >conftest.c
35615
35616
35617 #include <linux/fs.h>
35618
35619 int mkdir(struct inode *inode, struct dentry *dentry,
35620 umode_t umode) { return 0; }
35621
35622 static const struct inode_operations
35623 iops __attribute__ ((unused)) = {
35624 .mkdir = mkdir,
35625 };
35626
35627 int
35628 main (void)
35629 {
35630
35631
35632 ;
35633 return 0;
35634 }
35635
35636 _ACEOF
35637
35638
35639
35640 cat - <<_ACEOF >conftest.h
35641
35642 _ACEOF
35643
35644
35645 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35646 echo "obj-m := conftest.o" >build/Makefile
35647 modpost_flag=''
35648 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35649 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35654 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35656 (eval $ac_try) 2>&5
35657 ac_status=$?
35658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35659 test $ac_status = 0; }; }; then :
35660
35661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35662 $as_echo "yes" >&6; }
35663
35664 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35665
35666
35667 else
35668 $as_echo "$as_me: failed program was:" >&5
35669 sed 's/^/| /' conftest.$ac_ext >&5
35670
35671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35672 $as_echo "no" >&6; }
35673
35674
35675
35676 fi
35677 rm -Rf build
35678
35679
35680
35681
35682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35683 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35684
35685
35686 cat confdefs.h - <<_ACEOF >conftest.c
35687
35688
35689 #include <linux/fs.h>
35690
35691 struct dentry *inode_lookup(struct inode *inode,
35692 struct dentry *dentry, struct nameidata *nidata)
35693 { return NULL; }
35694
35695 static const struct inode_operations iops
35696 __attribute__ ((unused)) = {
35697 .lookup = inode_lookup,
35698 };
35699
35700 int
35701 main (void)
35702 {
35703
35704
35705 ;
35706 return 0;
35707 }
35708
35709 _ACEOF
35710
35711
35712
35713 cat - <<_ACEOF >conftest.h
35714
35715 _ACEOF
35716
35717
35718 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35719 echo "obj-m := conftest.o" >build/Makefile
35720 modpost_flag=''
35721 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35722 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35724 (eval $ac_try) 2>&5
35725 ac_status=$?
35726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35727 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35729 (eval $ac_try) 2>&5
35730 ac_status=$?
35731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35732 test $ac_status = 0; }; }; then :
35733
35734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35735 $as_echo "yes" >&6; }
35736
35737 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35738
35739
35740 else
35741 $as_echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35743
35744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35745 $as_echo "no" >&6; }
35746
35747
35748
35749 fi
35750 rm -Rf build
35751
35752
35753
35754
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35756 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35757
35758
35759 cat confdefs.h - <<_ACEOF >conftest.c
35760
35761
35762 #include <linux/fs.h>
35763
35764 #ifdef HAVE_MKDIR_UMODE_T
35765 int inode_create(struct inode *inode ,struct dentry *dentry,
35766 umode_t umode, struct nameidata *nidata) { return 0; }
35767 #else
35768 int inode_create(struct inode *inode,struct dentry *dentry,
35769 int umode, struct nameidata * nidata) { return 0; }
35770 #endif
35771
35772 static const struct inode_operations
35773 iops __attribute__ ((unused)) = {
35774 .create = inode_create,
35775 };
35776
35777 int
35778 main (void)
35779 {
35780
35781
35782 ;
35783 return 0;
35784 }
35785
35786 _ACEOF
35787
35788
35789
35790 cat - <<_ACEOF >conftest.h
35791
35792 _ACEOF
35793
35794
35795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35796 echo "obj-m := conftest.o" >build/Makefile
35797 modpost_flag=''
35798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35801 (eval $ac_try) 2>&5
35802 ac_status=$?
35803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35806 (eval $ac_try) 2>&5
35807 ac_status=$?
35808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35809 test $ac_status = 0; }; }; then :
35810
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35812 $as_echo "yes" >&6; }
35813
35814 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35815
35816
35817 else
35818 $as_echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35820
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35822 $as_echo "no" >&6; }
35823
35824
35825
35826 fi
35827 rm -Rf build
35828
35829
35830
35831
35832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35833 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35834
35835
35836 cat confdefs.h - <<_ACEOF >conftest.c
35837
35838
35839 #include <linux/fs.h>
35840 const char *get_link(struct dentry *de, struct inode *ip,
35841 struct delayed_call *done) { return "symlink"; }
35842 static struct inode_operations
35843 iops __attribute__ ((unused)) = {
35844 .get_link = get_link,
35845 };
35846
35847 int
35848 main (void)
35849 {
35850
35851
35852 ;
35853 return 0;
35854 }
35855
35856 _ACEOF
35857
35858
35859
35860 cat - <<_ACEOF >conftest.h
35861
35862 _ACEOF
35863
35864
35865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35866 echo "obj-m := conftest.o" >build/Makefile
35867 modpost_flag=''
35868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35871 (eval $ac_try) 2>&5
35872 ac_status=$?
35873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35874 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35876 (eval $ac_try) 2>&5
35877 ac_status=$?
35878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35879 test $ac_status = 0; }; }; then :
35880
35881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35882 $as_echo "yes" >&6; }
35883
35884 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35885
35886
35887 else
35888 $as_echo "$as_me: failed program was:" >&5
35889 sed 's/^/| /' conftest.$ac_ext >&5
35890
35891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35892 $as_echo "no" >&6; }
35893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35894 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35895
35896
35897 cat confdefs.h - <<_ACEOF >conftest.c
35898
35899
35900 #include <linux/fs.h>
35901 const char *get_link(struct dentry *de, struct
35902 inode *ip, void **cookie) { return "symlink"; }
35903 static struct inode_operations
35904 iops __attribute__ ((unused)) = {
35905 .get_link = get_link,
35906 };
35907
35908 int
35909 main (void)
35910 {
35911
35912
35913 ;
35914 return 0;
35915 }
35916
35917 _ACEOF
35918
35919
35920
35921 cat - <<_ACEOF >conftest.h
35922
35923 _ACEOF
35924
35925
35926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35927 echo "obj-m := conftest.o" >build/Makefile
35928 modpost_flag=''
35929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35930 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35932 (eval $ac_try) 2>&5
35933 ac_status=$?
35934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35935 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35937 (eval $ac_try) 2>&5
35938 ac_status=$?
35939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35940 test $ac_status = 0; }; }; then :
35941
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943 $as_echo "yes" >&6; }
35944
35945 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35946
35947
35948 else
35949 $as_echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35951
35952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35953 $as_echo "no" >&6; }
35954
35955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35956 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35957
35958
35959 cat confdefs.h - <<_ACEOF >conftest.c
35960
35961
35962 #include <linux/fs.h>
35963 const char *follow_link(struct dentry *de,
35964 void **cookie) { return "symlink"; }
35965 static struct inode_operations
35966 iops __attribute__ ((unused)) = {
35967 .follow_link = follow_link,
35968 };
35969
35970 int
35971 main (void)
35972 {
35973
35974
35975 ;
35976 return 0;
35977 }
35978
35979 _ACEOF
35980
35981
35982
35983 cat - <<_ACEOF >conftest.h
35984
35985 _ACEOF
35986
35987
35988 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35989 echo "obj-m := conftest.o" >build/Makefile
35990 modpost_flag=''
35991 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35992 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35994 (eval $ac_try) 2>&5
35995 ac_status=$?
35996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35997 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35999 (eval $ac_try) 2>&5
36000 ac_status=$?
36001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36002 test $ac_status = 0; }; }; then :
36003
36004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36005 $as_echo "yes" >&6; }
36006
36007 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
36008
36009
36010 else
36011 $as_echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.$ac_ext >&5
36013
36014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36015 $as_echo "no" >&6; }
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
36017 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
36018
36019
36020 cat confdefs.h - <<_ACEOF >conftest.c
36021
36022
36023 #include <linux/fs.h>
36024 void *follow_link(struct dentry *de, struct
36025 nameidata *nd) { return (void *)NULL; }
36026 static struct inode_operations
36027 iops __attribute__ ((unused)) = {
36028 .follow_link = follow_link,
36029 };
36030
36031 int
36032 main (void)
36033 {
36034
36035
36036 ;
36037 return 0;
36038 }
36039
36040 _ACEOF
36041
36042
36043
36044 cat - <<_ACEOF >conftest.h
36045
36046 _ACEOF
36047
36048
36049 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36050 echo "obj-m := conftest.o" >build/Makefile
36051 modpost_flag=''
36052 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36053 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36055 (eval $ac_try) 2>&5
36056 ac_status=$?
36057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36058 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36060 (eval $ac_try) 2>&5
36061 ac_status=$?
36062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36063 test $ac_status = 0; }; }; then :
36064
36065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36066 $as_echo "yes" >&6; }
36067
36068 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
36069
36070
36071 else
36072 $as_echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36074
36075 as_fn_error $? "no; please file a bug report" "$LINENO" 5
36076
36077
36078
36079 fi
36080 rm -Rf build
36081
36082
36083
36084
36085
36086 fi
36087 rm -Rf build
36088
36089
36090
36091
36092
36093
36094 fi
36095 rm -Rf build
36096
36097
36098
36099
36100
36101 fi
36102 rm -Rf build
36103
36104
36105
36106
36107
36108
36109 cat confdefs.h - <<_ACEOF >conftest.c
36110
36111
36112 #if !defined(HAVE_GET_LINK_DELAYED)
36113 #error "Expecting get_link() delayed done"
36114 #endif
36115
36116 int
36117 main (void)
36118 {
36119
36120
36121 ;
36122 return 0;
36123 }
36124
36125 _ACEOF
36126
36127
36128
36129 cat - <<_ACEOF >conftest.h
36130
36131 _ACEOF
36132
36133
36134 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36135 echo "obj-m := conftest.o" >build/Makefile
36136 modpost_flag=''
36137 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36138 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36140 (eval $ac_try) 2>&5
36141 ac_status=$?
36142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36143 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36145 (eval $ac_try) 2>&5
36146 ac_status=$?
36147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36148 test $ac_status = 0; }; }; then :
36149
36150
36151 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
36152
36153
36154 else
36155 $as_echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36157
36158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
36159 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
36160
36161
36162 cat confdefs.h - <<_ACEOF >conftest.c
36163
36164
36165 #include <linux/fs.h>
36166 void put_link(struct inode *ip, void *cookie)
36167 { return; }
36168 static struct inode_operations
36169 iops __attribute__ ((unused)) = {
36170 .put_link = put_link,
36171 };
36172
36173 int
36174 main (void)
36175 {
36176
36177
36178 ;
36179 return 0;
36180 }
36181
36182 _ACEOF
36183
36184
36185
36186 cat - <<_ACEOF >conftest.h
36187
36188 _ACEOF
36189
36190
36191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36192 echo "obj-m := conftest.o" >build/Makefile
36193 modpost_flag=''
36194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36195 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36197 (eval $ac_try) 2>&5
36198 ac_status=$?
36199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36200 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36202 (eval $ac_try) 2>&5
36203 ac_status=$?
36204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36205 test $ac_status = 0; }; }; then :
36206
36207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36208 $as_echo "yes" >&6; }
36209
36210 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
36211
36212
36213 else
36214 $as_echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36216
36217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36218 $as_echo "no" >&6; }
36219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
36220 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
36221
36222
36223 cat confdefs.h - <<_ACEOF >conftest.c
36224
36225
36226 #include <linux/fs.h>
36227 void put_link(struct dentry *de, struct
36228 nameidata *nd, void *ptr) { return; }
36229 static struct inode_operations
36230 iops __attribute__ ((unused)) = {
36231 .put_link = put_link,
36232 };
36233
36234 int
36235 main (void)
36236 {
36237
36238
36239 ;
36240 return 0;
36241 }
36242
36243 _ACEOF
36244
36245
36246
36247 cat - <<_ACEOF >conftest.h
36248
36249 _ACEOF
36250
36251
36252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36253 echo "obj-m := conftest.o" >build/Makefile
36254 modpost_flag=''
36255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36256 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36258 (eval $ac_try) 2>&5
36259 ac_status=$?
36260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36261 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36263 (eval $ac_try) 2>&5
36264 ac_status=$?
36265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36266 test $ac_status = 0; }; }; then :
36267
36268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36269 $as_echo "yes" >&6; }
36270
36271 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
36272
36273
36274 else
36275 $as_echo "$as_me: failed program was:" >&5
36276 sed 's/^/| /' conftest.$ac_ext >&5
36277
36278 as_fn_error $? "no; please file a bug report" "$LINENO" 5
36279
36280
36281
36282 fi
36283 rm -Rf build
36284
36285
36286
36287
36288
36289 fi
36290 rm -Rf build
36291
36292
36293
36294
36295
36296 fi
36297 rm -Rf build
36298
36299
36300
36301
36302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36303 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36304
36305
36306 cat confdefs.h - <<_ACEOF >conftest.c
36307
36308
36309 #include <linux/fs.h>
36310 int tmpfile(struct inode *inode, struct dentry *dentry,
36311 umode_t mode) { return 0; }
36312 static struct inode_operations
36313 iops __attribute__ ((unused)) = {
36314 .tmpfile = tmpfile,
36315 };
36316
36317 int
36318 main (void)
36319 {
36320
36321
36322 ;
36323 return 0;
36324 }
36325
36326 _ACEOF
36327
36328
36329
36330 cat - <<_ACEOF >conftest.h
36331
36332 _ACEOF
36333
36334
36335 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36336 echo "obj-m := conftest.o" >build/Makefile
36337 modpost_flag=''
36338 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36339 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36341 (eval $ac_try) 2>&5
36342 ac_status=$?
36343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36344 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36346 (eval $ac_try) 2>&5
36347 ac_status=$?
36348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36349 test $ac_status = 0; }; }; then :
36350
36351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36352 $as_echo "yes" >&6; }
36353
36354 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36355
36356
36357 else
36358 $as_echo "$as_me: failed program was:" >&5
36359 sed 's/^/| /' conftest.$ac_ext >&5
36360
36361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36362 $as_echo "no" >&6; }
36363
36364
36365
36366 fi
36367 rm -Rf build
36368
36369
36370
36371
36372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36373 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
36374
36375
36376 cat confdefs.h - <<_ACEOF >conftest.c
36377
36378
36379 #include <linux/fs.h>
36380 void truncate_range(struct inode *inode, loff_t start,
36381 loff_t end) { return; }
36382 static struct inode_operations iops __attribute__ ((unused)) = {
36383 .truncate_range = truncate_range,
36384 };
36385
36386 int
36387 main (void)
36388 {
36389
36390
36391 ;
36392 return 0;
36393 }
36394
36395 _ACEOF
36396
36397
36398
36399 cat - <<_ACEOF >conftest.h
36400
36401 _ACEOF
36402
36403
36404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36405 echo "obj-m := conftest.o" >build/Makefile
36406 modpost_flag=''
36407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36408 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36410 (eval $ac_try) 2>&5
36411 ac_status=$?
36412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36413 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36415 (eval $ac_try) 2>&5
36416 ac_status=$?
36417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36418 test $ac_status = 0; }; }; then :
36419
36420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36421 $as_echo "yes" >&6; }
36422
36423 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
36424
36425
36426 else
36427 $as_echo "$as_me: failed program was:" >&5
36428 sed 's/^/| /' conftest.$ac_ext >&5
36429
36430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36431 $as_echo "no" >&6; }
36432
36433
36434
36435 fi
36436 rm -Rf build
36437
36438
36439
36440
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36442 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
36443
36444
36445 cat confdefs.h - <<_ACEOF >conftest.c
36446
36447
36448 #include <linux/dcache.h>
36449 struct vfsmount *d_automount(struct path *p) { return NULL; }
36450 struct dentry_operations dops __attribute__ ((unused)) = {
36451 .d_automount = d_automount,
36452 };
36453
36454 int
36455 main (void)
36456 {
36457
36458
36459 ;
36460 return 0;
36461 }
36462
36463 _ACEOF
36464
36465
36466
36467 cat - <<_ACEOF >conftest.h
36468
36469 _ACEOF
36470
36471
36472 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36473 echo "obj-m := conftest.o" >build/Makefile
36474 modpost_flag=''
36475 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36476 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36478 (eval $ac_try) 2>&5
36479 ac_status=$?
36480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36481 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36483 (eval $ac_try) 2>&5
36484 ac_status=$?
36485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36486 test $ac_status = 0; }; }; then :
36487
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36489 $as_echo "yes" >&6; }
36490
36491 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
36492
36493
36494 else
36495 $as_echo "$as_me: failed program was:" >&5
36496 sed 's/^/| /' conftest.$ac_ext >&5
36497
36498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36499 $as_echo "no" >&6; }
36500
36501
36502
36503 fi
36504 rm -Rf build
36505
36506
36507
36508
36509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36510 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
36511
36512
36513 cat confdefs.h - <<_ACEOF >conftest.c
36514
36515
36516 #include <linux/exportfs.h>
36517 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36518 struct inode *parent) { return 0; }
36519 static struct export_operations eops __attribute__ ((unused))={
36520 .encode_fh = encode_fh,
36521 };
36522
36523 int
36524 main (void)
36525 {
36526
36527
36528 ;
36529 return 0;
36530 }
36531
36532 _ACEOF
36533
36534
36535
36536 cat - <<_ACEOF >conftest.h
36537
36538 _ACEOF
36539
36540
36541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36542 echo "obj-m := conftest.o" >build/Makefile
36543 modpost_flag=''
36544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36547 (eval $ac_try) 2>&5
36548 ac_status=$?
36549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36552 (eval $ac_try) 2>&5
36553 ac_status=$?
36554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36555 test $ac_status = 0; }; }; then :
36556
36557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36558 $as_echo "yes" >&6; }
36559
36560 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
36561
36562
36563 else
36564 $as_echo "$as_me: failed program was:" >&5
36565 sed 's/^/| /' conftest.$ac_ext >&5
36566
36567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36568 $as_echo "no" >&6; }
36569
36570
36571
36572 fi
36573 rm -Rf build
36574
36575
36576
36577
36578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36579 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36580
36581
36582 cat confdefs.h - <<_ACEOF >conftest.c
36583
36584
36585 #include <linux/exportfs.h>
36586 int commit_metadata(struct inode *inode) { return 0; }
36587 static struct export_operations eops __attribute__ ((unused))={
36588 .commit_metadata = commit_metadata,
36589 };
36590
36591 int
36592 main (void)
36593 {
36594
36595
36596 ;
36597 return 0;
36598 }
36599
36600 _ACEOF
36601
36602
36603
36604 cat - <<_ACEOF >conftest.h
36605
36606 _ACEOF
36607
36608
36609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36610 echo "obj-m := conftest.o" >build/Makefile
36611 modpost_flag=''
36612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36613 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36615 (eval $ac_try) 2>&5
36616 ac_status=$?
36617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36618 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36620 (eval $ac_try) 2>&5
36621 ac_status=$?
36622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36623 test $ac_status = 0; }; }; then :
36624
36625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36626 $as_echo "yes" >&6; }
36627
36628 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36629
36630
36631 else
36632 $as_echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.$ac_ext >&5
36634
36635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36636 $as_echo "no" >&6; }
36637
36638
36639
36640 fi
36641 rm -Rf build
36642
36643
36644
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36646 $as_echo_n "checking whether clear_inode() is available... " >&6; }
36647
36648
36649
36650 cat confdefs.h - <<_ACEOF >conftest.c
36651
36652
36653 #include <linux/fs.h>
36654
36655 int
36656 main (void)
36657 {
36658
36659 clear_inode(NULL);
36660
36661 ;
36662 return 0;
36663 }
36664
36665 _ACEOF
36666
36667
36668
36669 cat - <<_ACEOF >conftest.h
36670
36671 _ACEOF
36672
36673
36674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36675 echo "obj-m := conftest.o" >build/Makefile
36676 modpost_flag=''
36677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36680 (eval $ac_try) 2>&5
36681 ac_status=$?
36682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36685 (eval $ac_try) 2>&5
36686 ac_status=$?
36687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36688 test $ac_status = 0; }; }; then :
36689 rc=0
36690 else
36691 $as_echo "$as_me: failed program was:" >&5
36692 sed 's/^/| /' conftest.$ac_ext >&5
36693 rc=1
36694
36695
36696 fi
36697 rm -Rf build
36698
36699
36700 if test $rc -ne 0; then :
36701
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36703 $as_echo "no" >&6; }
36704
36705 else
36706 if test "x$enable_linux_builtin" != xyes; then
36707
36708 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36709 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36710 rc=$?
36711 if test $rc -ne 0; then
36712 export=0
36713 for file in fs/inode.c; do
36714 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36715 "$LINUX/$file" 2>/dev/null
36716 rc=$?
36717 if test $rc -eq 0; then
36718 export=1
36719 break;
36720 fi
36721 done
36722 if test $export -eq 0; then :
36723 rc=1
36724 else :
36725 rc=0
36726 fi
36727 else :
36728 rc=0
36729 fi
36730
36731 fi
36732 if test $rc -ne 0; then :
36733
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36735 $as_echo "no" >&6; }
36736
36737 else :
36738
36739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36740 $as_echo "yes" >&6; }
36741
36742 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
36743
36744
36745 fi
36746 fi
36747
36748
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36750 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36751
36752
36753
36754 cat confdefs.h - <<_ACEOF >conftest.c
36755
36756
36757 #include <linux/fs.h>
36758
36759 int
36760 main (void)
36761 {
36762
36763 struct dentry *dentry = NULL;
36764 struct iattr *attr = NULL;
36765 int error;
36766
36767 error = setattr_prepare(dentry, attr);
36768
36769 ;
36770 return 0;
36771 }
36772
36773 _ACEOF
36774
36775
36776
36777 cat - <<_ACEOF >conftest.h
36778
36779 _ACEOF
36780
36781
36782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36783 echo "obj-m := conftest.o" >build/Makefile
36784 modpost_flag=''
36785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36788 (eval $ac_try) 2>&5
36789 ac_status=$?
36790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36791 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36793 (eval $ac_try) 2>&5
36794 ac_status=$?
36795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36796 test $ac_status = 0; }; }; then :
36797 rc=0
36798 else
36799 $as_echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36801 rc=1
36802
36803
36804 fi
36805 rm -Rf build
36806
36807
36808 if test $rc -ne 0; then :
36809
36810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36811 $as_echo "no" >&6; }
36812
36813 else
36814 if test "x$enable_linux_builtin" != xyes; then
36815
36816 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36817 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36818 rc=$?
36819 if test $rc -ne 0; then
36820 export=0
36821 for file in fs/attr.c; do
36822 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36823 "$LINUX/$file" 2>/dev/null
36824 rc=$?
36825 if test $rc -eq 0; then
36826 export=1
36827 break;
36828 fi
36829 done
36830 if test $export -eq 0; then :
36831 rc=1
36832 else :
36833 rc=0
36834 fi
36835 else :
36836 rc=0
36837 fi
36838
36839 fi
36840 if test $rc -ne 0; then :
36841
36842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36843 $as_echo "no" >&6; }
36844
36845 else :
36846
36847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36848 $as_echo "yes" >&6; }
36849
36850 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
36851
36852
36853 fi
36854 fi
36855
36856
36857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36858 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36859
36860
36861
36862 cat confdefs.h - <<_ACEOF >conftest.c
36863
36864
36865 #include <linux/fs.h>
36866
36867 int
36868 main (void)
36869 {
36870
36871 insert_inode_locked(NULL);
36872
36873 ;
36874 return 0;
36875 }
36876
36877 _ACEOF
36878
36879
36880
36881 cat - <<_ACEOF >conftest.h
36882
36883 _ACEOF
36884
36885
36886 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36887 echo "obj-m := conftest.o" >build/Makefile
36888 modpost_flag=''
36889 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36890 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36892 (eval $ac_try) 2>&5
36893 ac_status=$?
36894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36895 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36897 (eval $ac_try) 2>&5
36898 ac_status=$?
36899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36900 test $ac_status = 0; }; }; then :
36901 rc=0
36902 else
36903 $as_echo "$as_me: failed program was:" >&5
36904 sed 's/^/| /' conftest.$ac_ext >&5
36905 rc=1
36906
36907
36908 fi
36909 rm -Rf build
36910
36911
36912 if test $rc -ne 0; then :
36913
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915 $as_echo "no" >&6; }
36916
36917 else
36918 if test "x$enable_linux_builtin" != xyes; then
36919
36920 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36921 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36922 rc=$?
36923 if test $rc -ne 0; then
36924 export=0
36925 for file in fs/inode.c; do
36926 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36927 "$LINUX/$file" 2>/dev/null
36928 rc=$?
36929 if test $rc -eq 0; then
36930 export=1
36931 break;
36932 fi
36933 done
36934 if test $export -eq 0; then :
36935 rc=1
36936 else :
36937 rc=0
36938 fi
36939 else :
36940 rc=0
36941 fi
36942
36943 fi
36944 if test $rc -ne 0; then :
36945
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36947 $as_echo "no" >&6; }
36948
36949 else :
36950
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 $as_echo "yes" >&6; }
36953
36954 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36955
36956
36957 fi
36958 fi
36959
36960
36961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36962 $as_echo_n "checking whether d_make_root() is available... " >&6; }
36963
36964
36965
36966 cat confdefs.h - <<_ACEOF >conftest.c
36967
36968
36969 #include <linux/dcache.h>
36970
36971 int
36972 main (void)
36973 {
36974
36975 d_make_root(NULL);
36976
36977 ;
36978 return 0;
36979 }
36980
36981 _ACEOF
36982
36983
36984
36985 cat - <<_ACEOF >conftest.h
36986
36987 _ACEOF
36988
36989
36990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36991 echo "obj-m := conftest.o" >build/Makefile
36992 modpost_flag=''
36993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36994 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36996 (eval $ac_try) 2>&5
36997 ac_status=$?
36998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37001 (eval $ac_try) 2>&5
37002 ac_status=$?
37003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37004 test $ac_status = 0; }; }; then :
37005 rc=0
37006 else
37007 $as_echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37009 rc=1
37010
37011
37012 fi
37013 rm -Rf build
37014
37015
37016 if test $rc -ne 0; then :
37017
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37019 $as_echo "no" >&6; }
37020
37021 else
37022 if test "x$enable_linux_builtin" != xyes; then
37023
37024 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
37025 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37026 rc=$?
37027 if test $rc -ne 0; then
37028 export=0
37029 for file in fs/dcache.c; do
37030 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
37031 "$LINUX/$file" 2>/dev/null
37032 rc=$?
37033 if test $rc -eq 0; then
37034 export=1
37035 break;
37036 fi
37037 done
37038 if test $export -eq 0; then :
37039 rc=1
37040 else :
37041 rc=0
37042 fi
37043 else :
37044 rc=0
37045 fi
37046
37047 fi
37048 if test $rc -ne 0; then :
37049
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37051 $as_echo "no" >&6; }
37052
37053 else :
37054
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37056 $as_echo "yes" >&6; }
37057
37058 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
37059
37060
37061 fi
37062 fi
37063
37064
37065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
37066 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
37067
37068
37069
37070 cat confdefs.h - <<_ACEOF >conftest.c
37071
37072
37073 #include <linux/dcache.h>
37074
37075 int
37076 main (void)
37077 {
37078
37079 d_obtain_alias(NULL);
37080
37081 ;
37082 return 0;
37083 }
37084
37085 _ACEOF
37086
37087
37088
37089 cat - <<_ACEOF >conftest.h
37090
37091 _ACEOF
37092
37093
37094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37095 echo "obj-m := conftest.o" >build/Makefile
37096 modpost_flag=''
37097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37100 (eval $ac_try) 2>&5
37101 ac_status=$?
37102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37105 (eval $ac_try) 2>&5
37106 ac_status=$?
37107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37108 test $ac_status = 0; }; }; then :
37109 rc=0
37110 else
37111 $as_echo "$as_me: failed program was:" >&5
37112 sed 's/^/| /' conftest.$ac_ext >&5
37113 rc=1
37114
37115
37116 fi
37117 rm -Rf build
37118
37119
37120 if test $rc -ne 0; then :
37121
37122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37123 $as_echo "no" >&6; }
37124
37125 else
37126 if test "x$enable_linux_builtin" != xyes; then
37127
37128 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
37129 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37130 rc=$?
37131 if test $rc -ne 0; then
37132 export=0
37133 for file in fs/dcache.c; do
37134 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
37135 "$LINUX/$file" 2>/dev/null
37136 rc=$?
37137 if test $rc -eq 0; then
37138 export=1
37139 break;
37140 fi
37141 done
37142 if test $export -eq 0; then :
37143 rc=1
37144 else :
37145 rc=0
37146 fi
37147 else :
37148 rc=0
37149 fi
37150
37151 fi
37152 if test $rc -ne 0; then :
37153
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37155 $as_echo "no" >&6; }
37156
37157 else :
37158
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37160 $as_echo "yes" >&6; }
37161
37162 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
37163
37164
37165 fi
37166 fi
37167
37168
37169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
37170 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
37171
37172
37173
37174 cat confdefs.h - <<_ACEOF >conftest.c
37175
37176
37177 #include <linux/dcache.h>
37178
37179 int
37180 main (void)
37181 {
37182
37183 struct inode *ip = NULL;
37184 d_prune_aliases(ip);
37185
37186 ;
37187 return 0;
37188 }
37189
37190 _ACEOF
37191
37192
37193
37194 cat - <<_ACEOF >conftest.h
37195
37196 _ACEOF
37197
37198
37199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37200 echo "obj-m := conftest.o" >build/Makefile
37201 modpost_flag=''
37202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37203 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37205 (eval $ac_try) 2>&5
37206 ac_status=$?
37207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37208 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37210 (eval $ac_try) 2>&5
37211 ac_status=$?
37212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37213 test $ac_status = 0; }; }; then :
37214 rc=0
37215 else
37216 $as_echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37218 rc=1
37219
37220
37221 fi
37222 rm -Rf build
37223
37224
37225 if test $rc -ne 0; then :
37226
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37228 $as_echo "no" >&6; }
37229
37230 else
37231 if test "x$enable_linux_builtin" != xyes; then
37232
37233 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
37234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37235 rc=$?
37236 if test $rc -ne 0; then
37237 export=0
37238 for file in fs/dcache.c; do
37239 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
37240 "$LINUX/$file" 2>/dev/null
37241 rc=$?
37242 if test $rc -eq 0; then
37243 export=1
37244 break;
37245 fi
37246 done
37247 if test $export -eq 0; then :
37248 rc=1
37249 else :
37250 rc=0
37251 fi
37252 else :
37253 rc=0
37254 fi
37255
37256 fi
37257 if test $rc -ne 0; then :
37258
37259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37260 $as_echo "no" >&6; }
37261
37262 else :
37263
37264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37265 $as_echo "yes" >&6; }
37266
37267 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
37268
37269
37270 fi
37271 fi
37272
37273
37274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37275 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
37276
37277
37278
37279 cat confdefs.h - <<_ACEOF >conftest.c
37280
37281
37282 #include <linux/dcache.h>
37283
37284 int
37285 main (void)
37286 {
37287
37288 d_set_d_op(NULL, NULL);
37289
37290 ;
37291 return 0;
37292 }
37293
37294 _ACEOF
37295
37296
37297
37298 cat - <<_ACEOF >conftest.h
37299
37300 _ACEOF
37301
37302
37303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37304 echo "obj-m := conftest.o" >build/Makefile
37305 modpost_flag=''
37306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37307 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37309 (eval $ac_try) 2>&5
37310 ac_status=$?
37311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37312 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37314 (eval $ac_try) 2>&5
37315 ac_status=$?
37316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37317 test $ac_status = 0; }; }; then :
37318 rc=0
37319 else
37320 $as_echo "$as_me: failed program was:" >&5
37321 sed 's/^/| /' conftest.$ac_ext >&5
37322 rc=1
37323
37324
37325 fi
37326 rm -Rf build
37327
37328
37329 if test $rc -ne 0; then :
37330
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37332 $as_echo "no" >&6; }
37333
37334 else
37335 if test "x$enable_linux_builtin" != xyes; then
37336
37337 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
37338 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37339 rc=$?
37340 if test $rc -ne 0; then
37341 export=0
37342 for file in fs/dcache.c; do
37343 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
37344 "$LINUX/$file" 2>/dev/null
37345 rc=$?
37346 if test $rc -eq 0; then
37347 export=1
37348 break;
37349 fi
37350 done
37351 if test $export -eq 0; then :
37352 rc=1
37353 else :
37354 rc=0
37355 fi
37356 else :
37357 rc=0
37358 fi
37359
37360 fi
37361 if test $rc -ne 0; then :
37362
37363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37364 $as_echo "no" >&6; }
37365
37366 else :
37367
37368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37369 $as_echo "yes" >&6; }
37370
37371 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
37372
37373
37374 fi
37375 fi
37376
37377
37378
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37380 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
37381
37382
37383 cat confdefs.h - <<_ACEOF >conftest.c
37384
37385
37386 #include <linux/dcache.h>
37387
37388 int revalidate (struct dentry *dentry,
37389 struct nameidata *nidata) { return 0; }
37390
37391 static const struct dentry_operations
37392 dops __attribute__ ((unused)) = {
37393 .d_revalidate = revalidate,
37394 };
37395
37396 int
37397 main (void)
37398 {
37399
37400
37401 ;
37402 return 0;
37403 }
37404
37405 _ACEOF
37406
37407
37408
37409 cat - <<_ACEOF >conftest.h
37410
37411 _ACEOF
37412
37413
37414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37415 echo "obj-m := conftest.o" >build/Makefile
37416 modpost_flag=''
37417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37418 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37420 (eval $ac_try) 2>&5
37421 ac_status=$?
37422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37423 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37425 (eval $ac_try) 2>&5
37426 ac_status=$?
37427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37428 test $ac_status = 0; }; }; then :
37429
37430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37431 $as_echo "yes" >&6; }
37432
37433 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
37434
37435
37436 else
37437 $as_echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37439
37440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37441 $as_echo "no" >&6; }
37442
37443
37444
37445 fi
37446 rm -Rf build
37447
37448
37449
37450
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37452 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
37453
37454
37455 cat confdefs.h - <<_ACEOF >conftest.c
37456
37457
37458 #include <linux/dcache.h>
37459
37460 const struct dentry_operations test_d_op = {
37461 .d_revalidate = NULL,
37462 };
37463
37464 int
37465 main (void)
37466 {
37467
37468 struct dentry d __attribute__ ((unused));
37469
37470 d.d_op = &test_d_op;
37471
37472 ;
37473 return 0;
37474 }
37475
37476 _ACEOF
37477
37478
37479
37480 cat - <<_ACEOF >conftest.h
37481
37482 _ACEOF
37483
37484
37485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37486 echo "obj-m := conftest.o" >build/Makefile
37487 modpost_flag=''
37488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37489 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37491 (eval $ac_try) 2>&5
37492 ac_status=$?
37493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37494 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37496 (eval $ac_try) 2>&5
37497 ac_status=$?
37498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37499 test $ac_status = 0; }; }; then :
37500
37501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37502 $as_echo "yes" >&6; }
37503
37504 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
37505
37506
37507 else
37508 $as_echo "$as_me: failed program was:" >&5
37509 sed 's/^/| /' conftest.$ac_ext >&5
37510
37511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37512 $as_echo "no" >&6; }
37513
37514
37515
37516 fi
37517 rm -Rf build
37518
37519
37520
37521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37522 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
37523
37524
37525
37526 cat confdefs.h - <<_ACEOF >conftest.c
37527
37528
37529 #include <linux/mm.h>
37530
37531 int
37532 main (void)
37533 {
37534
37535 truncate_setsize(NULL, 0);
37536
37537 ;
37538 return 0;
37539 }
37540
37541 _ACEOF
37542
37543
37544
37545 cat - <<_ACEOF >conftest.h
37546
37547 _ACEOF
37548
37549
37550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37551 echo "obj-m := conftest.o" >build/Makefile
37552 modpost_flag=''
37553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37554 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37556 (eval $ac_try) 2>&5
37557 ac_status=$?
37558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37561 (eval $ac_try) 2>&5
37562 ac_status=$?
37563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37564 test $ac_status = 0; }; }; then :
37565 rc=0
37566 else
37567 $as_echo "$as_me: failed program was:" >&5
37568 sed 's/^/| /' conftest.$ac_ext >&5
37569 rc=1
37570
37571
37572 fi
37573 rm -Rf build
37574
37575
37576 if test $rc -ne 0; then :
37577
37578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37579 $as_echo "no" >&6; }
37580
37581 else
37582 if test "x$enable_linux_builtin" != xyes; then
37583
37584 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
37585 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37586 rc=$?
37587 if test $rc -ne 0; then
37588 export=0
37589 for file in mm/truncate.c; do
37590 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
37591 "$LINUX/$file" 2>/dev/null
37592 rc=$?
37593 if test $rc -eq 0; then
37594 export=1
37595 break;
37596 fi
37597 done
37598 if test $export -eq 0; then :
37599 rc=1
37600 else :
37601 rc=0
37602 fi
37603 else :
37604 rc=0
37605 fi
37606
37607 fi
37608 if test $rc -ne 0; then :
37609
37610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37611 $as_echo "no" >&6; }
37612
37613 else :
37614
37615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37616 $as_echo "yes" >&6; }
37617
37618 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
37619
37620
37621 fi
37622 fi
37623
37624
37625
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37627 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
37628
37629
37630 cat confdefs.h - <<_ACEOF >conftest.c
37631
37632
37633 #include <linux/security.h>
37634
37635 int
37636 main (void)
37637 {
37638
37639 struct inode *ip __attribute__ ((unused)) = NULL;
37640 struct inode *dip __attribute__ ((unused)) = NULL;
37641 const struct qstr *str __attribute__ ((unused)) = NULL;
37642 char *name __attribute__ ((unused)) = NULL;
37643 void *value __attribute__ ((unused)) = NULL;
37644 size_t len __attribute__ ((unused)) = 0;
37645
37646 security_inode_init_security(ip, dip, str, &name, &value, &len);
37647
37648 ;
37649 return 0;
37650 }
37651
37652 _ACEOF
37653
37654
37655
37656 cat - <<_ACEOF >conftest.h
37657
37658 _ACEOF
37659
37660
37661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37662 echo "obj-m := conftest.o" >build/Makefile
37663 modpost_flag=''
37664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37665 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37667 (eval $ac_try) 2>&5
37668 ac_status=$?
37669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37670 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37672 (eval $ac_try) 2>&5
37673 ac_status=$?
37674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37675 test $ac_status = 0; }; }; then :
37676
37677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678 $as_echo "yes" >&6; }
37679
37680 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37681
37682
37683 else
37684 $as_echo "$as_me: failed program was:" >&5
37685 sed 's/^/| /' conftest.$ac_ext >&5
37686
37687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37688 $as_echo "no" >&6; }
37689
37690
37691
37692 fi
37693 rm -Rf build
37694
37695
37696
37697
37698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37699 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
37700
37701
37702 cat confdefs.h - <<_ACEOF >conftest.c
37703
37704
37705 #include <linux/security.h>
37706
37707 int
37708 main (void)
37709 {
37710
37711 struct inode *ip __attribute__ ((unused)) = NULL;
37712 struct inode *dip __attribute__ ((unused)) = NULL;
37713 const struct qstr *str __attribute__ ((unused)) = NULL;
37714 initxattrs func __attribute__ ((unused)) = NULL;
37715
37716 security_inode_init_security(ip, dip, str, func, NULL);
37717
37718 ;
37719 return 0;
37720 }
37721
37722 _ACEOF
37723
37724
37725
37726 cat - <<_ACEOF >conftest.h
37727
37728 _ACEOF
37729
37730
37731 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37732 echo "obj-m := conftest.o" >build/Makefile
37733 modpost_flag=''
37734 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37735 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37737 (eval $ac_try) 2>&5
37738 ac_status=$?
37739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37740 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37742 (eval $ac_try) 2>&5
37743 ac_status=$?
37744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37745 test $ac_status = 0; }; }; then :
37746
37747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37748 $as_echo "yes" >&6; }
37749
37750 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37751
37752
37753 else
37754 $as_echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37756
37757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37758 $as_echo "no" >&6; }
37759
37760
37761
37762 fi
37763 rm -Rf build
37764
37765
37766
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
37768 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
37769
37770
37771
37772 cat confdefs.h - <<_ACEOF >conftest.c
37773
37774
37775 #include <linux/fs.h>
37776
37777 int
37778 main (void)
37779 {
37780
37781 mount_nodev(NULL, 0, NULL, NULL);
37782
37783 ;
37784 return 0;
37785 }
37786
37787 _ACEOF
37788
37789
37790
37791 cat - <<_ACEOF >conftest.h
37792
37793 _ACEOF
37794
37795
37796 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37797 echo "obj-m := conftest.o" >build/Makefile
37798 modpost_flag=''
37799 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37800 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37802 (eval $ac_try) 2>&5
37803 ac_status=$?
37804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37805 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37807 (eval $ac_try) 2>&5
37808 ac_status=$?
37809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37810 test $ac_status = 0; }; }; then :
37811 rc=0
37812 else
37813 $as_echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.$ac_ext >&5
37815 rc=1
37816
37817
37818 fi
37819 rm -Rf build
37820
37821
37822 if test $rc -ne 0; then :
37823
37824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37825 $as_echo "no" >&6; }
37826
37827 else
37828 if test "x$enable_linux_builtin" != xyes; then
37829
37830 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
37831 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37832 rc=$?
37833 if test $rc -ne 0; then
37834 export=0
37835 for file in fs/super.c; do
37836 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
37837 "$LINUX/$file" 2>/dev/null
37838 rc=$?
37839 if test $rc -eq 0; then
37840 export=1
37841 break;
37842 fi
37843 done
37844 if test $export -eq 0; then :
37845 rc=1
37846 else :
37847 rc=0
37848 fi
37849 else :
37850 rc=0
37851 fi
37852
37853 fi
37854 if test $rc -ne 0; then :
37855
37856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37857 $as_echo "no" >&6; }
37858
37859 else :
37860
37861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37862 $as_echo "yes" >&6; }
37863
37864 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
37865
37866
37867 fi
37868 fi
37869
37870
37871
37872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37873 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
37874
37875
37876 cat confdefs.h - <<_ACEOF >conftest.c
37877
37878
37879 #include <linux/fs.h>
37880
37881 int shrink(struct shrinker *s, struct shrink_control *sc)
37882 { return 0; }
37883
37884 static const struct super_block
37885 sb __attribute__ ((unused)) = {
37886 .s_shrink.shrink = shrink,
37887 .s_shrink.seeks = DEFAULT_SEEKS,
37888 .s_shrink.batch = 0,
37889 };
37890
37891 int
37892 main (void)
37893 {
37894
37895
37896 ;
37897 return 0;
37898 }
37899
37900 _ACEOF
37901
37902
37903
37904 cat - <<_ACEOF >conftest.h
37905
37906 _ACEOF
37907
37908
37909 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37910 echo "obj-m := conftest.o" >build/Makefile
37911 modpost_flag=''
37912 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37913 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37915 (eval $ac_try) 2>&5
37916 ac_status=$?
37917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37918 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37920 (eval $ac_try) 2>&5
37921 ac_status=$?
37922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37923 test $ac_status = 0; }; }; then :
37924
37925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37926 $as_echo "yes" >&6; }
37927
37928 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
37929
37930
37931
37932 else
37933 $as_echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37935
37936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37937 $as_echo "no" >&6; }
37938
37939
37940
37941 fi
37942 rm -Rf build
37943
37944
37945
37946
37947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37948 $as_echo_n "checking whether shrink_control has nid... " >&6; }
37949
37950
37951 cat confdefs.h - <<_ACEOF >conftest.c
37952
37953
37954 #include <linux/fs.h>
37955
37956 int
37957 main (void)
37958 {
37959
37960 struct shrink_control sc __attribute__ ((unused));
37961 unsigned long scnidsize __attribute__ ((unused)) =
37962 sizeof(sc.nid);
37963
37964 ;
37965 return 0;
37966 }
37967
37968 _ACEOF
37969
37970
37971
37972 cat - <<_ACEOF >conftest.h
37973
37974 _ACEOF
37975
37976
37977 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37978 echo "obj-m := conftest.o" >build/Makefile
37979 modpost_flag=''
37980 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37981 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37983 (eval $ac_try) 2>&5
37984 ac_status=$?
37985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37986 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37988 (eval $ac_try) 2>&5
37989 ac_status=$?
37990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37991 test $ac_status = 0; }; }; then :
37992
37993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37994 $as_echo "yes" >&6; }
37995
37996 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
37997
37998
37999 else
38000 $as_echo "$as_me: failed program was:" >&5
38001 sed 's/^/| /' conftest.$ac_ext >&5
38002
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38004 $as_echo "no" >&6; }
38005
38006
38007
38008 fi
38009 rm -Rf build
38010
38011
38012
38013
38014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
38015 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
38016
38017
38018 cat confdefs.h - <<_ACEOF >conftest.c
38019
38020
38021 #include <linux/fs.h>
38022
38023 int
38024 main (void)
38025 {
38026
38027 struct super_block sb __attribute__ ((unused));
38028
38029 INIT_LIST_HEAD(&sb.s_instances);
38030
38031 ;
38032 return 0;
38033 }
38034
38035 _ACEOF
38036
38037
38038
38039 cat - <<_ACEOF >conftest.h
38040
38041 _ACEOF
38042
38043
38044 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38045 echo "obj-m := conftest.o" >build/Makefile
38046 modpost_flag=''
38047 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38048 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38050 (eval $ac_try) 2>&5
38051 ac_status=$?
38052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38053 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38055 (eval $ac_try) 2>&5
38056 ac_status=$?
38057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38058 test $ac_status = 0; }; }; then :
38059
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38061 $as_echo "yes" >&6; }
38062
38063 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
38064
38065
38066 else
38067 $as_echo "$as_me: failed program was:" >&5
38068 sed 's/^/| /' conftest.$ac_ext >&5
38069
38070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38071 $as_echo "no" >&6; }
38072
38073
38074
38075 fi
38076 rm -Rf build
38077
38078
38079
38080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
38081 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
38082
38083
38084 cat confdefs.h - <<_ACEOF >conftest.c
38085
38086
38087 #include <linux/fs.h>
38088
38089 int
38090 main (void)
38091 {
38092
38093 struct super_block sb __attribute__ ((unused));
38094 sb.s_d_op = NULL;
38095
38096 ;
38097 return 0;
38098 }
38099
38100 _ACEOF
38101
38102
38103
38104 cat - <<_ACEOF >conftest.h
38105
38106 _ACEOF
38107
38108
38109 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38110 echo "obj-m := conftest.o" >build/Makefile
38111 modpost_flag=''
38112 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38113 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38115 (eval $ac_try) 2>&5
38116 ac_status=$?
38117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38118 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38120 (eval $ac_try) 2>&5
38121 ac_status=$?
38122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38123 test $ac_status = 0; }; }; then :
38124
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126 $as_echo "yes" >&6; }
38127
38128 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
38129
38130
38131 else
38132 $as_echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38134
38135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38136 $as_echo "no" >&6; }
38137
38138
38139
38140 fi
38141 rm -Rf build
38142
38143
38144
38145
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
38147 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
38148
38149
38150
38151 cat confdefs.h - <<_ACEOF >conftest.c
38152
38153
38154 #include <linux/fs.h>
38155 struct super_block sb;
38156
38157 int
38158 main (void)
38159 {
38160
38161 char *name = "bdi";
38162 atomic_long_t zfs_bdi_seq;
38163 int error __attribute__((unused)) =
38164 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
38165
38166 ;
38167 return 0;
38168 }
38169
38170 _ACEOF
38171
38172
38173
38174 cat - <<_ACEOF >conftest.h
38175
38176 _ACEOF
38177
38178
38179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38180 echo "obj-m := conftest.o" >build/Makefile
38181 modpost_flag=''
38182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38183 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38185 (eval $ac_try) 2>&5
38186 ac_status=$?
38187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38188 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38193 test $ac_status = 0; }; }; then :
38194 rc=0
38195 else
38196 $as_echo "$as_me: failed program was:" >&5
38197 sed 's/^/| /' conftest.$ac_ext >&5
38198 rc=1
38199
38200
38201 fi
38202 rm -Rf build
38203
38204
38205 if test $rc -ne 0; then :
38206
38207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38208 $as_echo "no" >&6; }
38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38210 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38211
38212
38213
38214 cat confdefs.h - <<_ACEOF >conftest.c
38215
38216
38217 #include <linux/backing-dev.h>
38218 struct backing_dev_info bdi;
38219
38220 int
38221 main (void)
38222 {
38223
38224 char *name = "bdi";
38225 int error __attribute__((unused)) =
38226 bdi_setup_and_register(&bdi, name);
38227
38228 ;
38229 return 0;
38230 }
38231
38232 _ACEOF
38233
38234
38235
38236 cat - <<_ACEOF >conftest.h
38237
38238 _ACEOF
38239
38240
38241 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38242 echo "obj-m := conftest.o" >build/Makefile
38243 modpost_flag=''
38244 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38245 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38247 (eval $ac_try) 2>&5
38248 ac_status=$?
38249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38250 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38252 (eval $ac_try) 2>&5
38253 ac_status=$?
38254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38255 test $ac_status = 0; }; }; then :
38256 rc=0
38257 else
38258 $as_echo "$as_me: failed program was:" >&5
38259 sed 's/^/| /' conftest.$ac_ext >&5
38260 rc=1
38261
38262
38263 fi
38264 rm -Rf build
38265
38266
38267 if test $rc -ne 0; then :
38268
38269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38270 $as_echo "no" >&6; }
38271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38272 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38273
38274
38275
38276 cat confdefs.h - <<_ACEOF >conftest.c
38277
38278
38279 #include <linux/backing-dev.h>
38280 struct backing_dev_info bdi;
38281
38282 int
38283 main (void)
38284 {
38285
38286 char *name = "bdi";
38287 unsigned int cap = BDI_CAP_MAP_COPY;
38288 int error __attribute__((unused)) =
38289 bdi_setup_and_register(&bdi, name, cap);
38290
38291 ;
38292 return 0;
38293 }
38294
38295 _ACEOF
38296
38297
38298
38299 cat - <<_ACEOF >conftest.h
38300
38301 _ACEOF
38302
38303
38304 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38305 echo "obj-m := conftest.o" >build/Makefile
38306 modpost_flag=''
38307 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38308 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38310 (eval $ac_try) 2>&5
38311 ac_status=$?
38312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38313 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38315 (eval $ac_try) 2>&5
38316 ac_status=$?
38317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38318 test $ac_status = 0; }; }; then :
38319 rc=0
38320 else
38321 $as_echo "$as_me: failed program was:" >&5
38322 sed 's/^/| /' conftest.$ac_ext >&5
38323 rc=1
38324
38325
38326 fi
38327 rm -Rf build
38328
38329
38330 if test $rc -ne 0; then :
38331
38332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38333 $as_echo "no" >&6; }
38334
38335 else
38336 if test "x$enable_linux_builtin" != xyes; then
38337
38338 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38339 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38340 rc=$?
38341 if test $rc -ne 0; then
38342 export=0
38343 for file in mm/backing-dev.c; do
38344 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38345 "$LINUX/$file" 2>/dev/null
38346 rc=$?
38347 if test $rc -eq 0; then
38348 export=1
38349 break;
38350 fi
38351 done
38352 if test $export -eq 0; then :
38353 rc=1
38354 else :
38355 rc=0
38356 fi
38357 else :
38358 rc=0
38359 fi
38360
38361 fi
38362 if test $rc -ne 0; then :
38363
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38365 $as_echo "no" >&6; }
38366
38367 else :
38368
38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38370 $as_echo "yes" >&6; }
38371
38372 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38373
38374
38375 fi
38376 fi
38377
38378
38379 else
38380 if test "x$enable_linux_builtin" != xyes; then
38381
38382 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38383 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38384 rc=$?
38385 if test $rc -ne 0; then
38386 export=0
38387 for file in mm/backing-dev.c; do
38388 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38389 "$LINUX/$file" 2>/dev/null
38390 rc=$?
38391 if test $rc -eq 0; then
38392 export=1
38393 break;
38394 fi
38395 done
38396 if test $export -eq 0; then :
38397 rc=1
38398 else :
38399 rc=0
38400 fi
38401 else :
38402 rc=0
38403 fi
38404
38405 fi
38406 if test $rc -ne 0; then :
38407
38408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38409 $as_echo "no" >&6; }
38410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38411 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38412
38413
38414
38415 cat confdefs.h - <<_ACEOF >conftest.c
38416
38417
38418 #include <linux/backing-dev.h>
38419 struct backing_dev_info bdi;
38420
38421 int
38422 main (void)
38423 {
38424
38425 char *name = "bdi";
38426 unsigned int cap = BDI_CAP_MAP_COPY;
38427 int error __attribute__((unused)) =
38428 bdi_setup_and_register(&bdi, name, cap);
38429
38430 ;
38431 return 0;
38432 }
38433
38434 _ACEOF
38435
38436
38437
38438 cat - <<_ACEOF >conftest.h
38439
38440 _ACEOF
38441
38442
38443 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38444 echo "obj-m := conftest.o" >build/Makefile
38445 modpost_flag=''
38446 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38447 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38449 (eval $ac_try) 2>&5
38450 ac_status=$?
38451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38452 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38454 (eval $ac_try) 2>&5
38455 ac_status=$?
38456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38457 test $ac_status = 0; }; }; then :
38458 rc=0
38459 else
38460 $as_echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.$ac_ext >&5
38462 rc=1
38463
38464
38465 fi
38466 rm -Rf build
38467
38468
38469 if test $rc -ne 0; then :
38470
38471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38472 $as_echo "no" >&6; }
38473
38474 else
38475 if test "x$enable_linux_builtin" != xyes; then
38476
38477 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38478 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38479 rc=$?
38480 if test $rc -ne 0; then
38481 export=0
38482 for file in mm/backing-dev.c; do
38483 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38484 "$LINUX/$file" 2>/dev/null
38485 rc=$?
38486 if test $rc -eq 0; then
38487 export=1
38488 break;
38489 fi
38490 done
38491 if test $export -eq 0; then :
38492 rc=1
38493 else :
38494 rc=0
38495 fi
38496 else :
38497 rc=0
38498 fi
38499
38500 fi
38501 if test $rc -ne 0; then :
38502
38503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38504 $as_echo "no" >&6; }
38505
38506 else :
38507
38508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38509 $as_echo "yes" >&6; }
38510
38511 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38512
38513
38514 fi
38515 fi
38516
38517
38518 else :
38519
38520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38521 $as_echo "yes" >&6; }
38522
38523 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38524
38525
38526 fi
38527 fi
38528
38529
38530 else
38531 if test "x$enable_linux_builtin" != xyes; then
38532
38533 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38535 rc=$?
38536 if test $rc -ne 0; then
38537 export=0
38538 for file in fs/super.c; do
38539 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38540 "$LINUX/$file" 2>/dev/null
38541 rc=$?
38542 if test $rc -eq 0; then
38543 export=1
38544 break;
38545 fi
38546 done
38547 if test $export -eq 0; then :
38548 rc=1
38549 else :
38550 rc=0
38551 fi
38552 else :
38553 rc=0
38554 fi
38555
38556 fi
38557 if test $rc -ne 0; then :
38558
38559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 $as_echo "no" >&6; }
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38562 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38563
38564
38565
38566 cat confdefs.h - <<_ACEOF >conftest.c
38567
38568
38569 #include <linux/backing-dev.h>
38570 struct backing_dev_info bdi;
38571
38572 int
38573 main (void)
38574 {
38575
38576 char *name = "bdi";
38577 int error __attribute__((unused)) =
38578 bdi_setup_and_register(&bdi, name);
38579
38580 ;
38581 return 0;
38582 }
38583
38584 _ACEOF
38585
38586
38587
38588 cat - <<_ACEOF >conftest.h
38589
38590 _ACEOF
38591
38592
38593 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38594 echo "obj-m := conftest.o" >build/Makefile
38595 modpost_flag=''
38596 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38597 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38599 (eval $ac_try) 2>&5
38600 ac_status=$?
38601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38602 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38604 (eval $ac_try) 2>&5
38605 ac_status=$?
38606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38607 test $ac_status = 0; }; }; then :
38608 rc=0
38609 else
38610 $as_echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38612 rc=1
38613
38614
38615 fi
38616 rm -Rf build
38617
38618
38619 if test $rc -ne 0; then :
38620
38621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38622 $as_echo "no" >&6; }
38623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38624 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38625
38626
38627
38628 cat confdefs.h - <<_ACEOF >conftest.c
38629
38630
38631 #include <linux/backing-dev.h>
38632 struct backing_dev_info bdi;
38633
38634 int
38635 main (void)
38636 {
38637
38638 char *name = "bdi";
38639 unsigned int cap = BDI_CAP_MAP_COPY;
38640 int error __attribute__((unused)) =
38641 bdi_setup_and_register(&bdi, name, cap);
38642
38643 ;
38644 return 0;
38645 }
38646
38647 _ACEOF
38648
38649
38650
38651 cat - <<_ACEOF >conftest.h
38652
38653 _ACEOF
38654
38655
38656 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38657 echo "obj-m := conftest.o" >build/Makefile
38658 modpost_flag=''
38659 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38660 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38662 (eval $ac_try) 2>&5
38663 ac_status=$?
38664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38665 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38667 (eval $ac_try) 2>&5
38668 ac_status=$?
38669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38670 test $ac_status = 0; }; }; then :
38671 rc=0
38672 else
38673 $as_echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38675 rc=1
38676
38677
38678 fi
38679 rm -Rf build
38680
38681
38682 if test $rc -ne 0; then :
38683
38684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38685 $as_echo "no" >&6; }
38686
38687 else
38688 if test "x$enable_linux_builtin" != xyes; then
38689
38690 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38691 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38692 rc=$?
38693 if test $rc -ne 0; then
38694 export=0
38695 for file in mm/backing-dev.c; do
38696 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38697 "$LINUX/$file" 2>/dev/null
38698 rc=$?
38699 if test $rc -eq 0; then
38700 export=1
38701 break;
38702 fi
38703 done
38704 if test $export -eq 0; then :
38705 rc=1
38706 else :
38707 rc=0
38708 fi
38709 else :
38710 rc=0
38711 fi
38712
38713 fi
38714 if test $rc -ne 0; then :
38715
38716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38717 $as_echo "no" >&6; }
38718
38719 else :
38720
38721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38722 $as_echo "yes" >&6; }
38723
38724 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38725
38726
38727 fi
38728 fi
38729
38730
38731 else
38732 if test "x$enable_linux_builtin" != xyes; then
38733
38734 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38735 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38736 rc=$?
38737 if test $rc -ne 0; then
38738 export=0
38739 for file in mm/backing-dev.c; do
38740 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38741 "$LINUX/$file" 2>/dev/null
38742 rc=$?
38743 if test $rc -eq 0; then
38744 export=1
38745 break;
38746 fi
38747 done
38748 if test $export -eq 0; then :
38749 rc=1
38750 else :
38751 rc=0
38752 fi
38753 else :
38754 rc=0
38755 fi
38756
38757 fi
38758 if test $rc -ne 0; then :
38759
38760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38761 $as_echo "no" >&6; }
38762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38763 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38764
38765
38766
38767 cat confdefs.h - <<_ACEOF >conftest.c
38768
38769
38770 #include <linux/backing-dev.h>
38771 struct backing_dev_info bdi;
38772
38773 int
38774 main (void)
38775 {
38776
38777 char *name = "bdi";
38778 unsigned int cap = BDI_CAP_MAP_COPY;
38779 int error __attribute__((unused)) =
38780 bdi_setup_and_register(&bdi, name, cap);
38781
38782 ;
38783 return 0;
38784 }
38785
38786 _ACEOF
38787
38788
38789
38790 cat - <<_ACEOF >conftest.h
38791
38792 _ACEOF
38793
38794
38795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38796 echo "obj-m := conftest.o" >build/Makefile
38797 modpost_flag=''
38798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38801 (eval $ac_try) 2>&5
38802 ac_status=$?
38803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38806 (eval $ac_try) 2>&5
38807 ac_status=$?
38808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38809 test $ac_status = 0; }; }; then :
38810 rc=0
38811 else
38812 $as_echo "$as_me: failed program was:" >&5
38813 sed 's/^/| /' conftest.$ac_ext >&5
38814 rc=1
38815
38816
38817 fi
38818 rm -Rf build
38819
38820
38821 if test $rc -ne 0; then :
38822
38823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38824 $as_echo "no" >&6; }
38825
38826 else
38827 if test "x$enable_linux_builtin" != xyes; then
38828
38829 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38830 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38831 rc=$?
38832 if test $rc -ne 0; then
38833 export=0
38834 for file in mm/backing-dev.c; do
38835 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38836 "$LINUX/$file" 2>/dev/null
38837 rc=$?
38838 if test $rc -eq 0; then
38839 export=1
38840 break;
38841 fi
38842 done
38843 if test $export -eq 0; then :
38844 rc=1
38845 else :
38846 rc=0
38847 fi
38848 else :
38849 rc=0
38850 fi
38851
38852 fi
38853 if test $rc -ne 0; then :
38854
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38856 $as_echo "no" >&6; }
38857
38858 else :
38859
38860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38861 $as_echo "yes" >&6; }
38862
38863 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38864
38865
38866 fi
38867 fi
38868
38869
38870 else :
38871
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38873 $as_echo "yes" >&6; }
38874
38875 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38876
38877
38878 fi
38879 fi
38880
38881
38882 else :
38883
38884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38885 $as_echo "yes" >&6; }
38886
38887 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38888
38889
38890 fi
38891 fi
38892
38893
38894
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38896 $as_echo_n "checking whether set_nlink() is available... " >&6; }
38897
38898
38899 cat confdefs.h - <<_ACEOF >conftest.c
38900
38901
38902 #include <linux/fs.h>
38903
38904 int
38905 main (void)
38906 {
38907
38908 struct inode node;
38909 unsigned int link = 0;
38910 (void) set_nlink(&node, link);
38911
38912 ;
38913 return 0;
38914 }
38915
38916 _ACEOF
38917
38918
38919
38920 cat - <<_ACEOF >conftest.h
38921
38922 _ACEOF
38923
38924
38925 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38926 echo "obj-m := conftest.o" >build/Makefile
38927 modpost_flag=''
38928 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38929 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38931 (eval $ac_try) 2>&5
38932 ac_status=$?
38933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38934 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38936 (eval $ac_try) 2>&5
38937 ac_status=$?
38938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38939 test $ac_status = 0; }; }; then :
38940
38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38942 $as_echo "yes" >&6; }
38943
38944 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38945
38946
38947 else
38948 $as_echo "$as_me: failed program was:" >&5
38949 sed 's/^/| /' conftest.$ac_ext >&5
38950
38951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38952 $as_echo "no" >&6; }
38953
38954
38955
38956 fi
38957 rm -Rf build
38958
38959
38960
38961
38962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38963 $as_echo_n "checking whether elevator_change() is available... " >&6; }
38964 tmp_flags="$EXTRA_KCFLAGS"
38965 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
38966
38967
38968 cat confdefs.h - <<_ACEOF >conftest.c
38969
38970
38971 #include <linux/blkdev.h>
38972 #include <linux/elevator.h>
38973
38974 int
38975 main (void)
38976 {
38977
38978 int ret;
38979 struct request_queue *q = NULL;
38980 char *elevator = NULL;
38981 ret = elevator_change(q, elevator);
38982
38983 ;
38984 return 0;
38985 }
38986
38987 _ACEOF
38988
38989
38990
38991 cat - <<_ACEOF >conftest.h
38992
38993 _ACEOF
38994
38995
38996 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38997 echo "obj-m := conftest.o" >build/Makefile
38998 modpost_flag=''
38999 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39000 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39002 (eval $ac_try) 2>&5
39003 ac_status=$?
39004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39005 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39007 (eval $ac_try) 2>&5
39008 ac_status=$?
39009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39010 test $ac_status = 0; }; }; then :
39011
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013 $as_echo "yes" >&6; }
39014
39015 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
39016
39017
39018 else
39019 $as_echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39021
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39023 $as_echo "no" >&6; }
39024
39025
39026
39027 fi
39028 rm -Rf build
39029
39030
39031 EXTRA_KCFLAGS="$tmp_flags"
39032
39033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
39034 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
39035
39036
39037 cat confdefs.h - <<_ACEOF >conftest.c
39038
39039
39040 #include <linux/fs.h>
39041
39042 int
39043 main (void)
39044 {
39045
39046 struct file_system_type *type = NULL;
39047 int (*test)(struct super_block *,void *) = NULL;
39048 int (*set)(struct super_block *,void *) = NULL;
39049 int flags = 0;
39050 void *data = NULL;
39051 (void) sget(type, test, set, flags, data);
39052
39053 ;
39054 return 0;
39055 }
39056
39057 _ACEOF
39058
39059
39060
39061 cat - <<_ACEOF >conftest.h
39062
39063 _ACEOF
39064
39065
39066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39067 echo "obj-m := conftest.o" >build/Makefile
39068 modpost_flag=''
39069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39070 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39072 (eval $ac_try) 2>&5
39073 ac_status=$?
39074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39075 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39077 (eval $ac_try) 2>&5
39078 ac_status=$?
39079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39080 test $ac_status = 0; }; }; then :
39081
39082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39083 $as_echo "yes" >&6; }
39084
39085 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
39086
39087
39088 else
39089 $as_echo "$as_me: failed program was:" >&5
39090 sed 's/^/| /' conftest.$ac_ext >&5
39091
39092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39093 $as_echo "no" >&6; }
39094
39095
39096
39097 fi
39098 rm -Rf build
39099
39100
39101
39102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
39103 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
39104
39105
39106
39107 cat confdefs.h - <<_ACEOF >conftest.c
39108
39109
39110 #include <linux/fs.h>
39111
39112 int
39113 main (void)
39114 {
39115
39116 struct file *fp __attribute__ ((unused)) = NULL;
39117 struct inode *ip __attribute__ ((unused)) = NULL;
39118 loff_t offset __attribute__ ((unused)) = 0;
39119 loff_t maxsize __attribute__ ((unused)) = 0;
39120
39121 lseek_execute(fp, ip, offset, maxsize);
39122
39123 ;
39124 return 0;
39125 }
39126
39127 _ACEOF
39128
39129
39130
39131 cat - <<_ACEOF >conftest.h
39132
39133 _ACEOF
39134
39135
39136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39137 echo "obj-m := conftest.o" >build/Makefile
39138 modpost_flag=''
39139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39140 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39142 (eval $ac_try) 2>&5
39143 ac_status=$?
39144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39145 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39147 (eval $ac_try) 2>&5
39148 ac_status=$?
39149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39150 test $ac_status = 0; }; }; then :
39151 rc=0
39152 else
39153 $as_echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39155 rc=1
39156
39157
39158 fi
39159 rm -Rf build
39160
39161
39162 if test $rc -ne 0; then :
39163
39164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39165 $as_echo "no" >&6; }
39166
39167 else
39168 if test "x$enable_linux_builtin" != xyes; then
39169
39170 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
39171 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39172 rc=$?
39173 if test $rc -ne 0; then
39174 export=0
39175 for file in fs/read_write.c; do
39176 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
39177 "$LINUX/$file" 2>/dev/null
39178 rc=$?
39179 if test $rc -eq 0; then
39180 export=1
39181 break;
39182 fi
39183 done
39184 if test $export -eq 0; then :
39185 rc=1
39186 else :
39187 rc=0
39188 fi
39189 else :
39190 rc=0
39191 fi
39192
39193 fi
39194 if test $rc -ne 0; then :
39195
39196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39197 $as_echo "no" >&6; }
39198
39199 else :
39200
39201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39202 $as_echo "yes" >&6; }
39203
39204 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
39205
39206
39207 fi
39208 fi
39209
39210
39211
39212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
39213 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
39214
39215
39216 cat confdefs.h - <<_ACEOF >conftest.c
39217
39218
39219 #include <linux/fs.h>
39220 int iterate(struct file *filp, struct dir_context * context)
39221 { return 0; }
39222
39223 static const struct file_operations fops
39224 __attribute__ ((unused)) = {
39225 .iterate_shared = iterate,
39226 };
39227
39228 int
39229 main (void)
39230 {
39231
39232
39233 ;
39234 return 0;
39235 }
39236
39237 _ACEOF
39238
39239
39240
39241 cat - <<_ACEOF >conftest.h
39242
39243 _ACEOF
39244
39245
39246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39247 echo "obj-m := conftest.o" >build/Makefile
39248 modpost_flag=''
39249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39252 (eval $ac_try) 2>&5
39253 ac_status=$?
39254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39255 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39257 (eval $ac_try) 2>&5
39258 ac_status=$?
39259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39260 test $ac_status = 0; }; }; then :
39261
39262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39263 $as_echo "yes" >&6; }
39264
39265 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39266
39267
39268 else
39269 $as_echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.$ac_ext >&5
39271
39272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39273 $as_echo "no" >&6; }
39274
39275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39276 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
39277
39278
39279 cat confdefs.h - <<_ACEOF >conftest.c
39280
39281
39282 #include <linux/fs.h>
39283 int iterate(struct file *filp, struct dir_context * context)
39284 { return 0; }
39285
39286 static const struct file_operations fops
39287 __attribute__ ((unused)) = {
39288 .iterate = iterate,
39289 };
39290
39291 int
39292 main (void)
39293 {
39294
39295
39296 ;
39297 return 0;
39298 }
39299
39300 _ACEOF
39301
39302
39303
39304 cat - <<_ACEOF >conftest.h
39305
39306 _ACEOF
39307
39308
39309 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39310 echo "obj-m := conftest.o" >build/Makefile
39311 modpost_flag=''
39312 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39313 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39315 (eval $ac_try) 2>&5
39316 ac_status=$?
39317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39318 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39320 (eval $ac_try) 2>&5
39321 ac_status=$?
39322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39323 test $ac_status = 0; }; }; then :
39324
39325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39326 $as_echo "yes" >&6; }
39327
39328 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39329
39330
39331 else
39332 $as_echo "$as_me: failed program was:" >&5
39333 sed 's/^/| /' conftest.$ac_ext >&5
39334
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39336 $as_echo "no" >&6; }
39337
39338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39339 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
39340
39341
39342 cat confdefs.h - <<_ACEOF >conftest.c
39343
39344
39345 #include <linux/fs.h>
39346 int readdir(struct file *filp, void *entry, filldir_t func)
39347 { return 0; }
39348
39349 static const struct file_operations fops
39350 __attribute__ ((unused)) = {
39351 .readdir = readdir,
39352 };
39353
39354 int
39355 main (void)
39356 {
39357
39358
39359 ;
39360 return 0;
39361 }
39362
39363 _ACEOF
39364
39365
39366
39367 cat - <<_ACEOF >conftest.h
39368
39369 _ACEOF
39370
39371
39372 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39373 echo "obj-m := conftest.o" >build/Makefile
39374 modpost_flag=''
39375 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39376 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39378 (eval $ac_try) 2>&5
39379 ac_status=$?
39380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39381 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39383 (eval $ac_try) 2>&5
39384 ac_status=$?
39385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39386 test $ac_status = 0; }; }; then :
39387
39388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39389 $as_echo "yes" >&6; }
39390
39391 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39392
39393
39394 else
39395 $as_echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39397
39398 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
39399
39400
39401
39402 fi
39403 rm -Rf build
39404
39405
39406
39407
39408
39409 fi
39410 rm -Rf build
39411
39412
39413
39414
39415
39416 fi
39417 rm -Rf build
39418
39419
39420
39421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39422 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39423
39424
39425 cat confdefs.h - <<_ACEOF >conftest.c
39426
39427
39428 #include <linux/fs.h>
39429
39430 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39431 { return 0; }
39432 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39433 { return 0; }
39434
39435 static const struct file_operations
39436 fops __attribute__ ((unused)) = {
39437 .read_iter = test_read,
39438 .write_iter = test_write,
39439 };
39440
39441 int
39442 main (void)
39443 {
39444
39445
39446 ;
39447 return 0;
39448 }
39449
39450 _ACEOF
39451
39452
39453
39454 cat - <<_ACEOF >conftest.h
39455
39456 _ACEOF
39457
39458
39459 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39460 echo "obj-m := conftest.o" >build/Makefile
39461 modpost_flag=''
39462 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39463 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39465 (eval $ac_try) 2>&5
39466 ac_status=$?
39467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39468 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39470 (eval $ac_try) 2>&5
39471 ac_status=$?
39472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39473 test $ac_status = 0; }; }; then :
39474
39475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39476 $as_echo "yes" >&6; }
39477
39478 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39479
39480
39481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39482 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
39483
39484
39485 cat confdefs.h - <<_ACEOF >conftest.c
39486
39487
39488 #include <linux/fs.h>
39489
39490 int
39491 main (void)
39492 {
39493
39494 new_sync_read(NULL, NULL, 0, NULL);
39495
39496 ;
39497 return 0;
39498 }
39499
39500 _ACEOF
39501
39502
39503
39504 cat - <<_ACEOF >conftest.h
39505
39506 _ACEOF
39507
39508
39509 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39510 echo "obj-m := conftest.o" >build/Makefile
39511 modpost_flag=''
39512 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39513 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39515 (eval $ac_try) 2>&5
39516 ac_status=$?
39517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39518 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39520 (eval $ac_try) 2>&5
39521 ac_status=$?
39522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39523 test $ac_status = 0; }; }; then :
39524
39525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39526 $as_echo "yes" >&6; }
39527
39528 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39529
39530
39531 else
39532 $as_echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39536 $as_echo "no" >&6; }
39537
39538
39539
39540 fi
39541 rm -Rf build
39542
39543
39544
39545
39546 else
39547 $as_echo "$as_me: failed program was:" >&5
39548 sed 's/^/| /' conftest.$ac_ext >&5
39549
39550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39551 $as_echo "no" >&6; }
39552
39553
39554
39555 fi
39556 rm -Rf build
39557
39558
39559
39560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39561 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39562
39563
39564 cat confdefs.h - <<_ACEOF >conftest.c
39565
39566
39567 #include <linux/fs.h>
39568
39569
39570 int
39571 main (void)
39572 {
39573
39574 struct kiocb *iocb = NULL;
39575 struct iov_iter *iov = NULL;
39576 generic_write_checks(iocb, iov);
39577
39578 ;
39579 return 0;
39580 }
39581
39582 _ACEOF
39583
39584
39585
39586 cat - <<_ACEOF >conftest.h
39587
39588 _ACEOF
39589
39590
39591 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39592 echo "obj-m := conftest.o" >build/Makefile
39593 modpost_flag=''
39594 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39595 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39597 (eval $ac_try) 2>&5
39598 ac_status=$?
39599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39600 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39602 (eval $ac_try) 2>&5
39603 ac_status=$?
39604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39605 test $ac_status = 0; }; }; then :
39606
39607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39608 $as_echo "yes" >&6; }
39609
39610 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39611
39612
39613 else
39614 $as_echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39616
39617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39618 $as_echo "no" >&6; }
39619
39620
39621
39622 fi
39623 rm -Rf build
39624
39625
39626
39627
39628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39629 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39630
39631
39632 cat confdefs.h - <<_ACEOF >conftest.c
39633
39634
39635 #include <linux/pagemap.h>
39636
39637 int
39638 main (void)
39639 {
39640
39641 struct page page;
39642 kmap_atomic(&page);
39643
39644 ;
39645 return 0;
39646 }
39647
39648 _ACEOF
39649
39650
39651
39652 cat - <<_ACEOF >conftest.h
39653
39654 _ACEOF
39655
39656
39657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39658 echo "obj-m := conftest.o" >build/Makefile
39659 modpost_flag=''
39660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39661 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39663 (eval $ac_try) 2>&5
39664 ac_status=$?
39665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39666 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39668 (eval $ac_try) 2>&5
39669 ac_status=$?
39670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39671 test $ac_status = 0; }; }; then :
39672
39673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39674 $as_echo "yes" >&6; }
39675
39676 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39677
39678
39679 else
39680 $as_echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.$ac_ext >&5
39682
39683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39684 $as_echo "no" >&6; }
39685
39686
39687
39688 fi
39689 rm -Rf build
39690
39691
39692
39693
39694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39695 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
39696
39697
39698 cat confdefs.h - <<_ACEOF >conftest.c
39699
39700
39701 #include <linux/namei.h>
39702
39703 int
39704 main (void)
39705 {
39706
39707 struct path *p = NULL;
39708 follow_down_one(p);
39709
39710 ;
39711 return 0;
39712 }
39713
39714 _ACEOF
39715
39716
39717
39718 cat - <<_ACEOF >conftest.h
39719
39720 _ACEOF
39721
39722
39723 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39724 echo "obj-m := conftest.o" >build/Makefile
39725 modpost_flag=''
39726 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39727 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39729 (eval $ac_try) 2>&5
39730 ac_status=$?
39731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39732 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39734 (eval $ac_try) 2>&5
39735 ac_status=$?
39736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39737 test $ac_status = 0; }; }; then :
39738
39739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39740 $as_echo "yes" >&6; }
39741
39742 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39743
39744
39745 else
39746 $as_echo "$as_me: failed program was:" >&5
39747 sed 's/^/| /' conftest.$ac_ext >&5
39748
39749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39750 $as_echo "no" >&6; }
39751
39752
39753
39754 fi
39755 rm -Rf build
39756
39757
39758
39759
39760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39761 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39762
39763
39764 cat confdefs.h - <<_ACEOF >conftest.c
39765
39766
39767 #include <linux/blkdev.h>
39768
39769 int make_request(struct request_queue *q, struct bio *bio)
39770 {
39771 return (0);
39772 }
39773
39774 int
39775 main (void)
39776 {
39777
39778 blk_queue_make_request(NULL, &make_request);
39779
39780 ;
39781 return 0;
39782 }
39783
39784 _ACEOF
39785
39786
39787
39788 cat - <<_ACEOF >conftest.h
39789
39790 _ACEOF
39791
39792
39793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39794 echo "obj-m := conftest.o" >build/Makefile
39795 modpost_flag=''
39796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39799 (eval $ac_try) 2>&5
39800 ac_status=$?
39801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39802 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39804 (eval $ac_try) 2>&5
39805 ac_status=$?
39806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39807 test $ac_status = 0; }; }; then :
39808
39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39810 $as_echo "yes" >&6; }
39811
39812 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39813
39814
39815 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39816
39817
39818 else
39819 $as_echo "$as_me: failed program was:" >&5
39820 sed 's/^/| /' conftest.$ac_ext >&5
39821
39822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39823 $as_echo "no" >&6; }
39824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39825 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39826
39827
39828 cat confdefs.h - <<_ACEOF >conftest.c
39829
39830
39831 #include <linux/blkdev.h>
39832
39833 void make_request(struct request_queue *q, struct bio *bio)
39834 {
39835 return;
39836 }
39837
39838 int
39839 main (void)
39840 {
39841
39842 blk_queue_make_request(NULL, &make_request);
39843
39844 ;
39845 return 0;
39846 }
39847
39848 _ACEOF
39849
39850
39851
39852 cat - <<_ACEOF >conftest.h
39853
39854 _ACEOF
39855
39856
39857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39858 echo "obj-m := conftest.o" >build/Makefile
39859 modpost_flag=''
39860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39861 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39863 (eval $ac_try) 2>&5
39864 ac_status=$?
39865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39866 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39868 (eval $ac_try) 2>&5
39869 ac_status=$?
39870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39871 test $ac_status = 0; }; }; then :
39872
39873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39874 $as_echo "yes" >&6; }
39875
39876 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39877
39878
39879 else
39880 $as_echo "$as_me: failed program was:" >&5
39881 sed 's/^/| /' conftest.$ac_ext >&5
39882
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39884 $as_echo "no" >&6; }
39885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39886 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39887
39888
39889 cat confdefs.h - <<_ACEOF >conftest.c
39890
39891
39892 #include <linux/blkdev.h>
39893
39894 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39895 {
39896 return (BLK_QC_T_NONE);
39897 }
39898
39899 int
39900 main (void)
39901 {
39902
39903 blk_queue_make_request(NULL, &make_request);
39904
39905 ;
39906 return 0;
39907 }
39908
39909 _ACEOF
39910
39911
39912
39913 cat - <<_ACEOF >conftest.h
39914
39915 _ACEOF
39916
39917
39918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39919 echo "obj-m := conftest.o" >build/Makefile
39920 modpost_flag=''
39921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39922 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39924 (eval $ac_try) 2>&5
39925 ac_status=$?
39926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39927 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39929 (eval $ac_try) 2>&5
39930 ac_status=$?
39931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39932 test $ac_status = 0; }; }; then :
39933
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39935 $as_echo "yes" >&6; }
39936
39937 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39938
39939
39940 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39941
39942
39943 else
39944 $as_echo "$as_me: failed program was:" >&5
39945 sed 's/^/| /' conftest.$ac_ext >&5
39946
39947 as_fn_error $? "no - Please file a bug report at
39948 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39949
39950
39951
39952 fi
39953 rm -Rf build
39954
39955
39956
39957
39958
39959 fi
39960 rm -Rf build
39961
39962
39963
39964
39965
39966 fi
39967 rm -Rf build
39968
39969
39970
39971
39972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39973 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
39974
39975
39976
39977 cat confdefs.h - <<_ACEOF >conftest.c
39978
39979
39980 #include <linux/bio.h>
39981
39982 void (*generic_start_io_acct_f)(int, unsigned long,
39983 struct hd_struct *) = &generic_start_io_acct;
39984 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39985 unsigned long) = &generic_end_io_acct;
39986
39987 int
39988 main (void)
39989 {
39990
39991 generic_start_io_acct(0, 0, NULL);
39992 generic_end_io_acct(0, NULL, 0);
39993
39994 ;
39995 return 0;
39996 }
39997
39998 _ACEOF
39999
40000
40001
40002 cat - <<_ACEOF >conftest.h
40003
40004 _ACEOF
40005
40006
40007 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40008 echo "obj-m := conftest.o" >build/Makefile
40009 modpost_flag=''
40010 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40011 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40013 (eval $ac_try) 2>&5
40014 ac_status=$?
40015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40016 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40018 (eval $ac_try) 2>&5
40019 ac_status=$?
40020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40021 test $ac_status = 0; }; }; then :
40022 rc=0
40023 else
40024 $as_echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.$ac_ext >&5
40026 rc=1
40027
40028
40029 fi
40030 rm -Rf build
40031
40032
40033 if test $rc -ne 0; then :
40034
40035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40036 $as_echo "no" >&6; }
40037
40038 else
40039 if test "x$enable_linux_builtin" != xyes; then
40040
40041 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40042 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
40043 rc=$?
40044 if test $rc -ne 0; then
40045 export=0
40046 for file in block/bio.c; do
40047 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40048 "$LINUX/$file" 2>/dev/null
40049 rc=$?
40050 if test $rc -eq 0; then
40051 export=1
40052 break;
40053 fi
40054 done
40055 if test $export -eq 0; then :
40056 rc=1
40057 else :
40058 rc=0
40059 fi
40060 else :
40061 rc=0
40062 fi
40063
40064 fi
40065 if test $rc -ne 0; then :
40066
40067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40068 $as_echo "no" >&6; }
40069
40070 else :
40071
40072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40073 $as_echo "yes" >&6; }
40074
40075 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
40076
40077
40078 fi
40079 fi
40080
40081
40082
40083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
40084 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
40085
40086
40087
40088 cat confdefs.h - <<_ACEOF >conftest.c
40089
40090
40091 #include <linux/bio.h>
40092
40093 void (*generic_start_io_acct_f)(struct request_queue *, int,
40094 unsigned long, struct hd_struct *) = &generic_start_io_acct;
40095 void (*generic_end_io_acct_f)(struct request_queue *, int,
40096 struct hd_struct *, unsigned long) = &generic_end_io_acct;
40097
40098 int
40099 main (void)
40100 {
40101
40102 generic_start_io_acct(NULL, 0, 0, NULL);
40103 generic_end_io_acct(NULL, 0, NULL, 0);
40104
40105 ;
40106 return 0;
40107 }
40108
40109 _ACEOF
40110
40111
40112
40113 cat - <<_ACEOF >conftest.h
40114
40115 _ACEOF
40116
40117
40118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40119 echo "obj-m := conftest.o" >build/Makefile
40120 modpost_flag=''
40121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40124 (eval $ac_try) 2>&5
40125 ac_status=$?
40126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40127 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40129 (eval $ac_try) 2>&5
40130 ac_status=$?
40131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40132 test $ac_status = 0; }; }; then :
40133 rc=0
40134 else
40135 $as_echo "$as_me: failed program was:" >&5
40136 sed 's/^/| /' conftest.$ac_ext >&5
40137 rc=1
40138
40139
40140 fi
40141 rm -Rf build
40142
40143
40144 if test $rc -ne 0; then :
40145
40146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40147 $as_echo "no" >&6; }
40148
40149 else
40150 if test "x$enable_linux_builtin" != xyes; then
40151
40152 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40153 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
40154 rc=$?
40155 if test $rc -ne 0; then
40156 export=0
40157 for file in block/bio.c; do
40158 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40159 "$LINUX/$file" 2>/dev/null
40160 rc=$?
40161 if test $rc -eq 0; then
40162 export=1
40163 break;
40164 fi
40165 done
40166 if test $export -eq 0; then :
40167 rc=1
40168 else :
40169 rc=0
40170 fi
40171 else :
40172 rc=0
40173 fi
40174
40175 fi
40176 if test $rc -ne 0; then :
40177
40178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40179 $as_echo "no" >&6; }
40180
40181 else :
40182
40183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40184 $as_echo "yes" >&6; }
40185
40186 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
40187
40188
40189 fi
40190 fi
40191
40192
40193
40194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
40195 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
40196
40197
40198 cat confdefs.h - <<_ACEOF >conftest.c
40199
40200
40201 #include <linux/kernel.h>
40202 #include <asm/fpu/api.h>
40203
40204 int
40205 main (void)
40206 {
40207
40208 __kernel_fpu_begin();
40209
40210 ;
40211 return 0;
40212 }
40213
40214 _ACEOF
40215
40216
40217
40218 cat - <<_ACEOF >conftest.h
40219
40220 _ACEOF
40221
40222
40223 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40224 echo "obj-m := conftest.o" >build/Makefile
40225 modpost_flag=''
40226 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40227 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40229 (eval $ac_try) 2>&5
40230 ac_status=$?
40231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40232 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40234 (eval $ac_try) 2>&5
40235 ac_status=$?
40236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40237 test $ac_status = 0; }; }; then :
40238
40239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40240 $as_echo "yes" >&6; }
40241
40242 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
40243
40244
40245 else
40246 $as_echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.$ac_ext >&5
40248
40249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40250 $as_echo "no" >&6; }
40251
40252
40253
40254 fi
40255 rm -Rf build
40256
40257
40258
40259
40260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40261 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
40262
40263
40264 cat confdefs.h - <<_ACEOF >conftest.c
40265
40266
40267 #include <linux/fs.h>
40268
40269 int
40270 main (void)
40271 {
40272
40273 struct inode *ip = NULL;
40274 (void) i_uid_read(ip);
40275
40276 ;
40277 return 0;
40278 }
40279
40280 _ACEOF
40281
40282
40283
40284 cat - <<_ACEOF >conftest.h
40285
40286 _ACEOF
40287
40288
40289 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40290 echo "obj-m := conftest.o" >build/Makefile
40291 modpost_flag=''
40292 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40293 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40295 (eval $ac_try) 2>&5
40296 ac_status=$?
40297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40298 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40300 (eval $ac_try) 2>&5
40301 ac_status=$?
40302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40303 test $ac_status = 0; }; }; then :
40304
40305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40306 $as_echo "yes" >&6; }
40307
40308 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
40309
40310
40311 else
40312 $as_echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.$ac_ext >&5
40314
40315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316 $as_echo "no" >&6; }
40317
40318
40319
40320 fi
40321 rm -Rf build
40322
40323
40324
40325
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40327 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
40328
40329
40330 cat confdefs.h - <<_ACEOF >conftest.c
40331
40332
40333 #include <linux/module.h>
40334 #include <linux/moduleparam.h>
40335
40336 int param_get(char *b, const struct kernel_param *kp)
40337 {
40338 return (0);
40339 }
40340
40341 int param_set(const char *b, const struct kernel_param *kp)
40342 {
40343 return (0);
40344 }
40345
40346 module_param_call(p, param_set, param_get, NULL, 0644);
40347
40348 int
40349 main (void)
40350 {
40351
40352
40353 ;
40354 return 0;
40355 }
40356
40357 _ACEOF
40358
40359
40360
40361 cat - <<_ACEOF >conftest.h
40362
40363 _ACEOF
40364
40365
40366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40367 echo "obj-m := conftest.o" >build/Makefile
40368 modpost_flag=''
40369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40372 (eval $ac_try) 2>&5
40373 ac_status=$?
40374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40375 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40377 (eval $ac_try) 2>&5
40378 ac_status=$?
40379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40380 test $ac_status = 0; }; }; then :
40381
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40383 $as_echo "yes" >&6; }
40384
40385 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
40386
40387
40388 else
40389 $as_echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.$ac_ext >&5
40391
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40393 $as_echo "no" >&6; }
40394
40395
40396
40397 fi
40398 rm -Rf build
40399
40400
40401
40402
40403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40404 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
40405
40406
40407 cat confdefs.h - <<_ACEOF >conftest.c
40408
40409
40410 #include <linux/fs.h>
40411 int rename_fn(struct inode *sip, struct dentry *sdp,
40412 struct inode *tip, struct dentry *tdp,
40413 unsigned int flags) { return 0; }
40414
40415 static const struct inode_operations
40416 iops __attribute__ ((unused)) = {
40417 .rename = rename_fn,
40418 };
40419
40420 int
40421 main (void)
40422 {
40423
40424
40425 ;
40426 return 0;
40427 }
40428
40429 _ACEOF
40430
40431
40432
40433 cat - <<_ACEOF >conftest.h
40434
40435 _ACEOF
40436
40437
40438 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40439 echo "obj-m := conftest.o" >build/Makefile
40440 modpost_flag=''
40441 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40442 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40444 (eval $ac_try) 2>&5
40445 ac_status=$?
40446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40447 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40449 (eval $ac_try) 2>&5
40450 ac_status=$?
40451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40452 test $ac_status = 0; }; }; then :
40453
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40455 $as_echo "yes" >&6; }
40456
40457 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
40458
40459
40460 else
40461 $as_echo "$as_me: failed program was:" >&5
40462 sed 's/^/| /' conftest.$ac_ext >&5
40463
40464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40465 $as_echo "no" >&6; }
40466
40467
40468
40469 fi
40470 rm -Rf build
40471
40472
40473
40474
40475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40476 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
40477
40478
40479 cat confdefs.h - <<_ACEOF >conftest.c
40480
40481
40482 #include <linux/fs.h>
40483 #include <linux/xattr.h>
40484
40485 static const struct inode_operations
40486 iops __attribute__ ((unused)) = {
40487 .setxattr = generic_setxattr
40488 };
40489
40490 int
40491 main (void)
40492 {
40493
40494
40495 ;
40496 return 0;
40497 }
40498
40499 _ACEOF
40500
40501
40502
40503 cat - <<_ACEOF >conftest.h
40504
40505 _ACEOF
40506
40507
40508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40509 echo "obj-m := conftest.o" >build/Makefile
40510 modpost_flag=''
40511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40512 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40514 (eval $ac_try) 2>&5
40515 ac_status=$?
40516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40517 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40519 (eval $ac_try) 2>&5
40520 ac_status=$?
40521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40522 test $ac_status = 0; }; }; then :
40523
40524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40525 $as_echo "yes" >&6; }
40526
40527 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40528
40529
40530 else
40531 $as_echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.$ac_ext >&5
40533
40534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40535 $as_echo "no" >&6; }
40536
40537
40538
40539 fi
40540 rm -Rf build
40541
40542
40543
40544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40545 $as_echo_n "checking whether current_time() exists... " >&6; }
40546
40547
40548
40549 cat confdefs.h - <<_ACEOF >conftest.c
40550
40551
40552 #include <linux/fs.h>
40553
40554 int
40555 main (void)
40556 {
40557
40558 struct inode ip;
40559 struct timespec now __attribute__ ((unused));
40560
40561 now = current_time(&ip);
40562
40563 ;
40564 return 0;
40565 }
40566
40567 _ACEOF
40568
40569
40570
40571 cat - <<_ACEOF >conftest.h
40572
40573 _ACEOF
40574
40575
40576 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40577 echo "obj-m := conftest.o" >build/Makefile
40578 modpost_flag=''
40579 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40580 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40582 (eval $ac_try) 2>&5
40583 ac_status=$?
40584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40585 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40587 (eval $ac_try) 2>&5
40588 ac_status=$?
40589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40590 test $ac_status = 0; }; }; then :
40591 rc=0
40592 else
40593 $as_echo "$as_me: failed program was:" >&5
40594 sed 's/^/| /' conftest.$ac_ext >&5
40595 rc=1
40596
40597
40598 fi
40599 rm -Rf build
40600
40601
40602 if test $rc -ne 0; then :
40603
40604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40605 $as_echo "no" >&6; }
40606
40607 else
40608 if test "x$enable_linux_builtin" != xyes; then
40609
40610 grep -q -E '[[:space:]]current_time[[:space:]]' \
40611 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
40612 rc=$?
40613 if test $rc -ne 0; then
40614 export=0
40615 for file in fs/inode.c; do
40616 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40617 "$LINUX/$file" 2>/dev/null
40618 rc=$?
40619 if test $rc -eq 0; then
40620 export=1
40621 break;
40622 fi
40623 done
40624 if test $export -eq 0; then :
40625 rc=1
40626 else :
40627 rc=0
40628 fi
40629 else :
40630 rc=0
40631 fi
40632
40633 fi
40634 if test $rc -ne 0; then :
40635
40636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40637 $as_echo "no" >&6; }
40638
40639 else :
40640
40641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40642 $as_echo "yes" >&6; }
40643
40644 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
40645
40646
40647 fi
40648 fi
40649
40650
40651
40652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40653 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
40654
40655
40656 cat confdefs.h - <<_ACEOF >conftest.c
40657
40658
40659 #include <linux/mm.h>
40660 #include <linux/vmstat.h>
40661
40662 int
40663 main (void)
40664 {
40665
40666 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40667 long x __attribute__ ((unused)) =
40668 atomic_long_read(&vm_node_stat[0]);
40669 (void) global_node_page_state(0);
40670
40671 ;
40672 return 0;
40673 }
40674
40675 _ACEOF
40676
40677
40678
40679 cat - <<_ACEOF >conftest.h
40680
40681 _ACEOF
40682
40683
40684 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40685 echo "obj-m := conftest.o" >build/Makefile
40686 modpost_flag=''
40687 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40688 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40690 (eval $ac_try) 2>&5
40691 ac_status=$?
40692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40693 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40695 (eval $ac_try) 2>&5
40696 ac_status=$?
40697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40698 test $ac_status = 0; }; }; then :
40699
40700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40701 $as_echo "yes" >&6; }
40702
40703 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40704
40705
40706 else
40707 $as_echo "$as_me: failed program was:" >&5
40708 sed 's/^/| /' conftest.$ac_ext >&5
40709
40710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40711 $as_echo "no" >&6; }
40712
40713
40714
40715 fi
40716 rm -Rf build
40717
40718
40719
40720
40721
40722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
40723 $as_echo_n "checking whether ns_capable exists... " >&6; }
40724
40725
40726 cat confdefs.h - <<_ACEOF >conftest.c
40727
40728
40729 #include <linux/capability.h>
40730
40731 int
40732 main (void)
40733 {
40734
40735 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
40736
40737 ;
40738 return 0;
40739 }
40740
40741 _ACEOF
40742
40743
40744
40745 cat - <<_ACEOF >conftest.h
40746
40747 _ACEOF
40748
40749
40750 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40751 echo "obj-m := conftest.o" >build/Makefile
40752 modpost_flag=''
40753 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40754 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40756 (eval $ac_try) 2>&5
40757 ac_status=$?
40758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40759 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40761 (eval $ac_try) 2>&5
40762 ac_status=$?
40763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40764 test $ac_status = 0; }; }; then :
40765
40766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40767 $as_echo "yes" >&6; }
40768
40769 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
40770
40771
40772 else
40773 $as_echo "$as_me: failed program was:" >&5
40774 sed 's/^/| /' conftest.$ac_ext >&5
40775
40776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40777 $as_echo "no" >&6; }
40778
40779
40780
40781 fi
40782 rm -Rf build
40783
40784
40785
40786
40787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
40788 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
40789
40790
40791 cat confdefs.h - <<_ACEOF >conftest.c
40792
40793
40794 #include <linux/cred.h>
40795
40796 int
40797 main (void)
40798 {
40799
40800 struct cred cr;
40801 cr.user_ns = (struct user_namespace *)NULL;
40802
40803 ;
40804 return 0;
40805 }
40806
40807 _ACEOF
40808
40809
40810
40811 cat - <<_ACEOF >conftest.h
40812
40813 _ACEOF
40814
40815
40816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40817 echo "obj-m := conftest.o" >build/Makefile
40818 modpost_flag=''
40819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40820 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40822 (eval $ac_try) 2>&5
40823 ac_status=$?
40824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40825 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40827 (eval $ac_try) 2>&5
40828 ac_status=$?
40829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40830 test $ac_status = 0; }; }; then :
40831
40832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40833 $as_echo "yes" >&6; }
40834
40835 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
40836
40837
40838 else
40839 $as_echo "$as_me: failed program was:" >&5
40840 sed 's/^/| /' conftest.$ac_ext >&5
40841
40842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40843 $as_echo "no" >&6; }
40844
40845
40846
40847 fi
40848 rm -Rf build
40849
40850
40851
40852
40853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
40854 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
40855
40856
40857 cat confdefs.h - <<_ACEOF >conftest.c
40858
40859
40860 #include <linux/uidgid.h>
40861
40862 int
40863 main (void)
40864 {
40865
40866 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
40867 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
40868
40869 ;
40870 return 0;
40871 }
40872
40873 _ACEOF
40874
40875
40876
40877 cat - <<_ACEOF >conftest.h
40878
40879 _ACEOF
40880
40881
40882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40883 echo "obj-m := conftest.o" >build/Makefile
40884 modpost_flag=''
40885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40886 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40888 (eval $ac_try) 2>&5
40889 ac_status=$?
40890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40891 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40893 (eval $ac_try) 2>&5
40894 ac_status=$?
40895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40896 test $ac_status = 0; }; }; then :
40897
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899 $as_echo "yes" >&6; }
40900
40901 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
40902
40903
40904 else
40905 $as_echo "$as_me: failed program was:" >&5
40906 sed 's/^/| /' conftest.$ac_ext >&5
40907
40908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40909 $as_echo "no" >&6; }
40910
40911
40912
40913 fi
40914 rm -Rf build
40915
40916
40917
40918
40919
40920 if test "$LINUX_OBJ" != "$LINUX"; then :
40921
40922 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
40923
40924 fi
40925
40926
40927
40928 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
40929 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40930 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40931 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40932 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40933 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40934
40935
40936 ;;
40937 srpm) ;;
40938 *)
40939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40940 $as_echo "Error!" >&6; }
40941 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
40942 user kernel|user|all|srpm" "$LINENO" 5 ;;
40943 esac
40944
40945 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
40946 CONFIG_USER_TRUE=
40947 CONFIG_USER_FALSE='#'
40948 else
40949 CONFIG_USER_TRUE='#'
40950 CONFIG_USER_FALSE=
40951 fi
40952
40953 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
40954 test "x$enable_linux_builtin" != xyes ; then
40955 CONFIG_KERNEL_TRUE=
40956 CONFIG_KERNEL_FALSE='#'
40957 else
40958 CONFIG_KERNEL_TRUE='#'
40959 CONFIG_KERNEL_FALSE=
40960 fi
40961
40962 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
40963 test "x$qatsrc" != x ; then
40964 CONFIG_QAT_TRUE=
40965 CONFIG_QAT_FALSE='#'
40966 else
40967 CONFIG_QAT_TRUE='#'
40968 CONFIG_QAT_FALSE=
40969 fi
40970
40971 if test "x$user_libudev" = xyes ; then
40972 WANT_DEVNAME2DEVID_TRUE=
40973 WANT_DEVNAME2DEVID_FALSE='#'
40974 else
40975 WANT_DEVNAME2DEVID_TRUE='#'
40976 WANT_DEVNAME2DEVID_FALSE=
40977 fi
40978
40979 if test "x$user_libaio" = xyes ; then
40980 WANT_MMAP_LIBAIO_TRUE=
40981 WANT_MMAP_LIBAIO_FALSE='#'
40982 else
40983 WANT_MMAP_LIBAIO_TRUE='#'
40984 WANT_MMAP_LIBAIO_FALSE=
40985 fi
40986
40987
40988
40989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40990 $as_echo_n "checking whether debugging is enabled... " >&6; }
40991 # Check whether --enable-debug was given.
40992 if test "${enable_debug+set}" = set; then :
40993 enableval=$enable_debug;
40994 else
40995 enable_debug=no
40996 fi
40997
40998
40999 if test "x$enable_debug" = xyes; then :
41000
41001 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
41002 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
41003 DEBUG_CFLAGS="-DDEBUG -Werror"
41004 DEBUG_STACKFLAGS="-fstack-check"
41005 DEBUG_ZFS="_with_debug"
41006
41007 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
41008
41009
41010 else
41011
41012 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
41013 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
41014 DEBUG_CFLAGS="-DNDEBUG"
41015 DEBUG_STACKFLAGS=""
41016 DEBUG_ZFS="_without_debug"
41017
41018 fi
41019
41020
41021
41022
41023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
41024 $as_echo "$enable_debug" >&6; }
41025
41026
41027 ac_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"
41028
41029
41030
41031 cat >confcache <<\_ACEOF
41032 # This file is a shell script that caches the results of configure
41033 # tests run on this system so they can be shared between configure
41034 # scripts and configure runs, see configure's option --config-cache.
41035 # It is not useful on other systems. If it contains results you don't
41036 # want to keep, you may remove or edit it.
41037 #
41038 # config.status only pays attention to the cache file if you give it
41039 # the --recheck option to rerun configure.
41040 #
41041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41043 # following values.
41044
41045 _ACEOF
41046
41047 # The following way of writing the cache mishandles newlines in values,
41048 # but we know of no workaround that is simple, portable, and efficient.
41049 # So, we kill variables containing newlines.
41050 # Ultrix sh set writes to stderr and can't be redirected directly,
41051 # and sets the high bit in the cache file unless we assign to the vars.
41052 (
41053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41054 eval ac_val=\$$ac_var
41055 case $ac_val in #(
41056 *${as_nl}*)
41057 case $ac_var in #(
41058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41060 esac
41061 case $ac_var in #(
41062 _ | IFS | as_nl) ;; #(
41063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41064 *) { eval $ac_var=; unset $ac_var;} ;;
41065 esac ;;
41066 esac
41067 done
41068
41069 (set) 2>&1 |
41070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41071 *${as_nl}ac_space=\ *)
41072 # `set' does not quote correctly, so add quotes: double-quote
41073 # substitution turns \\\\ into \\, and sed turns \\ into \.
41074 sed -n \
41075 "s/'/'\\\\''/g;
41076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41077 ;; #(
41078 *)
41079 # `set' quotes correctly as required by POSIX, so do not add quotes.
41080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41081 ;;
41082 esac |
41083 sort
41084 ) |
41085 sed '
41086 /^ac_cv_env_/b end
41087 t clear
41088 :clear
41089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41090 t end
41091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41092 :end' >>confcache
41093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41094 if test -w "$cache_file"; then
41095 if test "x$cache_file" != "x/dev/null"; then
41096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41097 $as_echo "$as_me: updating cache $cache_file" >&6;}
41098 if test ! -f "$cache_file" || test -h "$cache_file"; then
41099 cat confcache >"$cache_file"
41100 else
41101 case $cache_file in #(
41102 */* | ?:*)
41103 mv -f confcache "$cache_file"$$ &&
41104 mv -f "$cache_file"$$ "$cache_file" ;; #(
41105 *)
41106 mv -f confcache "$cache_file" ;;
41107 esac
41108 fi
41109 fi
41110 else
41111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41113 fi
41114 fi
41115 rm -f confcache
41116
41117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41118 # Let make expand exec_prefix.
41119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41120
41121 DEFS=-DHAVE_CONFIG_H
41122
41123 ac_libobjs=
41124 ac_ltlibobjs=
41125 U=
41126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41127 # 1. Remove the extension, and $U if already installed.
41128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41129 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41131 # will be set to the directory where LIBOBJS objects are built.
41132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41133 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41134 done
41135 LIBOBJS=$ac_libobjs
41136
41137 LTLIBOBJS=$ac_ltlibobjs
41138
41139
41140 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41141 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41143 fi
41144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41145 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41146 if test -n "$am_sleep_pid"; then
41147 # Hide warnings about reused PIDs.
41148 wait $am_sleep_pid 2>/dev/null
41149 fi
41150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41151 $as_echo "done" >&6; }
41152 if test -n "$EXEEXT"; then
41153 am__EXEEXT_TRUE=
41154 am__EXEEXT_FALSE='#'
41155 else
41156 am__EXEEXT_TRUE='#'
41157 am__EXEEXT_FALSE=
41158 fi
41159
41160 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41161 as_fn_error $? "conditional \"AMDEP\" was never defined.
41162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41163 fi
41164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41165 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41167 fi
41168 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
41169 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
41170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41171 fi
41172 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
41173 as_fn_error $? "conditional \"TARGET_ASM_X86_64\" was never defined.
41174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41175 fi
41176 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
41177 as_fn_error $? "conditional \"TARGET_ASM_I386\" was never defined.
41178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41179 fi
41180 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
41181 as_fn_error $? "conditional \"TARGET_ASM_GENERIC\" was never defined.
41182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41183 fi
41184 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
41185 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
41186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41187 fi
41188 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
41189 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
41190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41191 fi
41192 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
41193 as_fn_error $? "conditional \"CONFIG_QAT\" was never defined.
41194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41195 fi
41196 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
41197 as_fn_error $? "conditional \"WANT_DEVNAME2DEVID\" was never defined.
41198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41199 fi
41200 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
41201 as_fn_error $? "conditional \"WANT_MMAP_LIBAIO\" was never defined.
41202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41203 fi
41204
41205 : "${CONFIG_STATUS=./config.status}"
41206 ac_write_fail=0
41207 ac_clean_files_save=$ac_clean_files
41208 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41210 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41211 as_write_fail=0
41212 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41213 #! $SHELL
41214 # Generated by $as_me.
41215 # Run this file to recreate the current configuration.
41216 # Compiler output produced by configure, useful for debugging
41217 # configure, is in config.log if it exists.
41218
41219 debug=false
41220 ac_cs_recheck=false
41221 ac_cs_silent=false
41222
41223 SHELL=\${CONFIG_SHELL-$SHELL}
41224 export SHELL
41225 _ASEOF
41226 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41227 ## -------------------- ##
41228 ## M4sh Initialization. ##
41229 ## -------------------- ##
41230
41231 # Be more Bourne compatible
41232 DUALCASE=1; export DUALCASE # for MKS sh
41233 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41234 emulate sh
41235 NULLCMD=:
41236 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41237 # is contrary to our usage. Disable this feature.
41238 alias -g '${1+"$@"}'='"$@"'
41239 setopt NO_GLOB_SUBST
41240 else
41241 case `(set -o) 2>/dev/null` in #(
41242 *posix*) :
41243 set -o posix ;; #(
41244 *) :
41245 ;;
41246 esac
41247 fi
41248
41249
41250 as_nl='
41251 '
41252 export as_nl
41253 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41254 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41257 # Prefer a ksh shell builtin over an external printf program on Solaris,
41258 # but without wasting forks for bash or zsh.
41259 if test -z "$BASH_VERSION$ZSH_VERSION" \
41260 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41261 as_echo='print -r --'
41262 as_echo_n='print -rn --'
41263 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41264 as_echo='printf %s\n'
41265 as_echo_n='printf %s'
41266 else
41267 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41268 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41269 as_echo_n='/usr/ucb/echo -n'
41270 else
41271 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41272 as_echo_n_body='eval
41273 arg=$1;
41274 case $arg in #(
41275 *"$as_nl"*)
41276 expr "X$arg" : "X\\(.*\\)$as_nl";
41277 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41278 esac;
41279 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41280 '
41281 export as_echo_n_body
41282 as_echo_n='sh -c $as_echo_n_body as_echo'
41283 fi
41284 export as_echo_body
41285 as_echo='sh -c $as_echo_body as_echo'
41286 fi
41287
41288 # The user is always right.
41289 if test "${PATH_SEPARATOR+set}" != set; then
41290 PATH_SEPARATOR=:
41291 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41292 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41293 PATH_SEPARATOR=';'
41294 }
41295 fi
41296
41297
41298 # IFS
41299 # We need space, tab and new line, in precisely that order. Quoting is
41300 # there to prevent editors from complaining about space-tab.
41301 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41302 # splitting by setting IFS to empty value.)
41303 IFS=" "" $as_nl"
41304
41305 # Find who we are. Look in the path if we contain no directory separator.
41306 as_myself=
41307 case $0 in #((
41308 *[\\/]* ) as_myself=$0 ;;
41309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41310 for as_dir in $PATH
41311 do
41312 IFS=$as_save_IFS
41313 test -z "$as_dir" && as_dir=.
41314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41315 done
41316 IFS=$as_save_IFS
41317
41318 ;;
41319 esac
41320 # We did not find ourselves, most probably we were run as `sh COMMAND'
41321 # in which case we are not to be found in the path.
41322 if test "x$as_myself" = x; then
41323 as_myself=$0
41324 fi
41325 if test ! -f "$as_myself"; then
41326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41327 exit 1
41328 fi
41329
41330 # Unset variables that we do not need and which cause bugs (e.g. in
41331 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41332 # suppresses any "Segmentation fault" message there. '((' could
41333 # trigger a bug in pdksh 5.2.14.
41334 for as_var in BASH_ENV ENV MAIL MAILPATH
41335 do eval test x\${$as_var+set} = xset \
41336 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41337 done
41338 PS1='$ '
41339 PS2='> '
41340 PS4='+ '
41341
41342 # NLS nuisances.
41343 LC_ALL=C
41344 export LC_ALL
41345 LANGUAGE=C
41346 export LANGUAGE
41347
41348 # CDPATH.
41349 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41350
41351
41352 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41353 # ----------------------------------------
41354 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41355 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41356 # script with STATUS, using 1 if that was 0.
41357 as_fn_error ()
41358 {
41359 as_status=$1; test $as_status -eq 0 && as_status=1
41360 if test "$4"; then
41361 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41362 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41363 fi
41364 $as_echo "$as_me: error: $2" >&2
41365 as_fn_exit $as_status
41366 } # as_fn_error
41367
41368
41369 # as_fn_set_status STATUS
41370 # -----------------------
41371 # Set $? to STATUS, without forking.
41372 as_fn_set_status ()
41373 {
41374 return $1
41375 } # as_fn_set_status
41376
41377 # as_fn_exit STATUS
41378 # -----------------
41379 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41380 as_fn_exit ()
41381 {
41382 set +e
41383 as_fn_set_status $1
41384 exit $1
41385 } # as_fn_exit
41386
41387 # as_fn_unset VAR
41388 # ---------------
41389 # Portably unset VAR.
41390 as_fn_unset ()
41391 {
41392 { eval $1=; unset $1;}
41393 }
41394 as_unset=as_fn_unset
41395 # as_fn_append VAR VALUE
41396 # ----------------------
41397 # Append the text in VALUE to the end of the definition contained in VAR. Take
41398 # advantage of any shell optimizations that allow amortized linear growth over
41399 # repeated appends, instead of the typical quadratic growth present in naive
41400 # implementations.
41401 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41402 eval 'as_fn_append ()
41403 {
41404 eval $1+=\$2
41405 }'
41406 else
41407 as_fn_append ()
41408 {
41409 eval $1=\$$1\$2
41410 }
41411 fi # as_fn_append
41412
41413 # as_fn_arith ARG...
41414 # ------------------
41415 # Perform arithmetic evaluation on the ARGs, and store the result in the
41416 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41417 # must be portable across $(()) and expr.
41418 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41419 eval 'as_fn_arith ()
41420 {
41421 as_val=$(( $* ))
41422 }'
41423 else
41424 as_fn_arith ()
41425 {
41426 as_val=`expr "$@" || test $? -eq 1`
41427 }
41428 fi # as_fn_arith
41429
41430
41431 if expr a : '\(a\)' >/dev/null 2>&1 &&
41432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41433 as_expr=expr
41434 else
41435 as_expr=false
41436 fi
41437
41438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41439 as_basename=basename
41440 else
41441 as_basename=false
41442 fi
41443
41444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41445 as_dirname=dirname
41446 else
41447 as_dirname=false
41448 fi
41449
41450 as_me=`$as_basename -- "$0" ||
41451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41452 X"$0" : 'X\(//\)$' \| \
41453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41454 $as_echo X/"$0" |
41455 sed '/^.*\/\([^/][^/]*\)\/*$/{
41456 s//\1/
41457 q
41458 }
41459 /^X\/\(\/\/\)$/{
41460 s//\1/
41461 q
41462 }
41463 /^X\/\(\/\).*/{
41464 s//\1/
41465 q
41466 }
41467 s/.*/./; q'`
41468
41469 # Avoid depending upon Character Ranges.
41470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41473 as_cr_digits='0123456789'
41474 as_cr_alnum=$as_cr_Letters$as_cr_digits
41475
41476 ECHO_C= ECHO_N= ECHO_T=
41477 case `echo -n x` in #(((((
41478 -n*)
41479 case `echo 'xy\c'` in
41480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41481 xy) ECHO_C='\c';;
41482 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41483 ECHO_T=' ';;
41484 esac;;
41485 *)
41486 ECHO_N='-n';;
41487 esac
41488
41489 rm -f conf$$ conf$$.exe conf$$.file
41490 if test -d conf$$.dir; then
41491 rm -f conf$$.dir/conf$$.file
41492 else
41493 rm -f conf$$.dir
41494 mkdir conf$$.dir 2>/dev/null
41495 fi
41496 if (echo >conf$$.file) 2>/dev/null; then
41497 if ln -s conf$$.file conf$$ 2>/dev/null; then
41498 as_ln_s='ln -s'
41499 # ... but there are two gotchas:
41500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41502 # In both cases, we have to default to `cp -pR'.
41503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41504 as_ln_s='cp -pR'
41505 elif ln conf$$.file conf$$ 2>/dev/null; then
41506 as_ln_s=ln
41507 else
41508 as_ln_s='cp -pR'
41509 fi
41510 else
41511 as_ln_s='cp -pR'
41512 fi
41513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41514 rmdir conf$$.dir 2>/dev/null
41515
41516
41517 # as_fn_mkdir_p
41518 # -------------
41519 # Create "$as_dir" as a directory, including parents if necessary.
41520 as_fn_mkdir_p ()
41521 {
41522
41523 case $as_dir in #(
41524 -*) as_dir=./$as_dir;;
41525 esac
41526 test -d "$as_dir" || eval $as_mkdir_p || {
41527 as_dirs=
41528 while :; do
41529 case $as_dir in #(
41530 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41531 *) as_qdir=$as_dir;;
41532 esac
41533 as_dirs="'$as_qdir' $as_dirs"
41534 as_dir=`$as_dirname -- "$as_dir" ||
41535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41536 X"$as_dir" : 'X\(//\)[^/]' \| \
41537 X"$as_dir" : 'X\(//\)$' \| \
41538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41539 $as_echo X"$as_dir" |
41540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41541 s//\1/
41542 q
41543 }
41544 /^X\(\/\/\)[^/].*/{
41545 s//\1/
41546 q
41547 }
41548 /^X\(\/\/\)$/{
41549 s//\1/
41550 q
41551 }
41552 /^X\(\/\).*/{
41553 s//\1/
41554 q
41555 }
41556 s/.*/./; q'`
41557 test -d "$as_dir" && break
41558 done
41559 test -z "$as_dirs" || eval "mkdir $as_dirs"
41560 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41561
41562
41563 } # as_fn_mkdir_p
41564 if mkdir -p . 2>/dev/null; then
41565 as_mkdir_p='mkdir -p "$as_dir"'
41566 else
41567 test -d ./-p && rmdir ./-p
41568 as_mkdir_p=false
41569 fi
41570
41571
41572 # as_fn_executable_p FILE
41573 # -----------------------
41574 # Test if FILE is an executable regular file.
41575 as_fn_executable_p ()
41576 {
41577 test -f "$1" && test -x "$1"
41578 } # as_fn_executable_p
41579 as_test_x='test -x'
41580 as_executable_p=as_fn_executable_p
41581
41582 # Sed expression to map a string onto a valid CPP name.
41583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41584
41585 # Sed expression to map a string onto a valid variable name.
41586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41587
41588
41589 exec 6>&1
41590 ## ----------------------------------- ##
41591 ## Main body of $CONFIG_STATUS script. ##
41592 ## ----------------------------------- ##
41593 _ASEOF
41594 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41595
41596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41597 # Save the log message, to keep $0 and so on meaningful, and to
41598 # report actual input values of CONFIG_FILES etc. instead of their
41599 # values after options handling.
41600 ac_log="
41601 This file was extended by zfs $as_me 0.7.5, which was
41602 generated by GNU Autoconf 2.69. Invocation command line was
41603
41604 CONFIG_FILES = $CONFIG_FILES
41605 CONFIG_HEADERS = $CONFIG_HEADERS
41606 CONFIG_LINKS = $CONFIG_LINKS
41607 CONFIG_COMMANDS = $CONFIG_COMMANDS
41608 $ $0 $@
41609
41610 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41611 "
41612
41613 _ACEOF
41614
41615 case $ac_config_files in *"
41616 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41617 esac
41618
41619 case $ac_config_headers in *"
41620 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41621 esac
41622
41623
41624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41625 # Files that config.status was made for.
41626 config_files="$ac_config_files"
41627 config_headers="$ac_config_headers"
41628 config_commands="$ac_config_commands"
41629
41630 _ACEOF
41631
41632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41633 ac_cs_usage="\
41634 \`$as_me' instantiates files and other configuration actions
41635 from templates according to the current configuration. Unless the files
41636 and actions are specified as TAGs, all are instantiated by default.
41637
41638 Usage: $0 [OPTION]... [TAG]...
41639
41640 -h, --help print this help, then exit
41641 -V, --version print version number and configuration settings, then exit
41642 --config print configuration, then exit
41643 -q, --quiet, --silent
41644 do not print progress messages
41645 -d, --debug don't remove temporary files
41646 --recheck update $as_me by reconfiguring in the same conditions
41647 --file=FILE[:TEMPLATE]
41648 instantiate the configuration file FILE
41649 --header=FILE[:TEMPLATE]
41650 instantiate the configuration header FILE
41651
41652 Configuration files:
41653 $config_files
41654
41655 Configuration headers:
41656 $config_headers
41657
41658 Configuration commands:
41659 $config_commands
41660
41661 Report bugs to the package provider."
41662
41663 _ACEOF
41664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41665 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41666 ac_cs_version="\\
41667 zfs config.status 0.7.5
41668 configured by $0, generated by GNU Autoconf 2.69,
41669 with options \\"\$ac_cs_config\\"
41670
41671 Copyright (C) 2012 Free Software Foundation, Inc.
41672 This config.status script is free software; the Free Software Foundation
41673 gives unlimited permission to copy, distribute and modify it."
41674
41675 ac_pwd='$ac_pwd'
41676 srcdir='$srcdir'
41677 INSTALL='$INSTALL'
41678 MKDIR_P='$MKDIR_P'
41679 AWK='$AWK'
41680 test -n "\$AWK" || AWK=awk
41681 _ACEOF
41682
41683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41684 # The default lists apply if the user does not specify any file.
41685 ac_need_defaults=:
41686 while test $# != 0
41687 do
41688 case $1 in
41689 --*=?*)
41690 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41691 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41692 ac_shift=:
41693 ;;
41694 --*=)
41695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41696 ac_optarg=
41697 ac_shift=:
41698 ;;
41699 *)
41700 ac_option=$1
41701 ac_optarg=$2
41702 ac_shift=shift
41703 ;;
41704 esac
41705
41706 case $ac_option in
41707 # Handling of the options.
41708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41709 ac_cs_recheck=: ;;
41710 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41711 $as_echo "$ac_cs_version"; exit ;;
41712 --config | --confi | --conf | --con | --co | --c )
41713 $as_echo "$ac_cs_config"; exit ;;
41714 --debug | --debu | --deb | --de | --d | -d )
41715 debug=: ;;
41716 --file | --fil | --fi | --f )
41717 $ac_shift
41718 case $ac_optarg in
41719 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41720 '') as_fn_error $? "missing file argument" ;;
41721 esac
41722 as_fn_append CONFIG_FILES " '$ac_optarg'"
41723 ac_need_defaults=false;;
41724 --header | --heade | --head | --hea )
41725 $ac_shift
41726 case $ac_optarg in
41727 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41728 esac
41729 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41730 ac_need_defaults=false;;
41731 --he | --h)
41732 # Conflict between --help and --header
41733 as_fn_error $? "ambiguous option: \`$1'
41734 Try \`$0 --help' for more information.";;
41735 --help | --hel | -h )
41736 $as_echo "$ac_cs_usage"; exit ;;
41737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41739 ac_cs_silent=: ;;
41740
41741 # This is an error.
41742 -*) as_fn_error $? "unrecognized option: \`$1'
41743 Try \`$0 --help' for more information." ;;
41744
41745 *) as_fn_append ac_config_targets " $1"
41746 ac_need_defaults=false ;;
41747
41748 esac
41749 shift
41750 done
41751
41752 ac_configure_extra_args=
41753
41754 if $ac_cs_silent; then
41755 exec 6>/dev/null
41756 ac_configure_extra_args="$ac_configure_extra_args --silent"
41757 fi
41758
41759 _ACEOF
41760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41761 if \$ac_cs_recheck; then
41762 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41763 shift
41764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41765 CONFIG_SHELL='$SHELL'
41766 export CONFIG_SHELL
41767 exec "\$@"
41768 fi
41769
41770 _ACEOF
41771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41772 exec 5>>config.log
41773 {
41774 echo
41775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41776 ## Running $as_me. ##
41777 _ASBOX
41778 $as_echo "$ac_log"
41779 } >&5
41780
41781 _ACEOF
41782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41783 #
41784 # INIT-COMMANDS
41785 #
41786 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41787
41788
41789 # The HP-UX ksh and POSIX shell print the target directory to stdout
41790 # if CDPATH is set.
41791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41792
41793 sed_quote_subst='$sed_quote_subst'
41794 double_quote_subst='$double_quote_subst'
41795 delay_variable_subst='$delay_variable_subst'
41796 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41797 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41798 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41799 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41800 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41801 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41802 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41803 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41804 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41805 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41806 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41807 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41808 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41809 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41810 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41811 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41812 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41813 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41814 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41815 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41816 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41817 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41818 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41819 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41820 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41821 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41822 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41823 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41824 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41825 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41826 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41827 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41828 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41829 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41830 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41831 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41832 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41833 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41834 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41835 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41836 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41837 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41838 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41839 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41840 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41841 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41842 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41843 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41844 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41845 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41846 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41847 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41848 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41849 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41850 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41851 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41852 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41853 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41854 lt_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"`'
41855 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41856 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41857 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41858 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41859 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41860 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41861 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41862 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41863 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41864 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41865 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41866 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41867 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41868 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41869 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41870 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41871 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41872 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41873 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41874 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41875 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41876 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41877 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41878 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41879 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41880 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41881 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41882 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41883 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41884 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41885 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41886 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41887 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41888 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41889 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41890 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41899 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41900 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41901 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41902 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41903 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41904 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41923 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41924 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41925 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41926 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41927 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41928 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41929 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41930 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41931
41932 LTCC='$LTCC'
41933 LTCFLAGS='$LTCFLAGS'
41934 compiler='$compiler_DEFAULT'
41935
41936 # A function that is used when there is no print builtin or printf.
41937 func_fallback_echo ()
41938 {
41939 eval 'cat <<_LTECHO_EOF
41940 \$1
41941 _LTECHO_EOF'
41942 }
41943
41944 # Quote evaled strings.
41945 for var in SHELL \
41946 ECHO \
41947 PATH_SEPARATOR \
41948 SED \
41949 GREP \
41950 EGREP \
41951 FGREP \
41952 LD \
41953 NM \
41954 LN_S \
41955 lt_SP2NL \
41956 lt_NL2SP \
41957 reload_flag \
41958 OBJDUMP \
41959 deplibs_check_method \
41960 file_magic_cmd \
41961 file_magic_glob \
41962 want_nocaseglob \
41963 DLLTOOL \
41964 sharedlib_from_linklib_cmd \
41965 AR \
41966 AR_FLAGS \
41967 archiver_list_spec \
41968 STRIP \
41969 RANLIB \
41970 CC \
41971 CFLAGS \
41972 compiler \
41973 lt_cv_sys_global_symbol_pipe \
41974 lt_cv_sys_global_symbol_to_cdecl \
41975 lt_cv_sys_global_symbol_to_import \
41976 lt_cv_sys_global_symbol_to_c_name_address \
41977 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41978 lt_cv_nm_interface \
41979 nm_file_list_spec \
41980 lt_cv_truncate_bin \
41981 lt_prog_compiler_no_builtin_flag \
41982 lt_prog_compiler_pic \
41983 lt_prog_compiler_wl \
41984 lt_prog_compiler_static \
41985 lt_cv_prog_compiler_c_o \
41986 need_locks \
41987 MANIFEST_TOOL \
41988 DSYMUTIL \
41989 NMEDIT \
41990 LIPO \
41991 OTOOL \
41992 OTOOL64 \
41993 shrext_cmds \
41994 export_dynamic_flag_spec \
41995 whole_archive_flag_spec \
41996 compiler_needs_object \
41997 with_gnu_ld \
41998 allow_undefined_flag \
41999 no_undefined_flag \
42000 hardcode_libdir_flag_spec \
42001 hardcode_libdir_separator \
42002 exclude_expsyms \
42003 include_expsyms \
42004 file_list_spec \
42005 variables_saved_for_relink \
42006 libname_spec \
42007 library_names_spec \
42008 soname_spec \
42009 install_override_mode \
42010 finish_eval \
42011 old_striplib \
42012 striplib; do
42013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42014 *[\\\\\\\`\\"\\\$]*)
42015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42016 ;;
42017 *)
42018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42019 ;;
42020 esac
42021 done
42022
42023 # Double-quote double-evaled strings.
42024 for var in reload_cmds \
42025 old_postinstall_cmds \
42026 old_postuninstall_cmds \
42027 old_archive_cmds \
42028 extract_expsyms_cmds \
42029 old_archive_from_new_cmds \
42030 old_archive_from_expsyms_cmds \
42031 archive_cmds \
42032 archive_expsym_cmds \
42033 module_cmds \
42034 module_expsym_cmds \
42035 export_symbols_cmds \
42036 prelink_cmds \
42037 postlink_cmds \
42038 postinstall_cmds \
42039 postuninstall_cmds \
42040 finish_cmds \
42041 sys_lib_search_path_spec \
42042 configure_time_dlsearch_path \
42043 configure_time_lt_sys_library_path; do
42044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42045 *[\\\\\\\`\\"\\\$]*)
42046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42047 ;;
42048 *)
42049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42050 ;;
42051 esac
42052 done
42053
42054 ac_aux_dir='$ac_aux_dir'
42055
42056 # See if we are running on zsh, and set the options that allow our
42057 # commands through without removal of \ escapes INIT.
42058 if test -n "\${ZSH_VERSION+set}"; then
42059 setopt NO_GLOB_SUBST
42060 fi
42061
42062
42063 PACKAGE='$PACKAGE'
42064 VERSION='$VERSION'
42065 RM='$RM'
42066 ofile='$ofile'
42067
42068
42069
42070
42071 _ACEOF
42072
42073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42074
42075 # Handling of arguments.
42076 for ac_config_target in $ac_config_targets
42077 do
42078 case $ac_config_target in
42079 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
42080 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42081 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42083 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
42084 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
42085 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
42086 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
42087 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
42088 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
42089 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
42090 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
42091 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42092 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
42093 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
42094 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
42095 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
42096 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
42097 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
42098 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
42099 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
42100
42101 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42102 esac
42103 done
42104
42105
42106 # If the user did not use the arguments to specify the items to instantiate,
42107 # then the envvar interface is used. Set only those that are not.
42108 # We use the long form for the default assignment because of an extremely
42109 # bizarre bug on SunOS 4.1.3.
42110 if $ac_need_defaults; then
42111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42114 fi
42115
42116 # Have a temporary directory for convenience. Make it in the build tree
42117 # simply because there is no reason against having it here, and in addition,
42118 # creating and moving files from /tmp can sometimes cause problems.
42119 # Hook for its removal unless debugging.
42120 # Note that there is a small window in which the directory will not be cleaned:
42121 # after its creation but before its name has been assigned to `$tmp'.
42122 $debug ||
42123 {
42124 tmp= ac_tmp=
42125 trap 'exit_status=$?
42126 : "${ac_tmp:=$tmp}"
42127 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42128 ' 0
42129 trap 'as_fn_exit 1' 1 2 13 15
42130 }
42131 # Create a (secure) tmp directory for tmp files.
42132
42133 {
42134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42135 test -d "$tmp"
42136 } ||
42137 {
42138 tmp=./conf$$-$RANDOM
42139 (umask 077 && mkdir "$tmp")
42140 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42141 ac_tmp=$tmp
42142
42143 # Set up the scripts for CONFIG_FILES section.
42144 # No need to generate them if there are no CONFIG_FILES.
42145 # This happens for instance with `./config.status config.h'.
42146 if test -n "$CONFIG_FILES"; then
42147
42148
42149 ac_cr=`echo X | tr X '\015'`
42150 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42151 # But we know of no other shell where ac_cr would be empty at this
42152 # point, so we can use a bashism as a fallback.
42153 if test "x$ac_cr" = x; then
42154 eval ac_cr=\$\'\\r\'
42155 fi
42156 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42157 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42158 ac_cs_awk_cr='\\r'
42159 else
42160 ac_cs_awk_cr=$ac_cr
42161 fi
42162
42163 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42164 _ACEOF
42165
42166
42167 {
42168 echo "cat >conf$$subs.awk <<_ACEOF" &&
42169 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42170 echo "_ACEOF"
42171 } >conf$$subs.sh ||
42172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42173 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42174 ac_delim='%!_!# '
42175 for ac_last_try in false false false false false :; do
42176 . ./conf$$subs.sh ||
42177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42178
42179 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42180 if test $ac_delim_n = $ac_delim_num; then
42181 break
42182 elif $ac_last_try; then
42183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42184 else
42185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42186 fi
42187 done
42188 rm -f conf$$subs.sh
42189
42190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42191 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42192 _ACEOF
42193 sed -n '
42194 h
42195 s/^/S["/; s/!.*/"]=/
42196 p
42197 g
42198 s/^[^!]*!//
42199 :repl
42200 t repl
42201 s/'"$ac_delim"'$//
42202 t delim
42203 :nl
42204 h
42205 s/\(.\{148\}\)..*/\1/
42206 t more1
42207 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42208 p
42209 n
42210 b repl
42211 :more1
42212 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42213 p
42214 g
42215 s/.\{148\}//
42216 t nl
42217 :delim
42218 h
42219 s/\(.\{148\}\)..*/\1/
42220 t more2
42221 s/["\\]/\\&/g; s/^/"/; s/$/"/
42222 p
42223 b
42224 :more2
42225 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42226 p
42227 g
42228 s/.\{148\}//
42229 t delim
42230 ' <conf$$subs.awk | sed '
42231 /^[^""]/{
42232 N
42233 s/\n//
42234 }
42235 ' >>$CONFIG_STATUS || ac_write_fail=1
42236 rm -f conf$$subs.awk
42237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42238 _ACAWK
42239 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42240 for (key in S) S_is_set[key] = 1
42241 FS = "\a"
42242
42243 }
42244 {
42245 line = $ 0
42246 nfields = split(line, field, "@")
42247 substed = 0
42248 len = length(field[1])
42249 for (i = 2; i < nfields; i++) {
42250 key = field[i]
42251 keylen = length(key)
42252 if (S_is_set[key]) {
42253 value = S[key]
42254 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42255 len += length(value) + length(field[++i])
42256 substed = 1
42257 } else
42258 len += 1 + keylen
42259 }
42260
42261 print line
42262 }
42263
42264 _ACAWK
42265 _ACEOF
42266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42267 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42268 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42269 else
42270 cat
42271 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42272 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42273 _ACEOF
42274
42275 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42276 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42277 # trailing colons and then remove the whole line if VPATH becomes empty
42278 # (actually we leave an empty line to preserve line numbers).
42279 if test "x$srcdir" = x.; then
42280 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42281 h
42282 s///
42283 s/^/:/
42284 s/[ ]*$/:/
42285 s/:\$(srcdir):/:/g
42286 s/:\${srcdir}:/:/g
42287 s/:@srcdir@:/:/g
42288 s/^:*//
42289 s/:*$//
42290 x
42291 s/\(=[ ]*\).*/\1/
42292 G
42293 s/\n//
42294 s/^[^=]*=[ ]*$//
42295 }'
42296 fi
42297
42298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42299 fi # test -n "$CONFIG_FILES"
42300
42301 # Set up the scripts for CONFIG_HEADERS section.
42302 # No need to generate them if there are no CONFIG_HEADERS.
42303 # This happens for instance with `./config.status Makefile'.
42304 if test -n "$CONFIG_HEADERS"; then
42305 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42306 BEGIN {
42307 _ACEOF
42308
42309 # Transform confdefs.h into an awk script `defines.awk', embedded as
42310 # here-document in config.status, that substitutes the proper values into
42311 # config.h.in to produce config.h.
42312
42313 # Create a delimiter string that does not exist in confdefs.h, to ease
42314 # handling of long lines.
42315 ac_delim='%!_!# '
42316 for ac_last_try in false false :; do
42317 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42318 if test -z "$ac_tt"; then
42319 break
42320 elif $ac_last_try; then
42321 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42322 else
42323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42324 fi
42325 done
42326
42327 # For the awk script, D is an array of macro values keyed by name,
42328 # likewise P contains macro parameters if any. Preserve backslash
42329 # newline sequences.
42330
42331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42332 sed -n '
42333 s/.\{148\}/&'"$ac_delim"'/g
42334 t rset
42335 :rset
42336 s/^[ ]*#[ ]*define[ ][ ]*/ /
42337 t def
42338 d
42339 :def
42340 s/\\$//
42341 t bsnl
42342 s/["\\]/\\&/g
42343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42344 D["\1"]=" \3"/p
42345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42346 d
42347 :bsnl
42348 s/["\\]/\\&/g
42349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42350 D["\1"]=" \3\\\\\\n"\\/p
42351 t cont
42352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42353 t cont
42354 d
42355 :cont
42356 n
42357 s/.\{148\}/&'"$ac_delim"'/g
42358 t clear
42359 :clear
42360 s/\\$//
42361 t bsnlc
42362 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42363 d
42364 :bsnlc
42365 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42366 b cont
42367 ' <confdefs.h | sed '
42368 s/'"$ac_delim"'/"\\\
42369 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42370
42371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42372 for (key in D) D_is_set[key] = 1
42373 FS = "\a"
42374 }
42375 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42376 line = \$ 0
42377 split(line, arg, " ")
42378 if (arg[1] == "#") {
42379 defundef = arg[2]
42380 mac1 = arg[3]
42381 } else {
42382 defundef = substr(arg[1], 2)
42383 mac1 = arg[2]
42384 }
42385 split(mac1, mac2, "(") #)
42386 macro = mac2[1]
42387 prefix = substr(line, 1, index(line, defundef) - 1)
42388 if (D_is_set[macro]) {
42389 # Preserve the white space surrounding the "#".
42390 print prefix "define", macro P[macro] D[macro]
42391 next
42392 } else {
42393 # Replace #undef with comments. This is necessary, for example,
42394 # in the case of _POSIX_SOURCE, which is predefined and required
42395 # on some systems where configure will not decide to define it.
42396 if (defundef == "undef") {
42397 print "/*", prefix defundef, macro, "*/"
42398 next
42399 }
42400 }
42401 }
42402 { print }
42403 _ACAWK
42404 _ACEOF
42405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42406 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42407 fi # test -n "$CONFIG_HEADERS"
42408
42409
42410 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42411 shift
42412 for ac_tag
42413 do
42414 case $ac_tag in
42415 :[FHLC]) ac_mode=$ac_tag; continue;;
42416 esac
42417 case $ac_mode$ac_tag in
42418 :[FHL]*:*);;
42419 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42420 :[FH]-) ac_tag=-:-;;
42421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42422 esac
42423 ac_save_IFS=$IFS
42424 IFS=:
42425 set x $ac_tag
42426 IFS=$ac_save_IFS
42427 shift
42428 ac_file=$1
42429 shift
42430
42431 case $ac_mode in
42432 :L) ac_source=$1;;
42433 :[FH])
42434 ac_file_inputs=
42435 for ac_f
42436 do
42437 case $ac_f in
42438 -) ac_f="$ac_tmp/stdin";;
42439 *) # Look for the file first in the build tree, then in the source tree
42440 # (if the path is not absolute). The absolute path cannot be DOS-style,
42441 # because $ac_f cannot contain `:'.
42442 test -f "$ac_f" ||
42443 case $ac_f in
42444 [\\/$]*) false;;
42445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42446 esac ||
42447 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42448 esac
42449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42450 as_fn_append ac_file_inputs " '$ac_f'"
42451 done
42452
42453 # Let's still pretend it is `configure' which instantiates (i.e., don't
42454 # use $as_me), people would be surprised to read:
42455 # /* config.h. Generated by config.status. */
42456 configure_input='Generated from '`
42457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42458 `' by configure.'
42459 if test x"$ac_file" != x-; then
42460 configure_input="$ac_file. $configure_input"
42461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42462 $as_echo "$as_me: creating $ac_file" >&6;}
42463 fi
42464 # Neutralize special characters interpreted by sed in replacement strings.
42465 case $configure_input in #(
42466 *\&* | *\|* | *\\* )
42467 ac_sed_conf_input=`$as_echo "$configure_input" |
42468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42469 *) ac_sed_conf_input=$configure_input;;
42470 esac
42471
42472 case $ac_tag in
42473 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42475 esac
42476 ;;
42477 esac
42478
42479 ac_dir=`$as_dirname -- "$ac_file" ||
42480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42481 X"$ac_file" : 'X\(//\)[^/]' \| \
42482 X"$ac_file" : 'X\(//\)$' \| \
42483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42484 $as_echo X"$ac_file" |
42485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42486 s//\1/
42487 q
42488 }
42489 /^X\(\/\/\)[^/].*/{
42490 s//\1/
42491 q
42492 }
42493 /^X\(\/\/\)$/{
42494 s//\1/
42495 q
42496 }
42497 /^X\(\/\).*/{
42498 s//\1/
42499 q
42500 }
42501 s/.*/./; q'`
42502 as_dir="$ac_dir"; as_fn_mkdir_p
42503 ac_builddir=.
42504
42505 case "$ac_dir" in
42506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42507 *)
42508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42509 # A ".." for each directory in $ac_dir_suffix.
42510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42511 case $ac_top_builddir_sub in
42512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42514 esac ;;
42515 esac
42516 ac_abs_top_builddir=$ac_pwd
42517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42518 # for backward compatibility:
42519 ac_top_builddir=$ac_top_build_prefix
42520
42521 case $srcdir in
42522 .) # We are building in place.
42523 ac_srcdir=.
42524 ac_top_srcdir=$ac_top_builddir_sub
42525 ac_abs_top_srcdir=$ac_pwd ;;
42526 [\\/]* | ?:[\\/]* ) # Absolute name.
42527 ac_srcdir=$srcdir$ac_dir_suffix;
42528 ac_top_srcdir=$srcdir
42529 ac_abs_top_srcdir=$srcdir ;;
42530 *) # Relative name.
42531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42532 ac_top_srcdir=$ac_top_build_prefix$srcdir
42533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42534 esac
42535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42536
42537
42538 case $ac_mode in
42539 :F)
42540 #
42541 # CONFIG_FILE
42542 #
42543
42544 case $INSTALL in
42545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42547 esac
42548 ac_MKDIR_P=$MKDIR_P
42549 case $MKDIR_P in
42550 [\\/$]* | ?:[\\/]* ) ;;
42551 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42552 esac
42553 _ACEOF
42554
42555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42556 # If the template does not know about datarootdir, expand it.
42557 # FIXME: This hack should be removed a few years after 2.60.
42558 ac_datarootdir_hack=; ac_datarootdir_seen=
42559 ac_sed_dataroot='
42560 /datarootdir/ {
42561 p
42562 q
42563 }
42564 /@datadir@/p
42565 /@docdir@/p
42566 /@infodir@/p
42567 /@localedir@/p
42568 /@mandir@/p'
42569 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42570 *datarootdir*) ac_datarootdir_seen=yes;;
42571 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42573 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42574 _ACEOF
42575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42576 ac_datarootdir_hack='
42577 s&@datadir@&$datadir&g
42578 s&@docdir@&$docdir&g
42579 s&@infodir@&$infodir&g
42580 s&@localedir@&$localedir&g
42581 s&@mandir@&$mandir&g
42582 s&\\\${datarootdir}&$datarootdir&g' ;;
42583 esac
42584 _ACEOF
42585
42586 # Neutralize VPATH when `$srcdir' = `.'.
42587 # Shell code in configure.ac might set extrasub.
42588 # FIXME: do we really want to maintain this feature?
42589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42590 ac_sed_extra="$ac_vpsub
42591 $extrasub
42592 _ACEOF
42593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42594 :t
42595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42596 s|@configure_input@|$ac_sed_conf_input|;t t
42597 s&@top_builddir@&$ac_top_builddir_sub&;t t
42598 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42599 s&@srcdir@&$ac_srcdir&;t t
42600 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42601 s&@top_srcdir@&$ac_top_srcdir&;t t
42602 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42603 s&@builddir@&$ac_builddir&;t t
42604 s&@abs_builddir@&$ac_abs_builddir&;t t
42605 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42606 s&@INSTALL@&$ac_INSTALL&;t t
42607 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42608 $ac_datarootdir_hack
42609 "
42610 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42611 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42612
42613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42614 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42616 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42618 which seems to be undefined. Please make sure it is defined" >&5
42619 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42620 which seems to be undefined. Please make sure it is defined" >&2;}
42621
42622 rm -f "$ac_tmp/stdin"
42623 case $ac_file in
42624 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42625 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42626 esac \
42627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42628 ;;
42629 :H)
42630 #
42631 # CONFIG_HEADER
42632 #
42633 if test x"$ac_file" != x-; then
42634 {
42635 $as_echo "/* $configure_input */" \
42636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42637 } >"$ac_tmp/config.h" \
42638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42639 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42640 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42641 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42642 else
42643 rm -f "$ac_file"
42644 mv "$ac_tmp/config.h" "$ac_file" \
42645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42646 fi
42647 else
42648 $as_echo "/* $configure_input */" \
42649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42650 || as_fn_error $? "could not create -" "$LINENO" 5
42651 fi
42652 # Compute "$ac_file"'s index in $config_headers.
42653 _am_arg="$ac_file"
42654 _am_stamp_count=1
42655 for _am_header in $config_headers :; do
42656 case $_am_header in
42657 $_am_arg | $_am_arg:* )
42658 break ;;
42659 * )
42660 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42661 esac
42662 done
42663 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42664 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42665 X"$_am_arg" : 'X\(//\)[^/]' \| \
42666 X"$_am_arg" : 'X\(//\)$' \| \
42667 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42668 $as_echo X"$_am_arg" |
42669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42670 s//\1/
42671 q
42672 }
42673 /^X\(\/\/\)[^/].*/{
42674 s//\1/
42675 q
42676 }
42677 /^X\(\/\/\)$/{
42678 s//\1/
42679 q
42680 }
42681 /^X\(\/\).*/{
42682 s//\1/
42683 q
42684 }
42685 s/.*/./; q'`/stamp-h$_am_stamp_count
42686 ;;
42687
42688 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42689 $as_echo "$as_me: executing $ac_file commands" >&6;}
42690 ;;
42691 esac
42692
42693
42694 case $ac_file$ac_mode in
42695 "zfs_config.h":H)
42696 (mv zfs_config.h zfs_config.h.tmp &&
42697 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
42698 rm zfs_config.h.tmp) || exit 1 ;;
42699 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42700 # Older Autoconf quotes --file arguments for eval, but not when files
42701 # are listed without --file. Let's play safe and only enable the eval
42702 # if we detect the quoting.
42703 case $CONFIG_FILES in
42704 *\'*) eval set x "$CONFIG_FILES" ;;
42705 *) set x $CONFIG_FILES ;;
42706 esac
42707 shift
42708 for mf
42709 do
42710 # Strip MF so we end up with the name of the file.
42711 mf=`echo "$mf" | sed -e 's/:.*$//'`
42712 # Check whether this is an Automake generated Makefile or not.
42713 # We used to match only the files named 'Makefile.in', but
42714 # some people rename them; so instead we look at the file content.
42715 # Grep'ing the first line is not enough: some people post-process
42716 # each Makefile.in and add a new line on top of each file to say so.
42717 # Grep'ing the whole file is not good either: AIX grep has a line
42718 # limit of 2048, but all sed's we know have understand at least 4000.
42719 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42720 dirpart=`$as_dirname -- "$mf" ||
42721 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42722 X"$mf" : 'X\(//\)[^/]' \| \
42723 X"$mf" : 'X\(//\)$' \| \
42724 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42725 $as_echo X"$mf" |
42726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42727 s//\1/
42728 q
42729 }
42730 /^X\(\/\/\)[^/].*/{
42731 s//\1/
42732 q
42733 }
42734 /^X\(\/\/\)$/{
42735 s//\1/
42736 q
42737 }
42738 /^X\(\/\).*/{
42739 s//\1/
42740 q
42741 }
42742 s/.*/./; q'`
42743 else
42744 continue
42745 fi
42746 # Extract the definition of DEPDIR, am__include, and am__quote
42747 # from the Makefile without running 'make'.
42748 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42749 test -z "$DEPDIR" && continue
42750 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42751 test -z "$am__include" && continue
42752 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42753 # Find all dependency output files, they are included files with
42754 # $(DEPDIR) in their names. We invoke sed twice because it is the
42755 # simplest approach to changing $(DEPDIR) to its actual value in the
42756 # expansion.
42757 for file in `sed -n "
42758 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42759 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42760 # Make sure the directory exists.
42761 test -f "$dirpart/$file" && continue
42762 fdir=`$as_dirname -- "$file" ||
42763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42764 X"$file" : 'X\(//\)[^/]' \| \
42765 X"$file" : 'X\(//\)$' \| \
42766 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42767 $as_echo X"$file" |
42768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42769 s//\1/
42770 q
42771 }
42772 /^X\(\/\/\)[^/].*/{
42773 s//\1/
42774 q
42775 }
42776 /^X\(\/\/\)$/{
42777 s//\1/
42778 q
42779 }
42780 /^X\(\/\).*/{
42781 s//\1/
42782 q
42783 }
42784 s/.*/./; q'`
42785 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42786 # echo "creating $dirpart/$file"
42787 echo '# dummy' > "$dirpart/$file"
42788 done
42789 done
42790 }
42791 ;;
42792 "libtool":C)
42793
42794 # See if we are running on zsh, and set the options that allow our
42795 # commands through without removal of \ escapes.
42796 if test -n "${ZSH_VERSION+set}"; then
42797 setopt NO_GLOB_SUBST
42798 fi
42799
42800 cfgfile=${ofile}T
42801 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42802 $RM "$cfgfile"
42803
42804 cat <<_LT_EOF >> "$cfgfile"
42805 #! $SHELL
42806 # Generated automatically by $as_me ($PACKAGE) $VERSION
42807 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42808
42809 # Provide generalized library-building support services.
42810 # Written by Gordon Matzigkeit, 1996
42811
42812 # Copyright (C) 2014 Free Software Foundation, Inc.
42813 # This is free software; see the source for copying conditions. There is NO
42814 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42815
42816 # GNU Libtool is free software; you can redistribute it and/or modify
42817 # it under the terms of the GNU General Public License as published by
42818 # the Free Software Foundation; either version 2 of of the License, or
42819 # (at your option) any later version.
42820 #
42821 # As a special exception to the GNU General Public License, if you
42822 # distribute this file as part of a program or library that is built
42823 # using GNU Libtool, you may include this file under the same
42824 # distribution terms that you use for the rest of that program.
42825 #
42826 # GNU Libtool is distributed in the hope that it will be useful, but
42827 # WITHOUT ANY WARRANTY; without even the implied warranty of
42828 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42829 # GNU General Public License for more details.
42830 #
42831 # You should have received a copy of the GNU General Public License
42832 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42833
42834
42835 # The names of the tagged configurations supported by this script.
42836 available_tags=''
42837
42838 # Configured defaults for sys_lib_dlsearch_path munging.
42839 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42840
42841 # ### BEGIN LIBTOOL CONFIG
42842
42843 # Which release of libtool.m4 was used?
42844 macro_version=$macro_version
42845 macro_revision=$macro_revision
42846
42847 # Whether or not to build shared libraries.
42848 build_libtool_libs=$enable_shared
42849
42850 # Whether or not to build static libraries.
42851 build_old_libs=$enable_static
42852
42853 # What type of objects to build.
42854 pic_mode=$pic_mode
42855
42856 # Whether or not to optimize for fast installation.
42857 fast_install=$enable_fast_install
42858
42859 # Shared archive member basename,for filename based shared library versioning on AIX.
42860 shared_archive_member_spec=$shared_archive_member_spec
42861
42862 # Shell to use when invoking shell scripts.
42863 SHELL=$lt_SHELL
42864
42865 # An echo program that protects backslashes.
42866 ECHO=$lt_ECHO
42867
42868 # The PATH separator for the build system.
42869 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42870
42871 # The host system.
42872 host_alias=$host_alias
42873 host=$host
42874 host_os=$host_os
42875
42876 # The build system.
42877 build_alias=$build_alias
42878 build=$build
42879 build_os=$build_os
42880
42881 # A sed program that does not truncate output.
42882 SED=$lt_SED
42883
42884 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42885 Xsed="\$SED -e 1s/^X//"
42886
42887 # A grep program that handles long lines.
42888 GREP=$lt_GREP
42889
42890 # An ERE matcher.
42891 EGREP=$lt_EGREP
42892
42893 # A literal string matcher.
42894 FGREP=$lt_FGREP
42895
42896 # A BSD- or MS-compatible name lister.
42897 NM=$lt_NM
42898
42899 # Whether we need soft or hard links.
42900 LN_S=$lt_LN_S
42901
42902 # What is the maximum length of a command?
42903 max_cmd_len=$max_cmd_len
42904
42905 # Object file suffix (normally "o").
42906 objext=$ac_objext
42907
42908 # Executable file suffix (normally "").
42909 exeext=$exeext
42910
42911 # whether the shell understands "unset".
42912 lt_unset=$lt_unset
42913
42914 # turn spaces into newlines.
42915 SP2NL=$lt_lt_SP2NL
42916
42917 # turn newlines into spaces.
42918 NL2SP=$lt_lt_NL2SP
42919
42920 # convert \$build file names to \$host format.
42921 to_host_file_cmd=$lt_cv_to_host_file_cmd
42922
42923 # convert \$build files to toolchain format.
42924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42925
42926 # An object symbol dumper.
42927 OBJDUMP=$lt_OBJDUMP
42928
42929 # Method to check whether dependent libraries are shared objects.
42930 deplibs_check_method=$lt_deplibs_check_method
42931
42932 # Command to use when deplibs_check_method = "file_magic".
42933 file_magic_cmd=$lt_file_magic_cmd
42934
42935 # How to find potential files when deplibs_check_method = "file_magic".
42936 file_magic_glob=$lt_file_magic_glob
42937
42938 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42939 want_nocaseglob=$lt_want_nocaseglob
42940
42941 # DLL creation program.
42942 DLLTOOL=$lt_DLLTOOL
42943
42944 # Command to associate shared and link libraries.
42945 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42946
42947 # The archiver.
42948 AR=$lt_AR
42949
42950 # Flags to create an archive.
42951 AR_FLAGS=$lt_AR_FLAGS
42952
42953 # How to feed a file listing to the archiver.
42954 archiver_list_spec=$lt_archiver_list_spec
42955
42956 # A symbol stripping program.
42957 STRIP=$lt_STRIP
42958
42959 # Commands used to install an old-style archive.
42960 RANLIB=$lt_RANLIB
42961 old_postinstall_cmds=$lt_old_postinstall_cmds
42962 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42963
42964 # Whether to use a lock for old archive extraction.
42965 lock_old_archive_extraction=$lock_old_archive_extraction
42966
42967 # A C compiler.
42968 LTCC=$lt_CC
42969
42970 # LTCC compiler flags.
42971 LTCFLAGS=$lt_CFLAGS
42972
42973 # Take the output of nm and produce a listing of raw symbols and C names.
42974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42975
42976 # Transform the output of nm in a proper C declaration.
42977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42978
42979 # Transform the output of nm into a list of symbols to manually relocate.
42980 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42981
42982 # Transform the output of nm in a C name address pair.
42983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42984
42985 # Transform the output of nm in a C name address pair when lib prefix is needed.
42986 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42987
42988 # The name lister interface.
42989 nm_interface=$lt_lt_cv_nm_interface
42990
42991 # Specify filename containing input files for \$NM.
42992 nm_file_list_spec=$lt_nm_file_list_spec
42993
42994 # The root where to search for dependent libraries,and where our libraries should be installed.
42995 lt_sysroot=$lt_sysroot
42996
42997 # Command to truncate a binary pipe.
42998 lt_truncate_bin=$lt_lt_cv_truncate_bin
42999
43000 # The name of the directory that contains temporary libtool files.
43001 objdir=$objdir
43002
43003 # Used to examine libraries when file_magic_cmd begins with "file".
43004 MAGIC_CMD=$MAGIC_CMD
43005
43006 # Must we lock files when doing compilation?
43007 need_locks=$lt_need_locks
43008
43009 # Manifest tool.
43010 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43011
43012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43013 DSYMUTIL=$lt_DSYMUTIL
43014
43015 # Tool to change global to local symbols on Mac OS X.
43016 NMEDIT=$lt_NMEDIT
43017
43018 # Tool to manipulate fat objects and archives on Mac OS X.
43019 LIPO=$lt_LIPO
43020
43021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43022 OTOOL=$lt_OTOOL
43023
43024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43025 OTOOL64=$lt_OTOOL64
43026
43027 # Old archive suffix (normally "a").
43028 libext=$libext
43029
43030 # Shared library suffix (normally ".so").
43031 shrext_cmds=$lt_shrext_cmds
43032
43033 # The commands to extract the exported symbol list from a shared archive.
43034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43035
43036 # Variables whose values should be saved in libtool wrapper scripts and
43037 # restored at link time.
43038 variables_saved_for_relink=$lt_variables_saved_for_relink
43039
43040 # Do we need the "lib" prefix for modules?
43041 need_lib_prefix=$need_lib_prefix
43042
43043 # Do we need a version for libraries?
43044 need_version=$need_version
43045
43046 # Library versioning type.
43047 version_type=$version_type
43048
43049 # Shared library runtime path variable.
43050 runpath_var=$runpath_var
43051
43052 # Shared library path variable.
43053 shlibpath_var=$shlibpath_var
43054
43055 # Is shlibpath searched before the hard-coded library search path?
43056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43057
43058 # Format of library name prefix.
43059 libname_spec=$lt_libname_spec
43060
43061 # List of archive names. First name is the real one, the rest are links.
43062 # The last name is the one that the linker finds with -lNAME
43063 library_names_spec=$lt_library_names_spec
43064
43065 # The coded name of the library, if different from the real name.
43066 soname_spec=$lt_soname_spec
43067
43068 # Permission mode override for installation of shared libraries.
43069 install_override_mode=$lt_install_override_mode
43070
43071 # Command to use after installation of a shared archive.
43072 postinstall_cmds=$lt_postinstall_cmds
43073
43074 # Command to use after uninstallation of a shared archive.
43075 postuninstall_cmds=$lt_postuninstall_cmds
43076
43077 # Commands used to finish a libtool library installation in a directory.
43078 finish_cmds=$lt_finish_cmds
43079
43080 # As "finish_cmds", except a single script fragment to be evaled but
43081 # not shown.
43082 finish_eval=$lt_finish_eval
43083
43084 # Whether we should hardcode library paths into libraries.
43085 hardcode_into_libs=$hardcode_into_libs
43086
43087 # Compile-time system search path for libraries.
43088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43089
43090 # Detected run-time system search path for libraries.
43091 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43092
43093 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43094 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43095
43096 # Whether dlopen is supported.
43097 dlopen_support=$enable_dlopen
43098
43099 # Whether dlopen of programs is supported.
43100 dlopen_self=$enable_dlopen_self
43101
43102 # Whether dlopen of statically linked programs is supported.
43103 dlopen_self_static=$enable_dlopen_self_static
43104
43105 # Commands to strip libraries.
43106 old_striplib=$lt_old_striplib
43107 striplib=$lt_striplib
43108
43109
43110 # The linker used to build libraries.
43111 LD=$lt_LD
43112
43113 # How to create reloadable object files.
43114 reload_flag=$lt_reload_flag
43115 reload_cmds=$lt_reload_cmds
43116
43117 # Commands used to build an old-style archive.
43118 old_archive_cmds=$lt_old_archive_cmds
43119
43120 # A language specific compiler.
43121 CC=$lt_compiler
43122
43123 # Is the compiler the GNU compiler?
43124 with_gcc=$GCC
43125
43126 # Compiler flag to turn off builtin functions.
43127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43128
43129 # Additional compiler flags for building library objects.
43130 pic_flag=$lt_lt_prog_compiler_pic
43131
43132 # How to pass a linker flag through the compiler.
43133 wl=$lt_lt_prog_compiler_wl
43134
43135 # Compiler flag to prevent dynamic linking.
43136 link_static_flag=$lt_lt_prog_compiler_static
43137
43138 # Does compiler simultaneously support -c and -o options?
43139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43140
43141 # Whether or not to add -lc for building shared libraries.
43142 build_libtool_need_lc=$archive_cmds_need_lc
43143
43144 # Whether or not to disallow shared libs when runtime libs are static.
43145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43146
43147 # Compiler flag to allow reflexive dlopens.
43148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43149
43150 # Compiler flag to generate shared objects directly from archives.
43151 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43152
43153 # Whether the compiler copes with passing no objects directly.
43154 compiler_needs_object=$lt_compiler_needs_object
43155
43156 # Create an old-style archive from a shared archive.
43157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43158
43159 # Create a temporary old-style archive to link instead of a shared archive.
43160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43161
43162 # Commands used to build a shared archive.
43163 archive_cmds=$lt_archive_cmds
43164 archive_expsym_cmds=$lt_archive_expsym_cmds
43165
43166 # Commands used to build a loadable module if different from building
43167 # a shared archive.
43168 module_cmds=$lt_module_cmds
43169 module_expsym_cmds=$lt_module_expsym_cmds
43170
43171 # Whether we are building with GNU ld or not.
43172 with_gnu_ld=$lt_with_gnu_ld
43173
43174 # Flag that allows shared libraries with undefined symbols to be built.
43175 allow_undefined_flag=$lt_allow_undefined_flag
43176
43177 # Flag that enforces no undefined symbols.
43178 no_undefined_flag=$lt_no_undefined_flag
43179
43180 # Flag to hardcode \$libdir into a binary during linking.
43181 # This must work even if \$libdir does not exist
43182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43183
43184 # Whether we need a single "-rpath" flag with a separated argument.
43185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43186
43187 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43188 # DIR into the resulting binary.
43189 hardcode_direct=$hardcode_direct
43190
43191 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43192 # DIR into the resulting binary and the resulting library dependency is
43193 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43194 # library is relocated.
43195 hardcode_direct_absolute=$hardcode_direct_absolute
43196
43197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43198 # into the resulting binary.
43199 hardcode_minus_L=$hardcode_minus_L
43200
43201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43202 # into the resulting binary.
43203 hardcode_shlibpath_var=$hardcode_shlibpath_var
43204
43205 # Set to "yes" if building a shared library automatically hardcodes DIR
43206 # into the library and all subsequent libraries and executables linked
43207 # against it.
43208 hardcode_automatic=$hardcode_automatic
43209
43210 # Set to yes if linker adds runtime paths of dependent libraries
43211 # to runtime path list.
43212 inherit_rpath=$inherit_rpath
43213
43214 # Whether libtool must link a program against all its dependency libraries.
43215 link_all_deplibs=$link_all_deplibs
43216
43217 # Set to "yes" if exported symbols are required.
43218 always_export_symbols=$always_export_symbols
43219
43220 # The commands to list exported symbols.
43221 export_symbols_cmds=$lt_export_symbols_cmds
43222
43223 # Symbols that should not be listed in the preloaded symbols.
43224 exclude_expsyms=$lt_exclude_expsyms
43225
43226 # Symbols that must always be exported.
43227 include_expsyms=$lt_include_expsyms
43228
43229 # Commands necessary for linking programs (against libraries) with templates.
43230 prelink_cmds=$lt_prelink_cmds
43231
43232 # Commands necessary for finishing linking programs.
43233 postlink_cmds=$lt_postlink_cmds
43234
43235 # Specify filename containing input files.
43236 file_list_spec=$lt_file_list_spec
43237
43238 # How to hardcode a shared library path into an executable.
43239 hardcode_action=$hardcode_action
43240
43241 # ### END LIBTOOL CONFIG
43242
43243 _LT_EOF
43244
43245 cat <<'_LT_EOF' >> "$cfgfile"
43246
43247 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43248
43249 # func_munge_path_list VARIABLE PATH
43250 # -----------------------------------
43251 # VARIABLE is name of variable containing _space_ separated list of
43252 # directories to be munged by the contents of PATH, which is string
43253 # having a format:
43254 # "DIR[:DIR]:"
43255 # string "DIR[ DIR]" will be prepended to VARIABLE
43256 # ":DIR[:DIR]"
43257 # string "DIR[ DIR]" will be appended to VARIABLE
43258 # "DIRP[:DIRP]::[DIRA:]DIRA"
43259 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43260 # "DIRA[ DIRA]" will be appended to VARIABLE
43261 # "DIR[:DIR]"
43262 # VARIABLE will be replaced by "DIR[ DIR]"
43263 func_munge_path_list ()
43264 {
43265 case x$2 in
43266 x)
43267 ;;
43268 *:)
43269 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43270 ;;
43271 x:*)
43272 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43273 ;;
43274 *::*)
43275 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43276 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43277 ;;
43278 *)
43279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43280 ;;
43281 esac
43282 }
43283
43284
43285 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43286 func_cc_basename ()
43287 {
43288 for cc_temp in $*""; do
43289 case $cc_temp in
43290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43292 \-*) ;;
43293 *) break;;
43294 esac
43295 done
43296 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43297 }
43298
43299
43300 # ### END FUNCTIONS SHARED WITH CONFIGURE
43301
43302 _LT_EOF
43303
43304 case $host_os in
43305 aix3*)
43306 cat <<\_LT_EOF >> "$cfgfile"
43307 # AIX sometimes has problems with the GCC collect2 program. For some
43308 # reason, if we set the COLLECT_NAMES environment variable, the problems
43309 # vanish in a puff of smoke.
43310 if test set != "${COLLECT_NAMES+set}"; then
43311 COLLECT_NAMES=
43312 export COLLECT_NAMES
43313 fi
43314 _LT_EOF
43315 ;;
43316 esac
43317
43318
43319 ltmain=$ac_aux_dir/ltmain.sh
43320
43321
43322 # We use sed instead of cat because bash on DJGPP gets confused if
43323 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43324 # text mode, it properly converts lines to CR/LF. This bash problem
43325 # is reportedly fixed, but why not run on old versions too?
43326 sed '$q' "$ltmain" >> "$cfgfile" \
43327 || (rm -f "$cfgfile"; exit 1)
43328
43329 mv -f "$cfgfile" "$ofile" ||
43330 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43331 chmod +x "$ofile"
43332
43333 ;;
43334
43335 esac
43336 done # for ac_tag
43337
43338
43339 as_fn_exit 0
43340 _ACEOF
43341 ac_clean_files=$ac_clean_files_save
43342
43343 test $ac_write_fail = 0 ||
43344 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43345
43346
43347 # configure is writing to config.log, and then calls config.status.
43348 # config.status does its own redirection, appending to config.log.
43349 # Unfortunately, on DOS this fails, as config.log is still kept open
43350 # by configure, so config.status won't be able to write to it; its
43351 # output is simply discarded. So we exec the FD to /dev/null,
43352 # effectively closing config.log, so it can be properly (re)opened and
43353 # appended to by config.status. When coming back to configure, we
43354 # need to make the FD available again.
43355 if test "$no_create" != yes; then
43356 ac_cs_success=:
43357 ac_config_status_args=
43358 test "$silent" = yes &&
43359 ac_config_status_args="$ac_config_status_args --quiet"
43360 exec 5>/dev/null
43361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43362 exec 5>>config.log
43363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43364 # would make configure fail if this is the last instruction.
43365 $ac_cs_success || as_fn_exit 1
43366 fi
43367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43369 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43370 fi
43371