]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
Append myself to Uploaders and refresh auto-generated control.
[mirror_zfs-debian.git] / configure
CommitLineData
ea04106b
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
a07c8b41 3# Generated by GNU Autoconf 2.63 for zfs 0.7.11.
ea04106b 4#
cae5b340
AX
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ea04106b
AX
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
cae5b340
AX
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
ea04106b
AX
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
cae5b340 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
ea04106b
AX
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
cae5b340
AX
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
ea04106b 25esac
cae5b340 26
ea04106b
AX
27fi
28
29
cae5b340
AX
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ea04106b
AX
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cae5b340 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ea04106b
AX
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
cae5b340 58 case $arg in
ea04106b
AX
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
cae5b340
AX
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
ea04106b
AX
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
cae5b340 97case $0 in
ea04106b
AX
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
cae5b340
AX
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
ea04106b
AX
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cae5b340 117 { (exit 1); exit 1; }
ea04106b
AX
118fi
119
cae5b340
AX
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ea04106b
AX
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cae5b340
AX
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
ea04106b 169# CDPATH.
cae5b340
AX
170$as_unset CDPATH
171
ea04106b
AX
172
173if test "x$CONFIG_SHELL" = x; then
cae5b340
AX
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
ea04106b 176else
cae5b340 177 as_have_required=no
ea04106b 178fi
cae5b340
AX
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ea04106b
AX
196
197exitcode=0
cae5b340
AX
198if as_func_success; then
199 :
ea04106b 200else
cae5b340
AX
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
ea04106b 208fi
ea04106b 209
cae5b340
AX
210if as_func_ret_success; then
211 :
ea04106b 212else
cae5b340
AX
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ea04106b
AX
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
cae5b340 245 case $as_dir in
ea04106b
AX
246 /*)
247 for as_base in sh bash ksh sh5; do
cae5b340 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
ea04106b
AX
249 done;;
250 esac
ea04106b 251done
ea04106b
AX
252IFS=$as_save_IFS
253
254
cae5b340
AX
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
68d83c55 269esac
cae5b340 270
ea04106b 271fi
cae5b340
AX
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
ea04106b 292fi
ea04106b 293
ea04106b 294
cae5b340
AX
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
ea04106b 311
cae5b340
AX
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
ea04106b 319
cae5b340
AX
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
ea04106b 324
cae5b340
AX
325if as_func_ret_success; then
326 :
ea04106b 327else
cae5b340
AX
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
ea04106b 339else
cae5b340
AX
340 exitcode=1
341 echo positional parameters were not saved.
342fi
ea04106b 343
cae5b340 344test $exitcode = 0) || { (exit 1); exit 1; }
ea04106b 345
cae5b340
AX
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
ea04106b 351
cae5b340
AX
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
ea04106b 404else
cae5b340
AX
405 exitcode=1
406 echo as_func_success failed.
ea04106b
AX
407fi
408
cae5b340
AX
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
ea04106b 416else
cae5b340
AX
417 exitcode=1
418 echo as_func_ret_success failed.
ea04106b
AX
419fi
420
cae5b340
AX
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
ea04106b 428else
cae5b340
AX
429 exitcode=1
430 echo positional parameters were not saved.
ea04106b
AX
431fi
432
cae5b340
AX
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
ea04106b 441
ea04106b 442
cae5b340
AX
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ea04106b 447
cae5b340
AX
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
ea04106b
AX
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
cae5b340
AX
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
ea04106b
AX
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
cae5b340
AX
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
ea04106b 492ECHO_C= ECHO_N= ECHO_T=
cae5b340 493case `echo -n x` in
ea04106b 494-n*)
cae5b340 495 case `echo 'x\c'` in
ea04106b 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cae5b340 497 *) ECHO_C='\c';;
ea04106b
AX
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
cae5b340
AX
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
ea04106b
AX
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cae5b340 522 # In both cases, we have to default to `cp -p'.
ea04106b 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cae5b340 524 as_ln_s='cp -p'
ea04106b
AX
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
cae5b340 528 as_ln_s='cp -p'
ea04106b
AX
529 fi
530else
cae5b340 531 as_ln_s='cp -p'
ea04106b
AX
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
cae5b340 537 as_mkdir_p=:
ea04106b
AX
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
cae5b340
AX
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
ea04106b
AX
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
cae5b340
AX
572
573
574
575# Check that we are running under the correct shell.
ea04106b
AX
576SHELL=${CONFIG_SHELL-/bin/sh}
577
cae5b340
AX
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
ea04106b 584
cae5b340
AX
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
ea04106b
AX
724
725# Name of the host.
cae5b340 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
ea04106b
AX
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
cae5b340 741SHELL=${CONFIG_SHELL-/bin/sh}
ea04106b
AX
742
743# Identity of this package.
744PACKAGE_NAME='zfs'
745PACKAGE_TARNAME='zfs'
a07c8b41
MZ
746PACKAGE_VERSION='0.7.11'
747PACKAGE_STRING='zfs 0.7.11'
ea04106b 748PACKAGE_BUGREPORT=''
ea04106b
AX
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
42f7b73b 790DEBUG_CFLAGS
ea04106b
AX
791DEBUG_ZFS
792DEBUG_STACKFLAGS
42f7b73b
AX
793WANT_MMAP_LIBAIO_FALSE
794WANT_MMAP_LIBAIO_TRUE
cae5b340
AX
795WANT_DEVNAME2DEVID_FALSE
796WANT_DEVNAME2DEVID_TRUE
42f7b73b
AX
797CONFIG_QAT_FALSE
798CONFIG_QAT_TRUE
ea04106b
AX
799CONFIG_KERNEL_FALSE
800CONFIG_KERNEL_TRUE
801CONFIG_USER_FALSE
802CONFIG_USER_TRUE
cae5b340
AX
803RM
804ZONENAME
805NO_FORMAT_TRUNCATION
22929307 806runstatedir
42f7b73b 807LIBAIO
ea04106b 808FRAME_LARGER_THAN
cae5b340 809LIBUDEV
ea04106b 810LIBBLKID
cae5b340
AX
811LIBTIRPC_CFLAGS
812LIBTIRPC
ea04106b
AX
813LIBUUID
814ZLIB
815dracutdir
816ZFS_INIT_SYSV
817modulesloaddir
818systemdpresetdir
819systemdunitdir
42f7b73b 820DEFINE_SYSTEMD
ea04106b
AX
821ZFS_MODULE_LOAD
822ZFS_INIT_SYSTEMD
823udevruledir
824udevdir
825mounthelperdir
826KERNELCPPFLAGS
827KERNELMAKE_PARAMS
cae5b340
AX
828QAT_SYMBOLS
829QAT_OBJ
830QAT_SRC
ea04106b
AX
831SPL_SYMBOLS
832SPL_VERSION
833SPL_OBJ
834SPL
835LINUX_SYMBOLS
836LINUX_VERSION
837LINUX_OBJ
838LINUX
cae5b340
AX
839TARGET_ASM_GENERIC_FALSE
840TARGET_ASM_GENERIC_TRUE
841TARGET_ASM_I386_FALSE
842TARGET_ASM_I386_TRUE
843TARGET_ASM_X86_64_FALSE
844TARGET_ASM_X86_64_TRUE
845TARGET_ASM_DIR
e10b0808 846NO_BOOL_COMPARE
ea04106b
AX
847NO_UNUSED_BUT_SET_VARIABLE
848ZFS_CONFIG
ea04106b
AX
849ALIEN_VERSION
850ALIEN
851HAVE_ALIEN
852DPKGBUILD_VERSION
853DPKGBUILD
854HAVE_DPKGBUILD
855DPKG_VERSION
856DPKG
857HAVE_DPKG
858SRPM_DEFINE_COMMON
859SRPM_DEFINE_DKMS
860SRPM_DEFINE_KMOD
861SRPM_DEFINE_UTIL
862RPM_DEFINE_COMMON
863RPM_DEFINE_DKMS
864RPM_DEFINE_KMOD
865RPM_DEFINE_UTIL
866RPM_SPEC_DIR
867RPMBUILD_VERSION
868RPMBUILD
869HAVE_RPMBUILD
870RPM_VERSION
871RPM
872HAVE_RPM
42f7b73b 873MULTIARCH_LIBDIR
e10b0808
AX
874DEFINE_INITRAMFS
875DEFAULT_INITCONF_DIR
ea04106b
AX
876DEFAULT_INIT_SCRIPT
877DEFAULT_INIT_DIR
878DEFAULT_PACKAGE
879VENDOR
42f7b73b
AX
880CODE_COVERAGE_RULES
881CODE_COVERAGE_LDFLAGS
882CODE_COVERAGE_LIBS
883CODE_COVERAGE_CXXFLAGS
884CODE_COVERAGE_CFLAGS
885CODE_COVERAGE_CPPFLAGS
886GENHTML
887LCOV
888GCOV
889CODE_COVERAGE_ENABLED
890CODE_COVERAGE_ENABLED_FALSE
891CODE_COVERAGE_ENABLED_TRUE
ea04106b
AX
892am__fastdepCCAS_FALSE
893am__fastdepCCAS_TRUE
894CCASDEPMODE
895CCASFLAGS
896CCAS
897CPP
898OTOOL64
899OTOOL
900LIPO
901NMEDIT
902DSYMUTIL
cae5b340 903lt_ECHO
ea04106b 904RANLIB
ea04106b 905AR
ea04106b
AX
906OBJDUMP
907LN_S
908NM
909ac_ct_DUMPBIN
910DUMPBIN
911LD
912FGREP
913EGREP
914GREP
915SED
916LIBTOOL
917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
ea04106b
AX
920AMDEPBACKSLASH
921AMDEP_FALSE
922AMDEP_TRUE
923am__quote
924am__include
925DEPDIR
926OBJEXT
927EXEEXT
928ac_ct_CC
929CPPFLAGS
930LDFLAGS
931CFLAGS
932CC
933am__untar
934am__tar
935AMTAR
936am__leading_dot
937SET_MAKE
938mkdir_p
939MKDIR_P
940INSTALL_STRIP_PROGRAM
941STRIP
942install_sh
943MAKEINFO
944AUTOHEADER
945AUTOMAKE
946AUTOCONF
947ACLOCAL
948VERSION
949PACKAGE
950CYGPATH_W
951am__isrc
952INSTALL_DATA
953INSTALL_SCRIPT
954INSTALL_PROGRAM
955AM_BACKSLASH
956AM_DEFAULT_VERBOSITY
ea04106b
AX
957MAINT
958MAINTAINER_MODE_FALSE
959MAINTAINER_MODE_TRUE
960target_os
961target_vendor
962target_cpu
963target
964host_os
965host_vendor
966host_cpu
967host
968build_os
969build_vendor
970build_cpu
971build
972ZFS_META_LT_AGE
973ZFS_META_LT_REVISION
974ZFS_META_LT_CURRENT
975ZFS_META_AUTHOR
976ZFS_META_DATA
977ZFS_META_ALIAS
978ZFS_META_LICENSE
979RELEASE
980ZFS_META_RELEASE
981ZFS_META_VERSION
982ZFS_META_NAME
983AWK
984target_alias
985host_alias
986build_alias
987LIBS
988ECHO_T
989ECHO_N
990ECHO_C
991DEFS
992mandir
993localedir
994libdir
995psdir
996pdfdir
997dvidir
998htmldir
999infodir
1000docdir
1001oldincludedir
1002includedir
1003localstatedir
1004sharedstatedir
1005sysconfdir
1006datadir
1007datarootdir
1008libexecdir
1009sbindir
1010bindir
1011program_transform_name
1012prefix
1013exec_prefix
ea04106b
AX
1014PACKAGE_BUGREPORT
1015PACKAGE_STRING
1016PACKAGE_VERSION
1017PACKAGE_TARNAME
1018PACKAGE_NAME
1019PATH_SEPARATOR
1020SHELL'
1021ac_subst_files=''
1022ac_user_opts='
1023enable_option_checking
1024enable_maintainer_mode
1025enable_silent_rules
1026enable_dependency_tracking
1027enable_shared
1028enable_static
1029with_pic
1030enable_fast_install
1031with_gnu_ld
ea04106b 1032enable_libtool_lock
42f7b73b
AX
1033with_gcov
1034enable_code_coverage
ea04106b
AX
1035with_spec
1036with_config
1037enable_linux_builtin
1038with_linux
1039with_linux_obj
1040with_spl
1041with_spl_obj
1042with_spl_timeout
cae5b340
AX
1043with_qat
1044with_qat_obj
ea04106b
AX
1045with_mounthelperdir
1046with_udevdir
1047with_udevruledir
1048enable_systemd
1049with_systemdunitdir
1050with_systemdpresetdir
1051with_systemdmodulesloaddir
1052enable_sysvinit
1053with_dracutdir
cae5b340 1054with_tirpc
ea04106b 1055enable_debug
42f7b73b 1056enable_debuginfo
ea04106b
AX
1057'
1058 ac_precious_vars='build_alias
1059host_alias
1060target_alias
1061CC
1062CFLAGS
1063LDFLAGS
1064LIBS
1065CPPFLAGS
1066CPP
1067CCAS
1068CCASFLAGS'
1069
1070
1071# Initialize some variables set by options.
1072ac_init_help=
1073ac_init_version=false
1074ac_unrecognized_opts=
1075ac_unrecognized_sep=
1076# The variables have the same names as the options, with
1077# dashes changed to underlines.
1078cache_file=/dev/null
1079exec_prefix=NONE
1080no_create=
1081no_recursion=
1082prefix=NONE
1083program_prefix=NONE
1084program_suffix=NONE
1085program_transform_name=s,x,x,
1086silent=
1087site=
1088srcdir=
1089verbose=
1090x_includes=NONE
1091x_libraries=NONE
1092
1093# Installation directory options.
1094# These are left unexpanded so users can "make install exec_prefix=/foo"
1095# and all the variables that are supposed to be based on exec_prefix
1096# by default will actually change.
1097# Use braces instead of parens because sh, perl, etc. also accept them.
1098# (The list follows the same order as the GNU Coding Standards.)
1099bindir='${exec_prefix}/bin'
1100sbindir='${exec_prefix}/sbin'
1101libexecdir='${exec_prefix}/libexec'
1102datarootdir='${prefix}/share'
1103datadir='${datarootdir}'
1104sysconfdir='${prefix}/etc'
1105sharedstatedir='${prefix}/com'
1106localstatedir='${prefix}/var'
1107includedir='${prefix}/include'
1108oldincludedir='/usr/include'
1109docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110infodir='${datarootdir}/info'
1111htmldir='${docdir}'
1112dvidir='${docdir}'
1113pdfdir='${docdir}'
1114psdir='${docdir}'
1115libdir='${exec_prefix}/lib'
1116localedir='${datarootdir}/locale'
1117mandir='${datarootdir}/man'
1118
1119ac_prev=
1120ac_dashdash=
1121for ac_option
1122do
1123 # If the previous option needs an argument, assign it.
1124 if test -n "$ac_prev"; then
1125 eval $ac_prev=\$ac_option
1126 ac_prev=
1127 continue
1128 fi
1129
1130 case $ac_option in
cae5b340
AX
1131 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1132 *) ac_optarg=yes ;;
ea04106b
AX
1133 esac
1134
1135 # Accept the important Cygnus configure options, so we can diagnose typos.
1136
1137 case $ac_dashdash$ac_option in
1138 --)
1139 ac_dashdash=yes ;;
1140
1141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1142 ac_prev=bindir ;;
1143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1144 bindir=$ac_optarg ;;
1145
1146 -build | --build | --buil | --bui | --bu)
1147 ac_prev=build_alias ;;
1148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1149 build_alias=$ac_optarg ;;
1150
1151 -cache-file | --cache-file | --cache-fil | --cache-fi \
1152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1153 ac_prev=cache_file ;;
1154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1156 cache_file=$ac_optarg ;;
1157
1158 --config-cache | -C)
1159 cache_file=config.cache ;;
1160
1161 -datadir | --datadir | --datadi | --datad)
1162 ac_prev=datadir ;;
1163 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1164 datadir=$ac_optarg ;;
1165
1166 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1167 | --dataroo | --dataro | --datar)
1168 ac_prev=datarootdir ;;
1169 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1170 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1171 datarootdir=$ac_optarg ;;
1172
1173 -disable-* | --disable-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1177 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
ea04106b
AX
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"enable_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval enable_$ac_useropt=no ;;
1189
1190 -docdir | --docdir | --docdi | --doc | --do)
1191 ac_prev=docdir ;;
1192 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193 docdir=$ac_optarg ;;
1194
1195 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196 ac_prev=dvidir ;;
1197 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198 dvidir=$ac_optarg ;;
1199
1200 -enable-* | --enable-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1204 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
ea04106b
AX
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210"enable_$ac_useropt"
1211"*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval enable_$ac_useropt=\$ac_optarg ;;
1216
1217 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1218 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1219 | --exec | --exe | --ex)
1220 ac_prev=exec_prefix ;;
1221 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1222 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1223 | --exec=* | --exe=* | --ex=*)
1224 exec_prefix=$ac_optarg ;;
1225
1226 -gas | --gas | --ga | --g)
1227 # Obsolete; use --with-gas.
1228 with_gas=yes ;;
1229
1230 -help | --help | --hel | --he | -h)
1231 ac_init_help=long ;;
1232 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1233 ac_init_help=recursive ;;
1234 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1235 ac_init_help=short ;;
1236
1237 -host | --host | --hos | --ho)
1238 ac_prev=host_alias ;;
1239 -host=* | --host=* | --hos=* | --ho=*)
1240 host_alias=$ac_optarg ;;
1241
1242 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1243 ac_prev=htmldir ;;
1244 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1245 | --ht=*)
1246 htmldir=$ac_optarg ;;
1247
1248 -includedir | --includedir | --includedi | --included | --include \
1249 | --includ | --inclu | --incl | --inc)
1250 ac_prev=includedir ;;
1251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1252 | --includ=* | --inclu=* | --incl=* | --inc=*)
1253 includedir=$ac_optarg ;;
1254
1255 -infodir | --infodir | --infodi | --infod | --info | --inf)
1256 ac_prev=infodir ;;
1257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1258 infodir=$ac_optarg ;;
1259
1260 -libdir | --libdir | --libdi | --libd)
1261 ac_prev=libdir ;;
1262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1263 libdir=$ac_optarg ;;
1264
1265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1266 | --libexe | --libex | --libe)
1267 ac_prev=libexecdir ;;
1268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1269 | --libexe=* | --libex=* | --libe=*)
1270 libexecdir=$ac_optarg ;;
1271
1272 -localedir | --localedir | --localedi | --localed | --locale)
1273 ac_prev=localedir ;;
1274 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1275 localedir=$ac_optarg ;;
1276
1277 -localstatedir | --localstatedir | --localstatedi | --localstated \
1278 | --localstate | --localstat | --localsta | --localst | --locals)
1279 ac_prev=localstatedir ;;
1280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1281 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1282 localstatedir=$ac_optarg ;;
1283
1284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1285 ac_prev=mandir ;;
1286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1287 mandir=$ac_optarg ;;
1288
1289 -nfp | --nfp | --nf)
1290 # Obsolete; use --without-fp.
1291 with_fp=no ;;
1292
1293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1294 | --no-cr | --no-c | -n)
1295 no_create=yes ;;
1296
1297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1299 no_recursion=yes ;;
1300
1301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1303 | --oldin | --oldi | --old | --ol | --o)
1304 ac_prev=oldincludedir ;;
1305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1308 oldincludedir=$ac_optarg ;;
1309
1310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1311 ac_prev=prefix ;;
1312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1313 prefix=$ac_optarg ;;
1314
1315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1316 | --program-pre | --program-pr | --program-p)
1317 ac_prev=program_prefix ;;
1318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1320 program_prefix=$ac_optarg ;;
1321
1322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1323 | --program-suf | --program-su | --program-s)
1324 ac_prev=program_suffix ;;
1325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1327 program_suffix=$ac_optarg ;;
1328
1329 -program-transform-name | --program-transform-name \
1330 | --program-transform-nam | --program-transform-na \
1331 | --program-transform-n | --program-transform- \
1332 | --program-transform | --program-transfor \
1333 | --program-transfo | --program-transf \
1334 | --program-trans | --program-tran \
1335 | --progr-tra | --program-tr | --program-t)
1336 ac_prev=program_transform_name ;;
1337 -program-transform-name=* | --program-transform-name=* \
1338 | --program-transform-nam=* | --program-transform-na=* \
1339 | --program-transform-n=* | --program-transform-=* \
1340 | --program-transform=* | --program-transfor=* \
1341 | --program-transfo=* | --program-transf=* \
1342 | --program-trans=* | --program-tran=* \
1343 | --progr-tra=* | --program-tr=* | --program-t=*)
1344 program_transform_name=$ac_optarg ;;
1345
1346 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1347 ac_prev=pdfdir ;;
1348 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1349 pdfdir=$ac_optarg ;;
1350
1351 -psdir | --psdir | --psdi | --psd | --ps)
1352 ac_prev=psdir ;;
1353 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1354 psdir=$ac_optarg ;;
1355
1356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1357 | -silent | --silent | --silen | --sile | --sil)
1358 silent=yes ;;
1359
1360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1361 ac_prev=sbindir ;;
1362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1363 | --sbi=* | --sb=*)
1364 sbindir=$ac_optarg ;;
1365
1366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1368 | --sharedst | --shareds | --shared | --share | --shar \
1369 | --sha | --sh)
1370 ac_prev=sharedstatedir ;;
1371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1374 | --sha=* | --sh=*)
1375 sharedstatedir=$ac_optarg ;;
1376
1377 -site | --site | --sit)
1378 ac_prev=site ;;
1379 -site=* | --site=* | --sit=*)
1380 site=$ac_optarg ;;
1381
1382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1383 ac_prev=srcdir ;;
1384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1385 srcdir=$ac_optarg ;;
1386
1387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1388 | --syscon | --sysco | --sysc | --sys | --sy)
1389 ac_prev=sysconfdir ;;
1390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1392 sysconfdir=$ac_optarg ;;
1393
1394 -target | --target | --targe | --targ | --tar | --ta | --t)
1395 ac_prev=target_alias ;;
1396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1397 target_alias=$ac_optarg ;;
1398
1399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1400 verbose=yes ;;
1401
1402 -version | --version | --versio | --versi | --vers | -V)
1403 ac_init_version=: ;;
1404
1405 -with-* | --with-*)
1406 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1409 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1410 { (exit 1); exit 1; }; }
ea04106b
AX
1411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1414 *"
1415"with_$ac_useropt"
1416"*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=\$ac_optarg ;;
1421
1422 -without-* | --without-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cae5b340
AX
1426 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1427 { (exit 1); exit 1; }; }
ea04106b
AX
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1431 *"
1432"with_$ac_useropt"
1433"*) ;;
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1436 esac
1437 eval with_$ac_useropt=no ;;
1438
1439 --x)
1440 # Obsolete; use --with-x.
1441 with_x=yes ;;
1442
1443 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1444 | --x-incl | --x-inc | --x-in | --x-i)
1445 ac_prev=x_includes ;;
1446 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1447 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1448 x_includes=$ac_optarg ;;
1449
1450 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1451 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1452 ac_prev=x_libraries ;;
1453 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1454 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1455 x_libraries=$ac_optarg ;;
1456
cae5b340
AX
1457 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1458Try \`$0 --help' for more information." >&2
1459 { (exit 1); exit 1; }; }
ea04106b
AX
1460 ;;
1461
1462 *=*)
1463 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1464 # Reject names that are not valid shell variable names.
cae5b340
AX
1465 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1466 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1467 { (exit 1); exit 1; }; }
ea04106b
AX
1468 eval $ac_envvar=\$ac_optarg
1469 export $ac_envvar ;;
1470
1471 *)
1472 # FIXME: should be removed in autoconf 3.0.
1473 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1474 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1475 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cae5b340 1476 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ea04106b
AX
1477 ;;
1478
1479 esac
1480done
1481
1482if test -n "$ac_prev"; then
1483 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cae5b340
AX
1484 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1485 { (exit 1); exit 1; }; }
ea04106b
AX
1486fi
1487
1488if test -n "$ac_unrecognized_opts"; then
1489 case $enable_option_checking in
1490 no) ;;
cae5b340
AX
1491 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1492 { (exit 1); exit 1; }; } ;;
ea04106b
AX
1493 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494 esac
1495fi
1496
1497# Check all directory arguments for consistency.
1498for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1499 datadir sysconfdir sharedstatedir localstatedir includedir \
1500 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
22929307 1501 libdir localedir mandir
ea04106b
AX
1502do
1503 eval ac_val=\$$ac_var
1504 # Remove trailing slashes.
1505 case $ac_val in
1506 */ )
1507 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1508 eval $ac_var=\$ac_val;;
1509 esac
1510 # Be sure to have absolute directory names.
1511 case $ac_val in
1512 [\\/$]* | ?:[\\/]* ) continue;;
1513 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1514 esac
cae5b340
AX
1515 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1516 { (exit 1); exit 1; }; }
ea04106b
AX
1517done
1518
1519# There might be people who depend on the old broken behavior: `$host'
1520# used to hold the argument of --host etc.
1521# FIXME: To remove some day.
1522build=$build_alias
1523host=$host_alias
1524target=$target_alias
1525
1526# FIXME: To remove some day.
1527if test "x$host_alias" != x; then
1528 if test "x$build_alias" = x; then
1529 cross_compiling=maybe
cae5b340
AX
1530 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1531 If a cross compiler is detected then cross compile mode will be used." >&2
ea04106b
AX
1532 elif test "x$build_alias" != "x$host_alias"; then
1533 cross_compiling=yes
1534 fi
1535fi
1536
1537ac_tool_prefix=
1538test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539
1540test "$silent" = yes && exec 6>/dev/null
1541
1542
1543ac_pwd=`pwd` && test -n "$ac_pwd" &&
1544ac_ls_di=`ls -di .` &&
1545ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cae5b340
AX
1546 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1547 { (exit 1); exit 1; }; }
ea04106b 1548test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cae5b340
AX
1549 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1550 { (exit 1); exit 1; }; }
ea04106b
AX
1551
1552
1553# Find the source files, if location was not specified.
1554if test -z "$srcdir"; then
1555 ac_srcdir_defaulted=yes
1556 # Try the directory containing this script, then the parent directory.
1557 ac_confdir=`$as_dirname -- "$as_myself" ||
1558$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1559 X"$as_myself" : 'X\(//\)[^/]' \| \
1560 X"$as_myself" : 'X\(//\)$' \| \
1561 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1562$as_echo X"$as_myself" |
1563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1564 s//\1/
1565 q
1566 }
1567 /^X\(\/\/\)[^/].*/{
1568 s//\1/
1569 q
1570 }
1571 /^X\(\/\/\)$/{
1572 s//\1/
1573 q
1574 }
1575 /^X\(\/\).*/{
1576 s//\1/
1577 q
1578 }
1579 s/.*/./; q'`
1580 srcdir=$ac_confdir
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582 srcdir=..
1583 fi
1584else
1585 ac_srcdir_defaulted=no
1586fi
1587if test ! -r "$srcdir/$ac_unique_file"; then
1588 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cae5b340
AX
1589 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1590 { (exit 1); exit 1; }; }
ea04106b
AX
1591fi
1592ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593ac_abs_confdir=`(
cae5b340
AX
1594 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1595 { (exit 1); exit 1; }; }
ea04106b
AX
1596 pwd)`
1597# When building in place, set srcdir=.
1598if test "$ac_abs_confdir" = "$ac_pwd"; then
1599 srcdir=.
1600fi
1601# Remove unnecessary trailing slashes from srcdir.
1602# Double slashes in file names in object file debugging info
1603# mess up M-x gdb in Emacs.
1604case $srcdir in
1605*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606esac
1607for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612done
1613
1614#
1615# Report the --help message.
1616#
1617if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1620 cat <<_ACEOF
a07c8b41 1621\`configure' configures zfs 0.7.11 to adapt to many kinds of systems.
ea04106b
AX
1622
1623Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626VAR=VALUE. See below for descriptions of some of the useful variables.
1627
1628Defaults for the options are specified in brackets.
1629
1630Configuration:
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
cae5b340 1635 -q, --quiet, --silent do not print \`checking...' messages
ea04106b
AX
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640
1641Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1645 [PREFIX]
1646
1647By default, \`make install' will install all the files in
1648\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650for instance \`--prefix=\$HOME'.
1651
1652For better control, use the options below.
1653
1654Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1674_ACEOF
1675
1676 cat <<\_ACEOF
1677
1678Program names:
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682
1683System types:
1684 --build=BUILD configure for building on BUILD [guessed]
1685 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1686 --target=TARGET configure for building compilers for TARGET [HOST]
1687_ACEOF
1688fi
1689
1690if test -n "$ac_init_help"; then
1691 case $ac_init_help in
a07c8b41 1692 short | recursive ) echo "Configuration of zfs 0.7.11:";;
ea04106b
AX
1693 esac
1694 cat <<\_ACEOF
1695
1696Optional Features:
1697 --disable-option-checking ignore unrecognized --enable/--with options
1698 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1699 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cae5b340
AX
1700 --enable-maintainer-mode enable make rules and dependencies not useful
1701 (and sometimes confusing) to the casual installer
1702 --enable-silent-rules less verbose build output (undo: `make V=1')
1703 --disable-silent-rules verbose build output (undo: `make V=0')
1704 --disable-dependency-tracking speeds up one-time build
1705 --enable-dependency-tracking do not reject slow dependency extractors
ea04106b
AX
1706 --enable-shared[=PKGS] build shared libraries [default=yes]
1707 --enable-static[=PKGS] build static libraries [default=yes]
1708 --enable-fast-install[=PKGS]
1709 optimize for fast installation [default=yes]
1710 --disable-libtool-lock avoid locking (might break parallel builds)
42f7b73b 1711 --enable-code-coverage Whether to enable code coverage support
ea04106b
AX
1712 --enable-linux-builtin Configure for builtin in-tree kernel modules
1713 [default=no]
cae5b340
AX
1714 --enable-systemd install systemd unit/preset files
1715 [default:], [yes]
1716 --enable-sysvinit install SysV init scripts default:, yes
42f7b73b
AX
1717 --enable-debug Enable assertion support [default=no]
1718 --enable-debuginfo Force generation of debuginfo [default=no]
ea04106b
AX
1719
1720Optional Packages:
1721 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1722 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cae5b340 1723 --with-pic try to use only PIC/non-PIC objects [default=use
ea04106b
AX
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42f7b73b 1726 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
ea04106b
AX
1727 --with-spec=SPEC Spec files 'generic|redhat'
1728 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1729 --with-linux=PATH Path to kernel source
1730 --with-linux-obj=PATH Path to kernel build objects
1731 --with-spl=PATH Path to spl source
1732 --with-spl-obj=PATH Path to spl build objects
1733 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
cae5b340
AX
1734 --with-qat=PATH Path to qat source
1735 --with-qat-obj=PATH Path to qat build objects
ea04106b 1736 --with-mounthelperdir=DIR
cae5b340 1737 install mount.zfs in dir [/sbin]
ea04106b 1738 --with-udevdir=DIR install udev helpers [default=check]
cae5b340 1739 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
ea04106b
AX
1740 --with-systemdunitdir=DIR
1741 install systemd unit files in dir
cae5b340 1742 [/usr/lib/systemd/system]
ea04106b
AX
1743 --with-systemdpresetdir=DIR
1744 install systemd preset files in dir
cae5b340 1745 [/usr/lib/systemd/system-preset]
ea04106b
AX
1746 --with-systemdmodulesloaddir=DIR
1747 install systemd module load files into dir
cae5b340 1748 [/usr/lib/modules-load.d]
ea04106b 1749 --with-dracutdir=DIR install dracut helpers [default=check]
cae5b340 1750 --with-tirpc use tirpc for xdr encoding [default=check]
ea04106b
AX
1751
1752Some influential environment variables:
1753 CC C compiler command
1754 CFLAGS C compiler flags
1755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1756 nonstandard directory <lib dir>
1757 LIBS libraries to pass to the linker, e.g. -l<library>
cae5b340 1758 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
ea04106b
AX
1759 you have headers in a nonstandard directory <include dir>
1760 CPP C preprocessor
1761 CCAS assembler compiler command (defaults to CC)
1762 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1763
1764Use these variables to override the choices made by `configure' or to help
1765it to find libraries and programs with nonstandard names/locations.
1766
ea04106b
AX
1767_ACEOF
1768ac_status=$?
1769fi
1770
1771if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776 continue
1777 ac_builddir=.
1778
1779case "$ac_dir" in
1780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781*)
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788 esac ;;
1789esac
1790ac_abs_top_builddir=$ac_pwd
1791ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792# for backward compatibility:
1793ac_top_builddir=$ac_top_build_prefix
1794
1795case $srcdir in
1796 .) # We are building in place.
1797 ac_srcdir=.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1804 *) # Relative name.
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808esac
1809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1817 echo &&
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1819 else
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821 fi || ac_status=$?
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1823 done
1824fi
1825
1826test -n "$ac_init_help" && exit $ac_status
1827if $ac_init_version; then
1828 cat <<\_ACEOF
a07c8b41 1829zfs configure 0.7.11
cae5b340 1830generated by GNU Autoconf 2.63
ea04106b 1831
cae5b340
AX
1832Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18332002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ea04106b
AX
1834This configure script is free software; the Free Software Foundation
1835gives unlimited permission to copy, distribute and modify it.
1836_ACEOF
1837 exit
1838fi
ea04106b
AX
1839cat >config.log <<_ACEOF
1840This file contains any messages produced by compilers while
1841running configure, to aid debugging if configure makes a mistake.
1842
a07c8b41 1843It was created by zfs $as_me 0.7.11, which was
cae5b340 1844generated by GNU Autoconf 2.63. Invocation command line was
ea04106b
AX
1845
1846 $ $0 $@
1847
1848_ACEOF
1849exec 5>>config.log
1850{
1851cat <<_ASUNAME
1852## --------- ##
1853## Platform. ##
1854## --------- ##
1855
1856hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
1862/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864
1865/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872
1873_ASUNAME
1874
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
cae5b340
AX
1880 $as_echo "PATH: $as_dir"
1881done
ea04106b
AX
1882IFS=$as_save_IFS
1883
1884} >&5
1885
1886cat >&5 <<_ACEOF
1887
1888
1889## ----------- ##
1890## Core tests. ##
1891## ----------- ##
1892
1893_ACEOF
1894
1895
1896# Keep a trace of the command line.
1897# Strip out --no-create and --no-recursion so they do not pile up.
1898# Strip out --silent because we don't want to record it for future runs.
1899# Also quote any args containing shell meta-characters.
1900# Make two passes to allow for proper duplicate-argument suppression.
1901ac_configure_args=
1902ac_configure_args0=
1903ac_configure_args1=
1904ac_must_keep_next=false
1905for ac_pass in 1 2
1906do
1907 for ac_arg
1908 do
1909 case $ac_arg in
1910 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912 | -silent | --silent | --silen | --sile | --sil)
1913 continue ;;
1914 *\'*)
1915 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 esac
1917 case $ac_pass in
cae5b340 1918 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
ea04106b 1919 2)
cae5b340 1920 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
ea04106b
AX
1921 if test $ac_must_keep_next = true; then
1922 ac_must_keep_next=false # Got value, back to normal.
1923 else
1924 case $ac_arg in
1925 *=* | --config-cache | -C | -disable-* | --disable-* \
1926 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928 | -with-* | --with-* | -without-* | --without-* | --x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931 esac
1932 ;;
1933 -* ) ac_must_keep_next=true ;;
1934 esac
1935 fi
cae5b340 1936 ac_configure_args="$ac_configure_args '$ac_arg'"
ea04106b
AX
1937 ;;
1938 esac
1939 done
1940done
cae5b340
AX
1941$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1942$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
ea04106b
AX
1943
1944# When interrupted or exit'd, cleanup temporary files, and complete
1945# config.log. We remove comments because anyway the quotes in there
1946# would cause problems or look ugly.
1947# WARNING: Use '\'' to represent an apostrophe within the trap.
1948# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1951 {
1952 echo
1953
cae5b340
AX
1954 cat <<\_ASBOX
1955## ---------------- ##
ea04106b 1956## Cache variables. ##
cae5b340
AX
1957## ---------------- ##
1958_ASBOX
ea04106b
AX
1959 echo
1960 # The following way of writing the cache mishandles newlines in values,
1961(
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in #(
1965 *${as_nl}*)
1966 case $ac_var in #(
cae5b340 1967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
ea04106b
AX
1968$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969 esac
1970 case $ac_var in #(
1971 _ | IFS | as_nl) ;; #(
1972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cae5b340 1973 *) $as_unset $ac_var ;;
ea04106b
AX
1974 esac ;;
1975 esac
1976 done
1977 (set) 2>&1 |
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1980 sed -n \
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983 ;; #(
1984 *)
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986 ;;
1987 esac |
1988 sort
1989)
1990 echo
1991
cae5b340
AX
1992 cat <<\_ASBOX
1993## ----------------- ##
ea04106b 1994## Output variables. ##
cae5b340
AX
1995## ----------------- ##
1996_ASBOX
ea04106b
AX
1997 echo
1998 for ac_var in $ac_subst_vars
1999 do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 esac
2004 $as_echo "$ac_var='\''$ac_val'\''"
2005 done | sort
2006 echo
2007
2008 if test -n "$ac_subst_files"; then
cae5b340
AX
2009 cat <<\_ASBOX
2010## ------------------- ##
ea04106b 2011## File substitutions. ##
cae5b340
AX
2012## ------------------- ##
2013_ASBOX
ea04106b
AX
2014 echo
2015 for ac_var in $ac_subst_files
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2024 fi
2025
2026 if test -s confdefs.h; then
cae5b340
AX
2027 cat <<\_ASBOX
2028## ----------- ##
ea04106b 2029## confdefs.h. ##
cae5b340
AX
2030## ----------- ##
2031_ASBOX
ea04106b
AX
2032 echo
2033 cat confdefs.h
2034 echo
2035 fi
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2039 } >&5
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 exit $exit_status
2043' 0
2044for ac_signal in 1 2 13 15; do
cae5b340 2045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
ea04106b
AX
2046done
2047ac_signal=0
2048
2049# confdefs.h avoids OS command line length limits that DEFS can exceed.
2050rm -f -r conftest* confdefs.h
2051
ea04106b
AX
2052# Predefined preprocessor variables.
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_NAME "$PACKAGE_NAME"
2056_ACEOF
2057
cae5b340 2058
ea04106b
AX
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061_ACEOF
2062
cae5b340 2063
ea04106b
AX
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_VERSION "$PACKAGE_VERSION"
2066_ACEOF
2067
cae5b340 2068
ea04106b
AX
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_STRING "$PACKAGE_STRING"
2071_ACEOF
2072
ea04106b
AX
2073
2074cat >>confdefs.h <<_ACEOF
cae5b340 2075#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
ea04106b
AX
2076_ACEOF
2077
2078
2079# Let the site file select an alternate cache file if it wants to.
2080# Prefer an explicitly selected file to automatically selected ones.
2081ac_site_file1=NONE
2082ac_site_file2=NONE
2083if test -n "$CONFIG_SITE"; then
cae5b340 2084 ac_site_file1=$CONFIG_SITE
ea04106b
AX
2085elif test "x$prefix" != xNONE; then
2086 ac_site_file1=$prefix/share/config.site
2087 ac_site_file2=$prefix/etc/config.site
2088else
2089 ac_site_file1=$ac_default_prefix/share/config.site
2090 ac_site_file2=$ac_default_prefix/etc/config.site
2091fi
2092for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2093do
2094 test "x$ac_site_file" = xNONE && continue
cae5b340
AX
2095 if test -r "$ac_site_file"; then
2096 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
ea04106b
AX
2097$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
cae5b340 2099 . "$ac_site_file"
ea04106b
AX
2100 fi
2101done
2102
2103if test -r "$cache_file"; then
cae5b340
AX
2104 # Some versions of bash will fail to source /dev/null (special
2105 # files actually), so we avoid doing that.
2106 if test -f "$cache_file"; then
2107 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
ea04106b
AX
2108$as_echo "$as_me: loading cache $cache_file" >&6;}
2109 case $cache_file in
2110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111 *) . "./$cache_file";;
2112 esac
2113 fi
2114else
cae5b340 2115 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
ea04106b
AX
2116$as_echo "$as_me: creating cache $cache_file" >&6;}
2117 >$cache_file
2118fi
2119
2120# Check that the precious variables saved in the cache have kept the same
2121# value.
2122ac_cache_corrupted=false
2123for ac_var in $ac_precious_vars; do
2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125 eval ac_new_set=\$ac_env_${ac_var}_set
2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127 eval ac_new_val=\$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2129 set,)
cae5b340 2130 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
ea04106b
AX
2131$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2133 ,set)
cae5b340 2134 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
ea04106b
AX
2135$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2137 ,);;
2138 *)
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 # differences in whitespace do not lead to failure.
2141 ac_old_val_w=`echo x $ac_old_val`
2142 ac_new_val_w=`echo x $ac_new_val`
2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cae5b340 2144 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ea04106b
AX
2145$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted=:
2147 else
cae5b340 2148 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
ea04106b
AX
2149$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150 eval $ac_var=\$ac_old_val
2151 fi
cae5b340 2152 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
ea04106b 2153$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cae5b340 2154 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
ea04106b
AX
2155$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2156 fi;;
2157 esac
2158 # Pass precious variables to config.status.
2159 if test "$ac_new_set" = set; then
2160 case $ac_new_val in
2161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 *) ac_arg=$ac_var=$ac_new_val ;;
2163 esac
2164 case " $ac_configure_args " in
2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cae5b340 2166 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
ea04106b
AX
2167 esac
2168 fi
2169done
2170if $ac_cache_corrupted; then
cae5b340 2171 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340 2173 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
ea04106b 2174$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cae5b340
AX
2175 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2176$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2177 { (exit 1); exit 1; }; }
ea04106b 2178fi
cae5b340
AX
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
ea04106b
AX
2203
2204ac_ext=c
2205ac_cpp='$CPP $CPPFLAGS'
2206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210
2211ac_ext=c
2212ac_cpp='$CPP $CPPFLAGS'
2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216
2217
2218
2219
2220
cae5b340 2221
ea04106b
AX
2222 for ac_prog in gawk mawk nawk awk
2223do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225set dummy $ac_prog; ac_word=$2
cae5b340 2226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2227$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2228if test "${ac_cv_prog_AWK+set}" = set; then
ea04106b
AX
2229 $as_echo_n "(cached) " >&6
2230else
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
cae5b340
AX
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 2241 ac_cv_prog_AWK="$ac_prog"
cae5b340 2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2243 break 2
2244 fi
2245done
cae5b340 2246done
ea04106b
AX
2247IFS=$as_save_IFS
2248
2249fi
2250fi
2251AWK=$ac_cv_prog_AWK
2252if test -n "$AWK"; then
cae5b340 2253 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
ea04106b
AX
2254$as_echo "$AWK" >&6; }
2255else
cae5b340 2256 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2257$as_echo "no" >&6; }
2258fi
2259
2260
2261 test -n "$AWK" && break
2262done
2263
cae5b340 2264 { $as_echo "$as_me:$LINENO: checking metadata" >&5
ea04106b
AX
2265$as_echo_n "checking metadata... " >&6; }
2266
2267 META="$srcdir/META"
2268 _zfs_ac_meta_type="none"
2269 if test -f "$META"; then
2270 _zfs_ac_meta_type="META file"
2271
2272 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2273 if test -n "$ZFS_META_NAME"; then
2274
2275cat >>confdefs.h <<_ACEOF
2276#define ZFS_META_NAME "$ZFS_META_NAME"
2277_ACEOF
2278
2279
2280 fi
2281
2282 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2283 if test -n "$ZFS_META_VERSION"; then
2284
2285cat >>confdefs.h <<_ACEOF
2286#define ZFS_META_VERSION "$ZFS_META_VERSION"
2287_ACEOF
2288
2289
2290 fi
2291
2292 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2293 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2294 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2295 _alias=$(git describe --match=${_match} 2>/dev/null)
2296 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2297 if test -n "${_release}"; then
2298 ZFS_META_RELEASE=${_release}
2299 _zfs_ac_meta_type="git describe"
cae5b340
AX
2300 else
2301 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2302 _alias=$(git describe --match=${_match} 2>/dev/null)
2303 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2304 if test -n "${_release}"; then
2305 ZFS_META_RELEASE=${_release}
2306 _zfs_ac_meta_type="git describe"
2307 fi
ea04106b
AX
2308 fi
2309 fi
2310
2311 if test -n "$ZFS_META_RELEASE"; then
2312
2313cat >>confdefs.h <<_ACEOF
2314#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2315_ACEOF
2316
2317
2318
2319 RELEASE="$ZFS_META_RELEASE"
2320
2321 fi
2322
2323 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2324 if test -n "$ZFS_META_LICENSE"; then
2325
2326cat >>confdefs.h <<_ACEOF
2327#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2328_ACEOF
2329
2330
2331 fi
2332
2333 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2334 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2335 test -n "$ZFS_META_RELEASE" &&
2336 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2337
2338cat >>confdefs.h <<_ACEOF
2339#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2340_ACEOF
2341
2342
2343 fi
2344
2345 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2346 if test -n "$ZFS_META_DATA"; then
2347
2348cat >>confdefs.h <<_ACEOF
2349#define ZFS_META_DATA "$ZFS_META_DATA"
2350_ACEOF
2351
2352
2353 fi
2354
2355 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2356 if test -n "$ZFS_META_AUTHOR"; then
2357
2358cat >>confdefs.h <<_ACEOF
2359#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2360_ACEOF
2361
2362
2363 fi
2364
2365
2366 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2367 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2368 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2369 if test -n "$ZFS_META_LT_CURRENT" \
2370 -o -n "$ZFS_META_LT_REVISION" \
2371 -o -n "$ZFS_META_LT_AGE"; then
2372 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2373 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2374 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2375
2376cat >>confdefs.h <<_ACEOF
2377#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2378_ACEOF
2379
2380
2381cat >>confdefs.h <<_ACEOF
2382#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2383_ACEOF
2384
2385
2386cat >>confdefs.h <<_ACEOF
2387#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2388_ACEOF
2389
2390
2391
2392
2393 fi
2394 fi
2395
cae5b340 2396 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
ea04106b
AX
2397$as_echo "$_zfs_ac_meta_type" >&6; }
2398
2399
2400ac_aux_dir=
2401for ac_dir in config "$srcdir"/config; do
2402 if test -f "$ac_dir/install-sh"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/install-sh -c"
2405 break
2406 elif test -f "$ac_dir/install.sh"; then
2407 ac_aux_dir=$ac_dir
2408 ac_install_sh="$ac_aux_dir/install.sh -c"
2409 break
2410 elif test -f "$ac_dir/shtool"; then
2411 ac_aux_dir=$ac_dir
2412 ac_install_sh="$ac_aux_dir/shtool install -c"
2413 break
2414 fi
2415done
2416if test -z "$ac_aux_dir"; then
cae5b340
AX
2417 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2418$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2419 { (exit 1); exit 1; }; }
ea04106b
AX
2420fi
2421
2422# These three variables are undocumented and unsupported,
2423# and are intended to be withdrawn in a future Autoconf release.
2424# They can cause serious problems if a builder's source tree is in a directory
2425# whose full name contains unusual characters.
2426ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2429
2430
2431
2432# Make sure we can run config.sub.
2433$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cae5b340
AX
2434 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2435$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2436 { (exit 1); exit 1; }; }
ea04106b 2437
cae5b340 2438{ $as_echo "$as_me:$LINENO: checking build system type" >&5
ea04106b 2439$as_echo_n "checking build system type... " >&6; }
cae5b340 2440if test "${ac_cv_build+set}" = set; then
ea04106b
AX
2441 $as_echo_n "(cached) " >&6
2442else
2443 ac_build_alias=$build_alias
2444test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446test "x$ac_build_alias" = x &&
cae5b340
AX
2447 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449 { (exit 1); exit 1; }; }
ea04106b 2450ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cae5b340
AX
2451 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2452$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2453 { (exit 1); exit 1; }; }
ea04106b
AX
2454
2455fi
cae5b340 2456{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
ea04106b
AX
2457$as_echo "$ac_cv_build" >&6; }
2458case $ac_cv_build in
2459*-*-*) ;;
cae5b340
AX
2460*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2461$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2462 { (exit 1); exit 1; }; };;
ea04106b
AX
2463esac
2464build=$ac_cv_build
2465ac_save_IFS=$IFS; IFS='-'
2466set x $ac_cv_build
2467shift
2468build_cpu=$1
2469build_vendor=$2
2470shift; shift
2471# Remember, the first character of IFS is used to create $*,
2472# except with old shells:
2473build_os=$*
2474IFS=$ac_save_IFS
2475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
cae5b340 2478{ $as_echo "$as_me:$LINENO: checking host system type" >&5
ea04106b 2479$as_echo_n "checking host system type... " >&6; }
cae5b340 2480if test "${ac_cv_host+set}" = set; then
ea04106b
AX
2481 $as_echo_n "(cached) " >&6
2482else
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2485else
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cae5b340
AX
2487 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2488$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2489 { (exit 1); exit 1; }; }
ea04106b
AX
2490fi
2491
2492fi
cae5b340 2493{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
ea04106b
AX
2494$as_echo "$ac_cv_host" >&6; }
2495case $ac_cv_host in
2496*-*-*) ;;
cae5b340
AX
2497*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2498$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2499 { (exit 1); exit 1; }; };;
ea04106b
AX
2500esac
2501host=$ac_cv_host
2502ac_save_IFS=$IFS; IFS='-'
2503set x $ac_cv_host
2504shift
2505host_cpu=$1
2506host_vendor=$2
2507shift; shift
2508# Remember, the first character of IFS is used to create $*,
2509# except with old shells:
2510host_os=$*
2511IFS=$ac_save_IFS
2512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
cae5b340 2515{ $as_echo "$as_me:$LINENO: checking target system type" >&5
ea04106b 2516$as_echo_n "checking target system type... " >&6; }
cae5b340 2517if test "${ac_cv_target+set}" = set; then
ea04106b
AX
2518 $as_echo_n "(cached) " >&6
2519else
2520 if test "x$target_alias" = x; then
2521 ac_cv_target=$ac_cv_host
2522else
2523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cae5b340
AX
2524 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2525$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2526 { (exit 1); exit 1; }; }
ea04106b
AX
2527fi
2528
2529fi
cae5b340 2530{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
ea04106b
AX
2531$as_echo "$ac_cv_target" >&6; }
2532case $ac_cv_target in
2533*-*-*) ;;
cae5b340
AX
2534*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2535$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2536 { (exit 1); exit 1; }; };;
ea04106b
AX
2537esac
2538target=$ac_cv_target
2539ac_save_IFS=$IFS; IFS='-'
2540set x $ac_cv_target
2541shift
2542target_cpu=$1
2543target_vendor=$2
2544shift; shift
2545# Remember, the first character of IFS is used to create $*,
2546# except with old shells:
2547target_os=$*
2548IFS=$ac_save_IFS
2549case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2550
2551
2552# The aliases save the names the user supplied, while $host etc.
2553# will get canonicalized.
2554test -n "$target_alias" &&
2555 test "$program_prefix$program_suffix$program_transform_name" = \
2556 NONENONEs,x,x, &&
2557 program_prefix=${target_alias}-
2558
cae5b340 2559{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
ea04106b
AX
2560$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2561 # Check whether --enable-maintainer-mode was given.
cae5b340 2562if test "${enable_maintainer_mode+set}" = set; then
ea04106b
AX
2563 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2564else
2565 USE_MAINTAINER_MODE=no
2566fi
2567
cae5b340 2568 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
ea04106b
AX
2569$as_echo "$USE_MAINTAINER_MODE" >&6; }
2570 if test $USE_MAINTAINER_MODE = yes; then
2571 MAINTAINER_MODE_TRUE=
2572 MAINTAINER_MODE_FALSE='#'
2573else
2574 MAINTAINER_MODE_TRUE='#'
2575 MAINTAINER_MODE_FALSE=
2576fi
2577
2578 MAINT=$MAINTAINER_MODE_TRUE
2579
2580
2581# Check whether --enable-silent-rules was given.
cae5b340 2582if test "${enable_silent_rules+set}" = set; then
ea04106b
AX
2583 enableval=$enable_silent_rules;
2584fi
2585
cae5b340
AX
2586case $enable_silent_rules in
2587yes) AM_DEFAULT_VERBOSITY=0;;
2588no) AM_DEFAULT_VERBOSITY=1;;
2589*) AM_DEFAULT_VERBOSITY=0;;
ea04106b 2590esac
ea04106b
AX
2591AM_BACKSLASH='\'
2592
cae5b340 2593am__api_version='1.11'
ea04106b
AX
2594
2595# Find a good install program. We prefer a C program (faster),
2596# so one script is as good as another. But avoid the broken or
2597# incompatible versions:
2598# SysV /etc/install, /usr/sbin/install
2599# SunOS /usr/etc/install
2600# IRIX /sbin/install
2601# AIX /bin/install
2602# AmigaOS /C/install, which installs bootblocks on floppy discs
2603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2604# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2606# OS/2's system install, which has a completely different semantic
2607# ./install, which can be erroneously created by make from ./install.sh.
2608# Reject install programs that cannot install multiple files.
cae5b340 2609{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
ea04106b
AX
2610$as_echo_n "checking for a BSD-compatible install... " >&6; }
2611if test -z "$INSTALL"; then
cae5b340 2612if test "${ac_cv_path_install+set}" = set; then
ea04106b
AX
2613 $as_echo_n "(cached) " >&6
2614else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
cae5b340
AX
2620 # Account for people who put trailing slashes in PATH elements.
2621case $as_dir/ in
2622 ./ | .// | /cC/* | \
ea04106b 2623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cae5b340 2624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ea04106b
AX
2625 /usr/ucb/* ) ;;
2626 *)
2627 # OSF1 and SCO ODT 3.0 have their own names for install.
2628 # Don't use installbsd from OSF since it installs stuff as root
2629 # by default.
2630 for ac_prog in ginstall scoinst install; do
2631 for ac_exec_ext in '' $ac_executable_extensions; do
cae5b340 2632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ea04106b
AX
2633 if test $ac_prog = install &&
2634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # AIX install. It has an incompatible calling convention.
2636 :
2637 elif test $ac_prog = install &&
2638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639 # program-specific install script used by HP pwplus--don't use.
2640 :
2641 else
2642 rm -rf conftest.one conftest.two conftest.dir
2643 echo one > conftest.one
2644 echo two > conftest.two
2645 mkdir conftest.dir
2646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2647 test -s conftest.one && test -s conftest.two &&
2648 test -s conftest.dir/conftest.one &&
2649 test -s conftest.dir/conftest.two
2650 then
2651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2652 break 3
2653 fi
2654 fi
2655 fi
2656 done
2657 done
2658 ;;
2659esac
2660
cae5b340 2661done
ea04106b
AX
2662IFS=$as_save_IFS
2663
2664rm -rf conftest.one conftest.two conftest.dir
2665
2666fi
2667 if test "${ac_cv_path_install+set}" = set; then
2668 INSTALL=$ac_cv_path_install
2669 else
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for INSTALL within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 INSTALL=$ac_install_sh
2675 fi
2676fi
cae5b340 2677{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
ea04106b
AX
2678$as_echo "$INSTALL" >&6; }
2679
2680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2681# It thinks the first close brace ends the variable substitution.
2682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683
2684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685
2686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687
cae5b340 2688{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
ea04106b 2689$as_echo_n "checking whether build environment is sane... " >&6; }
cae5b340
AX
2690# Just in case
2691sleep 1
2692echo timestamp > conftest.file
ea04106b
AX
2693# Reject unsafe characters in $srcdir or the absolute working directory
2694# name. Accept space and tab only in the latter.
2695am_lf='
2696'
2697case `pwd` in
2698 *[\\\"\#\$\&\'\`$am_lf]*)
cae5b340
AX
2699 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2700$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2701 { (exit 1); exit 1; }; };;
ea04106b
AX
2702esac
2703case $srcdir in
2704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cae5b340
AX
2705 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2706$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2707 { (exit 1); exit 1; }; };;
ea04106b
AX
2708esac
2709
cae5b340 2710# Do `set' in a subshell so we don't clobber the current shell's
ea04106b
AX
2711# arguments. Must try -L first in case configure is actually a
2712# symlink; some systems play weird games with the mod time of symlinks
2713# (eg FreeBSD returns the mod time of the symlink's containing
2714# directory).
2715if (
cae5b340
AX
2716 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717 if test "$*" = "X"; then
2718 # -L didn't work.
2719 set X `ls -t "$srcdir/configure" conftest.file`
2720 fi
2721 rm -f conftest.file
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2724
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2730alias in your environment" >&5
2731$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2732alias in your environment" >&2;}
2733 { (exit 1); exit 1; }; }
2734 fi
2735
ea04106b
AX
2736 test "$2" = conftest.file
2737 )
2738then
2739 # Ok.
2740 :
2741else
cae5b340
AX
2742 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2743Check your system clock" >&5
2744$as_echo "$as_me: error: newly created file is older than distributed files!
2745Check your system clock" >&2;}
2746 { (exit 1); exit 1; }; }
ea04106b 2747fi
cae5b340 2748{ $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
2749$as_echo "yes" >&6; }
2750test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752# Use a double $ so make ignores it.
2753test "$program_suffix" != NONE &&
2754 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755# Double any \ or $.
2756# By default was `s,x,x', remove it if useless.
2757ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
cae5b340
AX
2760# expand $ac_aux_dir to an absolute path
2761am_aux_dir=`cd $ac_aux_dir && pwd`
ea04106b
AX
2762
2763if test x"${MISSING+set}" != xset; then
2764 case $am_aux_dir in
2765 *\ * | *\ *)
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 *)
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769 esac
2770fi
2771# Use eval to expand $SHELL
cae5b340
AX
2772if eval "$MISSING --run true"; then
2773 am_missing_run="$MISSING --run "
ea04106b
AX
2774else
2775 am_missing_run=
cae5b340
AX
2776 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2777$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ea04106b
AX
2778fi
2779
cae5b340 2780if test x"${install_sh}" != xset; then
ea04106b
AX
2781 case $am_aux_dir in
2782 *\ * | *\ *)
2783 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784 *)
2785 install_sh="\${SHELL} $am_aux_dir/install-sh"
2786 esac
2787fi
2788
cae5b340
AX
2789# Installed binaries are usually stripped using `strip' when the user
2790# run `make install-strip'. However `strip' might not be the right
ea04106b 2791# tool to use in cross-compilation environments, therefore Automake
cae5b340 2792# will honor the `STRIP' environment variable to overrule this program.
ea04106b
AX
2793if test "$cross_compiling" != no; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796set dummy ${ac_tool_prefix}strip; ac_word=$2
cae5b340 2797{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2798$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2799if test "${ac_cv_prog_STRIP+set}" = set; then
ea04106b
AX
2800 $as_echo_n "(cached) " >&6
2801else
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
cae5b340
AX
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 2812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cae5b340 2813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2814 break 2
2815 fi
2816done
cae5b340 2817done
ea04106b
AX
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822STRIP=$ac_cv_prog_STRIP
2823if test -n "$STRIP"; then
cae5b340 2824 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
ea04106b
AX
2825$as_echo "$STRIP" >&6; }
2826else
cae5b340 2827 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if test -z "$ac_cv_prog_STRIP"; then
2834 ac_ct_STRIP=$STRIP
2835 # Extract the first word of "strip", so it can be a program name with args.
2836set dummy strip; ac_word=$2
cae5b340 2837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2838$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2839if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
ea04106b
AX
2840 $as_echo_n "(cached) " >&6
2841else
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
cae5b340
AX
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 2852 ac_cv_prog_ac_ct_STRIP="strip"
cae5b340 2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2854 break 2
2855 fi
2856done
cae5b340 2857done
ea04106b
AX
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863if test -n "$ac_ct_STRIP"; then
cae5b340 2864 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
ea04106b
AX
2865$as_echo "$ac_ct_STRIP" >&6; }
2866else
cae5b340 2867 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2868$as_echo "no" >&6; }
2869fi
2870
2871 if test "x$ac_ct_STRIP" = x; then
2872 STRIP=":"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875yes:)
cae5b340 2876{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880 STRIP=$ac_ct_STRIP
2881 fi
2882else
2883 STRIP="$ac_cv_prog_STRIP"
2884fi
2885
2886fi
2887INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
cae5b340 2889{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
ea04106b
AX
2890$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891if test -z "$MKDIR_P"; then
cae5b340 2892 if test "${ac_cv_path_mkdir+set}" = set; then
ea04106b
AX
2893 $as_echo_n "(cached) " >&6
2894else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
cae5b340 2900 for ac_prog in mkdir gmkdir; do
ea04106b 2901 for ac_exec_ext in '' $ac_executable_extensions; do
cae5b340 2902 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
ea04106b
AX
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908 break 3;;
2909 esac
2910 done
2911 done
cae5b340 2912done
ea04106b
AX
2913IFS=$as_save_IFS
2914
2915fi
2916
ea04106b
AX
2917 if test "${ac_cv_path_mkdir+set}" = set; then
2918 MKDIR_P="$ac_cv_path_mkdir -p"
2919 else
2920 # As a last resort, use the slow shell script. Don't cache a
2921 # value for MKDIR_P within a source directory, because that will
2922 # break other packages using the cache if that directory is
2923 # removed, or if the value is a relative name.
cae5b340 2924 test -d ./--version && rmdir ./--version
ea04106b
AX
2925 MKDIR_P="$ac_install_sh -d"
2926 fi
2927fi
cae5b340 2928{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
ea04106b
AX
2929$as_echo "$MKDIR_P" >&6; }
2930
cae5b340
AX
2931mkdir_p="$MKDIR_P"
2932case $mkdir_p in
2933 [\\/$]* | ?:[\\/]*) ;;
2934 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2935esac
2936
2937{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
ea04106b
AX
2938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939set x ${MAKE-make}
2940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cae5b340 2941if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ea04106b
AX
2942 $as_echo_n "(cached) " >&6
2943else
2944 cat >conftest.make <<\_ACEOF
2945SHELL = /bin/sh
2946all:
2947 @echo '@@@%%%=$(MAKE)=@@@%%%'
2948_ACEOF
cae5b340 2949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ea04106b
AX
2950case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951 *@@@%%%=?*=@@@%%%*)
2952 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 *)
2954 eval ac_cv_prog_make_${ac_make}_set=no;;
2955esac
2956rm -f conftest.make
2957fi
2958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cae5b340 2959 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
2960$as_echo "yes" >&6; }
2961 SET_MAKE=
2962else
cae5b340 2963 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2964$as_echo "no" >&6; }
2965 SET_MAKE="MAKE=${MAKE-make}"
2966fi
2967
2968rm -rf .tst 2>/dev/null
2969mkdir .tst 2>/dev/null
2970if test -d .tst; then
2971 am__leading_dot=.
2972else
2973 am__leading_dot=_
2974fi
2975rmdir .tst 2>/dev/null
2976
2977if test "`cd $srcdir && pwd`" != "`pwd`"; then
2978 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2979 # is not polluted with repeated "-I."
2980 am__isrc=' -I$(srcdir)'
2981 # test to see if srcdir already configured
2982 if test -f $srcdir/config.status; then
cae5b340
AX
2983 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2984$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2985 { (exit 1); exit 1; }; }
ea04106b
AX
2986 fi
2987fi
2988
2989# test whether we have cygpath
2990if test -z "$CYGPATH_W"; then
2991 if (cygpath --version) >/dev/null 2>/dev/null; then
2992 CYGPATH_W='cygpath -w'
2993 else
2994 CYGPATH_W=echo
2995 fi
2996fi
2997
2998
2999# Define the identity of the package.
3000 PACKAGE='zfs'
a07c8b41 3001 VERSION='0.7.11'
ea04106b
AX
3002
3003
3004cat >>confdefs.h <<_ACEOF
3005#define PACKAGE "$PACKAGE"
3006_ACEOF
3007
3008
3009cat >>confdefs.h <<_ACEOF
3010#define VERSION "$VERSION"
3011_ACEOF
3012
3013# Some tools Automake needs.
3014
3015ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3016
3017
3018AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3019
3020
3021AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3022
3023
3024AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3025
3026
3027MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3028
cae5b340
AX
3029# We need awk for the "check" target. The system "awk" is bad on
3030# some platforms.
3031# Always define AMTAR for backward compatibility.
ea04106b 3032
cae5b340 3033AMTAR=${AMTAR-"${am_missing_run}tar"}
68d83c55 3034
cae5b340 3035am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
68d83c55 3036
ea04106b
AX
3037
3038
3039
3040
cae5b340 3041ac_config_headers="$ac_config_headers zfs_config.h"
ea04106b 3042
68d83c55 3043
cae5b340
AX
3044# Find a good install program. We prefer a C program (faster),
3045# so one script is as good as another. But avoid the broken or
3046# incompatible versions:
3047# SysV /etc/install, /usr/sbin/install
3048# SunOS /usr/etc/install
3049# IRIX /sbin/install
3050# AIX /bin/install
3051# AmigaOS /C/install, which installs bootblocks on floppy discs
3052# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3053# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3054# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3055# OS/2's system install, which has a completely different semantic
3056# ./install, which can be erroneously created by make from ./install.sh.
3057# Reject install programs that cannot install multiple files.
3058{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3059$as_echo_n "checking for a BSD-compatible install... " >&6; }
3060if test -z "$INSTALL"; then
3061if test "${ac_cv_path_install+set}" = set; then
3062 $as_echo_n "(cached) " >&6
3063else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 # Account for people who put trailing slashes in PATH elements.
3070case $as_dir/ in
3071 ./ | .// | /cC/* | \
3072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3073 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3074 /usr/ucb/* ) ;;
3075 *)
3076 # OSF1 and SCO ODT 3.0 have their own names for install.
3077 # Don't use installbsd from OSF since it installs stuff as root
3078 # by default.
3079 for ac_prog in ginstall scoinst install; do
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3082 if test $ac_prog = install &&
3083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3085 :
3086 elif test $ac_prog = install &&
3087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3089 :
3090 else
3091 rm -rf conftest.one conftest.two conftest.dir
3092 echo one > conftest.one
3093 echo two > conftest.two
3094 mkdir conftest.dir
3095 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3096 test -s conftest.one && test -s conftest.two &&
3097 test -s conftest.dir/conftest.one &&
3098 test -s conftest.dir/conftest.two
3099 then
3100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3101 break 3
3102 fi
3103 fi
3104 fi
3105 done
3106 done
3107 ;;
3108esac
68d83c55 3109
cae5b340
AX
3110done
3111IFS=$as_save_IFS
68d83c55 3112
cae5b340 3113rm -rf conftest.one conftest.two conftest.dir
68d83c55 3114
cae5b340
AX
3115fi
3116 if test "${ac_cv_path_install+set}" = set; then
3117 INSTALL=$ac_cv_path_install
68d83c55 3118 else
cae5b340
AX
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for INSTALL within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 INSTALL=$ac_install_sh
68d83c55
AX
3124 fi
3125fi
cae5b340
AX
3126{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3127$as_echo "$INSTALL" >&6; }
68d83c55 3128
cae5b340
AX
3129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3130# It thinks the first close brace ends the variable substitution.
3131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ea04106b 3132
cae5b340 3133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ea04106b 3134
cae5b340 3135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ea04106b
AX
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3144set dummy ${ac_tool_prefix}gcc; ac_word=$2
cae5b340 3145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3146$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3147if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3148 $as_echo_n "(cached) " >&6
3149else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
cae5b340
AX
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3160 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cae5b340 3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3162 break 2
3163 fi
3164done
cae5b340 3165done
ea04106b
AX
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
cae5b340 3172 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3173$as_echo "$CC" >&6; }
3174else
cae5b340 3175 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3176$as_echo "no" >&6; }
3177fi
3178
3179
3180fi
3181if test -z "$ac_cv_prog_CC"; then
3182 ac_ct_CC=$CC
3183 # Extract the first word of "gcc", so it can be a program name with args.
3184set dummy gcc; ac_word=$2
cae5b340 3185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3186$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ea04106b
AX
3188 $as_echo_n "(cached) " >&6
3189else
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
cae5b340
AX
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3200 ac_cv_prog_ac_ct_CC="gcc"
cae5b340 3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3202 break 2
3203 fi
3204done
cae5b340 3205done
ea04106b
AX
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
cae5b340 3212 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
ea04106b
AX
3213$as_echo "$ac_ct_CC" >&6; }
3214else
cae5b340 3215 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3216$as_echo "no" >&6; }
3217fi
3218
3219 if test "x$ac_ct_CC" = x; then
3220 CC=""
3221 else
3222 case $cross_compiling:$ac_tool_warned in
3223yes:)
cae5b340 3224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
3225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226ac_tool_warned=yes ;;
3227esac
3228 CC=$ac_ct_CC
3229 fi
3230else
3231 CC="$ac_cv_prog_CC"
3232fi
3233
3234if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3237set dummy ${ac_tool_prefix}cc; ac_word=$2
cae5b340 3238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3239$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3240if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3241 $as_echo_n "(cached) " >&6
3242else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
cae5b340
AX
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3253 ac_cv_prog_CC="${ac_tool_prefix}cc"
cae5b340 3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3255 break 2
3256 fi
3257done
cae5b340 3258done
ea04106b
AX
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263CC=$ac_cv_prog_CC
3264if test -n "$CC"; then
cae5b340 3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3266$as_echo "$CC" >&6; }
3267else
cae5b340 3268 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273 fi
3274fi
3275if test -z "$CC"; then
3276 # Extract the first word of "cc", so it can be a program name with args.
3277set dummy cc; ac_word=$2
cae5b340 3278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3279$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3280if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3281 $as_echo_n "(cached) " >&6
3282else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285else
3286 ac_prog_rejected=no
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
cae5b340
AX
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b
AX
3294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3295 ac_prog_rejected=yes
3296 continue
3297 fi
3298 ac_cv_prog_CC="cc"
cae5b340 3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3300 break 2
3301 fi
3302done
cae5b340 3303done
ea04106b
AX
3304IFS=$as_save_IFS
3305
3306if test $ac_prog_rejected = yes; then
3307 # We found a bogon in the path, so make sure we never use it.
3308 set dummy $ac_cv_prog_CC
3309 shift
3310 if test $# != 0; then
3311 # We chose a different compiler from the bogus one.
3312 # However, it has the same basename, so the bogon will be chosen
3313 # first if we set CC to just the basename; use the full file name.
3314 shift
3315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3316 fi
3317fi
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
cae5b340 3322 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3323$as_echo "$CC" >&6; }
3324else
cae5b340 3325 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330fi
3331if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 for ac_prog in cl.exe
3334 do
3335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cae5b340 3337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3338$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3339if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
cae5b340
AX
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cae5b340 3353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3354 break 2
3355 fi
3356done
cae5b340 3357done
ea04106b
AX
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
cae5b340 3364 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3365$as_echo "$CC" >&6; }
3366else
cae5b340 3367 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372 test -n "$CC" && break
3373 done
3374fi
3375if test -z "$CC"; then
3376 ac_ct_CC=$CC
3377 for ac_prog in cl.exe
3378do
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380set dummy $ac_prog; ac_word=$2
cae5b340 3381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3382$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3383if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ea04106b
AX
3384 $as_echo_n "(cached) " >&6
3385else
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
cae5b340
AX
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 3396 ac_cv_prog_ac_ct_CC="$ac_prog"
cae5b340 3397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3398 break 2
3399 fi
3400done
cae5b340 3401done
ea04106b
AX
3402IFS=$as_save_IFS
3403
3404fi
3405fi
3406ac_ct_CC=$ac_cv_prog_ac_ct_CC
3407if test -n "$ac_ct_CC"; then
cae5b340 3408 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
ea04106b
AX
3409$as_echo "$ac_ct_CC" >&6; }
3410else
cae5b340 3411 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3412$as_echo "no" >&6; }
3413fi
3414
3415
3416 test -n "$ac_ct_CC" && break
3417done
3418
3419 if test "x$ac_ct_CC" = x; then
3420 CC=""
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423yes:)
cae5b340 3424{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
3425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426ac_tool_warned=yes ;;
3427esac
3428 CC=$ac_ct_CC
3429 fi
3430fi
3431
3432fi
3433
3434
cae5b340 3435test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3437{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3438See \`config.log' for more details." >&5
3439$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3440See \`config.log' for more details." >&2;}
3441 { (exit 1); exit 1; }; }; }
ea04106b
AX
3442
3443# Provide some information about the compiler.
cae5b340 3444$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
ea04106b
AX
3445set X $ac_compile
3446ac_compiler=$2
cae5b340 3447{ (ac_try="$ac_compiler --version >&5"
ea04106b
AX
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
cae5b340
AX
3452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453$as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compiler --version >&5") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3458{ (ac_try="$ac_compiler -v >&5"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3464$as_echo "$ac_try_echo") >&5
3465 (eval "$ac_compiler -v >&5") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }
3469{ (ac_try="$ac_compiler -V >&5"
3470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475$as_echo "$ac_try_echo") >&5
3476 (eval "$ac_compiler -V >&5") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }
ea04106b 3480
cae5b340
AX
3481cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3486/* end confdefs.h. */
3487
3488int
3489main ()
3490{
3491
3492 ;
3493 return 0;
3494}
3495_ACEOF
3496ac_clean_files_save=$ac_clean_files
3497ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498# Try to create an executable without -o first, disregard a.out.
3499# It will help us diagnose broken compilers, and finding out an intuition
3500# of exeext.
cae5b340
AX
3501{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3502$as_echo_n "checking for C compiler default output file name... " >&6; }
ea04106b
AX
3503ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504
3505# The possible output files:
3506ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507
3508ac_rmfiles=
3509for ac_file in $ac_files
3510do
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514 esac
3515done
3516rm -f $ac_rmfiles
3517
cae5b340 3518if { (ac_try="$ac_link_default"
ea04106b
AX
3519case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
cae5b340
AX
3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524$as_echo "$ac_try_echo") >&5
ea04106b
AX
3525 (eval "$ac_link_default") 2>&5
3526 ac_status=$?
cae5b340
AX
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; then
ea04106b
AX
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531# in a Makefile. We should not override ac_cv_exeext if it was cached,
3532# so that the user can short-circuit this test for compilers unknown to
3533# Autoconf.
3534for ac_file in $ac_files ''
3535do
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539 ;;
3540 [ab].out )
3541 # We found the default executable, but exeext='' is most
3542 # certainly right.
3543 break;;
3544 *.* )
cae5b340 3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
ea04106b
AX
3546 then :; else
3547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 fi
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3553 # actually working.
3554 break;;
3555 * )
3556 break;;
3557 esac
3558done
3559test "$ac_cv_exeext" = no && ac_cv_exeext=
3560
3561else
3562 ac_file=''
3563fi
cae5b340
AX
3564
3565{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3566$as_echo "$ac_file" >&6; }
3567if test -z "$ac_file"; then
3568 $as_echo "$as_me: failed program was:" >&5
ea04106b
AX
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
cae5b340 3571{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3573{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3574See \`config.log' for more details." >&5
3575$as_echo "$as_me: error: C compiler cannot create executables
3576See \`config.log' for more details." >&2;}
3577 { (exit 77); exit 77; }; }; }
ea04106b 3578fi
cae5b340 3579
ea04106b
AX
3580ac_exeext=$ac_cv_exeext
3581
cae5b340
AX
3582# Check that the compiler produces executables we can run. If not, either
3583# the compiler is broken, or we cross compile.
3584{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3585$as_echo_n "checking whether the C compiler works... " >&6; }
3586# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3587# If not cross compiling, check that we can run a simple program.
3588if test "$cross_compiling" != yes; then
3589 if { ac_try='./$ac_file'
3590 { (case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595$as_echo "$ac_try_echo") >&5
3596 (eval "$ac_try") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 cross_compiling=no
3601 else
3602 if test "$cross_compiling" = maybe; then
3603 cross_compiling=yes
3604 else
3605 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3608If you meant to cross compile, use \`--host'.
3609See \`config.log' for more details." >&5
3610$as_echo "$as_me: error: cannot run C compiled programs.
3611If you meant to cross compile, use \`--host'.
3612See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }; }
3614 fi
3615 fi
3616fi
3617{ $as_echo "$as_me:$LINENO: result: yes" >&5
3618$as_echo "yes" >&6; }
3619
ea04106b
AX
3620rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3621ac_clean_files=$ac_clean_files_save
cae5b340
AX
3622# Check that the compiler produces executables we can run. If not, either
3623# the compiler is broken, or we cross compile.
3624{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3625$as_echo_n "checking whether we are cross compiling... " >&6; }
3626{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3627$as_echo "$cross_compiling" >&6; }
3628
3629{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
ea04106b 3630$as_echo_n "checking for suffix of executables... " >&6; }
cae5b340 3631if { (ac_try="$ac_link"
ea04106b
AX
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
cae5b340
AX
3636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637$as_echo "$ac_try_echo") >&5
ea04106b
AX
3638 (eval "$ac_link") 2>&5
3639 ac_status=$?
cae5b340
AX
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
ea04106b
AX
3642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644# work properly (i.e., refer to `conftest.exe'), while it won't with
3645# `rm'.
3646for ac_file in conftest.exe conftest conftest.*; do
3647 test -f "$ac_file" || continue
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 break;;
3652 * ) break;;
3653 esac
3654done
3655else
cae5b340 3656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3658{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3659See \`config.log' for more details." >&5
3660$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3661See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }; }
ea04106b 3663fi
cae5b340
AX
3664
3665rm -f conftest$ac_cv_exeext
3666{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
ea04106b
AX
3667$as_echo "$ac_cv_exeext" >&6; }
3668
3669rm -f conftest.$ac_ext
3670EXEEXT=$ac_cv_exeext
3671ac_exeext=$EXEEXT
cae5b340 3672{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
ea04106b 3673$as_echo_n "checking for suffix of object files... " >&6; }
cae5b340 3674if test "${ac_cv_objext+set}" = set; then
ea04106b
AX
3675 $as_echo_n "(cached) " >&6
3676else
cae5b340
AX
3677 cat >conftest.$ac_ext <<_ACEOF
3678/* confdefs.h. */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692rm -f conftest.o conftest.obj
cae5b340 3693if { (ac_try="$ac_compile"
ea04106b
AX
3694case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697esac
cae5b340
AX
3698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699$as_echo "$ac_try_echo") >&5
ea04106b
AX
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
cae5b340
AX
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
ea04106b
AX
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 break;;
3710 esac
3711done
3712else
3713 $as_echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
cae5b340 3716{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3718{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3719See \`config.log' for more details." >&5
3720$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3721See \`config.log' for more details." >&2;}
3722 { (exit 1); exit 1; }; }; }
ea04106b 3723fi
cae5b340 3724
ea04106b
AX
3725rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726fi
cae5b340 3727{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
ea04106b
AX
3728$as_echo "$ac_cv_objext" >&6; }
3729OBJEXT=$ac_cv_objext
3730ac_objext=$OBJEXT
cae5b340 3731{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
ea04106b 3732$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cae5b340 3733if test "${ac_cv_c_compiler_gnu+set}" = set; then
ea04106b
AX
3734 $as_echo_n "(cached) " >&6
3735else
cae5b340
AX
3736 cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3741/* end confdefs.h. */
3742
3743int
3744main ()
3745{
3746#ifndef __GNUC__
3747 choke me
3748#endif
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
cae5b340
AX
3754rm -f conftest.$ac_objext
3755if { (ac_try="$ac_compile"
3756case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761$as_echo "$ac_try_echo") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
ea04106b
AX
3772 ac_compiler_gnu=yes
3773else
cae5b340
AX
3774 $as_echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_compiler_gnu=no
ea04106b 3778fi
cae5b340 3779
ea04106b
AX
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781ac_cv_c_compiler_gnu=$ac_compiler_gnu
3782
3783fi
cae5b340 3784{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
ea04106b
AX
3785$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786if test $ac_compiler_gnu = yes; then
3787 GCC=yes
3788else
3789 GCC=
3790fi
3791ac_test_CFLAGS=${CFLAGS+set}
3792ac_save_CFLAGS=$CFLAGS
cae5b340 3793{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
ea04106b 3794$as_echo_n "checking whether $CC accepts -g... " >&6; }
cae5b340 3795if test "${ac_cv_prog_cc_g+set}" = set; then
ea04106b
AX
3796 $as_echo_n "(cached) " >&6
3797else
3798 ac_save_c_werror_flag=$ac_c_werror_flag
3799 ac_c_werror_flag=yes
3800 ac_cv_prog_cc_g=no
3801 CFLAGS="-g"
cae5b340
AX
3802 cat >conftest.$ac_ext <<_ACEOF
3803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3807/* end confdefs.h. */
3808
3809int
3810main ()
3811{
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
cae5b340
AX
3817rm -f conftest.$ac_objext
3818if { (ac_try="$ac_compile"
3819case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824$as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
ea04106b
AX
3835 ac_cv_prog_cc_g=yes
3836else
cae5b340
AX
3837 $as_echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 CFLAGS=""
3841 cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h. */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
cae5b340
AX
3856rm -f conftest.$ac_objext
3857if { (ac_try="$ac_compile"
3858case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863$as_echo "$ac_try_echo") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3874 :
ea04106b 3875else
cae5b340
AX
3876 $as_echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 ac_c_werror_flag=$ac_save_c_werror_flag
ea04106b 3880 CFLAGS="-g"
cae5b340
AX
3881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3886/* end confdefs.h. */
3887
3888int
3889main ()
3890{
3891
3892 ;
3893 return 0;
3894}
3895_ACEOF
cae5b340
AX
3896rm -f conftest.$ac_objext
3897if { (ac_try="$ac_compile"
3898case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901esac
3902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903$as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
ea04106b 3914 ac_cv_prog_cc_g=yes
cae5b340
AX
3915else
3916 $as_echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919
ea04106b 3920fi
cae5b340 3921
ea04106b
AX
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
cae5b340 3924
ea04106b
AX
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
cae5b340 3927
ea04106b
AX
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3930fi
cae5b340 3931{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
ea04106b
AX
3932$as_echo "$ac_cv_prog_cc_g" >&6; }
3933if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3937 CFLAGS="-g -O2"
3938 else
3939 CFLAGS="-g"
3940 fi
3941else
3942 if test "$GCC" = yes; then
3943 CFLAGS="-O2"
3944 else
3945 CFLAGS=
3946 fi
3947fi
cae5b340 3948{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
ea04106b 3949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cae5b340 3950if test "${ac_cv_prog_cc_c89+set}" = set; then
ea04106b
AX
3951 $as_echo_n "(cached) " >&6
3952else
3953 ac_cv_prog_cc_c89=no
3954ac_save_CC=$CC
cae5b340
AX
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3960/* end confdefs.h. */
3961#include <stdarg.h>
3962#include <stdio.h>
cae5b340
AX
3963#include <sys/types.h>
3964#include <sys/stat.h>
ea04106b
AX
3965/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966struct buf { int x; };
3967FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968static char *e (p, i)
3969 char **p;
3970 int i;
3971{
3972 return p[i];
3973}
3974static char *f (char * (*g) (char **, int), char **p, ...)
3975{
3976 char *s;
3977 va_list v;
3978 va_start (v,p);
3979 s = g (p, va_arg (v,int));
3980 va_end (v);
3981 return s;
3982}
3983
3984/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3985 function prototypes and stuff, but not '\xHH' hex character constants.
3986 These don't provoke an error unfortunately, instead are silently treated
3987 as 'x'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3989 array size at least. It's necessary to write '\x00'==0 to get something
3990 that's true only with -std. */
3991int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992
3993/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3995#define FOO(x) 'x'
3996int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997
3998int test (int i, double x);
3999struct s1 {int (*f) (int a);};
4000struct s2 {int (*f) (double a);};
4001int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002int argc;
4003char **argv;
4004int
4005main ()
4006{
4007return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014do
4015 CC="$ac_save_CC $ac_arg"
cae5b340
AX
4016 rm -f conftest.$ac_objext
4017if { (ac_try="$ac_compile"
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023$as_echo "$ac_try_echo") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
ea04106b 4034 ac_cv_prog_cc_c89=$ac_arg
cae5b340
AX
4035else
4036 $as_echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
ea04106b 4040fi
cae5b340 4041
ea04106b
AX
4042rm -f core conftest.err conftest.$ac_objext
4043 test "x$ac_cv_prog_cc_c89" != "xno" && break
4044done
4045rm -f conftest.$ac_ext
4046CC=$ac_save_CC
4047
4048fi
4049# AC_CACHE_VAL
4050case "x$ac_cv_prog_cc_c89" in
4051 x)
cae5b340 4052 { $as_echo "$as_me:$LINENO: result: none needed" >&5
ea04106b
AX
4053$as_echo "none needed" >&6; } ;;
4054 xno)
cae5b340 4055 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
ea04106b
AX
4056$as_echo "unsupported" >&6; } ;;
4057 *)
4058 CC="$CC $ac_cv_prog_cc_c89"
cae5b340 4059 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
ea04106b
AX
4060$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4061esac
68d83c55 4062
68d83c55 4063
68d83c55
AX
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea04106b
AX
4069DEPDIR="${am__leading_dot}deps"
4070
4071ac_config_commands="$ac_config_commands depfiles"
4072
4073
4074am_make=${MAKE-make}
4075cat > confinc << 'END'
4076am__doit:
4077 @echo this is the am__doit target
4078.PHONY: am__doit
4079END
4080# If we don't find an include directive, just comment out the code.
cae5b340 4081{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
ea04106b
AX
4082$as_echo_n "checking for style of include used by $am_make... " >&6; }
4083am__include="#"
4084am__quote=
4085_am_result=none
4086# First try GNU make style include.
4087echo "include confinc" > confmf
cae5b340 4088# Ignore all kinds of additional output from `make'.
ea04106b
AX
4089case `$am_make -s -f confmf 2> /dev/null` in #(
4090*the\ am__doit\ target*)
4091 am__include=include
4092 am__quote=
4093 _am_result=GNU
4094 ;;
4095esac
4096# Now try BSD make style include.
4097if test "$am__include" = "#"; then
4098 echo '.include "confinc"' > confmf
4099 case `$am_make -s -f confmf 2> /dev/null` in #(
4100 *the\ am__doit\ target*)
4101 am__include=.include
4102 am__quote="\""
4103 _am_result=BSD
4104 ;;
4105 esac
4106fi
4107
4108
cae5b340 4109{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
ea04106b
AX
4110$as_echo "$_am_result" >&6; }
4111rm -f confinc confmf
4112
4113# Check whether --enable-dependency-tracking was given.
cae5b340 4114if test "${enable_dependency_tracking+set}" = set; then
ea04106b
AX
4115 enableval=$enable_dependency_tracking;
4116fi
4117
4118if test "x$enable_dependency_tracking" != xno; then
4119 am_depcomp="$ac_aux_dir/depcomp"
4120 AMDEPBACKSLASH='\'
ea04106b
AX
4121fi
4122 if test "x$enable_dependency_tracking" != xno; then
4123 AMDEP_TRUE=
4124 AMDEP_FALSE='#'
4125else
4126 AMDEP_TRUE='#'
4127 AMDEP_FALSE=
4128fi
4129
4130
4131
4132depcc="$CC" am_compiler_list=
4133
cae5b340 4134{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
ea04106b 4135$as_echo_n "checking dependency style of $depcc... " >&6; }
cae5b340 4136if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
ea04106b
AX
4137 $as_echo_n "(cached) " >&6
4138else
4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140 # We make a subdir and do the tests there. Otherwise we can end up
4141 # making bogus files that we don't know about and never remove. For
4142 # instance it was reported that on HP-UX the gcc test will end up
cae5b340
AX
4143 # making a dummy file named `D' -- because `-MD' means `put the output
4144 # in D'.
ea04106b
AX
4145 mkdir conftest.dir
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4149 cd conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4155 # directory.
4156 mkdir sub
4157
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161 fi
4162 am__universal=false
4163 case " $depcc " in #(
4164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4165 esac
4166
4167 for depmode in $am_compiler_list; do
4168 # Setup a source with many dependencies, because some compilers
4169 # like to wrap large dependency lists on column 80 (with \), and
4170 # we should not choose a depcomp mode which is confused by this.
4171 #
4172 # We need to recreate these files for each test, as the compiler may
4173 # overwrite some of them when testing with obscure command lines.
4174 # This happens at least with the AIX C compiler.
4175 : > sub/conftest.c
4176 for i in 1 2 3 4 5 6; do
4177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cae5b340
AX
4178 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4179 # Solaris 8's {/usr,}/bin/sh.
4180 touch sub/conftst$i.h
ea04106b
AX
4181 done
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4183
cae5b340 4184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
ea04106b 4185 # mode. It turns out that the SunPro C++ compiler does not properly
cae5b340
AX
4186 # handle `-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs
ea04106b
AX
4188 am__obj=sub/conftest.${OBJEXT-o}
4189 am__minus_obj="-o $am__obj"
4190 case $depmode in
4191 gcc)
4192 # This depmode causes a compiler race in universal mode.
4193 test "$am__universal" = false || continue
4194 ;;
4195 nosideeffect)
cae5b340
AX
4196 # after this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested
ea04106b
AX
4198 if test "x$enable_dependency_tracking" = xyes; then
4199 continue
4200 else
4201 break
4202 fi
4203 ;;
cae5b340
AX
4204 msvisualcpp | msvcmsys)
4205 # This compiler won't grok `-c -o', but also, the minuso test has
ea04106b
AX
4206 # not run yet. These depmodes are late enough in the game, and
4207 # so weak that their functioning should not be impacted.
4208 am__obj=conftest.${OBJEXT-o}
4209 am__minus_obj=
4210 ;;
4211 none) break ;;
4212 esac
4213 if depmode=$depmode \
4214 source=sub/conftest.c object=$am__obj \
4215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4217 >/dev/null 2>conftest.err &&
4218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222 # icc doesn't choke on unknown options, it will just issue warnings
4223 # or remarks (even with -Werror). So we grep stderr for any message
4224 # that says an option was ignored or not supported.
4225 # When given -MP, icc 7.0 and 7.1 complain thusly:
4226 # icc: Command line warning: ignoring option '-M'; no argument required
4227 # The diagnosis changed in icc 8.0:
4228 # icc: Command line remark: option '-MP' not supported
4229 if (grep 'ignoring option' conftest.err ||
4230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231 am_cv_CC_dependencies_compiler_type=$depmode
4232 break
4233 fi
4234 fi
4235 done
4236
4237 cd ..
4238 rm -rf conftest.dir
4239else
4240 am_cv_CC_dependencies_compiler_type=none
4241fi
4242
4243fi
cae5b340 4244{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
ea04106b
AX
4245$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247
4248 if
4249 test "x$enable_dependency_tracking" != xno \
4250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4251 am__fastdepCC_TRUE=
4252 am__fastdepCC_FALSE='#'
4253else
4254 am__fastdepCC_TRUE='#'
4255 am__fastdepCC_FALSE=
4256fi
4257
4258
4259case `pwd` in
4260 *\ * | *\ *)
cae5b340 4261 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
ea04106b
AX
4262$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4263esac
4264
4265
4266
cae5b340
AX
4267macro_version='2.2.6b'
4268macro_revision='1.3017'
ea04106b
AX
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
cae5b340 4282ltmain="$ac_aux_dir/ltmain.sh"
ea04106b 4283
cae5b340 4284{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
ea04106b 4285$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cae5b340 4286if test "${ac_cv_path_SED+set}" = set; then
ea04106b
AX
4287 $as_echo_n "(cached) " >&6
4288else
4289 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4290 for ac_i in 1 2 3 4 5 6 7; do
4291 ac_script="$ac_script$as_nl$ac_script"
4292 done
4293 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cae5b340 4294 $as_unset ac_script || ac_script=
ea04106b
AX
4295 if test -z "$SED"; then
4296 ac_path_SED_found=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
cae5b340 4303 for ac_prog in sed gsed; do
ea04106b
AX
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4306 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
ea04106b
AX
4307# Check for GNU ac_path_SED and select it if it is found.
4308 # Check for GNU $ac_path_SED
4309case `"$ac_path_SED" --version 2>&1` in
4310*GNU*)
4311 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4312*)
4313 ac_count=0
4314 $as_echo_n 0123456789 >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo '' >> "conftest.nl"
4321 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4323 ac_count=`expr $ac_count + 1`
ea04106b
AX
4324 if test $ac_count -gt ${ac_path_SED_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_SED="$ac_path_SED"
4327 ac_path_SED_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333esac
4334
4335 $ac_path_SED_found && break 3
4336 done
4337 done
cae5b340 4338done
ea04106b
AX
4339IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_SED"; then
cae5b340
AX
4341 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4342$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4343 { (exit 1); exit 1; }; }
ea04106b
AX
4344 fi
4345else
4346 ac_cv_path_SED=$SED
4347fi
4348
4349fi
cae5b340 4350{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
ea04106b
AX
4351$as_echo "$ac_cv_path_SED" >&6; }
4352 SED="$ac_cv_path_SED"
4353 rm -f conftest.sed
4354
4355test -z "$SED" && SED=sed
4356Xsed="$SED -e 1s/^X//"
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
cae5b340 4368{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
ea04106b 4369$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cae5b340 4370if test "${ac_cv_path_GREP+set}" = set; then
ea04106b
AX
4371 $as_echo_n "(cached) " >&6
4372else
4373 if test -z "$GREP"; then
4374 ac_path_GREP_found=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
cae5b340 4381 for ac_prog in grep ggrep; do
ea04106b
AX
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
ea04106b
AX
4385# Check for GNU ac_path_GREP and select it if it is found.
4386 # Check for GNU $ac_path_GREP
4387case `"$ac_path_GREP" --version 2>&1` in
4388*GNU*)
4389 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4390*)
4391 ac_count=0
4392 $as_echo_n 0123456789 >"conftest.in"
4393 while :
4394 do
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'GREP' >> "conftest.nl"
4399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4401 ac_count=`expr $ac_count + 1`
ea04106b
AX
4402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_GREP="$ac_path_GREP"
4405 ac_path_GREP_max=$ac_count
4406 fi
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4409 done
4410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411esac
4412
4413 $ac_path_GREP_found && break 3
4414 done
4415 done
cae5b340 4416done
ea04106b
AX
4417IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_GREP"; then
cae5b340
AX
4419 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
ea04106b
AX
4422 fi
4423else
4424 ac_cv_path_GREP=$GREP
4425fi
4426
4427fi
cae5b340 4428{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
ea04106b
AX
4429$as_echo "$ac_cv_path_GREP" >&6; }
4430 GREP="$ac_cv_path_GREP"
4431
4432
cae5b340 4433{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
ea04106b 4434$as_echo_n "checking for egrep... " >&6; }
cae5b340 4435if test "${ac_cv_path_EGREP+set}" = set; then
ea04106b
AX
4436 $as_echo_n "(cached) " >&6
4437else
4438 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4439 then ac_cv_path_EGREP="$GREP -E"
4440 else
4441 if test -z "$EGREP"; then
4442 ac_path_EGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
cae5b340 4449 for ac_prog in egrep; do
ea04106b
AX
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
ea04106b
AX
4453# Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455case `"$ac_path_EGREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4458*)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'EGREP' >> "conftest.nl"
4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4469 ac_count=`expr $ac_count + 1`
ea04106b
AX
4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_EGREP="$ac_path_EGREP"
4473 ac_path_EGREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481 $ac_path_EGREP_found && break 3
4482 done
4483 done
cae5b340 4484done
ea04106b
AX
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_EGREP"; then
cae5b340
AX
4487 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4488$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4489 { (exit 1); exit 1; }; }
ea04106b
AX
4490 fi
4491else
4492 ac_cv_path_EGREP=$EGREP
4493fi
4494
4495 fi
4496fi
cae5b340 4497{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
ea04106b
AX
4498$as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4500
4501
cae5b340 4502{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
ea04106b 4503$as_echo_n "checking for fgrep... " >&6; }
cae5b340 4504if test "${ac_cv_path_FGREP+set}" = set; then
ea04106b
AX
4505 $as_echo_n "(cached) " >&6
4506else
4507 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4508 then ac_cv_path_FGREP="$GREP -F"
4509 else
4510 if test -z "$FGREP"; then
4511 ac_path_FGREP_found=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
cae5b340 4518 for ac_prog in fgrep; do
ea04106b
AX
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4521 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
ea04106b
AX
4522# Check for GNU ac_path_FGREP and select it if it is found.
4523 # Check for GNU $ac_path_FGREP
4524case `"$ac_path_FGREP" --version 2>&1` in
4525*GNU*)
4526 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4527*)
4528 ac_count=0
4529 $as_echo_n 0123456789 >"conftest.in"
4530 while :
4531 do
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'FGREP' >> "conftest.nl"
4536 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cae5b340 4538 ac_count=`expr $ac_count + 1`
ea04106b
AX
4539 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_FGREP="$ac_path_FGREP"
4542 ac_path_FGREP_max=$ac_count
4543 fi
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4546 done
4547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548esac
4549
4550 $ac_path_FGREP_found && break 3
4551 done
4552 done
cae5b340 4553done
ea04106b
AX
4554IFS=$as_save_IFS
4555 if test -z "$ac_cv_path_FGREP"; then
cae5b340
AX
4556 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4557$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4558 { (exit 1); exit 1; }; }
ea04106b
AX
4559 fi
4560else
4561 ac_cv_path_FGREP=$FGREP
4562fi
4563
4564 fi
4565fi
cae5b340 4566{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
ea04106b
AX
4567$as_echo "$ac_cv_path_FGREP" >&6; }
4568 FGREP="$ac_cv_path_FGREP"
4569
4570
4571test -z "$GREP" && GREP=grep
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591# Check whether --with-gnu-ld was given.
cae5b340
AX
4592if test "${with_gnu_ld+set}" = set; then
4593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
ea04106b
AX
4594else
4595 with_gnu_ld=no
4596fi
4597
4598ac_prog=ld
cae5b340 4599if test "$GCC" = yes; then
ea04106b 4600 # Check if gcc -print-prog-name=ld gives a path.
cae5b340 4601 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
ea04106b
AX
4602$as_echo_n "checking for ld used by $CC... " >&6; }
4603 case $host in
4604 *-*-mingw*)
cae5b340 4605 # gcc leaves a trailing carriage return which upsets mingw
ea04106b
AX
4606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4607 *)
4608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4609 esac
4610 case $ac_prog in
4611 # Accept absolute paths.
4612 [\\/]* | ?:[\\/]*)
4613 re_direlt='/[^/][^/]*/\.\./'
4614 # Canonicalize the pathname of ld
4615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4618 done
cae5b340 4619 test -z "$LD" && LD="$ac_prog"
ea04106b
AX
4620 ;;
4621 "")
4622 # If it fails, then pretend we aren't using GCC.
4623 ac_prog=ld
4624 ;;
4625 *)
4626 # If it is relative, then search for the first ld in PATH.
4627 with_gnu_ld=unknown
4628 ;;
4629 esac
cae5b340
AX
4630elif test "$with_gnu_ld" = yes; then
4631 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
ea04106b
AX
4632$as_echo_n "checking for GNU ld... " >&6; }
4633else
cae5b340 4634 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
ea04106b
AX
4635$as_echo_n "checking for non-GNU ld... " >&6; }
4636fi
cae5b340 4637if test "${lt_cv_path_LD+set}" = set; then
ea04106b
AX
4638 $as_echo_n "(cached) " >&6
4639else
4640 if test -z "$LD"; then
cae5b340 4641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b 4642 for ac_dir in $PATH; do
cae5b340 4643 IFS="$lt_save_ifs"
ea04106b
AX
4644 test -z "$ac_dir" && ac_dir=.
4645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cae5b340 4646 lt_cv_path_LD="$ac_dir/$ac_prog"
ea04106b
AX
4647 # Check to see if the program is GNU ld. I'd rather use --version,
4648 # but apparently some variants of GNU ld only accept -v.
4649 # Break only if it was the GNU/non-GNU ld that we prefer.
4650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4651 *GNU* | *'with BFD'*)
cae5b340 4652 test "$with_gnu_ld" != no && break
ea04106b
AX
4653 ;;
4654 *)
cae5b340 4655 test "$with_gnu_ld" != yes && break
ea04106b
AX
4656 ;;
4657 esac
4658 fi
4659 done
cae5b340 4660 IFS="$lt_save_ifs"
ea04106b 4661else
cae5b340 4662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ea04106b
AX
4663fi
4664fi
4665
cae5b340 4666LD="$lt_cv_path_LD"
ea04106b 4667if test -n "$LD"; then
cae5b340 4668 { $as_echo "$as_me:$LINENO: result: $LD" >&5
ea04106b
AX
4669$as_echo "$LD" >&6; }
4670else
cae5b340 4671 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4672$as_echo "no" >&6; }
4673fi
cae5b340
AX
4674test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4675$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4676 { (exit 1); exit 1; }; }
4677{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
ea04106b 4678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cae5b340 4679if test "${lt_cv_prog_gnu_ld+set}" = set; then
ea04106b
AX
4680 $as_echo_n "(cached) " >&6
4681else
4682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683case `$LD -v 2>&1 </dev/null` in
4684*GNU* | *'with BFD'*)
4685 lt_cv_prog_gnu_ld=yes
4686 ;;
4687*)
4688 lt_cv_prog_gnu_ld=no
4689 ;;
4690esac
4691fi
cae5b340 4692{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
ea04106b
AX
4693$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4694with_gnu_ld=$lt_cv_prog_gnu_ld
4695
4696
4697
4698
4699
4700
4701
4702
4703
cae5b340 4704{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
ea04106b 4705$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cae5b340 4706if test "${lt_cv_path_NM+set}" = set; then
ea04106b
AX
4707 $as_echo_n "(cached) " >&6
4708else
4709 if test -n "$NM"; then
4710 # Let the user override the test.
cae5b340 4711 lt_cv_path_NM="$NM"
ea04106b 4712else
cae5b340 4713 lt_nm_to_check="${ac_tool_prefix}nm"
ea04106b
AX
4714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4715 lt_nm_to_check="$lt_nm_to_check nm"
4716 fi
4717 for lt_tmp_nm in $lt_nm_to_check; do
cae5b340 4718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b 4719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cae5b340 4720 IFS="$lt_save_ifs"
ea04106b 4721 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
4722 tmp_nm="$ac_dir/$lt_tmp_nm"
4723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
ea04106b 4724 # Check to see if the nm accepts a BSD-compat flag.
cae5b340 4725 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
ea04106b
AX
4726 # nm: unknown option "B" ignored
4727 # Tru64's nm complains that /dev/null is an invalid object file
cae5b340
AX
4728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4729 */dev/null* | *'Invalid file or object type'*)
ea04106b 4730 lt_cv_path_NM="$tmp_nm -B"
cae5b340 4731 break
ea04106b
AX
4732 ;;
4733 *)
4734 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4735 */dev/null*)
4736 lt_cv_path_NM="$tmp_nm -p"
cae5b340 4737 break
ea04106b
AX
4738 ;;
4739 *)
4740 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4741 continue # so that we can try to find one that supports BSD flags
4742 ;;
4743 esac
4744 ;;
4745 esac
4746 fi
4747 done
cae5b340 4748 IFS="$lt_save_ifs"
ea04106b
AX
4749 done
4750 : ${lt_cv_path_NM=no}
4751fi
4752fi
cae5b340 4753{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
ea04106b 4754$as_echo "$lt_cv_path_NM" >&6; }
cae5b340
AX
4755if test "$lt_cv_path_NM" != "no"; then
4756 NM="$lt_cv_path_NM"
ea04106b
AX
4757else
4758 # Didn't find any BSD compatible name lister, look for dumpbin.
cae5b340
AX
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
ea04106b
AX
4761 do
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cae5b340 4764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 4765$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 4766if test "${ac_cv_prog_DUMPBIN+set}" = set; then
ea04106b
AX
4767 $as_echo_n "(cached) " >&6
4768else
4769 if test -n "$DUMPBIN"; then
4770 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
cae5b340
AX
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 4779 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cae5b340 4780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
4781 break 2
4782 fi
4783done
cae5b340 4784done
ea04106b
AX
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789DUMPBIN=$ac_cv_prog_DUMPBIN
4790if test -n "$DUMPBIN"; then
cae5b340 4791 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
ea04106b
AX
4792$as_echo "$DUMPBIN" >&6; }
4793else
cae5b340 4794 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4795$as_echo "no" >&6; }
4796fi
4797
4798
4799 test -n "$DUMPBIN" && break
4800 done
4801fi
4802if test -z "$DUMPBIN"; then
4803 ac_ct_DUMPBIN=$DUMPBIN
cae5b340 4804 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
ea04106b
AX
4805do
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807set dummy $ac_prog; ac_word=$2
cae5b340 4808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 4809$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 4810if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
ea04106b
AX
4811 $as_echo_n "(cached) " >&6
4812else
4813 if test -n "$ac_ct_DUMPBIN"; then
4814 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
cae5b340
AX
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 4823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cae5b340 4824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
4825 break 2
4826 fi
4827done
cae5b340 4828done
ea04106b
AX
4829IFS=$as_save_IFS
4830
4831fi
4832fi
4833ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4834if test -n "$ac_ct_DUMPBIN"; then
cae5b340 4835 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
ea04106b
AX
4836$as_echo "$ac_ct_DUMPBIN" >&6; }
4837else
cae5b340 4838 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843 test -n "$ac_ct_DUMPBIN" && break
4844done
4845
4846 if test "x$ac_ct_DUMPBIN" = x; then
4847 DUMPBIN=":"
4848 else
4849 case $cross_compiling:$ac_tool_warned in
4850yes:)
cae5b340 4851{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
4852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4853ac_tool_warned=yes ;;
4854esac
4855 DUMPBIN=$ac_ct_DUMPBIN
4856 fi
4857fi
4858
ea04106b 4859
cae5b340
AX
4860 if test "$DUMPBIN" != ":"; then
4861 NM="$DUMPBIN"
ea04106b
AX
4862 fi
4863fi
4864test -z "$NM" && NM=nm
4865
4866
4867
4868
4869
4870
cae5b340 4871{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
ea04106b 4872$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cae5b340 4873if test "${lt_cv_nm_interface+set}" = set; then
ea04106b
AX
4874 $as_echo_n "(cached) " >&6
4875else
4876 lt_cv_nm_interface="BSD nm"
4877 echo "int some_variable = 0;" > conftest.$ac_ext
42f7b73b 4878 (eval echo "\"\$as_me:4878: $ac_compile\"" >&5)
ea04106b
AX
4879 (eval "$ac_compile" 2>conftest.err)
4880 cat conftest.err >&5
42f7b73b 4881 (eval echo "\"\$as_me:4881: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ea04106b
AX
4882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4883 cat conftest.err >&5
42f7b73b 4884 (eval echo "\"\$as_me:4884: output\"" >&5)
ea04106b
AX
4885 cat conftest.out >&5
4886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4887 lt_cv_nm_interface="MS dumpbin"
4888 fi
4889 rm -f conftest*
4890fi
cae5b340 4891{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
ea04106b
AX
4892$as_echo "$lt_cv_nm_interface" >&6; }
4893
cae5b340 4894{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
ea04106b
AX
4895$as_echo_n "checking whether ln -s works... " >&6; }
4896LN_S=$as_ln_s
4897if test "$LN_S" = "ln -s"; then
cae5b340 4898 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
4899$as_echo "yes" >&6; }
4900else
cae5b340 4901 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
ea04106b
AX
4902$as_echo "no, using $LN_S" >&6; }
4903fi
4904
4905# find the maximum length of command line arguments
cae5b340 4906{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
ea04106b 4907$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cae5b340 4908if test "${lt_cv_sys_max_cmd_len+set}" = set; then
ea04106b
AX
4909 $as_echo_n "(cached) " >&6
4910else
4911 i=0
cae5b340 4912 teststring="ABCD"
ea04106b
AX
4913
4914 case $build_os in
4915 msdosdjgpp*)
4916 # On DJGPP, this test can blow up pretty badly due to problems in libc
4917 # (any single argument exceeding 2000 bytes causes a buffer overrun
4918 # during glob expansion). Even if it were fixed, the result of this
4919 # check would be larger than it should be.
4920 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4921 ;;
4922
4923 gnu*)
4924 # Under GNU Hurd, this test is not required because there is
4925 # no limit to the length of command line arguments.
4926 # Libtool will interpret -1 as no limit whatsoever
4927 lt_cv_sys_max_cmd_len=-1;
4928 ;;
4929
4930 cygwin* | mingw* | cegcc*)
4931 # On Win9x/ME, this test blows up -- it succeeds, but takes
4932 # about 5 minutes as the teststring grows exponentially.
4933 # Worse, since 9x/ME are not pre-emptively multitasking,
4934 # you end up with a "frozen" computer, even though with patience
4935 # the test eventually succeeds (with a max line length of 256k).
4936 # Instead, let's just punt: use the minimum linelength reported by
4937 # all of the supported platforms: 8192 (on NT/2K/XP).
4938 lt_cv_sys_max_cmd_len=8192;
4939 ;;
4940
ea04106b
AX
4941 amigaos*)
4942 # On AmigaOS with pdksh, this test takes hours, literally.
4943 # So we just punt and use a minimum line length of 8192.
4944 lt_cv_sys_max_cmd_len=8192;
4945 ;;
4946
cae5b340 4947 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
ea04106b
AX
4948 # This has been around since 386BSD, at least. Likely further.
4949 if test -x /sbin/sysctl; then
4950 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4951 elif test -x /usr/sbin/sysctl; then
4952 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4953 else
4954 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4955 fi
4956 # And add a safety zone
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 ;;
4960
4961 interix*)
4962 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4963 lt_cv_sys_max_cmd_len=196608
4964 ;;
4965
ea04106b
AX
4966 osf*)
4967 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4968 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4969 # nice to cause kernel panics so lets avoid the loop below.
4970 # First set a reasonable default.
4971 lt_cv_sys_max_cmd_len=16384
4972 #
4973 if test -x /sbin/sysconfig; then
4974 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4975 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4976 esac
4977 fi
4978 ;;
4979 sco3.2v5*)
4980 lt_cv_sys_max_cmd_len=102400
4981 ;;
4982 sysv5* | sco5v6* | sysv4.2uw2*)
4983 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4984 if test -n "$kargmax"; then
4985 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4986 else
4987 lt_cv_sys_max_cmd_len=32768
4988 fi
4989 ;;
4990 *)
4991 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
cae5b340 4992 if test -n "$lt_cv_sys_max_cmd_len"; then
ea04106b
AX
4993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4995 else
4996 # Make teststring a little bigger before we do anything with it.
4997 # a 1K string should be a reasonable start.
cae5b340 4998 for i in 1 2 3 4 5 6 7 8 ; do
ea04106b
AX
4999 teststring=$teststring$teststring
5000 done
5001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5002 # If test is not a shell built-in, we'll probably end up computing a
5003 # maximum length that is only half of the actual maximum length, but
5004 # we can't tell.
cae5b340
AX
5005 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5006 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5007 test $i != 17 # 1/2 MB should be enough
ea04106b
AX
5008 do
5009 i=`expr $i + 1`
5010 teststring=$teststring$teststring
5011 done
5012 # Only check the string length outside the loop.
5013 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5014 teststring=
5015 # Add a significant safety factor because C++ compilers can tack on
5016 # massive amounts of additional arguments before passing them to the
5017 # linker. It appears as though 1/2 is a usable value.
5018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5019 fi
5020 ;;
5021 esac
5022
5023fi
5024
cae5b340
AX
5025if test -n $lt_cv_sys_max_cmd_len ; then
5026 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
ea04106b
AX
5027$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5028else
cae5b340 5029 { $as_echo "$as_me:$LINENO: result: none" >&5
ea04106b
AX
5030$as_echo "none" >&6; }
5031fi
5032max_cmd_len=$lt_cv_sys_max_cmd_len
5033
5034
5035
5036
5037
5038
5039: ${CP="cp -f"}
5040: ${MV="mv -f"}
5041: ${RM="rm -f"}
5042
cae5b340
AX
5043{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5044$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5045# Try some XSI features
5046xsi_shell=no
5047( _lt_dummy="a/b/c"
5048 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5049 = c,a/b,, \
5050 && eval 'test $(( 1 + 1 )) -eq 2 \
5051 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5052 && xsi_shell=yes
5053{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5054$as_echo "$xsi_shell" >&6; }
5055
5056
5057{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5058$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5059lt_shell_append=no
5060( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5061 >/dev/null 2>&1 \
5062 && lt_shell_append=yes
5063{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5064$as_echo "$lt_shell_append" >&6; }
5065
5066
ea04106b
AX
5067if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5068 lt_unset=unset
5069else
5070 lt_unset=false
5071fi
5072
5073
5074
5075
5076
5077# test EBCDIC or ASCII
5078case `echo X|tr X '\101'` in
5079 A) # ASCII based system
5080 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5081 lt_SP2NL='tr \040 \012'
5082 lt_NL2SP='tr \015\012 \040\040'
5083 ;;
5084 *) # EBCDIC based system
5085 lt_SP2NL='tr \100 \n'
5086 lt_NL2SP='tr \r\n \100\100'
5087 ;;
5088esac
5089
5090
5091
5092
5093
5094
5095
5096
5097
cae5b340 5098{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
ea04106b 5099$as_echo_n "checking for $LD option to reload object files... " >&6; }
cae5b340 5100if test "${lt_cv_ld_reload_flag+set}" = set; then
ea04106b
AX
5101 $as_echo_n "(cached) " >&6
5102else
5103 lt_cv_ld_reload_flag='-r'
5104fi
cae5b340 5105{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
ea04106b
AX
5106$as_echo "$lt_cv_ld_reload_flag" >&6; }
5107reload_flag=$lt_cv_ld_reload_flag
5108case $reload_flag in
5109"" | " "*) ;;
5110*) reload_flag=" $reload_flag" ;;
5111esac
5112reload_cmds='$LD$reload_flag -o $output$reload_objs'
5113case $host_os in
ea04106b 5114 darwin*)
cae5b340
AX
5115 if test "$GCC" = yes; then
5116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
ea04106b
AX
5117 else
5118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 fi
5120 ;;
5121esac
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}objdump; ac_word=$2
cae5b340 5134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5135$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5136if test "${ac_cv_prog_OBJDUMP+set}" = set; then
ea04106b
AX
5137 $as_echo_n "(cached) " >&6
5138else
5139 if test -n "$OBJDUMP"; then
5140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
cae5b340
AX
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cae5b340 5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5151 break 2
5152 fi
5153done
cae5b340 5154done
ea04106b
AX
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159OBJDUMP=$ac_cv_prog_OBJDUMP
5160if test -n "$OBJDUMP"; then
cae5b340 5161 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
ea04106b
AX
5162$as_echo "$OBJDUMP" >&6; }
5163else
cae5b340 5164 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_prog_OBJDUMP"; then
5171 ac_ct_OBJDUMP=$OBJDUMP
5172 # Extract the first word of "objdump", so it can be a program name with args.
5173set dummy objdump; ac_word=$2
cae5b340 5174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5175$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5176if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
ea04106b
AX
5177 $as_echo_n "(cached) " >&6
5178else
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
cae5b340
AX
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5189 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cae5b340 5190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5191 break 2
5192 fi
5193done
cae5b340 5194done
ea04106b
AX
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5200if test -n "$ac_ct_OBJDUMP"; then
cae5b340 5201 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
ea04106b
AX
5202$as_echo "$ac_ct_OBJDUMP" >&6; }
5203else
cae5b340 5204 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5205$as_echo "no" >&6; }
5206fi
5207
5208 if test "x$ac_ct_OBJDUMP" = x; then
5209 OBJDUMP="false"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
cae5b340 5213{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217 OBJDUMP=$ac_ct_OBJDUMP
5218 fi
5219else
5220 OBJDUMP="$ac_cv_prog_OBJDUMP"
5221fi
5222
5223test -z "$OBJDUMP" && OBJDUMP=objdump
5224
5225
5226
5227
5228
5229
5230
5231
5232
cae5b340 5233{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
ea04106b 5234$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cae5b340 5235if test "${lt_cv_deplibs_check_method+set}" = set; then
ea04106b
AX
5236 $as_echo_n "(cached) " >&6
5237else
5238 lt_cv_file_magic_cmd='$MAGIC_CMD'
5239lt_cv_file_magic_test_file=
5240lt_cv_deplibs_check_method='unknown'
5241# Need to set the preceding variable on all platforms that support
5242# interlibrary dependencies.
5243# 'none' -- dependencies not supported.
cae5b340 5244# `unknown' -- same as none, but documents that we really don't know.
ea04106b
AX
5245# 'pass_all' -- all dependencies passed with no checks.
5246# 'test_compile' -- check by making test program.
5247# 'file_magic [[regex]]' -- check by looking for files in library path
cae5b340
AX
5248# which responds to the $file_magic_cmd with a given extended regex.
5249# If you have `file' or equivalent on your system and you're not sure
5250# whether `pass_all' will *always* work, you probably want this one.
ea04106b
AX
5251
5252case $host_os in
5253aix[4-9]*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257beos*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261bsdi[45]*)
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5263 lt_cv_file_magic_cmd='/usr/bin/file -L'
5264 lt_cv_file_magic_test_file=/shlib/libc.so
5265 ;;
5266
5267cygwin*)
5268 # func_win32_libid is a shell function defined in ltmain.sh
5269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5270 lt_cv_file_magic_cmd='func_win32_libid'
5271 ;;
5272
5273mingw* | pw32*)
5274 # Base MSYS/MinGW do not provide the 'file' command needed by
5275 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5276 # unless we find 'file', for example because we are cross-compiling.
68d83c55 5277 if ( file / ) >/dev/null 2>&1; then
ea04106b
AX
5278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5279 lt_cv_file_magic_cmd='func_win32_libid'
5280 else
cae5b340 5281 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ea04106b
AX
5282 lt_cv_file_magic_cmd='$OBJDUMP -f'
5283 fi
5284 ;;
5285
cae5b340 5286cegcc)
ea04106b
AX
5287 # use the weaker test based on 'objdump'. See mingw*.
5288 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5289 lt_cv_file_magic_cmd='$OBJDUMP -f'
5290 ;;
5291
5292darwin* | rhapsody*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296freebsd* | dragonfly*)
5297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5298 case $host_cpu in
5299 i*86 )
5300 # Not sure whether the presence of OpenBSD here was a mistake.
5301 # Let's accept both of them until this is cleared up.
5302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5305 ;;
5306 esac
5307 else
5308 lt_cv_deplibs_check_method=pass_all
5309 fi
5310 ;;
5311
cae5b340 5312gnu*)
ea04106b
AX
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316hpux10.20* | hpux11*)
5317 lt_cv_file_magic_cmd=/usr/bin/file
5318 case $host_cpu in
5319 ia64*)
5320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5322 ;;
5323 hppa*64*)
cae5b340 5324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
ea04106b
AX
5325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5326 ;;
5327 *)
cae5b340 5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
ea04106b
AX
5329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5330 ;;
5331 esac
5332 ;;
5333
5334interix[3-9]*)
5335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5337 ;;
5338
5339irix5* | irix6* | nonstopux*)
5340 case $LD in
5341 *-32|*"-32 ") libmagic=32-bit;;
5342 *-n32|*"-n32 ") libmagic=N32;;
5343 *-64|*"-64 ") libmagic=64-bit;;
5344 *) libmagic=never-match;;
5345 esac
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
cae5b340
AX
5349# This must be Linux ELF.
5350linux* | k*bsd*-gnu)
ea04106b
AX
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
22929307 5354netbsd*)
ea04106b
AX
5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5357 else
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5359 fi
5360 ;;
5361
5362newos6*)
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5364 lt_cv_file_magic_cmd=/usr/bin/file
5365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5366 ;;
5367
5368*nto* | *qnx*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371
cae5b340
AX
5372openbsd*)
5373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ea04106b
AX
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5375 else
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377 fi
5378 ;;
5379
5380osf3* | osf4* | osf5*)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383
5384rdos*)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388solaris*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395
5396sysv4 | sysv4.3*)
5397 case $host_vendor in
5398 motorola)
5399 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]'
5400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5401 ;;
5402 ncr)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405 sequent)
5406 lt_cv_file_magic_cmd='/bin/file'
5407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5408 ;;
5409 sni)
5410 lt_cv_file_magic_cmd='/bin/file'
5411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5412 lt_cv_file_magic_test_file=/lib/libc.so
5413 ;;
5414 siemens)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417 pc)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420 esac
5421 ;;
5422
5423tpf*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426esac
5427
5428fi
cae5b340 5429{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
ea04106b 5430$as_echo "$lt_cv_deplibs_check_method" >&6; }
ea04106b
AX
5431file_magic_cmd=$lt_cv_file_magic_cmd
5432deplibs_check_method=$lt_cv_deplibs_check_method
5433test -z "$deplibs_check_method" && deplibs_check_method=unknown
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
ea04106b
AX
5444
5445
5446if test -n "$ac_tool_prefix"; then
cae5b340
AX
5447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5448set dummy ${ac_tool_prefix}ar; ac_word=$2
5449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5450$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5451if test "${ac_cv_prog_AR+set}" = set; then
ea04106b
AX
5452 $as_echo_n "(cached) " >&6
5453else
5454 if test -n "$AR"; then
5455 ac_cv_prog_AR="$AR" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
cae5b340
AX
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_AR="${ac_tool_prefix}ar"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5466 break 2
5467 fi
5468done
cae5b340 5469done
ea04106b
AX
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474AR=$ac_cv_prog_AR
5475if test -n "$AR"; then
cae5b340 5476 { $as_echo "$as_me:$LINENO: result: $AR" >&5
ea04106b
AX
5477$as_echo "$AR" >&6; }
5478else
cae5b340 5479 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5480$as_echo "no" >&6; }
5481fi
5482
5483
ea04106b 5484fi
cae5b340 5485if test -z "$ac_cv_prog_AR"; then
ea04106b 5486 ac_ct_AR=$AR
cae5b340
AX
5487 # Extract the first word of "ar", so it can be a program name with args.
5488set dummy ar; ac_word=$2
5489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5490$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5491if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
ea04106b
AX
5492 $as_echo_n "(cached) " >&6
5493else
5494 if test -n "$ac_ct_AR"; then
5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
cae5b340
AX
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_AR="ar"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5506 break 2
5507 fi
5508done
cae5b340 5509done
ea04106b
AX
5510IFS=$as_save_IFS
5511
5512fi
5513fi
5514ac_ct_AR=$ac_cv_prog_ac_ct_AR
5515if test -n "$ac_ct_AR"; then
cae5b340 5516 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
ea04106b
AX
5517$as_echo "$ac_ct_AR" >&6; }
5518else
cae5b340 5519 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5520$as_echo "no" >&6; }
5521fi
5522
ea04106b
AX
5523 if test "x$ac_ct_AR" = x; then
5524 AR="false"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
cae5b340 5528{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 AR=$ac_ct_AR
5533 fi
ea04106b 5534else
cae5b340
AX
5535 AR="$ac_cv_prog_AR"
5536fi
ea04106b 5537
cae5b340
AX
5538test -z "$AR" && AR=ar
5539test -z "$AR_FLAGS" && AR_FLAGS=cru
ea04106b 5540
ea04106b 5541
ea04106b 5542
ea04106b 5543
ea04106b
AX
5544
5545
5546
5547
5548
5549
5550
5551if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5553set dummy ${ac_tool_prefix}strip; ac_word=$2
cae5b340 5554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5555$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5556if test "${ac_cv_prog_STRIP+set}" = set; then
ea04106b
AX
5557 $as_echo_n "(cached) " >&6
5558else
5559 if test -n "$STRIP"; then
5560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
cae5b340
AX
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cae5b340 5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5571 break 2
5572 fi
5573done
cae5b340 5574done
ea04106b
AX
5575IFS=$as_save_IFS
5576
5577fi
5578fi
5579STRIP=$ac_cv_prog_STRIP
5580if test -n "$STRIP"; then
cae5b340 5581 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
ea04106b
AX
5582$as_echo "$STRIP" >&6; }
5583else
cae5b340 5584 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5585$as_echo "no" >&6; }
5586fi
5587
5588
5589fi
5590if test -z "$ac_cv_prog_STRIP"; then
5591 ac_ct_STRIP=$STRIP
5592 # Extract the first word of "strip", so it can be a program name with args.
5593set dummy strip; ac_word=$2
cae5b340 5594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5595$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5596if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
ea04106b
AX
5597 $as_echo_n "(cached) " >&6
5598else
5599 if test -n "$ac_ct_STRIP"; then
5600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
cae5b340
AX
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5609 ac_cv_prog_ac_ct_STRIP="strip"
cae5b340 5610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5611 break 2
5612 fi
5613done
cae5b340 5614done
ea04106b
AX
5615IFS=$as_save_IFS
5616
5617fi
5618fi
5619ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5620if test -n "$ac_ct_STRIP"; then
cae5b340 5621 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
ea04106b
AX
5622$as_echo "$ac_ct_STRIP" >&6; }
5623else
cae5b340 5624 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5625$as_echo "no" >&6; }
5626fi
5627
5628 if test "x$ac_ct_STRIP" = x; then
5629 STRIP=":"
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632yes:)
cae5b340 5633{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635ac_tool_warned=yes ;;
5636esac
5637 STRIP=$ac_ct_STRIP
5638 fi
5639else
5640 STRIP="$ac_cv_prog_STRIP"
5641fi
5642
5643test -z "$STRIP" && STRIP=:
5644
5645
5646
5647
5648
5649
5650if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5652set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cae5b340 5653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5654$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5655if test "${ac_cv_prog_RANLIB+set}" = set; then
ea04106b
AX
5656 $as_echo_n "(cached) " >&6
5657else
5658 if test -n "$RANLIB"; then
5659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
cae5b340
AX
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cae5b340 5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5670 break 2
5671 fi
5672done
cae5b340 5673done
ea04106b
AX
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678RANLIB=$ac_cv_prog_RANLIB
5679if test -n "$RANLIB"; then
cae5b340 5680 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
ea04106b
AX
5681$as_echo "$RANLIB" >&6; }
5682else
cae5b340 5683 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5684$as_echo "no" >&6; }
5685fi
5686
5687
5688fi
5689if test -z "$ac_cv_prog_RANLIB"; then
5690 ac_ct_RANLIB=$RANLIB
5691 # Extract the first word of "ranlib", so it can be a program name with args.
5692set dummy ranlib; ac_word=$2
cae5b340 5693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5694$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5695if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ea04106b
AX
5696 $as_echo_n "(cached) " >&6
5697else
5698 if test -n "$ac_ct_RANLIB"; then
5699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5700else
5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
cae5b340
AX
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 5708 ac_cv_prog_ac_ct_RANLIB="ranlib"
cae5b340 5709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5710 break 2
5711 fi
5712done
cae5b340 5713done
ea04106b
AX
5714IFS=$as_save_IFS
5715
5716fi
5717fi
5718ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5719if test -n "$ac_ct_RANLIB"; then
cae5b340 5720 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
ea04106b
AX
5721$as_echo "$ac_ct_RANLIB" >&6; }
5722else
cae5b340 5723 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5724$as_echo "no" >&6; }
5725fi
5726
5727 if test "x$ac_ct_RANLIB" = x; then
5728 RANLIB=":"
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731yes:)
cae5b340 5732{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734ac_tool_warned=yes ;;
5735esac
5736 RANLIB=$ac_ct_RANLIB
5737 fi
5738else
5739 RANLIB="$ac_cv_prog_RANLIB"
5740fi
5741
5742test -z "$RANLIB" && RANLIB=:
5743
5744
5745
5746
5747
5748
5749# Determine commands to create old-style static archives.
5750old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5751old_postinstall_cmds='chmod 644 $oldlib'
5752old_postuninstall_cmds=
5753
5754if test -n "$RANLIB"; then
5755 case $host_os in
cae5b340
AX
5756 openbsd*)
5757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
ea04106b
AX
5758 ;;
5759 *)
cae5b340 5760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
ea04106b
AX
5761 ;;
5762 esac
cae5b340 5763 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ea04106b
AX
5764fi
5765
ea04106b
AX
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799# If no C compiler was specified, use CC.
5800LTCC=${LTCC-"$CC"}
5801
5802# If no C compiler flags were specified, use CFLAGS.
5803LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5804
5805# Allow CC to be a program name with arguments.
5806compiler=$CC
5807
5808
5809# Check for command to grab the raw symbol name followed by C symbol from nm.
cae5b340 5810{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
ea04106b 5811$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cae5b340 5812if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
ea04106b
AX
5813 $as_echo_n "(cached) " >&6
5814else
5815
5816# These are sane defaults that work on at least a few old systems.
5817# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5818
5819# Character class describing NM global symbol codes.
5820symcode='[BCDEGRST]'
5821
5822# Regexp to match symbols that can be accessed directly from C.
5823sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5824
5825# Define system-specific variables.
5826case $host_os in
5827aix*)
5828 symcode='[BCDT]'
5829 ;;
5830cygwin* | mingw* | pw32* | cegcc*)
5831 symcode='[ABCDGISTW]'
5832 ;;
5833hpux*)
cae5b340 5834 if test "$host_cpu" = ia64; then
ea04106b
AX
5835 symcode='[ABCDEGRST]'
5836 fi
5837 ;;
5838irix* | nonstopux*)
5839 symcode='[BCDEGRST]'
5840 ;;
5841osf*)
5842 symcode='[BCDEGQRST]'
5843 ;;
5844solaris*)
5845 symcode='[BDRT]'
5846 ;;
5847sco3.2v5*)
5848 symcode='[DT]'
5849 ;;
5850sysv4.2uw2*)
5851 symcode='[DT]'
5852 ;;
5853sysv5* | sco5v6* | unixware* | OpenUNIX*)
5854 symcode='[ABDT]'
5855 ;;
5856sysv4)
5857 symcode='[DFNSTU]'
5858 ;;
5859esac
5860
5861# If we're using GNU nm, then use its standard symbol codes.
5862case `$NM -V 2>&1` in
5863*GNU* | *'with BFD'*)
5864 symcode='[ABCDGIRSTW]' ;;
5865esac
5866
5867# Transform an extracted symbol line into a proper C declaration.
5868# Some systems (esp. on ia64) link data and code symbols differently,
5869# so use this general approach.
cae5b340 5870lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
ea04106b
AX
5871
5872# Transform an extracted symbol line into symbol name and symbol address
cae5b340
AX
5873lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5874lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
ea04106b
AX
5875
5876# Handle CRLF in mingw tool chain
5877opt_cr=
5878case $build_os in
5879mingw*)
5880 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5881 ;;
5882esac
5883
5884# Try without a prefix underscore, then with it.
5885for ac_symprfx in "" "_"; do
5886
5887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5888 symxfrm="\\1 $ac_symprfx\\2 \\2"
5889
5890 # Write the raw and C identifiers.
5891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
cae5b340
AX
5892 # Fake it for dumpbin and say T for any non-static function
5893 # and D for any global variable.
ea04106b
AX
5894 # Also find C++ and __fastcall symbols from MSVC++,
5895 # which start with @ or ?.
5896 lt_cv_sys_global_symbol_pipe="$AWK '"\
5897" {last_section=section; section=\$ 3};"\
ea04106b
AX
5898" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5899" \$ 0!~/External *\|/{next};"\
5900" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5901" {if(hide[section]) next};"\
cae5b340
AX
5902" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5903" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5904" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5905" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
ea04106b
AX
5906" ' prfx=^$ac_symprfx"
5907 else
5908 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5909 fi
ea04106b
AX
5910
5911 # Check to see that the pipe works correctly.
5912 pipe_works=no
5913
5914 rm -f conftest*
5915 cat > conftest.$ac_ext <<_LT_EOF
5916#ifdef __cplusplus
5917extern "C" {
5918#endif
5919char nm_test_var;
5920void nm_test_func(void);
5921void nm_test_func(void){}
5922#ifdef __cplusplus
5923}
5924#endif
5925int main(){nm_test_var='a';nm_test_func();return(0);}
5926_LT_EOF
5927
cae5b340 5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
5929 (eval $ac_compile) 2>&5
5930 ac_status=$?
cae5b340
AX
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; then
ea04106b
AX
5933 # Now try to grab the symbols.
5934 nlist=conftest.nm
cae5b340
AX
5935 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5936 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ea04106b 5937 ac_status=$?
cae5b340
AX
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && test -s "$nlist"; then
ea04106b
AX
5940 # Try sorting and uniquifying the output.
5941 if sort "$nlist" | uniq > "$nlist"T; then
5942 mv -f "$nlist"T "$nlist"
5943 else
5944 rm -f "$nlist"T
5945 fi
5946
5947 # Make sure that we snagged all the symbols we need.
5948 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5949 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5950 cat <<_LT_EOF > conftest.$ac_ext
ea04106b
AX
5951#ifdef __cplusplus
5952extern "C" {
5953#endif
5954
5955_LT_EOF
5956 # Now generate the symbol file.
5957 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5958
5959 cat <<_LT_EOF >> conftest.$ac_ext
5960
5961/* The mapping between symbol names and symbols. */
cae5b340 5962const struct {
ea04106b
AX
5963 const char *name;
5964 void *address;
5965}
5966lt__PROGRAM__LTX_preloaded_symbols[] =
5967{
5968 { "@PROGRAM@", (void *) 0 },
5969_LT_EOF
cae5b340 5970 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
ea04106b
AX
5971 cat <<\_LT_EOF >> conftest.$ac_ext
5972 {0, (void *) 0}
5973};
5974
5975/* This works around a problem in FreeBSD linker */
5976#ifdef FREEBSD_WORKAROUND
5977static const void *lt_preloaded_setup() {
5978 return lt__PROGRAM__LTX_preloaded_symbols;
5979}
5980#endif
5981
5982#ifdef __cplusplus
5983}
5984#endif
5985_LT_EOF
5986 # Now try linking the two files.
5987 mv conftest.$ac_objext conftstm.$ac_objext
cae5b340
AX
5988 lt_save_LIBS="$LIBS"
5989 lt_save_CFLAGS="$CFLAGS"
5990 LIBS="conftstm.$ac_objext"
ea04106b 5991 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cae5b340 5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
5993 (eval $ac_link) 2>&5
5994 ac_status=$?
cae5b340
AX
5995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } && test -s conftest${ac_exeext}; then
ea04106b
AX
5997 pipe_works=yes
5998 fi
cae5b340
AX
5999 LIBS="$lt_save_LIBS"
6000 CFLAGS="$lt_save_CFLAGS"
ea04106b
AX
6001 else
6002 echo "cannot find nm_test_func in $nlist" >&5
6003 fi
6004 else
6005 echo "cannot find nm_test_var in $nlist" >&5
6006 fi
6007 else
6008 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6009 fi
6010 else
6011 echo "$progname: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 fi
6014 rm -rf conftest* conftst*
6015
6016 # Do not use the global_symbol_pipe unless it works.
cae5b340 6017 if test "$pipe_works" = yes; then
ea04106b
AX
6018 break
6019 else
6020 lt_cv_sys_global_symbol_pipe=
6021 fi
6022done
6023
6024fi
6025
6026if test -z "$lt_cv_sys_global_symbol_pipe"; then
6027 lt_cv_sys_global_symbol_to_cdecl=
6028fi
6029if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cae5b340 6030 { $as_echo "$as_me:$LINENO: result: failed" >&5
ea04106b
AX
6031$as_echo "failed" >&6; }
6032else
cae5b340 6033 { $as_echo "$as_me:$LINENO: result: ok" >&5
ea04106b
AX
6034$as_echo "ok" >&6; }
6035fi
6036
ea04106b
AX
6037
6038
6039
6040
6041
68d83c55
AX
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
ea04106b
AX
6052
6053
6054
6055
6056
6057
68d83c55 6058
ea04106b 6059# Check whether --enable-libtool-lock was given.
cae5b340 6060if test "${enable_libtool_lock+set}" = set; then
ea04106b
AX
6061 enableval=$enable_libtool_lock;
6062fi
6063
cae5b340 6064test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
ea04106b
AX
6065
6066# Some flags need to be propagated to the compiler or linker for good
6067# libtool support.
6068case $host in
6069ia64-*-hpux*)
cae5b340 6070 # Find out which ABI we are using.
ea04106b 6071 echo 'int i;' > conftest.$ac_ext
cae5b340 6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
cae5b340
AX
6075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; then
ea04106b
AX
6077 case `/usr/bin/file conftest.$ac_objext` in
6078 *ELF-32*)
cae5b340 6079 HPUX_IA64_MODE="32"
ea04106b
AX
6080 ;;
6081 *ELF-64*)
cae5b340 6082 HPUX_IA64_MODE="64"
ea04106b
AX
6083 ;;
6084 esac
6085 fi
6086 rm -rf conftest*
6087 ;;
6088*-*-irix6*)
cae5b340 6089 # Find out which ABI we are using.
42f7b73b 6090 echo '#line 6090 "configure"' > conftest.$ac_ext
cae5b340 6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6092 (eval $ac_compile) 2>&5
6093 ac_status=$?
cae5b340
AX
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; then
6096 if test "$lt_cv_prog_gnu_ld" = yes; then
ea04106b
AX
6097 case `/usr/bin/file conftest.$ac_objext` in
6098 *32-bit*)
6099 LD="${LD-ld} -melf32bsmip"
6100 ;;
6101 *N32*)
6102 LD="${LD-ld} -melf32bmipn32"
6103 ;;
6104 *64-bit*)
6105 LD="${LD-ld} -melf64bmip"
6106 ;;
6107 esac
6108 else
6109 case `/usr/bin/file conftest.$ac_objext` in
6110 *32-bit*)
6111 LD="${LD-ld} -32"
6112 ;;
6113 *N32*)
6114 LD="${LD-ld} -n32"
6115 ;;
6116 *64-bit*)
6117 LD="${LD-ld} -64"
6118 ;;
6119 esac
6120 fi
6121 fi
6122 rm -rf conftest*
6123 ;;
6124
cae5b340 6125x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
ea04106b 6126s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cae5b340 6127 # Find out which ABI we are using.
ea04106b 6128 echo 'int i;' > conftest.$ac_ext
cae5b340 6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6130 (eval $ac_compile) 2>&5
6131 ac_status=$?
cae5b340
AX
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; then
ea04106b
AX
6134 case `/usr/bin/file conftest.o` in
6135 *32-bit*)
6136 case $host in
6137 x86_64-*kfreebsd*-gnu)
6138 LD="${LD-ld} -m elf_i386_fbsd"
6139 ;;
6140 x86_64-*linux*)
cae5b340 6141 LD="${LD-ld} -m elf_i386"
68d83c55 6142 ;;
cae5b340 6143 ppc64-*linux*|powerpc64-*linux*)
ea04106b
AX
6144 LD="${LD-ld} -m elf32ppclinux"
6145 ;;
6146 s390x-*linux*)
6147 LD="${LD-ld} -m elf_s390"
6148 ;;
6149 sparc64-*linux*)
6150 LD="${LD-ld} -m elf32_sparc"
6151 ;;
6152 esac
6153 ;;
6154 *64-bit*)
6155 case $host in
6156 x86_64-*kfreebsd*-gnu)
6157 LD="${LD-ld} -m elf_x86_64_fbsd"
6158 ;;
6159 x86_64-*linux*)
6160 LD="${LD-ld} -m elf_x86_64"
6161 ;;
cae5b340 6162 ppc*-*linux*|powerpc*-*linux*)
ea04106b
AX
6163 LD="${LD-ld} -m elf64ppc"
6164 ;;
6165 s390*-*linux*|s390*-*tpf*)
6166 LD="${LD-ld} -m elf64_s390"
6167 ;;
6168 sparc*-*linux*)
6169 LD="${LD-ld} -m elf64_sparc"
6170 ;;
6171 esac
6172 ;;
6173 esac
6174 fi
6175 rm -rf conftest*
6176 ;;
6177
6178*-*-sco3.2v5*)
6179 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
cae5b340 6180 SAVE_CFLAGS="$CFLAGS"
ea04106b 6181 CFLAGS="$CFLAGS -belf"
cae5b340 6182 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
ea04106b 6183$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cae5b340 6184if test "${lt_cv_cc_needs_belf+set}" = set; then
ea04106b
AX
6185 $as_echo_n "(cached) " >&6
6186else
6187 ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
cae5b340
AX
6193 cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
cae5b340
AX
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (ac_try="$ac_link"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6215$as_echo "$ac_try_echo") >&5
6216 (eval "$ac_link") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest$ac_exeext && {
6226 test "$cross_compiling" = yes ||
6227 $as_test_x conftest$ac_exeext
6228 }; then
ea04106b
AX
6229 lt_cv_cc_needs_belf=yes
6230else
cae5b340
AX
6231 $as_echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 lt_cv_cc_needs_belf=no
ea04106b 6235fi
cae5b340
AX
6236
6237rm -rf conftest.dSYM
6238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6239 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
6240 ac_ext=c
6241ac_cpp='$CPP $CPPFLAGS'
6242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245
6246fi
cae5b340 6247{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
ea04106b 6248$as_echo "$lt_cv_cc_needs_belf" >&6; }
cae5b340 6249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
ea04106b 6250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cae5b340 6251 CFLAGS="$SAVE_CFLAGS"
ea04106b
AX
6252 fi
6253 ;;
cae5b340
AX
6254sparc*-*solaris*)
6255 # Find out which ABI we are using.
ea04106b 6256 echo 'int i;' > conftest.$ac_ext
cae5b340 6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6258 (eval $ac_compile) 2>&5
6259 ac_status=$?
cae5b340
AX
6260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; then
ea04106b
AX
6262 case `/usr/bin/file conftest.o` in
6263 *64-bit*)
6264 case $lt_cv_prog_gnu_ld in
cae5b340 6265 yes*) LD="${LD-ld} -m elf64_sparc" ;;
ea04106b
AX
6266 *)
6267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6268 LD="${LD-ld} -64"
6269 fi
6270 ;;
6271 esac
6272 ;;
6273 esac
6274 fi
6275 rm -rf conftest*
6276 ;;
6277esac
6278
cae5b340 6279need_locks="$enable_libtool_lock"
ea04106b
AX
6280
6281
6282 case $host_os in
6283 rhapsody* | darwin*)
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6286set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cae5b340 6287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6288$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6289if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
ea04106b
AX
6290 $as_echo_n "(cached) " >&6
6291else
6292 if test -n "$DSYMUTIL"; then
6293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
cae5b340
AX
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cae5b340 6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6304 break 2
6305 fi
6306done
cae5b340 6307done
ea04106b
AX
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312DSYMUTIL=$ac_cv_prog_DSYMUTIL
6313if test -n "$DSYMUTIL"; then
cae5b340 6314 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
ea04106b
AX
6315$as_echo "$DSYMUTIL" >&6; }
6316else
cae5b340 6317 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6318$as_echo "no" >&6; }
6319fi
6320
6321
6322fi
6323if test -z "$ac_cv_prog_DSYMUTIL"; then
6324 ac_ct_DSYMUTIL=$DSYMUTIL
6325 # Extract the first word of "dsymutil", so it can be a program name with args.
6326set dummy dsymutil; ac_word=$2
cae5b340 6327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6328$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6329if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
ea04106b
AX
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$ac_ct_DSYMUTIL"; then
6333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
cae5b340
AX
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cae5b340 6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6344 break 2
6345 fi
6346done
cae5b340 6347done
ea04106b
AX
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6353if test -n "$ac_ct_DSYMUTIL"; then
cae5b340 6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
ea04106b
AX
6355$as_echo "$ac_ct_DSYMUTIL" >&6; }
6356else
cae5b340 6357 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6358$as_echo "no" >&6; }
6359fi
6360
6361 if test "x$ac_ct_DSYMUTIL" = x; then
6362 DSYMUTIL=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
cae5b340 6366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 DSYMUTIL=$ac_ct_DSYMUTIL
6371 fi
6372else
6373 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6374fi
6375
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6378set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cae5b340 6379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6380$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6381if test "${ac_cv_prog_NMEDIT+set}" = set; then
ea04106b
AX
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$NMEDIT"; then
6385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
cae5b340
AX
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cae5b340 6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6396 break 2
6397 fi
6398done
cae5b340 6399done
ea04106b
AX
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404NMEDIT=$ac_cv_prog_NMEDIT
6405if test -n "$NMEDIT"; then
cae5b340 6406 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
ea04106b
AX
6407$as_echo "$NMEDIT" >&6; }
6408else
cae5b340 6409 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414fi
6415if test -z "$ac_cv_prog_NMEDIT"; then
6416 ac_ct_NMEDIT=$NMEDIT
6417 # Extract the first word of "nmedit", so it can be a program name with args.
6418set dummy nmedit; ac_word=$2
cae5b340 6419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6420$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6421if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
ea04106b
AX
6422 $as_echo_n "(cached) " >&6
6423else
6424 if test -n "$ac_ct_NMEDIT"; then
6425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
cae5b340
AX
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6434 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cae5b340 6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6436 break 2
6437 fi
6438done
cae5b340 6439done
ea04106b
AX
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6445if test -n "$ac_ct_NMEDIT"; then
cae5b340 6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
ea04106b
AX
6447$as_echo "$ac_ct_NMEDIT" >&6; }
6448else
cae5b340 6449 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6450$as_echo "no" >&6; }
6451fi
6452
6453 if test "x$ac_ct_NMEDIT" = x; then
6454 NMEDIT=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457yes:)
cae5b340 6458{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462 NMEDIT=$ac_ct_NMEDIT
6463 fi
6464else
6465 NMEDIT="$ac_cv_prog_NMEDIT"
6466fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6470set dummy ${ac_tool_prefix}lipo; ac_word=$2
cae5b340 6471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6472$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6473if test "${ac_cv_prog_LIPO+set}" = set; then
ea04106b
AX
6474 $as_echo_n "(cached) " >&6
6475else
6476 if test -n "$LIPO"; then
6477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
cae5b340
AX
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cae5b340 6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6488 break 2
6489 fi
6490done
cae5b340 6491done
ea04106b
AX
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496LIPO=$ac_cv_prog_LIPO
6497if test -n "$LIPO"; then
cae5b340 6498 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
ea04106b
AX
6499$as_echo "$LIPO" >&6; }
6500else
cae5b340 6501 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6502$as_echo "no" >&6; }
6503fi
6504
6505
6506fi
6507if test -z "$ac_cv_prog_LIPO"; then
6508 ac_ct_LIPO=$LIPO
6509 # Extract the first word of "lipo", so it can be a program name with args.
6510set dummy lipo; ac_word=$2
cae5b340 6511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6512$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6513if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
ea04106b
AX
6514 $as_echo_n "(cached) " >&6
6515else
6516 if test -n "$ac_ct_LIPO"; then
6517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
cae5b340
AX
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6526 ac_cv_prog_ac_ct_LIPO="lipo"
cae5b340 6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6528 break 2
6529 fi
6530done
cae5b340 6531done
ea04106b
AX
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6537if test -n "$ac_ct_LIPO"; then
cae5b340 6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
ea04106b
AX
6539$as_echo "$ac_ct_LIPO" >&6; }
6540else
cae5b340 6541 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6542$as_echo "no" >&6; }
6543fi
6544
6545 if test "x$ac_ct_LIPO" = x; then
6546 LIPO=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549yes:)
cae5b340 6550{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552ac_tool_warned=yes ;;
6553esac
6554 LIPO=$ac_ct_LIPO
6555 fi
6556else
6557 LIPO="$ac_cv_prog_LIPO"
6558fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6562set dummy ${ac_tool_prefix}otool; ac_word=$2
cae5b340 6563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6564$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6565if test "${ac_cv_prog_OTOOL+set}" = set; then
ea04106b
AX
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$OTOOL"; then
6569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
cae5b340
AX
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cae5b340 6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6580 break 2
6581 fi
6582done
cae5b340 6583done
ea04106b
AX
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588OTOOL=$ac_cv_prog_OTOOL
6589if test -n "$OTOOL"; then
cae5b340 6590 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
ea04106b
AX
6591$as_echo "$OTOOL" >&6; }
6592else
cae5b340 6593 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6594$as_echo "no" >&6; }
6595fi
6596
6597
6598fi
6599if test -z "$ac_cv_prog_OTOOL"; then
6600 ac_ct_OTOOL=$OTOOL
6601 # Extract the first word of "otool", so it can be a program name with args.
6602set dummy otool; ac_word=$2
cae5b340 6603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6604$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6605if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
ea04106b
AX
6606 $as_echo_n "(cached) " >&6
6607else
6608 if test -n "$ac_ct_OTOOL"; then
6609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
cae5b340
AX
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6618 ac_cv_prog_ac_ct_OTOOL="otool"
cae5b340 6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6620 break 2
6621 fi
6622done
cae5b340 6623done
ea04106b
AX
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6629if test -n "$ac_ct_OTOOL"; then
cae5b340 6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
ea04106b
AX
6631$as_echo "$ac_ct_OTOOL" >&6; }
6632else
cae5b340 6633 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6634$as_echo "no" >&6; }
6635fi
6636
6637 if test "x$ac_ct_OTOOL" = x; then
6638 OTOOL=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
cae5b340 6642{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 OTOOL=$ac_ct_OTOOL
6647 fi
6648else
6649 OTOOL="$ac_cv_prog_OTOOL"
6650fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}otool64; ac_word=$2
cae5b340 6655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6656$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6657if test "${ac_cv_prog_OTOOL64+set}" = set; then
ea04106b
AX
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$OTOOL64"; then
6661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
cae5b340
AX
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cae5b340 6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6672 break 2
6673 fi
6674done
cae5b340 6675done
ea04106b
AX
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680OTOOL64=$ac_cv_prog_OTOOL64
6681if test -n "$OTOOL64"; then
cae5b340 6682 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
ea04106b
AX
6683$as_echo "$OTOOL64" >&6; }
6684else
cae5b340 6685 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_OTOOL64"; then
6692 ac_ct_OTOOL64=$OTOOL64
6693 # Extract the first word of "otool64", so it can be a program name with args.
6694set dummy otool64; ac_word=$2
cae5b340 6695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6696$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6697if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
ea04106b
AX
6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$ac_ct_OTOOL64"; then
6701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
cae5b340
AX
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea04106b 6710 ac_cv_prog_ac_ct_OTOOL64="otool64"
cae5b340 6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6712 break 2
6713 fi
6714done
cae5b340 6715done
ea04106b
AX
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6721if test -n "$ac_ct_OTOOL64"; then
cae5b340 6722 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
ea04106b
AX
6723$as_echo "$ac_ct_OTOOL64" >&6; }
6724else
cae5b340 6725 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6726$as_echo "no" >&6; }
6727fi
6728
6729 if test "x$ac_ct_OTOOL64" = x; then
6730 OTOOL64=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733yes:)
cae5b340 6734{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738 OTOOL64=$ac_ct_OTOOL64
6739 fi
6740else
6741 OTOOL64="$ac_cv_prog_OTOOL64"
6742fi
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
cae5b340 6770 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
ea04106b 6771$as_echo_n "checking for -single_module linker flag... " >&6; }
cae5b340 6772if test "${lt_cv_apple_cc_single_mod+set}" = set; then
ea04106b
AX
6773 $as_echo_n "(cached) " >&6
6774else
6775 lt_cv_apple_cc_single_mod=no
cae5b340 6776 if test -z "${LT_MULTI_MODULE}"; then
ea04106b
AX
6777 # By default we will add the -single_module flag. You can override
6778 # by either setting the environment variable LT_MULTI_MODULE
6779 # non-empty at configure time, or by adding -multi_module to the
6780 # link flags.
6781 rm -rf libconftest.dylib*
6782 echo "int foo(void){return 1;}" > conftest.c
6783 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6784-dynamiclib -Wl,-single_module conftest.c" >&5
6785 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6786 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6787 _lt_result=$?
cae5b340 6788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
ea04106b
AX
6789 lt_cv_apple_cc_single_mod=yes
6790 else
6791 cat conftest.err >&5
6792 fi
6793 rm -rf libconftest.dylib*
6794 rm -f conftest.*
6795 fi
6796fi
cae5b340 6797{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
ea04106b 6798$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cae5b340 6799 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
ea04106b 6800$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cae5b340 6801if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
ea04106b
AX
6802 $as_echo_n "(cached) " >&6
6803else
6804 lt_cv_ld_exported_symbols_list=no
6805 save_LDFLAGS=$LDFLAGS
6806 echo "_main" > conftest.sym
6807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cae5b340
AX
6808 cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6813/* end confdefs.h. */
6814
6815int
6816main ()
6817{
6818
6819 ;
6820 return 0;
6821}
6822_ACEOF
cae5b340
AX
6823rm -f conftest.$ac_objext conftest$ac_exeext
6824if { (ac_try="$ac_link"
6825case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828esac
6829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6830$as_echo "$ac_try_echo") >&5
6831 (eval "$ac_link") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest$ac_exeext && {
6841 test "$cross_compiling" = yes ||
6842 $as_test_x conftest$ac_exeext
6843 }; then
ea04106b
AX
6844 lt_cv_ld_exported_symbols_list=yes
6845else
cae5b340
AX
6846 $as_echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 6848
cae5b340 6849 lt_cv_ld_exported_symbols_list=no
ea04106b 6850fi
ea04106b 6851
cae5b340
AX
6852rm -rf conftest.dSYM
6853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6854 conftest$ac_exeext conftest.$ac_ext
6855 LDFLAGS="$save_LDFLAGS"
ea04106b
AX
6856
6857fi
cae5b340
AX
6858{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6859$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
ea04106b
AX
6860 case $host_os in
6861 rhapsody* | darwin1.[012])
cae5b340 6862 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
ea04106b 6863 darwin1.*)
cae5b340 6864 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
ea04106b
AX
6865 darwin*) # darwin 5.x on
6866 # if running on 10.5 or later, the deployment target defaults
6867 # to the OS version, if on x86, and 10.4, the deployment
6868 # target defaults to 10.4. Don't you love it?
6869 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6870 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
cae5b340
AX
6871 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6872 10.[012]*)
6873 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
ea04106b 6874 10.*)
cae5b340 6875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ea04106b
AX
6876 esac
6877 ;;
6878 esac
cae5b340 6879 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
ea04106b
AX
6880 _lt_dar_single_mod='$single_module'
6881 fi
cae5b340
AX
6882 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6883 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
ea04106b 6884 else
cae5b340 6885 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
ea04106b 6886 fi
cae5b340 6887 if test "$DSYMUTIL" != ":"; then
ea04106b
AX
6888 _lt_dsymutil='~$DSYMUTIL $lib || :'
6889 else
6890 _lt_dsymutil=
6891 fi
6892 ;;
6893 esac
6894
6895ac_ext=c
6896ac_cpp='$CPP $CPPFLAGS'
6897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899ac_compiler_gnu=$ac_cv_c_compiler_gnu
cae5b340 6900{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
ea04106b
AX
6901$as_echo_n "checking how to run the C preprocessor... " >&6; }
6902# On Suns, sometimes $CPP names a directory.
6903if test -n "$CPP" && test -d "$CPP"; then
6904 CPP=
6905fi
6906if test -z "$CPP"; then
cae5b340 6907 if test "${ac_cv_prog_CPP+set}" = set; then
ea04106b
AX
6908 $as_echo_n "(cached) " >&6
6909else
6910 # Double quotes because CPP needs to be expanded
6911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6912 do
6913 ac_preproc_ok=false
6914for ac_c_preproc_warn_flag in '' yes
6915do
6916 # Use a header file that comes with gcc, so configuring glibc
6917 # with a fresh cross-compiler works.
6918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6919 # <limits.h> exists even on freestanding compilers.
6920 # On the NeXT, cc -E runs the code through the compiler's parser,
6921 # not just through cpp. "Syntax error" is here to catch this case.
cae5b340
AX
6922 cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6927/* end confdefs.h. */
6928#ifdef __STDC__
6929# include <limits.h>
6930#else
6931# include <assert.h>
6932#endif
6933 Syntax error
6934_ACEOF
cae5b340
AX
6935if { (ac_try="$ac_cpp conftest.$ac_ext"
6936case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
6940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941$as_echo "$ac_try_echo") >&5
6942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } >/dev/null && {
6949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 }; then
6952 :
ea04106b 6953else
cae5b340
AX
6954 $as_echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
ea04106b
AX
6957 # Broken: fails on valid input.
6958continue
6959fi
cae5b340
AX
6960
6961rm -f conftest.err conftest.$ac_ext
ea04106b
AX
6962
6963 # OK, works on sane cases. Now check whether nonexistent headers
6964 # can be detected and how.
cae5b340
AX
6965 cat >conftest.$ac_ext <<_ACEOF
6966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6970/* end confdefs.h. */
6971#include <ac_nonexistent.h>
6972_ACEOF
cae5b340
AX
6973if { (ac_try="$ac_cpp conftest.$ac_ext"
6974case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977esac
6978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6979$as_echo "$ac_try_echo") >&5
6980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } >/dev/null && {
6987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6988 test ! -s conftest.err
6989 }; then
ea04106b
AX
6990 # Broken: success on invalid input.
6991continue
6992else
cae5b340
AX
6993 $as_echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
ea04106b
AX
6996 # Passes both tests.
6997ac_preproc_ok=:
6998break
6999fi
cae5b340
AX
7000
7001rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7002
7003done
7004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cae5b340
AX
7005rm -f conftest.err conftest.$ac_ext
7006if $ac_preproc_ok; then
ea04106b
AX
7007 break
7008fi
7009
7010 done
7011 ac_cv_prog_CPP=$CPP
7012
7013fi
7014 CPP=$ac_cv_prog_CPP
7015else
7016 ac_cv_prog_CPP=$CPP
7017fi
cae5b340 7018{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
ea04106b
AX
7019$as_echo "$CPP" >&6; }
7020ac_preproc_ok=false
7021for ac_c_preproc_warn_flag in '' yes
7022do
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
cae5b340
AX
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7034/* end confdefs.h. */
7035#ifdef __STDC__
7036# include <limits.h>
7037#else
7038# include <assert.h>
7039#endif
7040 Syntax error
7041_ACEOF
cae5b340
AX
7042if { (ac_try="$ac_cpp conftest.$ac_ext"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
7047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048$as_echo "$ac_try_echo") >&5
7049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } >/dev/null && {
7056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 }; then
7059 :
ea04106b 7060else
cae5b340
AX
7061 $as_echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
ea04106b
AX
7064 # Broken: fails on valid input.
7065continue
7066fi
cae5b340
AX
7067
7068rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7069
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
cae5b340
AX
7072 cat >conftest.$ac_ext <<_ACEOF
7073/* confdefs.h. */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7077/* end confdefs.h. */
7078#include <ac_nonexistent.h>
7079_ACEOF
cae5b340
AX
7080if { (ac_try="$ac_cpp conftest.$ac_ext"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7086$as_echo "$ac_try_echo") >&5
7087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } >/dev/null && {
7094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 }; then
ea04106b
AX
7097 # Broken: success on invalid input.
7098continue
7099else
cae5b340
AX
7100 $as_echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
ea04106b
AX
7103 # Passes both tests.
7104ac_preproc_ok=:
7105break
7106fi
cae5b340
AX
7107
7108rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7109
7110done
7111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cae5b340
AX
7112rm -f conftest.err conftest.$ac_ext
7113if $ac_preproc_ok; then
7114 :
ea04106b 7115else
cae5b340 7116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 7117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
7118{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7119See \`config.log' for more details." >&5
7120$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7121See \`config.log' for more details." >&2;}
7122 { (exit 1); exit 1; }; }; }
ea04106b
AX
7123fi
7124
7125ac_ext=c
7126ac_cpp='$CPP $CPPFLAGS'
7127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131
cae5b340 7132{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
ea04106b 7133$as_echo_n "checking for ANSI C header files... " >&6; }
cae5b340 7134if test "${ac_cv_header_stdc+set}" = set; then
ea04106b
AX
7135 $as_echo_n "(cached) " >&6
7136else
cae5b340
AX
7137 cat >conftest.$ac_ext <<_ACEOF
7138/* confdefs.h. */
7139_ACEOF
7140cat confdefs.h >>conftest.$ac_ext
7141cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7142/* end confdefs.h. */
7143#include <stdlib.h>
7144#include <stdarg.h>
7145#include <string.h>
7146#include <float.h>
7147
7148int
7149main ()
7150{
7151
7152 ;
7153 return 0;
7154}
7155_ACEOF
cae5b340
AX
7156rm -f conftest.$ac_objext
7157if { (ac_try="$ac_compile"
7158case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161esac
7162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163$as_echo "$ac_try_echo") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
ea04106b
AX
7174 ac_cv_header_stdc=yes
7175else
cae5b340
AX
7176 $as_echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_header_stdc=no
ea04106b 7180fi
cae5b340 7181
ea04106b
AX
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
7184if test $ac_cv_header_stdc = yes; then
7185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cae5b340
AX
7186 cat >conftest.$ac_ext <<_ACEOF
7187/* confdefs.h. */
7188_ACEOF
7189cat confdefs.h >>conftest.$ac_ext
7190cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7191/* end confdefs.h. */
7192#include <string.h>
7193
7194_ACEOF
7195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cae5b340
AX
7196 $EGREP "memchr" >/dev/null 2>&1; then
7197 :
ea04106b
AX
7198else
7199 ac_cv_header_stdc=no
7200fi
7201rm -f conftest*
7202
7203fi
7204
7205if test $ac_cv_header_stdc = yes; then
7206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cae5b340
AX
7207 cat >conftest.$ac_ext <<_ACEOF
7208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7212/* end confdefs.h. */
7213#include <stdlib.h>
7214
7215_ACEOF
7216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cae5b340
AX
7217 $EGREP "free" >/dev/null 2>&1; then
7218 :
ea04106b
AX
7219else
7220 ac_cv_header_stdc=no
7221fi
7222rm -f conftest*
7223
7224fi
7225
7226if test $ac_cv_header_stdc = yes; then
7227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cae5b340 7228 if test "$cross_compiling" = yes; then
ea04106b
AX
7229 :
7230else
cae5b340
AX
7231 cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h. */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7236/* end confdefs.h. */
7237#include <ctype.h>
7238#include <stdlib.h>
7239#if ((' ' & 0x0FF) == 0x020)
7240# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7241# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7242#else
7243# define ISLOWER(c) \
7244 (('a' <= (c) && (c) <= 'i') \
7245 || ('j' <= (c) && (c) <= 'r') \
7246 || ('s' <= (c) && (c) <= 'z'))
7247# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7248#endif
7249
7250#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7251int
7252main ()
7253{
7254 int i;
7255 for (i = 0; i < 256; i++)
7256 if (XOR (islower (i), ISLOWER (i))
7257 || toupper (i) != TOUPPER (i))
7258 return 2;
7259 return 0;
7260}
7261_ACEOF
cae5b340
AX
7262rm -f conftest$ac_exeext
7263if { (ac_try="$ac_link"
7264case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267esac
7268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269$as_echo "$ac_try_echo") >&5
7270 (eval "$ac_link") 2>&5
7271 ac_status=$?
7272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7274 { (case "(($ac_try" in
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7277esac
7278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7279$as_echo "$ac_try_echo") >&5
7280 (eval "$ac_try") 2>&5
7281 ac_status=$?
7282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 :
ea04106b 7285else
cae5b340
AX
7286 $as_echo "$as_me: program exited with status $ac_status" >&5
7287$as_echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290( exit $ac_status )
7291ac_cv_header_stdc=no
ea04106b 7292fi
cae5b340
AX
7293rm -rf conftest.dSYM
7294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ea04106b
AX
7295fi
7296
cae5b340 7297
ea04106b
AX
7298fi
7299fi
cae5b340 7300{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
ea04106b
AX
7301$as_echo "$ac_cv_header_stdc" >&6; }
7302if test $ac_cv_header_stdc = yes; then
7303
cae5b340
AX
7304cat >>confdefs.h <<\_ACEOF
7305#define STDC_HEADERS 1
7306_ACEOF
ea04106b
AX
7307
7308fi
7309
7310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cae5b340
AX
7311
7312
7313
7314
7315
7316
7317
7318
7319
ea04106b
AX
7320for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7321 inttypes.h stdint.h unistd.h
cae5b340
AX
7322do
7323as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7324{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7325$as_echo_n "checking for $ac_header... " >&6; }
7326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327 $as_echo_n "(cached) " >&6
7328else
7329 cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335$ac_includes_default
7336
7337#include <$ac_header>
7338_ACEOF
7339rm -f conftest.$ac_objext
7340if { (ac_try="$ac_compile"
7341case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7346$as_echo "$ac_try_echo") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 eval "$as_ac_Header=yes"
7358else
7359 $as_echo "$as_me: failed program was:" >&5
7360sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 eval "$as_ac_Header=no"
7363fi
7364
7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366fi
7367ac_res=`eval 'as_val=${'$as_ac_Header'}
7368 $as_echo "$as_val"'`
7369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7370$as_echo "$ac_res" >&6; }
7371as_val=`eval 'as_val=${'$as_ac_Header'}
7372 $as_echo "$as_val"'`
7373 if test "x$as_val" = x""yes; then
ea04106b
AX
7374 cat >>confdefs.h <<_ACEOF
7375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376_ACEOF
7377
7378fi
7379
7380done
7381
7382
cae5b340 7383
ea04106b 7384for ac_header in dlfcn.h
cae5b340
AX
7385do
7386as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7387{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7388$as_echo_n "checking for $ac_header... " >&6; }
7389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 $as_echo_n "(cached) " >&6
7391else
7392 cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h. */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h. */
7398$ac_includes_default
7399
7400#include <$ac_header>
ea04106b 7401_ACEOF
cae5b340
AX
7402rm -f conftest.$ac_objext
7403if { (ac_try="$ac_compile"
7404case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407esac
7408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7409$as_echo "$ac_try_echo") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.$ac_objext; then
7420 eval "$as_ac_Header=yes"
7421else
7422 $as_echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 7424
cae5b340 7425 eval "$as_ac_Header=no"
ea04106b
AX
7426fi
7427
cae5b340
AX
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430ac_res=`eval 'as_val=${'$as_ac_Header'}
7431 $as_echo "$as_val"'`
7432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7433$as_echo "$ac_res" >&6; }
7434as_val=`eval 'as_val=${'$as_ac_Header'}
7435 $as_echo "$as_val"'`
7436 if test "x$as_val" = x""yes; then
7437 cat >>confdefs.h <<_ACEOF
7438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7439_ACEOF
ea04106b 7440
cae5b340 7441fi
ea04106b 7442
cae5b340 7443done
ea04106b
AX
7444
7445
7446
7447# Set options
7448
7449
7450
7451 enable_dlopen=no
7452
7453
7454 enable_win32_dll=no
7455
7456
7457 # Check whether --enable-shared was given.
cae5b340 7458if test "${enable_shared+set}" = set; then
ea04106b
AX
7459 enableval=$enable_shared; p=${PACKAGE-default}
7460 case $enableval in
7461 yes) enable_shared=yes ;;
7462 no) enable_shared=no ;;
7463 *)
7464 enable_shared=no
7465 # Look at the argument we got. We use all the common list separators.
cae5b340 7466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7467 for pkg in $enableval; do
cae5b340 7468 IFS="$lt_save_ifs"
ea04106b
AX
7469 if test "X$pkg" = "X$p"; then
7470 enable_shared=yes
7471 fi
7472 done
cae5b340 7473 IFS="$lt_save_ifs"
ea04106b
AX
7474 ;;
7475 esac
7476else
7477 enable_shared=yes
7478fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # Check whether --enable-static was given.
cae5b340 7489if test "${enable_static+set}" = set; then
ea04106b
AX
7490 enableval=$enable_static; p=${PACKAGE-default}
7491 case $enableval in
7492 yes) enable_static=yes ;;
7493 no) enable_static=no ;;
7494 *)
7495 enable_static=no
7496 # Look at the argument we got. We use all the common list separators.
cae5b340 7497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7498 for pkg in $enableval; do
cae5b340 7499 IFS="$lt_save_ifs"
ea04106b
AX
7500 if test "X$pkg" = "X$p"; then
7501 enable_static=yes
7502 fi
7503 done
cae5b340 7504 IFS="$lt_save_ifs"
ea04106b
AX
7505 ;;
7506 esac
7507else
7508 enable_static=yes
7509fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520# Check whether --with-pic was given.
cae5b340
AX
7521if test "${with_pic+set}" = set; then
7522 withval=$with_pic; pic_mode="$withval"
ea04106b
AX
7523else
7524 pic_mode=default
7525fi
7526
7527
cae5b340
AX
7528test -z "$pic_mode" && pic_mode=default
7529
ea04106b
AX
7530
7531
7532
7533
7534
7535
7536 # Check whether --enable-fast-install was given.
cae5b340 7537if test "${enable_fast_install+set}" = set; then
ea04106b
AX
7538 enableval=$enable_fast_install; p=${PACKAGE-default}
7539 case $enableval in
7540 yes) enable_fast_install=yes ;;
7541 no) enable_fast_install=no ;;
7542 *)
7543 enable_fast_install=no
7544 # Look at the argument we got. We use all the common list separators.
cae5b340 7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7546 for pkg in $enableval; do
cae5b340 7547 IFS="$lt_save_ifs"
ea04106b
AX
7548 if test "X$pkg" = "X$p"; then
7549 enable_fast_install=yes
7550 fi
7551 done
cae5b340 7552 IFS="$lt_save_ifs"
ea04106b
AX
7553 ;;
7554 esac
7555else
7556 enable_fast_install=yes
7557fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569# This can be used to rebuild libtool when needed
cae5b340 7570LIBTOOL_DEPS="$ltmain"
ea04106b
AX
7571
7572# Always use our own libtool.
7573LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
ea04106b
AX
7593
7594
7595
7596
7597
7598
7599test -z "$LN_S" && LN_S="ln -s"
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
cae5b340 7614if test -n "${ZSH_VERSION+set}" ; then
ea04106b
AX
7615 setopt NO_GLOB_SUBST
7616fi
7617
cae5b340 7618{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
ea04106b 7619$as_echo_n "checking for objdir... " >&6; }
cae5b340 7620if test "${lt_cv_objdir+set}" = set; then
ea04106b
AX
7621 $as_echo_n "(cached) " >&6
7622else
7623 rm -f .libs 2>/dev/null
7624mkdir .libs 2>/dev/null
7625if test -d .libs; then
7626 lt_cv_objdir=.libs
7627else
7628 # MS-DOS does not allow filenames that begin with a dot.
7629 lt_cv_objdir=_libs
7630fi
7631rmdir .libs 2>/dev/null
7632fi
cae5b340 7633{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
ea04106b
AX
7634$as_echo "$lt_cv_objdir" >&6; }
7635objdir=$lt_cv_objdir
7636
7637
7638
7639
7640
7641cat >>confdefs.h <<_ACEOF
7642#define LT_OBJDIR "$lt_cv_objdir/"
7643_ACEOF
7644
7645
7646
7647
cae5b340
AX
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
ea04106b
AX
7661case $host_os in
7662aix3*)
7663 # AIX sometimes has problems with the GCC collect2 program. For some
7664 # reason, if we set the COLLECT_NAMES environment variable, the problems
7665 # vanish in a puff of smoke.
cae5b340 7666 if test "X${COLLECT_NAMES+set}" != Xset; then
ea04106b
AX
7667 COLLECT_NAMES=
7668 export COLLECT_NAMES
7669 fi
7670 ;;
7671esac
7672
cae5b340
AX
7673# Sed substitution that helps us do robust quoting. It backslashifies
7674# metacharacters that are still active within double-quoted strings.
7675sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7676
7677# Same as above, but do not quote variable references.
7678double_quote_subst='s/\(["`\\]\)/\\\1/g'
7679
7680# Sed substitution to delay expansion of an escaped shell variable in a
7681# double_quote_subst'ed string.
7682delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7683
7684# Sed substitution to delay expansion of an escaped single quote.
7685delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7686
7687# Sed substitution to avoid accidental globbing in evaled expressions
7688no_glob_subst='s/\*/\\\*/g'
7689
ea04106b
AX
7690# Global variables:
7691ofile=libtool
7692can_build_shared=yes
7693
cae5b340 7694# All known linkers require a `.a' archive for static linking (except MSVC,
ea04106b
AX
7695# which needs '.lib').
7696libext=a
7697
cae5b340 7698with_gnu_ld="$lt_cv_prog_gnu_ld"
ea04106b 7699
cae5b340
AX
7700old_CC="$CC"
7701old_CFLAGS="$CFLAGS"
ea04106b
AX
7702
7703# Set sane defaults for various variables
7704test -z "$CC" && CC=cc
7705test -z "$LTCC" && LTCC=$CC
7706test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7707test -z "$LD" && LD=ld
7708test -z "$ac_objext" && ac_objext=o
7709
cae5b340
AX
7710for cc_temp in $compiler""; do
7711 case $cc_temp in
7712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7714 \-*) ;;
7715 *) break;;
7716 esac
7717done
7718cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
ea04106b
AX
7719
7720
7721# Only perform the check for file, if the check method requires it
7722test -z "$MAGIC_CMD" && MAGIC_CMD=file
7723case $deplibs_check_method in
7724file_magic*)
7725 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cae5b340 7726 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
ea04106b 7727$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cae5b340 7728if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
ea04106b
AX
7729 $as_echo_n "(cached) " >&6
7730else
7731 case $MAGIC_CMD in
7732[\\/*] | ?:[\\/]*)
cae5b340 7733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ea04106b
AX
7734 ;;
7735*)
cae5b340
AX
7736 lt_save_MAGIC_CMD="$MAGIC_CMD"
7737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b
AX
7738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7739 for ac_dir in $ac_dummy; do
cae5b340 7740 IFS="$lt_save_ifs"
ea04106b 7741 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
7742 if test -f $ac_dir/${ac_tool_prefix}file; then
7743 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ea04106b
AX
7744 if test -n "$file_magic_test_file"; then
7745 case $deplibs_check_method in
7746 "file_magic "*)
7747 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cae5b340 7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b
AX
7749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7750 $EGREP "$file_magic_regex" > /dev/null; then
7751 :
7752 else
7753 cat <<_LT_EOF 1>&2
7754
7755*** Warning: the command libtool uses to detect shared libraries,
7756*** $file_magic_cmd, produces output that libtool cannot recognize.
7757*** The result is that libtool may fail to recognize shared libraries
7758*** as such. This will affect the creation of libtool libraries that
7759*** depend on shared libraries, but programs linked with such libtool
7760*** libraries will work regardless of this problem. Nevertheless, you
7761*** may want to report the problem to your system manager and/or to
7762*** bug-libtool@gnu.org
7763
7764_LT_EOF
7765 fi ;;
7766 esac
7767 fi
7768 break
7769 fi
7770 done
cae5b340
AX
7771 IFS="$lt_save_ifs"
7772 MAGIC_CMD="$lt_save_MAGIC_CMD"
ea04106b
AX
7773 ;;
7774esac
7775fi
7776
cae5b340 7777MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b 7778if test -n "$MAGIC_CMD"; then
cae5b340 7779 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
ea04106b
AX
7780$as_echo "$MAGIC_CMD" >&6; }
7781else
cae5b340 7782 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
7783$as_echo "no" >&6; }
7784fi
7785
7786
7787
7788
7789
7790if test -z "$lt_cv_path_MAGIC_CMD"; then
7791 if test -n "$ac_tool_prefix"; then
cae5b340 7792 { $as_echo "$as_me:$LINENO: checking for file" >&5
ea04106b 7793$as_echo_n "checking for file... " >&6; }
cae5b340 7794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
ea04106b
AX
7795 $as_echo_n "(cached) " >&6
7796else
7797 case $MAGIC_CMD in
7798[\\/*] | ?:[\\/]*)
cae5b340 7799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ea04106b
AX
7800 ;;
7801*)
cae5b340
AX
7802 lt_save_MAGIC_CMD="$MAGIC_CMD"
7803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b
AX
7804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7805 for ac_dir in $ac_dummy; do
cae5b340 7806 IFS="$lt_save_ifs"
ea04106b 7807 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
7808 if test -f $ac_dir/file; then
7809 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ea04106b
AX
7810 if test -n "$file_magic_test_file"; then
7811 case $deplibs_check_method in
7812 "file_magic "*)
7813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
cae5b340 7814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b
AX
7815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7816 $EGREP "$file_magic_regex" > /dev/null; then
7817 :
7818 else
7819 cat <<_LT_EOF 1>&2
7820
7821*** Warning: the command libtool uses to detect shared libraries,
7822*** $file_magic_cmd, produces output that libtool cannot recognize.
7823*** The result is that libtool may fail to recognize shared libraries
7824*** as such. This will affect the creation of libtool libraries that
7825*** depend on shared libraries, but programs linked with such libtool
7826*** libraries will work regardless of this problem. Nevertheless, you
7827*** may want to report the problem to your system manager and/or to
7828*** bug-libtool@gnu.org
7829
7830_LT_EOF
7831 fi ;;
7832 esac
7833 fi
7834 break
7835 fi
7836 done
cae5b340
AX
7837 IFS="$lt_save_ifs"
7838 MAGIC_CMD="$lt_save_MAGIC_CMD"
ea04106b
AX
7839 ;;
7840esac
7841fi
7842
cae5b340 7843MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b 7844if test -n "$MAGIC_CMD"; then
cae5b340 7845 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
ea04106b
AX
7846$as_echo "$MAGIC_CMD" >&6; }
7847else
cae5b340 7848 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
7849$as_echo "no" >&6; }
7850fi
7851
7852
7853 else
7854 MAGIC_CMD=:
7855 fi
7856fi
7857
7858 fi
7859 ;;
7860esac
7861
7862# Use C for the default configuration in the libtool script
7863
cae5b340 7864lt_save_CC="$CC"
ea04106b
AX
7865ac_ext=c
7866ac_cpp='$CPP $CPPFLAGS'
7867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
7871
7872# Source file extension for C test sources.
7873ac_ext=c
7874
7875# Object file extension for compiled C test sources.
7876objext=o
7877objext=$objext
7878
7879# Code to be used in simple compile tests
7880lt_simple_compile_test_code="int some_variable = 0;"
7881
7882# Code to be used in simple link tests
7883lt_simple_link_test_code='int main(){return(0);}'
7884
7885
7886
7887
7888
7889
7890
7891# If no C compiler was specified, use CC.
7892LTCC=${LTCC-"$CC"}
7893
7894# If no C compiler flags were specified, use CFLAGS.
7895LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7896
7897# Allow CC to be a program name with arguments.
7898compiler=$CC
7899
7900# Save the default compiler, since it gets overwritten when the other
7901# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7902compiler_DEFAULT=$CC
7903
7904# save warnings/boilerplate of simple test code
7905ac_outfile=conftest.$ac_objext
7906echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7907eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7908_lt_compiler_boilerplate=`cat conftest.err`
7909$RM conftest*
7910
7911ac_outfile=conftest.$ac_objext
7912echo "$lt_simple_link_test_code" >conftest.$ac_ext
7913eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7914_lt_linker_boilerplate=`cat conftest.err`
7915$RM -r conftest*
7916
7917
7918## CAVEAT EMPTOR:
7919## There is no encapsulation within the following macros, do not change
7920## the running order or otherwise move them around unless you know exactly
7921## what you are doing...
7922if test -n "$compiler"; then
7923
7924lt_prog_compiler_no_builtin_flag=
7925
cae5b340
AX
7926if test "$GCC" = yes; then
7927 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
ea04106b 7928
cae5b340 7929 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
ea04106b 7930$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cae5b340 7931if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
ea04106b
AX
7932 $as_echo_n "(cached) " >&6
7933else
7934 lt_cv_prog_compiler_rtti_exceptions=no
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cae5b340 7937 lt_compiler_flag="-fno-rtti -fno-exceptions"
ea04106b
AX
7938 # Insert the option either (1) after the last *FLAGS variable, or
7939 # (2) before a word containing "conftest.", or (3) at the end.
7940 # Note that $ac_compile itself does not contain backslashes and begins
7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
7942 # The option is referenced via a variable to avoid confusing sed.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
42f7b73b 7947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
ea04106b
AX
7948 (eval "$lt_compile" 2>conftest.err)
7949 ac_status=$?
7950 cat conftest.err >&5
42f7b73b 7951 echo "$as_me:7951: \$? = $ac_status" >&5
ea04106b
AX
7952 if (exit $ac_status) && test -s "$ac_outfile"; then
7953 # The compiler can only warn and ignore the option if not recognized
7954 # So say no if there are warnings other than the usual output.
cae5b340 7955 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
ea04106b
AX
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_rtti_exceptions=yes
7959 fi
7960 fi
7961 $RM conftest*
7962
7963fi
cae5b340 7964{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
ea04106b
AX
7965$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7966
cae5b340 7967if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
ea04106b
AX
7968 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7969else
7970 :
7971fi
7972
7973fi
7974
7975
7976
7977
7978
7979
7980 lt_prog_compiler_wl=
7981lt_prog_compiler_pic=
7982lt_prog_compiler_static=
7983
cae5b340
AX
7984{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7985$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ea04106b 7986
cae5b340 7987 if test "$GCC" = yes; then
ea04106b
AX
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_static='-static'
7990
7991 case $host_os in
7992 aix*)
7993 # All AIX code is PIC.
cae5b340 7994 if test "$host_cpu" = ia64; then
ea04106b
AX
7995 # AIX 5 now supports IA64 processor
7996 lt_prog_compiler_static='-Bstatic'
7997 fi
7998 ;;
7999
8000 amigaos*)
8001 case $host_cpu in
8002 powerpc)
8003 # see comment about AmigaOS4 .so support
8004 lt_prog_compiler_pic='-fPIC'
8005 ;;
8006 m68k)
8007 # FIXME: we need at least 68020 code to build shared libraries, but
cae5b340
AX
8008 # adding the `-m68020' flag to GCC prevents building anything better,
8009 # like `-m68040'.
ea04106b
AX
8010 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8011 ;;
8012 esac
8013 ;;
8014
8015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8016 # PIC is the default for these OSes.
8017 ;;
8018
8019 mingw* | cygwin* | pw32* | os2* | cegcc*)
8020 # This hack is so that the source file can tell whether it is being
8021 # built for inclusion in a dll (and should export symbols for example).
8022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8023 # (--disable-auto-import) libraries
8024 lt_prog_compiler_pic='-DDLL_EXPORT'
8025 ;;
8026
8027 darwin* | rhapsody*)
8028 # PIC is the default on this platform
8029 # Common symbols not allowed in MH_DYLIB files
8030 lt_prog_compiler_pic='-fno-common'
8031 ;;
8032
ea04106b
AX
8033 hpux*)
8034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8036 # sets the default TLS model and affects inlining.
8037 case $host_cpu in
8038 hppa*64*)
8039 # +Z the default
8040 ;;
8041 *)
8042 lt_prog_compiler_pic='-fPIC'
8043 ;;
8044 esac
8045 ;;
8046
8047 interix[3-9]*)
8048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8049 # Instead, we relocate shared libraries at runtime.
8050 ;;
8051
8052 msdosdjgpp*)
8053 # Just because we use GCC doesn't mean we suddenly get shared libraries
8054 # on systems that don't support them.
8055 lt_prog_compiler_can_build_shared=no
8056 enable_shared=no
8057 ;;
8058
8059 *nto* | *qnx*)
8060 # QNX uses GNU C++, but need to define -shared option too, otherwise
8061 # it will coredump.
8062 lt_prog_compiler_pic='-fPIC -shared'
8063 ;;
8064
8065 sysv4*MP*)
8066 if test -d /usr/nec; then
8067 lt_prog_compiler_pic=-Kconform_pic
8068 fi
8069 ;;
8070
8071 *)
8072 lt_prog_compiler_pic='-fPIC'
8073 ;;
8074 esac
ea04106b
AX
8075 else
8076 # PORTME Check for flag to pass linker flags through the system compiler.
8077 case $host_os in
8078 aix*)
8079 lt_prog_compiler_wl='-Wl,'
cae5b340 8080 if test "$host_cpu" = ia64; then
ea04106b
AX
8081 # AIX 5 now supports IA64 processor
8082 lt_prog_compiler_static='-Bstatic'
8083 else
8084 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8085 fi
8086 ;;
8087
8088 mingw* | cygwin* | pw32* | os2* | cegcc*)
8089 # This hack is so that the source file can tell whether it is being
8090 # built for inclusion in a dll (and should export symbols for example).
8091 lt_prog_compiler_pic='-DDLL_EXPORT'
8092 ;;
8093
8094 hpux9* | hpux10* | hpux11*)
8095 lt_prog_compiler_wl='-Wl,'
8096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8097 # not for PA HP-UX.
8098 case $host_cpu in
8099 hppa*64*|ia64*)
8100 # +Z the default
8101 ;;
8102 *)
8103 lt_prog_compiler_pic='+Z'
8104 ;;
8105 esac
8106 # Is there a better lt_prog_compiler_static that works with the bundled CC?
cae5b340 8107 lt_prog_compiler_static='${wl}-a ${wl}archive'
ea04106b
AX
8108 ;;
8109
8110 irix5* | irix6* | nonstopux*)
8111 lt_prog_compiler_wl='-Wl,'
8112 # PIC (with -KPIC) is the default.
8113 lt_prog_compiler_static='-non_shared'
8114 ;;
8115
cae5b340 8116 linux* | k*bsd*-gnu)
ea04106b 8117 case $cc_basename in
cae5b340 8118 # old Intel for x86_64 which still supported -KPIC.
ea04106b
AX
8119 ecc*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-static'
8123 ;;
8124 # icc used to be incompatible with GCC.
8125 # ICC 10 doesn't accept -KPIC any more.
8126 icc* | ifort*)
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_pic='-fPIC'
8129 lt_prog_compiler_static='-static'
8130 ;;
8131 # Lahey Fortran 8.1.
8132 lf95*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='--shared'
8135 lt_prog_compiler_static='--static'
8136 ;;
cae5b340 8137 pgcc* | pgf77* | pgf90* | pgf95*)
ea04106b
AX
8138 # Portland Group compilers (*not* the Pentium gcc compiler,
8139 # which looks to be a dead project)
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-fpic'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144 ccc*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # All Alpha code is PIC.
8147 lt_prog_compiler_static='-non_shared'
8148 ;;
cae5b340
AX
8149 xl*)
8150 # IBM XL C 8.0/Fortran 10.1 on PPC
ea04106b
AX
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-qpic'
8153 lt_prog_compiler_static='-qstaticlink'
8154 ;;
8155 *)
8156 case `$CC -V 2>&1 | sed 5q` in
ea04106b
AX
8157 *Sun\ C*)
8158 # Sun C 5.9
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-Bstatic'
8161 lt_prog_compiler_wl='-Wl,'
8162 ;;
cae5b340
AX
8163 *Sun\ F*)
8164 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8165 lt_prog_compiler_pic='-KPIC'
ea04106b 8166 lt_prog_compiler_static='-Bstatic'
cae5b340 8167 lt_prog_compiler_wl=''
ea04106b
AX
8168 ;;
8169 esac
8170 ;;
8171 esac
8172 ;;
8173
8174 newsos6)
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 *nto* | *qnx*)
8180 # QNX uses GNU C++, but need to define -shared option too, otherwise
8181 # it will coredump.
8182 lt_prog_compiler_pic='-fPIC -shared'
8183 ;;
8184
8185 osf3* | osf4* | osf5*)
8186 lt_prog_compiler_wl='-Wl,'
8187 # All OSF/1 code is PIC.
8188 lt_prog_compiler_static='-non_shared'
8189 ;;
8190
8191 rdos*)
8192 lt_prog_compiler_static='-non_shared'
8193 ;;
8194
8195 solaris*)
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8198 case $cc_basename in
cae5b340 8199 f77* | f90* | f95*)
ea04106b
AX
8200 lt_prog_compiler_wl='-Qoption ld ';;
8201 *)
8202 lt_prog_compiler_wl='-Wl,';;
8203 esac
8204 ;;
8205
8206 sunos4*)
8207 lt_prog_compiler_wl='-Qoption ld '
8208 lt_prog_compiler_pic='-PIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 ;;
8211
8212 sysv4 | sysv4.2uw2* | sysv4.3*)
8213 lt_prog_compiler_wl='-Wl,'
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8216 ;;
8217
8218 sysv4*MP*)
cae5b340 8219 if test -d /usr/nec ;then
ea04106b
AX
8220 lt_prog_compiler_pic='-Kconform_pic'
8221 lt_prog_compiler_static='-Bstatic'
8222 fi
8223 ;;
8224
8225 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_pic='-KPIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 ;;
8230
8231 unicos*)
8232 lt_prog_compiler_wl='-Wl,'
8233 lt_prog_compiler_can_build_shared=no
8234 ;;
8235
8236 uts4*)
8237 lt_prog_compiler_pic='-pic'
8238 lt_prog_compiler_static='-Bstatic'
8239 ;;
8240
8241 *)
8242 lt_prog_compiler_can_build_shared=no
8243 ;;
8244 esac
8245 fi
8246
8247case $host_os in
cae5b340 8248 # For platforms which do not support PIC, -DPIC is meaningless:
ea04106b
AX
8249 *djgpp*)
8250 lt_prog_compiler_pic=
8251 ;;
8252 *)
8253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8254 ;;
8255esac
cae5b340
AX
8256{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8257$as_echo "$lt_prog_compiler_pic" >&6; }
8258
8259
8260
8261
ea04106b 8262
ea04106b
AX
8263
8264#
8265# Check to make sure the PIC flag actually works.
8266#
8267if test -n "$lt_prog_compiler_pic"; then
cae5b340 8268 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
ea04106b 8269$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cae5b340 8270if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
ea04106b
AX
8271 $as_echo_n "(cached) " >&6
8272else
8273 lt_cv_prog_compiler_pic_works=no
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cae5b340 8276 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
ea04106b
AX
8277 # Insert the option either (1) after the last *FLAGS variable, or
8278 # (2) before a word containing "conftest.", or (3) at the end.
8279 # Note that $ac_compile itself does not contain backslashes and begins
8280 # with a dollar sign (not a hyphen), so the echo should work correctly.
8281 # The option is referenced via a variable to avoid confusing sed.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
42f7b73b 8286 (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
ea04106b
AX
8287 (eval "$lt_compile" 2>conftest.err)
8288 ac_status=$?
8289 cat conftest.err >&5
42f7b73b 8290 echo "$as_me:8290: \$? = $ac_status" >&5
ea04106b
AX
8291 if (exit $ac_status) && test -s "$ac_outfile"; then
8292 # The compiler can only warn and ignore the option if not recognized
8293 # So say no if there are warnings other than the usual output.
cae5b340 8294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
ea04106b
AX
8295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8297 lt_cv_prog_compiler_pic_works=yes
8298 fi
8299 fi
8300 $RM conftest*
8301
8302fi
cae5b340 8303{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
ea04106b
AX
8304$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8305
cae5b340 8306if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ea04106b
AX
8307 case $lt_prog_compiler_pic in
8308 "" | " "*) ;;
8309 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8310 esac
8311else
8312 lt_prog_compiler_pic=
8313 lt_prog_compiler_can_build_shared=no
8314fi
8315
8316fi
8317
8318
8319
8320
8321
8322
ea04106b
AX
8323#
8324# Check to make sure the static flag actually works.
8325#
8326wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cae5b340 8327{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
ea04106b 8328$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cae5b340 8329if test "${lt_cv_prog_compiler_static_works+set}" = set; then
ea04106b
AX
8330 $as_echo_n "(cached) " >&6
8331else
8332 lt_cv_prog_compiler_static_works=no
cae5b340 8333 save_LDFLAGS="$LDFLAGS"
ea04106b
AX
8334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8337 # The linker can only warn and ignore the option if not recognized
8338 # So say no if there are warnings
8339 if test -s conftest.err; then
8340 # Append any errors to the config.log.
8341 cat conftest.err 1>&5
cae5b340 8342 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
ea04106b
AX
8343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8344 if diff conftest.exp conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_static_works=yes
8346 fi
8347 else
8348 lt_cv_prog_compiler_static_works=yes
8349 fi
8350 fi
8351 $RM -r conftest*
cae5b340 8352 LDFLAGS="$save_LDFLAGS"
ea04106b
AX
8353
8354fi
cae5b340 8355{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
ea04106b
AX
8356$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8357
cae5b340 8358if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ea04106b
AX
8359 :
8360else
8361 lt_prog_compiler_static=
8362fi
8363
8364
8365
8366
8367
8368
8369
cae5b340 8370 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
ea04106b 8371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cae5b340 8372if test "${lt_cv_prog_compiler_c_o+set}" = set; then
ea04106b
AX
8373 $as_echo_n "(cached) " >&6
8374else
8375 lt_cv_prog_compiler_c_o=no
8376 $RM -r conftest 2>/dev/null
8377 mkdir conftest
8378 cd conftest
8379 mkdir out
8380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8381
8382 lt_compiler_flag="-o out/conftest2.$ac_objext"
8383 # Insert the option either (1) after the last *FLAGS variable, or
8384 # (2) before a word containing "conftest.", or (3) at the end.
8385 # Note that $ac_compile itself does not contain backslashes and begins
8386 # with a dollar sign (not a hyphen), so the echo should work correctly.
8387 lt_compile=`echo "$ac_compile" | $SED \
8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390 -e 's:$: $lt_compiler_flag:'`
42f7b73b 8391 (eval echo "\"\$as_me:8391: $lt_compile\"" >&5)
ea04106b
AX
8392 (eval "$lt_compile" 2>out/conftest.err)
8393 ac_status=$?
8394 cat out/conftest.err >&5
42f7b73b 8395 echo "$as_me:8395: \$? = $ac_status" >&5
ea04106b
AX
8396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8397 then
8398 # The compiler can only warn and ignore the option if not recognized
8399 # So say no if there are warnings
cae5b340 8400 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
ea04106b
AX
8401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8403 lt_cv_prog_compiler_c_o=yes
8404 fi
8405 fi
8406 chmod u+w . 2>&5
8407 $RM conftest*
8408 # SGI C++ compiler will create directory out/ii_files/ for
8409 # template instantiation
8410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8411 $RM out/* && rmdir out
8412 cd ..
8413 $RM -r conftest
8414 $RM conftest*
8415
8416fi
cae5b340 8417{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
ea04106b
AX
8418$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419
8420
8421
8422
8423
8424
cae5b340 8425 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
ea04106b 8426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cae5b340 8427if test "${lt_cv_prog_compiler_c_o+set}" = set; then
ea04106b
AX
8428 $as_echo_n "(cached) " >&6
8429else
8430 lt_cv_prog_compiler_c_o=no
8431 $RM -r conftest 2>/dev/null
8432 mkdir conftest
8433 cd conftest
8434 mkdir out
8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436
8437 lt_compiler_flag="-o out/conftest2.$ac_objext"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 lt_compile=`echo "$ac_compile" | $SED \
8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445 -e 's:$: $lt_compiler_flag:'`
42f7b73b 8446 (eval echo "\"\$as_me:8446: $lt_compile\"" >&5)
ea04106b
AX
8447 (eval "$lt_compile" 2>out/conftest.err)
8448 ac_status=$?
8449 cat out/conftest.err >&5
42f7b73b 8450 echo "$as_me:8450: \$? = $ac_status" >&5
ea04106b
AX
8451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8452 then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings
cae5b340 8455 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
ea04106b
AX
8456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_c_o=yes
8459 fi
8460 fi
8461 chmod u+w . 2>&5
8462 $RM conftest*
8463 # SGI C++ compiler will create directory out/ii_files/ for
8464 # template instantiation
8465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8466 $RM out/* && rmdir out
8467 cd ..
8468 $RM -r conftest
8469 $RM conftest*
8470
8471fi
cae5b340 8472{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
ea04106b
AX
8473$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8474
8475
8476
8477
cae5b340
AX
8478hard_links="nottested"
8479if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
ea04106b 8480 # do not overwrite the value of need_locks provided by the user
cae5b340 8481 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
ea04106b
AX
8482$as_echo_n "checking if we can lock with hard links... " >&6; }
8483 hard_links=yes
8484 $RM conftest*
8485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8486 touch conftest.a
8487 ln conftest.a conftest.b 2>&5 || hard_links=no
8488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cae5b340 8489 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
ea04106b 8490$as_echo "$hard_links" >&6; }
cae5b340
AX
8491 if test "$hard_links" = no; then
8492 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ea04106b
AX
8494 need_locks=warn
8495 fi
8496else
8497 need_locks=no
8498fi
8499
8500
8501
8502
8503
8504
cae5b340 8505 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
ea04106b
AX
8506$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8507
8508 runpath_var=
8509 allow_undefined_flag=
8510 always_export_symbols=no
8511 archive_cmds=
8512 archive_expsym_cmds=
8513 compiler_needs_object=no
8514 enable_shared_with_static_runtimes=no
8515 export_dynamic_flag_spec=
8516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8517 hardcode_automatic=no
8518 hardcode_direct=no
8519 hardcode_direct_absolute=no
8520 hardcode_libdir_flag_spec=
cae5b340 8521 hardcode_libdir_flag_spec_ld=
ea04106b
AX
8522 hardcode_libdir_separator=
8523 hardcode_minus_L=no
8524 hardcode_shlibpath_var=unsupported
8525 inherit_rpath=no
8526 link_all_deplibs=unknown
8527 module_cmds=
8528 module_expsym_cmds=
8529 old_archive_from_new_cmds=
8530 old_archive_from_expsyms_cmds=
8531 thread_safe_flag_spec=
8532 whole_archive_flag_spec=
8533 # include_expsyms should be a list of space-separated symbols to be *always*
8534 # included in the symbol list
8535 include_expsyms=
8536 # exclude_expsyms can be an extended regexp of symbols to exclude
cae5b340
AX
8537 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8538 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8539 # as well as any symbol that contains `d'.
ea04106b
AX
8540 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8541 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8542 # platforms (ab)use it in PIC code, but their linkers get confused if
8543 # the symbol is explicitly referenced. Since portable code cannot
8544 # rely on this symbol name, it's probably fine to never include it in
8545 # preloaded symbol tables.
8546 # Exclude shared library initialization/finalization symbols.
8547 extract_expsyms_cmds=
8548
8549 case $host_os in
8550 cygwin* | mingw* | pw32* | cegcc*)
8551 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8552 # When not using gcc, we currently assume that we are using
8553 # Microsoft Visual C++.
cae5b340 8554 if test "$GCC" != yes; then
ea04106b
AX
8555 with_gnu_ld=no
8556 fi
8557 ;;
8558 interix*)
8559 # we just hope/assume this is gcc and not c89 (= MSVC++)
8560 with_gnu_ld=yes
8561 ;;
cae5b340 8562 openbsd*)
ea04106b
AX
8563 with_gnu_ld=no
8564 ;;
ea04106b
AX
8565 esac
8566
8567 ld_shlibs=yes
cae5b340 8568 if test "$with_gnu_ld" = yes; then
ea04106b 8569 # If archive_cmds runs LD, not CC, wlarc should be empty
cae5b340 8570 wlarc='${wl}'
ea04106b
AX
8571
8572 # Set some defaults for GNU ld with shared library support. These
8573 # are reset later if shared libraries are not supported. Putting them
8574 # here allows them to be overridden if necessary.
8575 runpath_var=LD_RUN_PATH
cae5b340
AX
8576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8577 export_dynamic_flag_spec='${wl}--export-dynamic'
ea04106b
AX
8578 # ancient GNU ld didn't support --whole-archive et. al.
8579 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cae5b340 8580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
ea04106b
AX
8581 else
8582 whole_archive_flag_spec=
8583 fi
8584 supports_anon_versioning=no
cae5b340 8585 case `$LD -v 2>&1` in
ea04106b
AX
8586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8589 *\ 2.11.*) ;; # other 2.11 versions
8590 *) supports_anon_versioning=yes ;;
8591 esac
8592
8593 # See if GNU ld supports shared libraries.
8594 case $host_os in
8595 aix[3-9]*)
8596 # On AIX/PPC, the GNU linker is very broken
cae5b340 8597 if test "$host_cpu" != ia64; then
ea04106b
AX
8598 ld_shlibs=no
8599 cat <<_LT_EOF 1>&2
8600
cae5b340 8601*** Warning: the GNU linker, at least up to release 2.9.1, is reported
ea04106b
AX
8602*** to be unable to reliably create shared libraries on AIX.
8603*** Therefore, libtool is disabling shared libraries support. If you
cae5b340
AX
8604*** really care for shared libraries, you may want to modify your PATH
8605*** so that a non-GNU linker is found, and then restart.
ea04106b
AX
8606
8607_LT_EOF
8608 fi
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
cae5b340 8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
8616 archive_expsym_cmds=''
8617 ;;
8618 m68k)
8619 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)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8622 ;;
8623 esac
8624 ;;
8625
8626 beos*)
8627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628 allow_undefined_flag=unsupported
8629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8630 # support --undefined. This deserves some investigation. FIXME
cae5b340 8631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
8637 cygwin* | mingw* | pw32* | cegcc*)
8638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639 # as there is no search path for DLLs.
8640 hardcode_libdir_flag_spec='-L$libdir'
ea04106b
AX
8641 allow_undefined_flag=unsupported
8642 always_export_symbols=no
8643 enable_shared_with_static_runtimes=yes
cae5b340 8644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
ea04106b
AX
8645
8646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cae5b340
AX
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648 # If the export-symbols file already is a .def file (1st line
8649 # is EXPORTS), use it as is; otherwise, prepend...
8650 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8651 cp $export_symbols $output_objdir/$soname.def;
8652 else
8653 echo EXPORTS > $output_objdir/$soname.def;
8654 cat $export_symbols >> $output_objdir/$soname.def;
8655 fi~
8656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
ea04106b
AX
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
ea04106b
AX
8662 interix[3-9]*)
8663 hardcode_direct=no
8664 hardcode_shlibpath_var=no
cae5b340
AX
8665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
8667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8668 # Instead, shared libraries are loaded at an image base (0x10000000 by
8669 # default) and relocated if they conflict, which is a slow very memory
8670 # consuming and fragmenting process. To avoid this, we pick a random,
8671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
cae5b340
AX
8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8674 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'
ea04106b
AX
8675 ;;
8676
cae5b340 8677 gnu* | linux* | tpf* | k*bsd*-gnu)
ea04106b 8678 tmp_diet=no
cae5b340 8679 if test "$host_os" = linux-dietlibc; then
ea04106b
AX
8680 case $cc_basename in
8681 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8682 esac
8683 fi
8684 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
cae5b340 8685 && test "$tmp_diet" = no
ea04106b 8686 then
cae5b340 8687 tmp_addflag=
ea04106b
AX
8688 tmp_sharedflag='-shared'
8689 case $cc_basename,$host_cpu in
8690 pgcc*) # Portland Group C compiler
cae5b340 8691 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
ea04106b
AX
8692 tmp_addflag=' $pic_flag'
8693 ;;
cae5b340
AX
8694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8695 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
ea04106b
AX
8696 tmp_addflag=' $pic_flag -Mnomain' ;;
8697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8698 tmp_addflag=' -i_dynamic' ;;
8699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8700 tmp_addflag=' -i_dynamic -nofor_main' ;;
8701 ifc* | ifort*) # Intel Fortran compiler
8702 tmp_addflag=' -nofor_main' ;;
8703 lf95*) # Lahey Fortran 8.1
8704 whole_archive_flag_spec=
8705 tmp_sharedflag='--shared' ;;
cae5b340 8706 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
ea04106b
AX
8707 tmp_sharedflag='-qmkshrobj'
8708 tmp_addflag= ;;
ea04106b
AX
8709 esac
8710 case `$CC -V 2>&1 | sed 5q` in
8711 *Sun\ C*) # Sun C 5.9
cae5b340 8712 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
ea04106b
AX
8713 compiler_needs_object=yes
8714 tmp_sharedflag='-G' ;;
8715 *Sun\ F*) # Sun Fortran 8.3
8716 tmp_sharedflag='-G' ;;
8717 esac
cae5b340 8718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b 8719
cae5b340 8720 if test "x$supports_anon_versioning" = xyes; then
ea04106b 8721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cae5b340
AX
8722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8723 echo "local: *; };" >> $output_objdir/$libname.ver~
8724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
ea04106b
AX
8725 fi
8726
8727 case $cc_basename in
cae5b340 8728 xlf*)
ea04106b
AX
8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cae5b340
AX
8731 hardcode_libdir_flag_spec=
8732 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8733 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8734 if test "x$supports_anon_versioning" = xyes; then
ea04106b 8735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cae5b340
AX
8736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8737 echo "local: *; };" >> $output_objdir/$libname.ver~
8738 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
ea04106b
AX
8739 fi
8740 ;;
8741 esac
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746
22929307 8747 netbsd*)
ea04106b
AX
8748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8750 wlarc=
8751 else
cae5b340
AX
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8754 fi
8755 ;;
8756
8757 solaris*)
8758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8759 ld_shlibs=no
8760 cat <<_LT_EOF 1>&2
8761
8762*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8763*** create shared libraries on Solaris systems. Therefore, libtool
8764*** is disabling shared libraries support. We urge you to upgrade GNU
8765*** binutils to release 2.9.1 or newer. Another option is to modify
8766*** your PATH or compiler configuration so that the native linker is
8767*** used, and then restart.
8768
8769_LT_EOF
8770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cae5b340
AX
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8773 else
8774 ld_shlibs=no
8775 fi
8776 ;;
8777
8778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8779 case `$LD -v 2>&1` in
8780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8781 ld_shlibs=no
8782 cat <<_LT_EOF 1>&2
8783
cae5b340 8784*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
ea04106b
AX
8785*** reliably create shared libraries on SCO systems. Therefore, libtool
8786*** is disabling shared libraries support. We urge you to upgrade GNU
8787*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8788*** your PATH or compiler configuration so that the native linker is
8789*** used, and then restart.
8790
8791_LT_EOF
8792 ;;
8793 *)
8794 # For security reasons, it is highly recommended that you always
8795 # use absolute paths for naming shared libraries, and exclude the
8796 # DT_RUNPATH tag from executables and libraries. But doing so
8797 # requires that you compile everything twice, which is a pain.
8798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cae5b340
AX
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8802 else
8803 ld_shlibs=no
8804 fi
8805 ;;
8806 esac
8807 ;;
8808
8809 sunos4*)
8810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811 wlarc=
8812 hardcode_direct=yes
8813 hardcode_shlibpath_var=no
8814 ;;
8815
8816 *)
8817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cae5b340
AX
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ea04106b
AX
8820 else
8821 ld_shlibs=no
8822 fi
8823 ;;
8824 esac
8825
cae5b340 8826 if test "$ld_shlibs" = no; then
ea04106b
AX
8827 runpath_var=
8828 hardcode_libdir_flag_spec=
8829 export_dynamic_flag_spec=
8830 whole_archive_flag_spec=
8831 fi
8832 else
8833 # PORTME fill in a description of your system's linker (not GNU ld)
8834 case $host_os in
8835 aix3*)
8836 allow_undefined_flag=unsupported
8837 always_export_symbols=yes
8838 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'
8839 # Note: this linker hardcodes the directories in LIBPATH if there
8840 # are no directories specified by -L.
8841 hardcode_minus_L=yes
cae5b340 8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
ea04106b
AX
8843 # Neither direct hardcoding nor static linking is supported with a
8844 # broken collect2.
8845 hardcode_direct=unsupported
8846 fi
8847 ;;
8848
8849 aix[4-9]*)
cae5b340 8850 if test "$host_cpu" = ia64; then
ea04106b
AX
8851 # On IA64, the linker does run time linking by default, so we don't
8852 # have to do anything special.
8853 aix_use_runtimelinking=no
8854 exp_sym_flag='-Bexport'
cae5b340 8855 no_entry_flag=""
ea04106b
AX
8856 else
8857 # If we're using GNU nm, then we don't want the "-C" option.
cae5b340 8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ea04106b 8859 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cae5b340 8860 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ea04106b 8861 else
cae5b340 8862 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ea04106b
AX
8863 fi
8864 aix_use_runtimelinking=no
8865
8866 # Test if we are trying to use run time linking or normal
8867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
cae5b340 8868 # need to do runtime linking.
ea04106b
AX
8869 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8870 for ld_flag in $LDFLAGS; do
cae5b340 8871 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
ea04106b
AX
8872 aix_use_runtimelinking=yes
8873 break
8874 fi
8875 done
8876 ;;
8877 esac
8878
8879 exp_sym_flag='-bexport'
8880 no_entry_flag='-bnoentry'
8881 fi
8882
8883 # When large executables or shared objects are built, AIX ld can
8884 # have problems creating the table of contents. If linking a library
8885 # or program results in "error TOC overflow" add -mminimal-toc to
8886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8888
8889 archive_cmds=''
8890 hardcode_direct=yes
8891 hardcode_direct_absolute=yes
8892 hardcode_libdir_separator=':'
8893 link_all_deplibs=yes
cae5b340 8894 file_list_spec='${wl}-f,'
ea04106b 8895
cae5b340 8896 if test "$GCC" = yes; then
ea04106b
AX
8897 case $host_os in aix4.[012]|aix4.[012].*)
8898 # We only want to do this on AIX 4.2 and lower, the check
8899 # below for broken collect2 doesn't work under 4.3+
cae5b340 8900 collect2name=`${CC} -print-prog-name=collect2`
ea04106b
AX
8901 if test -f "$collect2name" &&
8902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8903 then
8904 # We have reworked collect2
8905 :
8906 else
8907 # We have old collect2
8908 hardcode_direct=unsupported
8909 # It fails to find uninstalled libraries when the uninstalled
8910 # path is not listed in the libpath. Setting hardcode_minus_L
8911 # to unsupported forces relinking
8912 hardcode_minus_L=yes
8913 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_libdir_separator=
8915 fi
8916 ;;
8917 esac
8918 shared_flag='-shared'
cae5b340
AX
8919 if test "$aix_use_runtimelinking" = yes; then
8920 shared_flag="$shared_flag "'${wl}-G'
ea04106b 8921 fi
ea04106b
AX
8922 else
8923 # not using gcc
cae5b340 8924 if test "$host_cpu" = ia64; then
ea04106b
AX
8925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8926 # chokes on -Wl,-G. The following line is correct:
8927 shared_flag='-G'
8928 else
cae5b340
AX
8929 if test "$aix_use_runtimelinking" = yes; then
8930 shared_flag='${wl}-G'
ea04106b 8931 else
cae5b340 8932 shared_flag='${wl}-bM:SRE'
ea04106b
AX
8933 fi
8934 fi
8935 fi
8936
cae5b340 8937 export_dynamic_flag_spec='${wl}-bexpall'
ea04106b
AX
8938 # It seems that -bexpall does not export symbols beginning with
8939 # underscore (_), so it is better to generate a list of symbols to export.
8940 always_export_symbols=yes
cae5b340 8941 if test "$aix_use_runtimelinking" = yes; then
ea04106b
AX
8942 # Warning - without using the other runtime loading flags (-brtl),
8943 # -berok will link without error, but may produce a broken library.
8944 allow_undefined_flag='-berok'
8945 # Determine the default libpath from the value encoded in an
8946 # empty executable.
cae5b340
AX
8947 cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
8952/* end confdefs.h. */
8953
8954int
8955main ()
8956{
8957
8958 ;
8959 return 0;
8960}
8961_ACEOF
cae5b340
AX
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (ac_try="$ac_link"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969$as_echo "$ac_try_echo") >&5
8970 (eval "$ac_link") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext && {
8980 test "$cross_compiling" = yes ||
8981 $as_test_x conftest$ac_exeext
8982 }; then
8983
8984lt_aix_libpath_sed='
8985 /Import File Strings/,/^$/ {
8986 /^0/ {
8987 s/^0 *\(.*\)$/\1/
8988 p
8989 }
8990 }'
8991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8992# Check for a 64-bit object if we didn't find anything.
8993if test -z "$aix_libpath"; then
8994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
ea04106b 8995fi
cae5b340
AX
8996else
8997 $as_echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 8999
ea04106b 9000
ea04106b
AX
9001fi
9002
cae5b340
AX
9003rm -rf conftest.dSYM
9004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005 conftest$ac_exeext conftest.$ac_ext
9006if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9007
9008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9009 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
ea04106b 9010 else
cae5b340
AX
9011 if test "$host_cpu" = ia64; then
9012 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
ea04106b 9013 allow_undefined_flag="-z nodefs"
cae5b340 9014 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"
ea04106b
AX
9015 else
9016 # Determine the default libpath from the value encoded in an
9017 # empty executable.
cae5b340
AX
9018 cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
9023/* end confdefs.h. */
9024
9025int
9026main ()
9027{
9028
9029 ;
9030 return 0;
9031}
9032_ACEOF
cae5b340
AX
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (ac_try="$ac_link"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040$as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest$ac_exeext
9053 }; then
9054
9055lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9057 /^0/ {
9058 s/^0 *\(.*\)$/\1/
9059 p
9060 }
9061 }'
9062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063# Check for a 64-bit object if we didn't find anything.
9064if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
ea04106b 9066fi
cae5b340
AX
9067else
9068 $as_echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 9070
ea04106b 9071
ea04106b
AX
9072fi
9073
cae5b340
AX
9074rm -rf conftest.dSYM
9075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076 conftest$ac_exeext conftest.$ac_ext
9077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9078
9079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
ea04106b
AX
9080 # Warning - without using the other run time loading flags,
9081 # -berok will link without error, but may produce a broken library.
cae5b340
AX
9082 no_undefined_flag=' ${wl}-bernotok'
9083 allow_undefined_flag=' ${wl}-berok'
9084 # Exported symbols can be pulled into shared objects from archives
9085 whole_archive_flag_spec='$convenience'
ea04106b 9086 archive_cmds_need_lc=yes
cae5b340
AX
9087 # This is similar to how AIX traditionally builds its shared libraries.
9088 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
ea04106b
AX
9089 fi
9090 fi
9091 ;;
9092
9093 amigaos*)
9094 case $host_cpu in
9095 powerpc)
9096 # see comment about AmigaOS4 .so support
cae5b340 9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
9098 archive_expsym_cmds=''
9099 ;;
9100 m68k)
9101 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)'
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_minus_L=yes
9104 ;;
9105 esac
9106 ;;
9107
9108 bsdi[45]*)
9109 export_dynamic_flag_spec=-rdynamic
9110 ;;
9111
9112 cygwin* | mingw* | pw32* | cegcc*)
9113 # When not using gcc, we currently assume that we are using
9114 # Microsoft Visual C++.
9115 # hardcode_libdir_flag_spec is actually meaningless, as there is
9116 # no search path for DLLs.
cae5b340
AX
9117 hardcode_libdir_flag_spec=' '
9118 allow_undefined_flag=unsupported
9119 # Tell ltmain to make .lib files, not .a files.
9120 libext=lib
9121 # Tell ltmain to make .dll files, not .so files.
9122 shrext_cmds=".dll"
9123 # FIXME: Setting linknames here is a bad hack.
9124 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9125 # The linker will automatically build a .lib file if we build a DLL.
9126 old_archive_from_new_cmds='true'
9127 # FIXME: Should let the user specify the lib program.
9128 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9129 fix_srcfile_path='`cygpath -w "$srcfile"`'
9130 enable_shared_with_static_runtimes=yes
ea04106b
AX
9131 ;;
9132
9133 darwin* | rhapsody*)
9134
9135
9136 archive_cmds_need_lc=no
9137 hardcode_direct=no
9138 hardcode_automatic=yes
9139 hardcode_shlibpath_var=unsupported
cae5b340 9140 whole_archive_flag_spec=''
ea04106b 9141 link_all_deplibs=yes
cae5b340 9142 allow_undefined_flag="$_lt_dar_allow_undefined"
ea04106b 9143 case $cc_basename in
cae5b340 9144 ifort*) _lt_dar_can_shared=yes ;;
ea04106b
AX
9145 *) _lt_dar_can_shared=$GCC ;;
9146 esac
cae5b340
AX
9147 if test "$_lt_dar_can_shared" = "yes"; then
9148 output_verbose_link_cmd=echo
9149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9151 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}"
9152 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}"
ea04106b
AX
9153
9154 else
9155 ld_shlibs=no
9156 fi
9157
9158 ;;
9159
9160 dgux*)
9161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_shlibpath_var=no
9164 ;;
9165
cae5b340
AX
9166 freebsd1*)
9167 ld_shlibs=no
9168 ;;
9169
ea04106b
AX
9170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9171 # support. Future versions do this automatically, but an explicit c++rt0.o
9172 # does not break anything, and helps significantly (at the cost of a little
9173 # extra space).
9174 freebsd2.2*)
9175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9176 hardcode_libdir_flag_spec='-R$libdir'
9177 hardcode_direct=yes
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cae5b340 9182 freebsd2*)
ea04106b
AX
9183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184 hardcode_direct=yes
9185 hardcode_minus_L=yes
9186 hardcode_shlibpath_var=no
9187 ;;
9188
9189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9190 freebsd* | dragonfly*)
cae5b340 9191 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9192 hardcode_libdir_flag_spec='-R$libdir'
9193 hardcode_direct=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 hpux9*)
cae5b340
AX
9198 if test "$GCC" = yes; then
9199 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
ea04106b 9200 else
cae5b340 9201 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
ea04106b 9202 fi
cae5b340 9203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
ea04106b
AX
9204 hardcode_libdir_separator=:
9205 hardcode_direct=yes
9206
9207 # hardcode_minus_L: Not really in the search PATH,
9208 # but as the default location of the library.
9209 hardcode_minus_L=yes
cae5b340 9210 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9211 ;;
9212
9213 hpux10*)
cae5b340
AX
9214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9216 else
9217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9218 fi
cae5b340
AX
9219 if test "$with_gnu_ld" = no; then
9220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9221 hardcode_libdir_flag_spec_ld='+b $libdir'
ea04106b
AX
9222 hardcode_libdir_separator=:
9223 hardcode_direct=yes
9224 hardcode_direct_absolute=yes
cae5b340 9225 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9226 # hardcode_minus_L: Not really in the search PATH,
9227 # but as the default location of the library.
9228 hardcode_minus_L=yes
9229 fi
9230 ;;
9231
9232 hpux11*)
cae5b340 9233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
ea04106b
AX
9234 case $host_cpu in
9235 hppa*64*)
cae5b340 9236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9237 ;;
9238 ia64*)
cae5b340 9239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9240 ;;
9241 *)
cae5b340 9242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9243 ;;
9244 esac
9245 else
9246 case $host_cpu in
9247 hppa*64*)
cae5b340 9248 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9249 ;;
9250 ia64*)
cae5b340 9251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9252 ;;
9253 *)
cae5b340 9254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9255 ;;
9256 esac
9257 fi
cae5b340
AX
9258 if test "$with_gnu_ld" = no; then
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
ea04106b
AX
9260 hardcode_libdir_separator=:
9261
9262 case $host_cpu in
9263 hppa*64*|ia64*)
9264 hardcode_direct=no
9265 hardcode_shlibpath_var=no
9266 ;;
9267 *)
9268 hardcode_direct=yes
9269 hardcode_direct_absolute=yes
cae5b340 9270 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9271
9272 # hardcode_minus_L: Not really in the search PATH,
9273 # but as the default location of the library.
9274 hardcode_minus_L=yes
9275 ;;
9276 esac
9277 fi
9278 ;;
9279
9280 irix5* | irix6* | nonstopux*)
cae5b340
AX
9281 if test "$GCC" = yes; then
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ea04106b
AX
9283 # Try to use the -exported_symbol ld option, if it does not
9284 # work, assume that -exports_file does not work either and
9285 # implicitly export all symbols.
cae5b340
AX
9286 save_LDFLAGS="$LDFLAGS"
9287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288 cat >conftest.$ac_ext <<_ACEOF
9289int foo(void) {}
ea04106b 9290_ACEOF
cae5b340
AX
9291rm -f conftest.$ac_objext conftest$ac_exeext
9292if { (ac_try="$ac_link"
9293case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296esac
9297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9298$as_echo "$ac_try_echo") >&5
9299 (eval "$ac_link") 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest$ac_exeext && {
9309 test "$cross_compiling" = yes ||
9310 $as_test_x conftest$ac_exeext
9311 }; then
9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9313
ea04106b 9314else
cae5b340
AX
9315 $as_echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318
ea04106b 9319fi
cae5b340
AX
9320
9321rm -rf conftest.dSYM
9322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LDFLAGS="$save_LDFLAGS"
ea04106b 9325 else
cae5b340
AX
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
ea04106b
AX
9328 fi
9329 archive_cmds_need_lc='no'
cae5b340 9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9331 hardcode_libdir_separator=:
9332 inherit_rpath=yes
9333 link_all_deplibs=yes
9334 ;;
9335
22929307 9336 netbsd*)
ea04106b
AX
9337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9339 else
9340 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9341 fi
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_direct=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 newsos6)
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_direct=yes
cae5b340 9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9351 hardcode_libdir_separator=:
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 *nto* | *qnx*)
9356 ;;
9357
cae5b340 9358 openbsd*)
ea04106b
AX
9359 if test -f /usr/libexec/ld.so; then
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9362 hardcode_direct_absolute=yes
cae5b340 9363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ea04106b 9364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cae5b340
AX
9365 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9367 export_dynamic_flag_spec='${wl}-E'
ea04106b 9368 else
cae5b340
AX
9369 case $host_os in
9370 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 ;;
9374 *)
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9377 ;;
9378 esac
ea04106b
AX
9379 fi
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 os2*)
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_minus_L=yes
9388 allow_undefined_flag=unsupported
cae5b340
AX
9389 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9390 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
ea04106b
AX
9391 ;;
9392
9393 osf3*)
cae5b340
AX
9394 if test "$GCC" = yes; then
9395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9396 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ea04106b
AX
9397 else
9398 allow_undefined_flag=' -expect_unresolved \*'
cae5b340 9399 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
ea04106b
AX
9400 fi
9401 archive_cmds_need_lc='no'
cae5b340 9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9403 hardcode_libdir_separator=:
9404 ;;
9405
9406 osf4* | osf5*) # as osf3* with the addition of -msym flag
cae5b340
AX
9407 if test "$GCC" = yes; then
9408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9409 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9411 else
9412 allow_undefined_flag=' -expect_unresolved \*'
cae5b340 9413 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
ea04106b 9414 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~
cae5b340 9415 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
ea04106b
AX
9416
9417 # Both c and cxx compiler support -rpath directly
9418 hardcode_libdir_flag_spec='-rpath $libdir'
9419 fi
9420 archive_cmds_need_lc='no'
9421 hardcode_libdir_separator=:
9422 ;;
9423
9424 solaris*)
9425 no_undefined_flag=' -z defs'
cae5b340
AX
9426 if test "$GCC" = yes; then
9427 wlarc='${wl}'
9428 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9430 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ea04106b
AX
9431 else
9432 case `$CC -V 2>&1` in
9433 *"Compilers 5.0"*)
9434 wlarc=''
cae5b340 9435 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
ea04106b 9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9437 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
ea04106b
AX
9438 ;;
9439 *)
cae5b340
AX
9440 wlarc='${wl}'
9441 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9443 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ea04106b
AX
9444 ;;
9445 esac
9446 fi
9447 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9449 case $host_os in
9450 solaris2.[0-5] | solaris2.[0-5].*) ;;
9451 *)
9452 # The compiler driver will combine and reorder linker options,
cae5b340 9453 # but understands `-z linker_flag'. GCC discards it without `$wl',
ea04106b
AX
9454 # but is careful enough not to reorder.
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
cae5b340
AX
9456 if test "$GCC" = yes; then
9457 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
ea04106b
AX
9458 else
9459 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9460 fi
9461 ;;
9462 esac
9463 link_all_deplibs=yes
9464 ;;
9465
9466 sunos4*)
cae5b340 9467 if test "x$host_vendor" = xsequent; then
ea04106b
AX
9468 # Use $CC to link under sequent, because it throws in some extra .o
9469 # files that make .init and .fini sections work.
cae5b340 9470 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9471 else
9472 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9473 fi
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_direct=yes
9476 hardcode_minus_L=yes
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 sysv4)
9481 case $host_vendor in
9482 sni)
9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_direct=yes # is this really true???
9485 ;;
9486 siemens)
9487 ## LD is ld it makes a PLAMLIB
9488 ## CC just makes a GrossModule.
9489 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9490 reload_cmds='$CC -r -o $output$reload_objs'
9491 hardcode_direct=no
9492 ;;
9493 motorola)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9496 ;;
9497 esac
9498 runpath_var='LD_RUN_PATH'
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 sysv4.3*)
9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_shlibpath_var=no
9505 export_dynamic_flag_spec='-Bexport'
9506 ;;
9507
9508 sysv4*MP*)
9509 if test -d /usr/nec; then
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var=no
9512 runpath_var=LD_RUN_PATH
9513 hardcode_runpath_var=yes
9514 ld_shlibs=yes
9515 fi
9516 ;;
9517
9518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
cae5b340 9519 no_undefined_flag='${wl}-z,text'
ea04106b
AX
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
9522 runpath_var='LD_RUN_PATH'
9523
cae5b340
AX
9524 if test "$GCC" = yes; then
9525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9527 else
cae5b340
AX
9528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6*)
cae5b340 9534 # Note: We can NOT use -z defs as we might desire, because we do not
ea04106b
AX
9535 # link with -lc, and that would cause any symbols used from libc to
9536 # always be unresolved, which means just about no library would
9537 # ever link correctly. If we're not using GNU ld we use -z text
9538 # though, which does catch some bad symbols but isn't as heavy-handed
9539 # as -z defs.
cae5b340
AX
9540 no_undefined_flag='${wl}-z,text'
9541 allow_undefined_flag='${wl}-z,nodefs'
ea04106b
AX
9542 archive_cmds_need_lc=no
9543 hardcode_shlibpath_var=no
cae5b340 9544 hardcode_libdir_flag_spec='${wl}-R,$libdir'
ea04106b
AX
9545 hardcode_libdir_separator=':'
9546 link_all_deplibs=yes
cae5b340 9547 export_dynamic_flag_spec='${wl}-Bexport'
ea04106b
AX
9548 runpath_var='LD_RUN_PATH'
9549
cae5b340
AX
9550 if test "$GCC" = yes; then
9551 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9553 else
cae5b340
AX
9554 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9556 fi
9557 ;;
9558
9559 uts4*)
9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 *)
9566 ld_shlibs=no
9567 ;;
9568 esac
9569
cae5b340 9570 if test x$host_vendor = xsni; then
ea04106b
AX
9571 case $host in
9572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cae5b340 9573 export_dynamic_flag_spec='${wl}-Blargedynsym'
ea04106b
AX
9574 ;;
9575 esac
9576 fi
9577 fi
9578
cae5b340 9579{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
ea04106b 9580$as_echo "$ld_shlibs" >&6; }
cae5b340 9581test "$ld_shlibs" = no && can_build_shared=no
ea04106b
AX
9582
9583with_gnu_ld=$with_gnu_ld
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599#
9600# Do we need to explicitly link libc?
9601#
9602case "x$archive_cmds_need_lc" in
9603x|xyes)
9604 # Assume -lc should be added
9605 archive_cmds_need_lc=yes
9606
cae5b340 9607 if test "$enable_shared" = yes && test "$GCC" = yes; then
ea04106b
AX
9608 case $archive_cmds in
9609 *'~'*)
9610 # FIXME: we may have to deal with multi-command sequences.
9611 ;;
9612 '$CC '*)
9613 # Test whether the compiler implicitly links with -lc since on some
9614 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9615 # to ld, don't add -lc before -lgcc.
cae5b340 9616 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
ea04106b 9617$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cae5b340
AX
9618 $RM conftest*
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ea04106b 9620
cae5b340 9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
9622 (eval $ac_compile) 2>&5
9623 ac_status=$?
cae5b340
AX
9624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } 2>conftest.err; then
9626 soname=conftest
9627 lib=conftest
9628 libobjs=conftest.$ac_objext
9629 deplibs=
9630 wl=$lt_prog_compiler_wl
9631 pic_flag=$lt_prog_compiler_pic
9632 compiler_flags=-v
9633 linker_flags=-v
9634 verstring=
9635 output_objdir=.
9636 libname=conftest
9637 lt_save_allow_undefined_flag=$allow_undefined_flag
9638 allow_undefined_flag=
9639 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
ea04106b
AX
9640 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9641 ac_status=$?
cae5b340
AX
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }
9644 then
9645 archive_cmds_need_lc=no
9646 else
9647 archive_cmds_need_lc=yes
9648 fi
9649 allow_undefined_flag=$lt_save_allow_undefined_flag
9650 else
9651 cat conftest.err 1>&5
9652 fi
9653 $RM conftest*
9654 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9655$as_echo "$archive_cmds_need_lc" >&6; }
ea04106b
AX
9656 ;;
9657 esac
9658 fi
9659 ;;
9660esac
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
cae5b340
AX
9813
9814
9815
9816
9817
9818 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
ea04106b
AX
9819$as_echo_n "checking dynamic linker characteristics... " >&6; }
9820
cae5b340 9821if test "$GCC" = yes; then
ea04106b 9822 case $host_os in
cae5b340
AX
9823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9824 *) lt_awk_arg="/^libraries:/" ;;
ea04106b 9825 esac
cae5b340
AX
9826 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9827 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
ea04106b
AX
9828 # if the path contains ";" then we assume it to be the separator
9829 # otherwise default to the standard path separator (i.e. ":") - it is
9830 # assumed that no part of a normal pathname contains ";" but that should
9831 # okay in the real world where ";" in dirpaths is itself problematic.
cae5b340
AX
9832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9833 else
9834 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9835 fi
ea04106b 9836 # Ok, now we have the path, separated by spaces, we can step through it
cae5b340 9837 # and add multilib dir if necessary.
ea04106b 9838 lt_tmp_lt_search_path_spec=
cae5b340 9839 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
ea04106b 9840 for lt_sys_path in $lt_search_path_spec; do
cae5b340
AX
9841 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9843 else
ea04106b
AX
9844 test -d "$lt_sys_path" && \
9845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9846 fi
9847 done
cae5b340
AX
9848 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9849BEGIN {RS=" "; FS="/|\n";} {
9850 lt_foo="";
9851 lt_count=0;
ea04106b
AX
9852 for (lt_i = NF; lt_i > 0; lt_i--) {
9853 if ($lt_i != "" && $lt_i != ".") {
9854 if ($lt_i == "..") {
9855 lt_count++;
9856 } else {
9857 if (lt_count == 0) {
cae5b340 9858 lt_foo="/" $lt_i lt_foo;
ea04106b
AX
9859 } else {
9860 lt_count--;
9861 }
9862 }
9863 }
9864 }
9865 if (lt_foo != "") { lt_freq[lt_foo]++; }
9866 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9867}'`
cae5b340 9868 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
ea04106b
AX
9869else
9870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9871fi
9872library_names_spec=
9873libname_spec='lib$name'
9874soname_spec=
cae5b340 9875shrext_cmds=".so"
ea04106b
AX
9876postinstall_cmds=
9877postuninstall_cmds=
9878finish_cmds=
9879finish_eval=
9880shlibpath_var=
9881shlibpath_overrides_runpath=unknown
9882version_type=none
9883dynamic_linker="$host_os ld.so"
9884sys_lib_dlsearch_path_spec="/lib /usr/lib"
9885need_lib_prefix=unknown
9886hardcode_into_libs=no
9887
9888# when you set need_version to no, make sure it does not cause -set_version
9889# flags to be left without arguments
9890need_version=unknown
9891
9892case $host_os in
9893aix3*)
cae5b340
AX
9894 version_type=linux
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
ea04106b
AX
9896 shlibpath_var=LIBPATH
9897
9898 # AIX 3 has no versioning support, so we append a major version to the name.
cae5b340 9899 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
9900 ;;
9901
9902aix[4-9]*)
cae5b340 9903 version_type=linux
ea04106b
AX
9904 need_lib_prefix=no
9905 need_version=no
9906 hardcode_into_libs=yes
cae5b340 9907 if test "$host_cpu" = ia64; then
ea04106b 9908 # AIX 5 supports IA64
cae5b340 9909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
ea04106b
AX
9910 shlibpath_var=LD_LIBRARY_PATH
9911 else
9912 # With GCC up to 2.95.x, collect2 would create an import file
9913 # for dependence libraries. The import file would start with
cae5b340
AX
9914 # the line `#! .'. This would cause the generated library to
9915 # depend on `.', always an invalid library. This was fixed in
ea04106b
AX
9916 # development snapshots of GCC prior to 3.0.
9917 case $host_os in
9918 aix4 | aix4.[01] | aix4.[01].*)
9919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9920 echo ' yes '
cae5b340 9921 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
ea04106b
AX
9922 :
9923 else
9924 can_build_shared=no
9925 fi
9926 ;;
9927 esac
cae5b340 9928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
ea04106b
AX
9929 # soname into executable. Probably we can add versioning support to
9930 # collect2, so additional links can be useful in future.
cae5b340 9931 if test "$aix_use_runtimelinking" = yes; then
ea04106b
AX
9932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933 # instead of lib<name>.a to let people know that these are not
9934 # typical AIX shared libraries.
cae5b340
AX
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 else
ea04106b
AX
9937 # We preserve .a as extension for shared libraries through AIX4.2
9938 # and later when we are not doing run time linking.
cae5b340
AX
9939 library_names_spec='${libname}${release}.a $libname.a'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 fi
ea04106b
AX
9942 shlibpath_var=LIBPATH
9943 fi
9944 ;;
9945
9946amigaos*)
9947 case $host_cpu in
9948 powerpc)
9949 # Since July 2007 AmigaOS4 officially supports .so libraries.
9950 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
cae5b340 9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
9952 ;;
9953 m68k)
9954 library_names_spec='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cae5b340 9956 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
ea04106b
AX
9957 ;;
9958 esac
9959 ;;
9960
9961beos*)
cae5b340 9962 library_names_spec='${libname}${shared_ext}'
ea04106b
AX
9963 dynamic_linker="$host_os ld.so"
9964 shlibpath_var=LIBRARY_PATH
9965 ;;
9966
9967bsdi[45]*)
cae5b340 9968 version_type=linux
ea04106b 9969 need_version=no
cae5b340
AX
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
9972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9976 # the default ld.so.conf also contains /usr/contrib/lib and
9977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9978 # libtool to hard-code these into programs
9979 ;;
9980
9981cygwin* | mingw* | pw32* | cegcc*)
9982 version_type=windows
cae5b340 9983 shrext_cmds=".dll"
ea04106b
AX
9984 need_version=no
9985 need_lib_prefix=no
9986
cae5b340
AX
9987 case $GCC,$host_os in
9988 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ea04106b
AX
9989 library_names_spec='$libname.dll.a'
9990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cae5b340
AX
9991 postinstall_cmds='base_file=`basename \${file}`~
9992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
ea04106b
AX
9993 dldir=$destdir/`dirname \$dlpath`~
9994 test -d \$dldir || mkdir -p \$dldir~
9995 $install_prog $dir/$dlname \$dldir/$dlname~
9996 chmod a+x \$dldir/$dlname~
9997 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9998 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9999 fi'
10000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10001 dlpath=$dir/\$dldll~
10002 $RM \$dlpath'
10003 shlibpath_overrides_runpath=yes
10004
10005 case $host_os in
10006 cygwin*)
10007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
cae5b340
AX
10008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
ea04106b
AX
10010 ;;
10011 mingw* | cegcc*)
10012 # MinGW DLLs use traditional 'lib' prefix
cae5b340
AX
10013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
ea04106b 10015 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cae5b340
AX
10016 # It is most probably a Windows format PATH printed by
10017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10018 # path with ; separators, and with drive letters. We can handle the
10019 # drive letters (cygwin fileutils understands them), so leave them,
10020 # especially as we might pass files found there to a mingw objdump,
10021 # which wouldn't understand a cygwinified path. Ahh.
ea04106b
AX
10022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10023 else
cae5b340 10024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
ea04106b 10025 fi
cae5b340
AX
10026 ;;
10027 pw32*)
10028 # pw32 DLLs use 'pw' prefix rather than 'lib'
10029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ea04106b
AX
10030 ;;
10031 esac
ea04106b
AX
10032 ;;
10033
10034 *)
cae5b340 10035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ea04106b
AX
10036 ;;
10037 esac
cae5b340 10038 dynamic_linker='Win32 ld.exe'
ea04106b
AX
10039 # FIXME: first we should search . and the directory the executable is in
10040 shlibpath_var=PATH
10041 ;;
10042
10043darwin* | rhapsody*)
10044 dynamic_linker="$host_os dyld"
10045 version_type=darwin
10046 need_lib_prefix=no
10047 need_version=no
cae5b340
AX
10048 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10049 soname_spec='${libname}${release}${major}$shared_ext'
ea04106b
AX
10050 shlibpath_overrides_runpath=yes
10051 shlibpath_var=DYLD_LIBRARY_PATH
10052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10053
10054 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10056 ;;
10057
10058dgux*)
cae5b340 10059 version_type=linux
ea04106b
AX
10060 need_lib_prefix=no
10061 need_version=no
cae5b340
AX
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10063 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10064 shlibpath_var=LD_LIBRARY_PATH
10065 ;;
10066
cae5b340
AX
10067freebsd1*)
10068 dynamic_linker=no
10069 ;;
10070
ea04106b
AX
10071freebsd* | dragonfly*)
10072 # DragonFly does not have aout. When/if they implement a new
10073 # versioning mechanism, adjust this.
10074 if test -x /usr/bin/objformat; then
10075 objformat=`/usr/bin/objformat`
10076 else
10077 case $host_os in
cae5b340 10078 freebsd[123]*) objformat=aout ;;
ea04106b
AX
10079 *) objformat=elf ;;
10080 esac
10081 fi
10082 version_type=freebsd-$objformat
10083 case $version_type in
10084 freebsd-elf*)
cae5b340 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
ea04106b
AX
10086 need_version=no
10087 need_lib_prefix=no
10088 ;;
10089 freebsd-*)
cae5b340 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
ea04106b
AX
10091 need_version=yes
10092 ;;
10093 esac
10094 shlibpath_var=LD_LIBRARY_PATH
10095 case $host_os in
cae5b340 10096 freebsd2*)
ea04106b
AX
10097 shlibpath_overrides_runpath=yes
10098 ;;
10099 freebsd3.[01]* | freebsdelf3.[01]*)
10100 shlibpath_overrides_runpath=yes
10101 hardcode_into_libs=yes
10102 ;;
10103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 ;;
10108 *) # from 4.6 on, and DragonFly
10109 shlibpath_overrides_runpath=yes
10110 hardcode_into_libs=yes
10111 ;;
10112 esac
10113 ;;
10114
cae5b340
AX
10115gnu*)
10116 version_type=linux
ea04106b
AX
10117 need_lib_prefix=no
10118 need_version=no
cae5b340
AX
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 shlibpath_var=LD_LIBRARY_PATH
ea04106b
AX
10122 hardcode_into_libs=yes
10123 ;;
10124
10125hpux9* | hpux10* | hpux11*)
10126 # Give a soname corresponding to the major version so that dld.sl refuses to
10127 # link against other versions.
10128 version_type=sunos
10129 need_lib_prefix=no
10130 need_version=no
10131 case $host_cpu in
10132 ia64*)
10133 shrext_cmds='.so'
10134 hardcode_into_libs=yes
10135 dynamic_linker="$host_os dld.so"
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cae5b340
AX
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 if test "X$HPUX_IA64_MODE" = X32; then
ea04106b
AX
10141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10142 else
10143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10144 fi
cae5b340 10145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
ea04106b
AX
10146 ;;
10147 hppa*64*)
10148 shrext_cmds='.sl'
10149 hardcode_into_libs=yes
10150 dynamic_linker="$host_os dld.sl"
10151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
cae5b340
AX
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10157 ;;
10158 *)
10159 shrext_cmds='.sl'
10160 dynamic_linker="$host_os dld.sl"
10161 shlibpath_var=SHLIB_PATH
10162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
cae5b340
AX
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10165 ;;
10166 esac
cae5b340 10167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
ea04106b 10168 postinstall_cmds='chmod 555 $lib'
ea04106b
AX
10169 ;;
10170
10171interix[3-9]*)
cae5b340 10172 version_type=linux
ea04106b
AX
10173 need_lib_prefix=no
10174 need_version=no
cae5b340
AX
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=no
10180 hardcode_into_libs=yes
10181 ;;
10182
10183irix5* | irix6* | nonstopux*)
10184 case $host_os in
10185 nonstopux*) version_type=nonstopux ;;
10186 *)
cae5b340
AX
10187 if test "$lt_cv_prog_gnu_ld" = yes; then
10188 version_type=linux
ea04106b
AX
10189 else
10190 version_type=irix
10191 fi ;;
10192 esac
10193 need_lib_prefix=no
10194 need_version=no
cae5b340
AX
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
ea04106b
AX
10197 case $host_os in
10198 irix5* | nonstopux*)
10199 libsuff= shlibsuff=
10200 ;;
10201 *)
10202 case $LD in # libtool.m4 will add one of these switches to LD
10203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10204 libsuff= shlibsuff= libmagic=32-bit;;
10205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10206 libsuff=32 shlibsuff=N32 libmagic=N32;;
10207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10209 *) libsuff= shlibsuff= libmagic=never-match;;
10210 esac
10211 ;;
10212 esac
10213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10214 shlibpath_overrides_runpath=no
cae5b340
AX
10215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
ea04106b
AX
10217 hardcode_into_libs=yes
10218 ;;
10219
10220# No shared lib support for Linux oldld, aout, or coff.
10221linux*oldld* | linux*aout* | linux*coff*)
10222 dynamic_linker=no
10223 ;;
10224
cae5b340
AX
10225# This must be Linux ELF.
10226linux* | k*bsd*-gnu)
10227 version_type=linux
68d83c55
AX
10228 need_lib_prefix=no
10229 need_version=no
cae5b340
AX
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
ea04106b 10235 # Some binutils ld are patched to set DT_RUNPATH
cae5b340
AX
10236 save_LDFLAGS=$LDFLAGS
10237 save_libdir=$libdir
10238 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10239 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10240 cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10245/* end confdefs.h. */
10246
10247int
10248main ()
10249{
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
cae5b340
AX
10255rm -f conftest.$ac_objext conftest$ac_exeext
10256if { (ac_try="$ac_link"
10257case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
10261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262$as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10275 }; then
10276 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10277 shlibpath_overrides_runpath=yes
ea04106b 10278fi
cae5b340
AX
10279
10280else
10281 $as_echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
ea04106b
AX
10284
10285fi
10286
cae5b340
AX
10287rm -rf conftest.dSYM
10288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LDFLAGS=$save_LDFLAGS
10291 libdir=$save_libdir
ea04106b
AX
10292
10293 # This implies no fast_install, which is unacceptable.
10294 # Some rework will be needed to allow for fast_install
10295 # before this can be enabled.
10296 hardcode_into_libs=yes
10297
22929307
AX
10298 # Add ABI-specific directories to the system library path.
10299 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10300
cae5b340 10301 # Append ld.so.conf contents to the search path
ea04106b 10302 if test -f /etc/ld.so.conf; then
cae5b340 10303 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22929307 10304 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
ea04106b
AX
10305 fi
10306
10307 # We used to test for /lib/ld.so.1 and disable shared libraries on
10308 # powerpc, because MkLinux only supported shared libraries with the
10309 # GNU dynamic linker. Since this was broken with cross compilers,
10310 # most powerpc-linux boxes support dynamic linking these days and
10311 # people can always --disable-shared, the test was removed, and we
10312 # assume the GNU/Linux dynamic linker is in use.
10313 dynamic_linker='GNU/Linux ld.so'
10314 ;;
10315
ea04106b
AX
10316netbsd*)
10317 version_type=sunos
10318 need_lib_prefix=no
10319 need_version=no
10320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cae5b340 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ea04106b
AX
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 dynamic_linker='NetBSD (a.out) ld.so'
10324 else
cae5b340
AX
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10327 dynamic_linker='NetBSD ld.elf_so'
10328 fi
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10332 ;;
10333
10334newsos6)
cae5b340
AX
10335 version_type=linux
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 ;;
10340
10341*nto* | *qnx*)
10342 version_type=qnx
10343 need_lib_prefix=no
10344 need_version=no
cae5b340
AX
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=no
10349 hardcode_into_libs=yes
10350 dynamic_linker='ldqnx.so'
10351 ;;
10352
cae5b340 10353openbsd*)
ea04106b 10354 version_type=sunos
cae5b340 10355 sys_lib_dlsearch_path_spec="/usr/lib"
ea04106b 10356 need_lib_prefix=no
cae5b340
AX
10357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10358 case $host_os in
10359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10360 *) need_version=no ;;
10361 esac
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
68d83c55
AX
10363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
cae5b340
AX
10365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366 case $host_os in
10367 openbsd2.[89] | openbsd2.[89].*)
10368 shlibpath_overrides_runpath=no
10369 ;;
10370 *)
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373 esac
10374 else
10375 shlibpath_overrides_runpath=yes
10376 fi
ea04106b
AX
10377 ;;
10378
10379os2*)
10380 libname_spec='$name'
cae5b340 10381 shrext_cmds=".dll"
ea04106b 10382 need_lib_prefix=no
cae5b340 10383 library_names_spec='$libname${shared_ext} $libname.a'
ea04106b 10384 dynamic_linker='OS/2 ld.exe'
cae5b340 10385 shlibpath_var=LIBPATH
ea04106b
AX
10386 ;;
10387
10388osf3* | osf4* | osf5*)
10389 version_type=osf
10390 need_lib_prefix=no
10391 need_version=no
cae5b340
AX
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10394 shlibpath_var=LD_LIBRARY_PATH
10395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
cae5b340 10396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
ea04106b
AX
10397 ;;
10398
10399rdos*)
10400 dynamic_linker=no
10401 ;;
10402
10403solaris*)
cae5b340 10404 version_type=linux
ea04106b
AX
10405 need_lib_prefix=no
10406 need_version=no
cae5b340
AX
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10412 # ldd complains unless libraries are executable
10413 postinstall_cmds='chmod +x $lib'
10414 ;;
10415
10416sunos4*)
10417 version_type=sunos
cae5b340 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ea04106b
AX
10419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
cae5b340 10422 if test "$with_gnu_ld" = yes; then
ea04106b
AX
10423 need_lib_prefix=no
10424 fi
10425 need_version=yes
10426 ;;
10427
10428sysv4 | sysv4.3*)
cae5b340
AX
10429 version_type=linux
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10432 shlibpath_var=LD_LIBRARY_PATH
10433 case $host_vendor in
10434 sni)
10435 shlibpath_overrides_runpath=no
10436 need_lib_prefix=no
10437 runpath_var=LD_RUN_PATH
10438 ;;
10439 siemens)
10440 need_lib_prefix=no
10441 ;;
10442 motorola)
10443 need_lib_prefix=no
10444 need_version=no
10445 shlibpath_overrides_runpath=no
10446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10447 ;;
10448 esac
10449 ;;
10450
10451sysv4*MP*)
cae5b340
AX
10452 if test -d /usr/nec ;then
10453 version_type=linux
10454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10455 soname_spec='$libname${shared_ext}.$major'
ea04106b
AX
10456 shlibpath_var=LD_LIBRARY_PATH
10457 fi
10458 ;;
10459
10460sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cae5b340 10461 version_type=freebsd-elf
ea04106b
AX
10462 need_lib_prefix=no
10463 need_version=no
cae5b340
AX
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 hardcode_into_libs=yes
cae5b340 10469 if test "$with_gnu_ld" = yes; then
ea04106b
AX
10470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10471 else
10472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10473 case $host_os in
10474 sco3.2v5*)
10475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10476 ;;
10477 esac
10478 fi
10479 sys_lib_dlsearch_path_spec='/usr/lib'
10480 ;;
10481
10482tpf*)
10483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cae5b340 10484 version_type=linux
ea04106b
AX
10485 need_lib_prefix=no
10486 need_version=no
cae5b340 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10490 hardcode_into_libs=yes
10491 ;;
10492
10493uts4*)
cae5b340
AX
10494 version_type=linux
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10497 shlibpath_var=LD_LIBRARY_PATH
10498 ;;
10499
10500*)
10501 dynamic_linker=no
10502 ;;
10503esac
cae5b340 10504{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
ea04106b 10505$as_echo "$dynamic_linker" >&6; }
cae5b340 10506test "$dynamic_linker" = no && can_build_shared=no
ea04106b
AX
10507
10508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cae5b340 10509if test "$GCC" = yes; then
ea04106b
AX
10510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10511fi
10512
cae5b340
AX
10513if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
ea04106b 10515fi
cae5b340
AX
10516if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10517 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
ea04106b
AX
10518fi
10519
68d83c55 10520
68d83c55
AX
10521
10522
10523
10524
10525
10526
ea04106b
AX
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
cae5b340 10606 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
ea04106b
AX
10607$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10608hardcode_action=
10609if test -n "$hardcode_libdir_flag_spec" ||
10610 test -n "$runpath_var" ||
cae5b340 10611 test "X$hardcode_automatic" = "Xyes" ; then
ea04106b
AX
10612
10613 # We can hardcode non-existent directories.
cae5b340 10614 if test "$hardcode_direct" != no &&
ea04106b
AX
10615 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10616 # have to relink, otherwise we might link with an installed library
10617 # when we should be linking with a yet-to-be-installed one
cae5b340
AX
10618 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10619 test "$hardcode_minus_L" != no; then
ea04106b
AX
10620 # Linking always hardcodes the temporary library directory.
10621 hardcode_action=relink
10622 else
10623 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10624 hardcode_action=immediate
10625 fi
10626else
10627 # We cannot hardcode anything, or else we can only hardcode existing
10628 # directories.
10629 hardcode_action=unsupported
10630fi
cae5b340 10631{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
ea04106b
AX
10632$as_echo "$hardcode_action" >&6; }
10633
cae5b340
AX
10634if test "$hardcode_action" = relink ||
10635 test "$inherit_rpath" = yes; then
ea04106b
AX
10636 # Fast installation is not supported
10637 enable_fast_install=no
cae5b340
AX
10638elif test "$shlibpath_overrides_runpath" = yes ||
10639 test "$enable_shared" = no; then
ea04106b
AX
10640 # Fast installation is not necessary
10641 enable_fast_install=needless
10642fi
10643
10644
10645
10646
10647
10648
cae5b340 10649 if test "x$enable_dlopen" != xyes; then
ea04106b
AX
10650 enable_dlopen=unknown
10651 enable_dlopen_self=unknown
10652 enable_dlopen_self_static=unknown
10653else
10654 lt_cv_dlopen=no
10655 lt_cv_dlopen_libs=
10656
10657 case $host_os in
10658 beos*)
cae5b340 10659 lt_cv_dlopen="load_add_on"
ea04106b
AX
10660 lt_cv_dlopen_libs=
10661 lt_cv_dlopen_self=yes
10662 ;;
10663
10664 mingw* | pw32* | cegcc*)
cae5b340 10665 lt_cv_dlopen="LoadLibrary"
ea04106b
AX
10666 lt_cv_dlopen_libs=
10667 ;;
10668
10669 cygwin*)
cae5b340 10670 lt_cv_dlopen="dlopen"
ea04106b
AX
10671 lt_cv_dlopen_libs=
10672 ;;
10673
10674 darwin*)
cae5b340
AX
10675 # if libdl is installed we need to link against it
10676 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
ea04106b 10677$as_echo_n "checking for dlopen in -ldl... " >&6; }
cae5b340 10678if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ea04106b
AX
10679 $as_echo_n "(cached) " >&6
10680else
10681 ac_check_lib_save_LIBS=$LIBS
10682LIBS="-ldl $LIBS"
cae5b340
AX
10683cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10688/* end confdefs.h. */
10689
10690/* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693#ifdef __cplusplus
10694extern "C"
10695#endif
10696char dlopen ();
10697int
10698main ()
10699{
10700return dlopen ();
10701 ;
10702 return 0;
10703}
10704_ACEOF
cae5b340
AX
10705rm -f conftest.$ac_objext conftest$ac_exeext
10706if { (ac_try="$ac_link"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712$as_echo "$ac_try_echo") >&5
10713 (eval "$ac_link") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest$ac_exeext && {
10723 test "$cross_compiling" = yes ||
10724 $as_test_x conftest$ac_exeext
10725 }; then
ea04106b
AX
10726 ac_cv_lib_dl_dlopen=yes
10727else
cae5b340
AX
10728 $as_echo "$as_me: failed program was:" >&5
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ac_cv_lib_dl_dlopen=no
ea04106b 10732fi
cae5b340
AX
10733
10734rm -rf conftest.dSYM
10735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10736 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
10737LIBS=$ac_check_lib_save_LIBS
10738fi
cae5b340 10739{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
ea04106b 10740$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cae5b340
AX
10741if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
ea04106b
AX
10743else
10744
cae5b340 10745 lt_cv_dlopen="dyld"
ea04106b
AX
10746 lt_cv_dlopen_libs=
10747 lt_cv_dlopen_self=yes
10748
10749fi
10750
10751 ;;
10752
10753 *)
cae5b340
AX
10754 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10755$as_echo_n "checking for shl_load... " >&6; }
10756if test "${ac_cv_func_shl_load+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10758else
10759 cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10767#define shl_load innocuous_shl_load
10768
10769/* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char shl_load (); below.
10771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10772 <limits.h> exists even on freestanding compilers. */
10773
10774#ifdef __STDC__
10775# include <limits.h>
10776#else
10777# include <assert.h>
10778#endif
10779
10780#undef shl_load
10781
10782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785#ifdef __cplusplus
10786extern "C"
10787#endif
10788char shl_load ();
10789/* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792#if defined __stub_shl_load || defined __stub___shl_load
10793choke me
10794#endif
10795
10796int
10797main ()
10798{
10799return shl_load ();
10800 ;
10801 return 0;
10802}
10803_ACEOF
10804rm -f conftest.$ac_objext conftest$ac_exeext
10805if { (ac_try="$ac_link"
10806case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811$as_echo "$ac_try_echo") >&5
10812 (eval "$ac_link") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext && {
10822 test "$cross_compiling" = yes ||
10823 $as_test_x conftest$ac_exeext
10824 }; then
10825 ac_cv_func_shl_load=yes
10826else
10827 $as_echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_func_shl_load=no
10831fi
10832
10833rm -rf conftest.dSYM
10834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10836fi
10837{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10838$as_echo "$ac_cv_func_shl_load" >&6; }
10839if test "x$ac_cv_func_shl_load" = x""yes; then
10840 lt_cv_dlopen="shl_load"
ea04106b 10841else
cae5b340 10842 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
ea04106b 10843$as_echo_n "checking for shl_load in -ldld... " >&6; }
cae5b340 10844if test "${ac_cv_lib_dld_shl_load+set}" = set; then
ea04106b
AX
10845 $as_echo_n "(cached) " >&6
10846else
10847 ac_check_lib_save_LIBS=$LIBS
10848LIBS="-ldld $LIBS"
cae5b340
AX
10849cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10854/* end confdefs.h. */
10855
10856/* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859#ifdef __cplusplus
10860extern "C"
10861#endif
10862char shl_load ();
10863int
10864main ()
10865{
10866return shl_load ();
10867 ;
10868 return 0;
10869}
10870_ACEOF
cae5b340
AX
10871rm -f conftest.$ac_objext conftest$ac_exeext
10872if { (ac_try="$ac_link"
10873case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878$as_echo "$ac_try_echo") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext && {
10889 test "$cross_compiling" = yes ||
10890 $as_test_x conftest$ac_exeext
10891 }; then
ea04106b
AX
10892 ac_cv_lib_dld_shl_load=yes
10893else
cae5b340
AX
10894 $as_echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 ac_cv_lib_dld_shl_load=no
ea04106b 10898fi
cae5b340
AX
10899
10900rm -rf conftest.dSYM
10901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
10903LIBS=$ac_check_lib_save_LIBS
10904fi
cae5b340 10905{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
ea04106b 10906$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cae5b340
AX
10907if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10909else
10910 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10911$as_echo_n "checking for dlopen... " >&6; }
10912if test "${ac_cv_func_dlopen+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10914else
10915 cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923#define dlopen innocuous_dlopen
10924
10925/* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char dlopen (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
10929
10930#ifdef __STDC__
10931# include <limits.h>
10932#else
10933# include <assert.h>
10934#endif
10935
10936#undef dlopen
10937
10938/* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941#ifdef __cplusplus
10942extern "C"
10943#endif
10944char dlopen ();
10945/* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948#if defined __stub_dlopen || defined __stub___dlopen
10949choke me
10950#endif
10951
10952int
10953main ()
10954{
10955return dlopen ();
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext conftest$ac_exeext
10961if { (ac_try="$ac_link"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967$as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10980 }; then
10981 ac_cv_func_dlopen=yes
ea04106b 10982else
cae5b340
AX
10983 $as_echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_cv_func_dlopen=no
10987fi
10988
10989rm -rf conftest.dSYM
10990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992fi
10993{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10994$as_echo "$ac_cv_func_dlopen" >&6; }
10995if test "x$ac_cv_func_dlopen" = x""yes; then
10996 lt_cv_dlopen="dlopen"
ea04106b 10997else
cae5b340 10998 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
ea04106b 10999$as_echo_n "checking for dlopen in -ldl... " >&6; }
cae5b340 11000if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ea04106b
AX
11001 $as_echo_n "(cached) " >&6
11002else
11003 ac_check_lib_save_LIBS=$LIBS
11004LIBS="-ldl $LIBS"
cae5b340
AX
11005cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
11010/* end confdefs.h. */
11011
11012/* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015#ifdef __cplusplus
11016extern "C"
11017#endif
11018char dlopen ();
11019int
11020main ()
11021{
11022return dlopen ();
11023 ;
11024 return 0;
11025}
11026_ACEOF
cae5b340
AX
11027rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (ac_try="$ac_link"
11029case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11034$as_echo "$ac_try_echo") >&5
11035 (eval "$ac_link") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest$ac_exeext && {
11045 test "$cross_compiling" = yes ||
11046 $as_test_x conftest$ac_exeext
11047 }; then
ea04106b
AX
11048 ac_cv_lib_dl_dlopen=yes
11049else
cae5b340
AX
11050 $as_echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_cv_lib_dl_dlopen=no
ea04106b 11054fi
cae5b340
AX
11055
11056rm -rf conftest.dSYM
11057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11058 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11059LIBS=$ac_check_lib_save_LIBS
11060fi
cae5b340 11061{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
ea04106b 11062$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cae5b340
AX
11063if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
ea04106b 11065else
cae5b340 11066 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
ea04106b 11067$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cae5b340 11068if test "${ac_cv_lib_svld_dlopen+set}" = set; then
ea04106b
AX
11069 $as_echo_n "(cached) " >&6
11070else
11071 ac_check_lib_save_LIBS=$LIBS
11072LIBS="-lsvld $LIBS"
cae5b340
AX
11073cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
11078/* end confdefs.h. */
11079
11080/* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083#ifdef __cplusplus
11084extern "C"
11085#endif
11086char dlopen ();
11087int
11088main ()
11089{
11090return dlopen ();
11091 ;
11092 return 0;
11093}
11094_ACEOF
cae5b340
AX
11095rm -f conftest.$ac_objext conftest$ac_exeext
11096if { (ac_try="$ac_link"
11097case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102$as_echo "$ac_try_echo") >&5
11103 (eval "$ac_link") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest$ac_exeext && {
11113 test "$cross_compiling" = yes ||
11114 $as_test_x conftest$ac_exeext
11115 }; then
ea04106b
AX
11116 ac_cv_lib_svld_dlopen=yes
11117else
cae5b340
AX
11118 $as_echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_cv_lib_svld_dlopen=no
ea04106b 11122fi
cae5b340
AX
11123
11124rm -rf conftest.dSYM
11125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11126 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11127LIBS=$ac_check_lib_save_LIBS
11128fi
cae5b340 11129{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
ea04106b 11130$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cae5b340
AX
11131if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
ea04106b 11133else
cae5b340 11134 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
ea04106b 11135$as_echo_n "checking for dld_link in -ldld... " >&6; }
cae5b340 11136if test "${ac_cv_lib_dld_dld_link+set}" = set; then
ea04106b
AX
11137 $as_echo_n "(cached) " >&6
11138else
11139 ac_check_lib_save_LIBS=$LIBS
11140LIBS="-ldld $LIBS"
cae5b340
AX
11141cat >conftest.$ac_ext <<_ACEOF
11142/* confdefs.h. */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
11146/* end confdefs.h. */
11147
11148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char dld_link ();
11155int
11156main ()
11157{
11158return dld_link ();
11159 ;
11160 return 0;
11161}
11162_ACEOF
cae5b340
AX
11163rm -f conftest.$ac_objext conftest$ac_exeext
11164if { (ac_try="$ac_link"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11170$as_echo "$ac_try_echo") >&5
11171 (eval "$ac_link") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext && {
11181 test "$cross_compiling" = yes ||
11182 $as_test_x conftest$ac_exeext
11183 }; then
ea04106b
AX
11184 ac_cv_lib_dld_dld_link=yes
11185else
cae5b340
AX
11186 $as_echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_cv_lib_dld_dld_link=no
ea04106b 11190fi
cae5b340
AX
11191
11192rm -rf conftest.dSYM
11193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11194 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11195LIBS=$ac_check_lib_save_LIBS
11196fi
cae5b340 11197{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
ea04106b 11198$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cae5b340
AX
11199if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ea04106b
AX
11201fi
11202
11203
11204fi
11205
11206
11207fi
11208
11209
11210fi
11211
11212
11213fi
11214
11215
11216fi
11217
11218 ;;
11219 esac
11220
cae5b340 11221 if test "x$lt_cv_dlopen" != xno; then
68d83c55 11222 enable_dlopen=yes
cae5b340
AX
11223 else
11224 enable_dlopen=no
ea04106b
AX
11225 fi
11226
11227 case $lt_cv_dlopen in
11228 dlopen)
cae5b340
AX
11229 save_CPPFLAGS="$CPPFLAGS"
11230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
ea04106b 11231
cae5b340 11232 save_LDFLAGS="$LDFLAGS"
ea04106b
AX
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11234
cae5b340 11235 save_LIBS="$LIBS"
ea04106b
AX
11236 LIBS="$lt_cv_dlopen_libs $LIBS"
11237
cae5b340 11238 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
ea04106b 11239$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cae5b340 11240if test "${lt_cv_dlopen_self+set}" = set; then
ea04106b
AX
11241 $as_echo_n "(cached) " >&6
11242else
cae5b340 11243 if test "$cross_compiling" = yes; then :
ea04106b
AX
11244 lt_cv_dlopen_self=cross
11245else
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
42f7b73b 11249#line 11249 "configure"
ea04106b
AX
11250#include "confdefs.h"
11251
11252#if HAVE_DLFCN_H
11253#include <dlfcn.h>
11254#endif
11255
11256#include <stdio.h>
11257
11258#ifdef RTLD_GLOBAL
11259# define LT_DLGLOBAL RTLD_GLOBAL
11260#else
11261# ifdef DL_GLOBAL
11262# define LT_DLGLOBAL DL_GLOBAL
11263# else
11264# define LT_DLGLOBAL 0
11265# endif
11266#endif
11267
11268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270#ifndef LT_DLLAZY_OR_NOW
11271# ifdef RTLD_LAZY
11272# define LT_DLLAZY_OR_NOW RTLD_LAZY
11273# else
11274# ifdef DL_LAZY
11275# define LT_DLLAZY_OR_NOW DL_LAZY
11276# else
11277# ifdef RTLD_NOW
11278# define LT_DLLAZY_OR_NOW RTLD_NOW
11279# else
11280# ifdef DL_NOW
11281# define LT_DLLAZY_OR_NOW DL_NOW
11282# else
11283# define LT_DLLAZY_OR_NOW 0
11284# endif
11285# endif
11286# endif
11287# endif
11288#endif
11289
cae5b340 11290void fnord() { int i=42;}
ea04106b
AX
11291int main ()
11292{
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11295
11296 if (self)
11297 {
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cae5b340 11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
ea04106b
AX
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
11304
11305 return status;
11306}
11307_LT_EOF
cae5b340 11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
cae5b340
AX
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
ea04106b
AX
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self=no
11323 fi
11324fi
11325rm -fr conftest*
11326
11327
11328fi
cae5b340 11329{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
ea04106b
AX
11330$as_echo "$lt_cv_dlopen_self" >&6; }
11331
cae5b340 11332 if test "x$lt_cv_dlopen_self" = xyes; then
ea04106b 11333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cae5b340 11334 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
ea04106b 11335$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cae5b340 11336if test "${lt_cv_dlopen_self_static+set}" = set; then
ea04106b
AX
11337 $as_echo_n "(cached) " >&6
11338else
cae5b340 11339 if test "$cross_compiling" = yes; then :
ea04106b
AX
11340 lt_cv_dlopen_self_static=cross
11341else
11342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11343 lt_status=$lt_dlunknown
11344 cat > conftest.$ac_ext <<_LT_EOF
42f7b73b 11345#line 11345 "configure"
ea04106b
AX
11346#include "confdefs.h"
11347
11348#if HAVE_DLFCN_H
11349#include <dlfcn.h>
11350#endif
11351
11352#include <stdio.h>
11353
11354#ifdef RTLD_GLOBAL
11355# define LT_DLGLOBAL RTLD_GLOBAL
11356#else
11357# ifdef DL_GLOBAL
11358# define LT_DLGLOBAL DL_GLOBAL
11359# else
11360# define LT_DLGLOBAL 0
11361# endif
11362#endif
11363
11364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11365 find out it does not work in some platform. */
11366#ifndef LT_DLLAZY_OR_NOW
11367# ifdef RTLD_LAZY
11368# define LT_DLLAZY_OR_NOW RTLD_LAZY
11369# else
11370# ifdef DL_LAZY
11371# define LT_DLLAZY_OR_NOW DL_LAZY
11372# else
11373# ifdef RTLD_NOW
11374# define LT_DLLAZY_OR_NOW RTLD_NOW
11375# else
11376# ifdef DL_NOW
11377# define LT_DLLAZY_OR_NOW DL_NOW
11378# else
11379# define LT_DLLAZY_OR_NOW 0
11380# endif
11381# endif
11382# endif
11383# endif
11384#endif
11385
cae5b340 11386void fnord() { int i=42;}
ea04106b
AX
11387int main ()
11388{
11389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11390 int status = $lt_dlunknown;
11391
11392 if (self)
11393 {
11394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cae5b340 11395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
ea04106b
AX
11396 /* dlclose (self); */
11397 }
11398 else
11399 puts (dlerror ());
11400
11401 return status;
11402}
11403_LT_EOF
cae5b340 11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
11405 (eval $ac_link) 2>&5
11406 ac_status=$?
cae5b340
AX
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
ea04106b
AX
11409 (./conftest; exit; ) >&5 2>/dev/null
11410 lt_status=$?
11411 case x$lt_status in
11412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11415 esac
11416 else :
11417 # compilation failed
11418 lt_cv_dlopen_self_static=no
11419 fi
11420fi
11421rm -fr conftest*
11422
11423
11424fi
cae5b340 11425{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
ea04106b
AX
11426$as_echo "$lt_cv_dlopen_self_static" >&6; }
11427 fi
11428
cae5b340
AX
11429 CPPFLAGS="$save_CPPFLAGS"
11430 LDFLAGS="$save_LDFLAGS"
11431 LIBS="$save_LIBS"
ea04106b
AX
11432 ;;
11433 esac
11434
11435 case $lt_cv_dlopen_self in
11436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11437 *) enable_dlopen_self=unknown ;;
11438 esac
11439
11440 case $lt_cv_dlopen_self_static in
11441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11442 *) enable_dlopen_self_static=unknown ;;
11443 esac
11444fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462striplib=
11463old_striplib=
cae5b340 11464{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
ea04106b
AX
11465$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11466if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cae5b340 11469 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
11470$as_echo "yes" >&6; }
11471else
11472# FIXME - insert some real tests, host_os isn't really good enough
11473 case $host_os in
11474 darwin*)
cae5b340 11475 if test -n "$STRIP" ; then
ea04106b
AX
11476 striplib="$STRIP -x"
11477 old_striplib="$STRIP -S"
cae5b340 11478 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
11479$as_echo "yes" >&6; }
11480 else
cae5b340 11481 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
11482$as_echo "no" >&6; }
11483 fi
11484 ;;
11485 *)
cae5b340 11486 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
11487$as_echo "no" >&6; }
11488 ;;
11489 esac
11490fi
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
cae5b340
AX
11503 # Report which library types will actually be built
11504 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
ea04106b 11505$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cae5b340 11506 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
ea04106b
AX
11507$as_echo "$can_build_shared" >&6; }
11508
cae5b340 11509 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
ea04106b 11510$as_echo_n "checking whether to build shared libraries... " >&6; }
cae5b340 11511 test "$can_build_shared" = "no" && enable_shared=no
ea04106b
AX
11512
11513 # On AIX, shared libraries and static libraries use the same namespace, and
11514 # are all built from PIC.
11515 case $host_os in
11516 aix3*)
cae5b340 11517 test "$enable_shared" = yes && enable_static=no
ea04106b
AX
11518 if test -n "$RANLIB"; then
11519 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11520 postinstall_cmds='$RANLIB $lib'
11521 fi
11522 ;;
11523
11524 aix[4-9]*)
cae5b340
AX
11525 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11526 test "$enable_shared" = yes && enable_static=no
ea04106b
AX
11527 fi
11528 ;;
11529 esac
cae5b340 11530 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
ea04106b
AX
11531$as_echo "$enable_shared" >&6; }
11532
cae5b340 11533 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
ea04106b
AX
11534$as_echo_n "checking whether to build static libraries... " >&6; }
11535 # Make sure either enable_shared or enable_static is yes.
cae5b340
AX
11536 test "$enable_shared" = yes || enable_static=yes
11537 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
ea04106b
AX
11538$as_echo "$enable_static" >&6; }
11539
11540
11541
11542
11543fi
11544ac_ext=c
11545ac_cpp='$CPP $CPPFLAGS'
11546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
cae5b340 11550CC="$lt_save_CC"
ea04106b
AX
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 ac_config_commands="$ac_config_commands libtool"
11565
11566
11567
11568
11569# Only expand once:
11570
11571
11572# By default we simply use the C compiler to build assembly code.
11573
11574test "${CCAS+set}" = set || CCAS=$CC
11575test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11576
11577
11578
11579depcc="$CCAS" am_compiler_list=
11580
cae5b340 11581{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
ea04106b 11582$as_echo_n "checking dependency style of $depcc... " >&6; }
cae5b340 11583if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
ea04106b
AX
11584 $as_echo_n "(cached) " >&6
11585else
11586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11587 # We make a subdir and do the tests there. Otherwise we can end up
11588 # making bogus files that we don't know about and never remove. For
11589 # instance it was reported that on HP-UX the gcc test will end up
cae5b340
AX
11590 # making a dummy file named `D' -- because `-MD' means `put the output
11591 # in D'.
ea04106b
AX
11592 mkdir conftest.dir
11593 # Copy depcomp to subdir because otherwise we won't find it if we're
11594 # using a relative directory.
11595 cp "$am_depcomp" conftest.dir
11596 cd conftest.dir
11597 # We will build objects and dependencies in a subdirectory because
11598 # it helps to detect inapplicable dependency modes. For instance
11599 # both Tru64's cc and ICC support -MD to output dependencies as a
11600 # side effect of compilation, but ICC will put the dependencies in
11601 # the current directory while Tru64 will put them in the object
11602 # directory.
11603 mkdir sub
11604
11605 am_cv_CCAS_dependencies_compiler_type=none
11606 if test "$am_compiler_list" = ""; then
11607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11608 fi
11609 am__universal=false
11610
11611
11612 for depmode in $am_compiler_list; do
11613 # Setup a source with many dependencies, because some compilers
11614 # like to wrap large dependency lists on column 80 (with \), and
11615 # we should not choose a depcomp mode which is confused by this.
11616 #
11617 # We need to recreate these files for each test, as the compiler may
11618 # overwrite some of them when testing with obscure command lines.
11619 # This happens at least with the AIX C compiler.
11620 : > sub/conftest.c
11621 for i in 1 2 3 4 5 6; do
11622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cae5b340
AX
11623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11624 # Solaris 8's {/usr,}/bin/sh.
11625 touch sub/conftst$i.h
ea04106b
AX
11626 done
11627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11628
cae5b340 11629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
ea04106b 11630 # mode. It turns out that the SunPro C++ compiler does not properly
cae5b340
AX
11631 # handle `-M -o', and we need to detect this. Also, some Intel
11632 # versions had trouble with output in subdirs
ea04106b
AX
11633 am__obj=sub/conftest.${OBJEXT-o}
11634 am__minus_obj="-o $am__obj"
11635 case $depmode in
11636 gcc)
11637 # This depmode causes a compiler race in universal mode.
11638 test "$am__universal" = false || continue
11639 ;;
11640 nosideeffect)
cae5b340
AX
11641 # after this tag, mechanisms are not by side-effect, so they'll
11642 # only be used when explicitly requested
ea04106b
AX
11643 if test "x$enable_dependency_tracking" = xyes; then
11644 continue
11645 else
11646 break
11647 fi
11648 ;;
cae5b340
AX
11649 msvisualcpp | msvcmsys)
11650 # This compiler won't grok `-c -o', but also, the minuso test has
ea04106b
AX
11651 # not run yet. These depmodes are late enough in the game, and
11652 # so weak that their functioning should not be impacted.
11653 am__obj=conftest.${OBJEXT-o}
11654 am__minus_obj=
11655 ;;
11656 none) break ;;
11657 esac
11658 if depmode=$depmode \
11659 source=sub/conftest.c object=$am__obj \
11660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11662 >/dev/null 2>conftest.err &&
11663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11667 # icc doesn't choke on unknown options, it will just issue warnings
11668 # or remarks (even with -Werror). So we grep stderr for any message
11669 # that says an option was ignored or not supported.
11670 # When given -MP, icc 7.0 and 7.1 complain thusly:
11671 # icc: Command line warning: ignoring option '-M'; no argument required
11672 # The diagnosis changed in icc 8.0:
11673 # icc: Command line remark: option '-MP' not supported
11674 if (grep 'ignoring option' conftest.err ||
11675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11676 am_cv_CCAS_dependencies_compiler_type=$depmode
11677 break
11678 fi
11679 fi
11680 done
11681
11682 cd ..
11683 rm -rf conftest.dir
11684else
11685 am_cv_CCAS_dependencies_compiler_type=none
11686fi
11687
11688fi
cae5b340 11689{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
ea04106b
AX
11690$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11691CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11692
11693 if
11694 test "x$enable_dependency_tracking" != xno \
11695 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11696 am__fastdepCCAS_TRUE=
11697 am__fastdepCCAS_FALSE='#'
11698else
11699 am__fastdepCCAS_TRUE='#'
11700 am__fastdepCCAS_FALSE=
11701fi
11702
11703
cae5b340
AX
11704if test "x$CC" != xcc; then
11705 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11706$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11707else
11708 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11709$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11710fi
11711set dummy $CC; ac_cc=`$as_echo "$2" |
11712 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11713if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11714 $as_echo_n "(cached) " >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722
11723int
11724main ()
11725{
11726
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731# Make sure it works both with $CC and with simple cc.
11732# We do the test twice because some compilers refuse to overwrite an
11733# existing .o file with -o, though they will create one.
11734ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11735rm -f conftest2.*
11736if { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741$as_echo "$ac_try_echo") >&5
11742 (eval "$ac_try") 2>&5
11743 ac_status=$?
11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11751$as_echo "$ac_try_echo") >&5
11752 (eval "$ac_try") 2>&5
11753 ac_status=$?
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); };
11756then
11757 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11758 if test "x$CC" != xcc; then
11759 # Test first that cc exists at all.
11760 if { ac_try='cc -c conftest.$ac_ext >&5'
11761 { (case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764esac
11765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11766$as_echo "$ac_try_echo") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11772 rm -f conftest2.*
11773 if { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778$as_echo "$ac_try_echo") >&5
11779 (eval "$ac_try") 2>&5
11780 ac_status=$?
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11788$as_echo "$ac_try_echo") >&5
11789 (eval "$ac_try") 2>&5
11790 ac_status=$?
11791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); };
11793 then
11794 # cc works too.
11795 :
11796 else
11797 # cc exists but doesn't like -o.
11798 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11799 fi
11800 fi
11801 fi
11802else
11803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11804fi
11805rm -f core conftest*
11806
11807fi
11808if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11809 { $as_echo "$as_me:$LINENO: result: yes" >&5
11810$as_echo "yes" >&6; }
11811else
11812 { $as_echo "$as_me:$LINENO: result: no" >&5
11813$as_echo "no" >&6; }
11814
11815cat >>confdefs.h <<\_ACEOF
11816#define NO_MINUS_C_MINUS_O 1
11817_ACEOF
11818
11819fi
11820
11821# FIXME: we rely on the cache variable name because
11822# there is no other way.
11823set dummy $CC
11824am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11825eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11826if test "$am_t" != yes; then
11827 # Losing compiler, so override with the script.
11828 # FIXME: It is wrong to rewrite CC.
11829 # But if we don't then we get into trouble of one sort or another.
11830 # A longer-term fix would be to have automake use am__CC in this case,
11831 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11832 CC="$am_aux_dir/compile $CC"
11833fi
11834
11835
ea04106b
AX
11836
11837
42f7b73b
AX
11838
11839 # allow to override gcov location
11840
11841# Check whether --with-gcov was given.
11842if test "${with_gcov+set}" = set; then
11843 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
11844else
11845 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
11846fi
11847
11848
11849 { $as_echo "$as_me:$LINENO: checking whether to build with code coverage support" >&5
11850$as_echo_n "checking whether to build with code coverage support... " >&6; }
11851 # Check whether --enable-code-coverage was given.
11852if test "${enable_code_coverage+set}" = set; then
11853 enableval=$enable_code_coverage;
11854else
11855 enable_code_coverage=no
11856fi
11857
11858
11859 if test x$enable_code_coverage = xyes; then
11860 CODE_COVERAGE_ENABLED_TRUE=
11861 CODE_COVERAGE_ENABLED_FALSE='#'
11862else
11863 CODE_COVERAGE_ENABLED_TRUE='#'
11864 CODE_COVERAGE_ENABLED_FALSE=
11865fi
11866
11867 CODE_COVERAGE_ENABLED=$enable_code_coverage
11868
11869 { $as_echo "$as_me:$LINENO: result: $enable_code_coverage" >&5
11870$as_echo "$enable_code_coverage" >&6; }
11871
11872 if test "$enable_code_coverage" = "yes" ; then
11873
11874 # check for gcov
11875 if test -n "$ac_tool_prefix"; then
11876 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
11877set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
11878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11879$as_echo_n "checking for $ac_word... " >&6; }
11880if test "${ac_cv_prog_GCOV+set}" = set; then
11881 $as_echo_n "(cached) " >&6
11882else
11883 if test -n "$GCOV"; then
11884 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
11885else
11886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11893 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
11894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897done
11898done
11899IFS=$as_save_IFS
11900
11901fi
11902fi
11903GCOV=$ac_cv_prog_GCOV
11904if test -n "$GCOV"; then
11905 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
11906$as_echo "$GCOV" >&6; }
11907else
11908 { $as_echo "$as_me:$LINENO: result: no" >&5
11909$as_echo "no" >&6; }
11910fi
11911
11912
11913fi
11914if test -z "$ac_cv_prog_GCOV"; then
11915 ac_ct_GCOV=$GCOV
11916 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
11917set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
11918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11919$as_echo_n "checking for $ac_word... " >&6; }
11920if test "${ac_cv_prog_ac_ct_GCOV+set}" = set; then
11921 $as_echo_n "(cached) " >&6
11922else
11923 if test -n "$ac_ct_GCOV"; then
11924 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
11925else
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11933 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
11934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937done
11938done
11939IFS=$as_save_IFS
11940
11941fi
11942fi
11943ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
11944if test -n "$ac_ct_GCOV"; then
11945 { $as_echo "$as_me:$LINENO: result: $ac_ct_GCOV" >&5
11946$as_echo "$ac_ct_GCOV" >&6; }
11947else
11948 { $as_echo "$as_me:$LINENO: result: no" >&5
11949$as_echo "no" >&6; }
11950fi
11951
11952 if test "x$ac_ct_GCOV" = x; then
11953 GCOV=":"
11954 else
11955 case $cross_compiling:$ac_tool_warned in
11956yes:)
11957{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11959ac_tool_warned=yes ;;
11960esac
11961 GCOV=$ac_ct_GCOV
11962 fi
11963else
11964 GCOV="$ac_cv_prog_GCOV"
11965fi
11966
11967 if test "X$GCOV" = "X:"; then
11968 { { $as_echo "$as_me:$LINENO: error: gcov is needed to do coverage" >&5
11969$as_echo "$as_me: error: gcov is needed to do coverage" >&2;}
11970 { (exit 1); exit 1; }; }
11971fi
11972
11973
11974
11975 if test "$GCC" = "no" ; then
11976
11977 { { $as_echo "$as_me:$LINENO: error: not compiling with gcc, which is required for gcov code coverage" >&5
11978$as_echo "$as_me: error: not compiling with gcc, which is required for gcov code coverage" >&2;}
11979 { (exit 1); exit 1; }; }
11980
11981fi
11982
11983
11984 # Extract the first word of "lcov", so it can be a program name with args.
11985set dummy lcov; ac_word=$2
11986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
11988if test "${ac_cv_prog_LCOV+set}" = set; then
11989 $as_echo_n "(cached) " >&6
11990else
11991 if test -n "$LCOV"; then
11992 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_prog_LCOV="lcov"
12002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005done
12006done
12007IFS=$as_save_IFS
12008
12009fi
12010fi
12011LCOV=$ac_cv_prog_LCOV
12012if test -n "$LCOV"; then
12013 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12014$as_echo "$LCOV" >&6; }
12015else
12016 { $as_echo "$as_me:$LINENO: result: no" >&5
12017$as_echo "no" >&6; }
12018fi
12019
12020
12021 # Extract the first word of "genhtml", so it can be a program name with args.
12022set dummy genhtml; ac_word=$2
12023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12024$as_echo_n "checking for $ac_word... " >&6; }
12025if test "${ac_cv_prog_GENHTML+set}" = set; then
12026 $as_echo_n "(cached) " >&6
12027else
12028 if test -n "$GENHTML"; then
12029 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
12030else
12031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038 ac_cv_prog_GENHTML="genhtml"
12039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12041 fi
12042done
12043done
12044IFS=$as_save_IFS
12045
12046fi
12047fi
12048GENHTML=$ac_cv_prog_GENHTML
12049if test -n "$GENHTML"; then
12050 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12051$as_echo "$GENHTML" >&6; }
12052else
12053 { $as_echo "$as_me:$LINENO: result: no" >&5
12054$as_echo "no" >&6; }
12055fi
12056
12057
12058
12059 if test -z "$LCOV" ; then
12060
12061 { { $as_echo "$as_me:$LINENO: error: To enable code coverage reporting you must have lcov installed" >&5
12062$as_echo "$as_me: error: To enable code coverage reporting you must have lcov installed" >&2;}
12063 { (exit 1); exit 1; }; }
12064
12065fi
12066
12067
12068 if test -z "$GENHTML" ; then
12069
12070 { { $as_echo "$as_me:$LINENO: error: Could not find genhtml from the lcov package" >&5
12071$as_echo "$as_me: error: Could not find genhtml from the lcov package" >&2;}
12072 { (exit 1); exit 1; }; }
12073
12074fi
12075
12076
12077 CODE_COVERAGE_CPPFLAGS=""
12078 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
12079 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
12080 CODE_COVERAGE_LIBS="-lgcov"
12081 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
12082
12083
12084
12085
12086
12087
12088
12089 CODE_COVERAGE_RULES_CHECK='
12090 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
12091 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
12092'
12093 CODE_COVERAGE_RULES_CAPTURE='
12094 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
12095 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
12096 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
12097 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
12098 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
12099'
12100 CODE_COVERAGE_RULES_CLEAN='
12101clean: code-coverage-clean
12102distclean: code-coverage-clean
12103code-coverage-clean:
12104 -$(LCOV) --directory $(top_builddir) -z
12105 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12106 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
12107'
12108
12109else
12110
12111 CODE_COVERAGE_RULES_CHECK='
12112 @echo "Need to reconfigure with --enable-code-coverage"
12113'
12114 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
12115 CODE_COVERAGE_RULES_CLEAN=''
12116
12117fi
12118
12119
12120CODE_COVERAGE_RULES='
12121# Code coverage
12122#
12123# Optional:
12124# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
12125# Multiple directories may be specified, separated by whitespace.
12126# (Default: $(top_builddir))
12127# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
12128# by lcov for code coverage. (Default:
12129# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
12130# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
12131# reports to be created. (Default:
12132# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
12133# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
12134# set to 0 to disable it and leave empty to stay with the default.
12135# (Default: empty)
12136# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
12137# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
12138# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
12139# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12140# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
12141# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
12142# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12143# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
12144# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12145# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
12146# lcov instance. (Default: empty)
12147# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
12148# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12149# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
12150# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
12151# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
12152# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12153# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
12154#
12155# The generated report will be titled using the $(PACKAGE_NAME) and
12156# $(PACKAGE_VERSION). In order to add the current git hash to the title,
12157# use the git-version-gen script, available online.
12158
12159# Optional variables
12160CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
12161CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
12162CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
12163CODE_COVERAGE_BRANCH_COVERAGE ?=
12164CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12165--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12166CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12167CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
12168CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12169CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12170CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
12171CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12172CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
12173$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12174--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12175CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12176CODE_COVERAGE_IGNORE_PATTERN ?=
12177
12178GITIGNOREFILES ?=
12179GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12180
12181code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
12182code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
12183code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
12184 $(CODE_COVERAGE_OUTPUT_FILE);
12185code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
12186code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
12187code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
12188 $(CODE_COVERAGE_IGNORE_PATTERN);
12189code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
12190code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
12191code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
12192code_coverage_quiet = $(code_coverage_quiet_$(V))
12193code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
12194code_coverage_quiet_0 = --quiet
12195
12196# sanitizes the test-name: replaces with underscores: dashes and dots
12197code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
12198
12199# Use recursive makes in order to ignore errors during check
12200check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
12201
12202# Capture code coverage data
12203code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
12204
12205# Hook rule executed before code-coverage-capture, overridable by the user
12206code-coverage-capture-hook:
12207
12208'"$CODE_COVERAGE_RULES_CLEAN"'
12209
12210A''M_DISTCHECK_CONFIGURE_FLAGS ?=
12211A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
12212
12213.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
12214'
12215
12216
12217
12218
12219
12220
cae5b340 12221 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
ea04106b 12222$as_echo_n "checking zfs author... " >&6; }
cae5b340 12223 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
ea04106b
AX
12224$as_echo "$ZFS_META_AUTHOR" >&6; }
12225
cae5b340 12226 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
ea04106b 12227$as_echo_n "checking zfs license... " >&6; }
cae5b340 12228 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
ea04106b
AX
12229$as_echo "$ZFS_META_LICENSE" >&6; }
12230
12231
12232
cae5b340 12233 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
ea04106b
AX
12234$as_echo_n "checking linux distribution... " >&6; }
12235 if test -f /etc/toss-release ; then
12236 VENDOR=toss ;
12237 elif test -f /etc/fedora-release ; then
12238 VENDOR=fedora ;
12239 elif test -f /etc/redhat-release ; then
12240 VENDOR=redhat ;
12241 elif test -f /etc/gentoo-release ; then
12242 VENDOR=gentoo ;
12243 elif test -f /etc/arch-release ; then
12244 VENDOR=arch ;
12245 elif test -f /etc/SuSE-release ; then
12246 VENDOR=sles ;
12247 elif test -f /etc/slackware-version ; then
12248 VENDOR=slackware ;
12249 elif test -f /etc/lunar.release ; then
12250 VENDOR=lunar ;
12251 elif test -f /etc/lsb-release ; then
12252 VENDOR=ubuntu ;
12253 elif test -f /etc/debian_version ; then
12254 VENDOR=debian ;
cae5b340
AX
12255 elif test -f /etc/alpine-release ; then
12256 VENDOR=alpine ;
ea04106b
AX
12257 else
12258 VENDOR= ;
12259 fi
cae5b340 12260 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
ea04106b
AX
12261$as_echo "$VENDOR" >&6; }
12262
12263
cae5b340 12264 { $as_echo "$as_me:$LINENO: checking default package type" >&5
ea04106b
AX
12265$as_echo_n "checking default package type... " >&6; }
12266 case "$VENDOR" in
12267 toss) DEFAULT_PACKAGE=rpm ;;
12268 redhat) DEFAULT_PACKAGE=rpm ;;
12269 fedora) DEFAULT_PACKAGE=rpm ;;
12270 gentoo) DEFAULT_PACKAGE=tgz ;;
cae5b340 12271 alpine) DEFAULT_PACKAGE=tgz ;;
ea04106b
AX
12272 arch) DEFAULT_PACKAGE=tgz ;;
12273 sles) DEFAULT_PACKAGE=rpm ;;
12274 slackware) DEFAULT_PACKAGE=tgz ;;
12275 lunar) DEFAULT_PACKAGE=tgz ;;
12276 ubuntu) DEFAULT_PACKAGE=deb ;;
12277 debian) DEFAULT_PACKAGE=deb ;;
12278 *) DEFAULT_PACKAGE=rpm ;;
12279 esac
cae5b340 12280 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
ea04106b
AX
12281$as_echo "$DEFAULT_PACKAGE" >&6; }
12282
12283
12284 DEFAULT_INIT_DIR=$sysconfdir/init.d
cae5b340 12285 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
ea04106b 12286$as_echo_n "checking default init directory... " >&6; }
cae5b340 12287 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
ea04106b
AX
12288$as_echo "$DEFAULT_INIT_DIR" >&6; }
12289
12290
cae5b340 12291 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
ea04106b
AX
12292$as_echo_n "checking default init script type... " >&6; }
12293 case "$VENDOR" in
12294 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12295 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12296 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
cae5b340
AX
12297 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12298 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
ea04106b
AX
12299 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12300 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12301 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12302 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12303 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12304 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12305 *) DEFAULT_INIT_SCRIPT=lsb ;;
12306 esac
cae5b340 12307 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
ea04106b
AX
12308$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12309
12310
cae5b340 12311 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
e10b0808
AX
12312$as_echo_n "checking default init config direectory... " >&6; }
12313 case "$VENDOR" in
cae5b340 12314 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
e10b0808
AX
12315 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12316 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12317 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12318 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12319 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12320 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12321 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12322 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12323 esac
cae5b340 12324 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
e10b0808
AX
12325$as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12326
12327
cae5b340 12328 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
e10b0808
AX
12329$as_echo_n "checking whether initramfs-tools is available... " >&6; }
12330 if test -d /usr/share/initramfs-tools ; then
12331 DEFINE_INITRAMFS='--define "_initramfs 1"'
cae5b340 12332 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
12333$as_echo "yes" >&6; }
12334 else
12335 DEFINE_INITRAMFS=''
cae5b340 12336 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
12337$as_echo "no" >&6; }
12338 fi
12339
12340
ea04106b
AX
12341
12342 RPM=rpm
12343 RPMBUILD=rpmbuild
12344
cae5b340 12345 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
ea04106b 12346$as_echo_n "checking whether $RPM is available... " >&6; }
cae5b340 12347 if tmp=$($RPM --version 2>/dev/null); then
ea04106b
AX
12348
12349 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12350 HAVE_RPM=yes
cae5b340 12351 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
ea04106b
AX
12352$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12353
12354else
12355
12356 HAVE_RPM=no
cae5b340 12357 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
ea04106b
AX
12358$as_echo "$HAVE_RPM" >&6; }
12359
12360fi
12361
cae5b340
AX
12362
12363 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
ea04106b 12364$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
cae5b340 12365 if tmp=$($RPMBUILD --version 2>/dev/null); then
ea04106b
AX
12366
12367 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12368 HAVE_RPMBUILD=yes
cae5b340 12369 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
ea04106b
AX
12370$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12371
12372else
12373
12374 HAVE_RPMBUILD=no
cae5b340 12375 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
ea04106b
AX
12376$as_echo "$HAVE_RPMBUILD" >&6; }
12377
12378fi
12379
cae5b340
AX
12380
12381 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
42f7b73b
AX
12382
12383
12384 RPM_DEFINE_UTIL=' --define "_initconfdir $(DEFAULT_INITCONF_DIR)"'
12385
12386 if test -n "$dracutdir" ; then
12387
12388 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)"'
12389
12390fi
12391
12392 if test -n "$udevdir" ; then
12393
12394 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevdir)"'
12395
12396fi
12397
12398 if test -n "$udevruledir" ; then
12399
12400 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevruledir)"'
12401
12402fi
12403
12404 RPM_DEFINE_UTIL+=' $(DEFINE_INITRAMFS)'
12405 RPM_DEFINE_UTIL+=' $(DEFINE_SYSTEMD)'
12406
ea04106b 12407 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
42f7b73b
AX
12408 RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
12409
ea04106b
AX
12410 RPM_DEFINE_DKMS=
12411
42f7b73b
AX
12412 if test "$DEFAULT_PACKAGE" = "deb"; then
12413
12414 MULTIARCH_LIBDIR="lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
12415 RPM_DEFINE_UTIL+=' --define "_lib $(MULTIARCH_LIBDIR)"'
12416
12417
12418fi
12419
12420
ea04106b
AX
12421 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12422 SRPM_DEFINE_UTIL=
12423 SRPM_DEFINE_KMOD=
12424 SRPM_DEFINE_DKMS=
12425
12426 RPM_SPEC_DIR="rpm/generic"
12427
12428# Check whether --with-spec was given.
cae5b340 12429if test "${with_spec+set}" = set; then
ea04106b
AX
12430 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12431fi
12432
12433
cae5b340 12434 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
ea04106b 12435$as_echo_n "checking whether spec files are available... " >&6; }
cae5b340 12436 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
ea04106b
AX
12437$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458 DPKG=dpkg
12459 DPKGBUILD=dpkg-buildpackage
12460
cae5b340 12461 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
ea04106b 12462$as_echo_n "checking whether $DPKG is available... " >&6; }
cae5b340 12463 if tmp=$($DPKG --version 2>/dev/null); then
ea04106b
AX
12464
12465 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12466 HAVE_DPKG=yes
cae5b340 12467 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
ea04106b
AX
12468$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12469
12470else
12471
12472 HAVE_DPKG=no
cae5b340 12473 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
ea04106b
AX
12474$as_echo "$HAVE_DPKG" >&6; }
12475
12476fi
12477
cae5b340
AX
12478
12479 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
ea04106b 12480$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
cae5b340 12481 if tmp=$($DPKGBUILD --version 2>/dev/null); then
ea04106b
AX
12482
12483 DPKGBUILD_VERSION=$(echo $tmp | \
12484 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12485 HAVE_DPKGBUILD=yes
cae5b340 12486 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
ea04106b
AX
12487$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12488
12489else
12490
12491 HAVE_DPKGBUILD=no
cae5b340 12492 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
ea04106b
AX
12493$as_echo "$HAVE_DPKGBUILD" >&6; }
12494
12495fi
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
cae5b340 12506
ea04106b
AX
12507 ALIEN=alien
12508
cae5b340 12509 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
ea04106b 12510$as_echo_n "checking whether $ALIEN is available... " >&6; }
cae5b340 12511 if tmp=$($ALIEN --version 2>/dev/null); then
ea04106b
AX
12512
12513 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12514 HAVE_ALIEN=yes
cae5b340 12515 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
ea04106b
AX
12516$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12517
12518else
12519
12520 HAVE_ALIEN=no
cae5b340 12521 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
ea04106b
AX
12522$as_echo "$HAVE_ALIEN" >&6; }
12523
12524fi
12525
12526
12527
12528
12529
12530
12531
ea04106b
AX
12532
12533 ZFS_CONFIG=all
12534
12535# Check whether --with-config was given.
cae5b340 12536if test "${with_config+set}" = set; then
ea04106b
AX
12537 withval=$with_config; ZFS_CONFIG="$withval"
12538fi
12539
12540 # Check whether --enable-linux-builtin was given.
cae5b340 12541if test "${enable_linux_builtin+set}" = set; then
ea04106b
AX
12542 enableval=$enable_linux_builtin;
12543else
12544 enable_linux_builtin=no
12545fi
12546
12547
cae5b340 12548 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
ea04106b 12549$as_echo_n "checking zfs config... " >&6; }
cae5b340 12550 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
ea04106b
AX
12551$as_echo "$ZFS_CONFIG" >&6; };
12552
12553
12554
12555
cae5b340 12556 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
ea04106b
AX
12557$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12558
12559 saved_flags="$CFLAGS"
12560 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12561
cae5b340
AX
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
12567/* end confdefs.h. */
12568
12569int
12570main ()
12571{
12572
12573 ;
12574 return 0;
12575}
12576_ACEOF
cae5b340
AX
12577rm -f conftest.$ac_objext
12578if { (ac_try="$ac_compile"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584$as_echo "$ac_try_echo") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
ea04106b
AX
12595
12596 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
cae5b340 12597 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
12598$as_echo "yes" >&6; }
12599
12600else
cae5b340
AX
12601 $as_echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
ea04106b
AX
12604
12605 NO_UNUSED_BUT_SET_VARIABLE=
cae5b340 12606 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
12607$as_echo "no" >&6; }
12608
12609fi
cae5b340 12610
ea04106b
AX
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612
12613 CFLAGS="$saved_flags"
12614
12615
12616
cae5b340 12617 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
e10b0808
AX
12618$as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12619
12620 saved_flags="$CFLAGS"
12621 CFLAGS="$CFLAGS -Wbool-compare"
12622
cae5b340
AX
12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
e10b0808
AX
12628/* end confdefs.h. */
12629
12630int
12631main ()
12632{
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
cae5b340
AX
12638rm -f conftest.$ac_objext
12639if { (ac_try="$ac_compile"
12640case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12645$as_echo "$ac_try_echo") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
e10b0808
AX
12656
12657 NO_BOOL_COMPARE=-Wno-bool-compare
cae5b340 12658 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
12659$as_echo "yes" >&6; }
12660
12661else
cae5b340
AX
12662 $as_echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
e10b0808
AX
12665
12666 NO_BOOL_COMPARE=
cae5b340 12667 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
12668$as_echo "no" >&6; }
12669
12670fi
cae5b340 12671
e10b0808
AX
12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673
12674 CFLAGS="$saved_flags"
12675
12676
12677
cae5b340
AX
12678 case "$host_cpu" in
12679 x86_64 | x86 | i686)
ea04106b 12680
cae5b340
AX
12681 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12682$as_echo_n "checking whether host toolchain supports SSE... " >&6; }
ea04106b 12683
cae5b340
AX
12684 cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
ea04106b 12690
cae5b340
AX
12691 void main()
12692 {
12693 __asm__ __volatile__("xorps %xmm0, %xmm1");
12694 }
ea04106b 12695
cae5b340
AX
12696_ACEOF
12697rm -f conftest.$ac_objext conftest$ac_exeext
12698if { (ac_try="$ac_link"
12699case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704$as_echo "$ac_try_echo") >&5
12705 (eval "$ac_link") 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest$ac_exeext && {
12715 test "$cross_compiling" = yes ||
12716 $as_test_x conftest$ac_exeext
12717 }; then
ea04106b 12718
ea04106b 12719
cae5b340
AX
12720cat >>confdefs.h <<\_ACEOF
12721#define HAVE_SSE 1
12722_ACEOF
ea04106b 12723
cae5b340
AX
12724 { $as_echo "$as_me:$LINENO: result: yes" >&5
12725$as_echo "yes" >&6; }
ea04106b
AX
12726
12727else
cae5b340
AX
12728 $as_echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12730
cae5b340
AX
12731
12732 { $as_echo "$as_me:$LINENO: result: no" >&5
12733$as_echo "no" >&6; }
ea04106b
AX
12734
12735fi
12736
cae5b340
AX
12737rm -rf conftest.dSYM
12738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12739 conftest$ac_exeext conftest.$ac_ext
ea04106b 12740
ea04106b 12741
cae5b340
AX
12742 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12743$as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
ea04106b 12744
cae5b340
AX
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
ea04106b 12751
cae5b340
AX
12752 void main()
12753 {
12754 __asm__ __volatile__("pxor %xmm0, %xmm1");
12755 }
ea04106b 12756
cae5b340
AX
12757_ACEOF
12758rm -f conftest.$ac_objext conftest$ac_exeext
12759if { (ac_try="$ac_link"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12765$as_echo "$ac_try_echo") >&5
12766 (eval "$ac_link") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest$ac_exeext && {
12776 test "$cross_compiling" = yes ||
12777 $as_test_x conftest$ac_exeext
12778 }; then
ea04106b 12779
ea04106b 12780
cae5b340
AX
12781cat >>confdefs.h <<\_ACEOF
12782#define HAVE_SSE2 1
12783_ACEOF
ea04106b 12784
cae5b340
AX
12785 { $as_echo "$as_me:$LINENO: result: yes" >&5
12786$as_echo "yes" >&6; }
ea04106b 12787
cae5b340
AX
12788else
12789 $as_echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12791
ea04106b 12792
cae5b340
AX
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794$as_echo "no" >&6; }
ea04106b
AX
12795
12796fi
12797
cae5b340
AX
12798rm -rf conftest.dSYM
12799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
ea04106b 12801
ea04106b 12802
cae5b340
AX
12803 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12804$as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
ea04106b 12805
cae5b340
AX
12806 cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
ea04106b 12812
cae5b340
AX
12813 void main()
12814 {
12815 char v[16];
12816 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12817 }
ea04106b 12818
cae5b340
AX
12819_ACEOF
12820rm -f conftest.$ac_objext conftest$ac_exeext
12821if { (ac_try="$ac_link"
12822case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825esac
12826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827$as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && {
12835 test -z "$ac_c_werror_flag" ||
12836 test ! -s conftest.err
12837 } && test -s conftest$ac_exeext && {
12838 test "$cross_compiling" = yes ||
12839 $as_test_x conftest$ac_exeext
12840 }; then
ea04106b 12841
ea04106b 12842
cae5b340
AX
12843cat >>confdefs.h <<\_ACEOF
12844#define HAVE_SSE3 1
12845_ACEOF
ea04106b 12846
cae5b340
AX
12847 { $as_echo "$as_me:$LINENO: result: yes" >&5
12848$as_echo "yes" >&6; }
ea04106b
AX
12849
12850else
cae5b340
AX
12851 $as_echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12853
ea04106b 12854
cae5b340
AX
12855 { $as_echo "$as_me:$LINENO: result: no" >&5
12856$as_echo "no" >&6; }
ea04106b
AX
12857
12858fi
ea04106b 12859
cae5b340
AX
12860rm -rf conftest.dSYM
12861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12862 conftest$ac_exeext conftest.$ac_ext
ea04106b 12863
ea04106b 12864
cae5b340
AX
12865 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12866$as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
ea04106b 12867
cae5b340
AX
12868 cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
ea04106b 12874
cae5b340
AX
12875 void main()
12876 {
12877 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12878 }
ea04106b 12879
cae5b340
AX
12880_ACEOF
12881rm -f conftest.$ac_objext conftest$ac_exeext
12882if { (ac_try="$ac_link"
12883case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886esac
12887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12888$as_echo "$ac_try_echo") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && {
12896 test -z "$ac_c_werror_flag" ||
12897 test ! -s conftest.err
12898 } && test -s conftest$ac_exeext && {
12899 test "$cross_compiling" = yes ||
12900 $as_test_x conftest$ac_exeext
12901 }; then
ea04106b 12902
ea04106b 12903
cae5b340
AX
12904cat >>confdefs.h <<\_ACEOF
12905#define HAVE_SSSE3 1
12906_ACEOF
ea04106b 12907
cae5b340
AX
12908 { $as_echo "$as_me:$LINENO: result: yes" >&5
12909$as_echo "yes" >&6; }
ea04106b
AX
12910
12911else
cae5b340
AX
12912 $as_echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12914
ea04106b 12915
cae5b340
AX
12916 { $as_echo "$as_me:$LINENO: result: no" >&5
12917$as_echo "no" >&6; }
ea04106b 12918
cae5b340 12919fi
ea04106b 12920
cae5b340
AX
12921rm -rf conftest.dSYM
12922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
12924
12925
cae5b340
AX
12926 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.1" >&5
12927$as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
ea04106b 12928
cae5b340
AX
12929 cat >conftest.$ac_ext <<_ACEOF
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
ea04106b 12935
cae5b340
AX
12936 void main()
12937 {
12938 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12939 }
ea04106b 12940
cae5b340
AX
12941_ACEOF
12942rm -f conftest.$ac_objext conftest$ac_exeext
12943if { (ac_try="$ac_link"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949$as_echo "$ac_try_echo") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } && {
12957 test -z "$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12959 } && test -s conftest$ac_exeext && {
12960 test "$cross_compiling" = yes ||
12961 $as_test_x conftest$ac_exeext
12962 }; then
ea04106b 12963
ea04106b 12964
cae5b340
AX
12965cat >>confdefs.h <<\_ACEOF
12966#define HAVE_SSE4_1 1
12967_ACEOF
ea04106b 12968
cae5b340
AX
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970$as_echo "yes" >&6; }
ea04106b
AX
12971
12972else
cae5b340
AX
12973 $as_echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12975
ea04106b 12976
cae5b340
AX
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978$as_echo "no" >&6; }
ea04106b 12979
cae5b340 12980fi
ea04106b 12981
cae5b340
AX
12982rm -rf conftest.dSYM
12983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12984 conftest$ac_exeext conftest.$ac_ext
ea04106b 12985
ea04106b 12986
cae5b340
AX
12987 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.2" >&5
12988$as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
ea04106b 12989
cae5b340
AX
12990 cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
12995/* end confdefs.h. */
ea04106b 12996
cae5b340
AX
12997 void main()
12998 {
12999 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13000 }
ea04106b 13001
cae5b340
AX
13002_ACEOF
13003rm -f conftest.$ac_objext conftest$ac_exeext
13004if { (ac_try="$ac_link"
13005case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010$as_echo "$ac_try_echo") >&5
13011 (eval "$ac_link") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest$ac_exeext && {
13021 test "$cross_compiling" = yes ||
13022 $as_test_x conftest$ac_exeext
13023 }; then
ea04106b
AX
13024
13025
cae5b340
AX
13026cat >>confdefs.h <<\_ACEOF
13027#define HAVE_SSE4_2 1
13028_ACEOF
ea04106b 13029
cae5b340
AX
13030 { $as_echo "$as_me:$LINENO: result: yes" >&5
13031$as_echo "yes" >&6; }
ea04106b 13032
cae5b340
AX
13033else
13034 $as_echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
13036
13037
cae5b340
AX
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039$as_echo "no" >&6; }
ea04106b 13040
ea04106b
AX
13041fi
13042
cae5b340
AX
13043rm -rf conftest.dSYM
13044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13045 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13046
13047
cae5b340
AX
13048 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
13049$as_echo_n "checking whether host toolchain supports AVX... " >&6; }
ea04106b 13050
cae5b340
AX
13051 cat >conftest.$ac_ext <<_ACEOF
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
ea04106b 13057
cae5b340
AX
13058 void main()
13059 {
13060 char v[32];
13061 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13062 }
ea04106b 13063
cae5b340
AX
13064_ACEOF
13065rm -f conftest.$ac_objext conftest$ac_exeext
13066if { (ac_try="$ac_link"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13072$as_echo "$ac_try_echo") >&5
13073 (eval "$ac_link") 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } && {
13080 test -z "$ac_c_werror_flag" ||
13081 test ! -s conftest.err
13082 } && test -s conftest$ac_exeext && {
13083 test "$cross_compiling" = yes ||
13084 $as_test_x conftest$ac_exeext
13085 }; then
ea04106b 13086
cae5b340
AX
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088$as_echo "yes" >&6; }
ea04106b 13089
cae5b340
AX
13090cat >>confdefs.h <<\_ACEOF
13091#define HAVE_AVX 1
13092_ACEOF
ea04106b 13093
ea04106b 13094
cae5b340
AX
13095else
13096 $as_echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13098
ea04106b 13099
cae5b340
AX
13100 { $as_echo "$as_me:$LINENO: result: no" >&5
13101$as_echo "no" >&6; }
ea04106b 13102
cae5b340 13103fi
ea04106b 13104
cae5b340
AX
13105rm -rf conftest.dSYM
13106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13107 conftest$ac_exeext conftest.$ac_ext
ea04106b 13108
ea04106b 13109
cae5b340
AX
13110 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
13111$as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
ea04106b 13112
cae5b340
AX
13113 cat >conftest.$ac_ext <<_ACEOF
13114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
ea04106b 13119
ea04106b 13120
cae5b340
AX
13121 void main()
13122 {
13123 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13124 }
ea04106b 13125
cae5b340
AX
13126_ACEOF
13127rm -f conftest.$ac_objext conftest$ac_exeext
13128if { (ac_try="$ac_link"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13134$as_echo "$ac_try_echo") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } && {
13142 test -z "$ac_c_werror_flag" ||
13143 test ! -s conftest.err
13144 } && test -s conftest$ac_exeext && {
13145 test "$cross_compiling" = yes ||
13146 $as_test_x conftest$ac_exeext
13147 }; then
ea04106b 13148
cae5b340
AX
13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
13150$as_echo "yes" >&6; }
ea04106b 13151
cae5b340
AX
13152cat >>confdefs.h <<\_ACEOF
13153#define HAVE_AVX2 1
13154_ACEOF
ea04106b 13155
ea04106b
AX
13156
13157else
cae5b340
AX
13158 $as_echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13160
ea04106b 13161
cae5b340
AX
13162 { $as_echo "$as_me:$LINENO: result: no" >&5
13163$as_echo "no" >&6; }
ea04106b
AX
13164
13165fi
13166
cae5b340
AX
13167rm -rf conftest.dSYM
13168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13169 conftest$ac_exeext conftest.$ac_ext
ea04106b 13170
ea04106b 13171
cae5b340
AX
13172 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
13173$as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
ea04106b 13174
cae5b340
AX
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
ea04106b 13181
ea04106b 13182
cae5b340
AX
13183 void main()
13184 {
13185 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13186 }
ea04106b 13187
cae5b340
AX
13188_ACEOF
13189rm -f conftest.$ac_objext conftest$ac_exeext
13190if { (ac_try="$ac_link"
13191case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194esac
13195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13196$as_echo "$ac_try_echo") >&5
13197 (eval "$ac_link") 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && {
13204 test -z "$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 } && test -s conftest$ac_exeext && {
13207 test "$cross_compiling" = yes ||
13208 $as_test_x conftest$ac_exeext
13209 }; then
ea04106b 13210
cae5b340
AX
13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
13212$as_echo "yes" >&6; }
ea04106b 13213
cae5b340
AX
13214cat >>confdefs.h <<\_ACEOF
13215#define HAVE_AVX512F 1
13216_ACEOF
e10b0808 13217
e10b0808 13218
ea04106b 13219else
cae5b340
AX
13220 $as_echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13222
ea04106b 13223
cae5b340
AX
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225$as_echo "no" >&6; }
ea04106b
AX
13226
13227fi
ea04106b 13228
cae5b340
AX
13229rm -rf conftest.dSYM
13230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13231 conftest$ac_exeext conftest.$ac_ext
ea04106b 13232
ea04106b 13233
cae5b340
AX
13234 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
13235$as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
ea04106b 13236
cae5b340
AX
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
ea04106b 13243
ea04106b 13244
cae5b340
AX
13245 void main()
13246 {
13247 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13248 }
ea04106b 13249
cae5b340
AX
13250_ACEOF
13251rm -f conftest.$ac_objext conftest$ac_exeext
13252if { (ac_try="$ac_link"
13253case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256esac
13257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13258$as_echo "$ac_try_echo") >&5
13259 (eval "$ac_link") 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } && {
13266 test -z "$ac_c_werror_flag" ||
13267 test ! -s conftest.err
13268 } && test -s conftest$ac_exeext && {
13269 test "$cross_compiling" = yes ||
13270 $as_test_x conftest$ac_exeext
13271 }; then
ea04106b 13272
cae5b340
AX
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274$as_echo "yes" >&6; }
ea04106b 13275
cae5b340
AX
13276cat >>confdefs.h <<\_ACEOF
13277#define HAVE_AVX512CD 1
13278_ACEOF
ea04106b 13279
ea04106b 13280
cae5b340
AX
13281else
13282 $as_echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13284
ea04106b 13285
cae5b340
AX
13286 { $as_echo "$as_me:$LINENO: result: no" >&5
13287$as_echo "no" >&6; }
ea04106b
AX
13288
13289fi
13290
cae5b340
AX
13291rm -rf conftest.dSYM
13292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13293 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13294
13295
cae5b340
AX
13296 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
13297$as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
ea04106b 13298
cae5b340
AX
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
ea04106b 13305
ea04106b 13306
cae5b340
AX
13307 void main()
13308 {
13309 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13310 }
ea04106b 13311
cae5b340
AX
13312_ACEOF
13313rm -f conftest.$ac_objext conftest$ac_exeext
13314if { (ac_try="$ac_link"
13315case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13320$as_echo "$ac_try_echo") >&5
13321 (eval "$ac_link") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && {
13328 test -z "$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13330 } && test -s conftest$ac_exeext && {
13331 test "$cross_compiling" = yes ||
13332 $as_test_x conftest$ac_exeext
13333 }; then
ea04106b 13334
cae5b340
AX
13335 { $as_echo "$as_me:$LINENO: result: yes" >&5
13336$as_echo "yes" >&6; }
ea04106b 13337
cae5b340
AX
13338cat >>confdefs.h <<\_ACEOF
13339#define HAVE_AVX512DQ 1
13340_ACEOF
ea04106b 13341
ea04106b 13342
cae5b340
AX
13343else
13344 $as_echo "$as_me: failed program was:" >&5
13345sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13346
ea04106b 13347
cae5b340
AX
13348 { $as_echo "$as_me:$LINENO: result: no" >&5
13349$as_echo "no" >&6; }
ea04106b
AX
13350
13351fi
13352
cae5b340
AX
13353rm -rf conftest.dSYM
13354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13355 conftest$ac_exeext conftest.$ac_ext
ea04106b 13356
ea04106b 13357
cae5b340
AX
13358 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
13359$as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
ea04106b 13360
cae5b340
AX
13361 cat >conftest.$ac_ext <<_ACEOF
13362/* confdefs.h. */
13363_ACEOF
13364cat confdefs.h >>conftest.$ac_ext
13365cat >>conftest.$ac_ext <<_ACEOF
13366/* end confdefs.h. */
ea04106b 13367
ea04106b 13368
cae5b340
AX
13369 void main()
13370 {
13371 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13372 }
ea04106b 13373
cae5b340
AX
13374_ACEOF
13375rm -f conftest.$ac_objext conftest$ac_exeext
13376if { (ac_try="$ac_link"
13377case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380esac
13381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382$as_echo "$ac_try_echo") >&5
13383 (eval "$ac_link") 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } && {
13390 test -z "$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 } && test -s conftest$ac_exeext && {
13393 test "$cross_compiling" = yes ||
13394 $as_test_x conftest$ac_exeext
13395 }; then
ea04106b 13396
cae5b340
AX
13397 { $as_echo "$as_me:$LINENO: result: yes" >&5
13398$as_echo "yes" >&6; }
ea04106b 13399
cae5b340
AX
13400cat >>confdefs.h <<\_ACEOF
13401#define HAVE_AVX512BW 1
13402_ACEOF
ea04106b
AX
13403
13404
cae5b340
AX
13405else
13406 $as_echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13408
ea04106b 13409
cae5b340
AX
13410 { $as_echo "$as_me:$LINENO: result: no" >&5
13411$as_echo "no" >&6; }
ea04106b 13412
cae5b340 13413fi
ea04106b 13414
cae5b340
AX
13415rm -rf conftest.dSYM
13416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext conftest.$ac_ext
ea04106b 13418
ea04106b 13419
cae5b340
AX
13420 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
13421$as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
ea04106b 13422
cae5b340
AX
13423 cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
ea04106b 13425_ACEOF
cae5b340
AX
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
13428/* end confdefs.h. */
ea04106b
AX
13429
13430
cae5b340
AX
13431 void main()
13432 {
13433 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13434 }
ea04106b
AX
13435
13436_ACEOF
cae5b340
AX
13437rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (ac_try="$ac_link"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13444$as_echo "$ac_try_echo") >&5
13445 (eval "$ac_link") 2>conftest.er1
ea04106b 13446 ac_status=$?
cae5b340
AX
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest$ac_exeext && {
13455 test "$cross_compiling" = yes ||
13456 $as_test_x conftest$ac_exeext
13457 }; then
ea04106b 13458
cae5b340 13459 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
13460$as_echo "yes" >&6; }
13461
cae5b340
AX
13462cat >>confdefs.h <<\_ACEOF
13463#define HAVE_AVX512IFMA 1
13464_ACEOF
13465
13466
ea04106b
AX
13467else
13468 $as_echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
ea04106b 13471
cae5b340
AX
13472 { $as_echo "$as_me:$LINENO: result: no" >&5
13473$as_echo "no" >&6; }
ea04106b
AX
13474
13475fi
ea04106b 13476
cae5b340
AX
13477rm -rf conftest.dSYM
13478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13480
13481
cae5b340
AX
13482 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13483$as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
94a40997 13484
cae5b340
AX
13485 cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
13490/* end confdefs.h. */
13491
13492
cae5b340
AX
13493 void main()
13494 {
13495 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13496 }
ea04106b 13497
cae5b340
AX
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (ac_try="$ac_link"
13501case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506$as_echo "$ac_try_echo") >&5
13507 (eval "$ac_link") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest$ac_exeext && {
13517 test "$cross_compiling" = yes ||
13518 $as_test_x conftest$ac_exeext
13519 }; then
ea04106b 13520
cae5b340
AX
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522$as_echo "yes" >&6; }
ea04106b 13523
cae5b340
AX
13524cat >>confdefs.h <<\_ACEOF
13525#define HAVE_AVX512VBMI 1
ea04106b 13526_ACEOF
ea04106b
AX
13527
13528
cae5b340
AX
13529else
13530 $as_echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13532
ea04106b 13533
cae5b340
AX
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535$as_echo "no" >&6; }
ea04106b 13536
94a40997
AX
13537fi
13538
cae5b340
AX
13539rm -rf conftest.dSYM
13540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13541 conftest$ac_exeext conftest.$ac_ext
ea04106b 13542
68d83c55 13543
cae5b340
AX
13544 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13545$as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
68d83c55 13546
cae5b340
AX
13547 cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
68d83c55 13549_ACEOF
cae5b340
AX
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
68d83c55
AX
13553
13554
cae5b340
AX
13555 void main()
13556 {
13557 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13558 }
68d83c55
AX
13559
13560_ACEOF
cae5b340
AX
13561rm -f conftest.$ac_objext conftest$ac_exeext
13562if { (ac_try="$ac_link"
13563case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568$as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
68d83c55 13570 ac_status=$?
cae5b340
AX
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest$ac_exeext
13581 }; then
68d83c55 13582
cae5b340 13583 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
13584$as_echo "yes" >&6; }
13585
cae5b340
AX
13586cat >>confdefs.h <<\_ACEOF
13587#define HAVE_AVX512PF 1
13588_ACEOF
68d83c55
AX
13589
13590
13591else
13592 $as_echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
68d83c55 13595
cae5b340
AX
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597$as_echo "no" >&6; }
68d83c55
AX
13598
13599fi
ea04106b 13600
cae5b340
AX
13601rm -rf conftest.dSYM
13602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
68d83c55
AX
13604
13605
cae5b340
AX
13606 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13607$as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
68d83c55 13608
cae5b340
AX
13609 cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h. */
68d83c55 13615
ea04106b 13616
cae5b340
AX
13617 void main()
13618 {
13619 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13620 }
ea04106b 13621
cae5b340
AX
13622_ACEOF
13623rm -f conftest.$ac_objext conftest$ac_exeext
13624if { (ac_try="$ac_link"
13625case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628esac
13629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630$as_echo "$ac_try_echo") >&5
13631 (eval "$ac_link") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest$ac_exeext && {
13641 test "$cross_compiling" = yes ||
13642 $as_test_x conftest$ac_exeext
13643 }; then
ea04106b 13644
cae5b340
AX
13645 { $as_echo "$as_me:$LINENO: result: yes" >&5
13646$as_echo "yes" >&6; }
ea04106b 13647
cae5b340
AX
13648cat >>confdefs.h <<\_ACEOF
13649#define HAVE_AVX512ER 1
13650_ACEOF
ea04106b 13651
ea04106b 13652
cae5b340
AX
13653else
13654 $as_echo "$as_me: failed program was:" >&5
13655sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13656
ea04106b 13657
cae5b340
AX
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659$as_echo "no" >&6; }
ea04106b 13660
cae5b340 13661fi
ea04106b 13662
cae5b340
AX
13663rm -rf conftest.dSYM
13664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665 conftest$ac_exeext conftest.$ac_ext
ea04106b 13666
ea04106b 13667
cae5b340
AX
13668 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VL" >&5
13669$as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13670
13671 cat >conftest.$ac_ext <<_ACEOF
13672/* confdefs.h. */
ea04106b 13673_ACEOF
cae5b340
AX
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
ea04106b
AX
13677
13678
cae5b340
AX
13679 void main()
13680 {
13681 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13682 }
13683
13684_ACEOF
13685rm -f conftest.$ac_objext conftest$ac_exeext
13686if { (ac_try="$ac_link"
13687case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13692$as_echo "$ac_try_echo") >&5
13693 (eval "$ac_link") 2>conftest.er1
ea04106b 13694 ac_status=$?
cae5b340
AX
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest$ac_exeext && {
13703 test "$cross_compiling" = yes ||
13704 $as_test_x conftest$ac_exeext
13705 }; then
ea04106b 13706
cae5b340 13707 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
13708$as_echo "yes" >&6; }
13709
cae5b340
AX
13710cat >>confdefs.h <<\_ACEOF
13711#define HAVE_AVX512VL 1
13712_ACEOF
ea04106b
AX
13713
13714
cae5b340
AX
13715else
13716 $as_echo "$as_me: failed program was:" >&5
13717sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
13718
13719
cae5b340
AX
13720 { $as_echo "$as_me:$LINENO: result: no" >&5
13721$as_echo "no" >&6; }
ea04106b 13722
cae5b340 13723fi
ea04106b 13724
cae5b340
AX
13725rm -rf conftest.dSYM
13726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13727 conftest$ac_exeext conftest.$ac_ext
ea04106b 13728
cae5b340
AX
13729 ;;
13730 esac
ea04106b 13731
ea04106b 13732
cae5b340
AX
13733 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13734$as_echo_n "checking for target asm dir... " >&6; }
13735 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13736
13737 case $TARGET_ARCH in
13738 i386|x86_64)
13739 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13740 ;;
13741 *)
13742 TARGET_ASM_DIR=asm-generic
13743 ;;
13744 esac
ea04106b 13745
ea04106b 13746
cae5b340
AX
13747 if test $TARGET_ASM_DIR = asm-x86_64; then
13748 TARGET_ASM_X86_64_TRUE=
13749 TARGET_ASM_X86_64_FALSE='#'
13750else
13751 TARGET_ASM_X86_64_TRUE='#'
13752 TARGET_ASM_X86_64_FALSE=
13753fi
ea04106b 13754
cae5b340
AX
13755 if test $TARGET_ASM_DIR = asm-i386; then
13756 TARGET_ASM_I386_TRUE=
13757 TARGET_ASM_I386_FALSE='#'
13758else
13759 TARGET_ASM_I386_TRUE='#'
13760 TARGET_ASM_I386_FALSE=
13761fi
ea04106b 13762
cae5b340
AX
13763 if test $TARGET_ASM_DIR = asm-generic; then
13764 TARGET_ASM_GENERIC_TRUE=
13765 TARGET_ASM_GENERIC_FALSE='#'
13766else
13767 TARGET_ASM_GENERIC_TRUE='#'
13768 TARGET_ASM_GENERIC_FALSE=
13769fi
ea04106b 13770
cae5b340
AX
13771 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13772$as_echo "$TARGET_ASM_DIR" >&6; }
ea04106b
AX
13773
13774
ea04106b 13775
cae5b340
AX
13776 case "$ZFS_CONFIG" in
13777 kernel)
ea04106b 13778
ea04106b 13779
cae5b340
AX
13780# Check whether --with-linux was given.
13781if test "${with_linux+set}" = set; then
13782 withval=$with_linux; kernelsrc="$withval"
13783fi
ea04106b
AX
13784
13785
13786
cae5b340
AX
13787# Check whether --with-linux-obj was given.
13788if test "${with_linux_obj+set}" = set; then
13789 withval=$with_linux_obj; kernelbuild="$withval"
ea04106b 13790fi
ea04106b
AX
13791
13792
cae5b340
AX
13793 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
13794$as_echo_n "checking kernel source directory... " >&6; }
13795 if test -z "$kernelsrc"; then
ea04106b 13796
cae5b340 13797 if test -e "/lib/modules/$(uname -r)/source"; then
ea04106b 13798
cae5b340
AX
13799 headersdir="/lib/modules/$(uname -r)/source"
13800 sourcelink=$(readlink -f "$headersdir")
ea04106b 13801
cae5b340 13802elif test -e "/lib/modules/$(uname -r)/build"; then
ea04106b 13803
cae5b340
AX
13804 headersdir="/lib/modules/$(uname -r)/build"
13805 sourcelink=$(readlink -f "$headersdir")
ea04106b 13806
cae5b340 13807else
ea04106b 13808
cae5b340
AX
13809 sourcelink=$(ls -1d /usr/src/kernels/* \
13810 /usr/src/linux-* \
13811 2>/dev/null | grep -v obj | tail -1)
ea04106b
AX
13812
13813fi
ea04106b
AX
13814
13815
cae5b340 13816 if test -n "$sourcelink" && test -e ${sourcelink}; then
ea04106b 13817
cae5b340 13818 kernelsrc=`readlink -f ${sourcelink}`
ea04106b 13819
cae5b340 13820else
ea04106b 13821
cae5b340 13822 kernelsrc="Not found"
ea04106b 13823
cae5b340 13824fi
ea04106b 13825
ea04106b 13826
cae5b340 13827else
ea04106b 13828
cae5b340 13829 if test "$kernelsrc" = "NONE"; then
ea04106b 13830
cae5b340 13831 kernsrcver=NONE
ea04106b 13832
cae5b340 13833fi
ea04106b 13834
cae5b340 13835 withlinux=yes
ea04106b 13836
cae5b340 13837fi
ea04106b 13838
ea04106b 13839
cae5b340
AX
13840 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13841$as_echo "$kernelsrc" >&6; }
13842 if test ! -d "$kernelsrc"; then
ea04106b 13843
cae5b340
AX
13844 { { $as_echo "$as_me:$LINENO: error:
13845 *** Please make sure the kernel devel package for your distribution
13846 *** is installed and then try again. If that fails, you can specify the
13847 *** location of the kernel source with the '--with-linux=PATH' option." >&5
13848$as_echo "$as_me: error:
13849 *** Please make sure the kernel devel package for your distribution
13850 *** is installed and then try again. If that fails, you can specify the
13851 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
13852 { (exit 1); exit 1; }; }
ea04106b 13853
cae5b340 13854fi
ea04106b
AX
13855
13856
cae5b340
AX
13857 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
13858$as_echo_n "checking kernel build directory... " >&6; }
13859 if test -z "$kernelbuild"; then
ea04106b 13860
cae5b340 13861 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
ea04106b 13862
cae5b340 13863 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
ea04106b 13864
cae5b340 13865elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
ea04106b 13866
cae5b340 13867 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
ea04106b 13868
cae5b340 13869elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
ea04106b 13870
cae5b340 13871 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
ea04106b 13872
cae5b340 13873elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
ea04106b 13874
cae5b340 13875 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
ea04106b 13876
cae5b340 13877else
ea04106b 13878
cae5b340 13879 kernelbuild=${kernelsrc}
ea04106b 13880
cae5b340 13881fi
ea04106b
AX
13882
13883
cae5b340 13884fi
ea04106b 13885
cae5b340
AX
13886 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
13887$as_echo "$kernelbuild" >&6; }
13888
13889 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
13890$as_echo_n "checking kernel source version... " >&6; }
13891 utsrelease1=$kernelbuild/include/linux/version.h
13892 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13893 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13894 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
ea04106b 13895
cae5b340 13896 utsrelease=linux/version.h
ea04106b 13897
cae5b340 13898elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
ea04106b 13899
cae5b340 13900 utsrelease=linux/utsrelease.h
ea04106b 13901
cae5b340 13902elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
ea04106b 13903
cae5b340 13904 utsrelease=generated/utsrelease.h
ea04106b 13905
cae5b340 13906fi
ea04106b 13907
e10b0808 13908
cae5b340 13909 if test "$utsrelease"; then
e10b0808 13910
cae5b340
AX
13911 kernsrcver=`(echo "#include <$utsrelease>";
13912 echo "kernsrcver=UTS_RELEASE") |
13913 cpp -I $kernelbuild/include |
13914 grep "^kernsrcver=" | cut -d \" -f 2`
e10b0808 13915
cae5b340 13916 if test -z "$kernsrcver"; then
e10b0808 13917
cae5b340
AX
13918 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13919$as_echo "Not found" >&6; }
13920 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
13921$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
13922 { (exit 1); exit 1; }; }
e10b0808 13923
cae5b340 13924fi
e10b0808 13925
e10b0808 13926
cae5b340 13927else
e10b0808 13928
cae5b340
AX
13929 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13930$as_echo "Not found" >&6; }
13931 if test "x$enable_linux_builtin" != xyes; then
13932 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
13933$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
13934 { (exit 1); exit 1; }; }
13935 else
13936 { { $as_echo "$as_me:$LINENO: error:
13937 *** Cannot find UTS_RELEASE definition.
13938 *** Please run 'make prepare' inside the kernel source tree." >&5
13939$as_echo "$as_me: error:
13940 *** Cannot find UTS_RELEASE definition.
13941 *** Please run 'make prepare' inside the kernel source tree." >&2;}
13942 { (exit 1); exit 1; }; }
13943 fi
e10b0808 13944
cae5b340 13945fi
e10b0808
AX
13946
13947
cae5b340
AX
13948 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13949$as_echo "$kernsrcver" >&6; }
e10b0808 13950
cae5b340
AX
13951 LINUX=${kernelsrc}
13952 LINUX_OBJ=${kernelbuild}
13953 LINUX_VERSION=${kernsrcver}
e10b0808
AX
13954
13955
e10b0808 13956
e10b0808 13957
e10b0808
AX
13958
13959
cae5b340
AX
13960 modpost=$LINUX/scripts/Makefile.modpost
13961 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
13962$as_echo_n "checking kernel file name for module symbols... " >&6; }
13963 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
e10b0808 13964
cae5b340 13965 if grep -q Modules.symvers $modpost; then
e10b0808 13966
cae5b340 13967 LINUX_SYMBOLS=Modules.symvers
e10b0808 13968
cae5b340 13969else
e10b0808 13970
cae5b340 13971 LINUX_SYMBOLS=Module.symvers
e10b0808 13972
cae5b340 13973fi
e10b0808 13974
e10b0808 13975
cae5b340 13976 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
e10b0808 13977
cae5b340
AX
13978 { { $as_echo "$as_me:$LINENO: error:
13979 *** Please make sure the kernel devel package for your distribution
13980 *** is installed. If you are building with a custom kernel, make sure the
13981 *** kernel is configured, built, and the '--with-linux=PATH' configure
13982 *** option refers to the location of the kernel source." >&5
13983$as_echo "$as_me: error:
13984 *** Please make sure the kernel devel package for your distribution
13985 *** is installed. If you are building with a custom kernel, make sure the
13986 *** kernel is configured, built, and the '--with-linux=PATH' configure
13987 *** option refers to the location of the kernel source." >&2;}
13988 { (exit 1); exit 1; }; }
e10b0808 13989
cae5b340 13990fi
e10b0808
AX
13991
13992
cae5b340 13993else
e10b0808 13994
cae5b340 13995 LINUX_SYMBOLS=NONE
e10b0808 13996
cae5b340 13997fi
e10b0808 13998
cae5b340
AX
13999 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14000$as_echo "$LINUX_SYMBOLS" >&6; }
e10b0808 14001
e10b0808 14002
e10b0808 14003
e10b0808
AX
14004
14005
cae5b340
AX
14006# Check whether --with-spl was given.
14007if test "${with_spl+set}" = set; then
14008 withval=$with_spl; if test "$withval" = "yes"; then
14009 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
14010$as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
14011 { (exit 1); exit 1; }; }
e10b0808 14012else
cae5b340
AX
14013 splsrc="$withval"
14014fi
e10b0808 14015
cae5b340 14016fi
e10b0808
AX
14017
14018
14019
cae5b340
AX
14020# Check whether --with-spl-obj was given.
14021if test "${with_spl_obj+set}" = set; then
14022 withval=$with_spl_obj; splbuild="$withval"
e10b0808 14023fi
e10b0808
AX
14024
14025
14026
cae5b340
AX
14027# Check whether --with-spl-timeout was given.
14028if test "${with_spl_timeout+set}" = set; then
14029 withval=$with_spl_timeout; timeout="$withval"
14030else
14031 timeout=0
87dac73d 14032fi
87dac73d
AX
14033
14034
cae5b340
AX
14035 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
14036 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
14037 splsrc2="/usr/local/src/spl-${VERSION}"
14038 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
14039 splsrc4="/usr/src/spl-${VERSION}"
14040 splsrc5="../spl/"
14041 splsrc6="$LINUX"
87dac73d 14042
cae5b340
AX
14043 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
14044$as_echo_n "checking spl source directory... " >&6; }
14045 if test -z "${splsrc}"; then
14046
14047 all_spl_sources="
14048 ${splsrc0}
14049 ${splsrc1}
14050 ${splsrc2}
14051 ${splsrc3}
14052 ${splsrc4}
14053 ${splsrc5}
14054 ${splsrc6}",
14055 if test -e "${splsrc0}/spl.release.in"; then
87dac73d 14056
cae5b340 14057 splsrc=${splsrc0}
87dac73d 14058
cae5b340 14059elif test -e "${splsrc1}/spl.release.in"; then
87dac73d 14060
cae5b340 14061 splsrc=${splsrc1}
87dac73d 14062
cae5b340 14063elif test -e "${splsrc2}/spl.release.in"; then
87dac73d 14064
cae5b340 14065 splsrc=${splsrc2}
87dac73d 14066
cae5b340 14067elif test -e "${splsrc3}/spl.release.in"; then
87dac73d 14068
cae5b340 14069 splsrc=$(readlink -f "${splsrc3}")
87dac73d 14070
cae5b340 14071elif test -e "${splsrc4}/spl.release.in" ; then
87dac73d 14072
cae5b340 14073 splsrc=${splsrc4}
87dac73d 14074
cae5b340 14075elif test -e "${splsrc5}/spl.release.in"; then
87dac73d 14076
cae5b340 14077 splsrc=$(readlink -f "${splsrc5}")
87dac73d 14078
cae5b340 14079elif test -e "${splsrc6}/spl.release.in" ; then
87dac73d 14080
cae5b340 14081 splsrc=${splsrc6}
87dac73d 14082
cae5b340 14083else
87dac73d 14084
cae5b340 14085 splsrc="Not found"
87dac73d 14086
cae5b340 14087fi
87dac73d
AX
14088
14089
14090else
87dac73d 14091
cae5b340
AX
14092 all_spl_sources="$withval",
14093 if test "$splsrc" = "NONE"; then
87dac73d 14094
cae5b340
AX
14095 splbuild=NONE
14096 splsrcver=NONE
87dac73d 14097
e10b0808 14098fi
e10b0808
AX
14099
14100
cae5b340 14101fi
e10b0808
AX
14102
14103
cae5b340
AX
14104 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
14105$as_echo "$splsrc" >&6; }
14106 if test ! -e "$splsrc/spl.release.in"; then
ea04106b 14107
cae5b340
AX
14108 { { $as_echo "$as_me:$LINENO: error:
14109 *** Please make sure the kmod spl devel package for your distribution
14110 *** is installed then try again. If that fails you can specify the
14111 *** location of the spl source with the '--with-spl=PATH' option.
14112 *** The spl version must match the version of ZFS you are building,
14113 *** ${VERSION}. Failed to find spl.release.in in the following:
14114 $all_spl_sources" >&5
14115$as_echo "$as_me: error:
14116 *** Please make sure the kmod spl devel package for your distribution
14117 *** is installed then try again. If that fails you can specify the
14118 *** location of the spl source with the '--with-spl=PATH' option.
14119 *** The spl version must match the version of ZFS you are building,
14120 *** ${VERSION}. Failed to find spl.release.in in the following:
14121 $all_spl_sources" >&2;}
14122 { (exit 1); exit 1; }; }
ea04106b 14123
cae5b340 14124fi
ea04106b
AX
14125
14126
cae5b340
AX
14127 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
14128$as_echo_n "checking spl build directory... " >&6; }
ea04106b 14129
cae5b340
AX
14130 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
14131 ${splsrc}"
ea04106b 14132
cae5b340
AX
14133 while true; do
14134 if test -z "$splbuild"; then
ea04106b 14135
cae5b340 14136 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
ea04106b 14137
cae5b340 14138 splbuild="${splsrc}/${LINUX_VERSION}"
ea04106b 14139
cae5b340 14140elif test -e "${splsrc}/spl_config.h" ; then
ea04106b 14141
cae5b340 14142 splbuild="${splsrc}"
ea04106b 14143
cae5b340 14144elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
ea04106b 14145
cae5b340 14146 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
ea04106b 14147
cae5b340 14148else
ea04106b 14149
cae5b340 14150 splbuild="Not found"
ea04106b 14151
cae5b340 14152fi
ea04106b 14153
ea04106b 14154
cae5b340 14155fi
ea04106b 14156
cae5b340 14157 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
ea04106b 14158
cae5b340 14159 break;
ea04106b
AX
14160
14161else
ea04106b 14162
cae5b340
AX
14163 sleep 1
14164 timeout=$((timeout-1))
ea04106b
AX
14165
14166fi
ea04106b 14167
cae5b340 14168 done
ea04106b 14169
cae5b340
AX
14170 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
14171$as_echo "$splbuild" >&6; }
14172 if ! test -e "$splbuild/spl_config.h"; then
ea04106b 14173
cae5b340
AX
14174 { { $as_echo "$as_me:$LINENO: error:
14175 *** Please make sure the kmod spl devel <kernel> package for your
14176 *** distribution is installed then try again. If that fails you
14177 *** can specify the location of the spl objects with the
14178 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
14179 *** any of the following:
14180 $all_spl_config_locs" >&5
14181$as_echo "$as_me: error:
14182 *** Please make sure the kmod spl devel <kernel> package for your
14183 *** distribution is installed then try again. If that fails you
14184 *** can specify the location of the spl objects with the
14185 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
14186 *** any of the following:
14187 $all_spl_config_locs" >&2;}
14188 { (exit 1); exit 1; }; }
ea04106b 14189
cae5b340 14190fi
ea04106b
AX
14191
14192
cae5b340
AX
14193 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
14194$as_echo_n "checking spl source version... " >&6; }
14195 if test -r $splbuild/spl_config.h &&
14196 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
ea04106b
AX
14197
14198
cae5b340
AX
14199 splsrcver=`(echo "#include <spl_config.h>";
14200 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
14201 cpp -I $splbuild |
14202 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
ea04106b 14203
cae5b340
AX
14204fi
14205
14206
14207 if test -z "$splsrcver"; then
14208
14209 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14210$as_echo "Not found" >&6; }
14211 { { $as_echo "$as_me:$LINENO: error:
14212 *** Cannot determine the version of the spl source.
14213 *** Please prepare the spl source before running this script" >&5
14214$as_echo "$as_me: error:
14215 *** Cannot determine the version of the spl source.
14216 *** Please prepare the spl source before running this script" >&2;}
14217 { (exit 1); exit 1; }; }
14218
14219fi
14220
14221
14222 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
14223$as_echo "$splsrcver" >&6; }
14224
14225 SPL=${splsrc}
14226 SPL_OBJ=${splbuild}
14227 SPL_VERSION=${splsrcver}
14228
14229
14230
14231
14232
14233 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
14234$as_echo_n "checking spl file name for module symbols... " >&6; }
14235 SPL_SYMBOLS=NONE
14236
14237 while true; do
14238 if test -r $SPL_OBJ/Module.symvers; then
14239
14240 SPL_SYMBOLS=Module.symvers
14241
14242elif test -r $SPL_OBJ/Modules.symvers; then
14243
14244 SPL_SYMBOLS=Modules.symvers
14245
14246elif test -r $SPL_OBJ/module/Module.symvers; then
14247
14248 SPL_SYMBOLS=Module.symvers
14249
14250elif test -r $SPL_OBJ/module/Modules.symvers; then
14251
14252 SPL_SYMBOLS=Modules.symvers
14253
14254fi
14255
14256
14257 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
14258
14259 break;
14260
14261else
14262
14263 sleep 1
14264 timeout=$((timeout-1))
14265
14266fi
14267
14268 done
14269
14270 if test "$SPL_SYMBOLS" = NONE; then
14271
14272 SPL_SYMBOLS=$LINUX_SYMBOLS
14273
14274fi
14275
14276
14277 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
14278$as_echo "$SPL_SYMBOLS" >&6; }
14279
14280
14281
14282
14283# Check whether --with-qat was given.
14284if test "${with_qat+set}" = set; then
14285 withval=$with_qat; if test "$withval" = "yes"; then
14286 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
14287$as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
14288 { (exit 1); exit 1; }; }
14289else
14290 qatsrc="$withval"
14291fi
14292
14293fi
14294
14295
14296
14297# Check whether --with-qat-obj was given.
14298if test "${with_qat_obj+set}" = set; then
14299 withval=$with_qat_obj; qatbuild="$withval"
14300fi
14301
14302
14303 if test ! -z "${qatsrc}"; then
14304
14305 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
14306$as_echo_n "checking qat source directory... " >&6; }
14307 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
14308$as_echo "$qatsrc" >&6; }
14309 QAT_SRC="${qatsrc}/quickassist"
14310 if test ! -e "$QAT_SRC/include/cpa.h"; then
14311
14312 { { $as_echo "$as_me:$LINENO: error:
14313 *** Please make sure the qat driver package is installed
14314 *** and specify the location of the qat source with the
14315 *** '--with-qat=PATH' option then try again. Failed to
14316 *** find cpa.h in:
14317 ${QAT_SRC}/include" >&5
14318$as_echo "$as_me: error:
14319 *** Please make sure the qat driver package is installed
14320 *** and specify the location of the qat source with the
14321 *** '--with-qat=PATH' option then try again. Failed to
14322 *** find cpa.h in:
14323 ${QAT_SRC}/include" >&2;}
14324 { (exit 1); exit 1; }; }
14325
14326fi
14327
14328
14329fi
14330
14331
14332 if test ! -z "${qatsrc}"; then
14333
14334 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
14335$as_echo_n "checking qat build directory... " >&6; }
14336 if test -z "$qatbuild"; then
14337
14338 qatbuild="${qatsrc}/build"
14339
14340fi
14341
14342
14343 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
14344$as_echo "$qatbuild" >&6; }
14345 QAT_OBJ=${qatbuild}
41d74433 14346 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
cae5b340
AX
14347
14348 { { $as_echo "$as_me:$LINENO: error:
14349 *** Please make sure the qat driver is installed then try again.
41d74433 14350 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
14351 $QAT_OBJ" >&5
14352$as_echo "$as_me: error:
14353 *** Please make sure the qat driver is installed then try again.
41d74433 14354 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
14355 $QAT_OBJ" >&2;}
14356 { (exit 1); exit 1; }; }
14357
14358fi
14359
14360
14361
14362
14363
14364
14365cat >>confdefs.h <<\_ACEOF
14366#define HAVE_QAT 1
14367_ACEOF
14368
14369
14370fi
14371
14372
14373 if test ! -z "${qatsrc}"; then
14374
14375 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
14376$as_echo_n "checking qat file for module symbols... " >&6; }
14377 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
14378
14379 if test -r $QAT_SYMBOLS; then
14380
14381 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
14382$as_echo "$QAT_SYMBOLS" >&6; }
14383
14384
14385else
14386
14387 { { $as_echo "$as_me:$LINENO: error:
14388 *** Please make sure the qat driver is installed then try again.
14389 *** Failed to find Module.symvers in:
14390 $QAT_SYMBOLS" >&5
14391$as_echo "$as_me: error:
14392 *** Please make sure the qat driver is installed then try again.
14393 *** Failed to find Module.symvers in:
14394 $QAT_SYMBOLS" >&2;}
14395 { (exit 1); exit 1; }; }
14396
14397fi
14398
14399
14400fi
14401
14402
14403
14404 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
14405$as_echo_n "checking whether modules can be built... " >&6; }
14406
14407
14408cat confdefs.h - <<_ACEOF >conftest.c
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
ea04106b 14414
ea04106b
AX
14415
14416int
14417main (void)
14418{
14419
ea04106b
AX
14420 ;
14421 return 0;
14422}
14423
14424_ACEOF
14425
14426
14427
14428cat - <<_ACEOF >conftest.h
14429
14430_ACEOF
14431
14432
14433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14434 echo "obj-m := conftest.o" >build/Makefile
14435 modpost_flag=''
14436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 14437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
cae5b340
AX
14441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
cae5b340
AX
14446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
ea04106b 14448
cae5b340
AX
14449 { $as_echo "$as_me:$LINENO: result: yes" >&5
14450$as_echo "yes" >&6; }
ea04106b
AX
14451
14452else
14453 $as_echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
cae5b340
AX
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457$as_echo "no" >&6; }
14458 if test "x$enable_linux_builtin" != xyes; then
14459 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
14460$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
14461 { (exit 1); exit 1; }; }
14462 else
14463 { { $as_echo "$as_me:$LINENO: error:
14464 *** Unable to build an empty module.
14465 *** Please run 'make scripts' inside the kernel source tree." >&5
14466$as_echo "$as_me: error:
14467 *** Unable to build an empty module.
14468 *** Please run 'make scripts' inside the kernel source tree." >&2;}
14469 { (exit 1); exit 1; }; }
14470 fi
ea04106b
AX
14471
14472
14473
14474fi
cae5b340 14475
ea04106b
AX
14476 rm -Rf build
14477
14478
ea04106b 14479
cae5b340
AX
14480
14481 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
14482$as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
ea04106b
AX
14483
14484
14485cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14486/* confdefs.h. */
14487_ACEOF
14488cat confdefs.h >>conftest.$ac_ext
14489cat >>conftest.$ac_ext <<_ACEOF
14490/* end confdefs.h. */
ea04106b
AX
14491
14492
cae5b340
AX
14493 #undef __ASSEMBLY__
14494 #include <asm/frame.h>
ea04106b
AX
14495
14496int
14497main (void)
14498{
14499
cae5b340
AX
14500 #if !defined(FRAME_BEGIN)
14501 CTASSERT(1);
14502 #endif
ea04106b
AX
14503
14504 ;
14505 return 0;
14506}
14507
14508_ACEOF
14509
14510
14511
14512cat - <<_ACEOF >conftest.h
14513
14514_ACEOF
14515
14516
14517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14518 echo "obj-m := conftest.o" >build/Makefile
14519 modpost_flag=''
14520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 14521 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
cae5b340
AX
14525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
cae5b340
AX
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
ea04106b 14532
cae5b340 14533 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14534$as_echo "yes" >&6; }
14535
cae5b340
AX
14536cat >>confdefs.h <<\_ACEOF
14537#define HAVE_KERNEL_OBJTOOL 1
14538_ACEOF
ea04106b
AX
14539
14540
14541else
14542 $as_echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
14544
cae5b340 14545 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14546$as_echo "no" >&6; }
14547
14548
14549
14550fi
cae5b340 14551
ea04106b
AX
14552 rm -Rf build
14553
14554
14555
14556
cae5b340
AX
14557 if test "x$cross_compiling" != xyes; then
14558
14559 if test "$cross_compiling" = yes; then
14560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14562{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14563See \`config.log' for more details." >&5
14564$as_echo "$as_me: error: cannot run test program while cross compiling
14565See \`config.log' for more details." >&2;}
14566 { (exit 1); exit 1; }; }; }
14567else
14568 cat >conftest.$ac_ext <<_ACEOF
14569
14570 /* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575
14576 #include "$LINUX/include/linux/license.h"
14577
14578int
14579main ()
14580{
14581
14582 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14583
14584 ;
14585 return 0;
14586}
14587
14588_ACEOF
14589rm -f conftest$ac_exeext
14590if { (ac_try="$ac_link"
14591case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594esac
14595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14596$as_echo "$ac_try_echo") >&5
14597 (eval "$ac_link") 2>&5
14598 ac_status=$?
14599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
14605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606$as_echo "$ac_try_echo") >&5
14607 (eval "$ac_try") 2>&5
14608 ac_status=$?
14609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611
14612
14613cat >>confdefs.h <<\_ACEOF
14614#define ZFS_IS_GPL_COMPATIBLE 1
14615_ACEOF
14616
14617
14618else
14619 $as_echo "$as_me: program exited with status $ac_status" >&5
14620$as_echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623( exit $ac_status )
14624
14625
14626fi
14627rm -rf conftest.dSYM
14628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14629fi
14630
14631
14632
14633fi
14634
14635
14636
14637 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
14638$as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
ea04106b
AX
14639
14640
14641cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
ea04106b
AX
14647
14648
cae5b340 14649 #include <linux/module.h>
ea04106b
AX
14650
14651int
14652main (void)
14653{
14654
cae5b340
AX
14655 #if (THREAD_SIZE < 16384)
14656 #error "THREAD_SIZE is less than 16K"
14657 #endif
ea04106b
AX
14658
14659 ;
14660 return 0;
14661}
14662
14663_ACEOF
14664
14665
14666
14667cat - <<_ACEOF >conftest.h
14668
14669_ACEOF
14670
14671
14672 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14673 echo "obj-m := conftest.o" >build/Makefile
14674 modpost_flag=''
14675 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 14676 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
cae5b340
AX
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
cae5b340
AX
14685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
ea04106b 14687
cae5b340 14688 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14689$as_echo "yes" >&6; }
14690
cae5b340
AX
14691cat >>confdefs.h <<\_ACEOF
14692#define HAVE_LARGE_STACKS 1
14693_ACEOF
ea04106b
AX
14694
14695
14696else
14697 $as_echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
cae5b340 14700 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14701$as_echo "no" >&6; }
14702
14703
14704
14705fi
cae5b340 14706
ea04106b
AX
14707 rm -Rf build
14708
14709
14710
14711
cae5b340
AX
14712
14713 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14714$as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
ea04106b
AX
14715
14716
14717cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
ea04106b
AX
14723
14724
cae5b340 14725 #include <linux/module.h>
ea04106b
AX
14726
14727int
14728main (void)
14729{
14730
cae5b340
AX
14731 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14732 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14733 #endif
ea04106b
AX
14734
14735 ;
14736 return 0;
14737}
14738
14739_ACEOF
14740
14741
14742
14743cat - <<_ACEOF >conftest.h
14744
14745_ACEOF
14746
14747
14748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14749 echo "obj-m := conftest.o" >build/Makefile
14750 modpost_flag=''
14751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 14752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
cae5b340
AX
14756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
cae5b340
AX
14761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
ea04106b 14763
cae5b340 14764 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14765$as_echo "yes" >&6; }
14766
cae5b340
AX
14767 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
14768$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14769 tmp_flags="$EXTRA_KCFLAGS"
ea04106b
AX
14770
14771
14772cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
ea04106b
AX
14778
14779
cae5b340
AX
14780 #include <linux/module.h>
14781 #include <linux/mutex.h>
14782
14783 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
14784
14785int
14786main (void)
14787{
14788
cae5b340
AX
14789 struct mutex lock;
14790
14791 mutex_init(&lock);
14792 mutex_lock(&lock);
14793 mutex_unlock(&lock);
ea04106b
AX
14794
14795 ;
14796 return 0;
14797}
14798
14799_ACEOF
14800
14801
14802
14803cat - <<_ACEOF >conftest.h
14804
14805_ACEOF
14806
14807
14808 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14809 echo "obj-m := conftest.o" >build/Makefile
14810 modpost_flag=''
14811 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 14812 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
cae5b340
AX
14816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
cae5b340
AX
14821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823
14824 { $as_echo "$as_me:$LINENO: result: no" >&5
14825$as_echo "no" >&6; }
14826
ea04106b
AX
14827else
14828 $as_echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
14830
14831 { $as_echo "$as_me:$LINENO: result: yes" >&5
14832$as_echo "yes" >&6; }
14833 { { $as_echo "$as_me:$LINENO: error:
14834 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14835 *** with the CDDL license and will prevent the module linking stage
14836 *** from succeeding. You must rebuild your kernel without this
14837 *** option enabled." >&5
14838$as_echo "$as_me: error:
14839 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14840 *** with the CDDL license and will prevent the module linking stage
14841 *** from succeeding. You must rebuild your kernel without this
14842 *** option enabled." >&2;}
14843 { (exit 1); exit 1; }; }
14844
ea04106b
AX
14845
14846
14847fi
cae5b340 14848
ea04106b
AX
14849 rm -Rf build
14850
14851
cae5b340 14852 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 14853
cae5b340
AX
14854
14855else
14856 $as_echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14860$as_echo "no" >&6; }
14861
ea04106b 14862
ea04106b 14863
ea04106b 14864
cae5b340 14865fi
ea04106b 14866
cae5b340 14867 rm -Rf build
ea04106b 14868
ea04106b 14869
ea04106b
AX
14870
14871
ea04106b
AX
14872
14873
cae5b340
AX
14874 tmp_flags="$EXTRA_KCFLAGS"
14875 EXTRA_KCFLAGS="-I\$(src)"
ea04106b 14876
cae5b340
AX
14877 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
14878$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
ea04106b
AX
14879
14880
14881cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
14886/* end confdefs.h. */
ea04106b
AX
14887
14888
cae5b340
AX
14889 #include <linux/module.h>
14890 MODULE_LICENSE(ZFS_META_LICENSE);
14891
14892 #define CREATE_TRACE_POINTS
14893 #include "conftest.h"
ea04106b
AX
14894
14895int
14896main (void)
14897{
14898
cae5b340
AX
14899 trace_zfs_autoconf_event_one(1UL);
14900 trace_zfs_autoconf_event_two(2UL);
ea04106b
AX
14901
14902 ;
14903 return 0;
14904}
14905
14906_ACEOF
14907
14908
14909
14910cat - <<_ACEOF >conftest.h
14911
cae5b340
AX
14912 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14913 #define _CONFTEST_H
14914
14915 #undef TRACE_SYSTEM
14916 #define TRACE_SYSTEM zfs
14917 #include <linux/tracepoint.h>
14918
14919 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14920 TP_PROTO(unsigned long i),
14921 TP_ARGS(i),
14922 TP_STRUCT__entry(
14923 __field(unsigned long, i)
14924 ),
14925 TP_fast_assign(
14926 __entry->i = i;
14927 ),
14928 TP_printk("i = %lu", __entry->i)
14929 );
14930
14931 #define DEFINE_AUTOCONF_EVENT(name) \
14932 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14933 TP_PROTO(unsigned long i), \
14934 TP_ARGS(i))
14935 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14936 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14937
14938 #endif /* _CONFTEST_H */
14939
14940 #undef TRACE_INCLUDE_PATH
14941 #define TRACE_INCLUDE_PATH .
14942 #define TRACE_INCLUDE_FILE conftest
14943 #include <trace/define_trace.h>
14944
ea04106b
AX
14945_ACEOF
14946
14947
14948 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14949 echo "obj-m := conftest.o" >build/Makefile
14950 modpost_flag=''
14951 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 14952 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
cae5b340
AX
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
cae5b340
AX
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
ea04106b 14963
cae5b340
AX
14964 { $as_echo "$as_me:$LINENO: result: yes" >&5
14965$as_echo "yes" >&6; }
ea04106b 14966
cae5b340
AX
14967cat >>confdefs.h <<\_ACEOF
14968#define HAVE_DECLARE_EVENT_CLASS 1
14969_ACEOF
ea04106b 14970
ea04106b 14971
cae5b340
AX
14972else
14973 $as_echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 14975
cae5b340 14976 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14977$as_echo "no" >&6; }
14978
ea04106b 14979
ea04106b 14980
cae5b340 14981fi
ea04106b 14982
cae5b340 14983 rm -Rf build
ea04106b 14984
ea04106b 14985
cae5b340 14986 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 14987
ea04106b 14988
cae5b340
AX
14989 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14990$as_echo_n "checking whether current->bio_tail exists... " >&6; }
ea04106b
AX
14991
14992
14993cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14994/* confdefs.h. */
14995_ACEOF
14996cat confdefs.h >>conftest.$ac_ext
14997cat >>conftest.$ac_ext <<_ACEOF
14998/* end confdefs.h. */
ea04106b
AX
14999
15000
cae5b340 15001 #include <linux/sched.h>
ea04106b
AX
15002
15003int
15004main (void)
15005{
15006
cae5b340 15007 current->bio_tail = (struct bio **) NULL;
ea04106b
AX
15008
15009 ;
15010 return 0;
15011}
15012
15013_ACEOF
15014
15015
15016
15017cat - <<_ACEOF >conftest.h
15018
15019_ACEOF
15020
15021
15022 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15023 echo "obj-m := conftest.o" >build/Makefile
15024 modpost_flag=''
15025 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15026 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
cae5b340
AX
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
cae5b340
AX
15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
ea04106b 15037
cae5b340
AX
15038 { $as_echo "$as_me:$LINENO: result: yes" >&5
15039$as_echo "yes" >&6; }
ea04106b 15040
cae5b340
AX
15041cat >>confdefs.h <<\_ACEOF
15042#define HAVE_CURRENT_BIO_TAIL 1
15043_ACEOF
ea04106b
AX
15044
15045
cae5b340
AX
15046else
15047 $as_echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 15049
cae5b340 15050 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 15051$as_echo "no" >&6; }
cae5b340
AX
15052 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
15053$as_echo_n "checking whether current->bio_list exists... " >&6; }
ea04106b
AX
15054
15055
15056cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15057/* confdefs.h. */
15058_ACEOF
15059cat confdefs.h >>conftest.$ac_ext
15060cat >>conftest.$ac_ext <<_ACEOF
15061/* end confdefs.h. */
ea04106b
AX
15062
15063
cae5b340 15064 #include <linux/sched.h>
ea04106b
AX
15065
15066int
15067main (void)
15068{
15069
cae5b340 15070 current->bio_list = (struct bio_list *) NULL;
ea04106b
AX
15071
15072 ;
15073 return 0;
15074}
15075
15076_ACEOF
15077
15078
15079
15080cat - <<_ACEOF >conftest.h
15081
15082_ACEOF
15083
15084
15085 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15086 echo "obj-m := conftest.o" >build/Makefile
15087 modpost_flag=''
15088 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15089 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
cae5b340
AX
15093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
cae5b340
AX
15098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100
15101 { $as_echo "$as_me:$LINENO: result: yes" >&5
15102$as_echo "yes" >&6; }
15103
15104cat >>confdefs.h <<\_ACEOF
15105#define HAVE_CURRENT_BIO_LIST 1
15106_ACEOF
15107
15108
68d83c55
AX
15109else
15110 $as_echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
15112
15113 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
15114 https://github.com/zfsonlinux/zfs/issues/new" >&5
15115$as_echo "$as_me: error: no - Please file a bug report at
15116 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
15117 { (exit 1); exit 1; }; }
15118
ea04106b 15119
ea04106b 15120
68d83c55 15121fi
cae5b340 15122
68d83c55 15123 rm -Rf build
ea04106b
AX
15124
15125
ea04106b 15126
ea04106b
AX
15127
15128
cae5b340 15129fi
ea04106b 15130
cae5b340 15131 rm -Rf build
68d83c55 15132
68d83c55 15133
ea04106b
AX
15134
15135
cae5b340
AX
15136 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
15137$as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
ea04106b
AX
15138
15139
cae5b340
AX
15140cat confdefs.h - <<_ACEOF >conftest.c
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
68d83c55
AX
15146
15147
cae5b340
AX
15148 #include <linux/fs.h>
15149 #include <linux/user_namespace.h>
ea04106b
AX
15150
15151int
15152main (void)
15153{
15154
cae5b340
AX
15155 struct super_block super;
15156 super.s_user_ns = (struct user_namespace *)NULL;
ea04106b
AX
15157
15158 ;
15159 return 0;
15160}
15161
15162_ACEOF
15163
15164
15165
15166cat - <<_ACEOF >conftest.h
15167
15168_ACEOF
15169
15170
15171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15172 echo "obj-m := conftest.o" >build/Makefile
15173 modpost_flag=''
15174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
cae5b340
AX
15179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
cae5b340
AX
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
ea04106b 15186
cae5b340 15187 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 15188$as_echo "yes" >&6; }
ea04106b 15189
cae5b340
AX
15190cat >>confdefs.h <<\_ACEOF
15191#define HAVE_SUPER_USER_NS 1
15192_ACEOF
ea04106b 15193
ea04106b 15194
cae5b340
AX
15195else
15196 $as_echo "$as_me: failed program was:" >&5
15197sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 15198
cae5b340
AX
15199 { $as_echo "$as_me:$LINENO: result: no" >&5
15200$as_echo "no" >&6; }
ea04106b 15201
ea04106b 15202
ea04106b 15203
cae5b340 15204fi
ea04106b 15205
cae5b340 15206 rm -Rf build
ea04106b 15207
ea04106b
AX
15208
15209
15210
cae5b340
AX
15211 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
15212$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
ea04106b
AX
15213
15214
15215cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
ea04106b
AX
15221
15222
cae5b340 15223 #include <linux/bio.h>
ea04106b
AX
15224
15225int
15226main (void)
15227{
15228
cae5b340
AX
15229 blk_qc_t blk_qc;
15230 struct bio *bio = NULL;
15231 blk_qc = submit_bio(bio);
ea04106b
AX
15232
15233 ;
15234 return 0;
15235}
15236
15237_ACEOF
15238
15239
15240
15241cat - <<_ACEOF >conftest.h
15242
15243_ACEOF
15244
15245
15246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15247 echo "obj-m := conftest.o" >build/Makefile
15248 modpost_flag=''
15249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
cae5b340
AX
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
cae5b340
AX
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
ea04106b 15261
cae5b340 15262 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15263$as_echo "yes" >&6; }
15264
cae5b340
AX
15265cat >>confdefs.h <<\_ACEOF
15266#define HAVE_1ARG_SUBMIT_BIO 1
15267_ACEOF
ea04106b
AX
15268
15269
15270else
15271 $as_echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
cae5b340 15274 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15275$as_echo "no" >&6; }
15276
15277
15278
15279fi
cae5b340 15280
ea04106b
AX
15281 rm -Rf build
15282
15283
15284
15285
a07c8b41
MZ
15286 { $as_echo "$as_me:$LINENO: checking whether bops->check_events() exists" >&5
15287$as_echo_n "checking whether bops->check_events() exists... " >&6; }
68d83c55
AX
15288 tmp_flags="$EXTRA_KCFLAGS"
15289 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
15290
15291
15292cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
ea04106b
AX
15298
15299
68d83c55 15300 #include <linux/blkdev.h>
ea04106b 15301
a07c8b41
MZ
15302 unsigned int blk_check_events(struct gendisk *disk,
15303 unsigned int clearing) { return (0); }
cae5b340
AX
15304
15305 static const struct block_device_operations
15306 bops __attribute__ ((unused)) = {
a07c8b41 15307 .check_events = blk_check_events,
cae5b340
AX
15308 };
15309
ea04106b
AX
15310int
15311main (void)
15312{
15313
ea04106b
AX
15314
15315 ;
15316 return 0;
15317}
15318
15319_ACEOF
15320
15321
15322
15323cat - <<_ACEOF >conftest.h
15324
15325_ACEOF
15326
15327
15328 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15329 echo "obj-m := conftest.o" >build/Makefile
15330 modpost_flag=''
15331 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15332 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
cae5b340
AX
15336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
cae5b340
AX
15341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
ea04106b 15343
a07c8b41
MZ
15344 { $as_echo "$as_me:$LINENO: result: yes" >&5
15345$as_echo "yes" >&6; }
ea04106b 15346
cae5b340 15347cat >>confdefs.h <<\_ACEOF
a07c8b41 15348#define HAVE_BLOCK_DEVICE_OPERATIONS_CHECK_EVENTS 1
cae5b340 15349_ACEOF
ea04106b
AX
15350
15351
15352else
15353 $as_echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
a07c8b41
MZ
15356 { $as_echo "$as_me:$LINENO: result: no" >&5
15357$as_echo "no" >&6; }
ea04106b
AX
15358
15359
15360
15361fi
cae5b340 15362
ea04106b
AX
15363 rm -Rf build
15364
15365
68d83c55 15366 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
15367
15368
a07c8b41
MZ
15369 { $as_echo "$as_me:$LINENO: checking whether bops->release() is void" >&5
15370$as_echo_n "checking whether bops->release() is void... " >&6; }
68d83c55
AX
15371 tmp_flags="$EXTRA_KCFLAGS"
15372 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
15373
15374
15375cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
ea04106b
AX
15381
15382
68d83c55 15383 #include <linux/blkdev.h>
e10b0808 15384
cae5b340
AX
15385 void blk_release(struct gendisk *g, fmode_t mode) { return; }
15386
15387 static const struct block_device_operations
15388 bops __attribute__ ((unused)) = {
15389 .open = NULL,
15390 .release = blk_release,
15391 .ioctl = NULL,
15392 .compat_ioctl = NULL,
15393 };
15394
ea04106b
AX
15395int
15396main (void)
15397{
15398
ea04106b
AX
15399
15400 ;
15401 return 0;
15402}
15403
15404_ACEOF
15405
15406
15407
15408cat - <<_ACEOF >conftest.h
15409
15410_ACEOF
15411
15412
15413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15414 echo "obj-m := conftest.o" >build/Makefile
15415 modpost_flag=''
15416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
cae5b340
AX
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
cae5b340
AX
15426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
ea04106b 15428
cae5b340
AX
15429 { $as_echo "$as_me:$LINENO: result: void" >&5
15430$as_echo "void" >&6; }
ea04106b 15431
cae5b340
AX
15432cat >>confdefs.h <<\_ACEOF
15433#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15434_ACEOF
ea04106b
AX
15435
15436
15437else
15438 $as_echo "$as_me: failed program was:" >&5
15439sed 's/^/| /' conftest.$ac_ext >&5
15440
cae5b340
AX
15441 { $as_echo "$as_me:$LINENO: result: int" >&5
15442$as_echo "int" >&6; }
ea04106b
AX
15443
15444
15445
15446fi
cae5b340 15447
ea04106b
AX
15448 rm -Rf build
15449
15450
68d83c55 15451 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 15452
cae5b340
AX
15453 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15454$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
ea04106b
AX
15455
15456
15457cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15458/* confdefs.h. */
15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
ea04106b
AX
15463
15464
cae5b340 15465 #include <linux/types.h>
ea04106b 15466
ea04106b
AX
15467int
15468main (void)
15469{
15470
cae5b340 15471 fmode_t *ptr __attribute__ ((unused));
ea04106b
AX
15472
15473 ;
15474 return 0;
15475}
15476
15477_ACEOF
15478
15479
15480
15481cat - <<_ACEOF >conftest.h
15482
15483_ACEOF
15484
15485
15486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15487 echo "obj-m := conftest.o" >build/Makefile
15488 modpost_flag=''
15489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15490 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
cae5b340
AX
15494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
cae5b340
AX
15499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
ea04106b 15501
cae5b340 15502 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15503$as_echo "yes" >&6; }
15504
cae5b340
AX
15505cat >>confdefs.h <<\_ACEOF
15506#define HAVE_FMODE_T 1
15507_ACEOF
ea04106b
AX
15508
15509
15510else
15511 $as_echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
cae5b340 15514 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15515$as_echo "no" >&6; }
15516
15517
15518
15519fi
cae5b340 15520
ea04106b
AX
15521 rm -Rf build
15522
15523
15524
15525
cae5b340
AX
15526 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
15527$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
ea04106b
AX
15528
15529
15530cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15531/* confdefs.h. */
15532_ACEOF
15533cat confdefs.h >>conftest.$ac_ext
15534cat >>conftest.$ac_ext <<_ACEOF
15535/* end confdefs.h. */
ea04106b
AX
15536
15537
cae5b340 15538 #include <linux/fs.h>
ea04106b
AX
15539
15540int
15541main (void)
15542{
15543
cae5b340
AX
15544 struct block_device *bdev = NULL;
15545 (void) blkdev_get(bdev, 0, NULL);
ea04106b
AX
15546
15547 ;
15548 return 0;
15549}
15550
15551_ACEOF
15552
15553
15554
15555cat - <<_ACEOF >conftest.h
15556
15557_ACEOF
15558
15559
15560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15561 echo "obj-m := conftest.o" >build/Makefile
15562 modpost_flag=''
15563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
cae5b340
AX
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
cae5b340
AX
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
ea04106b 15575
cae5b340 15576 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15577$as_echo "yes" >&6; }
15578
cae5b340
AX
15579cat >>confdefs.h <<\_ACEOF
15580#define HAVE_3ARG_BLKDEV_GET 1
15581_ACEOF
ea04106b
AX
15582
15583
15584else
15585 $as_echo "$as_me: failed program was:" >&5
15586sed 's/^/| /' conftest.$ac_ext >&5
15587
cae5b340 15588 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15589$as_echo "no" >&6; }
15590
15591
15592
15593fi
cae5b340 15594
ea04106b
AX
15595 rm -Rf build
15596
15597
15598
cae5b340
AX
15599 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
15600$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
ea04106b 15601
ea04106b
AX
15602
15603
15604cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15605/* confdefs.h. */
15606_ACEOF
15607cat confdefs.h >>conftest.$ac_ext
15608cat >>conftest.$ac_ext <<_ACEOF
15609/* end confdefs.h. */
ea04106b
AX
15610
15611
cae5b340 15612 #include <linux/fs.h>
ea04106b
AX
15613
15614int
15615main (void)
15616{
15617
cae5b340 15618 blkdev_get_by_path(NULL, 0, NULL);
ea04106b
AX
15619
15620 ;
15621 return 0;
15622}
15623
15624_ACEOF
15625
15626
15627
15628cat - <<_ACEOF >conftest.h
15629
15630_ACEOF
15631
15632
15633 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15634 echo "obj-m := conftest.o" >build/Makefile
15635 modpost_flag=''
15636 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15637 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
cae5b340
AX
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
cae5b340
AX
15646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 rc=0
15649else
15650 $as_echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652 rc=1
ea04106b 15653
ea04106b 15654
cae5b340 15655fi
ea04106b 15656
cae5b340 15657 rm -Rf build
ea04106b 15658
ea04106b 15659
cae5b340
AX
15660 if test $rc -ne 0; then :
15661
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663$as_echo "no" >&6; }
15664
15665 else
15666 if test "x$enable_linux_builtin" != xyes; then
15667
15668 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15669 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15670 rc=$?
15671 if test $rc -ne 0; then
15672 export=0
15673 for file in fs/block_dev.c; do
15674 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15675 "$LINUX/$file" 2>/dev/null
15676 rc=$?
15677 if test $rc -eq 0; then
15678 export=1
15679 break;
15680 fi
15681 done
15682 if test $export -eq 0; then :
15683 rc=1
15684 else :
15685 rc=0
15686 fi
15687 else :
15688 rc=0
15689 fi
15690
15691 fi
15692 if test $rc -ne 0; then :
15693
15694 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15695$as_echo "no" >&6; }
15696
cae5b340 15697 else :
ea04106b 15698
cae5b340
AX
15699 { $as_echo "$as_me:$LINENO: result: yes" >&5
15700$as_echo "yes" >&6; }
ea04106b 15701
cae5b340
AX
15702cat >>confdefs.h <<\_ACEOF
15703#define HAVE_BLKDEV_GET_BY_PATH 1
15704_ACEOF
ea04106b
AX
15705
15706
cae5b340
AX
15707 fi
15708 fi
15709
ea04106b 15710
cae5b340
AX
15711 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
15712$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
ea04106b 15713
ea04106b
AX
15714
15715
15716cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
ea04106b
AX
15722
15723
cae5b340 15724 #include <linux/fs.h>
ea04106b 15725
ea04106b
AX
15726int
15727main (void)
15728{
15729
cae5b340 15730 open_bdev_exclusive(NULL, 0, NULL);
ea04106b
AX
15731
15732 ;
15733 return 0;
15734}
15735
15736_ACEOF
15737
15738
15739
15740cat - <<_ACEOF >conftest.h
15741
15742_ACEOF
15743
15744
15745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15746 echo "obj-m := conftest.o" >build/Makefile
15747 modpost_flag=''
15748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15749 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
cae5b340
AX
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
cae5b340
AX
15758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 rc=0
15761else
15762 $as_echo "$as_me: failed program was:" >&5
15763sed 's/^/| /' conftest.$ac_ext >&5
15764 rc=1
ea04106b 15765
e10b0808 15766
cae5b340
AX
15767fi
15768
15769 rm -Rf build
e10b0808 15770
ea04106b 15771
cae5b340
AX
15772 if test $rc -ne 0; then :
15773
15774 { $as_echo "$as_me:$LINENO: result: no" >&5
15775$as_echo "no" >&6; }
15776
15777 else
15778 if test "x$enable_linux_builtin" != xyes; then
15779
15780 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15781 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15782 rc=$?
15783 if test $rc -ne 0; then
15784 export=0
15785 for file in fs/block_dev.c; do
15786 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15787 "$LINUX/$file" 2>/dev/null
15788 rc=$?
15789 if test $rc -eq 0; then
15790 export=1
15791 break;
15792 fi
15793 done
15794 if test $export -eq 0; then :
15795 rc=1
15796 else :
15797 rc=0
15798 fi
15799 else :
15800 rc=0
15801 fi
15802
15803 fi
15804 if test $rc -ne 0; then :
ea04106b 15805
cae5b340 15806 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 15807$as_echo "no" >&6; }
ea04106b 15808
cae5b340 15809 else :
ea04106b 15810
cae5b340
AX
15811 { $as_echo "$as_me:$LINENO: result: yes" >&5
15812$as_echo "yes" >&6; }
ea04106b 15813
cae5b340
AX
15814cat >>confdefs.h <<\_ACEOF
15815#define HAVE_OPEN_BDEV_EXCLUSIVE 1
15816_ACEOF
ea04106b
AX
15817
15818
cae5b340
AX
15819 fi
15820 fi
15821
ea04106b 15822
cae5b340
AX
15823 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
15824$as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
ea04106b 15825
ea04106b
AX
15826
15827
15828cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15829/* confdefs.h. */
15830_ACEOF
15831cat confdefs.h >>conftest.$ac_ext
15832cat >>conftest.$ac_ext <<_ACEOF
15833/* end confdefs.h. */
ea04106b
AX
15834
15835
cae5b340 15836 #include <linux/fs.h>
ea04106b
AX
15837
15838int
15839main (void)
15840{
15841
cae5b340 15842 lookup_bdev(NULL);
ea04106b
AX
15843
15844 ;
15845 return 0;
15846}
15847
15848_ACEOF
15849
15850
15851
15852cat - <<_ACEOF >conftest.h
15853
15854_ACEOF
15855
15856
15857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15858 echo "obj-m := conftest.o" >build/Makefile
15859 modpost_flag=''
15860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15861 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
cae5b340
AX
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
cae5b340
AX
15870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 rc=0
ea04106b
AX
15873else
15874 $as_echo "$as_me: failed program was:" >&5
15875sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 15876 rc=1
ea04106b
AX
15877
15878
15879fi
cae5b340 15880
ea04106b
AX
15881 rm -Rf build
15882
15883
cae5b340 15884 if test $rc -ne 0; then :
ea04106b 15885
cae5b340
AX
15886 { $as_echo "$as_me:$LINENO: result: no" >&5
15887$as_echo "no" >&6; }
15888 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15889$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
ea04106b
AX
15890
15891
ea04106b 15892
e10b0808 15893cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
ea04106b 15899
ea04106b 15900
cae5b340 15901 #include <linux/fs.h>
ea04106b
AX
15902
15903int
15904main (void)
15905{
15906
cae5b340 15907 lookup_bdev(NULL, FMODE_READ);
87dac73d
AX
15908
15909 ;
15910 return 0;
15911}
15912
15913_ACEOF
15914
15915
15916
15917cat - <<_ACEOF >conftest.h
15918
15919_ACEOF
15920
15921
15922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15923 echo "obj-m := conftest.o" >build/Makefile
15924 modpost_flag=''
15925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 15926 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
cae5b340
AX
15930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
cae5b340
AX
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 rc=0
15938else
15939 $as_echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941 rc=1
87dac73d 15942
87dac73d 15943
cae5b340 15944fi
87dac73d 15945
cae5b340 15946 rm -Rf build
87dac73d 15947
87dac73d 15948
cae5b340
AX
15949 if test $rc -ne 0; then :
15950
15951 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
15952$as_echo "no" >&6; }
15953
cae5b340
AX
15954 else
15955 if test "x$enable_linux_builtin" != xyes; then
87dac73d 15956
cae5b340
AX
15957 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15958 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15959 rc=$?
15960 if test $rc -ne 0; then
15961 export=0
15962 for file in fs/block_dev.c; do
15963 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15964 "$LINUX/$file" 2>/dev/null
15965 rc=$?
15966 if test $rc -eq 0; then
15967 export=1
15968 break;
15969 fi
15970 done
15971 if test $export -eq 0; then :
15972 rc=1
15973 else :
15974 rc=0
15975 fi
15976 else :
15977 rc=0
15978 fi
87dac73d 15979
cae5b340
AX
15980 fi
15981 if test $rc -ne 0; then :
87dac73d 15982
cae5b340
AX
15983 { $as_echo "$as_me:$LINENO: result: no" >&5
15984$as_echo "no" >&6; }
87dac73d 15985
cae5b340 15986 else :
87dac73d 15987
cae5b340
AX
15988 { $as_echo "$as_me:$LINENO: result: yes" >&5
15989$as_echo "yes" >&6; }
15990
15991cat >>confdefs.h <<\_ACEOF
15992#define HAVE_2ARGS_LOOKUP_BDEV 1
15993_ACEOF
15994
15995
15996 fi
15997 fi
15998
15999
16000 else
16001 if test "x$enable_linux_builtin" != xyes; then
16002
16003 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16004 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16005 rc=$?
16006 if test $rc -ne 0; then
16007 export=0
16008 for file in fs/block_dev.c; do
16009 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16010 "$LINUX/$file" 2>/dev/null
16011 rc=$?
16012 if test $rc -eq 0; then
16013 export=1
16014 break;
16015 fi
16016 done
16017 if test $export -eq 0; then :
16018 rc=1
16019 else :
16020 rc=0
16021 fi
16022 else :
16023 rc=0
16024 fi
16025
16026 fi
16027 if test $rc -ne 0; then :
16028
16029 { $as_echo "$as_me:$LINENO: result: no" >&5
16030$as_echo "no" >&6; }
16031 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
16032$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
87dac73d 16033
87dac73d
AX
16034
16035
16036cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
87dac73d
AX
16042
16043
cae5b340 16044 #include <linux/fs.h>
87dac73d
AX
16045
16046int
16047main (void)
16048{
16049
cae5b340 16050 lookup_bdev(NULL, FMODE_READ);
87dac73d
AX
16051
16052 ;
16053 return 0;
16054}
16055
16056_ACEOF
16057
16058
16059
16060cat - <<_ACEOF >conftest.h
16061
16062_ACEOF
16063
16064
16065 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16066 echo "obj-m := conftest.o" >build/Makefile
16067 modpost_flag=''
16068 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16069 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16071 (eval $ac_try) 2>&5
16072 ac_status=$?
cae5b340
AX
16073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
cae5b340
AX
16078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 rc=0
16081else
16082 $as_echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084 rc=1
87dac73d 16085
87dac73d 16086
cae5b340 16087fi
87dac73d 16088
cae5b340 16089 rm -Rf build
87dac73d 16090
68d83c55 16091
cae5b340
AX
16092 if test $rc -ne 0; then :
16093
16094 { $as_echo "$as_me:$LINENO: result: no" >&5
16095$as_echo "no" >&6; }
16096
16097 else
16098 if test "x$enable_linux_builtin" != xyes; then
16099
16100 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16101 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16102 rc=$?
16103 if test $rc -ne 0; then
16104 export=0
16105 for file in fs/block_dev.c; do
16106 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16107 "$LINUX/$file" 2>/dev/null
16108 rc=$?
16109 if test $rc -eq 0; then
16110 export=1
16111 break;
16112 fi
16113 done
16114 if test $export -eq 0; then :
16115 rc=1
16116 else :
16117 rc=0
16118 fi
16119 else :
16120 rc=0
16121 fi
16122
16123 fi
16124 if test $rc -ne 0; then :
16125
16126 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
16127$as_echo "no" >&6; }
16128
cae5b340 16129 else :
68d83c55 16130
cae5b340
AX
16131 { $as_echo "$as_me:$LINENO: result: yes" >&5
16132$as_echo "yes" >&6; }
68d83c55 16133
cae5b340
AX
16134cat >>confdefs.h <<\_ACEOF
16135#define HAVE_2ARGS_LOOKUP_BDEV 1
16136_ACEOF
16137
16138
16139 fi
16140 fi
68d83c55
AX
16141
16142
cae5b340 16143 else :
68d83c55 16144
cae5b340
AX
16145 { $as_echo "$as_me:$LINENO: result: yes" >&5
16146$as_echo "yes" >&6; }
68d83c55 16147
cae5b340
AX
16148cat >>confdefs.h <<\_ACEOF
16149#define HAVE_1ARG_LOOKUP_BDEV 1
16150_ACEOF
87dac73d
AX
16151
16152
cae5b340
AX
16153 fi
16154 fi
87dac73d
AX
16155
16156
87dac73d 16157
cae5b340
AX
16158 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16159$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
68d83c55 16160
cae5b340
AX
16161
16162cat confdefs.h - <<_ACEOF >conftest.c
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168
16169
16170 #include <linux/buffer_head.h>
87dac73d
AX
16171
16172int
16173main (void)
16174{
16175
cae5b340
AX
16176 struct block_device *bdev = NULL;
16177 invalidate_bdev(bdev);
87dac73d
AX
16178
16179 ;
16180 return 0;
16181}
16182
16183_ACEOF
16184
16185
16186
16187cat - <<_ACEOF >conftest.h
16188
16189_ACEOF
16190
16191
16192 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16193 echo "obj-m := conftest.o" >build/Makefile
16194 modpost_flag=''
16195 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16196 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
cae5b340
AX
16200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
cae5b340
AX
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
87dac73d 16207
cae5b340 16208 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16209$as_echo "yes" >&6; }
16210
cae5b340
AX
16211cat >>confdefs.h <<\_ACEOF
16212#define HAVE_1ARG_INVALIDATE_BDEV 1
16213_ACEOF
87dac73d
AX
16214
16215
16216else
16217 $as_echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
cae5b340 16220 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16221$as_echo "no" >&6; }
16222
16223
16224
16225fi
cae5b340 16226
87dac73d
AX
16227 rm -Rf build
16228
16229
16230
87dac73d 16231
cae5b340
AX
16232 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16233$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16234 tmp_flags="$EXTRA_KCFLAGS"
16235 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
87dac73d 16236
87dac73d 16237
68d83c55 16238cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
87dac73d 16244
87dac73d 16245
cae5b340 16246 #include <linux/blkdev.h>
87dac73d
AX
16247
16248int
16249main (void)
16250{
16251
cae5b340
AX
16252 struct block_device *bdev = NULL;
16253 bdev_logical_block_size(bdev);
87dac73d
AX
16254
16255 ;
16256 return 0;
16257}
16258
16259_ACEOF
16260
16261
16262
16263cat - <<_ACEOF >conftest.h
16264
16265_ACEOF
16266
16267
16268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16269 echo "obj-m := conftest.o" >build/Makefile
16270 modpost_flag=''
16271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
cae5b340
AX
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
cae5b340
AX
16281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
87dac73d 16283
cae5b340 16284 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16285$as_echo "yes" >&6; }
16286
cae5b340
AX
16287cat >>confdefs.h <<\_ACEOF
16288#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16289_ACEOF
87dac73d
AX
16290
16291
68d83c55
AX
16292else
16293 $as_echo "$as_me: failed program was:" >&5
16294sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 16295
cae5b340 16296 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 16297$as_echo "no" >&6; }
87dac73d 16298
87dac73d
AX
16299
16300
68d83c55 16301fi
cae5b340 16302
68d83c55 16303 rm -Rf build
87dac73d 16304
68d83c55 16305
cae5b340 16306 EXTRA_KCFLAGS="$tmp_flags"
68d83c55
AX
16307
16308
cae5b340
AX
16309 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
16310$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
16311 tmp_flags="$EXTRA_KCFLAGS"
16312 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
68d83c55
AX
16313
16314
16315cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16316/* confdefs.h. */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h. */
68d83c55
AX
16321
16322
cae5b340 16323 #include <linux/blkdev.h>
87dac73d
AX
16324
16325int
16326main (void)
16327{
16328
cae5b340
AX
16329 struct block_device *bdev = NULL;
16330 bdev_physical_block_size(bdev);
87dac73d
AX
16331
16332 ;
16333 return 0;
16334}
16335
16336_ACEOF
16337
16338
16339
16340cat - <<_ACEOF >conftest.h
16341
16342_ACEOF
16343
16344
16345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16346 echo "obj-m := conftest.o" >build/Makefile
16347 modpost_flag=''
16348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16349 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
cae5b340
AX
16353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
cae5b340
AX
16358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
87dac73d 16360
cae5b340 16361 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16362$as_echo "yes" >&6; }
16363
cae5b340
AX
16364cat >>confdefs.h <<\_ACEOF
16365#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
16366_ACEOF
87dac73d
AX
16367
16368
16369else
16370 $as_echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
cae5b340 16373 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16374$as_echo "no" >&6; }
16375
16376
16377
16378fi
cae5b340 16379
87dac73d
AX
16380 rm -Rf build
16381
16382
cae5b340 16383 EXTRA_KCFLAGS="$tmp_flags"
87dac73d 16384
87dac73d 16385
cae5b340
AX
16386 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
16387$as_echo_n "checking whether bio has bi_iter... " >&6; }
87dac73d
AX
16388
16389
16390cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
87dac73d
AX
16396
16397
cae5b340 16398 #include <linux/bio.h>
87dac73d
AX
16399
16400int
16401main (void)
16402{
16403
cae5b340
AX
16404 struct bio bio;
16405 bio.bi_iter.bi_sector = 0;
87dac73d
AX
16406
16407 ;
16408 return 0;
16409}
16410
16411_ACEOF
16412
16413
16414
16415cat - <<_ACEOF >conftest.h
16416
16417_ACEOF
16418
16419
16420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16421 echo "obj-m := conftest.o" >build/Makefile
16422 modpost_flag=''
16423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
cae5b340
AX
16428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
cae5b340
AX
16433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
87dac73d 16435
cae5b340 16436 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16437$as_echo "yes" >&6; }
16438
cae5b340
AX
16439cat >>confdefs.h <<\_ACEOF
16440#define HAVE_BIO_BVEC_ITER 1
16441_ACEOF
68d83c55
AX
16442
16443
cae5b340
AX
16444else
16445 $as_echo "$as_me: failed program was:" >&5
16446sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 16447
cae5b340
AX
16448 { $as_echo "$as_me:$LINENO: result: no" >&5
16449$as_echo "no" >&6; }
68d83c55 16450
68d83c55
AX
16451
16452
cae5b340 16453fi
68d83c55 16454
cae5b340
AX
16455 rm -Rf build
16456
16457
16458
16459
16460 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16461$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16462
16463
16464cat confdefs.h - <<_ACEOF >conftest.c
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470
16471
16472 #include <linux/bio.h>
68d83c55
AX
16473
16474int
16475main (void)
16476{
16477
cae5b340
AX
16478 int flags __attribute__ ((unused));
16479 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16480 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16481 (1 << BIO_RW_FAILFAST_DRIVER));
68d83c55
AX
16482
16483 ;
16484 return 0;
16485}
16486
16487_ACEOF
16488
16489
16490
16491cat - <<_ACEOF >conftest.h
16492
16493_ACEOF
16494
16495
16496 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16497 echo "obj-m := conftest.o" >build/Makefile
16498 modpost_flag=''
16499 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16500 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
cae5b340
AX
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
cae5b340
AX
16509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
68d83c55 16511
cae5b340 16512 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
16513$as_echo "yes" >&6; }
16514
cae5b340
AX
16515cat >>confdefs.h <<\_ACEOF
16516#define HAVE_BIO_RW_FAILFAST_DTD 1
16517_ACEOF
87dac73d
AX
16518
16519
16520else
16521 $as_echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
cae5b340 16524 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16525$as_echo "no" >&6; }
16526
16527
16528
16529fi
cae5b340 16530
87dac73d
AX
16531 rm -Rf build
16532
16533
87dac73d 16534
87dac73d 16535
cae5b340
AX
16536 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16537$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
87dac73d 16538
87dac73d 16539
cae5b340
AX
16540cat confdefs.h - <<_ACEOF >conftest.c
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
87dac73d 16546
87dac73d 16547
cae5b340
AX
16548 #include <linux/bio.h>
16549 #include <linux/fs.h>
68d83c55 16550
87dac73d
AX
16551int
16552main (void)
16553{
16554
cae5b340
AX
16555 struct block_device *bdev = NULL;
16556 struct bio *bio = NULL;
16557 bio_set_dev(bio, bdev);
87dac73d
AX
16558
16559 ;
16560 return 0;
16561}
16562
16563_ACEOF
16564
16565
16566
16567cat - <<_ACEOF >conftest.h
16568
16569_ACEOF
16570
16571
16572 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16573 echo "obj-m := conftest.o" >build/Makefile
16574 modpost_flag=''
16575 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16576 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
cae5b340
AX
16580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
cae5b340
AX
16585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
87dac73d 16587
cae5b340 16588 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16589$as_echo "yes" >&6; }
16590
cae5b340
AX
16591cat >>confdefs.h <<\_ACEOF
16592#define HAVE_BIO_SET_DEV 1
16593_ACEOF
87dac73d
AX
16594
16595
cae5b340
AX
16596else
16597 $as_echo "$as_me: failed program was:" >&5
16598sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 16599
cae5b340
AX
16600 { $as_echo "$as_me:$LINENO: result: no" >&5
16601$as_echo "no" >&6; }
87dac73d 16602
87dac73d
AX
16603
16604
cae5b340 16605fi
68d83c55 16606
cae5b340
AX
16607 rm -Rf build
16608
16609
16610
16611
16612 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16613$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16614
16615
16616cat confdefs.h - <<_ACEOF >conftest.c
16617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
16622
16623
16624 #include <linux/bio.h>
87dac73d
AX
16625
16626int
16627main (void)
16628{
16629
cae5b340
AX
16630 int flags __attribute__ ((unused));
16631 flags = REQ_FAILFAST_MASK;
87dac73d
AX
16632
16633 ;
16634 return 0;
16635}
16636
16637_ACEOF
16638
16639
16640
16641cat - <<_ACEOF >conftest.h
16642
16643_ACEOF
16644
16645
16646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16647 echo "obj-m := conftest.o" >build/Makefile
16648 modpost_flag=''
16649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16650 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
cae5b340
AX
16654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
cae5b340
AX
16659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661
16662 { $as_echo "$as_me:$LINENO: result: yes" >&5
16663$as_echo "yes" >&6; }
16664
16665cat >>confdefs.h <<\_ACEOF
16666#define HAVE_REQ_FAILFAST_MASK 1
16667_ACEOF
87dac73d 16668
68d83c55
AX
16669
16670else
16671 $as_echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
cae5b340
AX
16674 { $as_echo "$as_me:$LINENO: result: no" >&5
16675$as_echo "no" >&6; }
68d83c55
AX
16676
16677
16678
16679fi
cae5b340 16680
68d83c55
AX
16681 rm -Rf build
16682
87dac73d
AX
16683
16684
cae5b340
AX
16685
16686 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
16687$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16688
16689
16690cat confdefs.h - <<_ACEOF >conftest.c
16691/* confdefs.h. */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h. */
16696
16697
16698 #include <linux/blk_types.h>
16699
16700int
16701main (void)
16702{
16703
16704 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16705
16706 ;
16707 return 0;
16708}
16709
16710_ACEOF
16711
16712
16713
16714cat - <<_ACEOF >conftest.h
16715
16716_ACEOF
16717
16718
16719 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16720 echo "obj-m := conftest.o" >build/Makefile
16721 modpost_flag=''
16722 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16723 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734
16735 { $as_echo "$as_me:$LINENO: result: yes" >&5
16736$as_echo "yes" >&6; }
16737
16738cat >>confdefs.h <<\_ACEOF
16739#define HAVE_REQ_OP_DISCARD 1
16740_ACEOF
16741
16742
87dac73d
AX
16743else
16744 $as_echo "$as_me: failed program was:" >&5
16745sed 's/^/| /' conftest.$ac_ext >&5
16746
cae5b340 16747 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16748$as_echo "no" >&6; }
16749
16750
16751
16752fi
87dac73d 16753
cae5b340 16754 rm -Rf build
87dac73d 16755
68d83c55 16756
87dac73d 16757
87dac73d 16758
cae5b340
AX
16759 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16760$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
87dac73d
AX
16761
16762
16763cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16764/* confdefs.h. */
16765_ACEOF
16766cat confdefs.h >>conftest.$ac_ext
16767cat >>conftest.$ac_ext <<_ACEOF
16768/* end confdefs.h. */
87dac73d
AX
16769
16770
cae5b340 16771 #include <linux/blk_types.h>
87dac73d
AX
16772
16773int
16774main (void)
16775{
16776
cae5b340 16777 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
ea04106b
AX
16778
16779 ;
16780 return 0;
16781}
16782
16783_ACEOF
16784
16785
16786
16787cat - <<_ACEOF >conftest.h
16788
16789_ACEOF
16790
16791
16792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16793 echo "obj-m := conftest.o" >build/Makefile
16794 modpost_flag=''
16795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
cae5b340
AX
16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
cae5b340
AX
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
e10b0808 16807
cae5b340 16808 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 16809$as_echo "yes" >&6; }
ea04106b 16810
cae5b340
AX
16811cat >>confdefs.h <<\_ACEOF
16812#define HAVE_REQ_OP_SECURE_ERASE 1
16813_ACEOF
ea04106b 16814
ea04106b 16815
68d83c55
AX
16816else
16817 $as_echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 16819
cae5b340 16820 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 16821$as_echo "no" >&6; }
ea04106b
AX
16822
16823
ea04106b 16824
68d83c55 16825fi
cae5b340 16826
68d83c55 16827 rm -Rf build
ea04106b 16828
ea04106b
AX
16829
16830
e10b0808 16831
cae5b340
AX
16832 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
16833$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
ea04106b
AX
16834
16835
16836cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16837/* confdefs.h. */
16838_ACEOF
16839cat confdefs.h >>conftest.$ac_ext
16840cat >>conftest.$ac_ext <<_ACEOF
16841/* end confdefs.h. */
ea04106b
AX
16842
16843
cae5b340 16844 #include <linux/blk_types.h>
ea04106b
AX
16845
16846int
16847main (void)
16848{
16849
cae5b340 16850 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b
AX
16851
16852 ;
16853 return 0;
16854}
16855
16856_ACEOF
16857
16858
16859
16860cat - <<_ACEOF >conftest.h
16861
16862_ACEOF
16863
16864
16865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16866 echo "obj-m := conftest.o" >build/Makefile
16867 modpost_flag=''
16868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
cae5b340
AX
16873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
cae5b340
AX
16878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
ea04106b 16880
cae5b340 16881 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16882$as_echo "yes" >&6; }
16883
cae5b340
AX
16884cat >>confdefs.h <<\_ACEOF
16885#define HAVE_REQ_OP_FLUSH 1
16886_ACEOF
ea04106b
AX
16887
16888
16889else
16890 $as_echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
cae5b340 16893 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
16894$as_echo "no" >&6; }
16895
16896
16897
16898fi
cae5b340 16899
ea04106b
AX
16900 rm -Rf build
16901
16902
ea04106b 16903
4d815aed 16904
cae5b340
AX
16905 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
16906$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
ea04106b
AX
16907
16908
16909cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
ea04106b
AX
16915
16916
cae5b340 16917 #include <linux/bio.h>
ea04106b
AX
16918
16919int
16920main (void)
16921{
16922
cae5b340
AX
16923 struct bio bio __attribute__ ((unused));
16924 bio.bi_opf = 0;
ea04106b
AX
16925
16926 ;
16927 return 0;
16928}
16929
16930_ACEOF
16931
16932
16933
16934cat - <<_ACEOF >conftest.h
16935
16936_ACEOF
16937
16938
16939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16940 echo "obj-m := conftest.o" >build/Makefile
16941 modpost_flag=''
16942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 16943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
cae5b340
AX
16947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
cae5b340
AX
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
ea04106b 16954
cae5b340 16955 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16956$as_echo "yes" >&6; }
16957
cae5b340
AX
16958cat >>confdefs.h <<\_ACEOF
16959#define HAVE_BIO_BI_OPF 1
16960_ACEOF
ea04106b
AX
16961
16962
16963else
16964 $as_echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
cae5b340 16967 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
16968$as_echo "no" >&6; }
16969
16970
16971
5eacc075 16972fi
cae5b340 16973
5eacc075
AX
16974 rm -Rf build
16975
16976
16977
16978
cae5b340
AX
16979 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
16980$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
5eacc075
AX
16981
16982
16983cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16984/* confdefs.h. */
16985_ACEOF
16986cat confdefs.h >>conftest.$ac_ext
16987cat >>conftest.$ac_ext <<_ACEOF
16988/* end confdefs.h. */
5eacc075
AX
16989
16990
cae5b340
AX
16991 #include <linux/bio.h>
16992
16993 void wanted_end_io(struct bio *bio) { return; }
16994
16995 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
5eacc075
AX
16996
16997int
16998main (void)
16999{
17000
17001
17002 ;
17003 return 0;
17004}
17005
17006_ACEOF
17007
17008
17009
17010cat - <<_ACEOF >conftest.h
17011
17012_ACEOF
17013
17014
17015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17016 echo "obj-m := conftest.o" >build/Makefile
17017 modpost_flag=''
17018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17019 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
cae5b340
AX
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
cae5b340
AX
17028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
5eacc075 17030
cae5b340 17031 { $as_echo "$as_me:$LINENO: result: yes" >&5
5eacc075
AX
17032$as_echo "yes" >&6; }
17033
cae5b340
AX
17034cat >>confdefs.h <<\_ACEOF
17035#define HAVE_1ARG_BIO_END_IO_T 1
17036_ACEOF
5eacc075
AX
17037
17038
17039else
17040 $as_echo "$as_me: failed program was:" >&5
17041sed 's/^/| /' conftest.$ac_ext >&5
17042
cae5b340 17043 { $as_echo "$as_me:$LINENO: result: no" >&5
5eacc075
AX
17044$as_echo "no" >&6; }
17045
17046
17047
ea04106b 17048fi
cae5b340 17049
ea04106b
AX
17050 rm -Rf build
17051
17052
ea04106b
AX
17053
17054
cae5b340
AX
17055 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
17056$as_echo_n "checking whether bio->bi_status exists... " >&6; }
ea04106b
AX
17057
17058
17059cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
ea04106b
AX
17065
17066
cae5b340 17067 #include <linux/bio.h>
ea04106b
AX
17068
17069int
17070main (void)
17071{
17072
cae5b340
AX
17073 struct bio bio __attribute__ ((unused));
17074 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
17075
17076 bio.bi_status = status;
ea04106b
AX
17077
17078 ;
17079 return 0;
17080}
17081
17082_ACEOF
17083
17084
17085
17086cat - <<_ACEOF >conftest.h
17087
17088_ACEOF
17089
17090
17091 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17092 echo "obj-m := conftest.o" >build/Makefile
17093 modpost_flag=''
17094 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17095 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
cae5b340
AX
17099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
cae5b340
AX
17104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
ea04106b 17106
cae5b340 17107 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17108$as_echo "yes" >&6; }
17109
cae5b340
AX
17110cat >>confdefs.h <<\_ACEOF
17111#define HAVE_BIO_BI_STATUS 1
17112_ACEOF
ea04106b
AX
17113
17114
17115else
17116 $as_echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
cae5b340 17119 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 17120$as_echo "no" >&6; }
94a40997
AX
17121
17122
94a40997 17123
68d83c55 17124fi
cae5b340 17125
68d83c55
AX
17126 rm -Rf build
17127
17128
68d83c55 17129
94a40997 17130
cae5b340
AX
17131 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
17132$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
94a40997 17133
68d83c55
AX
17134
17135cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
68d83c55
AX
17141
17142
cae5b340 17143 #include <linux/bio.h>
94a40997
AX
17144
17145int
17146main (void)
17147{
17148
cae5b340
AX
17149 int flags __attribute__ ((unused));
17150 flags = BIO_RW_BARRIER;
94a40997
AX
17151
17152 ;
17153 return 0;
17154}
17155
17156_ACEOF
17157
17158
17159
17160cat - <<_ACEOF >conftest.h
17161
17162_ACEOF
17163
17164
17165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17166 echo "obj-m := conftest.o" >build/Makefile
17167 modpost_flag=''
17168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
cae5b340
AX
17173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
cae5b340
AX
17178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
87dac73d 17180
cae5b340
AX
17181 { $as_echo "$as_me:$LINENO: result: yes" >&5
17182$as_echo "yes" >&6; }
87dac73d 17183
cae5b340
AX
17184cat >>confdefs.h <<\_ACEOF
17185#define HAVE_BIO_RW_BARRIER 1
17186_ACEOF
87dac73d 17187
87dac73d 17188
cae5b340
AX
17189else
17190 $as_echo "$as_me: failed program was:" >&5
17191sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 17192
cae5b340 17193 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
17194$as_echo "no" >&6; }
17195
68d83c55 17196
68d83c55 17197
cae5b340 17198fi
68d83c55 17199
cae5b340 17200 rm -Rf build
68d83c55 17201
87dac73d 17202
68d83c55
AX
17203
17204
cae5b340
AX
17205 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
17206$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
68d83c55
AX
17207
17208
17209cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
68d83c55
AX
17215
17216
cae5b340 17217 #include <linux/bio.h>
87dac73d
AX
17218
17219int
17220main (void)
17221{
17222
cae5b340
AX
17223 int flags __attribute__ ((unused));
17224 flags = BIO_RW_DISCARD;
87dac73d
AX
17225
17226 ;
17227 return 0;
17228}
17229
17230_ACEOF
17231
17232
17233
17234cat - <<_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
42f7b73b 17243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
cae5b340
AX
17247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
cae5b340
AX
17252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
87dac73d 17254
cae5b340 17255 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
17256$as_echo "yes" >&6; }
17257
cae5b340
AX
17258cat >>confdefs.h <<\_ACEOF
17259#define HAVE_BIO_RW_DISCARD 1
17260_ACEOF
87dac73d
AX
17261
17262
17263else
17264 $as_echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
cae5b340 17267 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 17268$as_echo "no" >&6; }
87dac73d
AX
17269
17270
68d83c55
AX
17271
17272fi
cae5b340 17273
68d83c55 17274 rm -Rf build
87dac73d
AX
17275
17276
87dac73d 17277
68d83c55 17278
cae5b340
AX
17279 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
17280$as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
68d83c55
AX
17281
17282
17283cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17284/* confdefs.h. */
17285_ACEOF
17286cat confdefs.h >>conftest.$ac_ext
17287cat >>conftest.$ac_ext <<_ACEOF
17288/* end confdefs.h. */
68d83c55
AX
17289
17290
cae5b340 17291 #include <linux/blkdev.h>
87dac73d
AX
17292
17293int
17294main (void)
17295{
17296
cae5b340
AX
17297 struct request_queue q;
17298 struct backing_dev_info bdi;
17299 q.backing_dev_info = &bdi;
87dac73d
AX
17300
17301 ;
17302 return 0;
17303}
17304
17305_ACEOF
17306
17307
17308
17309cat - <<_ACEOF >conftest.h
17310
17311_ACEOF
17312
17313
17314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17315 echo "obj-m := conftest.o" >build/Makefile
17316 modpost_flag=''
17317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17318 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
cae5b340
AX
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
cae5b340
AX
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
87dac73d 17329
cae5b340 17330 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17331$as_echo "yes" >&6; }
17332
cae5b340
AX
17333cat >>confdefs.h <<\_ACEOF
17334#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
17335_ACEOF
94a40997
AX
17336
17337
17338else
17339 $as_echo "$as_me: failed program was:" >&5
17340sed 's/^/| /' conftest.$ac_ext >&5
17341
cae5b340 17342 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 17343$as_echo "no" >&6; }
87dac73d
AX
17344
17345
17346
17347fi
cae5b340 17348
87dac73d
AX
17349 rm -Rf build
17350
17351
17352
17353
42f7b73b
AX
17354 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
17355$as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
4d815aed
AX
17356
17357
17358cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
4d815aed
AX
17364
17365
42f7b73b 17366 #include <linux/kernel.h>
68d83c55 17367 #include <linux/blkdev.h>
4d815aed
AX
17368
17369int
17370main (void)
17371{
17372
cae5b340 17373 struct request_queue *q = NULL;
42f7b73b 17374 blk_queue_flag_clear(0, q);
4d815aed
AX
17375
17376 ;
17377 return 0;
17378}
17379
17380_ACEOF
17381
17382
17383
17384cat - <<_ACEOF >conftest.h
17385
17386_ACEOF
17387
17388
17389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17390 echo "obj-m := conftest.o" >build/Makefile
17391 modpost_flag=''
17392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17393 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
cae5b340
AX
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
cae5b340
AX
17402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
4d815aed 17404
42f7b73b 17405
cae5b340 17406 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17407$as_echo "yes" >&6; }
17408
cae5b340 17409cat >>confdefs.h <<\_ACEOF
42f7b73b 17410#define HAVE_BLK_QUEUE_FLAG_CLEAR 1
cae5b340 17411_ACEOF
ea04106b 17412
ea04106b 17413
42f7b73b
AX
17414else
17415 $as_echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 { $as_echo "$as_me:$LINENO: result: no" >&5
17419$as_echo "no" >&6; }
17420
17421
17422
17423fi
17424
17425 rm -Rf build
17426
17427
17428
17429
17430 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
17431$as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
ea04106b 17432
ea04106b 17433
68d83c55 17434cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17435/* confdefs.h. */
17436_ACEOF
17437cat confdefs.h >>conftest.$ac_ext
17438cat >>conftest.$ac_ext <<_ACEOF
17439/* end confdefs.h. */
94a40997
AX
17440
17441
42f7b73b
AX
17442 #include <linux/kernel.h>
17443 #include <linux/blkdev.h>
94a40997
AX
17444
17445int
17446main (void)
17447{
17448
42f7b73b
AX
17449 struct request_queue *q = NULL;
17450 blk_queue_flag_set(0, q);
94a40997
AX
17451
17452 ;
17453 return 0;
17454}
17455
17456_ACEOF
17457
17458
17459
17460cat - <<_ACEOF >conftest.h
17461
17462_ACEOF
17463
17464
17465 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17466 echo "obj-m := conftest.o" >build/Makefile
17467 modpost_flag=''
17468 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17469 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
cae5b340
AX
17473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
cae5b340
AX
17478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480
42f7b73b 17481 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17482$as_echo "yes" >&6; }
17483
cae5b340 17484cat >>confdefs.h <<\_ACEOF
42f7b73b 17485#define HAVE_BLK_QUEUE_FLAG_SET 1
cae5b340
AX
17486_ACEOF
17487
17488
94a40997
AX
17489else
17490 $as_echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
cae5b340 17493 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 17494$as_echo "no" >&6; }
68d83c55
AX
17495
17496
17497
17498fi
68d83c55 17499
cae5b340 17500 rm -Rf build
68d83c55
AX
17501
17502
17503
42f7b73b
AX
17504
17505 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
17506$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
17507 tmp_flags="$EXTRA_KCFLAGS"
17508 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed
AX
17509
17510
17511cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17512/* confdefs.h. */
17513_ACEOF
17514cat confdefs.h >>conftest.$ac_ext
17515cat >>conftest.$ac_ext <<_ACEOF
17516/* end confdefs.h. */
4d815aed
AX
17517
17518
cae5b340 17519 #include <linux/blkdev.h>
4d815aed 17520
4d815aed
AX
17521int
17522main (void)
17523{
17524
cae5b340 17525 struct request_queue *q = NULL;
42f7b73b 17526 (void) blk_queue_flush(q, REQ_FLUSH);
4d815aed
AX
17527
17528 ;
17529 return 0;
17530}
17531
17532_ACEOF
17533
17534
17535
17536cat - <<_ACEOF >conftest.h
17537
17538_ACEOF
17539
17540
17541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17542 echo "obj-m := conftest.o" >build/Makefile
17543 modpost_flag=''
17544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b
AX
17545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556
17557 { $as_echo "$as_me:$LINENO: result: yes" >&5
17558$as_echo "yes" >&6; }
17559
17560cat >>confdefs.h <<\_ACEOF
17561#define HAVE_BLK_QUEUE_FLUSH 1
17562_ACEOF
17563
17564
17565 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
17566$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
17567
17568
17569cat confdefs.h - <<_ACEOF >conftest.c
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575
17576
17577 #include <linux/module.h>
17578 #include <linux/blkdev.h>
17579
17580 MODULE_LICENSE("$ZFS_META_LICENSE");
17581
17582int
17583main (void)
17584{
17585
17586 struct request_queue *q = NULL;
17587 (void) blk_queue_flush(q, REQ_FLUSH);
17588
17589 ;
17590 return 0;
17591}
17592
17593_ACEOF
17594
17595
17596
17597cat - <<_ACEOF >conftest.h
17598
17599_ACEOF
17600
17601
17602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17603 echo "obj-m := conftest.o" >build/Makefile
17604 modpost_flag=''
17605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17606 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617
17618 { $as_echo "$as_me:$LINENO: result: no" >&5
17619$as_echo "no" >&6; }
17620
17621else
17622 $as_echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 { $as_echo "$as_me:$LINENO: result: yes" >&5
17626$as_echo "yes" >&6; }
17627
17628cat >>confdefs.h <<\_ACEOF
17629#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17630_ACEOF
17631
17632
17633
17634
17635fi
17636
17637 rm -Rf build
17638
17639
17640
17641else
17642 $as_echo "$as_me: failed program was:" >&5
17643sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 { $as_echo "$as_me:$LINENO: result: no" >&5
17646$as_echo "no" >&6; }
17647
17648
17649
17650fi
17651
17652 rm -Rf build
17653
17654
17655
17656 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
17657$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
17658
17659
17660cat confdefs.h - <<_ACEOF >conftest.c
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
17666
17667
17668 #include <linux/kernel.h>
17669 #include <linux/blkdev.h>
17670
17671
17672int
17673main (void)
17674{
17675
17676 struct request_queue *q = NULL;
17677 blk_queue_write_cache(q, true, true);
17678
17679 ;
17680 return 0;
17681}
17682
17683_ACEOF
17684
17685
17686
17687cat - <<_ACEOF >conftest.h
17688
17689_ACEOF
17690
17691
17692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17693 echo "obj-m := conftest.o" >build/Makefile
17694 modpost_flag=''
17695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
cae5b340
AX
17700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
cae5b340
AX
17705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
4d815aed 17707
cae5b340 17708 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17709$as_echo "yes" >&6; }
17710
cae5b340
AX
17711cat >>confdefs.h <<\_ACEOF
17712#define HAVE_BLK_QUEUE_WRITE_CACHE 1
17713_ACEOF
4d815aed
AX
17714
17715
cae5b340
AX
17716 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
17717$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
ea04106b
AX
17718
17719
17720cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
ea04106b
AX
17726
17727
cae5b340
AX
17728 #include <linux/kernel.h>
17729 #include <linux/module.h>
17730 #include <linux/blkdev.h>
e10b0808 17731
cae5b340 17732 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
17733
17734int
17735main (void)
17736{
17737
cae5b340
AX
17738 struct request_queue *q = NULL;
17739 blk_queue_write_cache(q, true, true);
ea04106b
AX
17740
17741 ;
17742 return 0;
17743}
17744
17745_ACEOF
17746
17747
17748
17749cat - <<_ACEOF >conftest.h
17750
17751_ACEOF
17752
17753
17754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17755 echo "obj-m := conftest.o" >build/Makefile
17756 modpost_flag=''
17757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17758 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
cae5b340
AX
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
cae5b340
AX
17767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769
17770 { $as_echo "$as_me:$LINENO: result: no" >&5
17771$as_echo "no" >&6; }
17772
17773else
17774 $as_echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 17776
cae5b340 17777 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17778$as_echo "yes" >&6; }
17779
cae5b340
AX
17780cat >>confdefs.h <<\_ACEOF
17781#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17782_ACEOF
17783
17784
17785
17786
17787fi
17788
17789 rm -Rf build
17790
ea04106b
AX
17791
17792
17793else
17794 $as_echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
cae5b340
AX
17797 { $as_echo "$as_me:$LINENO: result: no" >&5
17798$as_echo "no" >&6; }
94a40997
AX
17799
17800
94a40997 17801
cae5b340 17802fi
94a40997 17803
cae5b340
AX
17804 rm -Rf build
17805
17806
17807
17808 EXTRA_KCFLAGS="$tmp_flags"
17809
17810
17811 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
17812$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
17813 tmp_flags="$EXTRA_KCFLAGS"
17814 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17815
17816
17817cat confdefs.h - <<_ACEOF >conftest.c
17818/* confdefs.h. */
17819_ACEOF
17820cat confdefs.h >>conftest.$ac_ext
17821cat >>conftest.$ac_ext <<_ACEOF
17822/* end confdefs.h. */
94a40997 17823
cae5b340
AX
17824
17825 #include <linux/blkdev.h>
94a40997
AX
17826
17827int
17828main (void)
17829{
17830
cae5b340
AX
17831 struct request_queue *q = NULL;
17832 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
94a40997
AX
17833
17834 ;
17835 return 0;
17836}
17837
17838_ACEOF
17839
17840
17841
17842cat - <<_ACEOF >conftest.h
17843
17844_ACEOF
17845
17846
17847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17848 echo "obj-m := conftest.o" >build/Makefile
17849 modpost_flag=''
17850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17851 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
cae5b340
AX
17855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
cae5b340
AX
17860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
94a40997 17862
cae5b340 17863 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17864$as_echo "yes" >&6; }
17865
cae5b340
AX
17866cat >>confdefs.h <<\_ACEOF
17867#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17868_ACEOF
94a40997
AX
17869
17870
17871else
17872 $as_echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
cae5b340 17875 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 17876$as_echo "no" >&6; }
4d815aed
AX
17877
17878
4d815aed 17879
cae5b340 17880fi
4d815aed 17881
cae5b340 17882 rm -Rf build
4d815aed 17883
cae5b340
AX
17884
17885 EXTRA_KCFLAGS="$tmp_flags"
17886
17887
17888 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
17889$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
17890 tmp_flags="$EXTRA_KCFLAGS"
17891 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17892
17893
17894cat confdefs.h - <<_ACEOF >conftest.c
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900
17901
17902 #include <linux/blkdev.h>
4d815aed
AX
17903
17904int
17905main (void)
17906{
17907
cae5b340
AX
17908 struct request_queue *q = NULL;
17909 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
4d815aed
AX
17910
17911 ;
17912 return 0;
17913}
17914
17915_ACEOF
17916
17917
17918
17919cat - <<_ACEOF >conftest.h
17920
17921_ACEOF
17922
17923
17924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17925 echo "obj-m := conftest.o" >build/Makefile
17926 modpost_flag=''
17927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 17928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
cae5b340
AX
17932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
cae5b340
AX
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
4d815aed 17939
cae5b340 17940 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17941$as_echo "yes" >&6; }
17942
cae5b340
AX
17943cat >>confdefs.h <<\_ACEOF
17944#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17945_ACEOF
4d815aed
AX
17946
17947
17948else
17949 $as_echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
cae5b340 17952 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 17953$as_echo "no" >&6; }
4d815aed
AX
17954
17955
4d815aed 17956
cae5b340 17957fi
4d815aed 17958
cae5b340 17959 rm -Rf build
4d815aed 17960
cae5b340
AX
17961
17962 EXTRA_KCFLAGS="$tmp_flags"
17963
17964
17965 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
17966$as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17967 tmp_flags="$EXTRA_KCFLAGS"
17968 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17969
17970
17971cat confdefs.h - <<_ACEOF >conftest.c
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977
17978
17979 #include <linux/blkdev.h>
4d815aed
AX
17980
17981int
17982main (void)
17983{
17984
cae5b340
AX
17985 extern enum bio_rw_flags rw;
17986
17987 rw = BIO_RW_UNPLUG;
4d815aed
AX
17988
17989 ;
17990 return 0;
17991}
17992
17993_ACEOF
17994
17995
17996
17997cat - <<_ACEOF >conftest.h
17998
17999_ACEOF
18000
18001
18002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18003 echo "obj-m := conftest.o" >build/Makefile
18004 modpost_flag=''
18005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18006 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
cae5b340
AX
18010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
cae5b340
AX
18015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
4d815aed 18017
cae5b340 18018 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
18019$as_echo "yes" >&6; }
18020
cae5b340
AX
18021cat >>confdefs.h <<\_ACEOF
18022#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
18023_ACEOF
4d815aed
AX
18024
18025
18026else
18027 $as_echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
cae5b340
AX
18030 { $as_echo "$as_me:$LINENO: result: no" >&5
18031$as_echo "no" >&6; }
94a40997
AX
18032
18033
18034
18035fi
ea04106b 18036
ea04106b
AX
18037 rm -Rf build
18038
18039
cae5b340 18040 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
18041
18042
cae5b340
AX
18043 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
18044$as_echo_n "checking whether struct blk_plug is available... " >&6; }
18045 tmp_flags="$EXTRA_KCFLAGS"
18046 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
18047
18048
18049cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18050/* confdefs.h. */
18051_ACEOF
18052cat confdefs.h >>conftest.$ac_ext
18053cat >>conftest.$ac_ext <<_ACEOF
18054/* end confdefs.h. */
ea04106b
AX
18055
18056
cae5b340 18057 #include <linux/blkdev.h>
ea04106b
AX
18058
18059int
18060main (void)
18061{
18062
cae5b340
AX
18063 struct blk_plug plug;
18064
18065 blk_start_plug(&plug);
18066 blk_finish_plug(&plug);
ea04106b
AX
18067
18068 ;
18069 return 0;
18070}
18071
18072_ACEOF
18073
18074
18075
18076cat - <<_ACEOF >conftest.h
18077
18078_ACEOF
18079
18080
18081 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18082 echo "obj-m := conftest.o" >build/Makefile
18083 modpost_flag=''
18084 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18085 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
cae5b340
AX
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
cae5b340
AX
18094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
ea04106b 18096
cae5b340 18097 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18098$as_echo "yes" >&6; }
18099
cae5b340
AX
18100cat >>confdefs.h <<\_ACEOF
18101#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
18102_ACEOF
ea04106b
AX
18103
18104
18105else
18106 $as_echo "$as_me: failed program was:" >&5
18107sed 's/^/| /' conftest.$ac_ext >&5
18108
cae5b340
AX
18109 { $as_echo "$as_me:$LINENO: result: no" >&5
18110$as_echo "no" >&6; }
ea04106b
AX
18111
18112
ea04106b 18113
cae5b340 18114fi
ea04106b 18115
cae5b340 18116 rm -Rf build
68d83c55 18117
cae5b340
AX
18118
18119 EXTRA_KCFLAGS="$tmp_flags"
18120
42f7b73b
AX
18121 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
18122$as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
18123
18124
18125
18126cat confdefs.h - <<_ACEOF >conftest.c
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132
18133
18134 #include <linux/genhd.h>
18135
18136int
18137main (void)
18138{
18139
18140 struct gendisk *disk = NULL;
18141 (void) get_disk_and_module(disk);
18142
18143 ;
18144 return 0;
18145}
18146
18147_ACEOF
18148
18149
18150
18151cat - <<_ACEOF >conftest.h
18152
18153_ACEOF
18154
18155
18156 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18157 echo "obj-m := conftest.o" >build/Makefile
18158 modpost_flag=''
18159 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18160 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 rc=0
18172else
18173 $as_echo "$as_me: failed program was:" >&5
18174sed 's/^/| /' conftest.$ac_ext >&5
18175 rc=1
18176
18177
18178fi
18179
18180 rm -Rf build
18181
18182
18183 if test $rc -ne 0; then :
18184
18185 { $as_echo "$as_me:$LINENO: result: no" >&5
18186$as_echo "no" >&6; }
18187
18188 else
18189 if test "x$enable_linux_builtin" != xyes; then
18190
18191 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
18192 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18193 rc=$?
18194 if test $rc -ne 0; then
18195 export=0
18196 for file in block/genhd.c; do
18197 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
18198 "$LINUX/$file" 2>/dev/null
18199 rc=$?
18200 if test $rc -eq 0; then
18201 export=1
18202 break;
18203 fi
18204 done
18205 if test $export -eq 0; then :
18206 rc=1
18207 else :
18208 rc=0
18209 fi
18210 else :
18211 rc=0
18212 fi
18213
18214 fi
18215 if test $rc -ne 0; then :
18216
18217 { $as_echo "$as_me:$LINENO: result: no" >&5
18218$as_echo "no" >&6; }
18219
18220 else :
18221
18222 { $as_echo "$as_me:$LINENO: result: yes" >&5
18223$as_echo "yes" >&6; }
18224
18225cat >>confdefs.h <<\_ACEOF
18226#define HAVE_GET_DISK_AND_MODULE 1
18227_ACEOF
18228
18229
18230 fi
18231 fi
18232
18233
cae5b340
AX
18234
18235 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18236$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18237 tmp_flags="$EXTRA_KCFLAGS"
18238 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18239
18240
18241cat confdefs.h - <<_ACEOF >conftest.c
18242/* confdefs.h. */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h. */
18247
18248
18249 #include <linux/blkdev.h>
ea04106b
AX
18250
18251int
18252main (void)
18253{
18254
cae5b340
AX
18255 struct gendisk *disk = NULL;
18256 (void) get_disk_ro(disk);
ea04106b
AX
18257
18258 ;
18259 return 0;
18260}
18261
18262_ACEOF
18263
18264
18265
18266cat - <<_ACEOF >conftest.h
18267
18268_ACEOF
18269
18270
18271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18272 echo "obj-m := conftest.o" >build/Makefile
18273 modpost_flag=''
18274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18275 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
cae5b340
AX
18279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
cae5b340
AX
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
ea04106b 18286
cae5b340 18287 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18288$as_echo "yes" >&6; }
18289
cae5b340
AX
18290cat >>confdefs.h <<\_ACEOF
18291#define HAVE_GET_DISK_RO 1
18292_ACEOF
ea04106b
AX
18293
18294
18295else
18296 $as_echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
cae5b340 18299 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 18300$as_echo "no" >&6; }
ea04106b
AX
18301
18302
ea04106b 18303
cae5b340 18304fi
ea04106b 18305
cae5b340 18306 rm -Rf build
68d83c55 18307
cae5b340
AX
18308
18309 EXTRA_KCFLAGS="$tmp_flags"
18310
18311 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
18312$as_echo_n "checking whether get_gendisk() is available... " >&6; }
18313
18314
18315
18316cat confdefs.h - <<_ACEOF >conftest.c
18317/* confdefs.h. */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h. */
18322
18323
18324 #include <linux/genhd.h>
ea04106b
AX
18325
18326int
18327main (void)
18328{
18329
cae5b340 18330 get_gendisk(0, NULL);
ea04106b
AX
18331
18332 ;
18333 return 0;
18334}
18335
18336_ACEOF
18337
18338
18339
18340cat - <<_ACEOF >conftest.h
18341
18342_ACEOF
18343
18344
18345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18346 echo "obj-m := conftest.o" >build/Makefile
18347 modpost_flag=''
18348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18349 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
cae5b340
AX
18353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
cae5b340
AX
18358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 rc=0
18361else
18362 $as_echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364 rc=1
ea04106b 18365
ea04106b 18366
cae5b340
AX
18367fi
18368
18369 rm -Rf build
ea04106b
AX
18370
18371
cae5b340 18372 if test $rc -ne 0; then :
ea04106b 18373
cae5b340 18374 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18375$as_echo "no" >&6; }
ea04106b 18376
cae5b340
AX
18377 else
18378 if test "x$enable_linux_builtin" != xyes; then
ea04106b 18379
cae5b340
AX
18380 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
18381 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18382 rc=$?
18383 if test $rc -ne 0; then
18384 export=0
18385 for file in block/genhd.c; do
18386 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
18387 "$LINUX/$file" 2>/dev/null
18388 rc=$?
18389 if test $rc -eq 0; then
18390 export=1
18391 break;
18392 fi
18393 done
18394 if test $export -eq 0; then :
18395 rc=1
18396 else :
18397 rc=0
18398 fi
18399 else :
18400 rc=0
18401 fi
ea04106b 18402
cae5b340
AX
18403 fi
18404 if test $rc -ne 0; then :
ea04106b 18405
cae5b340
AX
18406 { $as_echo "$as_me:$LINENO: result: no" >&5
18407$as_echo "no" >&6; }
68d83c55 18408
cae5b340
AX
18409 else :
18410
18411 { $as_echo "$as_me:$LINENO: result: yes" >&5
18412$as_echo "yes" >&6; }
18413
18414cat >>confdefs.h <<\_ACEOF
18415#define HAVE_GET_GENDISK 1
18416_ACEOF
18417
18418
18419 fi
18420 fi
18421
18422
18423
18424 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
18425$as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
18426
18427
18428cat confdefs.h - <<_ACEOF >conftest.c
18429/* confdefs.h. */
18430_ACEOF
18431cat confdefs.h >>conftest.$ac_ext
18432cat >>conftest.$ac_ext <<_ACEOF
18433/* end confdefs.h. */
18434
18435
18436 #include <linux/bio.h>
ea04106b
AX
18437
18438int
18439main (void)
18440{
18441
cae5b340
AX
18442 struct bio *bio __attribute__ ((unused)) = NULL;
18443
18444 bio_set_op_attrs(bio, 0, 0);
ea04106b
AX
18445
18446 ;
18447 return 0;
18448}
18449
18450_ACEOF
18451
18452
18453
18454cat - <<_ACEOF >conftest.h
18455
18456_ACEOF
18457
18458
18459 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18460 echo "obj-m := conftest.o" >build/Makefile
18461 modpost_flag=''
18462 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18463 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
cae5b340
AX
18467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
cae5b340
AX
18472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
ea04106b 18474
cae5b340 18475 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18476$as_echo "yes" >&6; }
18477
cae5b340
AX
18478cat >>confdefs.h <<\_ACEOF
18479#define HAVE_BIO_SET_OP_ATTRS 1
18480_ACEOF
ea04106b
AX
18481
18482
18483else
18484 $as_echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
cae5b340
AX
18487 { $as_echo "$as_me:$LINENO: result: no" >&5
18488$as_echo "no" >&6; }
68d83c55
AX
18489
18490
18491
18492fi
68d83c55 18493
68d83c55
AX
18494 rm -Rf build
18495
18496
18497
18498
cae5b340
AX
18499 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
18500$as_echo_n "checking whether generic_readlink is global... " >&6; }
ea04106b
AX
18501
18502
18503cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18504/* confdefs.h. */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h. */
ea04106b
AX
18509
18510
cae5b340 18511 #include <linux/fs.h>
ea04106b
AX
18512
18513int
18514main (void)
18515{
18516
cae5b340
AX
18517 int i __attribute__ ((unused));
18518
18519 i = generic_readlink(NULL, NULL, 0);
ea04106b
AX
18520
18521 ;
18522 return 0;
18523}
18524
18525_ACEOF
18526
18527
18528
18529cat - <<_ACEOF >conftest.h
18530
18531_ACEOF
18532
18533
18534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18535 echo "obj-m := conftest.o" >build/Makefile
18536 modpost_flag=''
18537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
cae5b340
AX
18542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
cae5b340
AX
18547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
ea04106b 18549
cae5b340 18550 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18551$as_echo "yes" >&6; }
18552
cae5b340
AX
18553cat >>confdefs.h <<\_ACEOF
18554#define HAVE_GENERIC_READLINK 1
18555_ACEOF
ea04106b 18556
ea04106b 18557
68d83c55
AX
18558else
18559 $as_echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18561
cae5b340 18562 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 18563$as_echo "no" >&6; }
ea04106b
AX
18564
18565
ea04106b 18566
cae5b340 18567fi
ea04106b 18568
cae5b340 18569 rm -Rf build
68d83c55 18570
cae5b340
AX
18571
18572
18573
18574 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
18575$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
18576
18577
18578cat confdefs.h - <<_ACEOF >conftest.c
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584
18585
18586 #include <linux/blkdev.h>
ea04106b
AX
18587
18588int
18589main (void)
18590{
18591
cae5b340
AX
18592 struct queue_limits ql __attribute__ ((unused));
18593
18594 ql.discard_granularity = 0;
ea04106b
AX
18595
18596 ;
18597 return 0;
18598}
18599
18600_ACEOF
18601
18602
18603
18604cat - <<_ACEOF >conftest.h
18605
18606_ACEOF
18607
18608
18609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18610 echo "obj-m := conftest.o" >build/Makefile
18611 modpost_flag=''
18612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18613 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
cae5b340
AX
18617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
cae5b340
AX
18622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
ea04106b 18624
cae5b340 18625 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18626$as_echo "yes" >&6; }
18627
cae5b340
AX
18628cat >>confdefs.h <<\_ACEOF
18629#define HAVE_DISCARD_GRANULARITY 1
18630_ACEOF
ea04106b
AX
18631
18632
18633else
18634 $as_echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
cae5b340 18637 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18638$as_echo "no" >&6; }
cae5b340
AX
18639
18640
18641
18642fi
18643
18644 rm -Rf build
18645
18646
18647
18648
18649 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
18650$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
ea04106b
AX
18651
18652
18653cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18654/* confdefs.h. */
18655_ACEOF
18656cat confdefs.h >>conftest.$ac_ext
18657cat >>conftest.$ac_ext <<_ACEOF
18658/* end confdefs.h. */
ea04106b
AX
18659
18660
cae5b340
AX
18661 #include <linux/fs.h>
18662 #include <linux/xattr.h>
68d83c55 18663
cae5b340
AX
18664 const struct xattr_handler xattr_test_handler = {
18665 .prefix = "test",
18666 .get = NULL,
18667 .set = NULL,
18668 };
18669
18670 const struct xattr_handler *xattr_handlers[] = {
18671 &xattr_test_handler,
18672 };
18673
18674 const struct super_block sb __attribute__ ((unused)) = {
18675 .s_xattr = xattr_handlers,
18676 };
ea04106b
AX
18677
18678int
18679main (void)
18680{
18681
ea04106b
AX
18682
18683 ;
18684 return 0;
18685}
18686
18687_ACEOF
18688
18689
18690
18691cat - <<_ACEOF >conftest.h
18692
18693_ACEOF
18694
18695
18696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18697 echo "obj-m := conftest.o" >build/Makefile
18698 modpost_flag=''
18699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18700 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
cae5b340
AX
18704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
cae5b340
AX
18709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
ea04106b 18711
cae5b340 18712 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18713$as_echo "yes" >&6; }
18714
cae5b340
AX
18715cat >>confdefs.h <<\_ACEOF
18716#define HAVE_CONST_XATTR_HANDLER 1
18717_ACEOF
ea04106b
AX
18718
18719
18720else
18721 $as_echo "$as_me: failed program was:" >&5
18722sed 's/^/| /' conftest.$ac_ext >&5
18723
cae5b340 18724 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18725$as_echo "no" >&6; }
cae5b340
AX
18726
18727
18728
18729fi
18730
18731 rm -Rf build
18732
18733
18734
18735
18736 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
18737$as_echo_n "checking whether xattr_handler has name... " >&6; }
ea04106b
AX
18738
18739
18740cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
ea04106b
AX
18746
18747
cae5b340 18748 #include <linux/xattr.h>
68d83c55 18749
cae5b340
AX
18750 static const struct xattr_handler
18751 xops __attribute__ ((unused)) = {
18752 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18753 };
ea04106b
AX
18754
18755int
18756main (void)
18757{
18758
ea04106b
AX
18759
18760 ;
18761 return 0;
18762}
18763
18764_ACEOF
18765
18766
18767
18768cat - <<_ACEOF >conftest.h
18769
18770_ACEOF
18771
18772
18773 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18774 echo "obj-m := conftest.o" >build/Makefile
18775 modpost_flag=''
18776 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18777 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
cae5b340
AX
18781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
cae5b340
AX
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
ea04106b 18788
cae5b340 18789 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18790$as_echo "yes" >&6; }
18791
cae5b340
AX
18792cat >>confdefs.h <<\_ACEOF
18793#define HAVE_XATTR_HANDLER_NAME 1
18794_ACEOF
ea04106b
AX
18795
18796
18797else
18798 $as_echo "$as_me: failed program was:" >&5
18799sed 's/^/| /' conftest.$ac_ext >&5
18800
cae5b340
AX
18801 { $as_echo "$as_me:$LINENO: result: no" >&5
18802$as_echo "no" >&6; }
68d83c55
AX
18803
18804
18805
18806fi
68d83c55 18807
68d83c55
AX
18808 rm -Rf build
18809
18810
18811
18812
cae5b340
AX
18813 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
18814$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
ea04106b
AX
18815
18816
18817cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
ea04106b
AX
18823
18824
cae5b340
AX
18825 #include <linux/xattr.h>
18826
18827 int get(const struct xattr_handler *handler,
18828 struct dentry *dentry, struct inode *inode,
18829 const char *name, void *buffer, size_t size) { return 0; }
18830 static const struct xattr_handler
18831 xops __attribute__ ((unused)) = {
18832 .get = get,
18833 };
ea04106b
AX
18834
18835int
18836main (void)
18837{
18838
ea04106b
AX
18839
18840 ;
18841 return 0;
18842}
18843
18844_ACEOF
18845
18846
18847
18848cat - <<_ACEOF >conftest.h
18849
18850_ACEOF
18851
18852
18853 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18854 echo "obj-m := conftest.o" >build/Makefile
18855 modpost_flag=''
18856 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18857 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
cae5b340
AX
18861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
cae5b340
AX
18866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
ea04106b 18868
cae5b340 18869 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 18870$as_echo "yes" >&6; }
ea04106b 18871
cae5b340
AX
18872cat >>confdefs.h <<\_ACEOF
18873#define HAVE_XATTR_GET_DENTRY_INODE 1
18874_ACEOF
ea04106b
AX
18875
18876
e10b0808
AX
18877else
18878 $as_echo "$as_me: failed program was:" >&5
18879sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18880
cae5b340 18881 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18882$as_echo "no" >&6; }
cae5b340
AX
18883 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
18884$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
ea04106b
AX
18885
18886
e10b0808 18887cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
ea04106b
AX
18893
18894
cae5b340
AX
18895 #include <linux/xattr.h>
18896
18897 int get(const struct xattr_handler *handler,
18898 struct dentry *dentry, const char *name,
18899 void *buffer, size_t size) { return 0; }
18900 static const struct xattr_handler
18901 xops __attribute__ ((unused)) = {
18902 .get = get,
18903 };
ea04106b
AX
18904
18905int
18906main (void)
18907{
18908
ea04106b
AX
18909
18910 ;
18911 return 0;
18912}
18913
18914_ACEOF
18915
18916
18917
18918cat - <<_ACEOF >conftest.h
18919
18920_ACEOF
18921
18922
18923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18924 echo "obj-m := conftest.o" >build/Makefile
18925 modpost_flag=''
18926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
cae5b340
AX
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
cae5b340
AX
18936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
ea04106b 18938
cae5b340 18939 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18940$as_echo "yes" >&6; }
18941
cae5b340
AX
18942cat >>confdefs.h <<\_ACEOF
18943#define HAVE_XATTR_GET_HANDLER 1
18944_ACEOF
ea04106b
AX
18945
18946
18947else
18948 $as_echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
cae5b340
AX
18951 { $as_echo "$as_me:$LINENO: result: no" >&5
18952$as_echo "no" >&6; }
18953 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18954$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
68d83c55
AX
18955
18956
18957cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18958/* confdefs.h. */
18959_ACEOF
18960cat confdefs.h >>conftest.$ac_ext
18961cat >>conftest.$ac_ext <<_ACEOF
18962/* end confdefs.h. */
e10b0808 18963
68d83c55 18964
cae5b340
AX
18965 #include <linux/xattr.h>
18966
18967 int get(struct dentry *dentry, const char *name,
18968 void *buffer, size_t size, int handler_flags)
18969 { return 0; }
18970 static const struct xattr_handler
18971 xops __attribute__ ((unused)) = {
18972 .get = get,
18973 };
ea04106b
AX
18974
18975int
18976main (void)
18977{
18978
ea04106b
AX
18979
18980 ;
18981 return 0;
18982}
18983
18984_ACEOF
18985
18986
18987
18988cat - <<_ACEOF >conftest.h
18989
18990_ACEOF
18991
18992
18993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18994 echo "obj-m := conftest.o" >build/Makefile
18995 modpost_flag=''
18996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 18997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
cae5b340
AX
19001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
cae5b340
AX
19006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
ea04106b 19008
cae5b340 19009 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19010$as_echo "yes" >&6; }
19011
cae5b340
AX
19012cat >>confdefs.h <<\_ACEOF
19013#define HAVE_XATTR_GET_DENTRY 1
19014_ACEOF
ea04106b
AX
19015
19016
19017else
19018 $as_echo "$as_me: failed program was:" >&5
19019sed 's/^/| /' conftest.$ac_ext >&5
19020
cae5b340 19021 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19022$as_echo "no" >&6; }
cae5b340
AX
19023 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
19024$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
ea04106b
AX
19025
19026
19027cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
ea04106b
AX
19033
19034
cae5b340
AX
19035 #include <linux/xattr.h>
19036
19037 int get(struct inode *ip, const char *name,
19038 void *buffer, size_t size) { return 0; }
19039 static const struct xattr_handler
19040 xops __attribute__ ((unused)) = {
19041 .get = get,
19042 };
ea04106b
AX
19043
19044int
19045main (void)
19046{
19047
ea04106b
AX
19048
19049 ;
19050 return 0;
19051}
19052
19053_ACEOF
19054
19055
19056
19057cat - <<_ACEOF >conftest.h
19058
19059_ACEOF
19060
19061
19062 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19063 echo "obj-m := conftest.o" >build/Makefile
19064 modpost_flag=''
19065 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19066 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
cae5b340
AX
19070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
cae5b340
AX
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
ea04106b 19077
cae5b340 19078 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19079$as_echo "yes" >&6; }
19080
cae5b340
AX
19081cat >>confdefs.h <<\_ACEOF
19082#define HAVE_XATTR_GET_INODE 1
19083_ACEOF
ea04106b
AX
19084
19085
19086else
19087 $as_echo "$as_me: failed program was:" >&5
19088sed 's/^/| /' conftest.$ac_ext >&5
19089
cae5b340
AX
19090 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19091$as_echo "$as_me: error: no; please file a bug report" >&2;}
19092 { (exit 1); exit 1; }; }
ea04106b
AX
19093
19094
19095
19096fi
ea04106b 19097
cae5b340 19098 rm -Rf build
ea04106b 19099
ea04106b 19100
ea04106b 19101
ea04106b
AX
19102
19103
cae5b340 19104fi
ea04106b 19105
cae5b340 19106 rm -Rf build
ea04106b 19107
ea04106b
AX
19108
19109
ea04106b 19110
68d83c55 19111
cae5b340 19112fi
68d83c55 19113
cae5b340 19114 rm -Rf build
ea04106b 19115
e10b0808
AX
19116
19117
68d83c55
AX
19118
19119
19120fi
cae5b340 19121
68d83c55
AX
19122 rm -Rf build
19123
19124
19125
19126
cae5b340
AX
19127 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
19128$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
68d83c55
AX
19129
19130
19131cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
68d83c55
AX
19137
19138
cae5b340 19139 #include <linux/xattr.h>
68d83c55 19140
cae5b340
AX
19141 int set(const struct xattr_handler *handler,
19142 struct dentry *dentry, struct inode *inode,
19143 const char *name, const void *buffer,
19144 size_t size, int flags)
19145 { return 0; }
19146 static const struct xattr_handler
19147 xops __attribute__ ((unused)) = {
19148 .set = set,
19149 };
68d83c55
AX
19150
19151int
19152main (void)
19153{
19154
68d83c55
AX
19155
19156 ;
19157 return 0;
19158}
19159
19160_ACEOF
19161
19162
19163
19164cat - <<_ACEOF >conftest.h
19165
19166_ACEOF
19167
19168
19169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19170 echo "obj-m := conftest.o" >build/Makefile
19171 modpost_flag=''
19172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19173 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
cae5b340
AX
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
cae5b340
AX
19182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
68d83c55 19184
cae5b340 19185 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
19186$as_echo "yes" >&6; }
19187
cae5b340
AX
19188cat >>confdefs.h <<\_ACEOF
19189#define HAVE_XATTR_SET_DENTRY_INODE 1
19190_ACEOF
ea04106b
AX
19191
19192
19193else
19194 $as_echo "$as_me: failed program was:" >&5
19195sed 's/^/| /' conftest.$ac_ext >&5
19196
cae5b340 19197 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19198$as_echo "no" >&6; }
cae5b340
AX
19199 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
19200$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
ea04106b
AX
19201
19202
19203cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
ea04106b
AX
19209
19210
cae5b340
AX
19211 #include <linux/xattr.h>
19212
19213 int set(const struct xattr_handler *handler,
19214 struct dentry *dentry, const char *name,
19215 const void *buffer, size_t size, int flags)
19216 { return 0; }
19217 static const struct xattr_handler
19218 xops __attribute__ ((unused)) = {
19219 .set = set,
19220 };
ea04106b
AX
19221
19222int
19223main (void)
19224{
19225
19226
19227 ;
19228 return 0;
19229}
19230
19231_ACEOF
19232
19233
19234
19235cat - <<_ACEOF >conftest.h
19236
19237_ACEOF
19238
19239
19240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19241 echo "obj-m := conftest.o" >build/Makefile
19242 modpost_flag=''
19243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19244 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
cae5b340
AX
19248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
cae5b340
AX
19253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
ea04106b 19255
cae5b340 19256 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19257$as_echo "yes" >&6; }
19258
cae5b340
AX
19259cat >>confdefs.h <<\_ACEOF
19260#define HAVE_XATTR_SET_HANDLER 1
19261_ACEOF
ea04106b
AX
19262
19263
19264else
19265 $as_echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
cae5b340 19268 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19269$as_echo "no" >&6; }
cae5b340
AX
19270 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19271$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
ea04106b
AX
19272
19273
19274cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
ea04106b
AX
19280
19281
cae5b340
AX
19282 #include <linux/xattr.h>
19283
19284 int set(struct dentry *dentry, const char *name,
19285 const void *buffer, size_t size, int flags,
19286 int handler_flags) { return 0; }
19287 static const struct xattr_handler
19288 xops __attribute__ ((unused)) = {
19289 .set = set,
19290 };
ea04106b
AX
19291
19292int
19293main (void)
19294{
19295
19296
19297 ;
19298 return 0;
19299}
19300
19301_ACEOF
19302
19303
19304
19305cat - <<_ACEOF >conftest.h
19306
19307_ACEOF
19308
19309
19310 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19311 echo "obj-m := conftest.o" >build/Makefile
19312 modpost_flag=''
19313 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19314 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
cae5b340
AX
19318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
cae5b340
AX
19323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
ea04106b 19325
cae5b340 19326 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19327$as_echo "yes" >&6; }
19328
cae5b340
AX
19329cat >>confdefs.h <<\_ACEOF
19330#define HAVE_XATTR_SET_DENTRY 1
19331_ACEOF
ea04106b
AX
19332
19333
19334else
19335 $as_echo "$as_me: failed program was:" >&5
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
cae5b340 19338 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19339$as_echo "no" >&6; }
cae5b340
AX
19340 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
19341$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
ea04106b
AX
19342
19343
19344cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
ea04106b
AX
19350
19351
cae5b340
AX
19352 #include <linux/xattr.h>
19353
19354 int set(struct inode *ip, const char *name,
19355 const void *buffer, size_t size, int flags)
19356 { return 0; }
19357 static const struct xattr_handler
19358 xops __attribute__ ((unused)) = {
19359 .set = set,
19360 };
ea04106b
AX
19361
19362int
19363main (void)
19364{
19365
19366
19367 ;
19368 return 0;
19369}
19370
19371_ACEOF
19372
19373
19374
19375cat - <<_ACEOF >conftest.h
19376
19377_ACEOF
19378
19379
19380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19381 echo "obj-m := conftest.o" >build/Makefile
19382 modpost_flag=''
19383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19384 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
cae5b340
AX
19388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
cae5b340
AX
19393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
ea04106b 19395
cae5b340 19396 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19397$as_echo "yes" >&6; }
19398
cae5b340
AX
19399cat >>confdefs.h <<\_ACEOF
19400#define HAVE_XATTR_SET_INODE 1
19401_ACEOF
ea04106b
AX
19402
19403
19404else
19405 $as_echo "$as_me: failed program was:" >&5
19406sed 's/^/| /' conftest.$ac_ext >&5
19407
cae5b340
AX
19408 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19409$as_echo "$as_me: error: no; please file a bug report" >&2;}
19410 { (exit 1); exit 1; }; }
ea04106b
AX
19411
19412
19413
19414fi
cae5b340 19415
ea04106b
AX
19416 rm -Rf build
19417
19418
19419
19420
cae5b340
AX
19421
19422fi
19423
19424 rm -Rf build
19425
19426
19427
19428
19429
19430fi
19431
19432 rm -Rf build
19433
19434
19435
19436
19437
19438fi
19439
19440 rm -Rf build
19441
19442
19443
19444
19445 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
19446$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
ea04106b
AX
19447
19448
19449cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19450/* confdefs.h. */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h. */
ea04106b
AX
19455
19456
cae5b340
AX
19457 #include <linux/xattr.h>
19458
19459 bool list(struct dentry *dentry) { return 0; }
19460 static const struct xattr_handler
19461 xops __attribute__ ((unused)) = {
19462 .list = list,
19463 };
ea04106b
AX
19464
19465int
19466main (void)
19467{
19468
19469
19470 ;
19471 return 0;
19472}
19473
19474_ACEOF
19475
19476
19477
19478cat - <<_ACEOF >conftest.h
19479
19480_ACEOF
19481
19482
19483 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19484 echo "obj-m := conftest.o" >build/Makefile
19485 modpost_flag=''
19486 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19487 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
cae5b340
AX
19491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
cae5b340
AX
19496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
ea04106b 19498
cae5b340 19499 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19500$as_echo "yes" >&6; }
19501
cae5b340
AX
19502cat >>confdefs.h <<\_ACEOF
19503#define HAVE_XATTR_LIST_SIMPLE 1
19504_ACEOF
ea04106b
AX
19505
19506
19507else
19508 $as_echo "$as_me: failed program was:" >&5
19509sed 's/^/| /' conftest.$ac_ext >&5
19510
cae5b340 19511 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19512$as_echo "no" >&6; }
cae5b340
AX
19513 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
19514$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
ea04106b
AX
19515
19516
19517cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
ea04106b
AX
19523
19524
cae5b340 19525 #include <linux/xattr.h>
e10b0808 19526
cae5b340
AX
19527 size_t list(const struct xattr_handler *handler,
19528 struct dentry *dentry, char *list, size_t list_size,
19529 const char *name, size_t name_len) { return 0; }
19530 static const struct xattr_handler
19531 xops __attribute__ ((unused)) = {
19532 .list = list,
19533 };
e10b0808 19534
ea04106b
AX
19535int
19536main (void)
19537{
19538
ea04106b
AX
19539
19540 ;
19541 return 0;
19542}
19543
19544_ACEOF
19545
19546
19547
19548cat - <<_ACEOF >conftest.h
19549
19550_ACEOF
19551
19552
19553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19554 echo "obj-m := conftest.o" >build/Makefile
19555 modpost_flag=''
19556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
cae5b340
AX
19561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
cae5b340
AX
19566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
ea04106b 19568
cae5b340 19569 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 19570$as_echo "yes" >&6; }
ea04106b 19571
cae5b340
AX
19572cat >>confdefs.h <<\_ACEOF
19573#define HAVE_XATTR_LIST_HANDLER 1
19574_ACEOF
ea04106b
AX
19575
19576
19577else
19578 $as_echo "$as_me: failed program was:" >&5
19579sed 's/^/| /' conftest.$ac_ext >&5
19580
cae5b340 19581 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 19582$as_echo "no" >&6; }
cae5b340
AX
19583 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
19584$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
ea04106b
AX
19585
19586
19587cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h. */
ea04106b
AX
19593
19594
cae5b340 19595 #include <linux/xattr.h>
e10b0808 19596
cae5b340
AX
19597 size_t list(struct dentry *dentry,
19598 char *list, size_t list_size,
19599 const char *name, size_t name_len,
19600 int handler_flags) { return 0; }
19601 static const struct xattr_handler
19602 xops __attribute__ ((unused)) = {
19603 .list = list,
19604 };
ea04106b
AX
19605
19606int
19607main (void)
19608{
19609
ea04106b
AX
19610
19611 ;
19612 return 0;
19613}
19614
19615_ACEOF
19616
19617
19618
19619cat - <<_ACEOF >conftest.h
19620
19621_ACEOF
19622
19623
19624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19625 echo "obj-m := conftest.o" >build/Makefile
19626 modpost_flag=''
19627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
cae5b340
AX
19632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
cae5b340
AX
19637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
ea04106b 19639
cae5b340 19640 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
19641$as_echo "yes" >&6; }
19642
cae5b340
AX
19643cat >>confdefs.h <<\_ACEOF
19644#define HAVE_XATTR_LIST_DENTRY 1
19645_ACEOF
ea04106b
AX
19646
19647
19648else
19649 $as_echo "$as_me: failed program was:" >&5
19650sed 's/^/| /' conftest.$ac_ext >&5
19651
cae5b340 19652 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 19653$as_echo "no" >&6; }
cae5b340
AX
19654 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
19655$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
ea04106b
AX
19656
19657
19658cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
ea04106b
AX
19664
19665
cae5b340 19666 #include <linux/xattr.h>
e10b0808 19667
cae5b340
AX
19668 size_t list(struct inode *ip, char *lst,
19669 size_t list_size, const char *name,
19670 size_t name_len) { return 0; }
19671 static const struct xattr_handler
19672 xops __attribute__ ((unused)) = {
19673 .list = list,
19674 };
ea04106b
AX
19675
19676int
19677main (void)
19678{
19679
ea04106b
AX
19680
19681 ;
19682 return 0;
19683}
19684
19685_ACEOF
19686
19687
19688
19689cat - <<_ACEOF >conftest.h
19690
19691_ACEOF
19692
19693
19694 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19695 echo "obj-m := conftest.o" >build/Makefile
19696 modpost_flag=''
19697 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19698 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
cae5b340
AX
19702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
cae5b340
AX
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
ea04106b 19709
cae5b340 19710 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 19711$as_echo "yes" >&6; }
ea04106b 19712
cae5b340
AX
19713cat >>confdefs.h <<\_ACEOF
19714#define HAVE_XATTR_LIST_INODE 1
19715_ACEOF
ea04106b
AX
19716
19717
19718else
19719 $as_echo "$as_me: failed program was:" >&5
19720sed 's/^/| /' conftest.$ac_ext >&5
19721
cae5b340
AX
19722 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19723$as_echo "$as_me: error: no; please file a bug report" >&2;}
19724 { (exit 1); exit 1; }; }
ea04106b
AX
19725
19726
19727
19728fi
cae5b340 19729
ea04106b
AX
19730 rm -Rf build
19731
19732
19733
19734
ea04106b 19735
cae5b340 19736fi
ea04106b 19737
cae5b340 19738 rm -Rf build
ea04106b
AX
19739
19740
68d83c55 19741
68d83c55 19742
ea04106b 19743
cae5b340 19744fi
ea04106b 19745
cae5b340
AX
19746 rm -Rf build
19747
19748
19749
19750
19751
19752fi
19753
19754 rm -Rf build
19755
19756
19757
19758
19759 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
19760$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
19761
19762
19763cat confdefs.h - <<_ACEOF >conftest.c
19764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769
19770
19771 #include <linux/fs.h>
19772
19773int
19774main (void)
19775{
19776
19777 struct inode *ip = NULL;
19778 (void) inode_owner_or_capable(ip);
ea04106b
AX
19779
19780 ;
19781 return 0;
19782}
19783
19784_ACEOF
19785
19786
19787
19788cat - <<_ACEOF >conftest.h
19789
19790_ACEOF
19791
19792
19793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19794 echo "obj-m := conftest.o" >build/Makefile
19795 modpost_flag=''
19796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
cae5b340
AX
19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
cae5b340
AX
19806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
ea04106b 19808
cae5b340 19809 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19810$as_echo "yes" >&6; }
19811
cae5b340
AX
19812cat >>confdefs.h <<\_ACEOF
19813#define HAVE_INODE_OWNER_OR_CAPABLE 1
19814_ACEOF
ea04106b
AX
19815
19816
19817else
19818 $as_echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
cae5b340 19821 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19822$as_echo "no" >&6; }
cae5b340
AX
19823 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
19824$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
ea04106b
AX
19825
19826
19827cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19828/* confdefs.h. */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h. */
ea04106b
AX
19833
19834
cae5b340
AX
19835 #include <linux/fs.h>
19836 #include <linux/sched.h>
ea04106b
AX
19837
19838int
19839main (void)
19840{
19841
cae5b340
AX
19842 struct inode *ip = NULL;
19843 (void) is_owner_or_cap(ip);
ea04106b
AX
19844
19845 ;
19846 return 0;
19847}
19848
19849_ACEOF
19850
19851
19852
19853cat - <<_ACEOF >conftest.h
19854
19855_ACEOF
19856
19857
19858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19859 echo "obj-m := conftest.o" >build/Makefile
19860 modpost_flag=''
19861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19862 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
cae5b340
AX
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
cae5b340
AX
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
ea04106b 19873
cae5b340 19874 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
19875$as_echo "yes" >&6; }
19876
cae5b340
AX
19877cat >>confdefs.h <<\_ACEOF
19878#define HAVE_IS_OWNER_OR_CAP 1
19879_ACEOF
e10b0808 19880
ea04106b
AX
19881
19882else
19883 $as_echo "$as_me: failed program was:" >&5
19884sed 's/^/| /' conftest.$ac_ext >&5
19885
cae5b340
AX
19886 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
19887 https://github.com/zfsonlinux/zfs/issues/new" >&5
19888$as_echo "$as_me: error: no - Please file a bug report at
19889 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
19890 { (exit 1); exit 1; }; }
ea04106b
AX
19891
19892
19893
19894fi
cae5b340 19895
ea04106b
AX
19896 rm -Rf build
19897
19898
19899
19900
ea04106b 19901
cae5b340 19902fi
ea04106b 19903
cae5b340 19904 rm -Rf build
ea04106b
AX
19905
19906
e10b0808 19907
e10b0808 19908
cae5b340
AX
19909 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
19910$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
19911
19912
19913cat confdefs.h - <<_ACEOF >conftest.c
19914/* confdefs.h. */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h. */
19919
19920
19921 #include <linux/cred.h>
19922 #include <linux/fs.h>
19923 #include <linux/posix_acl_xattr.h>
ea04106b
AX
19924
19925int
19926main (void)
19927{
19928
cae5b340 19929 posix_acl_from_xattr(&init_user_ns, NULL, 0);
ea04106b
AX
19930
19931 ;
19932 return 0;
19933}
19934
19935_ACEOF
19936
19937
19938
19939cat - <<_ACEOF >conftest.h
19940
19941_ACEOF
19942
19943
19944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19945 echo "obj-m := conftest.o" >build/Makefile
19946 modpost_flag=''
19947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 19948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
cae5b340
AX
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
cae5b340
AX
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
ea04106b 19959
cae5b340 19960 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19961$as_echo "yes" >&6; }
19962
cae5b340
AX
19963cat >>confdefs.h <<\_ACEOF
19964#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19965_ACEOF
ea04106b
AX
19966
19967
19968else
19969 $as_echo "$as_me: failed program was:" >&5
19970sed 's/^/| /' conftest.$ac_ext >&5
19971
cae5b340 19972 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
19973$as_echo "no" >&6; }
19974
19975
19976
19977fi
ea04106b 19978
cae5b340 19979 rm -Rf build
ea04106b
AX
19980
19981
e10b0808 19982
22929307 19983
cae5b340
AX
19984 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
19985$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
ea04106b
AX
19986
19987
19988cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
ea04106b
AX
19994
19995
cae5b340 19996 #include <linux/cred.h>
ea04106b 19997 #include <linux/fs.h>
cae5b340 19998 #include <linux/posix_acl.h>
e10b0808 19999
cae5b340
AX
20000int
20001main (void)
20002{
22929307 20003
cae5b340
AX
20004 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20005 posix_acl_release(tmp);
20006
20007 ;
20008 return 0;
20009}
20010
20011_ACEOF
20012
20013
20014
20015cat - <<_ACEOF >conftest.h
20016
20017_ACEOF
20018
20019
20020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20021 echo "obj-m := conftest.o" >build/Makefile
20022 modpost_flag=''
20023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035
20036 { $as_echo "$as_me:$LINENO: result: yes" >&5
20037$as_echo "yes" >&6; }
20038
20039cat >>confdefs.h <<\_ACEOF
20040#define HAVE_POSIX_ACL_RELEASE 1
20041_ACEOF
20042
20043
20044 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
20045$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
20046
20047
20048cat confdefs.h - <<_ACEOF >conftest.c
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
20054
20055
20056 #include <linux/module.h>
20057 #include <linux/cred.h>
20058 #include <linux/fs.h>
20059 #include <linux/posix_acl.h>
20060
20061 MODULE_LICENSE("$ZFS_META_LICENSE");
22929307 20062
ea04106b
AX
20063int
20064main (void)
20065{
20066
cae5b340
AX
20067 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20068 posix_acl_release(tmp);
ea04106b
AX
20069
20070 ;
20071 return 0;
20072}
20073
20074_ACEOF
20075
20076
20077
20078cat - <<_ACEOF >conftest.h
20079
20080_ACEOF
20081
20082
20083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20084 echo "obj-m := conftest.o" >build/Makefile
20085 modpost_flag=''
20086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20087 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
cae5b340
AX
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
cae5b340
AX
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098
20099 { $as_echo "$as_me:$LINENO: result: no" >&5
20100$as_echo "no" >&6; }
20101
20102else
20103 $as_echo "$as_me: failed program was:" >&5
20104sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20105
cae5b340 20106 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20107$as_echo "yes" >&6; }
20108
cae5b340
AX
20109cat >>confdefs.h <<\_ACEOF
20110#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
20111_ACEOF
20112
20113
20114
20115
20116fi
20117
20118 rm -Rf build
20119
ea04106b
AX
20120
20121
20122else
20123 $as_echo "$as_me: failed program was:" >&5
20124sed 's/^/| /' conftest.$ac_ext >&5
20125
cae5b340 20126 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
20127$as_echo "no" >&6; }
20128
20129
20130
20131fi
cae5b340 20132
ea04106b
AX
20133 rm -Rf build
20134
20135
20136
20137
cae5b340
AX
20138 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
20139$as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
ea04106b
AX
20140
20141
20142cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h. */
ea04106b
AX
20148
20149
cae5b340
AX
20150 #include <linux/module.h>
20151 #include <linux/cred.h>
ea04106b 20152 #include <linux/fs.h>
cae5b340 20153 #include <linux/posix_acl.h>
ea04106b 20154
cae5b340 20155 MODULE_LICENSE("$ZFS_META_LICENSE");
e10b0808 20156
ea04106b
AX
20157int
20158main (void)
20159{
20160
cae5b340
AX
20161 struct inode *ip = NULL;
20162 struct posix_acl *acl = posix_acl_alloc(1, 0);
20163 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
20164 forget_cached_acl(ip, ACL_TYPE_ACCESS);
ea04106b
AX
20165
20166 ;
20167 return 0;
20168}
20169
20170_ACEOF
20171
20172
20173
20174cat - <<_ACEOF >conftest.h
20175
20176_ACEOF
20177
20178
20179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20180 echo "obj-m := conftest.o" >build/Makefile
20181 modpost_flag=''
20182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20183 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
cae5b340
AX
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
cae5b340
AX
20192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
ea04106b 20194
cae5b340 20195 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20196$as_echo "yes" >&6; }
20197
cae5b340
AX
20198cat >>confdefs.h <<\_ACEOF
20199#define HAVE_SET_CACHED_ACL_USABLE 1
20200_ACEOF
ea04106b
AX
20201
20202
20203else
20204 $as_echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
cae5b340 20207 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
20208$as_echo "no" >&6; }
20209
20210
20211
20212fi
ea04106b 20213
cae5b340 20214 rm -Rf build
ea04106b
AX
20215
20216
20217
22929307 20218
cae5b340
AX
20219 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
20220$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
ea04106b
AX
20221
20222
20223cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
ea04106b
AX
20229
20230
20231 #include <linux/fs.h>
cae5b340 20232 #include <linux/posix_acl.h>
e10b0808 20233
ea04106b
AX
20234int
20235main (void)
20236{
20237
cae5b340 20238 posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
20239
20240 ;
20241 return 0;
20242}
20243
20244_ACEOF
20245
20246
20247
20248cat - <<_ACEOF >conftest.h
20249
20250_ACEOF
20251
20252
20253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20254 echo "obj-m := conftest.o" >build/Makefile
20255 modpost_flag=''
20256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
cae5b340
AX
20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
cae5b340
AX
20266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
ea04106b 20268
cae5b340 20269 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20270$as_echo "yes" >&6; }
20271
cae5b340
AX
20272cat >>confdefs.h <<\_ACEOF
20273#define HAVE_POSIX_ACL_CHMOD 1
20274_ACEOF
ea04106b
AX
20275
20276
20277else
20278 $as_echo "$as_me: failed program was:" >&5
20279sed 's/^/| /' conftest.$ac_ext >&5
20280
cae5b340 20281 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
20282$as_echo "no" >&6; }
20283
20284
20285
20286fi
ea04106b 20287
cae5b340 20288 rm -Rf build
ea04106b
AX
20289
20290
ea04106b 20291
cae5b340
AX
20292 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
20293$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
ea04106b
AX
20294
20295
20296cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20297/* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
ea04106b
AX
20302
20303
20304 #include <linux/fs.h>
cae5b340 20305 #include <linux/posix_acl.h>
ea04106b
AX
20306
20307int
20308main (void)
20309{
20310
cae5b340 20311 __posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
20312
20313 ;
20314 return 0;
20315}
20316
20317_ACEOF
20318
20319
20320
20321cat - <<_ACEOF >conftest.h
20322
20323_ACEOF
20324
20325
20326 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20327 echo "obj-m := conftest.o" >build/Makefile
20328 modpost_flag=''
20329 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20330 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
cae5b340
AX
20334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
cae5b340
AX
20339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
ea04106b 20341
cae5b340 20342 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20343$as_echo "yes" >&6; }
20344
cae5b340
AX
20345cat >>confdefs.h <<\_ACEOF
20346#define HAVE___POSIX_ACL_CHMOD 1
20347_ACEOF
ea04106b
AX
20348
20349
20350else
20351 $as_echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
cae5b340 20354 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 20355$as_echo "no" >&6; }
68d83c55
AX
20356
20357
20358
20359fi
cae5b340 20360
68d83c55
AX
20361 rm -Rf build
20362
20363
20364
20365
cae5b340
AX
20366 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
20367$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
ea04106b
AX
20368
20369
20370cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20371/* confdefs.h. */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h. */
ea04106b
AX
20376
20377
4d815aed 20378 #include <linux/fs.h>
cae5b340 20379 #include <linux/posix_acl.h>
68d83c55 20380
ea04106b
AX
20381int
20382main (void)
20383{
20384
cae5b340
AX
20385 umode_t tmp;
20386 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
20387
20388 ;
20389 return 0;
20390}
20391
20392_ACEOF
20393
20394
20395
20396cat - <<_ACEOF >conftest.h
20397
20398_ACEOF
20399
20400
20401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20402 echo "obj-m := conftest.o" >build/Makefile
20403 modpost_flag=''
20404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
cae5b340
AX
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
cae5b340
AX
20414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
ea04106b 20416
cae5b340 20417 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20418$as_echo "yes" >&6; }
20419
cae5b340
AX
20420cat >>confdefs.h <<\_ACEOF
20421#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
20422_ACEOF
ea04106b
AX
20423
20424
20425else
20426 $as_echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
cae5b340 20429 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20430$as_echo "no" >&6; }
4d815aed
AX
20431
20432
20433
20434fi
4d815aed 20435
cae5b340 20436 rm -Rf build
4d815aed
AX
20437
20438
20439
22929307 20440
cae5b340
AX
20441 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
20442$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
4d815aed 20443
4d815aed 20444
68d83c55 20445cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
4d815aed
AX
20451
20452
68d83c55 20453 #include <linux/fs.h>
cae5b340 20454 #include <linux/posix_acl.h>
68d83c55
AX
20455
20456int
20457main (void)
20458{
20459
cae5b340
AX
20460 struct user_namespace *user_ns = NULL;
20461 const struct posix_acl *acl = NULL;
20462 int error;
20463
20464 error = posix_acl_valid(user_ns, acl);
68d83c55
AX
20465
20466 ;
20467 return 0;
20468}
20469
20470_ACEOF
20471
20472
20473
20474cat - <<_ACEOF >conftest.h
20475
20476_ACEOF
4d815aed 20477
4d815aed 20478
68d83c55
AX
20479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20480 echo "obj-m := conftest.o" >build/Makefile
20481 modpost_flag=''
20482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
cae5b340
AX
20487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
cae5b340
AX
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
68d83c55 20494
cae5b340
AX
20495 { $as_echo "$as_me:$LINENO: result: yes" >&5
20496$as_echo "yes" >&6; }
68d83c55 20497
cae5b340
AX
20498cat >>confdefs.h <<\_ACEOF
20499#define HAVE_POSIX_ACL_VALID_WITH_NS 1
20500_ACEOF
4d815aed 20501
ea04106b 20502
68d83c55
AX
20503else
20504 $as_echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
cae5b340
AX
20507 { $as_echo "$as_me:$LINENO: result: no" >&5
20508$as_echo "no" >&6; }
68d83c55 20509
ea04106b
AX
20510
20511
20512fi
cae5b340 20513
ea04106b
AX
20514 rm -Rf build
20515
20516
20517
20518
cae5b340
AX
20519 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
20520$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
20521
20522
20523cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
ea04106b
AX
20529
20530
68d83c55
AX
20531 #include <linux/fs.h>
20532
cae5b340 20533 int permission_fn(struct inode *inode, int mask) { return 0; }
68d83c55 20534
cae5b340
AX
20535 static const struct inode_operations
20536 iops __attribute__ ((unused)) = {
20537 .permission = permission_fn,
68d83c55 20538 };
ea04106b
AX
20539
20540int
20541main (void)
20542{
20543
ea04106b
AX
20544
20545 ;
20546 return 0;
20547}
20548
20549_ACEOF
20550
20551
20552
20553cat - <<_ACEOF >conftest.h
20554
20555_ACEOF
20556
20557
20558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20559 echo "obj-m := conftest.o" >build/Makefile
20560 modpost_flag=''
20561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
cae5b340
AX
20566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
cae5b340
AX
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
ea04106b 20573
cae5b340
AX
20574 { $as_echo "$as_me:$LINENO: result: yes" >&5
20575$as_echo "yes" >&6; }
ea04106b 20576
cae5b340
AX
20577cat >>confdefs.h <<\_ACEOF
20578#define HAVE_PERMISSION 1
20579_ACEOF
ea04106b
AX
20580
20581
20582else
20583 $as_echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
cae5b340
AX
20586 { $as_echo "$as_me:$LINENO: result: no" >&5
20587$as_echo "no" >&6; }
68d83c55
AX
20588
20589
20590
20591fi
cae5b340 20592
68d83c55
AX
20593 rm -Rf build
20594
20595
20596
20597
cae5b340
AX
20598 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
20599$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
68d83c55 20600
ea04106b
AX
20601
20602cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
ea04106b
AX
20608
20609
68d83c55 20610 #include <linux/fs.h>
42f7b73b 20611 #include <linux/sched.h>
68d83c55 20612
cae5b340
AX
20613 int permission_fn(struct inode *inode, int mask,
20614 struct nameidata *nd) { return 0; }
68d83c55 20615
cae5b340
AX
20616 static const struct inode_operations
20617 iops __attribute__ ((unused)) = {
20618 .permission = permission_fn,
22929307
AX
20619 };
20620
20621int
20622main (void)
20623{
20624
20625
20626 ;
20627 return 0;
20628}
20629
20630_ACEOF
20631
20632
20633
20634cat - <<_ACEOF >conftest.h
20635
20636_ACEOF
20637
20638
20639 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20640 echo "obj-m := conftest.o" >build/Makefile
20641 modpost_flag=''
20642 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20643 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
cae5b340
AX
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
cae5b340
AX
20652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654
20655 { $as_echo "$as_me:$LINENO: result: yes" >&5
20656$as_echo "yes" >&6; }
20657
20658cat >>confdefs.h <<\_ACEOF
20659#define HAVE_PERMISSION 1
20660_ACEOF
22929307 20661
22929307 20662
cae5b340
AX
20663cat >>confdefs.h <<\_ACEOF
20664#define HAVE_PERMISSION_WITH_NAMEIDATA 1
20665_ACEOF
22929307
AX
20666
20667
20668else
20669 $as_echo "$as_me: failed program was:" >&5
20670sed 's/^/| /' conftest.$ac_ext >&5
20671
cae5b340
AX
20672 { $as_echo "$as_me:$LINENO: result: no" >&5
20673$as_echo "no" >&6; }
22929307
AX
20674
20675
20676
20677fi
22929307 20678
cae5b340 20679 rm -Rf build
22929307
AX
20680
20681
20682
20683
cae5b340
AX
20684 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
20685$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
22929307
AX
20686
20687
20688cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
22929307
AX
20694
20695
20696 #include <linux/fs.h>
cae5b340
AX
20697
20698 int check_acl_fn(struct inode *inode, int mask) { return 0; }
20699
20700 static const struct inode_operations
20701 iops __attribute__ ((unused)) = {
20702 .check_acl = check_acl_fn,
68d83c55 20703 };
ea04106b
AX
20704
20705int
20706main (void)
20707{
20708
20709
20710 ;
20711 return 0;
20712}
20713
20714_ACEOF
20715
20716
20717
20718cat - <<_ACEOF >conftest.h
20719
20720_ACEOF
20721
20722
20723 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20724 echo "obj-m := conftest.o" >build/Makefile
20725 modpost_flag=''
20726 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20727 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
cae5b340
AX
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
cae5b340
AX
20736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
ea04106b 20738
cae5b340 20739 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20740$as_echo "yes" >&6; }
ea04106b 20741
cae5b340
AX
20742cat >>confdefs.h <<\_ACEOF
20743#define HAVE_CHECK_ACL 1
20744_ACEOF
ea04106b
AX
20745
20746
20747else
20748 $as_echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
cae5b340 20751 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 20752$as_echo "no" >&6; }
68d83c55
AX
20753
20754
20755
20756fi
cae5b340 20757
68d83c55
AX
20758 rm -Rf build
20759
20760
20761
20762
cae5b340
AX
20763 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
20764$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
ea04106b
AX
20765
20766
20767cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
ea04106b
AX
20773
20774
68d83c55
AX
20775 #include <linux/fs.h>
20776
cae5b340
AX
20777 int check_acl_fn(struct inode *inode, int mask,
20778 unsigned int flags) { return 0; }
68d83c55 20779
cae5b340
AX
20780 static const struct inode_operations
20781 iops __attribute__ ((unused)) = {
20782 .check_acl = check_acl_fn,
68d83c55 20783 };
ea04106b 20784
ea04106b
AX
20785int
20786main (void)
20787{
20788
20789
20790 ;
20791 return 0;
20792}
20793
20794_ACEOF
20795
20796
20797
20798cat - <<_ACEOF >conftest.h
20799
20800_ACEOF
20801
20802
20803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20804 echo "obj-m := conftest.o" >build/Makefile
20805 modpost_flag=''
20806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20807 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20809 (eval $ac_try) 2>&5
20810 ac_status=$?
cae5b340
AX
20811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
cae5b340
AX
20816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
4d815aed 20818
cae5b340 20819 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20820$as_echo "yes" >&6; }
20821
cae5b340
AX
20822cat >>confdefs.h <<\_ACEOF
20823#define HAVE_CHECK_ACL 1
20824_ACEOF
20825
20826
20827cat >>confdefs.h <<\_ACEOF
20828#define HAVE_CHECK_ACL_WITH_FLAGS 1
20829_ACEOF
4d815aed
AX
20830
20831
e10b0808
AX
20832else
20833 $as_echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20835
cae5b340 20836 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20837$as_echo "no" >&6; }
e10b0808 20838
e10b0808 20839
ea04106b 20840
4d815aed 20841fi
cae5b340 20842
4d815aed 20843 rm -Rf build
ea04106b
AX
20844
20845
20846
ea04106b 20847
cae5b340
AX
20848 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20849$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
ea04106b
AX
20850
20851
e10b0808 20852cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h. */
ea04106b 20858
ea04106b 20859
e10b0808 20860 #include <linux/fs.h>
68d83c55 20861
cae5b340
AX
20862 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20863 { return NULL; }
22929307 20864
cae5b340
AX
20865 static const struct inode_operations
20866 iops __attribute__ ((unused)) = {
20867 .get_acl = get_acl_fn,
4d815aed 20868 };
ea04106b
AX
20869
20870int
20871main (void)
20872{
20873
20874
20875 ;
20876 return 0;
20877}
20878
20879_ACEOF
20880
20881
20882
20883cat - <<_ACEOF >conftest.h
20884
20885_ACEOF
20886
20887
20888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20889 echo "obj-m := conftest.o" >build/Makefile
20890 modpost_flag=''
20891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
cae5b340
AX
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
cae5b340
AX
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
4d815aed 20903
cae5b340 20904 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20905$as_echo "yes" >&6; }
20906
cae5b340
AX
20907cat >>confdefs.h <<\_ACEOF
20908#define HAVE_GET_ACL 1
20909_ACEOF
4d815aed
AX
20910
20911
e10b0808
AX
20912else
20913 $as_echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20915
cae5b340 20916 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
20917$as_echo "no" >&6; }
20918
ea04106b 20919
ea04106b 20920
e10b0808 20921fi
cae5b340 20922
e10b0808 20923 rm -Rf build
ea04106b
AX
20924
20925
e10b0808 20926
e10b0808 20927
cae5b340
AX
20928 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20929$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
e10b0808 20930
ea04106b 20931
4d815aed 20932cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
ea04106b
AX
20938
20939
68d83c55
AX
20940 #include <linux/fs.h>
20941
cae5b340
AX
20942 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20943 { return 0; }
68d83c55 20944
cae5b340
AX
20945 static const struct inode_operations
20946 iops __attribute__ ((unused)) = {
20947 .set_acl = set_acl_fn,
4d815aed
AX
20948 };
20949
20950int
20951main (void)
20952{
20953
20954
20955 ;
20956 return 0;
20957}
20958
20959_ACEOF
20960
20961
20962
20963cat - <<_ACEOF >conftest.h
20964
20965_ACEOF
20966
20967
20968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20969 echo "obj-m := conftest.o" >build/Makefile
20970 modpost_flag=''
20971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 20972 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
cae5b340
AX
20976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
cae5b340
AX
20981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
ea04106b 20983
cae5b340 20984 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20985$as_echo "yes" >&6; }
ea04106b 20986
cae5b340
AX
20987cat >>confdefs.h <<\_ACEOF
20988#define HAVE_SET_ACL 1
20989_ACEOF
ea04106b
AX
20990
20991
4d815aed
AX
20992else
20993 $as_echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20995
cae5b340 20996 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 20997$as_echo "no" >&6; }
ea04106b 20998
e10b0808 20999
ea04106b 21000
4d815aed 21001fi
cae5b340 21002
4d815aed
AX
21003 rm -Rf build
21004
21005
21006
21007
22929307 21008
cae5b340
AX
21009 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
21010$as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
4d815aed 21011
ea04106b
AX
21012
21013cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21014/* confdefs.h. */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h. */
ea04106b
AX
21019
21020
68d83c55
AX
21021 #include <linux/fs.h>
21022
cae5b340
AX
21023 int test_getattr(
21024 const struct path *p, struct kstat *k,
21025 u32 request_mask, unsigned int query_flags)
21026 { return 0; }
68d83c55 21027
cae5b340
AX
21028 static const struct inode_operations
21029 iops __attribute__ ((unused)) = {
21030 .getattr = test_getattr,
4d815aed 21031 };
ea04106b
AX
21032
21033int
21034main (void)
21035{
21036
21037
21038 ;
21039 return 0;
21040}
21041
21042_ACEOF
21043
21044
21045
21046cat - <<_ACEOF >conftest.h
21047
21048_ACEOF
21049
21050
21051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21052 echo "obj-m := conftest.o" >build/Makefile
21053 modpost_flag=''
21054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
cae5b340
AX
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
cae5b340
AX
21064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
4d815aed 21066
cae5b340 21067 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
21068$as_echo "yes" >&6; }
21069
cae5b340
AX
21070cat >>confdefs.h <<\_ACEOF
21071#define HAVE_PATH_IOPS_GETATTR 1
21072_ACEOF
4d815aed
AX
21073
21074
ea04106b
AX
21075else
21076 $as_echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 21078
cae5b340 21079 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
21080$as_echo "no" >&6; }
21081
ea04106b
AX
21082
21083
21084fi
cae5b340 21085
ea04106b
AX
21086 rm -Rf build
21087
21088
21089
21090
cae5b340
AX
21091 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
21092$as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
ea04106b
AX
21093
21094
4d815aed 21095cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
ea04106b
AX
21101
21102
68d83c55
AX
21103 #include <linux/fs.h>
21104
cae5b340
AX
21105 int test_getattr(
21106 struct vfsmount *mnt, struct dentry *d,
21107 struct kstat *k)
21108 { return 0; }
68d83c55
AX
21109
21110 static const struct inode_operations
cae5b340
AX
21111 iops __attribute__ ((unused)) = {
21112 .getattr = test_getattr,
4d815aed
AX
21113 };
21114
21115int
21116main (void)
21117{
21118
21119
21120 ;
21121 return 0;
21122}
21123
21124_ACEOF
21125
21126
21127
21128cat - <<_ACEOF >conftest.h
21129
21130_ACEOF
21131
21132
21133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21134 echo "obj-m := conftest.o" >build/Makefile
21135 modpost_flag=''
21136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21137 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
cae5b340
AX
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
cae5b340
AX
21146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
ea04106b 21148
cae5b340 21149 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
21150$as_echo "yes" >&6; }
21151
cae5b340
AX
21152cat >>confdefs.h <<\_ACEOF
21153#define HAVE_VFSMOUNT_IOPS_GETATTR 1
21154_ACEOF
ea04106b 21155
ea04106b 21156
4d815aed
AX
21157else
21158 $as_echo "$as_me: failed program was:" >&5
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
cae5b340 21161 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 21162$as_echo "no" >&6; }
ea04106b
AX
21163
21164
4d815aed
AX
21165
21166fi
cae5b340 21167
4d815aed
AX
21168 rm -Rf build
21169
21170
21171
ea04106b 21172
22929307 21173
cae5b340
AX
21174 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
21175$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
ea04106b
AX
21176
21177
21178cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
ea04106b
AX
21184
21185
4d815aed 21186 #include <linux/fs.h>
22929307 21187
ea04106b
AX
21188int
21189main (void)
21190{
21191
cae5b340
AX
21192 struct inode inode;
21193 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
ea04106b
AX
21194
21195 ;
21196 return 0;
21197}
21198
21199_ACEOF
21200
21201
21202
21203cat - <<_ACEOF >conftest.h
21204
21205_ACEOF
21206
21207
21208 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21209 echo "obj-m := conftest.o" >build/Makefile
21210 modpost_flag=''
21211 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21212 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
cae5b340
AX
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
cae5b340
AX
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
ea04106b 21223
cae5b340 21224 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 21225$as_echo "yes" >&6; }
ea04106b 21226
cae5b340
AX
21227cat >>confdefs.h <<\_ACEOF
21228#define HAVE_INODE_SET_FLAGS 1
21229_ACEOF
ea04106b
AX
21230
21231
68d83c55
AX
21232else
21233 $as_echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21235
cae5b340 21236 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 21237$as_echo "no" >&6; }
22929307
AX
21238
21239
21240
21241fi
cae5b340 21242
22929307
AX
21243 rm -Rf build
21244
21245
21246
21247
42f7b73b
AX
21248 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
21249$as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
ea04106b 21250
ea04106b 21251
e10b0808 21252cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21253/* confdefs.h. */
21254_ACEOF
21255cat confdefs.h >>conftest.$ac_ext
21256cat >>conftest.$ac_ext <<_ACEOF
21257/* end confdefs.h. */
ea04106b 21258
e10b0808 21259
42f7b73b 21260 #include <linux/iversion.h>
22929307 21261
ea04106b
AX
21262int
21263main (void)
21264{
21265
42f7b73b
AX
21266 struct inode inode;
21267 inode_set_iversion(&inode, 1);
ea04106b
AX
21268
21269 ;
21270 return 0;
21271}
21272
21273_ACEOF
21274
21275
21276
21277cat - <<_ACEOF >conftest.h
21278
21279_ACEOF
21280
21281
21282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21283 echo "obj-m := conftest.o" >build/Makefile
21284 modpost_flag=''
21285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
cae5b340
AX
21290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
cae5b340
AX
21295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
ea04106b 21297
cae5b340 21298 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 21299$as_echo "yes" >&6; }
ea04106b 21300
cae5b340 21301cat >>confdefs.h <<\_ACEOF
42f7b73b 21302#define HAVE_INODE_SET_IVERSION 1
cae5b340 21303_ACEOF
ea04106b
AX
21304
21305
68d83c55
AX
21306else
21307 $as_echo "$as_me: failed program was:" >&5
21308sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21309
cae5b340 21310 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 21311$as_echo "no" >&6; }
ea04106b 21312
22929307
AX
21313
21314
21315fi
cae5b340 21316
22929307
AX
21317 rm -Rf build
21318
21319
21320
21321
42f7b73b
AX
21322 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
21323$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
21324
21325
e10b0808 21326cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21327/* confdefs.h. */
21328_ACEOF
21329cat confdefs.h >>conftest.$ac_ext
21330cat >>conftest.$ac_ext <<_ACEOF
21331/* end confdefs.h. */
ea04106b 21332
ea04106b 21333
68d83c55 21334 #include <linux/fs.h>
22929307 21335
ea04106b
AX
21336int
21337main (void)
21338{
21339
42f7b73b 21340 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
21341
21342 ;
21343 return 0;
21344}
21345
21346_ACEOF
21347
21348
21349
21350cat - <<_ACEOF >conftest.h
21351
21352_ACEOF
21353
21354
21355 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21356 echo "obj-m := conftest.o" >build/Makefile
21357 modpost_flag=''
21358 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21359 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
cae5b340
AX
21363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
cae5b340
AX
21368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
e10b0808 21370
cae5b340 21371 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
21372$as_echo "yes" >&6; }
21373
cae5b340 21374cat >>confdefs.h <<\_ACEOF
42f7b73b 21375#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
cae5b340 21376_ACEOF
e10b0808
AX
21377
21378
68d83c55
AX
21379else
21380 $as_echo "$as_me: failed program was:" >&5
21381sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 21382
cae5b340 21383 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 21384$as_echo "no" >&6; }
22929307
AX
21385
21386
21387
21388fi
cae5b340 21389
22929307
AX
21390 rm -Rf build
21391
21392
21393
21394
42f7b73b
AX
21395 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21396$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21397
e10b0808
AX
21398
21399
21400cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21401/* confdefs.h. */
21402_ACEOF
21403cat confdefs.h >>conftest.$ac_ext
21404cat >>conftest.$ac_ext <<_ACEOF
21405/* end confdefs.h. */
e10b0808
AX
21406
21407
68d83c55 21408 #include <linux/fs.h>
22929307 21409
42f7b73b
AX
21410 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21411 static struct super_operations sops __attribute__ ((unused)) = {
21412 .show_options = show_options,
21413 };
21414
ea04106b
AX
21415int
21416main (void)
21417{
21418
21419
21420 ;
21421 return 0;
21422}
21423
21424_ACEOF
21425
21426
21427
21428cat - <<_ACEOF >conftest.h
21429
21430_ACEOF
21431
21432
21433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21434 echo "obj-m := conftest.o" >build/Makefile
21435 modpost_flag=''
21436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
cae5b340
AX
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
cae5b340
AX
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
68d83c55 21448
cae5b340 21449 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
21450$as_echo "yes" >&6; }
21451
cae5b340 21452cat >>confdefs.h <<\_ACEOF
42f7b73b 21453#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
cae5b340 21454_ACEOF
68d83c55
AX
21455
21456
ea04106b
AX
21457else
21458 $as_echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 21460
cae5b340 21461 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 21462$as_echo "no" >&6; }
68d83c55
AX
21463
21464
21465
21466fi
cae5b340 21467
68d83c55 21468 rm -Rf build
ea04106b
AX
21469
21470
21471
21472
42f7b73b
AX
21473 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
21474$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
21475
21476
21477cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21478/* confdefs.h. */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h. */
ea04106b
AX
21483
21484
22929307 21485 #include <linux/fs.h>
ea04106b 21486
ea04106b
AX
21487int
21488main (void)
21489{
21490
cae5b340 21491 struct file *f = NULL;
42f7b73b 21492 file_inode(f);
ea04106b
AX
21493
21494 ;
21495 return 0;
21496}
21497
21498_ACEOF
21499
21500
21501
21502cat - <<_ACEOF >conftest.h
21503
21504_ACEOF
21505
21506
21507 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21508 echo "obj-m := conftest.o" >build/Makefile
21509 modpost_flag=''
21510 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21511 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
cae5b340
AX
21515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
cae5b340
AX
21520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; }; then
68d83c55 21522
cae5b340 21523 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 21524$as_echo "yes" >&6; }
68d83c55 21525
cae5b340 21526cat >>confdefs.h <<\_ACEOF
42f7b73b 21527#define HAVE_FILE_INODE 1
cae5b340 21528_ACEOF
68d83c55
AX
21529
21530
e10b0808
AX
21531else
21532 $as_echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21534
cae5b340 21535 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 21536$as_echo "no" >&6; }
cae5b340
AX
21537
21538
21539
21540fi
21541
21542 rm -Rf build
21543
21544
21545
21546
42f7b73b
AX
21547 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
21548$as_echo_n "checking whether file_dentry() is available... " >&6; }
ea04106b 21549
ea04106b 21550
68d83c55 21551cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
ea04106b 21557
ea04106b 21558
cae5b340
AX
21559 #include <linux/fs.h>
21560
68d83c55
AX
21561int
21562main (void)
21563{
e10b0808 21564
42f7b73b
AX
21565 struct file *f = NULL;
21566 file_dentry(f);
e10b0808 21567
68d83c55
AX
21568 ;
21569 return 0;
21570}
ea04106b 21571
68d83c55 21572_ACEOF
ea04106b 21573
ea04106b
AX
21574
21575
68d83c55 21576cat - <<_ACEOF >conftest.h
ea04106b 21577
68d83c55 21578_ACEOF
ea04106b 21579
ea04106b 21580
68d83c55
AX
21581 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21582 echo "obj-m := conftest.o" >build/Makefile
21583 modpost_flag=''
21584 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21585 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
cae5b340
AX
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
cae5b340
AX
21594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
ea04106b 21596
42f7b73b
AX
21597 { $as_echo "$as_me:$LINENO: result: yes" >&5
21598$as_echo "yes" >&6; }
68d83c55 21599
cae5b340 21600cat >>confdefs.h <<\_ACEOF
42f7b73b 21601#define HAVE_FILE_DENTRY 1
cae5b340 21602_ACEOF
68d83c55
AX
21603
21604
21605else
21606 $as_echo "$as_me: failed program was:" >&5
21607sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21608
42f7b73b
AX
21609 { $as_echo "$as_me:$LINENO: result: no" >&5
21610$as_echo "no" >&6; }
22929307 21611
cae5b340
AX
21612
21613
21614fi
21615
21616 rm -Rf build
21617
21618
21619
21620
42f7b73b
AX
21621 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21622$as_echo_n "checking whether fops->fsync() wants... " >&6; }
21623
ea04106b 21624
ea04106b 21625
e10b0808 21626cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21627/* confdefs.h. */
21628_ACEOF
21629cat confdefs.h >>conftest.$ac_ext
21630cat >>conftest.$ac_ext <<_ACEOF
21631/* end confdefs.h. */
ea04106b 21632
e10b0808 21633
22929307 21634 #include <linux/fs.h>
cae5b340 21635
42f7b73b
AX
21636 int test_fsync(struct file *f, struct dentry *dentry, int x)
21637 { return 0; }
cae5b340
AX
21638
21639 static const struct file_operations
21640 fops __attribute__ ((unused)) = {
21641 .fsync = test_fsync,
22929307 21642 };
ea04106b
AX
21643
21644int
21645main (void)
21646{
21647
21648
21649 ;
21650 return 0;
21651}
21652
21653_ACEOF
21654
21655
21656
21657cat - <<_ACEOF >conftest.h
21658
21659_ACEOF
21660
21661
21662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21663 echo "obj-m := conftest.o" >build/Makefile
21664 modpost_flag=''
21665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21666 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
cae5b340
AX
21670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
cae5b340
AX
21675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
68d83c55 21677
42f7b73b
AX
21678 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21679$as_echo "dentry" >&6; }
68d83c55 21680
cae5b340 21681cat >>confdefs.h <<\_ACEOF
42f7b73b 21682#define HAVE_FSYNC_WITH_DENTRY 1
cae5b340 21683_ACEOF
68d83c55
AX
21684
21685
e10b0808
AX
21686else
21687 $as_echo "$as_me: failed program was:" >&5
21688sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 21689
cae5b340
AX
21690
21691
21692
21693fi
21694
21695 rm -Rf build
21696
21697
21698
21699
ea04106b
AX
21700
21701
21702cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21703/* confdefs.h. */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h. */
ea04106b
AX
21708
21709
68d83c55 21710 #include <linux/fs.h>
cae5b340 21711
42f7b73b 21712 int test_fsync(struct file *f, int x) { return 0; }
cae5b340
AX
21713
21714 static const struct file_operations
21715 fops __attribute__ ((unused)) = {
21716 .fsync = test_fsync,
21717 };
ea04106b
AX
21718
21719int
21720main (void)
21721{
21722
21723
21724 ;
21725 return 0;
21726}
21727
21728_ACEOF
21729
21730
21731
21732cat - <<_ACEOF >conftest.h
21733
21734_ACEOF
21735
21736
21737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21738 echo "obj-m := conftest.o" >build/Makefile
21739 modpost_flag=''
21740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752
42f7b73b
AX
21753 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21754$as_echo "no dentry" >&6; }
cae5b340
AX
21755
21756cat >>confdefs.h <<\_ACEOF
42f7b73b 21757#define HAVE_FSYNC_WITHOUT_DENTRY 1
cae5b340 21758_ACEOF
22929307
AX
21759
21760
cae5b340
AX
21761else
21762 $as_echo "$as_me: failed program was:" >&5
21763sed 's/^/| /' conftest.$ac_ext >&5
21764
ea04106b
AX
21765
21766
21767
21768fi
cae5b340 21769
ea04106b
AX
21770 rm -Rf build
21771
21772
21773
21774
ea04106b
AX
21775
21776
21777cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21778/* confdefs.h. */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
21782/* end confdefs.h. */
ea04106b
AX
21783
21784
cae5b340
AX
21785 #include <linux/fs.h>
21786
42f7b73b
AX
21787 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21788 { return 0; }
cae5b340 21789
42f7b73b
AX
21790 static const struct file_operations
21791 fops __attribute__ ((unused)) = {
21792 .fsync = test_fsync,
cae5b340 21793 };
ea04106b
AX
21794
21795int
21796main (void)
21797{
21798
e10b0808
AX
21799
21800 ;
ea04106b
AX
21801 return 0;
21802}
21803
21804_ACEOF
21805
21806
21807
21808cat - <<_ACEOF >conftest.h
21809
21810_ACEOF
21811
21812
21813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21814 echo "obj-m := conftest.o" >build/Makefile
21815 modpost_flag=''
21816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21817 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
cae5b340
AX
21821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
cae5b340
AX
21826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
ea04106b 21828
42f7b73b
AX
21829 { $as_echo "$as_me:$LINENO: result: range" >&5
21830$as_echo "range" >&6; }
ea04106b 21831
cae5b340 21832cat >>confdefs.h <<\_ACEOF
42f7b73b 21833#define HAVE_FSYNC_RANGE 1
cae5b340 21834_ACEOF
ea04106b
AX
21835
21836
21837else
21838 $as_echo "$as_me: failed program was:" >&5
21839sed 's/^/| /' conftest.$ac_ext >&5
21840
cae5b340
AX
21841
21842
21843
21844fi
21845
21846 rm -Rf build
21847
21848
21849
21850
22929307 21851
42f7b73b
AX
21852 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21853$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
22929307
AX
21854
21855
21856cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21857/* confdefs.h. */
21858_ACEOF
21859cat confdefs.h >>conftest.$ac_ext
21860cat >>conftest.$ac_ext <<_ACEOF
21861/* end confdefs.h. */
22929307
AX
21862
21863
cae5b340 21864 #include <linux/fs.h>
42f7b73b
AX
21865 void evict_inode (struct inode * t) { return; }
21866 static struct super_operations sops __attribute__ ((unused)) = {
21867 .evict_inode = evict_inode,
cae5b340 21868 };
22929307
AX
21869
21870int
21871main (void)
21872{
21873
21874
21875 ;
21876 return 0;
21877}
21878
21879_ACEOF
21880
21881
21882
21883cat - <<_ACEOF >conftest.h
21884
21885_ACEOF
21886
21887
21888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21889 echo "obj-m := conftest.o" >build/Makefile
21890 modpost_flag=''
21891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
cae5b340
AX
21896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
cae5b340
AX
21901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
22929307 21903
cae5b340 21904 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21905$as_echo "yes" >&6; }
21906
cae5b340 21907cat >>confdefs.h <<\_ACEOF
42f7b73b 21908#define HAVE_EVICT_INODE 1
cae5b340 21909_ACEOF
22929307
AX
21910
21911
21912else
21913 $as_echo "$as_me: failed program was:" >&5
21914sed 's/^/| /' conftest.$ac_ext >&5
21915
cae5b340
AX
21916 { $as_echo "$as_me:$LINENO: result: no" >&5
21917$as_echo "no" >&6; }
22929307
AX
21918
21919
21920
21921fi
22929307 21922
22929307
AX
21923 rm -Rf build
21924
21925
21926
21927
42f7b73b
AX
21928 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
21929$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
22929307
AX
21930
21931
21932cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21933/* confdefs.h. */
21934_ACEOF
21935cat confdefs.h >>conftest.$ac_ext
21936cat >>conftest.$ac_ext <<_ACEOF
21937/* end confdefs.h. */
22929307
AX
21938
21939
21940 #include <linux/fs.h>
cae5b340 21941
42f7b73b 21942 void dirty_inode(struct inode *a, int b) { return; }
cae5b340 21943
42f7b73b
AX
21944 static const struct super_operations
21945 sops __attribute__ ((unused)) = {
21946 .dirty_inode = dirty_inode,
22929307
AX
21947 };
21948
21949int
21950main (void)
21951{
21952
21953
21954 ;
21955 return 0;
21956}
21957
21958_ACEOF
21959
21960
21961
21962cat - <<_ACEOF >conftest.h
21963
21964_ACEOF
21965
21966
21967 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21968 echo "obj-m := conftest.o" >build/Makefile
21969 modpost_flag=''
21970 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 21971 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
cae5b340
AX
21975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
cae5b340
AX
21980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; }; then
22929307 21982
cae5b340 21983 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21984$as_echo "yes" >&6; }
21985
cae5b340 21986cat >>confdefs.h <<\_ACEOF
42f7b73b 21987#define HAVE_DIRTY_INODE_WITH_FLAGS 1
cae5b340 21988_ACEOF
22929307
AX
21989
21990
21991else
21992 $as_echo "$as_me: failed program was:" >&5
21993sed 's/^/| /' conftest.$ac_ext >&5
21994
cae5b340 21995 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
21996$as_echo "no" >&6; }
21997
21998
21999
22000fi
cae5b340 22001
22929307
AX
22002 rm -Rf build
22003
22004
22005
22006
42f7b73b
AX
22007 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22008$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22929307
AX
22009
22010
22011cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22012/* confdefs.h. */
22013_ACEOF
22014cat confdefs.h >>conftest.$ac_ext
22015cat >>conftest.$ac_ext <<_ACEOF
22016/* end confdefs.h. */
22929307
AX
22017
22018
cae5b340
AX
22019 #include <linux/fs.h>
22020
42f7b73b 22021 int nr_cached_objects(struct super_block *sb) { return 0; }
cae5b340 22022
42f7b73b
AX
22023 static const struct super_operations
22024 sops __attribute__ ((unused)) = {
22025 .nr_cached_objects = nr_cached_objects,
22929307
AX
22026 };
22027
22028int
22029main (void)
22030{
22031
22032
22033 ;
22034 return 0;
22035}
22036
22037_ACEOF
22038
22039
22040
22041cat - <<_ACEOF >conftest.h
22042
22043_ACEOF
22044
22045
22046 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22047 echo "obj-m := conftest.o" >build/Makefile
22048 modpost_flag=''
22049 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22050 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
cae5b340
AX
22054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
cae5b340
AX
22059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22929307 22061
cae5b340 22062 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
22063$as_echo "yes" >&6; }
22064
cae5b340 22065cat >>confdefs.h <<\_ACEOF
42f7b73b 22066#define HAVE_NR_CACHED_OBJECTS 1
cae5b340 22067_ACEOF
22929307
AX
22068
22069
22070else
22071 $as_echo "$as_me: failed program was:" >&5
22072sed 's/^/| /' conftest.$ac_ext >&5
22073
cae5b340 22074 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
22075$as_echo "no" >&6; }
22076
22077
22078
22079fi
cae5b340 22080
22929307
AX
22081 rm -Rf build
22082
22083
22084
22085
42f7b73b
AX
22086 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22087$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22929307
AX
22088
22089
22090cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22929307
AX
22096
22097
cae5b340
AX
22098 #include <linux/fs.h>
22099
42f7b73b
AX
22100 void free_cached_objects(struct super_block *sb, int x)
22101 { return; }
22102
22103 static const struct super_operations
22104 sops __attribute__ ((unused)) = {
22105 .free_cached_objects = free_cached_objects,
22929307 22106 };
ea04106b
AX
22107
22108int
22109main (void)
22110{
22111
22112
22113 ;
22114 return 0;
22115}
22116
22117_ACEOF
22118
22119
22120
22121cat - <<_ACEOF >conftest.h
22122
22123_ACEOF
22124
22125
22126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22127 echo "obj-m := conftest.o" >build/Makefile
22128 modpost_flag=''
22129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22130 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
cae5b340
AX
22134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22137 (eval $ac_try) 2>&5
22138 ac_status=$?
cae5b340
AX
22139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
68d83c55 22141
cae5b340 22142 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
22143$as_echo "yes" >&6; }
22144
cae5b340 22145cat >>confdefs.h <<\_ACEOF
42f7b73b 22146#define HAVE_FREE_CACHED_OBJECTS 1
cae5b340 22147_ACEOF
68d83c55
AX
22148
22149
22150else
22151 $as_echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
cae5b340 22154 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
22155$as_echo "no" >&6; }
22156
22157
22158
22159fi
cae5b340 22160
68d83c55
AX
22161 rm -Rf build
22162
22163
22164
22165
42f7b73b
AX
22166
22167 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22168$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
68d83c55
AX
22169
22170
22171cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22172/* confdefs.h. */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h. */
68d83c55
AX
22177
22178
cae5b340
AX
22179 #include <linux/fs.h>
22180
42f7b73b
AX
22181 long test_fallocate(struct file *file, int mode,
22182 loff_t offset, loff_t len) { return 0; }
cae5b340 22183
42f7b73b
AX
22184 static const struct file_operations
22185 fops __attribute__ ((unused)) = {
22186 .fallocate = test_fallocate,
68d83c55
AX
22187 };
22188
22189int
22190main (void)
22191{
22192
22193
22194 ;
22195 return 0;
22196}
22197
22198_ACEOF
22199
22200
22201
22202cat - <<_ACEOF >conftest.h
22203
22204_ACEOF
22205
22206
22207 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22208 echo "obj-m := conftest.o" >build/Makefile
22209 modpost_flag=''
22210 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22211 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
22213 (eval $ac_try) 2>&5
22214 ac_status=$?
cae5b340
AX
22215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
cae5b340
AX
22220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
68d83c55 22222
cae5b340 22223 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
22224$as_echo "yes" >&6; }
22225
cae5b340 22226cat >>confdefs.h <<\_ACEOF
42f7b73b 22227#define HAVE_FILE_FALLOCATE 1
cae5b340 22228_ACEOF
68d83c55
AX
22229
22230
22231else
22232 $as_echo "$as_me: failed program was:" >&5
22233sed 's/^/| /' conftest.$ac_ext >&5
22234
cae5b340 22235 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
22236$as_echo "no" >&6; }
22237
22238
22239
22240fi
cae5b340 22241
68d83c55
AX
22242 rm -Rf build
22243
22244
22245
68d83c55 22246
42f7b73b
AX
22247 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22248$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
68d83c55
AX
22249
22250
22251cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22252/* confdefs.h. */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h. */
68d83c55
AX
22257
22258
22259 #include <linux/fs.h>
22260
42f7b73b
AX
22261 long test_fallocate(struct inode *inode, int mode,
22262 loff_t offset, loff_t len) { return 0; }
cae5b340 22263
42f7b73b
AX
22264 static const struct inode_operations
22265 fops __attribute__ ((unused)) = {
22266 .fallocate = test_fallocate,
cae5b340
AX
22267 };
22268
68d83c55
AX
22269int
22270main (void)
22271{
22272
68d83c55
AX
22273
22274 ;
22275 return 0;
22276}
22277
22278_ACEOF
22279
22280
22281
22282cat - <<_ACEOF >conftest.h
22283
22284_ACEOF
22285
22286
22287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22288 echo "obj-m := conftest.o" >build/Makefile
22289 modpost_flag=''
22290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
cae5b340
AX
22295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
cae5b340
AX
22300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
ea04106b 22302
cae5b340
AX
22303 { $as_echo "$as_me:$LINENO: result: yes" >&5
22304$as_echo "yes" >&6; }
ea04106b 22305
cae5b340 22306cat >>confdefs.h <<\_ACEOF
42f7b73b 22307#define HAVE_INODE_FALLOCATE 1
cae5b340 22308_ACEOF
e10b0808 22309
e10b0808 22310
cae5b340
AX
22311else
22312 $as_echo "$as_me: failed program was:" >&5
22313sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22314
cae5b340 22315 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 22316$as_echo "no" >&6; }
ea04106b 22317
ea04106b
AX
22318
22319
cae5b340 22320fi
ea04106b 22321
cae5b340 22322 rm -Rf build
ea04106b 22323
e10b0808
AX
22324
22325
22326
42f7b73b
AX
22327
22328 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
22329$as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
ea04106b
AX
22330
22331
22332cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
ea04106b
AX
22338
22339
68d83c55 22340 #include <linux/fs.h>
ea04106b 22341
42f7b73b
AX
22342 static const struct file_operations
22343 fops __attribute__ ((unused)) = {
22344 .aio_fsync = NULL,
cae5b340
AX
22345 };
22346
ea04106b
AX
22347int
22348main (void)
22349{
22350
22351
22352 ;
22353 return 0;
22354}
22355
22356_ACEOF
22357
22358
22359
22360cat - <<_ACEOF >conftest.h
22361
22362_ACEOF
22363
22364
22365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22366 echo "obj-m := conftest.o" >build/Makefile
22367 modpost_flag=''
22368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22371 (eval $ac_try) 2>&5
22372 ac_status=$?
cae5b340
AX
22373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
cae5b340
AX
22378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
ea04106b 22380
cae5b340
AX
22381 { $as_echo "$as_me:$LINENO: result: yes" >&5
22382$as_echo "yes" >&6; }
4d815aed 22383
cae5b340 22384cat >>confdefs.h <<\_ACEOF
42f7b73b 22385#define HAVE_FILE_AIO_FSYNC 1
cae5b340 22386_ACEOF
4d815aed 22387
4d815aed 22388
cae5b340
AX
22389else
22390 $as_echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22392
cae5b340 22393 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
22394$as_echo "no" >&6; }
22395
22396
22397
cae5b340 22398fi
ea04106b 22399
cae5b340 22400 rm -Rf build
ea04106b 22401
4d815aed 22402
ea04106b 22403
ea04106b 22404
42f7b73b
AX
22405 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22406$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
ea04106b
AX
22407
22408
22409cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22410/* confdefs.h. */
22411_ACEOF
22412cat confdefs.h >>conftest.$ac_ext
22413cat >>conftest.$ac_ext <<_ACEOF
22414/* end confdefs.h. */
ea04106b
AX
22415
22416
68d83c55 22417 #include <linux/fs.h>
42f7b73b
AX
22418
22419 int mkdir(struct inode *inode, struct dentry *dentry,
22420 umode_t umode) { return 0; }
22421
22422 static const struct inode_operations
22423 iops __attribute__ ((unused)) = {
22424 .mkdir = mkdir,
cae5b340 22425 };
ea04106b
AX
22426
22427int
22428main (void)
22429{
22430
4d815aed
AX
22431
22432 ;
ea04106b
AX
22433 return 0;
22434}
22435
22436_ACEOF
22437
22438
22439
22440cat - <<_ACEOF >conftest.h
22441
22442_ACEOF
22443
22444
22445 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22446 echo "obj-m := conftest.o" >build/Makefile
22447 modpost_flag=''
22448 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22449 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
cae5b340
AX
22453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
cae5b340
AX
22458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
ea04106b 22460
cae5b340 22461 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 22462$as_echo "yes" >&6; }
ea04106b 22463
cae5b340 22464cat >>confdefs.h <<\_ACEOF
42f7b73b 22465#define HAVE_MKDIR_UMODE_T 1
cae5b340 22466_ACEOF
68d83c55 22467
ea04106b 22468
cae5b340
AX
22469else
22470 $as_echo "$as_me: failed program was:" >&5
22471sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22472
42f7b73b 22473 { $as_echo "$as_me:$LINENO: result: no" >&5
cae5b340 22474$as_echo "no" >&6; }
ea04106b 22475
ea04106b
AX
22476
22477
42f7b73b 22478fi
ea04106b 22479
42f7b73b 22480 rm -Rf build
ea04106b 22481
68d83c55 22482
ea04106b 22483
4d815aed 22484
42f7b73b
AX
22485 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
22486$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
ea04106b
AX
22487
22488
22489cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22490/* confdefs.h. */
22491_ACEOF
22492cat confdefs.h >>conftest.$ac_ext
22493cat >>conftest.$ac_ext <<_ACEOF
22494/* end confdefs.h. */
ea04106b
AX
22495
22496
cae5b340 22497 #include <linux/fs.h>
42f7b73b 22498 #include <linux/sched.h>
ea04106b 22499
42f7b73b
AX
22500 struct dentry *inode_lookup(struct inode *inode,
22501 struct dentry *dentry, struct nameidata *nidata)
22502 { return NULL; }
ea04106b 22503
42f7b73b
AX
22504 static const struct inode_operations iops
22505 __attribute__ ((unused)) = {
22506 .lookup = inode_lookup,
22507 };
ea04106b
AX
22508
22509int
22510main (void)
22511{
22512
ea04106b
AX
22513
22514 ;
22515 return 0;
22516}
22517
22518_ACEOF
22519
22520
22521
22522cat - <<_ACEOF >conftest.h
22523
22524_ACEOF
22525
22526
22527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22528 echo "obj-m := conftest.o" >build/Makefile
22529 modpost_flag=''
22530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22531 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
cae5b340
AX
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
cae5b340
AX
22540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542
42f7b73b 22543 { $as_echo "$as_me:$LINENO: result: yes" >&5
cae5b340
AX
22544$as_echo "yes" >&6; }
22545
22546cat >>confdefs.h <<\_ACEOF
42f7b73b 22547#define HAVE_LOOKUP_NAMEIDATA 1
cae5b340
AX
22548_ACEOF
22549
22550
68d83c55
AX
22551else
22552 $as_echo "$as_me: failed program was:" >&5
22553sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 22554
42f7b73b
AX
22555 { $as_echo "$as_me:$LINENO: result: no" >&5
22556$as_echo "no" >&6; }
cae5b340
AX
22557
22558
22559
22560fi
22561
22562 rm -Rf build
22563
ea04106b 22564
ea04106b 22565
68d83c55 22566
42f7b73b
AX
22567 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
22568$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
22569
22570
22571cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22572/* confdefs.h. */
22573_ACEOF
22574cat confdefs.h >>conftest.$ac_ext
22575cat >>conftest.$ac_ext <<_ACEOF
22576/* end confdefs.h. */
ea04106b
AX
22577
22578
42f7b73b
AX
22579 #include <linux/fs.h>
22580 #include <linux/sched.h>
22581
22582 #ifdef HAVE_MKDIR_UMODE_T
22583 int inode_create(struct inode *inode ,struct dentry *dentry,
22584 umode_t umode, struct nameidata *nidata) { return 0; }
22585 #else
22586 int inode_create(struct inode *inode,struct dentry *dentry,
22587 int umode, struct nameidata * nidata) { return 0; }
cae5b340 22588 #endif
ea04106b 22589
42f7b73b
AX
22590 static const struct inode_operations
22591 iops __attribute__ ((unused)) = {
22592 .create = inode_create,
22593 };
22594
ea04106b
AX
22595int
22596main (void)
22597{
22598
ea04106b
AX
22599
22600 ;
22601 return 0;
22602}
22603
22604_ACEOF
22605
22606
22607
22608cat - <<_ACEOF >conftest.h
22609
22610_ACEOF
22611
22612
22613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22614 echo "obj-m := conftest.o" >build/Makefile
22615 modpost_flag=''
22616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
cae5b340
AX
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
cae5b340
AX
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
ea04106b 22628
42f7b73b
AX
22629 { $as_echo "$as_me:$LINENO: result: yes" >&5
22630$as_echo "yes" >&6; }
e10b0808 22631
cae5b340 22632cat >>confdefs.h <<\_ACEOF
42f7b73b 22633#define HAVE_CREATE_NAMEIDATA 1
cae5b340 22634_ACEOF
e10b0808 22635
e10b0808 22636
cae5b340
AX
22637else
22638 $as_echo "$as_me: failed program was:" >&5
22639sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22640
42f7b73b
AX
22641 { $as_echo "$as_me:$LINENO: result: no" >&5
22642$as_echo "no" >&6; }
22643
22644
22645
22646fi
22647
22648 rm -Rf build
22649
22650
22651
22652
22653 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
22654$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
ea04106b
AX
22655
22656
22657cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22658/* confdefs.h. */
22659_ACEOF
22660cat confdefs.h >>conftest.$ac_ext
22661cat >>conftest.$ac_ext <<_ACEOF
22662/* end confdefs.h. */
ea04106b
AX
22663
22664
42f7b73b
AX
22665 #include <linux/fs.h>
22666 const char *get_link(struct dentry *de, struct inode *ip,
22667 struct delayed_call *done) { return "symlink"; }
22668 static struct inode_operations
22669 iops __attribute__ ((unused)) = {
22670 .get_link = get_link,
22671 };
ea04106b
AX
22672
22673int
22674main (void)
22675{
22676
ea04106b
AX
22677
22678 ;
22679 return 0;
22680}
22681
22682_ACEOF
22683
22684
22685
22686cat - <<_ACEOF >conftest.h
22687
22688_ACEOF
22689
22690
22691 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22692 echo "obj-m := conftest.o" >build/Makefile
22693 modpost_flag=''
22694 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22695 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22697 (eval $ac_try) 2>&5
22698 ac_status=$?
cae5b340
AX
22699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
cae5b340
AX
22704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; }; then
4d815aed 22706
42f7b73b 22707 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
22708$as_echo "yes" >&6; }
22709
cae5b340 22710cat >>confdefs.h <<\_ACEOF
42f7b73b 22711#define HAVE_GET_LINK_DELAYED 1
cae5b340 22712_ACEOF
4d815aed
AX
22713
22714
ea04106b
AX
22715else
22716 $as_echo "$as_me: failed program was:" >&5
22717sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 22718
42f7b73b 22719 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 22720$as_echo "no" >&6; }
42f7b73b
AX
22721 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
22722$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
e10b0808
AX
22723
22724
22725cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22726/* confdefs.h. */
22727_ACEOF
22728cat confdefs.h >>conftest.$ac_ext
22729cat >>conftest.$ac_ext <<_ACEOF
22730/* end confdefs.h. */
e10b0808
AX
22731
22732
42f7b73b
AX
22733 #include <linux/fs.h>
22734 const char *get_link(struct dentry *de, struct
22735 inode *ip, void **cookie) { return "symlink"; }
22736 static struct inode_operations
22737 iops __attribute__ ((unused)) = {
22738 .get_link = get_link,
22739 };
ea04106b
AX
22740
22741int
22742main (void)
22743{
22744
22745
22746 ;
22747 return 0;
22748}
22749
22750_ACEOF
22751
22752
22753
22754cat - <<_ACEOF >conftest.h
22755
22756_ACEOF
22757
22758
22759 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22760 echo "obj-m := conftest.o" >build/Makefile
22761 modpost_flag=''
22762 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22763 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22765 (eval $ac_try) 2>&5
22766 ac_status=$?
cae5b340
AX
22767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22770 (eval $ac_try) 2>&5
22771 ac_status=$?
cae5b340
AX
22772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
ea04106b 22774
42f7b73b 22775 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
22776$as_echo "yes" >&6; }
22777
cae5b340 22778cat >>confdefs.h <<\_ACEOF
42f7b73b 22779#define HAVE_GET_LINK_COOKIE 1
cae5b340 22780_ACEOF
ea04106b
AX
22781
22782
22783else
22784 $as_echo "$as_me: failed program was:" >&5
22785sed 's/^/| /' conftest.$ac_ext >&5
22786
42f7b73b
AX
22787 { $as_echo "$as_me:$LINENO: result: no" >&5
22788$as_echo "no" >&6; }
4d815aed 22789
42f7b73b
AX
22790 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22791$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
ea04106b
AX
22792
22793
22794cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22795/* confdefs.h. */
22796_ACEOF
22797cat confdefs.h >>conftest.$ac_ext
22798cat >>conftest.$ac_ext <<_ACEOF
22799/* end confdefs.h. */
ea04106b
AX
22800
22801
68d83c55 22802 #include <linux/fs.h>
42f7b73b
AX
22803 const char *follow_link(struct dentry *de,
22804 void **cookie) { return "symlink"; }
cae5b340
AX
22805 static struct inode_operations
22806 iops __attribute__ ((unused)) = {
42f7b73b 22807 .follow_link = follow_link,
cae5b340 22808 };
ea04106b
AX
22809
22810int
22811main (void)
22812{
22813
ea04106b
AX
22814
22815 ;
22816 return 0;
22817}
22818
22819_ACEOF
22820
22821
22822
22823cat - <<_ACEOF >conftest.h
22824
22825_ACEOF
22826
22827
22828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22829 echo "obj-m := conftest.o" >build/Makefile
22830 modpost_flag=''
22831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
cae5b340
AX
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
cae5b340
AX
22841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
ea04106b 22843
cae5b340
AX
22844 { $as_echo "$as_me:$LINENO: result: yes" >&5
22845$as_echo "yes" >&6; }
ea04106b 22846
cae5b340 22847cat >>confdefs.h <<\_ACEOF
42f7b73b 22848#define HAVE_FOLLOW_LINK_COOKIE 1
cae5b340 22849_ACEOF
ea04106b 22850
4d815aed 22851
cae5b340
AX
22852else
22853 $as_echo "$as_me: failed program was:" >&5
22854sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 22855
42f7b73b 22856 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 22857$as_echo "no" >&6; }
42f7b73b
AX
22858 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22859$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
ea04106b
AX
22860
22861
22862cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
ea04106b
AX
22868
22869
cae5b340 22870 #include <linux/fs.h>
42f7b73b
AX
22871 void *follow_link(struct dentry *de, struct
22872 nameidata *nd) { return (void *)NULL; }
22873 static struct inode_operations
22874 iops __attribute__ ((unused)) = {
22875 .follow_link = follow_link,
22876 };
ea04106b
AX
22877
22878int
22879main (void)
22880{
22881
ea04106b
AX
22882
22883 ;
22884 return 0;
22885}
22886
22887_ACEOF
22888
22889
22890
22891cat - <<_ACEOF >conftest.h
22892
22893_ACEOF
22894
22895
22896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22897 echo "obj-m := conftest.o" >build/Makefile
22898 modpost_flag=''
22899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 22900 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
cae5b340
AX
22904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
cae5b340
AX
22909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; }; then
22911
42f7b73b 22912 { $as_echo "$as_me:$LINENO: result: yes" >&5
cae5b340
AX
22913$as_echo "yes" >&6; }
22914
22915cat >>confdefs.h <<\_ACEOF
42f7b73b 22916#define HAVE_FOLLOW_LINK_NAMEIDATA 1
cae5b340
AX
22917_ACEOF
22918
22919
ea04106b
AX
22920else
22921 $as_echo "$as_me: failed program was:" >&5
22922sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 22923
42f7b73b
AX
22924 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22925$as_echo "$as_me: error: no; please file a bug report" >&2;}
22926 { (exit 1); exit 1; }; }
22927
22928
22929
22930fi
22931
22932 rm -Rf build
22933
22934
22935
22936
22937
22938fi
22939
22940 rm -Rf build
22941
22942
22943
22944
22945
22946
22947fi
22948
22949 rm -Rf build
22950
22951
cae5b340 22952
ea04106b
AX
22953
22954
22955fi
cae5b340 22956
ea04106b
AX
22957 rm -Rf build
22958
22959
ea04106b 22960
ea04106b 22961
ea04106b 22962
ea04106b 22963
cae5b340
AX
22964cat confdefs.h - <<_ACEOF >conftest.c
22965/* confdefs.h. */
22966_ACEOF
22967cat confdefs.h >>conftest.$ac_ext
22968cat >>conftest.$ac_ext <<_ACEOF
22969/* end confdefs.h. */
ea04106b 22970
ea04106b 22971
42f7b73b
AX
22972 #if !defined(HAVE_GET_LINK_DELAYED)
22973 #error "Expecting get_link() delayed done"
22974 #endif
cae5b340
AX
22975
22976int
22977main (void)
22978{
22979
22980
22981 ;
22982 return 0;
22983}
22984
22985_ACEOF
22986
22987
22988
22989cat - <<_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
42f7b73b 22998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23006 ac_status=$?
23007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
ea04106b 23009
ea04106b 23010
cae5b340 23011cat >>confdefs.h <<\_ACEOF
42f7b73b 23012#define HAVE_PUT_LINK_DELAYED 1
cae5b340 23013_ACEOF
ea04106b 23014
ea04106b 23015
cae5b340
AX
23016else
23017 $as_echo "$as_me: failed program was:" >&5
23018sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23019
42f7b73b
AX
23020 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
23021$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
4d815aed
AX
23022
23023
23024cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23025/* confdefs.h. */
23026_ACEOF
23027cat confdefs.h >>conftest.$ac_ext
23028cat >>conftest.$ac_ext <<_ACEOF
23029/* end confdefs.h. */
4d815aed
AX
23030
23031
42f7b73b
AX
23032 #include <linux/fs.h>
23033 void put_link(struct inode *ip, void *cookie)
23034 { return; }
23035 static struct inode_operations
23036 iops __attribute__ ((unused)) = {
23037 .put_link = put_link,
23038 };
ea04106b
AX
23039
23040int
23041main (void)
23042{
23043
ea04106b
AX
23044
23045 ;
23046 return 0;
23047}
23048
23049_ACEOF
23050
23051
23052
23053cat - <<_ACEOF >conftest.h
23054
23055_ACEOF
23056
23057
23058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23059 echo "obj-m := conftest.o" >build/Makefile
23060 modpost_flag=''
23061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b
AX
23062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23065 ac_status=$?
23066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073
23074 { $as_echo "$as_me:$LINENO: result: yes" >&5
23075$as_echo "yes" >&6; }
23076
23077cat >>confdefs.h <<\_ACEOF
23078#define HAVE_PUT_LINK_COOKIE 1
23079_ACEOF
23080
23081
23082else
23083 $as_echo "$as_me: failed program was:" >&5
23084sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 { $as_echo "$as_me:$LINENO: result: no" >&5
23087$as_echo "no" >&6; }
23088 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
23089$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
23090
23091
23092cat confdefs.h - <<_ACEOF >conftest.c
23093/* confdefs.h. */
23094_ACEOF
23095cat confdefs.h >>conftest.$ac_ext
23096cat >>conftest.$ac_ext <<_ACEOF
23097/* end confdefs.h. */
23098
23099
23100 #include <linux/fs.h>
23101 void put_link(struct dentry *de, struct
23102 nameidata *nd, void *ptr) { return; }
23103 static struct inode_operations
23104 iops __attribute__ ((unused)) = {
23105 .put_link = put_link,
23106 };
23107
23108int
23109main (void)
23110{
23111
23112
23113 ;
23114 return 0;
23115}
23116
23117_ACEOF
23118
23119
23120
23121cat - <<_ACEOF >conftest.h
23122
23123_ACEOF
23124
23125
23126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23127 echo "obj-m := conftest.o" >build/Makefile
23128 modpost_flag=''
23129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23130 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23138 ac_status=$?
23139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141
23142 { $as_echo "$as_me:$LINENO: result: yes" >&5
23143$as_echo "yes" >&6; }
23144
23145cat >>confdefs.h <<\_ACEOF
23146#define HAVE_PUT_LINK_NAMEIDATA 1
23147_ACEOF
23148
23149
23150else
23151 $as_echo "$as_me: failed program was:" >&5
23152sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
23155$as_echo "$as_me: error: no; please file a bug report" >&2;}
23156 { (exit 1); exit 1; }; }
23157
23158
23159
23160fi
23161
23162 rm -Rf build
23163
23164
23165
23166
23167
23168fi
23169
23170 rm -Rf build
23171
23172
23173
23174
23175
23176fi
23177
23178 rm -Rf build
23179
23180
23181
23182
23183 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
23184$as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
23185
23186
23187cat confdefs.h - <<_ACEOF >conftest.c
23188/* confdefs.h. */
23189_ACEOF
23190cat confdefs.h >>conftest.$ac_ext
23191cat >>conftest.$ac_ext <<_ACEOF
23192/* end confdefs.h. */
23193
23194
23195 #include <linux/fs.h>
23196 int tmpfile(struct inode *inode, struct dentry *dentry,
23197 umode_t mode) { return 0; }
23198 static struct inode_operations
23199 iops __attribute__ ((unused)) = {
23200 .tmpfile = tmpfile,
23201 };
23202
23203int
23204main (void)
23205{
23206
23207
23208 ;
23209 return 0;
23210}
23211
23212_ACEOF
23213
23214
23215
23216cat - <<_ACEOF >conftest.h
23217
23218_ACEOF
23219
23220
23221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23222 echo "obj-m := conftest.o" >build/Makefile
23223 modpost_flag=''
23224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23225 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236
23237 { $as_echo "$as_me:$LINENO: result: yes" >&5
23238$as_echo "yes" >&6; }
23239
23240cat >>confdefs.h <<\_ACEOF
23241#define HAVE_TMPFILE 1
23242_ACEOF
23243
23244
23245else
23246 $as_echo "$as_me: failed program was:" >&5
23247sed 's/^/| /' conftest.$ac_ext >&5
23248
23249 { $as_echo "$as_me:$LINENO: result: no" >&5
23250$as_echo "no" >&6; }
23251
23252
23253
23254fi
23255
23256 rm -Rf build
23257
23258
23259
23260
23261 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
23262$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
23263
23264
23265cat confdefs.h - <<_ACEOF >conftest.c
23266/* confdefs.h. */
23267_ACEOF
23268cat confdefs.h >>conftest.$ac_ext
23269cat >>conftest.$ac_ext <<_ACEOF
23270/* end confdefs.h. */
23271
23272
23273 #include <linux/fs.h>
23274 void truncate_range(struct inode *inode, loff_t start,
23275 loff_t end) { return; }
23276 static struct inode_operations iops __attribute__ ((unused)) = {
23277 .truncate_range = truncate_range,
23278 };
23279
23280int
23281main (void)
23282{
23283
23284
23285 ;
23286 return 0;
23287}
23288
23289_ACEOF
23290
23291
23292
23293cat - <<_ACEOF >conftest.h
23294
23295_ACEOF
23296
23297
23298 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23299 echo "obj-m := conftest.o" >build/Makefile
23300 modpost_flag=''
23301 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23302 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313
23314 { $as_echo "$as_me:$LINENO: result: yes" >&5
23315$as_echo "yes" >&6; }
23316
23317cat >>confdefs.h <<\_ACEOF
23318#define HAVE_INODE_TRUNCATE_RANGE 1
23319_ACEOF
23320
23321
23322else
23323 $as_echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326 { $as_echo "$as_me:$LINENO: result: no" >&5
23327$as_echo "no" >&6; }
23328
23329
23330
23331fi
23332
23333 rm -Rf build
23334
23335
23336
23337
23338 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
23339$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
23340
23341
23342cat confdefs.h - <<_ACEOF >conftest.c
23343/* confdefs.h. */
23344_ACEOF
23345cat confdefs.h >>conftest.$ac_ext
23346cat >>conftest.$ac_ext <<_ACEOF
23347/* end confdefs.h. */
23348
23349
23350 #include <linux/dcache.h>
23351 struct vfsmount *d_automount(struct path *p) { return NULL; }
23352 struct dentry_operations dops __attribute__ ((unused)) = {
23353 .d_automount = d_automount,
23354 };
23355
23356int
23357main (void)
23358{
23359
23360
23361 ;
23362 return 0;
23363}
23364
23365_ACEOF
23366
23367
23368
23369cat - <<_ACEOF >conftest.h
23370
23371_ACEOF
23372
23373
23374 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23375 echo "obj-m := conftest.o" >build/Makefile
23376 modpost_flag=''
23377 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23378 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23389
23390 { $as_echo "$as_me:$LINENO: result: yes" >&5
23391$as_echo "yes" >&6; }
23392
23393cat >>confdefs.h <<\_ACEOF
23394#define HAVE_AUTOMOUNT 1
23395_ACEOF
23396
23397
23398else
23399 $as_echo "$as_me: failed program was:" >&5
23400sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 { $as_echo "$as_me:$LINENO: result: no" >&5
23403$as_echo "no" >&6; }
23404
23405
23406
23407fi
23408
23409 rm -Rf build
23410
23411
23412
23413
23414 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
23415$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
23416
23417
23418cat confdefs.h - <<_ACEOF >conftest.c
23419/* confdefs.h. */
23420_ACEOF
23421cat confdefs.h >>conftest.$ac_ext
23422cat >>conftest.$ac_ext <<_ACEOF
23423/* end confdefs.h. */
23424
23425
23426 #include <linux/exportfs.h>
23427 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
23428 struct inode *parent) { return 0; }
23429 static struct export_operations eops __attribute__ ((unused))={
23430 .encode_fh = encode_fh,
23431 };
23432
23433int
23434main (void)
23435{
23436
23437
23438 ;
23439 return 0;
23440}
23441
23442_ACEOF
23443
23444
23445
23446cat - <<_ACEOF >conftest.h
23447
23448_ACEOF
23449
23450
23451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23452 echo "obj-m := conftest.o" >build/Makefile
23453 modpost_flag=''
23454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23455 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
cae5b340
AX
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
cae5b340
AX
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
ea04106b 23466
cae5b340 23467 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
23468$as_echo "yes" >&6; }
23469
cae5b340
AX
23470cat >>confdefs.h <<\_ACEOF
23471#define HAVE_ENCODE_FH_WITH_INODE 1
23472_ACEOF
ea04106b
AX
23473
23474
23475else
23476 $as_echo "$as_me: failed program was:" >&5
23477sed 's/^/| /' conftest.$ac_ext >&5
23478
cae5b340 23479 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
23480$as_echo "no" >&6; }
23481
ea04106b
AX
23482
23483
4d815aed 23484fi
cae5b340 23485
4d815aed 23486 rm -Rf build
ea04106b
AX
23487
23488
e10b0808 23489
4d815aed 23490
cae5b340
AX
23491 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
23492$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
4d815aed
AX
23493
23494
23495cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23496/* confdefs.h. */
23497_ACEOF
23498cat confdefs.h >>conftest.$ac_ext
23499cat >>conftest.$ac_ext <<_ACEOF
23500/* end confdefs.h. */
4d815aed
AX
23501
23502
cae5b340
AX
23503 #include <linux/exportfs.h>
23504 int commit_metadata(struct inode *inode) { return 0; }
23505 static struct export_operations eops __attribute__ ((unused))={
23506 .commit_metadata = commit_metadata,
23507 };
ea04106b
AX
23508
23509int
23510main (void)
23511{
23512
ea04106b
AX
23513
23514 ;
23515 return 0;
23516}
23517
23518_ACEOF
23519
23520
23521
23522cat - <<_ACEOF >conftest.h
23523
23524_ACEOF
23525
23526
23527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23528 echo "obj-m := conftest.o" >build/Makefile
23529 modpost_flag=''
23530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 23531 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
cae5b340
AX
23535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23538 (eval $ac_try) 2>&5
23539 ac_status=$?
cae5b340
AX
23540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
ea04106b 23542
cae5b340 23543 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 23544$as_echo "yes" >&6; }
ea04106b 23545
cae5b340
AX
23546cat >>confdefs.h <<\_ACEOF
23547#define HAVE_COMMIT_METADATA 1
23548_ACEOF
ea04106b 23549
ea04106b 23550
e10b0808
AX
23551else
23552 $as_echo "$as_me: failed program was:" >&5
23553sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23554
cae5b340 23555 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
23556$as_echo "no" >&6; }
23557
ea04106b 23558
ea04106b 23559
e10b0808 23560fi
cae5b340 23561
e10b0808 23562 rm -Rf build
ea04106b 23563
ea04106b
AX
23564
23565
cae5b340
AX
23566 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
23567$as_echo_n "checking whether clear_inode() is available... " >&6; }
ea04106b 23568
ea04106b
AX
23569
23570
23571cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23572/* confdefs.h. */
23573_ACEOF
23574cat confdefs.h >>conftest.$ac_ext
23575cat >>conftest.$ac_ext <<_ACEOF
23576/* end confdefs.h. */
ea04106b
AX
23577
23578
4d815aed 23579 #include <linux/fs.h>
ea04106b
AX
23580
23581int
23582main (void)
23583{
23584
cae5b340 23585 clear_inode(NULL);
ea04106b
AX
23586
23587 ;
23588 return 0;
23589}
23590
23591_ACEOF
23592
23593
23594
23595cat - <<_ACEOF >conftest.h
23596
23597_ACEOF
23598
23599
23600 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23601 echo "obj-m := conftest.o" >build/Makefile
23602 modpost_flag=''
23603 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 23604 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
cae5b340
AX
23608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
cae5b340
AX
23613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
4d815aed
AX
23615 rc=0
23616else
23617 $as_echo "$as_me: failed program was:" >&5
23618sed 's/^/| /' conftest.$ac_ext >&5
23619 rc=1
ea04106b 23620
ea04106b 23621
4d815aed 23622fi
cae5b340 23623
4d815aed 23624 rm -Rf build
ea04106b
AX
23625
23626
4d815aed
AX
23627 if test $rc -ne 0; then :
23628
cae5b340 23629 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
23630$as_echo "no" >&6; }
23631
23632 else
23633 if test "x$enable_linux_builtin" != xyes; then
23634
cae5b340 23635 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
4d815aed
AX
23636 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23637 rc=$?
23638 if test $rc -ne 0; then
23639 export=0
cae5b340
AX
23640 for file in fs/inode.c; do
23641 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
4d815aed
AX
23642 "$LINUX/$file" 2>/dev/null
23643 rc=$?
23644 if test $rc -eq 0; then
23645 export=1
23646 break;
23647 fi
23648 done
23649 if test $export -eq 0; then :
23650 rc=1
23651 else :
23652 rc=0
23653 fi
23654 else :
23655 rc=0
23656 fi
23657
23658 fi
23659 if test $rc -ne 0; then :
ea04106b 23660
cae5b340 23661 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
23662$as_echo "no" >&6; }
23663
4d815aed 23664 else :
ea04106b 23665
cae5b340 23666 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 23667$as_echo "yes" >&6; }
ea04106b 23668
cae5b340
AX
23669cat >>confdefs.h <<\_ACEOF
23670#define HAVE_CLEAR_INODE 1
23671_ACEOF
ea04106b
AX
23672
23673
4d815aed
AX
23674 fi
23675 fi
23676
ea04106b 23677
cae5b340
AX
23678 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
23679$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
ea04106b 23680
ea04106b
AX
23681
23682
23683cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23684/* confdefs.h. */
23685_ACEOF
23686cat confdefs.h >>conftest.$ac_ext
23687cat >>conftest.$ac_ext <<_ACEOF
23688/* end confdefs.h. */
ea04106b
AX
23689
23690
4d815aed 23691 #include <linux/fs.h>
68d83c55 23692
ea04106b
AX
23693int
23694main (void)
23695{
23696
cae5b340
AX
23697 struct dentry *dentry = NULL;
23698 struct iattr *attr = NULL;
23699 int error;
23700
23701 error = setattr_prepare(dentry, attr);
ea04106b
AX
23702
23703 ;
23704 return 0;
23705}
23706
23707_ACEOF
23708
23709
23710
23711cat - <<_ACEOF >conftest.h
23712
23713_ACEOF
23714
23715
23716 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23717 echo "obj-m := conftest.o" >build/Makefile
23718 modpost_flag=''
23719 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 23720 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
cae5b340
AX
23724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
cae5b340
AX
23729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 rc=0
23732else
23733 $as_echo "$as_me: failed program was:" >&5
23734sed 's/^/| /' conftest.$ac_ext >&5
23735 rc=1
ea04106b 23736
87dac73d 23737
cae5b340
AX
23738fi
23739
23740 rm -Rf build
68d83c55 23741
87dac73d 23742
cae5b340 23743 if test $rc -ne 0; then :
87dac73d 23744
cae5b340
AX
23745 { $as_echo "$as_me:$LINENO: result: no" >&5
23746$as_echo "no" >&6; }
23747
23748 else
23749 if test "x$enable_linux_builtin" != xyes; then
23750
23751 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
23752 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23753 rc=$?
23754 if test $rc -ne 0; then
23755 export=0
23756 for file in fs/attr.c; do
23757 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
23758 "$LINUX/$file" 2>/dev/null
23759 rc=$?
23760 if test $rc -eq 0; then
23761 export=1
23762 break;
23763 fi
23764 done
23765 if test $export -eq 0; then :
23766 rc=1
23767 else :
23768 rc=0
23769 fi
23770 else :
23771 rc=0
23772 fi
23773
23774 fi
23775 if test $rc -ne 0; then :
87dac73d 23776
cae5b340 23777 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
23778$as_echo "no" >&6; }
23779
cae5b340 23780 else :
87dac73d 23781
cae5b340
AX
23782 { $as_echo "$as_me:$LINENO: result: yes" >&5
23783$as_echo "yes" >&6; }
87dac73d 23784
cae5b340
AX
23785cat >>confdefs.h <<\_ACEOF
23786#define HAVE_SETATTR_PREPARE 1
23787_ACEOF
87dac73d
AX
23788
23789
cae5b340
AX
23790 fi
23791 fi
87dac73d 23792
87dac73d 23793
cae5b340
AX
23794 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
23795$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
23796
87dac73d
AX
23797
23798
23799cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23800/* confdefs.h. */
23801_ACEOF
23802cat confdefs.h >>conftest.$ac_ext
23803cat >>conftest.$ac_ext <<_ACEOF
23804/* end confdefs.h. */
87dac73d
AX
23805
23806
68d83c55 23807 #include <linux/fs.h>
87dac73d
AX
23808
23809int
23810main (void)
23811{
23812
cae5b340 23813 insert_inode_locked(NULL);
87dac73d
AX
23814
23815 ;
23816 return 0;
23817}
23818
23819_ACEOF
23820
23821
23822
23823cat - <<_ACEOF >conftest.h
23824
23825_ACEOF
23826
23827
23828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23829 echo "obj-m := conftest.o" >build/Makefile
23830 modpost_flag=''
23831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 23832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
23834 (eval $ac_try) 2>&5
23835 ac_status=$?
cae5b340
AX
23836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
cae5b340
AX
23841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 rc=0
23844else
23845 $as_echo "$as_me: failed program was:" >&5
23846sed 's/^/| /' conftest.$ac_ext >&5
23847 rc=1
87dac73d 23848
ea04106b 23849
cae5b340
AX
23850fi
23851
23852 rm -Rf build
ea04106b
AX
23853
23854
cae5b340 23855 if test $rc -ne 0; then :
ea04106b 23856
cae5b340 23857 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 23858$as_echo "no" >&6; }
4d815aed 23859
cae5b340
AX
23860 else
23861 if test "x$enable_linux_builtin" != xyes; then
23862
23863 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23864 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23865 rc=$?
23866 if test $rc -ne 0; then
23867 export=0
23868 for file in fs/inode.c; do
23869 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
23870 "$LINUX/$file" 2>/dev/null
23871 rc=$?
23872 if test $rc -eq 0; then
23873 export=1
23874 break;
23875 fi
23876 done
23877 if test $export -eq 0; then :
23878 rc=1
23879 else :
23880 rc=0
23881 fi
23882 else :
23883 rc=0
23884 fi
23885
23886 fi
23887 if test $rc -ne 0; then :
4d815aed 23888
cae5b340
AX
23889 { $as_echo "$as_me:$LINENO: result: no" >&5
23890$as_echo "no" >&6; }
4d815aed 23891
cae5b340 23892 else :
4d815aed 23893
cae5b340
AX
23894 { $as_echo "$as_me:$LINENO: result: yes" >&5
23895$as_echo "yes" >&6; }
4d815aed 23896
cae5b340
AX
23897cat >>confdefs.h <<\_ACEOF
23898#define HAVE_INSERT_INODE_LOCKED 1
23899_ACEOF
4d815aed
AX
23900
23901
cae5b340
AX
23902 fi
23903 fi
23904
23905
23906 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
23907$as_echo_n "checking whether d_make_root() is available... " >&6; }
23908
ea04106b
AX
23909
23910
23911cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23912/* confdefs.h. */
23913_ACEOF
23914cat confdefs.h >>conftest.$ac_ext
23915cat >>conftest.$ac_ext <<_ACEOF
23916/* end confdefs.h. */
ea04106b
AX
23917
23918
cae5b340 23919 #include <linux/dcache.h>
e10b0808 23920
ea04106b
AX
23921int
23922main (void)
23923{
23924
cae5b340 23925 d_make_root(NULL);
ea04106b
AX
23926
23927 ;
23928 return 0;
23929}
23930
23931_ACEOF
23932
23933
23934
23935cat - <<_ACEOF >conftest.h
23936
23937_ACEOF
23938
23939
23940 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23941 echo "obj-m := conftest.o" >build/Makefile
23942 modpost_flag=''
23943 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 23944 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
cae5b340
AX
23948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
cae5b340
AX
23953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; }; then
23955 rc=0
23956else
23957 $as_echo "$as_me: failed program was:" >&5
23958sed 's/^/| /' conftest.$ac_ext >&5
23959 rc=1
ea04106b 23960
ea04106b 23961
cae5b340 23962fi
ea04106b 23963
cae5b340 23964 rm -Rf build
ea04106b 23965
ea04106b 23966
cae5b340
AX
23967 if test $rc -ne 0; then :
23968
23969 { $as_echo "$as_me:$LINENO: result: no" >&5
23970$as_echo "no" >&6; }
23971
23972 else
23973 if test "x$enable_linux_builtin" != xyes; then
23974
23975 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23976 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23977 rc=$?
23978 if test $rc -ne 0; then
23979 export=0
23980 for file in fs/dcache.c; do
23981 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
23982 "$LINUX/$file" 2>/dev/null
23983 rc=$?
23984 if test $rc -eq 0; then
23985 export=1
23986 break;
23987 fi
23988 done
23989 if test $export -eq 0; then :
23990 rc=1
23991 else :
23992 rc=0
23993 fi
23994 else :
23995 rc=0
23996 fi
23997
23998 fi
23999 if test $rc -ne 0; then :
24000
24001 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 24002$as_echo "no" >&6; }
94a40997 24003
cae5b340
AX
24004 else :
24005
24006 { $as_echo "$as_me:$LINENO: result: yes" >&5
24007$as_echo "yes" >&6; }
94a40997 24008
cae5b340
AX
24009cat >>confdefs.h <<\_ACEOF
24010#define HAVE_D_MAKE_ROOT 1
24011_ACEOF
94a40997
AX
24012
24013
cae5b340
AX
24014 fi
24015 fi
94a40997 24016
4d815aed 24017
cae5b340
AX
24018 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24019$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24020
4d815aed
AX
24021
24022
24023cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24024/* confdefs.h. */
24025_ACEOF
24026cat confdefs.h >>conftest.$ac_ext
24027cat >>conftest.$ac_ext <<_ACEOF
24028/* end confdefs.h. */
4d815aed
AX
24029
24030
cae5b340 24031 #include <linux/dcache.h>
94a40997
AX
24032
24033int
24034main (void)
24035{
24036
cae5b340 24037 d_obtain_alias(NULL);
94a40997
AX
24038
24039 ;
24040 return 0;
24041}
24042
24043_ACEOF
24044
24045
24046
24047cat - <<_ACEOF >conftest.h
24048
24049_ACEOF
24050
24051
24052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24053 echo "obj-m := conftest.o" >build/Makefile
24054 modpost_flag=''
24055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24056 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
cae5b340
AX
24060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
cae5b340
AX
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24067 rc=0
24068else
24069 $as_echo "$as_me: failed program was:" >&5
24070sed 's/^/| /' conftest.$ac_ext >&5
24071 rc=1
94a40997 24072
94a40997 24073
cae5b340
AX
24074fi
24075
24076 rm -Rf build
94a40997
AX
24077
24078
cae5b340
AX
24079 if test $rc -ne 0; then :
24080
24081 { $as_echo "$as_me:$LINENO: result: no" >&5
24082$as_echo "no" >&6; }
24083
24084 else
24085 if test "x$enable_linux_builtin" != xyes; then
24086
24087 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
24088 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24089 rc=$?
24090 if test $rc -ne 0; then
24091 export=0
24092 for file in fs/dcache.c; do
24093 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24094 "$LINUX/$file" 2>/dev/null
24095 rc=$?
24096 if test $rc -eq 0; then
24097 export=1
24098 break;
24099 fi
24100 done
24101 if test $export -eq 0; then :
24102 rc=1
24103 else :
24104 rc=0
24105 fi
24106 else :
24107 rc=0
24108 fi
24109
24110 fi
24111 if test $rc -ne 0; then :
94a40997 24112
cae5b340 24113 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 24114$as_echo "no" >&6; }
ea04106b 24115
cae5b340 24116 else :
ea04106b 24117
cae5b340
AX
24118 { $as_echo "$as_me:$LINENO: result: yes" >&5
24119$as_echo "yes" >&6; }
ea04106b 24120
cae5b340
AX
24121cat >>confdefs.h <<\_ACEOF
24122#define HAVE_D_OBTAIN_ALIAS 1
24123_ACEOF
ea04106b
AX
24124
24125
cae5b340
AX
24126 fi
24127 fi
ea04106b 24128
ea04106b 24129
cae5b340
AX
24130 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
24131$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
68d83c55 24132
ea04106b
AX
24133
24134
24135cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24136/* confdefs.h. */
24137_ACEOF
24138cat confdefs.h >>conftest.$ac_ext
24139cat >>conftest.$ac_ext <<_ACEOF
24140/* end confdefs.h. */
ea04106b
AX
24141
24142
cae5b340 24143 #include <linux/dcache.h>
ea04106b
AX
24144
24145int
24146main (void)
24147{
24148
cae5b340
AX
24149 struct inode *ip = NULL;
24150 d_prune_aliases(ip);
ea04106b
AX
24151
24152 ;
24153 return 0;
24154}
24155
24156_ACEOF
24157
24158
24159
24160cat - <<_ACEOF >conftest.h
24161
24162_ACEOF
24163
24164
24165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24166 echo "obj-m := conftest.o" >build/Makefile
24167 modpost_flag=''
24168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
cae5b340
AX
24173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
cae5b340
AX
24178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
68d83c55 24180 rc=0
4d815aed
AX
24181else
24182 $as_echo "$as_me: failed program was:" >&5
24183sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 24184 rc=1
ea04106b 24185
ea04106b 24186
4d815aed 24187fi
cae5b340 24188
4d815aed 24189 rm -Rf build
ea04106b 24190
ea04106b 24191
68d83c55 24192 if test $rc -ne 0; then :
ea04106b 24193
cae5b340 24194 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 24195$as_echo "no" >&6; }
ea04106b 24196
cae5b340
AX
24197 else
24198 if test "x$enable_linux_builtin" != xyes; then
ea04106b 24199
cae5b340 24200 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
68d83c55
AX
24201 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24202 rc=$?
24203 if test $rc -ne 0; then
24204 export=0
cae5b340
AX
24205 for file in fs/dcache.c; do
24206 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
68d83c55
AX
24207 "$LINUX/$file" 2>/dev/null
24208 rc=$?
24209 if test $rc -eq 0; then
24210 export=1
24211 break;
24212 fi
24213 done
24214 if test $export -eq 0; then :
24215 rc=1
24216 else :
24217 rc=0
24218 fi
24219 else :
24220 rc=0
24221 fi
24222
24223 fi
24224 if test $rc -ne 0; then :
24225
cae5b340 24226 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 24227$as_echo "no" >&6; }
ea04106b 24228
68d83c55 24229 else :
ea04106b 24230
cae5b340 24231 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 24232$as_echo "yes" >&6; }
ea04106b 24233
cae5b340
AX
24234cat >>confdefs.h <<\_ACEOF
24235#define HAVE_D_PRUNE_ALIASES 1
24236_ACEOF
ea04106b 24237
68d83c55 24238
68d83c55 24239 fi
68d83c55
AX
24240 fi
24241
68d83c55 24242
cae5b340
AX
24243 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
24244$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
68d83c55
AX
24245
24246
24247
24248cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24249/* confdefs.h. */
24250_ACEOF
24251cat confdefs.h >>conftest.$ac_ext
24252cat >>conftest.$ac_ext <<_ACEOF
24253/* end confdefs.h. */
68d83c55
AX
24254
24255
cae5b340 24256 #include <linux/dcache.h>
68d83c55
AX
24257
24258int
24259main (void)
24260{
24261
cae5b340 24262 d_set_d_op(NULL, NULL);
ea04106b 24263
4d815aed
AX
24264 ;
24265 return 0;
24266}
ea04106b 24267
4d815aed 24268_ACEOF
ea04106b 24269
ea04106b 24270
ea04106b 24271
4d815aed 24272cat - <<_ACEOF >conftest.h
ea04106b 24273
4d815aed 24274_ACEOF
ea04106b
AX
24275
24276
4d815aed
AX
24277 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24278 echo "obj-m := conftest.o" >build/Makefile
24279 modpost_flag=''
24280 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24281 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24283 (eval $ac_try) 2>&5
24284 ac_status=$?
cae5b340
AX
24285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
cae5b340
AX
24290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); }; }; then
68d83c55
AX
24292 rc=0
24293else
24294 $as_echo "$as_me: failed program was:" >&5
24295sed 's/^/| /' conftest.$ac_ext >&5
24296 rc=1
24297
24298
24299fi
cae5b340 24300
68d83c55
AX
24301 rm -Rf build
24302
24303
24304 if test $rc -ne 0; then :
24305
cae5b340 24306 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
24307$as_echo "no" >&6; }
24308
24309 else
24310 if test "x$enable_linux_builtin" != xyes; then
24311
cae5b340 24312 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
68d83c55
AX
24313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24314 rc=$?
24315 if test $rc -ne 0; then
24316 export=0
cae5b340
AX
24317 for file in fs/dcache.c; do
24318 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
68d83c55
AX
24319 "$LINUX/$file" 2>/dev/null
24320 rc=$?
24321 if test $rc -eq 0; then
24322 export=1
24323 break;
24324 fi
24325 done
24326 if test $export -eq 0; then :
24327 rc=1
24328 else :
24329 rc=0
24330 fi
24331 else :
24332 rc=0
24333 fi
24334
24335 fi
24336 if test $rc -ne 0; then :
24337
cae5b340 24338 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
24339$as_echo "no" >&6; }
24340
24341 else :
4d815aed 24342
cae5b340 24343 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
24344$as_echo "yes" >&6; }
24345
cae5b340
AX
24346cat >>confdefs.h <<\_ACEOF
24347#define HAVE_D_SET_D_OP 1
24348_ACEOF
68d83c55
AX
24349
24350
24351 fi
24352 fi
24353
24354
22929307 24355
cae5b340
AX
24356 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
24357$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22929307 24358
68d83c55 24359
cae5b340
AX
24360cat confdefs.h - <<_ACEOF >conftest.c
24361/* confdefs.h. */
24362_ACEOF
24363cat confdefs.h >>conftest.$ac_ext
24364cat >>conftest.$ac_ext <<_ACEOF
24365/* end confdefs.h. */
68d83c55
AX
24366
24367
cae5b340 24368 #include <linux/dcache.h>
42f7b73b 24369 #include <linux/sched.h>
68d83c55 24370
cae5b340
AX
24371 int revalidate (struct dentry *dentry,
24372 struct nameidata *nidata) { return 0; }
68d83c55 24373
cae5b340
AX
24374 static const struct dentry_operations
24375 dops __attribute__ ((unused)) = {
24376 .d_revalidate = revalidate,
24377 };
68d83c55
AX
24378
24379int
24380main (void)
24381{
24382
68d83c55
AX
24383
24384 ;
24385 return 0;
24386}
24387
24388_ACEOF
24389
24390
24391
24392cat - <<_ACEOF >conftest.h
24393
24394_ACEOF
24395
24396
24397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24398 echo "obj-m := conftest.o" >build/Makefile
24399 modpost_flag=''
24400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
cae5b340
AX
24405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
cae5b340
AX
24410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412
24413 { $as_echo "$as_me:$LINENO: result: yes" >&5
24414$as_echo "yes" >&6; }
24415
24416cat >>confdefs.h <<\_ACEOF
24417#define HAVE_D_REVALIDATE_NAMEIDATA 1
24418_ACEOF
24419
24420
e10b0808 24421else
4d815aed
AX
24422 $as_echo "$as_me: failed program was:" >&5
24423sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
24424
24425 { $as_echo "$as_me:$LINENO: result: no" >&5
24426$as_echo "no" >&6; }
24427
ea04106b
AX
24428
24429
68d83c55 24430fi
cae5b340 24431
68d83c55 24432 rm -Rf build
ea04106b 24433
ea04106b 24434
68d83c55
AX
24435
24436
cae5b340
AX
24437 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
24438$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
68d83c55
AX
24439
24440
24441cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24442/* confdefs.h. */
24443_ACEOF
24444cat confdefs.h >>conftest.$ac_ext
24445cat >>conftest.$ac_ext <<_ACEOF
24446/* end confdefs.h. */
68d83c55
AX
24447
24448
cae5b340
AX
24449 #include <linux/dcache.h>
24450
24451 const struct dentry_operations test_d_op = {
24452 .d_revalidate = NULL,
24453 };
ea04106b 24454
4d815aed
AX
24455int
24456main (void)
24457{
ea04106b 24458
cae5b340
AX
24459 struct dentry d __attribute__ ((unused));
24460
24461 d.d_op = &test_d_op;
ea04106b 24462
4d815aed
AX
24463 ;
24464 return 0;
24465}
ea04106b 24466
4d815aed 24467_ACEOF
ea04106b
AX
24468
24469
ea04106b 24470
4d815aed 24471cat - <<_ACEOF >conftest.h
ea04106b 24472
4d815aed 24473_ACEOF
ea04106b 24474
ea04106b 24475
4d815aed
AX
24476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24477 echo "obj-m := conftest.o" >build/Makefile
24478 modpost_flag=''
24479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24480 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
cae5b340
AX
24484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
cae5b340
AX
24489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; }; then
68d83c55 24491
cae5b340
AX
24492 { $as_echo "$as_me:$LINENO: result: yes" >&5
24493$as_echo "yes" >&6; }
68d83c55 24494
cae5b340
AX
24495cat >>confdefs.h <<\_ACEOF
24496#define HAVE_CONST_DENTRY_OPERATIONS 1
24497_ACEOF
68d83c55 24498
68d83c55 24499
cae5b340
AX
24500else
24501 $as_echo "$as_me: failed program was:" >&5
24502sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 24503
cae5b340 24504 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 24505$as_echo "no" >&6; }
68d83c55 24506
ea04106b
AX
24507
24508
cae5b340 24509fi
ea04106b 24510
cae5b340 24511 rm -Rf build
ea04106b
AX
24512
24513
ea04106b 24514
cae5b340
AX
24515 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
24516$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b 24517
e10b0808 24518
ea04106b 24519
4d815aed 24520cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24521/* confdefs.h. */
24522_ACEOF
24523cat confdefs.h >>conftest.$ac_ext
24524cat >>conftest.$ac_ext <<_ACEOF
24525/* end confdefs.h. */
ea04106b 24526
ea04106b 24527
cae5b340 24528 #include <linux/mm.h>
ea04106b 24529
e10b0808 24530int
4d815aed 24531main (void)
e10b0808 24532{
4d815aed 24533
cae5b340 24534 truncate_setsize(NULL, 0);
22929307
AX
24535
24536 ;
24537 return 0;
24538}
24539
24540_ACEOF
24541
24542
24543
24544cat - <<_ACEOF >conftest.h
24545
24546_ACEOF
24547
24548
24549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24550 echo "obj-m := conftest.o" >build/Makefile
24551 modpost_flag=''
24552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24553 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
cae5b340
AX
24557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24560 (eval $ac_try) 2>&5
24561 ac_status=$?
cae5b340
AX
24562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); }; }; then
22929307
AX
24564 rc=0
24565else
24566 $as_echo "$as_me: failed program was:" >&5
24567sed 's/^/| /' conftest.$ac_ext >&5
24568 rc=1
24569
24570
24571fi
cae5b340 24572
22929307
AX
24573 rm -Rf build
24574
24575
24576 if test $rc -ne 0; then :
24577
cae5b340 24578 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24579$as_echo "no" >&6; }
24580
24581 else
24582 if test "x$enable_linux_builtin" != xyes; then
24583
cae5b340 24584 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22929307
AX
24585 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24586 rc=$?
24587 if test $rc -ne 0; then
24588 export=0
cae5b340
AX
24589 for file in mm/truncate.c; do
24590 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22929307
AX
24591 "$LINUX/$file" 2>/dev/null
24592 rc=$?
24593 if test $rc -eq 0; then
24594 export=1
24595 break;
24596 fi
24597 done
24598 if test $export -eq 0; then :
24599 rc=1
24600 else :
24601 rc=0
24602 fi
24603 else :
24604 rc=0
24605 fi
24606
24607 fi
24608 if test $rc -ne 0; then :
24609
cae5b340 24610 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24611$as_echo "no" >&6; }
24612
24613 else :
24614
cae5b340 24615 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24616$as_echo "yes" >&6; }
24617
cae5b340
AX
24618cat >>confdefs.h <<\_ACEOF
24619#define HAVE_TRUNCATE_SETSIZE 1
24620_ACEOF
22929307
AX
24621
24622
24623 fi
24624 fi
24625
24626
24627
cae5b340
AX
24628 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
24629$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22929307
AX
24630
24631
24632cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24633/* confdefs.h. */
24634_ACEOF
24635cat confdefs.h >>conftest.$ac_ext
24636cat >>conftest.$ac_ext <<_ACEOF
24637/* end confdefs.h. */
22929307
AX
24638
24639
cae5b340 24640 #include <linux/security.h>
22929307
AX
24641
24642int
24643main (void)
24644{
24645
cae5b340
AX
24646 struct inode *ip __attribute__ ((unused)) = NULL;
24647 struct inode *dip __attribute__ ((unused)) = NULL;
24648 const struct qstr *str __attribute__ ((unused)) = NULL;
24649 char *name __attribute__ ((unused)) = NULL;
24650 void *value __attribute__ ((unused)) = NULL;
24651 size_t len __attribute__ ((unused)) = 0;
24652
24653 security_inode_init_security(ip, dip, str, &name, &value, &len);
22929307
AX
24654
24655 ;
24656 return 0;
24657}
24658
24659_ACEOF
24660
24661
24662
24663cat - <<_ACEOF >conftest.h
24664
24665_ACEOF
24666
24667
24668 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24669 echo "obj-m := conftest.o" >build/Makefile
24670 modpost_flag=''
24671 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24672 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
cae5b340
AX
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
cae5b340
AX
24681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
22929307 24683
cae5b340 24684 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24685$as_echo "yes" >&6; }
24686
cae5b340
AX
24687cat >>confdefs.h <<\_ACEOF
24688#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
24689_ACEOF
22929307
AX
24690
24691
24692else
24693 $as_echo "$as_me: failed program was:" >&5
24694sed 's/^/| /' conftest.$ac_ext >&5
24695
cae5b340 24696 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24697$as_echo "no" >&6; }
24698
24699
24700
24701fi
cae5b340 24702
22929307
AX
24703 rm -Rf build
24704
24705
24706
24707
cae5b340
AX
24708 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
24709$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22929307
AX
24710
24711
24712cat confdefs.h - <<_ACEOF >conftest.c
cae5b340 24713/* confdefs.h. */
22929307 24714_ACEOF
cae5b340
AX
24715cat confdefs.h >>conftest.$ac_ext
24716cat >>conftest.$ac_ext <<_ACEOF
24717/* end confdefs.h. */
22929307
AX
24718
24719
cae5b340 24720 #include <linux/security.h>
22929307
AX
24721
24722int
24723main (void)
24724{
24725
cae5b340
AX
24726 struct inode *ip __attribute__ ((unused)) = NULL;
24727 struct inode *dip __attribute__ ((unused)) = NULL;
24728 const struct qstr *str __attribute__ ((unused)) = NULL;
24729 initxattrs func __attribute__ ((unused)) = NULL;
24730
24731 security_inode_init_security(ip, dip, str, func, NULL);
22929307
AX
24732
24733 ;
24734 return 0;
24735}
24736
24737_ACEOF
24738
24739
24740
24741cat - <<_ACEOF >conftest.h
24742
24743_ACEOF
24744
24745
24746 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24747 echo "obj-m := conftest.o" >build/Makefile
24748 modpost_flag=''
24749 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24750 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24752 (eval $ac_try) 2>&5
24753 ac_status=$?
cae5b340
AX
24754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
cae5b340
AX
24759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
22929307 24761
cae5b340 24762 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24763$as_echo "yes" >&6; }
24764
cae5b340
AX
24765cat >>confdefs.h <<\_ACEOF
24766#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
24767_ACEOF
22929307
AX
24768
24769
24770else
24771 $as_echo "$as_me: failed program was:" >&5
24772sed 's/^/| /' conftest.$ac_ext >&5
24773
cae5b340 24774 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24775$as_echo "no" >&6; }
24776
24777
24778
24779fi
cae5b340 24780
22929307
AX
24781 rm -Rf build
24782
24783
24784
22929307 24785
42f7b73b
AX
24786 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
24787$as_echo_n "checking whether fst->mount() exists... " >&6; }
22929307
AX
24788
24789
24790cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24791/* confdefs.h. */
24792_ACEOF
24793cat confdefs.h >>conftest.$ac_ext
24794cat >>conftest.$ac_ext <<_ACEOF
24795/* end confdefs.h. */
22929307
AX
24796
24797
42f7b73b
AX
24798 #include <linux/fs.h>
24799
24800 static struct dentry *
24801 mount(struct file_system_type *fs_type, int flags,
24802 const char *osname, void *data) {
24803 struct dentry *d = NULL;
24804 return (d);
24805 }
24806
24807 static struct file_system_type fst __attribute__ ((unused)) = {
24808 .mount = mount,
24809 };
22929307
AX
24810
24811int
24812main (void)
24813{
24814
4d815aed 24815
e10b0808
AX
24816 ;
24817 return 0;
24818}
ea04106b 24819
4d815aed 24820_ACEOF
ea04106b 24821
ea04106b
AX
24822
24823
4d815aed 24824cat - <<_ACEOF >conftest.h
ea04106b 24825
ea04106b
AX
24826_ACEOF
24827
24828
4d815aed
AX
24829 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24830 echo "obj-m := conftest.o" >build/Makefile
24831 modpost_flag=''
24832 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 24833 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
cae5b340
AX
24837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24840 (eval $ac_try) 2>&5
24841 ac_status=$?
cae5b340
AX
24842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
42f7b73b
AX
24844
24845 { $as_echo "$as_me:$LINENO: result: yes" >&5
24846$as_echo "yes" >&6; }
24847
24848cat >>confdefs.h <<\_ACEOF
24849#define HAVE_FST_MOUNT 1
24850_ACEOF
24851
24852
e10b0808 24853else
4d815aed
AX
24854 $as_echo "$as_me: failed program was:" >&5
24855sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
24856
24857 { $as_echo "$as_me:$LINENO: result: no" >&5
24858$as_echo "no" >&6; }
24859
4d815aed
AX
24860
24861
e10b0808 24862fi
cae5b340 24863
4d815aed 24864 rm -Rf build
ea04106b
AX
24865
24866
4d815aed 24867
4d815aed 24868
42f7b73b
AX
24869 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
24870$as_echo_n "checking whether super_block has s_shrink... " >&6; }
4d815aed 24871
4d815aed 24872
42f7b73b
AX
24873cat confdefs.h - <<_ACEOF >conftest.c
24874/* confdefs.h. */
24875_ACEOF
24876cat confdefs.h >>conftest.$ac_ext
24877cat >>conftest.$ac_ext <<_ACEOF
24878/* end confdefs.h. */
24879
24880
24881 #include <linux/fs.h>
24882
24883 int shrink(struct shrinker *s, struct shrink_control *sc)
24884 { return 0; }
24885
24886 static const struct super_block
24887 sb __attribute__ ((unused)) = {
24888 .s_shrink.shrink = shrink,
24889 .s_shrink.seeks = DEFAULT_SEEKS,
24890 .s_shrink.batch = 0,
24891 };
24892
24893int
24894main (void)
24895{
24896
24897
24898 ;
24899 return 0;
24900}
24901
24902_ACEOF
24903
24904
24905
24906cat - <<_ACEOF >conftest.h
24907
24908_ACEOF
24909
24910
24911 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24912 echo "obj-m := conftest.o" >build/Makefile
24913 modpost_flag=''
24914 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24915 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926
24927 { $as_echo "$as_me:$LINENO: result: yes" >&5
24928$as_echo "yes" >&6; }
24929
24930cat >>confdefs.h <<\_ACEOF
24931#define HAVE_SHRINK 1
24932_ACEOF
24933
24934
24935
24936else
24937 $as_echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 24939
cae5b340 24940 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
24941$as_echo "no" >&6; }
24942
42f7b73b
AX
24943
24944
24945fi
24946
24947 rm -Rf build
24948
24949
24950
24951
24952 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24953$as_echo_n "checking whether shrink_control has nid... " >&6; }
24954
24955
24956cat confdefs.h - <<_ACEOF >conftest.c
24957/* confdefs.h. */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h. */
24962
24963
24964 #include <linux/fs.h>
24965
24966int
24967main (void)
24968{
24969
24970 struct shrink_control sc __attribute__ ((unused));
24971 unsigned long scnidsize __attribute__ ((unused)) =
24972 sizeof(sc.nid);
24973
24974 ;
24975 return 0;
24976}
24977
24978_ACEOF
24979
24980
24981
24982cat - <<_ACEOF >conftest.h
24983
24984_ACEOF
24985
24986
24987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24988 echo "obj-m := conftest.o" >build/Makefile
24989 modpost_flag=''
24990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; }; then
4d815aed 25002
cae5b340 25003 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
25004$as_echo "yes" >&6; }
25005
cae5b340 25006cat >>confdefs.h <<\_ACEOF
42f7b73b 25007#define SHRINK_CONTROL_HAS_NID 1
cae5b340 25008_ACEOF
4d815aed
AX
25009
25010
42f7b73b
AX
25011else
25012 $as_echo "$as_me: failed program was:" >&5
25013sed 's/^/| /' conftest.$ac_ext >&5
25014
25015 { $as_echo "$as_me:$LINENO: result: no" >&5
25016$as_echo "no" >&6; }
25017
25018
25019
25020fi
25021
25022 rm -Rf build
4d815aed
AX
25023
25024
25025
42f7b73b
AX
25026
25027 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
25028$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
4d815aed 25029
ea04106b 25030
68d83c55 25031cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
4d815aed
AX
25037
25038
68d83c55 25039 #include <linux/fs.h>
cae5b340 25040
42f7b73b
AX
25041int
25042main (void)
25043{
4d815aed 25044
42f7b73b
AX
25045 struct super_block sb __attribute__ ((unused));
25046
25047 INIT_LIST_HEAD(&sb.s_instances);
25048
25049 ;
25050 return 0;
25051}
25052
25053_ACEOF
25054
25055
25056
25057cat - <<_ACEOF >conftest.h
25058
25059_ACEOF
25060
25061
25062 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25063 echo "obj-m := conftest.o" >build/Makefile
25064 modpost_flag=''
25065 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25066 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077
25078 { $as_echo "$as_me:$LINENO: result: yes" >&5
25079$as_echo "yes" >&6; }
25080
25081cat >>confdefs.h <<\_ACEOF
25082#define HAVE_S_INSTANCES_LIST_HEAD 1
25083_ACEOF
25084
25085
25086else
25087 $as_echo "$as_me: failed program was:" >&5
25088sed 's/^/| /' conftest.$ac_ext >&5
25089
25090 { $as_echo "$as_me:$LINENO: result: no" >&5
25091$as_echo "no" >&6; }
25092
25093
25094
25095fi
25096
25097 rm -Rf build
25098
25099
25100
25101 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
25102$as_echo_n "checking whether super_block has s_d_op... " >&6; }
25103
25104
25105cat confdefs.h - <<_ACEOF >conftest.c
25106/* confdefs.h. */
25107_ACEOF
25108cat confdefs.h >>conftest.$ac_ext
25109cat >>conftest.$ac_ext <<_ACEOF
25110/* end confdefs.h. */
25111
25112
25113 #include <linux/fs.h>
4d815aed 25114
68d83c55
AX
25115int
25116main (void)
25117{
4d815aed 25118
42f7b73b
AX
25119 struct super_block sb __attribute__ ((unused));
25120 sb.s_d_op = NULL;
4d815aed 25121
68d83c55
AX
25122 ;
25123 return 0;
25124}
4d815aed 25125
68d83c55 25126_ACEOF
ea04106b 25127
ea04106b 25128
4d815aed 25129
68d83c55 25130cat - <<_ACEOF >conftest.h
4d815aed 25131
68d83c55 25132_ACEOF
4d815aed 25133
4d815aed 25134
68d83c55
AX
25135 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25136 echo "obj-m := conftest.o" >build/Makefile
25137 modpost_flag=''
25138 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25139 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
cae5b340
AX
25143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
cae5b340
AX
25148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
ea04106b 25150
cae5b340 25151 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 25152$as_echo "yes" >&6; }
ea04106b 25153
cae5b340 25154cat >>confdefs.h <<\_ACEOF
42f7b73b 25155#define HAVE_S_D_OP 1
cae5b340
AX
25156_ACEOF
25157
ea04106b 25158
4d815aed 25159else
68d83c55
AX
25160 $as_echo "$as_me: failed program was:" >&5
25161sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 25162
cae5b340 25163 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 25164$as_echo "no" >&6; }
ea04106b
AX
25165
25166
25167
cae5b340 25168fi
ea04106b 25169
cae5b340 25170 rm -Rf build
ea04106b 25171
68d83c55 25172
ea04106b 25173
ea04106b 25174
42f7b73b
AX
25175 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
25176$as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
25177
4d815aed 25178
4d815aed 25179
68d83c55 25180cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25181/* confdefs.h. */
25182_ACEOF
25183cat confdefs.h >>conftest.$ac_ext
25184cat >>conftest.$ac_ext <<_ACEOF
25185/* end confdefs.h. */
4d815aed 25186
4d815aed 25187
cae5b340 25188 #include <linux/fs.h>
42f7b73b 25189 struct super_block sb;
4d815aed 25190
68d83c55
AX
25191int
25192main (void)
25193{
4d815aed 25194
42f7b73b
AX
25195 char *name = "bdi";
25196 atomic_long_t zfs_bdi_seq;
25197 int error __attribute__((unused)) =
25198 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
4d815aed 25199
68d83c55
AX
25200 ;
25201 return 0;
25202}
4d815aed 25203
68d83c55 25204_ACEOF
4d815aed
AX
25205
25206
ea04106b 25207
68d83c55
AX
25208cat - <<_ACEOF >conftest.h
25209
25210_ACEOF
4d815aed 25211
4d815aed 25212
68d83c55
AX
25213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25214 echo "obj-m := conftest.o" >build/Makefile
25215 modpost_flag=''
25216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
cae5b340
AX
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
cae5b340
AX
25226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
42f7b73b 25228 rc=0
4d815aed 25229else
68d83c55
AX
25230 $as_echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 25232 rc=1
4d815aed 25233
4d815aed 25234
4d815aed 25235fi
68d83c55 25236
68d83c55 25237 rm -Rf build
4d815aed
AX
25238
25239
42f7b73b 25240 if test $rc -ne 0; then :
4d815aed 25241
42f7b73b
AX
25242 { $as_echo "$as_me:$LINENO: result: no" >&5
25243$as_echo "no" >&6; }
25244 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25245$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
4d815aed 25246
4d815aed 25247
4d815aed 25248
68d83c55 25249cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25250/* confdefs.h. */
25251_ACEOF
25252cat confdefs.h >>conftest.$ac_ext
25253cat >>conftest.$ac_ext <<_ACEOF
25254/* end confdefs.h. */
4d815aed 25255
4d815aed 25256
42f7b73b
AX
25257 #include <linux/backing-dev.h>
25258 struct backing_dev_info bdi;
4d815aed 25259
4d815aed 25260int
68d83c55 25261main (void)
4d815aed 25262{
68d83c55 25263
42f7b73b
AX
25264 char *name = "bdi";
25265 int error __attribute__((unused)) =
25266 bdi_setup_and_register(&bdi, name);
68d83c55 25267
4d815aed
AX
25268 ;
25269 return 0;
25270}
68d83c55 25271
4d815aed 25272_ACEOF
68d83c55
AX
25273
25274
25275
25276cat - <<_ACEOF >conftest.h
25277
4d815aed
AX
25278_ACEOF
25279
4d815aed 25280
68d83c55
AX
25281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25282 echo "obj-m := conftest.o" >build/Makefile
25283 modpost_flag=''
25284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25285 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
cae5b340
AX
25289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25292 (eval $ac_try) 2>&5
25293 ac_status=$?
cae5b340
AX
25294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; }; then
42f7b73b 25296 rc=0
cae5b340
AX
25297else
25298 $as_echo "$as_me: failed program was:" >&5
25299sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 25300 rc=1
4d815aed 25301
cae5b340
AX
25302
25303fi
25304
25305 rm -Rf build
25306
25307
42f7b73b
AX
25308 if test $rc -ne 0; then :
25309
25310 { $as_echo "$as_me:$LINENO: result: no" >&5
25311$as_echo "no" >&6; }
25312 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25313$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
cae5b340 25314
22929307
AX
25315
25316
25317cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25318/* confdefs.h. */
25319_ACEOF
25320cat confdefs.h >>conftest.$ac_ext
25321cat >>conftest.$ac_ext <<_ACEOF
25322/* end confdefs.h. */
22929307
AX
25323
25324
42f7b73b
AX
25325 #include <linux/backing-dev.h>
25326 struct backing_dev_info bdi;
22929307
AX
25327
25328int
25329main (void)
25330{
25331
42f7b73b
AX
25332 char *name = "bdi";
25333 unsigned int cap = BDI_CAP_MAP_COPY;
25334 int error __attribute__((unused)) =
25335 bdi_setup_and_register(&bdi, name, cap);
22929307
AX
25336
25337 ;
25338 return 0;
25339}
25340
25341_ACEOF
25342
25343
25344
25345cat - <<_ACEOF >conftest.h
25346
25347_ACEOF
25348
25349
25350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25351 echo "obj-m := conftest.o" >build/Makefile
25352 modpost_flag=''
25353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
cae5b340
AX
25358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
25361 (eval $ac_try) 2>&5
25362 ac_status=$?
cae5b340
AX
25363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; }; then
42f7b73b
AX
25365 rc=0
25366else
25367 $as_echo "$as_me: failed program was:" >&5
25368sed 's/^/| /' conftest.$ac_ext >&5
25369 rc=1
22929307 25370
22929307 25371
42f7b73b 25372fi
22929307 25373
42f7b73b 25374 rm -Rf build
22929307 25375
22929307 25376
42f7b73b
AX
25377 if test $rc -ne 0; then :
25378
25379 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
25380$as_echo "no" >&6; }
25381
42f7b73b
AX
25382 else
25383 if test "x$enable_linux_builtin" != xyes; then
22929307 25384
42f7b73b
AX
25385 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25386 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25387 rc=$?
25388 if test $rc -ne 0; then
25389 export=0
25390 for file in mm/backing-dev.c; do
25391 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25392 "$LINUX/$file" 2>/dev/null
25393 rc=$?
25394 if test $rc -eq 0; then
25395 export=1
25396 break;
25397 fi
25398 done
25399 if test $export -eq 0; then :
25400 rc=1
25401 else :
25402 rc=0
25403 fi
25404 else :
25405 rc=0
25406 fi
22929307 25407
42f7b73b
AX
25408 fi
25409 if test $rc -ne 0; then :
68d83c55 25410
42f7b73b
AX
25411 { $as_echo "$as_me:$LINENO: result: no" >&5
25412$as_echo "no" >&6; }
4d815aed 25413
42f7b73b 25414 else :
4d815aed 25415
42f7b73b
AX
25416 { $as_echo "$as_me:$LINENO: result: yes" >&5
25417$as_echo "yes" >&6; }
4d815aed 25418
42f7b73b
AX
25419cat >>confdefs.h <<\_ACEOF
25420#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25421_ACEOF
4d815aed 25422
42f7b73b
AX
25423
25424 fi
25425 fi
25426
25427
25428 else
25429 if test "x$enable_linux_builtin" != xyes; then
25430
25431 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25433 rc=$?
25434 if test $rc -ne 0; then
25435 export=0
25436 for file in mm/backing-dev.c; do
25437 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25438 "$LINUX/$file" 2>/dev/null
25439 rc=$?
25440 if test $rc -eq 0; then
25441 export=1
25442 break;
25443 fi
25444 done
25445 if test $export -eq 0; then :
25446 rc=1
25447 else :
25448 rc=0
25449 fi
25450 else :
25451 rc=0
25452 fi
25453
25454 fi
25455 if test $rc -ne 0; then :
25456
25457 { $as_echo "$as_me:$LINENO: result: no" >&5
25458$as_echo "no" >&6; }
25459 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25460$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
4d815aed 25461
68d83c55
AX
25462
25463
25464cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25465/* confdefs.h. */
25466_ACEOF
25467cat confdefs.h >>conftest.$ac_ext
25468cat >>conftest.$ac_ext <<_ACEOF
25469/* end confdefs.h. */
68d83c55
AX
25470
25471
42f7b73b
AX
25472 #include <linux/backing-dev.h>
25473 struct backing_dev_info bdi;
68d83c55 25474
4d815aed 25475int
68d83c55 25476main (void)
4d815aed 25477{
68d83c55 25478
42f7b73b
AX
25479 char *name = "bdi";
25480 unsigned int cap = BDI_CAP_MAP_COPY;
25481 int error __attribute__((unused)) =
25482 bdi_setup_and_register(&bdi, name, cap);
68d83c55 25483
4d815aed
AX
25484 ;
25485 return 0;
25486}
68d83c55 25487
4d815aed 25488_ACEOF
68d83c55
AX
25489
25490
25491
25492cat - <<_ACEOF >conftest.h
25493
4d815aed
AX
25494_ACEOF
25495
68d83c55
AX
25496
25497 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25498 echo "obj-m := conftest.o" >build/Makefile
25499 modpost_flag=''
25500 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25501 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25503 (eval $ac_try) 2>&5
25504 ac_status=$?
cae5b340
AX
25505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
cae5b340
AX
25510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 rc=0
4d815aed 25513else
68d83c55
AX
25514 $as_echo "$as_me: failed program was:" >&5
25515sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25516 rc=1
4d815aed
AX
25517
25518
68d83c55 25519fi
cae5b340 25520
68d83c55 25521 rm -Rf build
4d815aed
AX
25522
25523
cae5b340 25524 if test $rc -ne 0; then :
4d815aed 25525
42f7b73b
AX
25526 { $as_echo "$as_me:$LINENO: result: no" >&5
25527$as_echo "no" >&6; }
25528
25529 else
25530 if test "x$enable_linux_builtin" != xyes; then
25531
25532 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25533 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25534 rc=$?
25535 if test $rc -ne 0; then
25536 export=0
25537 for file in mm/backing-dev.c; do
25538 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25539 "$LINUX/$file" 2>/dev/null
25540 rc=$?
25541 if test $rc -eq 0; then
25542 export=1
25543 break;
25544 fi
25545 done
25546 if test $export -eq 0; then :
25547 rc=1
25548 else :
25549 rc=0
25550 fi
25551 else :
25552 rc=0
25553 fi
25554
25555 fi
25556 if test $rc -ne 0; then :
25557
25558 { $as_echo "$as_me:$LINENO: result: no" >&5
25559$as_echo "no" >&6; }
25560
25561 else :
25562
25563 { $as_echo "$as_me:$LINENO: result: yes" >&5
25564$as_echo "yes" >&6; }
25565
25566cat >>confdefs.h <<\_ACEOF
25567#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25568_ACEOF
25569
25570
25571 fi
25572 fi
25573
25574
25575 else :
25576
25577 { $as_echo "$as_me:$LINENO: result: yes" >&5
25578$as_echo "yes" >&6; }
25579
25580cat >>confdefs.h <<\_ACEOF
25581#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25582_ACEOF
25583
25584
25585 fi
25586 fi
25587
25588
25589 else
25590 if test "x$enable_linux_builtin" != xyes; then
25591
25592 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
25593 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25594 rc=$?
25595 if test $rc -ne 0; then
25596 export=0
25597 for file in fs/super.c; do
25598 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
25599 "$LINUX/$file" 2>/dev/null
25600 rc=$?
25601 if test $rc -eq 0; then
25602 export=1
25603 break;
25604 fi
25605 done
25606 if test $export -eq 0; then :
25607 rc=1
25608 else :
25609 rc=0
25610 fi
25611 else :
25612 rc=0
25613 fi
25614
25615 fi
25616 if test $rc -ne 0; then :
25617
cae5b340
AX
25618 { $as_echo "$as_me:$LINENO: result: no" >&5
25619$as_echo "no" >&6; }
25620 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25621$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
4d815aed 25622
4d815aed 25623
4d815aed 25624
68d83c55 25625cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25626/* confdefs.h. */
25627_ACEOF
25628cat confdefs.h >>conftest.$ac_ext
25629cat >>conftest.$ac_ext <<_ACEOF
25630/* end confdefs.h. */
4d815aed
AX
25631
25632
cae5b340
AX
25633 #include <linux/backing-dev.h>
25634 struct backing_dev_info bdi;
4d815aed 25635
4d815aed 25636int
68d83c55 25637main (void)
4d815aed 25638{
68d83c55 25639
cae5b340
AX
25640 char *name = "bdi";
25641 int error __attribute__((unused)) =
25642 bdi_setup_and_register(&bdi, name);
68d83c55 25643
4d815aed
AX
25644 ;
25645 return 0;
25646}
68d83c55 25647
4d815aed 25648_ACEOF
68d83c55
AX
25649
25650
25651
25652cat - <<_ACEOF >conftest.h
25653
4d815aed
AX
25654_ACEOF
25655
68d83c55
AX
25656
25657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25658 echo "obj-m := conftest.o" >build/Makefile
25659 modpost_flag=''
25660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25661 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
cae5b340
AX
25665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
cae5b340
AX
25670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25672 rc=0
4d815aed 25673else
68d83c55
AX
25674 $as_echo "$as_me: failed program was:" >&5
25675sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25676 rc=1
68d83c55
AX
25677
25678
4d815aed 25679fi
cae5b340 25680
68d83c55 25681 rm -Rf build
4d815aed
AX
25682
25683
cae5b340 25684 if test $rc -ne 0; then :
4d815aed 25685
cae5b340
AX
25686 { $as_echo "$as_me:$LINENO: result: no" >&5
25687$as_echo "no" >&6; }
25688 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25689$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
68d83c55 25690
68d83c55
AX
25691
25692
25693cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25694/* confdefs.h. */
25695_ACEOF
25696cat confdefs.h >>conftest.$ac_ext
25697cat >>conftest.$ac_ext <<_ACEOF
25698/* end confdefs.h. */
68d83c55
AX
25699
25700
cae5b340
AX
25701 #include <linux/backing-dev.h>
25702 struct backing_dev_info bdi;
68d83c55 25703
4d815aed 25704int
68d83c55 25705main (void)
4d815aed 25706{
68d83c55 25707
cae5b340
AX
25708 char *name = "bdi";
25709 unsigned int cap = BDI_CAP_MAP_COPY;
25710 int error __attribute__((unused)) =
25711 bdi_setup_and_register(&bdi, name, cap);
68d83c55 25712
4d815aed
AX
25713 ;
25714 return 0;
25715}
68d83c55 25716
4d815aed
AX
25717_ACEOF
25718
4d815aed 25719
4d815aed 25720
68d83c55 25721cat - <<_ACEOF >conftest.h
4d815aed 25722
68d83c55 25723_ACEOF
4d815aed
AX
25724
25725
68d83c55
AX
25726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25727 echo "obj-m := conftest.o" >build/Makefile
25728 modpost_flag=''
25729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25730 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
cae5b340
AX
25734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
cae5b340
AX
25739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25741 rc=0
25742else
25743 $as_echo "$as_me: failed program was:" >&5
25744sed 's/^/| /' conftest.$ac_ext >&5
25745 rc=1
4d815aed
AX
25746
25747
cae5b340
AX
25748fi
25749
25750 rm -Rf build
4d815aed
AX
25751
25752
cae5b340 25753 if test $rc -ne 0; then :
68d83c55 25754
cae5b340 25755 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
25756$as_echo "no" >&6; }
25757
cae5b340
AX
25758 else
25759 if test "x$enable_linux_builtin" != xyes; then
25760
25761 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25762 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25763 rc=$?
25764 if test $rc -ne 0; then
25765 export=0
25766 for file in mm/backing-dev.c; do
25767 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25768 "$LINUX/$file" 2>/dev/null
25769 rc=$?
25770 if test $rc -eq 0; then
25771 export=1
25772 break;
25773 fi
25774 done
25775 if test $export -eq 0; then :
25776 rc=1
25777 else :
25778 rc=0
25779 fi
25780 else :
25781 rc=0
25782 fi
68d83c55 25783
cae5b340
AX
25784 fi
25785 if test $rc -ne 0; then :
68d83c55 25786
cae5b340
AX
25787 { $as_echo "$as_me:$LINENO: result: no" >&5
25788$as_echo "no" >&6; }
4d815aed 25789
cae5b340 25790 else :
4d815aed 25791
cae5b340
AX
25792 { $as_echo "$as_me:$LINENO: result: yes" >&5
25793$as_echo "yes" >&6; }
4d815aed 25794
cae5b340
AX
25795cat >>confdefs.h <<\_ACEOF
25796#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25797_ACEOF
4d815aed
AX
25798
25799
cae5b340
AX
25800 fi
25801 fi
4d815aed
AX
25802
25803
cae5b340
AX
25804 else
25805 if test "x$enable_linux_builtin" != xyes; then
4d815aed 25806
cae5b340
AX
25807 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25809 rc=$?
25810 if test $rc -ne 0; then
25811 export=0
25812 for file in mm/backing-dev.c; do
25813 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25814 "$LINUX/$file" 2>/dev/null
25815 rc=$?
25816 if test $rc -eq 0; then
25817 export=1
25818 break;
25819 fi
25820 done
25821 if test $export -eq 0; then :
25822 rc=1
25823 else :
25824 rc=0
25825 fi
25826 else :
25827 rc=0
25828 fi
25829
25830 fi
25831 if test $rc -ne 0; then :
25832
25833 { $as_echo "$as_me:$LINENO: result: no" >&5
25834$as_echo "no" >&6; }
25835 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25836$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25837
25838
25839
25840cat confdefs.h - <<_ACEOF >conftest.c
25841/* confdefs.h. */
25842_ACEOF
25843cat confdefs.h >>conftest.$ac_ext
25844cat >>conftest.$ac_ext <<_ACEOF
25845/* end confdefs.h. */
4d815aed 25846
cae5b340
AX
25847
25848 #include <linux/backing-dev.h>
25849 struct backing_dev_info bdi;
4d815aed 25850
4d815aed 25851int
68d83c55 25852main (void)
4d815aed 25853{
68d83c55 25854
cae5b340
AX
25855 char *name = "bdi";
25856 unsigned int cap = BDI_CAP_MAP_COPY;
25857 int error __attribute__((unused)) =
25858 bdi_setup_and_register(&bdi, name, cap);
68d83c55 25859
4d815aed
AX
25860 ;
25861 return 0;
25862}
68d83c55 25863
4d815aed 25864_ACEOF
68d83c55
AX
25865
25866
25867
25868cat - <<_ACEOF >conftest.h
25869
25870_ACEOF
25871
25872
25873 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25874 echo "obj-m := conftest.o" >build/Makefile
25875 modpost_flag=''
25876 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 25877 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
cae5b340
AX
25881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
cae5b340
AX
25886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; }; then
25888 rc=0
68d83c55
AX
25889else
25890 $as_echo "$as_me: failed program was:" >&5
25891sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25892 rc=1
68d83c55
AX
25893
25894
25895fi
cae5b340 25896
68d83c55
AX
25897 rm -Rf build
25898
25899
cae5b340
AX
25900 if test $rc -ne 0; then :
25901
25902 { $as_echo "$as_me:$LINENO: result: no" >&5
25903$as_echo "no" >&6; }
25904
25905 else
25906 if test "x$enable_linux_builtin" != xyes; then
25907
25908 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25909 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25910 rc=$?
25911 if test $rc -ne 0; then
25912 export=0
25913 for file in mm/backing-dev.c; do
25914 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25915 "$LINUX/$file" 2>/dev/null
25916 rc=$?
25917 if test $rc -eq 0; then
25918 export=1
25919 break;
25920 fi
25921 done
25922 if test $export -eq 0; then :
25923 rc=1
25924 else :
25925 rc=0
25926 fi
25927 else :
25928 rc=0
25929 fi
25930
25931 fi
25932 if test $rc -ne 0; then :
25933
25934 { $as_echo "$as_me:$LINENO: result: no" >&5
25935$as_echo "no" >&6; }
25936
25937 else :
25938
25939 { $as_echo "$as_me:$LINENO: result: yes" >&5
25940$as_echo "yes" >&6; }
25941
25942cat >>confdefs.h <<\_ACEOF
25943#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25944_ACEOF
25945
25946
25947 fi
25948 fi
25949
25950
25951 else :
25952
25953 { $as_echo "$as_me:$LINENO: result: yes" >&5
25954$as_echo "yes" >&6; }
25955
25956cat >>confdefs.h <<\_ACEOF
25957#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25958_ACEOF
25959
25960
25961 fi
25962 fi
25963
25964
25965 else :
25966
25967 { $as_echo "$as_me:$LINENO: result: yes" >&5
25968$as_echo "yes" >&6; }
25969
25970cat >>confdefs.h <<\_ACEOF
25971#define HAVE_SUPER_SETUP_BDI_NAME 1
25972_ACEOF
25973
25974
25975 fi
25976 fi
68d83c55
AX
25977
25978
cae5b340
AX
25979
25980 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25981$as_echo_n "checking whether set_nlink() is available... " >&6; }
68d83c55
AX
25982
25983
25984cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
68d83c55
AX
25990
25991
25992 #include <linux/fs.h>
68d83c55 25993
cae5b340
AX
25994int
25995main (void)
25996{
25997
25998 struct inode node;
25999 unsigned int link = 0;
26000 (void) set_nlink(&node, link);
26001
26002 ;
26003 return 0;
26004}
26005
26006_ACEOF
26007
26008
26009
26010cat - <<_ACEOF >conftest.h
26011
26012_ACEOF
26013
26014
26015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26016 echo "obj-m := conftest.o" >build/Makefile
26017 modpost_flag=''
26018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26019 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030
26031 { $as_echo "$as_me:$LINENO: result: yes" >&5
26032$as_echo "yes" >&6; }
26033
26034cat >>confdefs.h <<\_ACEOF
26035#define HAVE_SET_NLINK 1
26036_ACEOF
26037
26038
26039else
26040 $as_echo "$as_me: failed program was:" >&5
26041sed 's/^/| /' conftest.$ac_ext >&5
26042
26043 { $as_echo "$as_me:$LINENO: result: no" >&5
26044$as_echo "no" >&6; }
26045
26046
26047
26048fi
26049
26050 rm -Rf build
26051
26052
26053
26054
26055 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
26056$as_echo_n "checking whether elevator_change() is available... " >&6; }
26057 tmp_flags="$EXTRA_KCFLAGS"
26058 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
26059
26060
26061cat confdefs.h - <<_ACEOF >conftest.c
26062/* confdefs.h. */
26063_ACEOF
26064cat confdefs.h >>conftest.$ac_ext
26065cat >>conftest.$ac_ext <<_ACEOF
26066/* end confdefs.h. */
26067
26068
26069 #include <linux/blkdev.h>
26070 #include <linux/elevator.h>
68d83c55
AX
26071
26072int
26073main (void)
26074{
26075
cae5b340
AX
26076 int ret;
26077 struct request_queue *q = NULL;
26078 char *elevator = NULL;
26079 ret = elevator_change(q, elevator);
68d83c55
AX
26080
26081 ;
26082 return 0;
26083}
26084
26085_ACEOF
26086
26087
26088
26089cat - <<_ACEOF >conftest.h
26090
26091_ACEOF
26092
26093
26094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26095 echo "obj-m := conftest.o" >build/Makefile
26096 modpost_flag=''
26097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
cae5b340
AX
26102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
cae5b340
AX
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
68d83c55 26109
cae5b340 26110 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
26111$as_echo "yes" >&6; }
26112
cae5b340
AX
26113cat >>confdefs.h <<\_ACEOF
26114#define HAVE_ELEVATOR_CHANGE 1
26115_ACEOF
68d83c55
AX
26116
26117
26118else
26119 $as_echo "$as_me: failed program was:" >&5
26120sed 's/^/| /' conftest.$ac_ext >&5
26121
cae5b340 26122 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
26123$as_echo "no" >&6; }
26124
26125
26126
26127fi
cae5b340 26128
68d83c55
AX
26129 rm -Rf build
26130
26131
cae5b340
AX
26132 EXTRA_KCFLAGS="$tmp_flags"
26133
26134 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
26135$as_echo_n "checking whether sget() wants 5 args... " >&6; }
26136
26137
26138cat confdefs.h - <<_ACEOF >conftest.c
26139/* confdefs.h. */
26140_ACEOF
26141cat confdefs.h >>conftest.$ac_ext
26142cat >>conftest.$ac_ext <<_ACEOF
26143/* end confdefs.h. */
26144
26145
26146 #include <linux/fs.h>
26147
26148int
26149main (void)
26150{
26151
26152 struct file_system_type *type = NULL;
26153 int (*test)(struct super_block *,void *) = NULL;
26154 int (*set)(struct super_block *,void *) = NULL;
26155 int flags = 0;
26156 void *data = NULL;
26157 (void) sget(type, test, set, flags, data);
26158
26159 ;
26160 return 0;
26161}
26162
26163_ACEOF
26164
26165
26166
26167cat - <<_ACEOF >conftest.h
26168
26169_ACEOF
26170
26171
26172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26173 echo "obj-m := conftest.o" >build/Makefile
26174 modpost_flag=''
26175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26176 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); }; }; then
26187
26188 { $as_echo "$as_me:$LINENO: result: yes" >&5
26189$as_echo "yes" >&6; }
26190
26191cat >>confdefs.h <<\_ACEOF
26192#define HAVE_5ARG_SGET 1
26193_ACEOF
68d83c55 26194
cae5b340
AX
26195
26196else
26197 $as_echo "$as_me: failed program was:" >&5
26198sed 's/^/| /' conftest.$ac_ext >&5
26199
26200 { $as_echo "$as_me:$LINENO: result: no" >&5
26201$as_echo "no" >&6; }
26202
26203
26204
26205fi
26206
26207 rm -Rf build
26208
26209
26210
26211 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
26212$as_echo_n "checking whether lseek_execute() is available... " >&6; }
22929307
AX
26213
26214
26215
26216cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
26217/* confdefs.h. */
26218_ACEOF
26219cat confdefs.h >>conftest.$ac_ext
26220cat >>conftest.$ac_ext <<_ACEOF
26221/* end confdefs.h. */
22929307
AX
26222
26223
26224 #include <linux/fs.h>
26225
26226int
26227main (void)
26228{
26229
cae5b340
AX
26230 struct file *fp __attribute__ ((unused)) = NULL;
26231 struct inode *ip __attribute__ ((unused)) = NULL;
26232 loff_t offset __attribute__ ((unused)) = 0;
26233 loff_t maxsize __attribute__ ((unused)) = 0;
22929307 26234
cae5b340 26235 lseek_execute(fp, ip, offset, maxsize);
22929307
AX
26236
26237 ;
26238 return 0;
26239}
26240
26241_ACEOF
26242
26243
26244
26245cat - <<_ACEOF >conftest.h
26246
26247_ACEOF
26248
26249
26250 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26251 echo "obj-m := conftest.o" >build/Makefile
26252 modpost_flag=''
26253 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26254 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
cae5b340
AX
26258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
cae5b340
AX
26263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
22929307
AX
26265 rc=0
26266else
26267 $as_echo "$as_me: failed program was:" >&5
26268sed 's/^/| /' conftest.$ac_ext >&5
26269 rc=1
26270
26271
26272fi
cae5b340 26273
22929307
AX
26274 rm -Rf build
26275
26276
26277 if test $rc -ne 0; then :
26278
cae5b340 26279 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
26280$as_echo "no" >&6; }
26281
26282 else
26283 if test "x$enable_linux_builtin" != xyes; then
26284
cae5b340 26285 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22929307
AX
26286 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26287 rc=$?
26288 if test $rc -ne 0; then
26289 export=0
cae5b340
AX
26290 for file in fs/read_write.c; do
26291 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22929307
AX
26292 "$LINUX/$file" 2>/dev/null
26293 rc=$?
26294 if test $rc -eq 0; then
26295 export=1
26296 break;
26297 fi
26298 done
26299 if test $export -eq 0; then :
26300 rc=1
26301 else :
26302 rc=0
26303 fi
26304 else :
26305 rc=0
26306 fi
26307
26308 fi
26309 if test $rc -ne 0; then :
26310
cae5b340 26311 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
26312$as_echo "no" >&6; }
26313
26314 else :
26315
cae5b340 26316 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
26317$as_echo "yes" >&6; }
26318
cae5b340
AX
26319cat >>confdefs.h <<\_ACEOF
26320#define HAVE_LSEEK_EXECUTE 1
26321_ACEOF
22929307
AX
26322
26323
26324 fi
26325 fi
26326
26327
68d83c55 26328
cae5b340
AX
26329 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
26330$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
68d83c55 26331
68d83c55 26332
cae5b340
AX
26333cat confdefs.h - <<_ACEOF >conftest.c
26334/* confdefs.h. */
26335_ACEOF
26336cat confdefs.h >>conftest.$ac_ext
26337cat >>conftest.$ac_ext <<_ACEOF
26338/* end confdefs.h. */
68d83c55
AX
26339
26340
cae5b340
AX
26341 #include <linux/fs.h>
26342 int iterate(struct file *filp, struct dir_context * context)
26343 { return 0; }
68d83c55 26344
cae5b340
AX
26345 static const struct file_operations fops
26346 __attribute__ ((unused)) = {
26347 .iterate_shared = iterate,
26348 };
68d83c55 26349
cae5b340
AX
26350int
26351main (void)
26352{
68d83c55 26353
68d83c55 26354
cae5b340
AX
26355 ;
26356 return 0;
26357}
68d83c55 26358
cae5b340 26359_ACEOF
68d83c55
AX
26360
26361
26362
cae5b340 26363cat - <<_ACEOF >conftest.h
68d83c55 26364
cae5b340
AX
26365_ACEOF
26366
26367
26368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26369 echo "obj-m := conftest.o" >build/Makefile
26370 modpost_flag=''
26371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26372 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; }; then
26383
26384 { $as_echo "$as_me:$LINENO: result: yes" >&5
26385$as_echo "yes" >&6; }
26386
26387cat >>confdefs.h <<\_ACEOF
26388#define HAVE_VFS_ITERATE_SHARED 1
26389_ACEOF
68d83c55 26390
68d83c55 26391
68d83c55 26392else
cae5b340
AX
26393 $as_echo "$as_me: failed program was:" >&5
26394sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 26395
cae5b340
AX
26396 { $as_echo "$as_me:$LINENO: result: no" >&5
26397$as_echo "no" >&6; }
68d83c55 26398
42f7b73b 26399 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
cae5b340
AX
26400$as_echo_n "checking whether fops->iterate() is available... " >&6; }
26401
26402
26403cat confdefs.h - <<_ACEOF >conftest.c
26404/* confdefs.h. */
26405_ACEOF
26406cat confdefs.h >>conftest.$ac_ext
26407cat >>conftest.$ac_ext <<_ACEOF
26408/* end confdefs.h. */
26409
26410
26411 #include <linux/fs.h>
42f7b73b
AX
26412 int iterate(struct file *filp,
26413 struct dir_context *context) { return 0; }
cae5b340
AX
26414
26415 static const struct file_operations fops
26416 __attribute__ ((unused)) = {
26417 .iterate = iterate,
26418 };
26419
42f7b73b
AX
26420 #if defined(FMODE_KABI_ITERATE)
26421 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
26422 #endif
26423
cae5b340
AX
26424int
26425main (void)
26426{
26427
26428
26429 ;
26430 return 0;
26431}
26432
26433_ACEOF
26434
26435
26436
26437cat - <<_ACEOF >conftest.h
26438
26439_ACEOF
26440
26441
26442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26443 echo "obj-m := conftest.o" >build/Makefile
26444 modpost_flag=''
26445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26449 ac_status=$?
26450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457
26458 { $as_echo "$as_me:$LINENO: result: yes" >&5
26459$as_echo "yes" >&6; }
26460
26461cat >>confdefs.h <<\_ACEOF
26462#define HAVE_VFS_ITERATE 1
26463_ACEOF
68d83c55 26464
68d83c55 26465
68d83c55 26466else
cae5b340
AX
26467 $as_echo "$as_me: failed program was:" >&5
26468sed 's/^/| /' conftest.$ac_ext >&5
26469
26470 { $as_echo "$as_me:$LINENO: result: no" >&5
26471$as_echo "no" >&6; }
26472
26473 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
26474$as_echo_n "checking whether fops->readdir() is available... " >&6; }
26475
26476
26477cat confdefs.h - <<_ACEOF >conftest.c
26478/* confdefs.h. */
26479_ACEOF
26480cat confdefs.h >>conftest.$ac_ext
26481cat >>conftest.$ac_ext <<_ACEOF
26482/* end confdefs.h. */
26483
26484
26485 #include <linux/fs.h>
42f7b73b
AX
26486 int readdir(struct file *filp, void *entry,
26487 filldir_t func) { return 0; }
cae5b340
AX
26488
26489 static const struct file_operations fops
26490 __attribute__ ((unused)) = {
26491 .readdir = readdir,
26492 };
26493
26494int
26495main (void)
26496{
26497
26498
26499 ;
26500 return 0;
26501}
26502
26503_ACEOF
26504
26505
26506
26507cat - <<_ACEOF >conftest.h
26508
26509_ACEOF
26510
26511
26512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26513 echo "obj-m := conftest.o" >build/Makefile
26514 modpost_flag=''
26515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527
26528 { $as_echo "$as_me:$LINENO: result: yes" >&5
26529$as_echo "yes" >&6; }
26530
26531cat >>confdefs.h <<\_ACEOF
26532#define HAVE_VFS_READDIR 1
26533_ACEOF
26534
68d83c55 26535
68d83c55 26536else
cae5b340
AX
26537 $as_echo "$as_me: failed program was:" >&5
26538sed 's/^/| /' conftest.$ac_ext >&5
26539
42f7b73b
AX
26540 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
26541$as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
cae5b340
AX
26542 { (exit 1); exit 1; }; }
26543
68d83c55 26544
68d83c55
AX
26545
26546fi
26547
cae5b340
AX
26548 rm -Rf build
26549
26550
26551
26552
68d83c55 26553
68d83c55
AX
26554fi
26555
cae5b340 26556 rm -Rf build
68d83c55
AX
26557
26558
26559
68d83c55
AX
26560
26561
68d83c55
AX
26562fi
26563
cae5b340
AX
26564 rm -Rf build
26565
26566
26567
26568 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
26569$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
26570
26571
26572cat confdefs.h - <<_ACEOF >conftest.c
26573/* confdefs.h. */
26574_ACEOF
26575cat confdefs.h >>conftest.$ac_ext
26576cat >>conftest.$ac_ext <<_ACEOF
26577/* end confdefs.h. */
26578
26579
26580 #include <linux/fs.h>
26581
26582 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
26583 { return 0; }
26584 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
26585 { return 0; }
26586
26587 static const struct file_operations
26588 fops __attribute__ ((unused)) = {
26589 .read_iter = test_read,
26590 .write_iter = test_write,
26591 };
26592
26593int
26594main (void)
26595{
26596
26597
26598 ;
26599 return 0;
26600}
26601
26602_ACEOF
26603
26604
26605
26606cat - <<_ACEOF >conftest.h
26607
26608_ACEOF
26609
26610
26611 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26612 echo "obj-m := conftest.o" >build/Makefile
26613 modpost_flag=''
26614 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26615 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626
26627 { $as_echo "$as_me:$LINENO: result: yes" >&5
26628$as_echo "yes" >&6; }
26629
26630cat >>confdefs.h <<\_ACEOF
26631#define HAVE_VFS_RW_ITERATE 1
26632_ACEOF
26633
26634
047218e2
AX
26635 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
26636$as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
cae5b340
AX
26637
26638
26639cat confdefs.h - <<_ACEOF >conftest.c
26640/* confdefs.h. */
26641_ACEOF
26642cat confdefs.h >>conftest.$ac_ext
26643cat >>conftest.$ac_ext <<_ACEOF
26644/* end confdefs.h. */
26645
26646
26647 #include <linux/fs.h>
26648
26649int
26650main (void)
26651{
26652
047218e2
AX
26653 ssize_t ret __attribute__ ((unused));
26654 struct file *filp = NULL;
26655 char __user *rbuf = NULL;
26656 const char __user *wbuf = NULL;
26657 size_t len = 0;
26658 loff_t ppos;
26659
26660 ret = new_sync_read(filp, rbuf, len, &ppos);
26661 ret = new_sync_write(filp, wbuf, len, &ppos);
cae5b340
AX
26662
26663 ;
26664 return 0;
26665}
26666
26667_ACEOF
26668
26669
26670
26671cat - <<_ACEOF >conftest.h
26672
26673_ACEOF
26674
26675
26676 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26677 echo "obj-m := conftest.o" >build/Makefile
26678 modpost_flag=''
26679 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26680 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682 (eval $ac_try) 2>&5
26683 ac_status=$?
26684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; }; then
26691
26692 { $as_echo "$as_me:$LINENO: result: yes" >&5
26693$as_echo "yes" >&6; }
26694
26695cat >>confdefs.h <<\_ACEOF
26696#define HAVE_NEW_SYNC_READ 1
26697_ACEOF
68d83c55
AX
26698
26699
cae5b340
AX
26700else
26701 $as_echo "$as_me: failed program was:" >&5
26702sed 's/^/| /' conftest.$ac_ext >&5
26703
26704 { $as_echo "$as_me:$LINENO: result: no" >&5
26705$as_echo "no" >&6; }
26706
26707
26708
26709fi
26710
26711 rm -Rf build
26712
26713
26714
26715
26716else
26717 $as_echo "$as_me: failed program was:" >&5
26718sed 's/^/| /' conftest.$ac_ext >&5
26719
26720 { $as_echo "$as_me:$LINENO: result: no" >&5
26721$as_echo "no" >&6; }
26722
26723
26724
26725fi
26726
26727 rm -Rf build
26728
26729
26730
26731 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
26732$as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
26733
26734
26735cat confdefs.h - <<_ACEOF >conftest.c
26736/* confdefs.h. */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h. */
26741
26742
26743 #include <linux/fs.h>
26744
26745
26746int
26747main (void)
26748{
26749
26750 struct kiocb *iocb = NULL;
26751 struct iov_iter *iov = NULL;
26752 generic_write_checks(iocb, iov);
26753
26754 ;
26755 return 0;
26756}
26757
26758_ACEOF
26759
26760
26761
26762cat - <<_ACEOF >conftest.h
26763
26764_ACEOF
26765
26766
26767 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26768 echo "obj-m := conftest.o" >build/Makefile
26769 modpost_flag=''
26770 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26771 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
26782
26783 { $as_echo "$as_me:$LINENO: result: yes" >&5
26784$as_echo "yes" >&6; }
26785
26786cat >>confdefs.h <<\_ACEOF
26787#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26788_ACEOF
26789
26790
26791else
26792 $as_echo "$as_me: failed program was:" >&5
26793sed 's/^/| /' conftest.$ac_ext >&5
26794
26795 { $as_echo "$as_me:$LINENO: result: no" >&5
26796$as_echo "no" >&6; }
26797
26798
26799
26800fi
26801
26802 rm -Rf build
26803
26804
26805
26806
26807 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26808$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
26809
26810
26811cat confdefs.h - <<_ACEOF >conftest.c
26812/* confdefs.h. */
26813_ACEOF
26814cat confdefs.h >>conftest.$ac_ext
26815cat >>conftest.$ac_ext <<_ACEOF
26816/* end confdefs.h. */
26817
26818
26819 #include <linux/pagemap.h>
26820
26821int
26822main (void)
26823{
26824
26825 struct page page;
26826 kmap_atomic(&page);
26827
26828 ;
26829 return 0;
26830}
26831
26832_ACEOF
26833
26834
26835
26836cat - <<_ACEOF >conftest.h
26837
26838_ACEOF
26839
26840
26841 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26842 echo "obj-m := conftest.o" >build/Makefile
26843 modpost_flag=''
26844 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26845 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26856
26857 { $as_echo "$as_me:$LINENO: result: yes" >&5
26858$as_echo "yes" >&6; }
26859
26860cat >>confdefs.h <<\_ACEOF
26861#define HAVE_1ARG_KMAP_ATOMIC 1
26862_ACEOF
26863
26864
26865else
26866 $as_echo "$as_me: failed program was:" >&5
26867sed 's/^/| /' conftest.$ac_ext >&5
26868
26869 { $as_echo "$as_me:$LINENO: result: no" >&5
26870$as_echo "no" >&6; }
26871
26872
26873
26874fi
26875
26876 rm -Rf build
26877
26878
26879
26880
26881 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26882$as_echo_n "checking whether follow_down_one() is available... " >&6; }
26883
26884
26885cat confdefs.h - <<_ACEOF >conftest.c
26886/* confdefs.h. */
26887_ACEOF
26888cat confdefs.h >>conftest.$ac_ext
26889cat >>conftest.$ac_ext <<_ACEOF
26890/* end confdefs.h. */
26891
26892
26893 #include <linux/namei.h>
26894
26895int
26896main (void)
26897{
26898
26899 struct path *p = NULL;
26900 follow_down_one(p);
26901
26902 ;
26903 return 0;
26904}
26905
26906_ACEOF
26907
26908
26909
26910cat - <<_ACEOF >conftest.h
26911
26912_ACEOF
26913
26914
26915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26916 echo "obj-m := conftest.o" >build/Makefile
26917 modpost_flag=''
26918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26919 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26930
26931 { $as_echo "$as_me:$LINENO: result: yes" >&5
26932$as_echo "yes" >&6; }
26933
26934cat >>confdefs.h <<\_ACEOF
26935#define HAVE_FOLLOW_DOWN_ONE 1
26936_ACEOF
26937
26938
26939else
26940 $as_echo "$as_me: failed program was:" >&5
26941sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 { $as_echo "$as_me:$LINENO: result: no" >&5
26944$as_echo "no" >&6; }
26945
26946
26947
26948fi
26949
26950 rm -Rf build
26951
26952
26953
26954
26955 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26956$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26957
26958
26959cat confdefs.h - <<_ACEOF >conftest.c
26960/* confdefs.h. */
26961_ACEOF
26962cat confdefs.h >>conftest.$ac_ext
26963cat >>conftest.$ac_ext <<_ACEOF
26964/* end confdefs.h. */
26965
26966
26967 #include <linux/blkdev.h>
26968
26969 int make_request(struct request_queue *q, struct bio *bio)
26970 {
26971 return (0);
26972 }
26973
26974int
26975main (void)
26976{
26977
26978 blk_queue_make_request(NULL, &make_request);
26979
26980 ;
26981 return 0;
26982}
26983
26984_ACEOF
26985
26986
26987
26988cat - <<_ACEOF >conftest.h
26989
26990_ACEOF
26991
26992
26993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26994 echo "obj-m := conftest.o" >build/Makefile
26995 modpost_flag=''
26996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 26997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27000 ac_status=$?
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008
27009 { $as_echo "$as_me:$LINENO: result: yes" >&5
27010$as_echo "yes" >&6; }
27011
27012cat >>confdefs.h <<\_ACEOF
27013#define MAKE_REQUEST_FN_RET int
27014_ACEOF
27015
27016
27017cat >>confdefs.h <<\_ACEOF
27018#define HAVE_MAKE_REQUEST_FN_RET_INT 1
27019_ACEOF
27020
27021
27022else
27023 $as_echo "$as_me: failed program was:" >&5
27024sed 's/^/| /' conftest.$ac_ext >&5
27025
27026 { $as_echo "$as_me:$LINENO: result: no" >&5
27027$as_echo "no" >&6; }
27028 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
27029$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
27030
27031
27032cat confdefs.h - <<_ACEOF >conftest.c
27033/* confdefs.h. */
27034_ACEOF
27035cat confdefs.h >>conftest.$ac_ext
27036cat >>conftest.$ac_ext <<_ACEOF
27037/* end confdefs.h. */
27038
27039
27040 #include <linux/blkdev.h>
27041
27042 void make_request(struct request_queue *q, struct bio *bio)
27043 {
27044 return;
27045 }
27046
27047int
27048main (void)
27049{
27050
27051 blk_queue_make_request(NULL, &make_request);
27052
27053 ;
27054 return 0;
27055}
27056
27057_ACEOF
27058
27059
27060
27061cat - <<_ACEOF >conftest.h
27062
27063_ACEOF
27064
27065
27066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27067 echo "obj-m := conftest.o" >build/Makefile
27068 modpost_flag=''
27069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27070 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; }; then
27081
27082 { $as_echo "$as_me:$LINENO: result: yes" >&5
27083$as_echo "yes" >&6; }
27084
27085cat >>confdefs.h <<\_ACEOF
27086#define MAKE_REQUEST_FN_RET void
27087_ACEOF
27088
27089
27090else
27091 $as_echo "$as_me: failed program was:" >&5
27092sed 's/^/| /' conftest.$ac_ext >&5
27093
27094 { $as_echo "$as_me:$LINENO: result: no" >&5
27095$as_echo "no" >&6; }
27096 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
27097$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
27098
27099
27100cat confdefs.h - <<_ACEOF >conftest.c
27101/* confdefs.h. */
27102_ACEOF
27103cat confdefs.h >>conftest.$ac_ext
27104cat >>conftest.$ac_ext <<_ACEOF
27105/* end confdefs.h. */
27106
27107
27108 #include <linux/blkdev.h>
27109
27110 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
27111 {
27112 return (BLK_QC_T_NONE);
27113 }
27114
27115int
27116main (void)
27117{
27118
27119 blk_queue_make_request(NULL, &make_request);
27120
27121 ;
27122 return 0;
27123}
27124
27125_ACEOF
27126
27127
27128
27129cat - <<_ACEOF >conftest.h
27130
27131_ACEOF
27132
27133
27134 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27135 echo "obj-m := conftest.o" >build/Makefile
27136 modpost_flag=''
27137 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27138 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27141 ac_status=$?
27142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; }; then
27149
27150 { $as_echo "$as_me:$LINENO: result: yes" >&5
27151$as_echo "yes" >&6; }
27152
27153cat >>confdefs.h <<\_ACEOF
27154#define MAKE_REQUEST_FN_RET blk_qc_t
27155_ACEOF
27156
27157
27158cat >>confdefs.h <<\_ACEOF
27159#define HAVE_MAKE_REQUEST_FN_RET_QC 1
27160_ACEOF
27161
27162
27163else
27164 $as_echo "$as_me: failed program was:" >&5
27165sed 's/^/| /' conftest.$ac_ext >&5
27166
27167 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
27168 https://github.com/zfsonlinux/zfs/issues/new" >&5
27169$as_echo "$as_me: error: no - Please file a bug report at
27170 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
27171 { (exit 1); exit 1; }; }
27172
27173
27174
27175fi
27176
27177 rm -Rf build
27178
27179
27180
27181
27182
27183fi
27184
27185 rm -Rf build
27186
27187
27188
27189
27190
27191fi
27192
27193 rm -Rf build
27194
27195
27196
27197
27198 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
27199$as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
27200
27201
27202
27203cat confdefs.h - <<_ACEOF >conftest.c
27204/* confdefs.h. */
27205_ACEOF
27206cat confdefs.h >>conftest.$ac_ext
27207cat >>conftest.$ac_ext <<_ACEOF
27208/* end confdefs.h. */
27209
27210
27211 #include <linux/bio.h>
27212
27213 void (*generic_start_io_acct_f)(int, unsigned long,
27214 struct hd_struct *) = &generic_start_io_acct;
27215 void (*generic_end_io_acct_f)(int, struct hd_struct *,
27216 unsigned long) = &generic_end_io_acct;
27217
27218int
27219main (void)
27220{
27221
27222 generic_start_io_acct(0, 0, NULL);
27223 generic_end_io_acct(0, NULL, 0);
27224
27225 ;
27226 return 0;
27227}
27228
27229_ACEOF
27230
27231
27232
27233cat - <<_ACEOF >conftest.h
27234
27235_ACEOF
27236
27237
27238 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27239 echo "obj-m := conftest.o" >build/Makefile
27240 modpost_flag=''
27241 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27242 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; }; then
27253 rc=0
27254else
27255 $as_echo "$as_me: failed program was:" >&5
27256sed 's/^/| /' conftest.$ac_ext >&5
27257 rc=1
27258
27259
27260fi
27261
27262 rm -Rf build
27263
27264
27265 if test $rc -ne 0; then :
27266
27267 { $as_echo "$as_me:$LINENO: result: no" >&5
27268$as_echo "no" >&6; }
27269
27270 else
27271 if test "x$enable_linux_builtin" != xyes; then
27272
27273 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27275 rc=$?
27276 if test $rc -ne 0; then
27277 export=0
27278 for file in block/bio.c; do
27279 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27280 "$LINUX/$file" 2>/dev/null
27281 rc=$?
27282 if test $rc -eq 0; then
27283 export=1
27284 break;
27285 fi
27286 done
27287 if test $export -eq 0; then :
27288 rc=1
27289 else :
27290 rc=0
27291 fi
27292 else :
27293 rc=0
27294 fi
27295
27296 fi
27297 if test $rc -ne 0; then :
27298
27299 { $as_echo "$as_me:$LINENO: result: no" >&5
27300$as_echo "no" >&6; }
27301
27302 else :
27303
27304 { $as_echo "$as_me:$LINENO: result: yes" >&5
27305$as_echo "yes" >&6; }
27306
27307cat >>confdefs.h <<\_ACEOF
27308#define HAVE_GENERIC_IO_ACCT_3ARG 1
27309_ACEOF
27310
27311
27312 fi
27313 fi
27314
27315
27316
27317 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
27318$as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
27319
27320
27321
27322cat confdefs.h - <<_ACEOF >conftest.c
27323/* confdefs.h. */
27324_ACEOF
27325cat confdefs.h >>conftest.$ac_ext
27326cat >>conftest.$ac_ext <<_ACEOF
27327/* end confdefs.h. */
27328
27329
27330 #include <linux/bio.h>
27331
27332 void (*generic_start_io_acct_f)(struct request_queue *, int,
27333 unsigned long, struct hd_struct *) = &generic_start_io_acct;
27334 void (*generic_end_io_acct_f)(struct request_queue *, int,
27335 struct hd_struct *, unsigned long) = &generic_end_io_acct;
27336
27337int
27338main (void)
27339{
27340
27341 generic_start_io_acct(NULL, 0, 0, NULL);
27342 generic_end_io_acct(NULL, 0, NULL, 0);
27343
27344 ;
27345 return 0;
27346}
27347
27348_ACEOF
27349
27350
27351
27352cat - <<_ACEOF >conftest.h
27353
27354_ACEOF
27355
27356
27357 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27358 echo "obj-m := conftest.o" >build/Makefile
27359 modpost_flag=''
27360 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27361 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 rc=0
27373else
27374 $as_echo "$as_me: failed program was:" >&5
27375sed 's/^/| /' conftest.$ac_ext >&5
27376 rc=1
27377
27378
27379fi
27380
27381 rm -Rf build
27382
27383
27384 if test $rc -ne 0; then :
27385
27386 { $as_echo "$as_me:$LINENO: result: no" >&5
27387$as_echo "no" >&6; }
27388
27389 else
27390 if test "x$enable_linux_builtin" != xyes; then
27391
27392 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27393 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27394 rc=$?
27395 if test $rc -ne 0; then
27396 export=0
27397 for file in block/bio.c; do
27398 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27399 "$LINUX/$file" 2>/dev/null
27400 rc=$?
27401 if test $rc -eq 0; then
27402 export=1
27403 break;
27404 fi
27405 done
27406 if test $export -eq 0; then :
27407 rc=1
27408 else :
27409 rc=0
27410 fi
27411 else :
27412 rc=0
27413 fi
27414
27415 fi
27416 if test $rc -ne 0; then :
27417
27418 { $as_echo "$as_me:$LINENO: result: no" >&5
27419$as_echo "no" >&6; }
27420
27421 else :
27422
27423 { $as_echo "$as_me:$LINENO: result: yes" >&5
27424$as_echo "yes" >&6; }
27425
27426cat >>confdefs.h <<\_ACEOF
27427#define HAVE_GENERIC_IO_ACCT_4ARG 1
27428_ACEOF
27429
27430
27431 fi
27432 fi
27433
27434
27435
27436 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
27437$as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
27438
27439
27440cat confdefs.h - <<_ACEOF >conftest.c
27441/* confdefs.h. */
27442_ACEOF
27443cat confdefs.h >>conftest.$ac_ext
27444cat >>conftest.$ac_ext <<_ACEOF
27445/* end confdefs.h. */
27446
27447
27448 #include <linux/kernel.h>
27449 #include <asm/fpu/api.h>
27450
27451int
27452main (void)
27453{
27454
27455 __kernel_fpu_begin();
27456
27457 ;
27458 return 0;
27459}
27460
27461_ACEOF
27462
27463
27464
27465cat - <<_ACEOF >conftest.h
27466
27467_ACEOF
27468
27469
27470 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27471 echo "obj-m := conftest.o" >build/Makefile
27472 modpost_flag=''
27473 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27474 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27477 ac_status=$?
27478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27485
27486 { $as_echo "$as_me:$LINENO: result: yes" >&5
27487$as_echo "yes" >&6; }
27488
27489cat >>confdefs.h <<\_ACEOF
27490#define HAVE_FPU_API_H 1
27491_ACEOF
27492
27493
27494else
27495 $as_echo "$as_me: failed program was:" >&5
27496sed 's/^/| /' conftest.$ac_ext >&5
27497
27498 { $as_echo "$as_me:$LINENO: result: no" >&5
27499$as_echo "no" >&6; }
27500
27501
27502
27503fi
27504
27505 rm -Rf build
27506
27507
27508
27509
27510 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
27511$as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
27512
27513
27514cat confdefs.h - <<_ACEOF >conftest.c
27515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520
27521
27522 #include <linux/fs.h>
27523
27524int
27525main (void)
27526{
27527
27528 struct inode *ip = NULL;
27529 (void) i_uid_read(ip);
27530
27531 ;
27532 return 0;
27533}
27534
27535_ACEOF
27536
27537
27538
27539cat - <<_ACEOF >conftest.h
27540
27541_ACEOF
27542
27543
27544 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27545 echo "obj-m := conftest.o" >build/Makefile
27546 modpost_flag=''
27547 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27548 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27551 ac_status=$?
27552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559
27560 { $as_echo "$as_me:$LINENO: result: yes" >&5
27561$as_echo "yes" >&6; }
27562
27563cat >>confdefs.h <<\_ACEOF
27564#define HAVE_KUID_HELPERS 1
27565_ACEOF
27566
27567
27568else
27569 $as_echo "$as_me: failed program was:" >&5
27570sed 's/^/| /' conftest.$ac_ext >&5
27571
27572 { $as_echo "$as_me:$LINENO: result: no" >&5
27573$as_echo "no" >&6; }
27574
27575
27576
27577fi
27578
27579 rm -Rf build
27580
27581
27582
27583
27584 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
27585$as_echo_n "checking whether module_param_call() is hardened... " >&6; }
27586
27587
27588cat confdefs.h - <<_ACEOF >conftest.c
27589/* confdefs.h. */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h. */
27594
27595
27596 #include <linux/module.h>
27597 #include <linux/moduleparam.h>
27598
27599 int param_get(char *b, const struct kernel_param *kp)
27600 {
27601 return (0);
27602 }
27603
27604 int param_set(const char *b, const struct kernel_param *kp)
27605 {
27606 return (0);
27607 }
27608
27609 module_param_call(p, param_set, param_get, NULL, 0644);
27610
27611int
27612main (void)
27613{
27614
27615
27616 ;
27617 return 0;
27618}
27619
27620_ACEOF
27621
27622
27623
27624cat - <<_ACEOF >conftest.h
27625
27626_ACEOF
27627
27628
27629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27630 echo "obj-m := conftest.o" >build/Makefile
27631 modpost_flag=''
27632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27633 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; }; then
27644
27645 { $as_echo "$as_me:$LINENO: result: yes" >&5
27646$as_echo "yes" >&6; }
27647
27648cat >>confdefs.h <<\_ACEOF
27649#define MODULE_PARAM_CALL_CONST 1
27650_ACEOF
27651
27652
27653else
27654 $as_echo "$as_me: failed program was:" >&5
27655sed 's/^/| /' conftest.$ac_ext >&5
27656
27657 { $as_echo "$as_me:$LINENO: result: no" >&5
27658$as_echo "no" >&6; }
27659
27660
27661
27662fi
27663
27664 rm -Rf build
27665
27666
27667
27668
27669 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
27670$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
27671
27672
27673cat confdefs.h - <<_ACEOF >conftest.c
27674/* confdefs.h. */
27675_ACEOF
27676cat confdefs.h >>conftest.$ac_ext
27677cat >>conftest.$ac_ext <<_ACEOF
27678/* end confdefs.h. */
27679
27680
27681 #include <linux/fs.h>
27682 int rename_fn(struct inode *sip, struct dentry *sdp,
27683 struct inode *tip, struct dentry *tdp,
27684 unsigned int flags) { return 0; }
27685
27686 static const struct inode_operations
27687 iops __attribute__ ((unused)) = {
27688 .rename = rename_fn,
27689 };
27690
27691int
27692main (void)
27693{
27694
27695
27696 ;
27697 return 0;
27698}
27699
27700_ACEOF
27701
27702
27703
27704cat - <<_ACEOF >conftest.h
27705
27706_ACEOF
27707
27708
27709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27710 echo "obj-m := conftest.o" >build/Makefile
27711 modpost_flag=''
27712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27713 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724
27725 { $as_echo "$as_me:$LINENO: result: yes" >&5
27726$as_echo "yes" >&6; }
27727
27728cat >>confdefs.h <<\_ACEOF
27729#define HAVE_RENAME_WANTS_FLAGS 1
27730_ACEOF
27731
27732
27733else
27734 $as_echo "$as_me: failed program was:" >&5
27735sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 { $as_echo "$as_me:$LINENO: result: no" >&5
27738$as_echo "no" >&6; }
27739
27740
27741
27742fi
27743
27744 rm -Rf build
27745
27746
27747
27748
27749 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
27750$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
27751
27752
27753cat confdefs.h - <<_ACEOF >conftest.c
27754/* confdefs.h. */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
27758/* end confdefs.h. */
27759
27760
27761 #include <linux/fs.h>
27762 #include <linux/xattr.h>
27763
27764 static const struct inode_operations
27765 iops __attribute__ ((unused)) = {
27766 .setxattr = generic_setxattr
27767 };
27768
27769int
27770main (void)
27771{
27772
27773
27774 ;
27775 return 0;
27776}
27777
27778_ACEOF
27779
27780
27781
27782cat - <<_ACEOF >conftest.h
27783
27784_ACEOF
27785
27786
27787 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27788 echo "obj-m := conftest.o" >build/Makefile
27789 modpost_flag=''
27790 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27791 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27799 ac_status=$?
27800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27802
27803 { $as_echo "$as_me:$LINENO: result: yes" >&5
27804$as_echo "yes" >&6; }
27805
27806cat >>confdefs.h <<\_ACEOF
27807#define HAVE_GENERIC_SETXATTR 1
27808_ACEOF
27809
27810
27811else
27812 $as_echo "$as_me: failed program was:" >&5
27813sed 's/^/| /' conftest.$ac_ext >&5
27814
27815 { $as_echo "$as_me:$LINENO: result: no" >&5
27816$as_echo "no" >&6; }
27817
27818
27819
27820fi
27821
27822 rm -Rf build
27823
27824
27825
27826 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27827$as_echo_n "checking whether current_time() exists... " >&6; }
27828
27829
27830
27831cat confdefs.h - <<_ACEOF >conftest.c
27832/* confdefs.h. */
27833_ACEOF
27834cat confdefs.h >>conftest.$ac_ext
27835cat >>conftest.$ac_ext <<_ACEOF
27836/* end confdefs.h. */
27837
27838
27839 #include <linux/fs.h>
27840
27841int
27842main (void)
27843{
27844
a07c8b41
MZ
27845 struct inode ip __attribute__ ((unused));
27846 ip.i_atime = current_time(&ip);
cae5b340
AX
27847
27848 ;
27849 return 0;
27850}
27851
27852_ACEOF
27853
27854
27855
27856cat - <<_ACEOF >conftest.h
27857
27858_ACEOF
27859
27860
27861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27862 echo "obj-m := conftest.o" >build/Makefile
27863 modpost_flag=''
27864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27865 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27868 ac_status=$?
27869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 rc=0
27877else
27878 $as_echo "$as_me: failed program was:" >&5
27879sed 's/^/| /' conftest.$ac_ext >&5
27880 rc=1
27881
27882
27883fi
27884
27885 rm -Rf build
27886
27887
27888 if test $rc -ne 0; then :
27889
27890 { $as_echo "$as_me:$LINENO: result: no" >&5
27891$as_echo "no" >&6; }
27892
27893 else
27894 if test "x$enable_linux_builtin" != xyes; then
27895
27896 grep -q -E '[[:space:]]current_time[[:space:]]' \
27897 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27898 rc=$?
27899 if test $rc -ne 0; then
27900 export=0
27901 for file in fs/inode.c; do
27902 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27903 "$LINUX/$file" 2>/dev/null
27904 rc=$?
27905 if test $rc -eq 0; then
27906 export=1
27907 break;
27908 fi
27909 done
27910 if test $export -eq 0; then :
27911 rc=1
27912 else :
27913 rc=0
27914 fi
27915 else :
27916 rc=0
27917 fi
27918
27919 fi
27920 if test $rc -ne 0; then :
27921
27922 { $as_echo "$as_me:$LINENO: result: no" >&5
27923$as_echo "no" >&6; }
27924
27925 else :
27926
27927 { $as_echo "$as_me:$LINENO: result: yes" >&5
27928$as_echo "yes" >&6; }
27929
27930cat >>confdefs.h <<\_ACEOF
27931#define HAVE_CURRENT_TIME 1
27932_ACEOF
27933
27934
27935 fi
27936 fi
27937
27938
27939
42f7b73b
AX
27940
27941 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
27942$as_echo_n "checking whether global_node_page_state() exists... " >&6; }
cae5b340
AX
27943
27944
27945cat confdefs.h - <<_ACEOF >conftest.c
27946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951
27952
27953 #include <linux/mm.h>
27954 #include <linux/vmstat.h>
27955
27956int
27957main (void)
27958{
27959
42f7b73b 27960 (void) global_node_page_state(0);
cae5b340
AX
27961
27962 ;
27963 return 0;
27964}
27965
27966_ACEOF
27967
27968
27969
27970cat - <<_ACEOF >conftest.h
27971
27972_ACEOF
27973
27974
27975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27976 echo "obj-m := conftest.o" >build/Makefile
27977 modpost_flag=''
27978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 27979 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27982 ac_status=$?
27983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27987 ac_status=$?
27988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27990
27991 { $as_echo "$as_me:$LINENO: result: yes" >&5
27992$as_echo "yes" >&6; }
27993
27994cat >>confdefs.h <<\_ACEOF
27995#define ZFS_GLOBAL_NODE_PAGE_STATE 1
27996_ACEOF
27997
27998
27999else
28000 $as_echo "$as_me: failed program was:" >&5
28001sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 { $as_echo "$as_me:$LINENO: result: no" >&5
28004$as_echo "no" >&6; }
28005
28006
28007
28008fi
28009
28010 rm -Rf build
28011
28012
28013
28014
42f7b73b
AX
28015 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
28016$as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
cae5b340 28017
cae5b340 28018
42f7b73b
AX
28019cat confdefs.h - <<_ACEOF >conftest.c
28020/* confdefs.h. */
28021_ACEOF
28022cat confdefs.h >>conftest.$ac_ext
28023cat >>conftest.$ac_ext <<_ACEOF
28024/* end confdefs.h. */
cae5b340
AX
28025
28026
42f7b73b
AX
28027 #include <linux/mm.h>
28028 #include <linux/vmstat.h>
cae5b340 28029
42f7b73b
AX
28030int
28031main (void)
28032{
cae5b340 28033
42f7b73b 28034 (void) global_zone_page_state(0);
cae5b340 28035
42f7b73b
AX
28036 ;
28037 return 0;
28038}
cae5b340 28039
42f7b73b 28040_ACEOF
cae5b340
AX
28041
28042
42f7b73b
AX
28043
28044cat - <<_ACEOF >conftest.h
28045
28046_ACEOF
cae5b340
AX
28047
28048
42f7b73b
AX
28049 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28050 echo "obj-m := conftest.o" >build/Makefile
28051 modpost_flag=''
28052 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28053 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
cae5b340 28064
42f7b73b
AX
28065 { $as_echo "$as_me:$LINENO: result: yes" >&5
28066$as_echo "yes" >&6; }
cae5b340 28067
42f7b73b
AX
28068cat >>confdefs.h <<\_ACEOF
28069#define ZFS_GLOBAL_ZONE_PAGE_STATE 1
28070_ACEOF
cae5b340 28071
cae5b340 28072
cae5b340 28073else
42f7b73b
AX
28074 $as_echo "$as_me: failed program was:" >&5
28075sed 's/^/| /' conftest.$ac_ext >&5
28076
28077 { $as_echo "$as_me:$LINENO: result: no" >&5
28078$as_echo "no" >&6; }
28079
28080
28081
cae5b340
AX
28082fi
28083
42f7b73b 28084 rm -Rf build
cae5b340 28085
cae5b340 28086
cae5b340 28087
cae5b340 28088
42f7b73b
AX
28089
28090 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
28091$as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
28092 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094 (eval $ac_try) 2>&5
28095 ac_status=$?
28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098
28099 { $as_echo "$as_me:$LINENO: result: yes" >&5
28100$as_echo "yes" >&6; }
28101
28102cat >>confdefs.h <<\_ACEOF
28103#define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
28104_ACEOF
28105
28106 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
28107
cae5b340 28108else
cae5b340 28109
42f7b73b
AX
28110 { $as_echo "$as_me:$LINENO: result: no" >&5
28111$as_echo "no" >&6; }
cae5b340
AX
28112
28113fi
28114
28115
cae5b340 28116
42f7b73b
AX
28117 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
28118$as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
28119 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28125
28126 { $as_echo "$as_me:$LINENO: result: yes" >&5
28127$as_echo "yes" >&6; }
28128
28129cat >>confdefs.h <<\_ACEOF
28130#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
28131_ACEOF
cae5b340 28132
42f7b73b 28133 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
cae5b340 28134
cae5b340 28135else
42f7b73b
AX
28136
28137 { $as_echo "$as_me:$LINENO: result: no" >&5
28138$as_echo "no" >&6; }
28139
cae5b340
AX
28140fi
28141
28142
28143
42f7b73b
AX
28144 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
28145$as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
28146 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28149 ac_status=$?
28150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28152
28153 { $as_echo "$as_me:$LINENO: result: yes" >&5
28154$as_echo "yes" >&6; }
cae5b340 28155
42f7b73b
AX
28156cat >>confdefs.h <<\_ACEOF
28157#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
28158_ACEOF
cae5b340 28159
42f7b73b 28160 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
cae5b340 28161
cae5b340 28162else
42f7b73b
AX
28163
28164 { $as_echo "$as_me:$LINENO: result: no" >&5
28165$as_echo "no" >&6; }
28166
cae5b340
AX
28167fi
28168
28169
28170
42f7b73b
AX
28171 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28172$as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28173 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175 (eval $ac_try) 2>&5
28176 ac_status=$?
28177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
cae5b340 28179
42f7b73b
AX
28180 { $as_echo "$as_me:$LINENO: result: yes" >&5
28181$as_echo "yes" >&6; }
cae5b340 28182
42f7b73b
AX
28183cat >>confdefs.h <<\_ACEOF
28184#define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28185_ACEOF
28186
28187 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
cae5b340 28188
cae5b340 28189else
42f7b73b
AX
28190
28191 { $as_echo "$as_me:$LINENO: result: no" >&5
28192$as_echo "no" >&6; }
28193
cae5b340
AX
28194fi
28195
28196
28197
cae5b340 28198
42f7b73b
AX
28199 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
28200$as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
28201 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
cae5b340 28207
42f7b73b
AX
28208 { $as_echo "$as_me:$LINENO: result: yes" >&5
28209$as_echo "yes" >&6; }
cae5b340 28210
42f7b73b
AX
28211cat >>confdefs.h <<\_ACEOF
28212#define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
28213_ACEOF
cae5b340 28214
42f7b73b 28215 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
cae5b340 28216
42f7b73b 28217else
cae5b340 28218
42f7b73b
AX
28219 { $as_echo "$as_me:$LINENO: result: no" >&5
28220$as_echo "no" >&6; }
cae5b340 28221
42f7b73b 28222fi
cae5b340
AX
28223
28224
28225
42f7b73b
AX
28226 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
28227$as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
28228 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
cae5b340 28234
42f7b73b
AX
28235 { $as_echo "$as_me:$LINENO: result: yes" >&5
28236$as_echo "yes" >&6; }
cae5b340 28237
42f7b73b
AX
28238cat >>confdefs.h <<\_ACEOF
28239#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
28240_ACEOF
cae5b340 28241
42f7b73b 28242 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
cae5b340 28243
cae5b340 28244else
cae5b340 28245
42f7b73b
AX
28246 { $as_echo "$as_me:$LINENO: result: no" >&5
28247$as_echo "no" >&6; }
cae5b340 28248
cae5b340
AX
28249fi
28250
28251
28252
42f7b73b
AX
28253 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
28254$as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
28255 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257 (eval $ac_try) 2>&5
28258 ac_status=$?
28259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; }; then
28261
28262 { $as_echo "$as_me:$LINENO: result: yes" >&5
28263$as_echo "yes" >&6; }
cae5b340 28264
42f7b73b
AX
28265cat >>confdefs.h <<\_ACEOF
28266#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
28267_ACEOF
cae5b340 28268
42f7b73b 28269 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
cae5b340 28270
cae5b340 28271else
42f7b73b
AX
28272
28273 { $as_echo "$as_me:$LINENO: result: no" >&5
28274$as_echo "no" >&6; }
28275
cae5b340
AX
28276fi
28277
28278
cae5b340 28279
42f7b73b
AX
28280 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28281$as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28282 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
cae5b340 28288
42f7b73b
AX
28289 { $as_echo "$as_me:$LINENO: result: yes" >&5
28290$as_echo "yes" >&6; }
28291
28292cat >>confdefs.h <<\_ACEOF
28293#define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28294_ACEOF
28295
28296 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
cae5b340 28297
cae5b340 28298else
42f7b73b
AX
28299
28300 { $as_echo "$as_me:$LINENO: result: no" >&5
28301$as_echo "no" >&6; }
28302
cae5b340
AX
28303fi
28304
28305
42f7b73b
AX
28306
28307
28308 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
28309$as_echo_n "checking global_page_state enums are sane... " >&6; }
28310
28311
28312 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
28313 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
28314 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28315
28316
28317 { $as_echo "$as_me:$LINENO: result: no" >&5
28318$as_echo "no" >&6; }
28319 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28320$as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28321 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28322$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28323 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28325{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28326See \`config.log' for more details." >&5
28327$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28328See \`config.log' for more details." >&2;}
28329 { (exit 1); exit 1; }; }; }
28330
28331
cae5b340
AX
28332fi
28333
42f7b73b
AX
28334 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28335
28336
28337 { $as_echo "$as_me:$LINENO: result: no" >&5
28338$as_echo "no" >&6; }
28339 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28340$as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28341 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28342$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28343 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28345{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28346See \`config.log' for more details." >&5
28347$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28348See \`config.log' for more details." >&2;}
28349 { (exit 1); exit 1; }; }; }
28350
cae5b340
AX
28351
28352fi
28353
28354
28355
42f7b73b
AX
28356 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
28357 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
28358 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
cae5b340
AX
28359
28360
42f7b73b
AX
28361 { $as_echo "$as_me:$LINENO: result: no" >&5
28362$as_echo "no" >&6; }
28363 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28364$as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28365 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28366$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28369{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28370See \`config.log' for more details." >&5
28371$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28372See \`config.log' for more details." >&2;}
28373 { (exit 1); exit 1; }; }; }
28374
cae5b340 28375
cae5b340 28376fi
cae5b340 28377
42f7b73b
AX
28378 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28379
28380
28381 { $as_echo "$as_me:$LINENO: result: no" >&5
28382$as_echo "no" >&6; }
28383 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28384$as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28385 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28386$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28389{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28390See \`config.log' for more details." >&5
28391$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28392See \`config.log' for more details." >&2;}
28393 { (exit 1); exit 1; }; }; }
28394
28395
cae5b340
AX
28396fi
28397
cae5b340 28398
cae5b340 28399
42f7b73b
AX
28400 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
28401 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
28402 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28403
28404
28405 { $as_echo "$as_me:$LINENO: result: no" >&5
28406$as_echo "no" >&6; }
28407 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28408$as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28409 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28410$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28413{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28414See \`config.log' for more details." >&5
28415$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28416See \`config.log' for more details." >&2;}
28417 { (exit 1); exit 1; }; }; }
28418
28419
cae5b340
AX
28420fi
28421
42f7b73b
AX
28422 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28423
28424
28425 { $as_echo "$as_me:$LINENO: result: no" >&5
28426$as_echo "no" >&6; }
28427 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28428$as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28429 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28430$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28433{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28434See \`config.log' for more details." >&5
28435$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28436See \`config.log' for more details." >&2;}
28437 { (exit 1); exit 1; }; }; }
cae5b340 28438
cae5b340 28439
cae5b340 28440fi
42f7b73b
AX
28441
28442
28443
28444 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28445 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28446 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28447
28448
28449 { $as_echo "$as_me:$LINENO: result: no" >&5
28450$as_echo "no" >&6; }
28451 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28452$as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28453 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28454$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28455 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28457{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28458See \`config.log' for more details." >&5
28459$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28460See \`config.log' for more details." >&2;}
28461 { (exit 1); exit 1; }; }; }
28462
cae5b340
AX
28463
28464fi
42f7b73b
AX
28465
28466 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28467
28468
28469 { $as_echo "$as_me:$LINENO: result: no" >&5
28470$as_echo "no" >&6; }
28471 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28472$as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28473 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28474$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28475 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
cae5b340 28476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42f7b73b 28477{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
cae5b340 28478See \`config.log' for more details." >&5
42f7b73b 28479$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
cae5b340
AX
28480See \`config.log' for more details." >&2;}
28481 { (exit 1); exit 1; }; }; }
42f7b73b
AX
28482
28483
cae5b340
AX
28484fi
28485
28486
28487
42f7b73b
AX
28488 { $as_echo "$as_me:$LINENO: result: yes" >&5
28489$as_echo "yes" >&6; }
28490
28491
28492
28493 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
28494$as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
28495
28496
28497cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28498/* confdefs.h. */
28499_ACEOF
28500cat confdefs.h >>conftest.$ac_ext
28501cat >>conftest.$ac_ext <<_ACEOF
28502/* end confdefs.h. */
28503
42f7b73b
AX
28504
28505 #include <linux/backing-dev.h>
28506 #include <linux/refcount.h>
28507 #include <linux/posix_acl.h>
28508
cae5b340 28509int
42f7b73b 28510main (void)
cae5b340 28511{
42f7b73b
AX
28512
28513 struct posix_acl acl;
28514 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
28515
cae5b340
AX
28516 ;
28517 return 0;
28518}
42f7b73b 28519
cae5b340 28520_ACEOF
cae5b340
AX
28521
28522
cae5b340 28523
42f7b73b 28524cat - <<_ACEOF >conftest.h
cae5b340 28525
cae5b340 28526_ACEOF
cae5b340 28527
42f7b73b
AX
28528
28529 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28530 echo "obj-m := conftest.o" >build/Makefile
28531 modpost_flag=''
28532 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28533 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
cae5b340 28536 ac_status=$?
cae5b340 28537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
28538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544
28545 { $as_echo "$as_me:$LINENO: result: yes" >&5
28546$as_echo "yes" >&6; }
28547
28548cat >>confdefs.h <<\_ACEOF
28549#define HAVE_ACL_REFCOUNT 1
28550_ACEOF
28551
28552
cae5b340
AX
28553else
28554 $as_echo "$as_me: failed program was:" >&5
28555sed 's/^/| /' conftest.$ac_ext >&5
28556
42f7b73b
AX
28557 { $as_echo "$as_me:$LINENO: result: no" >&5
28558$as_echo "no" >&6; }
cae5b340 28559
cae5b340 28560
cae5b340 28561
cae5b340
AX
28562fi
28563
42f7b73b 28564 rm -Rf build
cae5b340 28565
42f7b73b
AX
28566
28567
28568
28569
28570 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
28571$as_echo_n "checking whether ns_capable exists... " >&6; }
28572
28573
28574cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28575/* confdefs.h. */
28576_ACEOF
28577cat confdefs.h >>conftest.$ac_ext
28578cat >>conftest.$ac_ext <<_ACEOF
28579/* end confdefs.h. */
28580
42f7b73b
AX
28581
28582 #include <linux/capability.h>
28583
cae5b340 28584int
42f7b73b 28585main (void)
cae5b340 28586{
42f7b73b
AX
28587
28588 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
28589
cae5b340
AX
28590 ;
28591 return 0;
28592}
42f7b73b 28593
cae5b340 28594_ACEOF
42f7b73b
AX
28595
28596
28597
28598cat - <<_ACEOF >conftest.h
28599
28600_ACEOF
28601
28602
28603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28604 echo "obj-m := conftest.o" >build/Makefile
28605 modpost_flag=''
28606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28607 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
cae5b340 28610 ac_status=$?
cae5b340 28611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
28612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28618
28619 { $as_echo "$as_me:$LINENO: result: yes" >&5
28620$as_echo "yes" >&6; }
28621
28622cat >>confdefs.h <<\_ACEOF
28623#define HAVE_NS_CAPABLE 1
28624_ACEOF
28625
28626
cae5b340
AX
28627else
28628 $as_echo "$as_me: failed program was:" >&5
28629sed 's/^/| /' conftest.$ac_ext >&5
28630
42f7b73b
AX
28631 { $as_echo "$as_me:$LINENO: result: no" >&5
28632$as_echo "no" >&6; }
cae5b340 28633
cae5b340 28634
cae5b340 28635
cae5b340
AX
28636fi
28637
42f7b73b 28638 rm -Rf build
cae5b340
AX
28639
28640
cae5b340
AX
28641
28642
42f7b73b
AX
28643 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
28644$as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
cae5b340 28645
cae5b340 28646
42f7b73b 28647cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28648/* confdefs.h. */
28649_ACEOF
28650cat confdefs.h >>conftest.$ac_ext
28651cat >>conftest.$ac_ext <<_ACEOF
28652/* end confdefs.h. */
cae5b340 28653
cae5b340 28654
42f7b73b
AX
28655 #include <linux/cred.h>
28656
28657int
28658main (void)
28659{
28660
28661 struct cred cr;
28662 cr.user_ns = (struct user_namespace *)NULL;
28663
28664 ;
28665 return 0;
28666}
cae5b340 28667
cae5b340 28668_ACEOF
42f7b73b
AX
28669
28670
28671
28672cat - <<_ACEOF >conftest.h
28673
cae5b340 28674_ACEOF
42f7b73b
AX
28675
28676
28677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28678 echo "obj-m := conftest.o" >build/Makefile
28679 modpost_flag=''
28680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
cae5b340 28684 ac_status=$?
cae5b340 28685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
28686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28692
28693 { $as_echo "$as_me:$LINENO: result: yes" >&5
28694$as_echo "yes" >&6; }
28695
28696cat >>confdefs.h <<\_ACEOF
28697#define HAVE_CRED_USER_NS 1
28698_ACEOF
28699
28700
cae5b340
AX
28701else
28702 $as_echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
42f7b73b
AX
28705 { $as_echo "$as_me:$LINENO: result: no" >&5
28706$as_echo "no" >&6; }
cae5b340 28707
cae5b340 28708
cae5b340 28709
cae5b340 28710fi
cae5b340 28711
42f7b73b 28712 rm -Rf build
cae5b340
AX
28713
28714
28715
42f7b73b
AX
28716
28717 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
28718$as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
28719
28720
28721cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28722/* confdefs.h. */
28723_ACEOF
28724cat confdefs.h >>conftest.$ac_ext
28725cat >>conftest.$ac_ext <<_ACEOF
28726/* end confdefs.h. */
28727
42f7b73b
AX
28728
28729 #include <linux/uidgid.h>
28730
cae5b340 28731int
42f7b73b 28732main (void)
cae5b340 28733{
42f7b73b
AX
28734
28735 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
28736 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
28737
cae5b340
AX
28738 ;
28739 return 0;
28740}
42f7b73b 28741
cae5b340 28742_ACEOF
42f7b73b
AX
28743
28744
28745
28746cat - <<_ACEOF >conftest.h
28747
28748_ACEOF
28749
28750
28751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28752 echo "obj-m := conftest.o" >build/Makefile
28753 modpost_flag=''
28754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28755 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
cae5b340 28758 ac_status=$?
cae5b340 28759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
28760 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; }; then
28766
28767 { $as_echo "$as_me:$LINENO: result: yes" >&5
28768$as_echo "yes" >&6; }
28769
28770cat >>confdefs.h <<\_ACEOF
28771#define HAVE_KUID_HAS_MAPPING 1
28772_ACEOF
28773
28774
cae5b340
AX
28775else
28776 $as_echo "$as_me: failed program was:" >&5
28777sed 's/^/| /' conftest.$ac_ext >&5
28778
42f7b73b
AX
28779 { $as_echo "$as_me:$LINENO: result: no" >&5
28780$as_echo "no" >&6; }
28781
28782
cae5b340
AX
28783
28784fi
28785
42f7b73b
AX
28786 rm -Rf build
28787
28788
28789
28790
28791
28792 if test "$LINUX_OBJ" != "$LINUX"; then
28793
28794 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
28795
cae5b340 28796fi
42f7b73b
AX
28797
28798
28799
28800
28801 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
28802 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
28803 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
28804 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
28805 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
28806 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
28807
28808
28809 ;;
28810 user)
28811
28812
28813# Check whether --with-mounthelperdir was given.
28814if test "${with_mounthelperdir+set}" = set; then
28815 withval=$with_mounthelperdir; mounthelperdir=$withval
cae5b340 28816else
42f7b73b 28817 mounthelperdir=/sbin
cae5b340 28818fi
42f7b73b
AX
28819
28820
28821
28822
28823
28824 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
28825$as_echo_n "checking for udev directories... " >&6; }
28826
28827# Check whether --with-udevdir was given.
28828if test "${with_udevdir+set}" = set; then
28829 withval=$with_udevdir; udevdir=$withval
28830else
28831 udevdir=check
cae5b340 28832fi
cae5b340 28833
42f7b73b
AX
28834
28835 if test "x$udevdir" = xcheck; then
28836
28837 path1=/lib/udev
28838 path2=/usr/lib/udev
28839 default=$path2
28840
28841 if test -d "$path1"; then
28842 udevdir="$path1"
28843else
28844
28845 if test -d "$path2"; then
28846 udevdir="$path2"
28847else
28848 udevdir="$default"
28849fi
28850
28851
28852fi
28853
28854
28855fi
28856
28857
28858
28859# Check whether --with-udevruledir was given.
28860if test "${with_udevruledir+set}" = set; then
28861 withval=$with_udevruledir; udevruledir=$withval
28862else
28863 udevruledir="${udevdir}/rules.d"
28864fi
28865
28866
28867
28868
28869 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
28870$as_echo "$udevdir;$udevruledir" >&6; }
28871
28872
28873 # Check whether --enable-systemd was given.
28874if test "${enable_systemd+set}" = set; then
28875 enableval=$enable_systemd; enable_systemd=$enableval
28876else
28877 enable_systemd=check
28878fi
28879
28880
28881
28882# Check whether --with-systemdunitdir was given.
28883if test "${with_systemdunitdir+set}" = set; then
28884 withval=$with_systemdunitdir; systemdunitdir=$withval
28885else
28886 systemdunitdir=/usr/lib/systemd/system
28887fi
28888
28889
28890
28891# Check whether --with-systemdpresetdir was given.
28892if test "${with_systemdpresetdir+set}" = set; then
28893 withval=$with_systemdpresetdir; systemdpresetdir=$withval
28894else
28895 systemdpresetdir=/usr/lib/systemd/system-preset
28896fi
28897
28898
28899
28900# Check whether --with-systemdmodulesloaddir was given.
28901if test "${with_systemdmodulesloaddir+set}" = set; then
28902 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
28903else
28904 systemdmodulesloaddir=/usr/lib/modules-load.d
28905fi
28906
28907
28908 if test "x$enable_systemd" = xcheck; then
28909
28910 if systemctl --version >/dev/null 2>&1; then
28911 enable_systemd=yes
28912else
28913 enable_systemd=no
28914fi
28915
28916
28917fi
28918
28919
28920 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
28921$as_echo_n "checking for systemd support... " >&6; }
28922 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
28923$as_echo "$enable_systemd" >&6; }
28924
28925 if test "x$enable_systemd" = xyes; then
28926
28927 ZFS_INIT_SYSTEMD=systemd
28928 ZFS_MODULE_LOAD=modules-load.d
28929 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
28930 modulesloaddir=$systemdmodulesloaddir
28931
28932else
28933
28934 DEFINE_SYSTEMD='--without systemd'
28935
28936fi
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947 # Check whether --enable-sysvinit was given.
28948if test "${enable_sysvinit+set}" = set; then
28949 enableval=$enable_sysvinit;
28950else
28951 enable_sysvinit=yes
28952fi
28953
28954
28955 if test "x$enable_sysvinit" = xyes; then
28956 ZFS_INIT_SYSV=init.d
28957fi
28958
28959
28960
28961
28962
28963 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
28964$as_echo_n "checking for dracut directory... " >&6; }
28965
28966# Check whether --with-dracutdir was given.
28967if test "${with_dracutdir+set}" = set; then
28968 withval=$with_dracutdir; dracutdir=$withval
28969else
28970 dracutdir=check
28971fi
28972
28973
28974 if test "x$dracutdir" = xcheck; then
28975
28976 path1=/usr/share/dracut
28977 path2=/usr/lib/dracut
28978 default=$path2
28979
28980 if test -d "$path1"; then
28981 dracutdir="$path1"
28982else
28983
28984 if test -d "$path2"; then
28985 dracutdir="$path2"
28986else
28987 dracutdir="$default"
28988fi
28989
28990
28991fi
28992
28993
28994fi
28995
28996
28997
28998 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
28999$as_echo "$dracutdir" >&6; }
29000
29001
29002 ZLIB=
29003
29004 if test "${ac_cv_header_zlib_h+set}" = set; then
29005 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29006$as_echo_n "checking for zlib.h... " >&6; }
29007if test "${ac_cv_header_zlib_h+set}" = set; then
29008 $as_echo_n "(cached) " >&6
29009fi
29010{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29011$as_echo "$ac_cv_header_zlib_h" >&6; }
29012else
29013 # Is the header compilable?
29014{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29015$as_echo_n "checking zlib.h usability... " >&6; }
29016cat >conftest.$ac_ext <<_ACEOF
29017/* confdefs.h. */
29018_ACEOF
29019cat confdefs.h >>conftest.$ac_ext
29020cat >>conftest.$ac_ext <<_ACEOF
29021/* end confdefs.h. */
29022$ac_includes_default
29023#include <zlib.h>
29024_ACEOF
29025rm -f conftest.$ac_objext
29026if { (ac_try="$ac_compile"
29027case "(($ac_try" in
29028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29030esac
29031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29032$as_echo "$ac_try_echo") >&5
29033 (eval "$ac_compile") 2>conftest.er1
29034 ac_status=$?
29035 grep -v '^ *+' conftest.er1 >conftest.err
29036 rm -f conftest.er1
29037 cat conftest.err >&5
29038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } && {
29040 test -z "$ac_c_werror_flag" ||
29041 test ! -s conftest.err
29042 } && test -s conftest.$ac_objext; then
29043 ac_header_compiler=yes
29044else
29045 $as_echo "$as_me: failed program was:" >&5
29046sed 's/^/| /' conftest.$ac_ext >&5
29047
29048 ac_header_compiler=no
29049fi
29050
29051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29052{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29053$as_echo "$ac_header_compiler" >&6; }
29054
29055# Is the header present?
29056{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29057$as_echo_n "checking zlib.h presence... " >&6; }
29058cat >conftest.$ac_ext <<_ACEOF
29059/* confdefs.h. */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h. */
29064#include <zlib.h>
29065_ACEOF
29066if { (ac_try="$ac_cpp conftest.$ac_ext"
29067case "(($ac_try" in
29068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069 *) ac_try_echo=$ac_try;;
29070esac
29071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29072$as_echo "$ac_try_echo") >&5
29073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29074 ac_status=$?
29075 grep -v '^ *+' conftest.er1 >conftest.err
29076 rm -f conftest.er1
29077 cat conftest.err >&5
29078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } >/dev/null && {
29080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29081 test ! -s conftest.err
29082 }; then
29083 ac_header_preproc=yes
29084else
29085 $as_echo "$as_me: failed program was:" >&5
29086sed 's/^/| /' conftest.$ac_ext >&5
29087
29088 ac_header_preproc=no
29089fi
29090
29091rm -f conftest.err conftest.$ac_ext
29092{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29093$as_echo "$ac_header_preproc" >&6; }
29094
29095# So? What about this header?
29096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29097 yes:no: )
29098 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29099$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29100 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29101$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29102 ac_header_preproc=yes
29103 ;;
29104 no:yes:* )
29105 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29106$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29107 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29108$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29109 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29110$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29111 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29112$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29113 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29114$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29115 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29116$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29117
29118 ;;
29119esac
29120{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29121$as_echo_n "checking for zlib.h... " >&6; }
29122if test "${ac_cv_header_zlib_h+set}" = set; then
29123 $as_echo_n "(cached) " >&6
29124else
29125 ac_cv_header_zlib_h=$ac_header_preproc
29126fi
29127{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29128$as_echo "$ac_cv_header_zlib_h" >&6; }
29129
29130fi
29131if test "x$ac_cv_header_zlib_h" = x""yes; then
29132 :
cae5b340
AX
29133else
29134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29136{ { $as_echo "$as_me:$LINENO: error:
42f7b73b 29137 *** zlib.h missing, zlib-devel package required
cae5b340
AX
29138See \`config.log' for more details." >&5
29139$as_echo "$as_me: error:
42f7b73b 29140 *** zlib.h missing, zlib-devel package required
cae5b340
AX
29141See \`config.log' for more details." >&2;}
29142 { (exit 1); exit 1; }; }; }
29143fi
29144
29145
42f7b73b
AX
29146
29147 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29148$as_echo_n "checking for library containing compress2... " >&6; }
29149if test "${ac_cv_search_compress2+set}" = set; then
cae5b340
AX
29150 $as_echo_n "(cached) " >&6
29151else
29152 ac_func_search_save_LIBS=$LIBS
29153cat >conftest.$ac_ext <<_ACEOF
29154/* confdefs.h. */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h. */
29159
29160/* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29163#ifdef __cplusplus
29164extern "C"
29165#endif
42f7b73b 29166char compress2 ();
cae5b340
AX
29167int
29168main ()
29169{
42f7b73b 29170return compress2 ();
cae5b340
AX
29171 ;
29172 return 0;
29173}
29174_ACEOF
42f7b73b 29175for ac_lib in '' z; do
cae5b340
AX
29176 if test -z "$ac_lib"; then
29177 ac_res="none required"
29178 else
29179 ac_res=-l$ac_lib
29180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29181 fi
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183if { (ac_try="$ac_link"
29184case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187esac
29188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29189$as_echo "$ac_try_echo") >&5
29190 (eval "$ac_link") 2>conftest.er1
29191 ac_status=$?
29192 grep -v '^ *+' conftest.er1 >conftest.err
29193 rm -f conftest.er1
29194 cat conftest.err >&5
29195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } && {
29197 test -z "$ac_c_werror_flag" ||
29198 test ! -s conftest.err
29199 } && test -s conftest$ac_exeext && {
29200 test "$cross_compiling" = yes ||
29201 $as_test_x conftest$ac_exeext
29202 }; then
42f7b73b 29203 ac_cv_search_compress2=$ac_res
cae5b340
AX
29204else
29205 $as_echo "$as_me: failed program was:" >&5
29206sed 's/^/| /' conftest.$ac_ext >&5
29207
29208
29209fi
29210
29211rm -rf conftest.dSYM
29212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29213 conftest$ac_exeext
42f7b73b 29214 if test "${ac_cv_search_compress2+set}" = set; then
cae5b340
AX
29215 break
29216fi
29217done
42f7b73b 29218if test "${ac_cv_search_compress2+set}" = set; then
cae5b340
AX
29219 :
29220else
42f7b73b 29221 ac_cv_search_compress2=no
cae5b340
AX
29222fi
29223rm conftest.$ac_ext
29224LIBS=$ac_func_search_save_LIBS
29225fi
42f7b73b
AX
29226{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29227$as_echo "$ac_cv_search_compress2" >&6; }
29228ac_res=$ac_cv_search_compress2
cae5b340
AX
29229if test "$ac_res" != no; then
29230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29231
29232else
29233 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29235{ { $as_echo "$as_me:$LINENO: error:
42f7b73b 29236 *** compress2() missing, zlib-devel package required
cae5b340
AX
29237See \`config.log' for more details." >&5
29238$as_echo "$as_me: error:
42f7b73b 29239 *** compress2() missing, zlib-devel package required
cae5b340
AX
29240See \`config.log' for more details." >&2;}
29241 { (exit 1); exit 1; }; }; }
29242fi
29243
29244
42f7b73b
AX
29245 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29246$as_echo_n "checking for library containing uncompress... " >&6; }
29247if test "${ac_cv_search_uncompress+set}" = set; then
cae5b340
AX
29248 $as_echo_n "(cached) " >&6
29249else
42f7b73b 29250 ac_func_search_save_LIBS=$LIBS
cae5b340
AX
29251cat >conftest.$ac_ext <<_ACEOF
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257
29258/* Override any GCC internal prototype to avoid an error.
29259 Use char because int might match the return type of a GCC
29260 builtin and then its argument prototype would still apply. */
29261#ifdef __cplusplus
29262extern "C"
29263#endif
42f7b73b 29264char uncompress ();
cae5b340
AX
29265int
29266main ()
29267{
42f7b73b 29268return uncompress ();
cae5b340
AX
29269 ;
29270 return 0;
29271}
29272_ACEOF
42f7b73b
AX
29273for ac_lib in '' z; do
29274 if test -z "$ac_lib"; then
29275 ac_res="none required"
29276 else
29277 ac_res=-l$ac_lib
29278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29279 fi
29280 rm -f conftest.$ac_objext conftest$ac_exeext
cae5b340
AX
29281if { (ac_try="$ac_link"
29282case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29285esac
29286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29287$as_echo "$ac_try_echo") >&5
29288 (eval "$ac_link") 2>conftest.er1
29289 ac_status=$?
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
29293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } && {
29295 test -z "$ac_c_werror_flag" ||
29296 test ! -s conftest.err
29297 } && test -s conftest$ac_exeext && {
29298 test "$cross_compiling" = yes ||
29299 $as_test_x conftest$ac_exeext
29300 }; then
42f7b73b 29301 ac_cv_search_uncompress=$ac_res
cae5b340
AX
29302else
29303 $as_echo "$as_me: failed program was:" >&5
29304sed 's/^/| /' conftest.$ac_ext >&5
29305
42f7b73b 29306
cae5b340
AX
29307fi
29308
29309rm -rf conftest.dSYM
29310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42f7b73b
AX
29311 conftest$ac_exeext
29312 if test "${ac_cv_search_uncompress+set}" = set; then
29313 break
cae5b340 29314fi
42f7b73b
AX
29315done
29316if test "${ac_cv_search_uncompress+set}" = set; then
29317 :
29318else
29319 ac_cv_search_uncompress=no
29320fi
29321rm conftest.$ac_ext
29322LIBS=$ac_func_search_save_LIBS
29323fi
29324{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29325$as_echo "$ac_cv_search_uncompress" >&6; }
29326ac_res=$ac_cv_search_uncompress
29327if test "$ac_res" != no; then
29328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340
AX
29329
29330else
42f7b73b 29331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
cae5b340 29332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42f7b73b
AX
29333{ { $as_echo "$as_me:$LINENO: error:
29334 *** uncompress() missing, zlib-devel package required
cae5b340 29335See \`config.log' for more details." >&5
42f7b73b
AX
29336$as_echo "$as_me: error:
29337 *** uncompress() missing, zlib-devel package required
cae5b340
AX
29338See \`config.log' for more details." >&2;}
29339 { (exit 1); exit 1; }; }; }
42f7b73b
AX
29340fi
29341
29342
29343 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29344$as_echo_n "checking for library containing crc32... " >&6; }
29345if test "${ac_cv_search_crc32+set}" = set; then
cae5b340
AX
29346 $as_echo_n "(cached) " >&6
29347else
29348 ac_func_search_save_LIBS=$LIBS
29349cat >conftest.$ac_ext <<_ACEOF
29350/* confdefs.h. */
29351_ACEOF
29352cat confdefs.h >>conftest.$ac_ext
29353cat >>conftest.$ac_ext <<_ACEOF
29354/* end confdefs.h. */
29355
29356/* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29359#ifdef __cplusplus
29360extern "C"
29361#endif
42f7b73b 29362char crc32 ();
cae5b340
AX
29363int
29364main ()
29365{
42f7b73b 29366return crc32 ();
cae5b340
AX
29367 ;
29368 return 0;
29369}
29370_ACEOF
42f7b73b 29371for ac_lib in '' z; do
cae5b340
AX
29372 if test -z "$ac_lib"; then
29373 ac_res="none required"
29374 else
29375 ac_res=-l$ac_lib
29376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29377 fi
29378 rm -f conftest.$ac_objext conftest$ac_exeext
29379if { (ac_try="$ac_link"
29380case "(($ac_try" in
29381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382 *) ac_try_echo=$ac_try;;
29383esac
29384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29385$as_echo "$ac_try_echo") >&5
29386 (eval "$ac_link") 2>conftest.er1
29387 ac_status=$?
29388 grep -v '^ *+' conftest.er1 >conftest.err
29389 rm -f conftest.er1
29390 cat conftest.err >&5
29391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } && {
29393 test -z "$ac_c_werror_flag" ||
29394 test ! -s conftest.err
29395 } && test -s conftest$ac_exeext && {
29396 test "$cross_compiling" = yes ||
29397 $as_test_x conftest$ac_exeext
29398 }; then
42f7b73b 29399 ac_cv_search_crc32=$ac_res
cae5b340
AX
29400else
29401 $as_echo "$as_me: failed program was:" >&5
29402sed 's/^/| /' conftest.$ac_ext >&5
29403
29404
29405fi
29406
29407rm -rf conftest.dSYM
29408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29409 conftest$ac_exeext
42f7b73b 29410 if test "${ac_cv_search_crc32+set}" = set; then
cae5b340
AX
29411 break
29412fi
29413done
42f7b73b 29414if test "${ac_cv_search_crc32+set}" = set; then
cae5b340
AX
29415 :
29416else
42f7b73b 29417 ac_cv_search_crc32=no
cae5b340
AX
29418fi
29419rm conftest.$ac_ext
29420LIBS=$ac_func_search_save_LIBS
29421fi
42f7b73b
AX
29422{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
29423$as_echo "$ac_cv_search_crc32" >&6; }
29424ac_res=$ac_cv_search_crc32
cae5b340
AX
29425if test "$ac_res" != no; then
29426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29427
29428else
42f7b73b 29429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
cae5b340 29430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42f7b73b
AX
29431{ { $as_echo "$as_me:$LINENO: error:
29432 *** crc32() missing, zlib-devel package required
cae5b340 29433See \`config.log' for more details." >&5
42f7b73b
AX
29434$as_echo "$as_me: error:
29435 *** crc32() missing, zlib-devel package required
cae5b340
AX
29436See \`config.log' for more details." >&2;}
29437 { (exit 1); exit 1; }; }; }
29438fi
29439
29440
42f7b73b 29441 ZLIB="-lz"
cae5b340 29442
cae5b340 29443
42f7b73b
AX
29444cat >>confdefs.h <<\_ACEOF
29445#define HAVE_ZLIB 1
cae5b340 29446_ACEOF
cae5b340
AX
29447
29448
29449
42f7b73b 29450 LIBUUID=
cae5b340 29451
42f7b73b
AX
29452 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29453 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29454$as_echo_n "checking for uuid/uuid.h... " >&6; }
29455if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
cae5b340
AX
29456 $as_echo_n "(cached) " >&6
29457fi
42f7b73b
AX
29458{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29459$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
cae5b340
AX
29460else
29461 # Is the header compilable?
42f7b73b
AX
29462{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
29463$as_echo_n "checking uuid/uuid.h usability... " >&6; }
cae5b340
AX
29464cat >conftest.$ac_ext <<_ACEOF
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
29470$ac_includes_default
42f7b73b 29471#include <uuid/uuid.h>
cae5b340
AX
29472_ACEOF
29473rm -f conftest.$ac_objext
29474if { (ac_try="$ac_compile"
29475case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29478esac
29479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29480$as_echo "$ac_try_echo") >&5
29481 (eval "$ac_compile") 2>conftest.er1
29482 ac_status=$?
29483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
29486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } && {
29488 test -z "$ac_c_werror_flag" ||
29489 test ! -s conftest.err
29490 } && test -s conftest.$ac_objext; then
29491 ac_header_compiler=yes
29492else
29493 $as_echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496 ac_header_compiler=no
29497fi
29498
29499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29500{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501$as_echo "$ac_header_compiler" >&6; }
29502
29503# Is the header present?
42f7b73b
AX
29504{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
29505$as_echo_n "checking uuid/uuid.h presence... " >&6; }
cae5b340
AX
29506cat >conftest.$ac_ext <<_ACEOF
29507/* confdefs.h. */
29508_ACEOF
29509cat confdefs.h >>conftest.$ac_ext
29510cat >>conftest.$ac_ext <<_ACEOF
29511/* end confdefs.h. */
42f7b73b 29512#include <uuid/uuid.h>
cae5b340
AX
29513_ACEOF
29514if { (ac_try="$ac_cpp conftest.$ac_ext"
29515case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518esac
29519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29520$as_echo "$ac_try_echo") >&5
29521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29522 ac_status=$?
29523 grep -v '^ *+' conftest.er1 >conftest.err
29524 rm -f conftest.er1
29525 cat conftest.err >&5
29526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); } >/dev/null && {
29528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29529 test ! -s conftest.err
29530 }; then
29531 ac_header_preproc=yes
29532else
29533 $as_echo "$as_me: failed program was:" >&5
29534sed 's/^/| /' conftest.$ac_ext >&5
29535
29536 ac_header_preproc=no
29537fi
29538
29539rm -f conftest.err conftest.$ac_ext
29540{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29541$as_echo "$ac_header_preproc" >&6; }
29542
29543# So? What about this header?
29544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29545 yes:no: )
42f7b73b
AX
29546 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
29547$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29548 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
29549$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
cae5b340
AX
29550 ac_header_preproc=yes
29551 ;;
29552 no:yes:* )
42f7b73b
AX
29553 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
29554$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
29555 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
29556$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
29557 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
29558$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
29559 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
29560$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
29561 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
29562$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
29563 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
29564$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
cae5b340
AX
29565
29566 ;;
29567esac
42f7b73b
AX
29568{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29569$as_echo_n "checking for uuid/uuid.h... " >&6; }
29570if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
cae5b340
AX
29571 $as_echo_n "(cached) " >&6
29572else
42f7b73b 29573 ac_cv_header_uuid_uuid_h=$ac_header_preproc
cae5b340 29574fi
42f7b73b
AX
29575{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29576$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
cae5b340
AX
29577
29578fi
42f7b73b 29579if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
cae5b340
AX
29580 :
29581else
29582 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29584{ { $as_echo "$as_me:$LINENO: error:
42f7b73b 29585 *** uuid/uuid.h missing, libuuid-devel package required
cae5b340
AX
29586See \`config.log' for more details." >&5
29587$as_echo "$as_me: error:
42f7b73b 29588 *** uuid/uuid.h missing, libuuid-devel package required
cae5b340
AX
29589See \`config.log' for more details." >&2;}
29590 { (exit 1); exit 1; }; }; }
29591fi
29592
29593
29594
42f7b73b
AX
29595 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
29596$as_echo_n "checking for library containing uuid_generate... " >&6; }
29597if test "${ac_cv_search_uuid_generate+set}" = set; then
cae5b340 29598 $as_echo_n "(cached) " >&6
cae5b340 29599else
42f7b73b 29600 ac_func_search_save_LIBS=$LIBS
cae5b340
AX
29601cat >conftest.$ac_ext <<_ACEOF
29602/* confdefs.h. */
29603_ACEOF
29604cat confdefs.h >>conftest.$ac_ext
29605cat >>conftest.$ac_ext <<_ACEOF
29606/* end confdefs.h. */
42f7b73b
AX
29607
29608/* Override any GCC internal prototype to avoid an error.
29609 Use char because int might match the return type of a GCC
29610 builtin and then its argument prototype would still apply. */
29611#ifdef __cplusplus
29612extern "C"
29613#endif
29614char uuid_generate ();
29615int
29616main ()
29617{
29618return uuid_generate ();
29619 ;
29620 return 0;
29621}
cae5b340 29622_ACEOF
42f7b73b
AX
29623for ac_lib in '' uuid; do
29624 if test -z "$ac_lib"; then
29625 ac_res="none required"
29626 else
29627 ac_res=-l$ac_lib
29628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29629 fi
29630 rm -f conftest.$ac_objext conftest$ac_exeext
29631if { (ac_try="$ac_link"
cae5b340
AX
29632case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29635esac
29636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29637$as_echo "$ac_try_echo") >&5
42f7b73b 29638 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
29639 ac_status=$?
29640 grep -v '^ *+' conftest.er1 >conftest.err
29641 rm -f conftest.er1
29642 cat conftest.err >&5
29643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } && {
29645 test -z "$ac_c_werror_flag" ||
29646 test ! -s conftest.err
42f7b73b
AX
29647 } && test -s conftest$ac_exeext && {
29648 test "$cross_compiling" = yes ||
29649 $as_test_x conftest$ac_exeext
cae5b340 29650 }; then
42f7b73b 29651 ac_cv_search_uuid_generate=$ac_res
cae5b340
AX
29652else
29653 $as_echo "$as_me: failed program was:" >&5
29654sed 's/^/| /' conftest.$ac_ext >&5
29655
cae5b340 29656
cae5b340 29657fi
cae5b340 29658
42f7b73b
AX
29659rm -rf conftest.dSYM
29660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29661 conftest$ac_exeext
29662 if test "${ac_cv_search_uuid_generate+set}" = set; then
29663 break
cae5b340 29664fi
42f7b73b
AX
29665done
29666if test "${ac_cv_search_uuid_generate+set}" = set; then
cae5b340 29667 :
42f7b73b
AX
29668else
29669 ac_cv_search_uuid_generate=no
29670fi
29671rm conftest.$ac_ext
29672LIBS=$ac_func_search_save_LIBS
29673fi
29674{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
29675$as_echo "$ac_cv_search_uuid_generate" >&6; }
29676ac_res=$ac_cv_search_uuid_generate
29677if test "$ac_res" != no; then
29678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29679
cae5b340
AX
29680else
29681 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29683{ { $as_echo "$as_me:$LINENO: error:
42f7b73b 29684 *** uuid_generate() missing, libuuid-devel package required
cae5b340
AX
29685See \`config.log' for more details." >&5
29686$as_echo "$as_me: error:
42f7b73b 29687 *** uuid_generate() missing, libuuid-devel package required
cae5b340
AX
29688See \`config.log' for more details." >&2;}
29689 { (exit 1); exit 1; }; }; }
29690fi
29691
29692
42f7b73b
AX
29693 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
29694$as_echo_n "checking for library containing uuid_is_null... " >&6; }
29695if test "${ac_cv_search_uuid_is_null+set}" = set; then
cae5b340 29696 $as_echo_n "(cached) " >&6
cae5b340 29697else
42f7b73b 29698 ac_func_search_save_LIBS=$LIBS
cae5b340
AX
29699cat >conftest.$ac_ext <<_ACEOF
29700/* confdefs.h. */
29701_ACEOF
29702cat confdefs.h >>conftest.$ac_ext
29703cat >>conftest.$ac_ext <<_ACEOF
29704/* end confdefs.h. */
42f7b73b
AX
29705
29706/* Override any GCC internal prototype to avoid an error.
29707 Use char because int might match the return type of a GCC
29708 builtin and then its argument prototype would still apply. */
29709#ifdef __cplusplus
29710extern "C"
29711#endif
29712char uuid_is_null ();
29713int
29714main ()
29715{
29716return uuid_is_null ();
29717 ;
29718 return 0;
29719}
cae5b340 29720_ACEOF
42f7b73b
AX
29721for ac_lib in '' uuid; do
29722 if test -z "$ac_lib"; then
29723 ac_res="none required"
29724 else
29725 ac_res=-l$ac_lib
29726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29727 fi
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729if { (ac_try="$ac_link"
cae5b340
AX
29730case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29733esac
29734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29735$as_echo "$ac_try_echo") >&5
42f7b73b 29736 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
29737 ac_status=$?
29738 grep -v '^ *+' conftest.er1 >conftest.err
29739 rm -f conftest.er1
29740 cat conftest.err >&5
29741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); } && {
29743 test -z "$ac_c_werror_flag" ||
29744 test ! -s conftest.err
42f7b73b
AX
29745 } && test -s conftest$ac_exeext && {
29746 test "$cross_compiling" = yes ||
29747 $as_test_x conftest$ac_exeext
29748 }; then
29749 ac_cv_search_uuid_is_null=$ac_res
cae5b340
AX
29750else
29751 $as_echo "$as_me: failed program was:" >&5
29752sed 's/^/| /' conftest.$ac_ext >&5
29753
cae5b340 29754
42f7b73b 29755fi
cae5b340 29756
42f7b73b
AX
29757rm -rf conftest.dSYM
29758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29759 conftest$ac_exeext
29760 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29761 break
29762fi
29763done
29764if test "${ac_cv_search_uuid_is_null+set}" = set; then
29765 :
cae5b340 29766else
42f7b73b 29767 ac_cv_search_uuid_is_null=no
cae5b340 29768fi
42f7b73b
AX
29769rm conftest.$ac_ext
29770LIBS=$ac_func_search_save_LIBS
29771fi
29772{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
29773$as_echo "$ac_cv_search_uuid_is_null" >&6; }
29774ac_res=$ac_cv_search_uuid_is_null
29775if test "$ac_res" != no; then
29776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340 29777
cae5b340 29778else
42f7b73b
AX
29779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29781{ { $as_echo "$as_me:$LINENO: error:
29782 *** uuid_is_null() missing, libuuid-devel package required
29783See \`config.log' for more details." >&5
29784$as_echo "$as_me: error:
29785 *** uuid_is_null() missing, libuuid-devel package required
29786See \`config.log' for more details." >&2;}
29787 { (exit 1); exit 1; }; }; }
cae5b340 29788fi
cae5b340 29789
cae5b340 29790
42f7b73b 29791 LIBUUID="-luuid"
cae5b340
AX
29792
29793
29794cat >>confdefs.h <<\_ACEOF
42f7b73b 29795#define HAVE_LIBUUID 1
cae5b340
AX
29796_ACEOF
29797
29798
cae5b340 29799
cae5b340 29800
42f7b73b
AX
29801# Check whether --with-tirpc was given.
29802if test "${with_tirpc+set}" = set; then
29803 withval=$with_tirpc;
29804else
29805 with_tirpc=check
cae5b340
AX
29806fi
29807
29808
42f7b73b
AX
29809 LIBTIRPC=
29810 LIBTIRPC_CFLAGS=
cae5b340 29811
42f7b73b
AX
29812 if test "x$with_tirpc" != xno; then
29813 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
29814$as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
29815if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
cae5b340
AX
29816 $as_echo_n "(cached) " >&6
29817else
42f7b73b
AX
29818 ac_check_lib_save_LIBS=$LIBS
29819LIBS="-ltirpc $LIBS"
cae5b340
AX
29820cat >conftest.$ac_ext <<_ACEOF
29821/* confdefs.h. */
29822_ACEOF
29823cat confdefs.h >>conftest.$ac_ext
29824cat >>conftest.$ac_ext <<_ACEOF
29825/* end confdefs.h. */
29826
29827/* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
29830#ifdef __cplusplus
29831extern "C"
29832#endif
42f7b73b 29833char xdrmem_create ();
cae5b340
AX
29834int
29835main ()
29836{
42f7b73b 29837return xdrmem_create ();
cae5b340
AX
29838 ;
29839 return 0;
29840}
29841_ACEOF
42f7b73b 29842rm -f conftest.$ac_objext conftest$ac_exeext
cae5b340
AX
29843if { (ac_try="$ac_link"
29844case "(($ac_try" in
29845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846 *) ac_try_echo=$ac_try;;
29847esac
29848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29849$as_echo "$ac_try_echo") >&5
29850 (eval "$ac_link") 2>conftest.er1
29851 ac_status=$?
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
29855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } && {
29857 test -z "$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 } && test -s conftest$ac_exeext && {
29860 test "$cross_compiling" = yes ||
29861 $as_test_x conftest$ac_exeext
29862 }; then
42f7b73b 29863 ac_cv_lib_tirpc_xdrmem_create=yes
cae5b340
AX
29864else
29865 $as_echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
42f7b73b 29868 ac_cv_lib_tirpc_xdrmem_create=no
cae5b340
AX
29869fi
29870
29871rm -rf conftest.dSYM
29872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42f7b73b
AX
29873 conftest$ac_exeext conftest.$ac_ext
29874LIBS=$ac_check_lib_save_LIBS
cae5b340 29875fi
42f7b73b
AX
29876{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
29877$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
29878if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
29879 LIBTIRPC=-ltirpc
29880
29881 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
cae5b340
AX
29882
29883
29884cat >>confdefs.h <<\_ACEOF
42f7b73b 29885#define HAVE_LIBTIRPC 1
cae5b340
AX
29886_ACEOF
29887
cae5b340 29888
42f7b73b
AX
29889else
29890 if test "x$with_tirpc" != xcheck; then
29891 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29893{ { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
29894See \`config.log' for more details." >&5
29895$as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
29896See \`config.log' for more details." >&2;}
29897 { (exit 1); exit 1; }; }; }
29898 fi
29899 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
29900$as_echo_n "checking for library containing xdrmem_create... " >&6; }
29901if test "${ac_cv_search_xdrmem_create+set}" = set; then
29902 $as_echo_n "(cached) " >&6
29903else
29904 ac_func_search_save_LIBS=$LIBS
29905cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
29906/* confdefs.h. */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h. */
29911
42f7b73b
AX
29912/* Override any GCC internal prototype to avoid an error.
29913 Use char because int might match the return type of a GCC
29914 builtin and then its argument prototype would still apply. */
29915#ifdef __cplusplus
29916extern "C"
29917#endif
29918char xdrmem_create ();
cae5b340
AX
29919int
29920main ()
29921{
42f7b73b 29922return xdrmem_create ();
cae5b340
AX
29923 ;
29924 return 0;
29925}
29926_ACEOF
42f7b73b
AX
29927for ac_lib in '' tirpc; do
29928 if test -z "$ac_lib"; then
29929 ac_res="none required"
29930 else
29931 ac_res=-l$ac_lib
29932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29933 fi
29934 rm -f conftest.$ac_objext conftest$ac_exeext
29935if { (ac_try="$ac_link"
cae5b340
AX
29936case "(($ac_try" in
29937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29939esac
29940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29941$as_echo "$ac_try_echo") >&5
42f7b73b 29942 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
29943 ac_status=$?
29944 grep -v '^ *+' conftest.er1 >conftest.err
29945 rm -f conftest.er1
29946 cat conftest.err >&5
29947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && {
29949 test -z "$ac_c_werror_flag" ||
29950 test ! -s conftest.err
42f7b73b
AX
29951 } && test -s conftest$ac_exeext && {
29952 test "$cross_compiling" = yes ||
29953 $as_test_x conftest$ac_exeext
29954 }; then
29955 ac_cv_search_xdrmem_create=$ac_res
cae5b340
AX
29956else
29957 $as_echo "$as_me: failed program was:" >&5
29958sed 's/^/| /' conftest.$ac_ext >&5
29959
29960
cae5b340
AX
29961fi
29962
42f7b73b
AX
29963rm -rf conftest.dSYM
29964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29965 conftest$ac_exeext
29966 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29967 break
29968fi
29969done
29970if test "${ac_cv_search_xdrmem_create+set}" = set; then
29971 :
29972else
29973 ac_cv_search_xdrmem_create=no
29974fi
29975rm conftest.$ac_ext
29976LIBS=$ac_func_search_save_LIBS
29977fi
29978{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
29979$as_echo "$ac_cv_search_xdrmem_create" >&6; }
29980ac_res=$ac_cv_search_xdrmem_create
29981if test "$ac_res" != no; then
29982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340 29983
42f7b73b 29984else
cae5b340 29985
42f7b73b
AX
29986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29988{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
29989See \`config.log' for more details." >&5
29990$as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
29991See \`config.log' for more details." >&2;}
29992 { (exit 1); exit 1; }; }; }
29993fi
cae5b340 29994
cae5b340 29995
42f7b73b 29996fi
cae5b340 29997
42f7b73b
AX
29998else
29999 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30000$as_echo_n "checking for library containing xdrmem_create... " >&6; }
30001if test "${ac_cv_search_xdrmem_create+set}" = set; then
30002 $as_echo_n "(cached) " >&6
30003else
30004 ac_func_search_save_LIBS=$LIBS
30005cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30006/* confdefs.h. */
30007_ACEOF
30008cat confdefs.h >>conftest.$ac_ext
30009cat >>conftest.$ac_ext <<_ACEOF
30010/* end confdefs.h. */
30011
42f7b73b
AX
30012/* Override any GCC internal prototype to avoid an error.
30013 Use char because int might match the return type of a GCC
30014 builtin and then its argument prototype would still apply. */
30015#ifdef __cplusplus
30016extern "C"
30017#endif
30018char xdrmem_create ();
cae5b340
AX
30019int
30020main ()
30021{
42f7b73b 30022return xdrmem_create ();
cae5b340
AX
30023 ;
30024 return 0;
30025}
30026_ACEOF
42f7b73b
AX
30027for ac_lib in '' tirpc; do
30028 if test -z "$ac_lib"; then
30029 ac_res="none required"
30030 else
30031 ac_res=-l$ac_lib
30032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30033 fi
30034 rm -f conftest.$ac_objext conftest$ac_exeext
30035if { (ac_try="$ac_link"
cae5b340
AX
30036case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30039esac
30040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30041$as_echo "$ac_try_echo") >&5
42f7b73b 30042 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
30043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } && {
30049 test -z "$ac_c_werror_flag" ||
30050 test ! -s conftest.err
42f7b73b
AX
30051 } && test -s conftest$ac_exeext && {
30052 test "$cross_compiling" = yes ||
30053 $as_test_x conftest$ac_exeext
30054 }; then
30055 ac_cv_search_xdrmem_create=$ac_res
30056else
30057 $as_echo "$as_me: failed program was:" >&5
30058sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 30059
cae5b340 30060
42f7b73b 30061fi
cae5b340 30062
42f7b73b
AX
30063rm -rf conftest.dSYM
30064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30065 conftest$ac_exeext
30066 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30067 break
30068fi
30069done
30070if test "${ac_cv_search_xdrmem_create+set}" = set; then
30071 :
30072else
30073 ac_cv_search_xdrmem_create=no
30074fi
30075rm conftest.$ac_ext
30076LIBS=$ac_func_search_save_LIBS
30077fi
30078{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30079$as_echo "$ac_cv_search_xdrmem_create" >&6; }
30080ac_res=$ac_cv_search_xdrmem_create
30081if test "$ac_res" != no; then
30082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340
AX
30083
30084else
cae5b340 30085
42f7b73b
AX
30086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30088{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30089See \`config.log' for more details." >&5
30090$as_echo "$as_me: error: xdrmem_create() requires libc
30091See \`config.log' for more details." >&2;}
30092 { (exit 1); exit 1; }; }; }
30093fi
cae5b340 30094
cae5b340
AX
30095
30096fi
30097
cae5b340
AX
30098
30099
42f7b73b
AX
30100 LIBBLKID=
30101
30102 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30103 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30104$as_echo_n "checking for blkid/blkid.h... " >&6; }
30105if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30106 $as_echo_n "(cached) " >&6
30107fi
30108{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30109$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30110else
30111 # Is the header compilable?
30112{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
30113$as_echo_n "checking blkid/blkid.h usability... " >&6; }
30114cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30115/* confdefs.h. */
30116_ACEOF
30117cat confdefs.h >>conftest.$ac_ext
30118cat >>conftest.$ac_ext <<_ACEOF
30119/* end confdefs.h. */
42f7b73b
AX
30120$ac_includes_default
30121#include <blkid/blkid.h>
cae5b340
AX
30122_ACEOF
30123rm -f conftest.$ac_objext
30124if { (ac_try="$ac_compile"
30125case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128esac
30129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30130$as_echo "$ac_try_echo") >&5
30131 (eval "$ac_compile") 2>conftest.er1
30132 ac_status=$?
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
30136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } && {
30138 test -z "$ac_c_werror_flag" ||
30139 test ! -s conftest.err
30140 } && test -s conftest.$ac_objext; then
42f7b73b
AX
30141 ac_header_compiler=yes
30142else
30143 $as_echo "$as_me: failed program was:" >&5
30144sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 30145
42f7b73b
AX
30146 ac_header_compiler=no
30147fi
cae5b340 30148
42f7b73b
AX
30149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30151$as_echo "$ac_header_compiler" >&6; }
cae5b340 30152
42f7b73b
AX
30153# Is the header present?
30154{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
30155$as_echo_n "checking blkid/blkid.h presence... " >&6; }
30156cat >conftest.$ac_ext <<_ACEOF
30157/* confdefs.h. */
30158_ACEOF
30159cat confdefs.h >>conftest.$ac_ext
30160cat >>conftest.$ac_ext <<_ACEOF
30161/* end confdefs.h. */
30162#include <blkid/blkid.h>
30163_ACEOF
30164if { (ac_try="$ac_cpp conftest.$ac_ext"
30165case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30168esac
30169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30170$as_echo "$ac_try_echo") >&5
30171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30172 ac_status=$?
30173 grep -v '^ *+' conftest.er1 >conftest.err
30174 rm -f conftest.er1
30175 cat conftest.err >&5
30176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); } >/dev/null && {
30178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30179 test ! -s conftest.err
30180 }; then
30181 ac_header_preproc=yes
cae5b340
AX
30182else
30183 $as_echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
42f7b73b
AX
30186 ac_header_preproc=no
30187fi
cae5b340 30188
42f7b73b
AX
30189rm -f conftest.err conftest.$ac_ext
30190{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30191$as_echo "$ac_header_preproc" >&6; }
30192
30193# So? What about this header?
30194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30195 yes:no: )
30196 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30197$as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30198 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
30199$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
30200 ac_header_preproc=yes
30201 ;;
30202 no:yes:* )
30203 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
30204$as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
30205 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
30206$as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
30207 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
30208$as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
30209 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
30210$as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30211 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
30212$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
30213 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
30214$as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
30215
30216 ;;
30217esac
30218{ $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30219$as_echo_n "checking for blkid/blkid.h... " >&6; }
30220if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30221 $as_echo_n "(cached) " >&6
30222else
30223 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30224fi
30225{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30226$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
cae5b340 30227
42f7b73b
AX
30228fi
30229if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30230 :
30231else
30232 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30234{ { $as_echo "$as_me:$LINENO: error:
30235 *** blkid.h missing, libblkid-devel package required
30236See \`config.log' for more details." >&5
30237$as_echo "$as_me: error:
30238 *** blkid.h missing, libblkid-devel package required
30239See \`config.log' for more details." >&2;}
30240 { (exit 1); exit 1; }; }; }
cae5b340
AX
30241fi
30242
cae5b340
AX
30243
30244
42f7b73b 30245 LIBBLKID="-lblkid"
cae5b340 30246
cae5b340 30247
42f7b73b
AX
30248cat >>confdefs.h <<\_ACEOF
30249#define HAVE_LIBBLKID 1
30250_ACEOF
30251
30252
30253
30254 LIBUDEV=
30255
30256 if test "${ac_cv_header_libudev_h+set}" = set; then
30257 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30258$as_echo_n "checking for libudev.h... " >&6; }
30259if test "${ac_cv_header_libudev_h+set}" = set; then
30260 $as_echo_n "(cached) " >&6
30261fi
30262{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30263$as_echo "$ac_cv_header_libudev_h" >&6; }
30264else
30265 # Is the header compilable?
30266{ $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
30267$as_echo_n "checking libudev.h usability... " >&6; }
30268cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30269/* confdefs.h. */
30270_ACEOF
30271cat confdefs.h >>conftest.$ac_ext
30272cat >>conftest.$ac_ext <<_ACEOF
30273/* end confdefs.h. */
42f7b73b
AX
30274$ac_includes_default
30275#include <libudev.h>
cae5b340
AX
30276_ACEOF
30277rm -f conftest.$ac_objext
30278if { (ac_try="$ac_compile"
30279case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30284$as_echo "$ac_try_echo") >&5
30285 (eval "$ac_compile") 2>conftest.er1
30286 ac_status=$?
30287 grep -v '^ *+' conftest.er1 >conftest.err
30288 rm -f conftest.er1
30289 cat conftest.err >&5
30290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } && {
30292 test -z "$ac_c_werror_flag" ||
30293 test ! -s conftest.err
30294 } && test -s conftest.$ac_objext; then
42f7b73b
AX
30295 ac_header_compiler=yes
30296else
30297 $as_echo "$as_me: failed program was:" >&5
30298sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 30299
42f7b73b
AX
30300 ac_header_compiler=no
30301fi
30302
30303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30304{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30305$as_echo "$ac_header_compiler" >&6; }
cae5b340 30306
42f7b73b
AX
30307# Is the header present?
30308{ $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
30309$as_echo_n "checking libudev.h presence... " >&6; }
30310cat >conftest.$ac_ext <<_ACEOF
30311/* confdefs.h. */
30312_ACEOF
30313cat confdefs.h >>conftest.$ac_ext
30314cat >>conftest.$ac_ext <<_ACEOF
30315/* end confdefs.h. */
30316#include <libudev.h>
30317_ACEOF
30318if { (ac_try="$ac_cpp conftest.$ac_ext"
30319case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30322esac
30323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30324$as_echo "$ac_try_echo") >&5
30325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30326 ac_status=$?
30327 grep -v '^ *+' conftest.er1 >conftest.err
30328 rm -f conftest.er1
30329 cat conftest.err >&5
30330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } >/dev/null && {
30332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30333 test ! -s conftest.err
30334 }; then
30335 ac_header_preproc=yes
cae5b340
AX
30336else
30337 $as_echo "$as_me: failed program was:" >&5
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
42f7b73b
AX
30340 ac_header_preproc=no
30341fi
cae5b340 30342
42f7b73b
AX
30343rm -f conftest.err conftest.$ac_ext
30344{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30345$as_echo "$ac_header_preproc" >&6; }
cae5b340 30346
42f7b73b
AX
30347# So? What about this header?
30348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30349 yes:no: )
30350 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30351$as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30352 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
30353$as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
30354 ac_header_preproc=yes
30355 ;;
30356 no:yes:* )
30357 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
30358$as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
30359 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
30360$as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
30361 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
30362$as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
30363 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
30364$as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30365 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
30366$as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
30367 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
30368$as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
cae5b340 30369
42f7b73b
AX
30370 ;;
30371esac
30372{ $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30373$as_echo_n "checking for libudev.h... " >&6; }
30374if test "${ac_cv_header_libudev_h+set}" = set; then
30375 $as_echo_n "(cached) " >&6
30376else
30377 ac_cv_header_libudev_h=$ac_header_preproc
30378fi
30379{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30380$as_echo "$ac_cv_header_libudev_h" >&6; }
cae5b340 30381
42f7b73b
AX
30382fi
30383if test "x$ac_cv_header_libudev_h" = x""yes; then
cae5b340 30384
42f7b73b
AX
30385 user_libudev=yes
30386 LIBUDEV="-ludev"
cae5b340
AX
30387
30388
42f7b73b
AX
30389cat >>confdefs.h <<\_ACEOF
30390#define HAVE_LIBUDEV 1
30391_ACEOF
cae5b340 30392
cae5b340 30393
42f7b73b 30394else
cae5b340 30395
42f7b73b 30396 user_libudev=no
cae5b340 30397
42f7b73b 30398fi
cae5b340
AX
30399
30400
30401
42f7b73b
AX
30402 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
30403$as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
30404if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
cae5b340
AX
30405 $as_echo_n "(cached) " >&6
30406else
42f7b73b
AX
30407 ac_func_search_save_LIBS=$LIBS
30408cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30409/* confdefs.h. */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h. */
cae5b340
AX
30414
30415/* Override any GCC internal prototype to avoid an error.
30416 Use char because int might match the return type of a GCC
30417 builtin and then its argument prototype would still apply. */
30418#ifdef __cplusplus
30419extern "C"
30420#endif
42f7b73b 30421char udev_device_get_is_initialized ();
cae5b340
AX
30422int
30423main ()
30424{
42f7b73b 30425return udev_device_get_is_initialized ();
cae5b340
AX
30426 ;
30427 return 0;
30428}
30429_ACEOF
42f7b73b
AX
30430for ac_lib in '' udev; do
30431 if test -z "$ac_lib"; then
30432 ac_res="none required"
30433 else
30434 ac_res=-l$ac_lib
30435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30436 fi
30437 rm -f conftest.$ac_objext conftest$ac_exeext
30438if { (ac_try="$ac_link"
30439case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30442esac
30443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30444$as_echo "$ac_try_echo") >&5
30445 (eval "$ac_link") 2>conftest.er1
30446 ac_status=$?
30447 grep -v '^ *+' conftest.er1 >conftest.err
30448 rm -f conftest.er1
30449 cat conftest.err >&5
30450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } && {
30452 test -z "$ac_c_werror_flag" ||
30453 test ! -s conftest.err
30454 } && test -s conftest$ac_exeext && {
30455 test "$cross_compiling" = yes ||
30456 $as_test_x conftest$ac_exeext
30457 }; then
30458 ac_cv_search_udev_device_get_is_initialized=$ac_res
30459else
30460 $as_echo "$as_me: failed program was:" >&5
30461sed 's/^/| /' conftest.$ac_ext >&5
30462
30463
30464fi
30465
30466rm -rf conftest.dSYM
30467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30468 conftest$ac_exeext
30469 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30470 break
30471fi
30472done
30473if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30474 :
30475else
30476 ac_cv_search_udev_device_get_is_initialized=no
30477fi
30478rm conftest.$ac_ext
30479LIBS=$ac_func_search_save_LIBS
30480fi
30481{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
30482$as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
30483ac_res=$ac_cv_search_udev_device_get_is_initialized
30484if test "$ac_res" != no; then
30485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30486
30487
30488cat >>confdefs.h <<\_ACEOF
30489#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
30490_ACEOF
30491
30492fi
30493
30494
30495
30496
30497 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
30498$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
30499
30500 saved_flags="$CFLAGS"
30501 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
30502
30503 cat >conftest.$ac_ext <<_ACEOF
30504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
30509
30510int
30511main ()
30512{
30513
30514 ;
30515 return 0;
30516}
30517_ACEOF
30518rm -f conftest.$ac_objext
30519if { (ac_try="$ac_compile"
30520case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30523esac
30524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30525$as_echo "$ac_try_echo") >&5
30526 (eval "$ac_compile") 2>conftest.er1
30527 ac_status=$?
30528 grep -v '^ *+' conftest.er1 >conftest.err
30529 rm -f conftest.er1
30530 cat conftest.err >&5
30531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } && {
30533 test -z "$ac_c_werror_flag" ||
30534 test ! -s conftest.err
30535 } && test -s conftest.$ac_objext; then
30536
30537 FRAME_LARGER_THAN=-Wframe-larger-than=1024
30538 { $as_echo "$as_me:$LINENO: result: yes" >&5
30539$as_echo "yes" >&6; }
30540
30541else
30542 $as_echo "$as_me: failed program was:" >&5
30543sed 's/^/| /' conftest.$ac_ext >&5
30544
30545
30546 FRAME_LARGER_THAN=
30547 { $as_echo "$as_me:$LINENO: result: no" >&5
30548$as_echo "no" >&6; }
30549
30550fi
30551
30552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553
30554 CFLAGS="$saved_flags"
30555
30556
30557
30558 LIBAIO=
30559
30560 if test "${ac_cv_header_libaio_h+set}" = set; then
30561 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30562$as_echo_n "checking for libaio.h... " >&6; }
30563if test "${ac_cv_header_libaio_h+set}" = set; then
30564 $as_echo_n "(cached) " >&6
30565fi
30566{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30567$as_echo "$ac_cv_header_libaio_h" >&6; }
30568else
30569 # Is the header compilable?
30570{ $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
30571$as_echo_n "checking libaio.h usability... " >&6; }
30572cat >conftest.$ac_ext <<_ACEOF
30573/* confdefs.h. */
30574_ACEOF
30575cat confdefs.h >>conftest.$ac_ext
30576cat >>conftest.$ac_ext <<_ACEOF
30577/* end confdefs.h. */
30578$ac_includes_default
30579#include <libaio.h>
30580_ACEOF
30581rm -f conftest.$ac_objext
30582if { (ac_try="$ac_compile"
30583case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30586esac
30587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30588$as_echo "$ac_try_echo") >&5
30589 (eval "$ac_compile") 2>conftest.er1
30590 ac_status=$?
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
30594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } && {
30596 test -z "$ac_c_werror_flag" ||
30597 test ! -s conftest.err
30598 } && test -s conftest.$ac_objext; then
30599 ac_header_compiler=yes
30600else
30601 $as_echo "$as_me: failed program was:" >&5
30602sed 's/^/| /' conftest.$ac_ext >&5
30603
30604 ac_header_compiler=no
30605fi
30606
30607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30608{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30609$as_echo "$ac_header_compiler" >&6; }
30610
30611# Is the header present?
30612{ $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
30613$as_echo_n "checking libaio.h presence... " >&6; }
30614cat >conftest.$ac_ext <<_ACEOF
30615/* confdefs.h. */
30616_ACEOF
30617cat confdefs.h >>conftest.$ac_ext
30618cat >>conftest.$ac_ext <<_ACEOF
30619/* end confdefs.h. */
30620#include <libaio.h>
30621_ACEOF
30622if { (ac_try="$ac_cpp conftest.$ac_ext"
30623case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626esac
30627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30628$as_echo "$ac_try_echo") >&5
30629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30630 ac_status=$?
30631 grep -v '^ *+' conftest.er1 >conftest.err
30632 rm -f conftest.er1
30633 cat conftest.err >&5
30634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } >/dev/null && {
30636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30637 test ! -s conftest.err
30638 }; then
30639 ac_header_preproc=yes
30640else
30641 $as_echo "$as_me: failed program was:" >&5
30642sed 's/^/| /' conftest.$ac_ext >&5
30643
30644 ac_header_preproc=no
30645fi
30646
30647rm -f conftest.err conftest.$ac_ext
30648{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30649$as_echo "$ac_header_preproc" >&6; }
30650
30651# So? What about this header?
30652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30653 yes:no: )
30654 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
30655$as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30656 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
30657$as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
30658 ac_header_preproc=yes
30659 ;;
30660 no:yes:* )
30661 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
30662$as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
30663 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
30664$as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
30665 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
30666$as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
30667 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
30668$as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
30669 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
30670$as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
30671 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
30672$as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
30673
30674 ;;
30675esac
30676{ $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30677$as_echo_n "checking for libaio.h... " >&6; }
30678if test "${ac_cv_header_libaio_h+set}" = set; then
30679 $as_echo_n "(cached) " >&6
30680else
30681 ac_cv_header_libaio_h=$ac_header_preproc
30682fi
30683{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30684$as_echo "$ac_cv_header_libaio_h" >&6; }
30685
30686fi
30687if test "x$ac_cv_header_libaio_h" = x""yes; then
30688
30689 user_libaio=yes
30690 LIBAIO="-laio"
30691
30692
30693cat >>confdefs.h <<\_ACEOF
30694#define HAVE_LIBAIO 1
30695_ACEOF
30696
30697
30698else
30699
30700 user_libaio=no
30701
30702fi
30703
30704
30705
30706
30707 if test "x$runstatedir" = x; then
30708 runstatedir='${localstatedir}/run'
30709
30710 fi
30711
30712
30713 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
30714$as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
30715 cat >conftest.$ac_ext <<_ACEOF
30716/* confdefs.h. */
30717_ACEOF
30718cat confdefs.h >>conftest.$ac_ext
30719cat >>conftest.$ac_ext <<_ACEOF
30720/* end confdefs.h. */
30721
30722 #include <sys/sysmacros.h>
30723
30724int
30725main ()
30726{
30727
30728 int k;
30729 k = makedev(0,0);
30730
30731 ;
30732 return 0;
30733}
30734_ACEOF
30735rm -f conftest.$ac_objext
30736if { (ac_try="$ac_compile"
30737case "(($ac_try" in
30738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739 *) ac_try_echo=$ac_try;;
30740esac
30741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30742$as_echo "$ac_try_echo") >&5
30743 (eval "$ac_compile") 2>conftest.er1
30744 ac_status=$?
30745 grep -v '^ *+' conftest.er1 >conftest.err
30746 rm -f conftest.er1
30747 cat conftest.err >&5
30748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); } && {
30750 test -z "$ac_c_werror_flag" ||
30751 test ! -s conftest.err
30752 } && test -s conftest.$ac_objext; then
30753
30754 { $as_echo "$as_me:$LINENO: result: yes" >&5
30755$as_echo "yes" >&6; }
30756
30757cat >>confdefs.h <<\_ACEOF
30758#define HAVE_MAKEDEV_IN_SYSMACROS 1
30759_ACEOF
30760
30761
30762else
30763 $as_echo "$as_me: failed program was:" >&5
30764sed 's/^/| /' conftest.$ac_ext >&5
30765
30766
30767 { $as_echo "$as_me:$LINENO: result: no" >&5
30768$as_echo "no" >&6; }
30769
30770fi
30771
30772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773
30774
30775 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
30776$as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
30777 cat >conftest.$ac_ext <<_ACEOF
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
30783
30784 #include <sys/mkdev.h>
30785
30786int
30787main ()
30788{
30789
30790 int k;
30791 k = makedev(0,0);
30792
30793 ;
30794 return 0;
30795}
30796_ACEOF
30797rm -f conftest.$ac_objext
30798if { (ac_try="$ac_compile"
30799case "(($ac_try" in
30800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801 *) ac_try_echo=$ac_try;;
30802esac
30803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30804$as_echo "$ac_try_echo") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && {
30812 test -z "$ac_c_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
30815
30816 { $as_echo "$as_me:$LINENO: result: yes" >&5
30817$as_echo "yes" >&6; }
30818
30819cat >>confdefs.h <<\_ACEOF
30820#define HAVE_MAKEDEV_IN_MKDEV 1
30821_ACEOF
30822
30823
30824else
30825 $as_echo "$as_me: failed program was:" >&5
30826sed 's/^/| /' conftest.$ac_ext >&5
30827
30828
30829 { $as_echo "$as_me:$LINENO: result: no" >&5
30830$as_echo "no" >&6; }
30831
30832fi
30833
30834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30835
30836
30837 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
30838$as_echo_n "checking for -Wno-format-truncation support... " >&6; }
30839
30840 saved_flags="$CFLAGS"
30841 CFLAGS="$CFLAGS -Wno-format-truncation"
30842
30843 cat >conftest.$ac_ext <<_ACEOF
30844/* confdefs.h. */
30845_ACEOF
30846cat confdefs.h >>conftest.$ac_ext
30847cat >>conftest.$ac_ext <<_ACEOF
30848/* end confdefs.h. */
30849
30850int
30851main ()
30852{
30853
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858rm -f conftest.$ac_objext
30859if { (ac_try="$ac_compile"
30860case "(($ac_try" in
30861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30862 *) ac_try_echo=$ac_try;;
30863esac
30864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30865$as_echo "$ac_try_echo") >&5
30866 (eval "$ac_compile") 2>conftest.er1
30867 ac_status=$?
30868 grep -v '^ *+' conftest.er1 >conftest.err
30869 rm -f conftest.er1
30870 cat conftest.err >&5
30871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } && {
30873 test -z "$ac_c_werror_flag" ||
30874 test ! -s conftest.err
30875 } && test -s conftest.$ac_objext; then
30876
30877 NO_FORMAT_TRUNCATION=-Wno-format-truncation
30878 { $as_echo "$as_me:$LINENO: result: yes" >&5
30879$as_echo "yes" >&6; }
30880
30881else
30882 $as_echo "$as_me: failed program was:" >&5
30883sed 's/^/| /' conftest.$ac_ext >&5
30884
30885
30886 NO_FORMAT_TRUNCATION=
30887 { $as_echo "$as_me:$LINENO: result: no" >&5
30888$as_echo "no" >&6; }
30889
30890fi
30891
30892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30893
30894 CFLAGS="$saved_flags"
30895
30896
30897
30898
30899 ZONENAME="echo global"
30900
30901
30902
30903
30904
30905
30906for ac_func in mlockall
30907do
30908as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30909{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30910$as_echo_n "checking for $ac_func... " >&6; }
30911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30912 $as_echo_n "(cached) " >&6
30913else
30914 cat >conftest.$ac_ext <<_ACEOF
30915/* confdefs.h. */
30916_ACEOF
30917cat confdefs.h >>conftest.$ac_ext
30918cat >>conftest.$ac_ext <<_ACEOF
30919/* end confdefs.h. */
30920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30922#define $ac_func innocuous_$ac_func
30923
30924/* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below.
30926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30927 <limits.h> exists even on freestanding compilers. */
30928
30929#ifdef __STDC__
30930# include <limits.h>
30931#else
30932# include <assert.h>
30933#endif
30934
30935#undef $ac_func
30936
30937/* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
30940#ifdef __cplusplus
30941extern "C"
30942#endif
30943char $ac_func ();
30944/* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
30947#if defined __stub_$ac_func || defined __stub___$ac_func
30948choke me
30949#endif
30950
30951int
30952main ()
30953{
30954return $ac_func ();
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959rm -f conftest.$ac_objext conftest$ac_exeext
30960if { (ac_try="$ac_link"
30961case "(($ac_try" in
cae5b340
AX
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964esac
30965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30966$as_echo "$ac_try_echo") >&5
30967 (eval "$ac_link") 2>conftest.er1
30968 ac_status=$?
30969 grep -v '^ *+' conftest.er1 >conftest.err
30970 rm -f conftest.er1
30971 cat conftest.err >&5
30972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); } && {
30974 test -z "$ac_c_werror_flag" ||
30975 test ! -s conftest.err
30976 } && test -s conftest$ac_exeext && {
30977 test "$cross_compiling" = yes ||
30978 $as_test_x conftest$ac_exeext
30979 }; then
30980 eval "$as_ac_var=yes"
30981else
30982 $as_echo "$as_me: failed program was:" >&5
30983sed 's/^/| /' conftest.$ac_ext >&5
30984
30985 eval "$as_ac_var=no"
30986fi
30987
30988rm -rf conftest.dSYM
30989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30990 conftest$ac_exeext conftest.$ac_ext
30991fi
30992ac_res=`eval 'as_val=${'$as_ac_var'}
30993 $as_echo "$as_val"'`
30994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30995$as_echo "$ac_res" >&6; }
30996as_val=`eval 'as_val=${'$as_ac_var'}
30997 $as_echo "$as_val"'`
30998 if test "x$as_val" = x""yes; then
30999 cat >>confdefs.h <<_ACEOF
31000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31001_ACEOF
31002
31003fi
31004done
31005
31006 ;;
31007 all)
31008
31009
31010# Check whether --with-mounthelperdir was given.
31011if test "${with_mounthelperdir+set}" = set; then
31012 withval=$with_mounthelperdir; mounthelperdir=$withval
31013else
31014 mounthelperdir=/sbin
31015fi
31016
31017
31018
31019
31020
31021 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
31022$as_echo_n "checking for udev directories... " >&6; }
31023
31024# Check whether --with-udevdir was given.
31025if test "${with_udevdir+set}" = set; then
31026 withval=$with_udevdir; udevdir=$withval
31027else
31028 udevdir=check
31029fi
31030
31031
31032 if test "x$udevdir" = xcheck; then
31033
31034 path1=/lib/udev
31035 path2=/usr/lib/udev
31036 default=$path2
31037
31038 if test -d "$path1"; then
31039 udevdir="$path1"
31040else
31041
31042 if test -d "$path2"; then
31043 udevdir="$path2"
31044else
31045 udevdir="$default"
31046fi
31047
31048
31049fi
31050
31051
31052fi
31053
31054
31055
31056# Check whether --with-udevruledir was given.
31057if test "${with_udevruledir+set}" = set; then
31058 withval=$with_udevruledir; udevruledir=$withval
31059else
31060 udevruledir="${udevdir}/rules.d"
31061fi
31062
31063
31064
31065
31066 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
31067$as_echo "$udevdir;$udevruledir" >&6; }
31068
31069
31070 # Check whether --enable-systemd was given.
31071if test "${enable_systemd+set}" = set; then
42f7b73b 31072 enableval=$enable_systemd; enable_systemd=$enableval
cae5b340 31073else
42f7b73b 31074 enable_systemd=check
cae5b340
AX
31075fi
31076
31077
31078
31079# Check whether --with-systemdunitdir was given.
31080if test "${with_systemdunitdir+set}" = set; then
31081 withval=$with_systemdunitdir; systemdunitdir=$withval
68d83c55
AX
31082else
31083 systemdunitdir=/usr/lib/systemd/system
31084fi
31085
31086
31087
cae5b340
AX
31088# Check whether --with-systemdpresetdir was given.
31089if test "${with_systemdpresetdir+set}" = set; then
31090 withval=$with_systemdpresetdir; systemdpresetdir=$withval
31091else
31092 systemdpresetdir=/usr/lib/systemd/system-preset
31093fi
31094
31095
31096
31097# Check whether --with-systemdmodulesloaddir was given.
31098if test "${with_systemdmodulesloaddir+set}" = set; then
31099 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
31100else
31101 systemdmodulesloaddir=/usr/lib/modules-load.d
31102fi
31103
31104
42f7b73b
AX
31105 if test "x$enable_systemd" = xcheck; then
31106
31107 if systemctl --version >/dev/null 2>&1; then
31108 enable_systemd=yes
31109else
31110 enable_systemd=no
31111fi
31112
31113
31114fi
31115
31116
31117 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
31118$as_echo_n "checking for systemd support... " >&6; }
31119 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
31120$as_echo "$enable_systemd" >&6; }
cae5b340
AX
31121
31122 if test "x$enable_systemd" = xyes; then
31123
31124 ZFS_INIT_SYSTEMD=systemd
31125 ZFS_MODULE_LOAD=modules-load.d
42f7b73b 31126 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
cae5b340
AX
31127 modulesloaddir=$systemdmodulesloaddir
31128
42f7b73b
AX
31129else
31130
31131 DEFINE_SYSTEMD='--without systemd'
31132
cae5b340
AX
31133fi
31134
31135
31136
31137
31138
31139
31140
31141
31142
42f7b73b 31143
cae5b340
AX
31144 # Check whether --enable-sysvinit was given.
31145if test "${enable_sysvinit+set}" = set; then
31146 enableval=$enable_sysvinit;
31147else
31148 enable_sysvinit=yes
31149fi
31150
31151
31152 if test "x$enable_sysvinit" = xyes; then
31153 ZFS_INIT_SYSV=init.d
31154fi
31155
31156
31157
31158
31159
31160 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
31161$as_echo_n "checking for dracut directory... " >&6; }
31162
31163# Check whether --with-dracutdir was given.
31164if test "${with_dracutdir+set}" = set; then
31165 withval=$with_dracutdir; dracutdir=$withval
31166else
31167 dracutdir=check
31168fi
31169
31170
31171 if test "x$dracutdir" = xcheck; then
31172
31173 path1=/usr/share/dracut
31174 path2=/usr/lib/dracut
31175 default=$path2
31176
31177 if test -d "$path1"; then
31178 dracutdir="$path1"
31179else
31180
31181 if test -d "$path2"; then
31182 dracutdir="$path2"
31183else
31184 dracutdir="$default"
31185fi
31186
31187
31188fi
31189
31190
31191fi
31192
31193
31194
31195 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
31196$as_echo "$dracutdir" >&6; }
31197
31198
31199 ZLIB=
31200
31201 if test "${ac_cv_header_zlib_h+set}" = set; then
31202 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31203$as_echo_n "checking for zlib.h... " >&6; }
31204if test "${ac_cv_header_zlib_h+set}" = set; then
31205 $as_echo_n "(cached) " >&6
31206fi
31207{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31208$as_echo "$ac_cv_header_zlib_h" >&6; }
31209else
31210 # Is the header compilable?
31211{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
31212$as_echo_n "checking zlib.h usability... " >&6; }
31213cat >conftest.$ac_ext <<_ACEOF
31214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
31219$ac_includes_default
31220#include <zlib.h>
31221_ACEOF
31222rm -f conftest.$ac_objext
31223if { (ac_try="$ac_compile"
31224case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227esac
31228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31229$as_echo "$ac_try_echo") >&5
31230 (eval "$ac_compile") 2>conftest.er1
31231 ac_status=$?
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
31235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } && {
31237 test -z "$ac_c_werror_flag" ||
31238 test ! -s conftest.err
31239 } && test -s conftest.$ac_objext; then
31240 ac_header_compiler=yes
31241else
31242 $as_echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
31245 ac_header_compiler=no
31246fi
31247
31248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31250$as_echo "$ac_header_compiler" >&6; }
31251
31252# Is the header present?
31253{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
31254$as_echo_n "checking zlib.h presence... " >&6; }
31255cat >conftest.$ac_ext <<_ACEOF
31256/* confdefs.h. */
31257_ACEOF
31258cat confdefs.h >>conftest.$ac_ext
31259cat >>conftest.$ac_ext <<_ACEOF
31260/* end confdefs.h. */
31261#include <zlib.h>
31262_ACEOF
31263if { (ac_try="$ac_cpp conftest.$ac_ext"
31264case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267esac
31268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269$as_echo "$ac_try_echo") >&5
31270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31271 ac_status=$?
31272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
31275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } >/dev/null && {
31277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31278 test ! -s conftest.err
31279 }; then
31280 ac_header_preproc=yes
31281else
31282 $as_echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285 ac_header_preproc=no
31286fi
31287
31288rm -f conftest.err conftest.$ac_ext
31289{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31290$as_echo "$ac_header_preproc" >&6; }
31291
31292# So? What about this header?
31293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31294 yes:no: )
31295 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31296$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31297 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31298$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31299 ac_header_preproc=yes
31300 ;;
31301 no:yes:* )
31302 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31303$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31304 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31305$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31306 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31307$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31308 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31309$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31310 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31311$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31312 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31313$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31314
31315 ;;
31316esac
31317{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31318$as_echo_n "checking for zlib.h... " >&6; }
31319if test "${ac_cv_header_zlib_h+set}" = set; then
31320 $as_echo_n "(cached) " >&6
31321else
31322 ac_cv_header_zlib_h=$ac_header_preproc
31323fi
31324{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31325$as_echo "$ac_cv_header_zlib_h" >&6; }
31326
31327fi
31328if test "x$ac_cv_header_zlib_h" = x""yes; then
31329 :
31330else
31331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31333{ { $as_echo "$as_me:$LINENO: error:
31334 *** zlib.h missing, zlib-devel package required
31335See \`config.log' for more details." >&5
31336$as_echo "$as_me: error:
31337 *** zlib.h missing, zlib-devel package required
31338See \`config.log' for more details." >&2;}
31339 { (exit 1); exit 1; }; }; }
31340fi
31341
31342
31343
31344 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
31345$as_echo_n "checking for library containing compress2... " >&6; }
31346if test "${ac_cv_search_compress2+set}" = set; then
31347 $as_echo_n "(cached) " >&6
31348else
31349 ac_func_search_save_LIBS=$LIBS
31350cat >conftest.$ac_ext <<_ACEOF
31351/* confdefs.h. */
31352_ACEOF
31353cat confdefs.h >>conftest.$ac_ext
31354cat >>conftest.$ac_ext <<_ACEOF
31355/* end confdefs.h. */
31356
31357/* Override any GCC internal prototype to avoid an error.
31358 Use char because int might match the return type of a GCC
31359 builtin and then its argument prototype would still apply. */
31360#ifdef __cplusplus
31361extern "C"
31362#endif
31363char compress2 ();
31364int
31365main ()
31366{
31367return compress2 ();
31368 ;
31369 return 0;
31370}
31371_ACEOF
31372for ac_lib in '' z; do
31373 if test -z "$ac_lib"; then
31374 ac_res="none required"
31375 else
31376 ac_res=-l$ac_lib
31377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31378 fi
31379 rm -f conftest.$ac_objext conftest$ac_exeext
31380if { (ac_try="$ac_link"
31381case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31384esac
31385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31386$as_echo "$ac_try_echo") >&5
31387 (eval "$ac_link") 2>conftest.er1
31388 ac_status=$?
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
31392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && {
31394 test -z "$ac_c_werror_flag" ||
31395 test ! -s conftest.err
31396 } && test -s conftest$ac_exeext && {
31397 test "$cross_compiling" = yes ||
31398 $as_test_x conftest$ac_exeext
31399 }; then
31400 ac_cv_search_compress2=$ac_res
31401else
31402 $as_echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405
31406fi
31407
31408rm -rf conftest.dSYM
31409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31410 conftest$ac_exeext
31411 if test "${ac_cv_search_compress2+set}" = set; then
31412 break
31413fi
31414done
31415if test "${ac_cv_search_compress2+set}" = set; then
31416 :
31417else
31418 ac_cv_search_compress2=no
31419fi
31420rm conftest.$ac_ext
31421LIBS=$ac_func_search_save_LIBS
31422fi
31423{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
31424$as_echo "$ac_cv_search_compress2" >&6; }
31425ac_res=$ac_cv_search_compress2
31426if test "$ac_res" != no; then
31427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31428
31429else
31430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31432{ { $as_echo "$as_me:$LINENO: error:
31433 *** compress2() missing, zlib-devel package required
31434See \`config.log' for more details." >&5
31435$as_echo "$as_me: error:
31436 *** compress2() missing, zlib-devel package required
31437See \`config.log' for more details." >&2;}
31438 { (exit 1); exit 1; }; }; }
31439fi
31440
31441
31442 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
31443$as_echo_n "checking for library containing uncompress... " >&6; }
31444if test "${ac_cv_search_uncompress+set}" = set; then
31445 $as_echo_n "(cached) " >&6
31446else
31447 ac_func_search_save_LIBS=$LIBS
31448cat >conftest.$ac_ext <<_ACEOF
31449/* confdefs.h. */
31450_ACEOF
31451cat confdefs.h >>conftest.$ac_ext
31452cat >>conftest.$ac_ext <<_ACEOF
31453/* end confdefs.h. */
31454
31455/* Override any GCC internal prototype to avoid an error.
31456 Use char because int might match the return type of a GCC
31457 builtin and then its argument prototype would still apply. */
31458#ifdef __cplusplus
31459extern "C"
31460#endif
31461char uncompress ();
31462int
31463main ()
31464{
31465return uncompress ();
31466 ;
31467 return 0;
31468}
31469_ACEOF
31470for ac_lib in '' z; do
31471 if test -z "$ac_lib"; then
31472 ac_res="none required"
31473 else
31474 ac_res=-l$ac_lib
31475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31476 fi
31477 rm -f conftest.$ac_objext conftest$ac_exeext
31478if { (ac_try="$ac_link"
31479case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31482esac
31483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31484$as_echo "$ac_try_echo") >&5
31485 (eval "$ac_link") 2>conftest.er1
31486 ac_status=$?
31487 grep -v '^ *+' conftest.er1 >conftest.err
31488 rm -f conftest.er1
31489 cat conftest.err >&5
31490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } && {
31492 test -z "$ac_c_werror_flag" ||
31493 test ! -s conftest.err
31494 } && test -s conftest$ac_exeext && {
31495 test "$cross_compiling" = yes ||
31496 $as_test_x conftest$ac_exeext
31497 }; then
31498 ac_cv_search_uncompress=$ac_res
31499else
31500 $as_echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503
31504fi
31505
31506rm -rf conftest.dSYM
31507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31508 conftest$ac_exeext
31509 if test "${ac_cv_search_uncompress+set}" = set; then
31510 break
31511fi
31512done
31513if test "${ac_cv_search_uncompress+set}" = set; then
31514 :
31515else
31516 ac_cv_search_uncompress=no
31517fi
31518rm conftest.$ac_ext
31519LIBS=$ac_func_search_save_LIBS
31520fi
31521{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
31522$as_echo "$ac_cv_search_uncompress" >&6; }
31523ac_res=$ac_cv_search_uncompress
31524if test "$ac_res" != no; then
31525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31526
31527else
31528 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31530{ { $as_echo "$as_me:$LINENO: error:
31531 *** uncompress() missing, zlib-devel package required
31532See \`config.log' for more details." >&5
31533$as_echo "$as_me: error:
31534 *** uncompress() missing, zlib-devel package required
31535See \`config.log' for more details." >&2;}
31536 { (exit 1); exit 1; }; }; }
31537fi
31538
31539
31540 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
31541$as_echo_n "checking for library containing crc32... " >&6; }
31542if test "${ac_cv_search_crc32+set}" = set; then
31543 $as_echo_n "(cached) " >&6
31544else
31545 ac_func_search_save_LIBS=$LIBS
31546cat >conftest.$ac_ext <<_ACEOF
31547/* confdefs.h. */
31548_ACEOF
31549cat confdefs.h >>conftest.$ac_ext
31550cat >>conftest.$ac_ext <<_ACEOF
31551/* end confdefs.h. */
31552
31553/* Override any GCC internal prototype to avoid an error.
31554 Use char because int might match the return type of a GCC
31555 builtin and then its argument prototype would still apply. */
31556#ifdef __cplusplus
31557extern "C"
31558#endif
31559char crc32 ();
31560int
31561main ()
31562{
31563return crc32 ();
31564 ;
31565 return 0;
31566}
31567_ACEOF
31568for ac_lib in '' z; do
31569 if test -z "$ac_lib"; then
31570 ac_res="none required"
31571 else
31572 ac_res=-l$ac_lib
31573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31574 fi
31575 rm -f conftest.$ac_objext conftest$ac_exeext
31576if { (ac_try="$ac_link"
31577case "(($ac_try" in
31578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579 *) ac_try_echo=$ac_try;;
31580esac
31581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31582$as_echo "$ac_try_echo") >&5
31583 (eval "$ac_link") 2>conftest.er1
31584 ac_status=$?
31585 grep -v '^ *+' conftest.er1 >conftest.err
31586 rm -f conftest.er1
31587 cat conftest.err >&5
31588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } && {
31590 test -z "$ac_c_werror_flag" ||
31591 test ! -s conftest.err
31592 } && test -s conftest$ac_exeext && {
31593 test "$cross_compiling" = yes ||
31594 $as_test_x conftest$ac_exeext
31595 }; then
31596 ac_cv_search_crc32=$ac_res
31597else
31598 $as_echo "$as_me: failed program was:" >&5
31599sed 's/^/| /' conftest.$ac_ext >&5
31600
31601
31602fi
31603
31604rm -rf conftest.dSYM
31605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31606 conftest$ac_exeext
31607 if test "${ac_cv_search_crc32+set}" = set; then
31608 break
31609fi
31610done
31611if test "${ac_cv_search_crc32+set}" = set; then
31612 :
31613else
31614 ac_cv_search_crc32=no
31615fi
31616rm conftest.$ac_ext
31617LIBS=$ac_func_search_save_LIBS
31618fi
31619{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
31620$as_echo "$ac_cv_search_crc32" >&6; }
31621ac_res=$ac_cv_search_crc32
31622if test "$ac_res" != no; then
31623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31624
31625else
31626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31628{ { $as_echo "$as_me:$LINENO: error:
31629 *** crc32() missing, zlib-devel package required
31630See \`config.log' for more details." >&5
31631$as_echo "$as_me: error:
31632 *** crc32() missing, zlib-devel package required
31633See \`config.log' for more details." >&2;}
31634 { (exit 1); exit 1; }; }; }
31635fi
31636
31637
31638 ZLIB="-lz"
31639
31640
31641cat >>confdefs.h <<\_ACEOF
31642#define HAVE_ZLIB 1
31643_ACEOF
31644
31645
31646
31647 LIBUUID=
31648
31649 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31650 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31651$as_echo_n "checking for uuid/uuid.h... " >&6; }
31652if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31653 $as_echo_n "(cached) " >&6
31654fi
31655{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31656$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31657else
31658 # Is the header compilable?
31659{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
31660$as_echo_n "checking uuid/uuid.h usability... " >&6; }
31661cat >conftest.$ac_ext <<_ACEOF
31662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
31667$ac_includes_default
31668#include <uuid/uuid.h>
31669_ACEOF
31670rm -f conftest.$ac_objext
31671if { (ac_try="$ac_compile"
31672case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31675esac
31676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31677$as_echo "$ac_try_echo") >&5
31678 (eval "$ac_compile") 2>conftest.er1
31679 ac_status=$?
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
31683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } && {
31685 test -z "$ac_c_werror_flag" ||
31686 test ! -s conftest.err
31687 } && test -s conftest.$ac_objext; then
31688 ac_header_compiler=yes
31689else
31690 $as_echo "$as_me: failed program was:" >&5
31691sed 's/^/| /' conftest.$ac_ext >&5
31692
31693 ac_header_compiler=no
31694fi
31695
31696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31697{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31698$as_echo "$ac_header_compiler" >&6; }
31699
31700# Is the header present?
31701{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
31702$as_echo_n "checking uuid/uuid.h presence... " >&6; }
31703cat >conftest.$ac_ext <<_ACEOF
31704/* confdefs.h. */
31705_ACEOF
31706cat confdefs.h >>conftest.$ac_ext
31707cat >>conftest.$ac_ext <<_ACEOF
31708/* end confdefs.h. */
31709#include <uuid/uuid.h>
31710_ACEOF
31711if { (ac_try="$ac_cpp conftest.$ac_ext"
31712case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31715esac
31716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31717$as_echo "$ac_try_echo") >&5
31718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31719 ac_status=$?
31720 grep -v '^ *+' conftest.er1 >conftest.err
31721 rm -f conftest.er1
31722 cat conftest.err >&5
31723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } >/dev/null && {
31725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31726 test ! -s conftest.err
31727 }; then
31728 ac_header_preproc=yes
31729else
31730 $as_echo "$as_me: failed program was:" >&5
31731sed 's/^/| /' conftest.$ac_ext >&5
31732
31733 ac_header_preproc=no
31734fi
31735
31736rm -f conftest.err conftest.$ac_ext
31737{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31738$as_echo "$ac_header_preproc" >&6; }
31739
31740# So? What about this header?
31741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31742 yes:no: )
31743 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
31744$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31745 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
31746$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
31747 ac_header_preproc=yes
31748 ;;
31749 no:yes:* )
31750 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
31751$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
31752 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
31753$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
31754 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
31755$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
31756 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
31757$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
31758 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
31759$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
31760 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
31761$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
31762
31763 ;;
31764esac
31765{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31766$as_echo_n "checking for uuid/uuid.h... " >&6; }
31767if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31768 $as_echo_n "(cached) " >&6
31769else
31770 ac_cv_header_uuid_uuid_h=$ac_header_preproc
31771fi
31772{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31773$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31774
31775fi
31776if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
31777 :
31778else
31779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31781{ { $as_echo "$as_me:$LINENO: error:
31782 *** uuid/uuid.h missing, libuuid-devel package required
31783See \`config.log' for more details." >&5
31784$as_echo "$as_me: error:
31785 *** uuid/uuid.h missing, libuuid-devel package required
31786See \`config.log' for more details." >&2;}
31787 { (exit 1); exit 1; }; }; }
31788fi
31789
31790
31791
31792 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
31793$as_echo_n "checking for library containing uuid_generate... " >&6; }
31794if test "${ac_cv_search_uuid_generate+set}" = set; then
31795 $as_echo_n "(cached) " >&6
31796else
31797 ac_func_search_save_LIBS=$LIBS
31798cat >conftest.$ac_ext <<_ACEOF
31799/* confdefs.h. */
31800_ACEOF
31801cat confdefs.h >>conftest.$ac_ext
31802cat >>conftest.$ac_ext <<_ACEOF
31803/* end confdefs.h. */
31804
31805/* Override any GCC internal prototype to avoid an error.
31806 Use char because int might match the return type of a GCC
31807 builtin and then its argument prototype would still apply. */
31808#ifdef __cplusplus
31809extern "C"
31810#endif
31811char uuid_generate ();
31812int
31813main ()
31814{
31815return uuid_generate ();
31816 ;
31817 return 0;
31818}
31819_ACEOF
31820for ac_lib in '' uuid; do
31821 if test -z "$ac_lib"; then
31822 ac_res="none required"
31823 else
31824 ac_res=-l$ac_lib
31825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31826 fi
31827 rm -f conftest.$ac_objext conftest$ac_exeext
31828if { (ac_try="$ac_link"
31829case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31832esac
31833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31834$as_echo "$ac_try_echo") >&5
31835 (eval "$ac_link") 2>conftest.er1
31836 ac_status=$?
31837 grep -v '^ *+' conftest.er1 >conftest.err
31838 rm -f conftest.er1
31839 cat conftest.err >&5
31840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } && {
31842 test -z "$ac_c_werror_flag" ||
31843 test ! -s conftest.err
31844 } && test -s conftest$ac_exeext && {
31845 test "$cross_compiling" = yes ||
31846 $as_test_x conftest$ac_exeext
31847 }; then
31848 ac_cv_search_uuid_generate=$ac_res
31849else
31850 $as_echo "$as_me: failed program was:" >&5
31851sed 's/^/| /' conftest.$ac_ext >&5
31852
31853
31854fi
31855
31856rm -rf conftest.dSYM
31857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31858 conftest$ac_exeext
31859 if test "${ac_cv_search_uuid_generate+set}" = set; then
31860 break
31861fi
31862done
31863if test "${ac_cv_search_uuid_generate+set}" = set; then
31864 :
31865else
31866 ac_cv_search_uuid_generate=no
31867fi
31868rm conftest.$ac_ext
31869LIBS=$ac_func_search_save_LIBS
31870fi
31871{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
31872$as_echo "$ac_cv_search_uuid_generate" >&6; }
31873ac_res=$ac_cv_search_uuid_generate
31874if test "$ac_res" != no; then
31875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31876
31877else
31878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31880{ { $as_echo "$as_me:$LINENO: error:
31881 *** uuid_generate() missing, libuuid-devel package required
31882See \`config.log' for more details." >&5
31883$as_echo "$as_me: error:
31884 *** uuid_generate() missing, libuuid-devel package required
31885See \`config.log' for more details." >&2;}
31886 { (exit 1); exit 1; }; }; }
31887fi
31888
31889
31890 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
31891$as_echo_n "checking for library containing uuid_is_null... " >&6; }
31892if test "${ac_cv_search_uuid_is_null+set}" = set; then
31893 $as_echo_n "(cached) " >&6
31894else
31895 ac_func_search_save_LIBS=$LIBS
31896cat >conftest.$ac_ext <<_ACEOF
31897/* confdefs.h. */
31898_ACEOF
31899cat confdefs.h >>conftest.$ac_ext
31900cat >>conftest.$ac_ext <<_ACEOF
31901/* end confdefs.h. */
31902
31903/* Override any GCC internal prototype to avoid an error.
31904 Use char because int might match the return type of a GCC
31905 builtin and then its argument prototype would still apply. */
31906#ifdef __cplusplus
31907extern "C"
31908#endif
31909char uuid_is_null ();
31910int
31911main ()
31912{
31913return uuid_is_null ();
31914 ;
31915 return 0;
31916}
31917_ACEOF
31918for ac_lib in '' uuid; do
31919 if test -z "$ac_lib"; then
31920 ac_res="none required"
31921 else
31922 ac_res=-l$ac_lib
31923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31924 fi
31925 rm -f conftest.$ac_objext conftest$ac_exeext
31926if { (ac_try="$ac_link"
31927case "(($ac_try" in
31928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31929 *) ac_try_echo=$ac_try;;
31930esac
31931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31932$as_echo "$ac_try_echo") >&5
31933 (eval "$ac_link") 2>conftest.er1
31934 ac_status=$?
31935 grep -v '^ *+' conftest.er1 >conftest.err
31936 rm -f conftest.er1
31937 cat conftest.err >&5
31938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } && {
31940 test -z "$ac_c_werror_flag" ||
31941 test ! -s conftest.err
31942 } && test -s conftest$ac_exeext && {
31943 test "$cross_compiling" = yes ||
31944 $as_test_x conftest$ac_exeext
31945 }; then
31946 ac_cv_search_uuid_is_null=$ac_res
31947else
31948 $as_echo "$as_me: failed program was:" >&5
31949sed 's/^/| /' conftest.$ac_ext >&5
31950
31951
31952fi
31953
31954rm -rf conftest.dSYM
31955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31956 conftest$ac_exeext
31957 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31958 break
31959fi
31960done
31961if test "${ac_cv_search_uuid_is_null+set}" = set; then
31962 :
31963else
31964 ac_cv_search_uuid_is_null=no
31965fi
31966rm conftest.$ac_ext
31967LIBS=$ac_func_search_save_LIBS
31968fi
31969{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
31970$as_echo "$ac_cv_search_uuid_is_null" >&6; }
31971ac_res=$ac_cv_search_uuid_is_null
31972if test "$ac_res" != no; then
31973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31974
31975else
31976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31978{ { $as_echo "$as_me:$LINENO: error:
31979 *** uuid_is_null() missing, libuuid-devel package required
31980See \`config.log' for more details." >&5
31981$as_echo "$as_me: error:
31982 *** uuid_is_null() missing, libuuid-devel package required
31983See \`config.log' for more details." >&2;}
31984 { (exit 1); exit 1; }; }; }
31985fi
31986
31987
31988 LIBUUID="-luuid"
31989
31990
31991cat >>confdefs.h <<\_ACEOF
31992#define HAVE_LIBUUID 1
31993_ACEOF
31994
31995
31996
31997
31998# Check whether --with-tirpc was given.
31999if test "${with_tirpc+set}" = set; then
32000 withval=$with_tirpc;
32001else
32002 with_tirpc=check
32003fi
32004
32005
32006 LIBTIRPC=
32007 LIBTIRPC_CFLAGS=
32008
32009 if test "x$with_tirpc" != xno; then
32010 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
32011$as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
32012if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
32013 $as_echo_n "(cached) " >&6
32014else
32015 ac_check_lib_save_LIBS=$LIBS
32016LIBS="-ltirpc $LIBS"
32017cat >conftest.$ac_ext <<_ACEOF
32018/* confdefs.h. */
32019_ACEOF
32020cat confdefs.h >>conftest.$ac_ext
32021cat >>conftest.$ac_ext <<_ACEOF
32022/* end confdefs.h. */
32023
32024/* Override any GCC internal prototype to avoid an error.
32025 Use char because int might match the return type of a GCC
32026 builtin and then its argument prototype would still apply. */
32027#ifdef __cplusplus
32028extern "C"
32029#endif
32030char xdrmem_create ();
32031int
32032main ()
32033{
32034return xdrmem_create ();
32035 ;
32036 return 0;
32037}
32038_ACEOF
32039rm -f conftest.$ac_objext conftest$ac_exeext
32040if { (ac_try="$ac_link"
32041case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044esac
32045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32046$as_echo "$ac_try_echo") >&5
32047 (eval "$ac_link") 2>conftest.er1
32048 ac_status=$?
32049 grep -v '^ *+' conftest.er1 >conftest.err
32050 rm -f conftest.er1
32051 cat conftest.err >&5
32052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); } && {
32054 test -z "$ac_c_werror_flag" ||
32055 test ! -s conftest.err
32056 } && test -s conftest$ac_exeext && {
32057 test "$cross_compiling" = yes ||
32058 $as_test_x conftest$ac_exeext
32059 }; then
32060 ac_cv_lib_tirpc_xdrmem_create=yes
32061else
32062 $as_echo "$as_me: failed program was:" >&5
32063sed 's/^/| /' conftest.$ac_ext >&5
32064
32065 ac_cv_lib_tirpc_xdrmem_create=no
32066fi
32067
32068rm -rf conftest.dSYM
32069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32070 conftest$ac_exeext conftest.$ac_ext
32071LIBS=$ac_check_lib_save_LIBS
32072fi
32073{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
32074$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
32075if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
32076 LIBTIRPC=-ltirpc
32077
32078 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
32079
32080
32081cat >>confdefs.h <<\_ACEOF
32082#define HAVE_LIBTIRPC 1
32083_ACEOF
32084
32085
32086else
32087 if test "x$with_tirpc" != xcheck; then
32088 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32090{ { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
32091See \`config.log' for more details." >&5
32092$as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
32093See \`config.log' for more details." >&2;}
32094 { (exit 1); exit 1; }; }; }
32095 fi
32096 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32097$as_echo_n "checking for library containing xdrmem_create... " >&6; }
32098if test "${ac_cv_search_xdrmem_create+set}" = set; then
32099 $as_echo_n "(cached) " >&6
32100else
32101 ac_func_search_save_LIBS=$LIBS
32102cat >conftest.$ac_ext <<_ACEOF
32103/* confdefs.h. */
32104_ACEOF
32105cat confdefs.h >>conftest.$ac_ext
32106cat >>conftest.$ac_ext <<_ACEOF
32107/* end confdefs.h. */
32108
32109/* Override any GCC internal prototype to avoid an error.
32110 Use char because int might match the return type of a GCC
32111 builtin and then its argument prototype would still apply. */
32112#ifdef __cplusplus
32113extern "C"
32114#endif
32115char xdrmem_create ();
32116int
32117main ()
32118{
32119return xdrmem_create ();
32120 ;
32121 return 0;
32122}
32123_ACEOF
32124for ac_lib in '' tirpc; do
32125 if test -z "$ac_lib"; then
32126 ac_res="none required"
32127 else
32128 ac_res=-l$ac_lib
32129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32130 fi
32131 rm -f conftest.$ac_objext conftest$ac_exeext
32132if { (ac_try="$ac_link"
32133case "(($ac_try" in
32134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135 *) ac_try_echo=$ac_try;;
32136esac
32137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32138$as_echo "$ac_try_echo") >&5
32139 (eval "$ac_link") 2>conftest.er1
32140 ac_status=$?
32141 grep -v '^ *+' conftest.er1 >conftest.err
32142 rm -f conftest.er1
32143 cat conftest.err >&5
32144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } && {
32146 test -z "$ac_c_werror_flag" ||
32147 test ! -s conftest.err
32148 } && test -s conftest$ac_exeext && {
32149 test "$cross_compiling" = yes ||
32150 $as_test_x conftest$ac_exeext
32151 }; then
32152 ac_cv_search_xdrmem_create=$ac_res
32153else
32154 $as_echo "$as_me: failed program was:" >&5
32155sed 's/^/| /' conftest.$ac_ext >&5
32156
32157
32158fi
32159
32160rm -rf conftest.dSYM
32161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32162 conftest$ac_exeext
32163 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32164 break
32165fi
32166done
32167if test "${ac_cv_search_xdrmem_create+set}" = set; then
32168 :
32169else
32170 ac_cv_search_xdrmem_create=no
32171fi
32172rm conftest.$ac_ext
32173LIBS=$ac_func_search_save_LIBS
32174fi
32175{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32176$as_echo "$ac_cv_search_xdrmem_create" >&6; }
32177ac_res=$ac_cv_search_xdrmem_create
32178if test "$ac_res" != no; then
32179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32180
32181else
32182
32183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32185{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
32186See \`config.log' for more details." >&5
32187$as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
32188See \`config.log' for more details." >&2;}
32189 { (exit 1); exit 1; }; }; }
32190fi
32191
32192
32193fi
32194
32195else
32196 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32197$as_echo_n "checking for library containing xdrmem_create... " >&6; }
32198if test "${ac_cv_search_xdrmem_create+set}" = set; then
32199 $as_echo_n "(cached) " >&6
32200else
32201 ac_func_search_save_LIBS=$LIBS
32202cat >conftest.$ac_ext <<_ACEOF
32203/* confdefs.h. */
32204_ACEOF
32205cat confdefs.h >>conftest.$ac_ext
32206cat >>conftest.$ac_ext <<_ACEOF
32207/* end confdefs.h. */
32208
32209/* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32212#ifdef __cplusplus
32213extern "C"
32214#endif
32215char xdrmem_create ();
32216int
32217main ()
32218{
32219return xdrmem_create ();
32220 ;
32221 return 0;
32222}
32223_ACEOF
32224for ac_lib in '' tirpc; do
32225 if test -z "$ac_lib"; then
32226 ac_res="none required"
32227 else
32228 ac_res=-l$ac_lib
32229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32230 fi
32231 rm -f conftest.$ac_objext conftest$ac_exeext
32232if { (ac_try="$ac_link"
32233case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236esac
32237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32238$as_echo "$ac_try_echo") >&5
32239 (eval "$ac_link") 2>conftest.er1
32240 ac_status=$?
32241 grep -v '^ *+' conftest.er1 >conftest.err
32242 rm -f conftest.er1
32243 cat conftest.err >&5
32244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } && {
32246 test -z "$ac_c_werror_flag" ||
32247 test ! -s conftest.err
32248 } && test -s conftest$ac_exeext && {
32249 test "$cross_compiling" = yes ||
32250 $as_test_x conftest$ac_exeext
32251 }; then
32252 ac_cv_search_xdrmem_create=$ac_res
32253else
32254 $as_echo "$as_me: failed program was:" >&5
32255sed 's/^/| /' conftest.$ac_ext >&5
32256
32257
32258fi
32259
32260rm -rf conftest.dSYM
32261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32262 conftest$ac_exeext
32263 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32264 break
32265fi
32266done
32267if test "${ac_cv_search_xdrmem_create+set}" = set; then
32268 :
32269else
32270 ac_cv_search_xdrmem_create=no
32271fi
32272rm conftest.$ac_ext
32273LIBS=$ac_func_search_save_LIBS
32274fi
32275{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32276$as_echo "$ac_cv_search_xdrmem_create" >&6; }
32277ac_res=$ac_cv_search_xdrmem_create
32278if test "$ac_res" != no; then
32279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32280
32281else
32282
32283 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32285{ { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
32286See \`config.log' for more details." >&5
32287$as_echo "$as_me: error: xdrmem_create() requires libc
32288See \`config.log' for more details." >&2;}
32289 { (exit 1); exit 1; }; }; }
32290fi
32291
32292
32293fi
32294
32295
32296
32297 LIBBLKID=
32298
32299 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32300 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32301$as_echo_n "checking for blkid/blkid.h... " >&6; }
32302if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32303 $as_echo_n "(cached) " >&6
32304fi
32305{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32306$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32307else
32308 # Is the header compilable?
32309{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
32310$as_echo_n "checking blkid/blkid.h usability... " >&6; }
32311cat >conftest.$ac_ext <<_ACEOF
32312/* confdefs.h. */
32313_ACEOF
32314cat confdefs.h >>conftest.$ac_ext
32315cat >>conftest.$ac_ext <<_ACEOF
32316/* end confdefs.h. */
32317$ac_includes_default
32318#include <blkid/blkid.h>
32319_ACEOF
32320rm -f conftest.$ac_objext
32321if { (ac_try="$ac_compile"
32322case "(($ac_try" in
32323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324 *) ac_try_echo=$ac_try;;
32325esac
32326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32327$as_echo "$ac_try_echo") >&5
32328 (eval "$ac_compile") 2>conftest.er1
32329 ac_status=$?
32330 grep -v '^ *+' conftest.er1 >conftest.err
32331 rm -f conftest.er1
32332 cat conftest.err >&5
32333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } && {
32335 test -z "$ac_c_werror_flag" ||
32336 test ! -s conftest.err
32337 } && test -s conftest.$ac_objext; then
32338 ac_header_compiler=yes
32339else
32340 $as_echo "$as_me: failed program was:" >&5
32341sed 's/^/| /' conftest.$ac_ext >&5
32342
32343 ac_header_compiler=no
32344fi
32345
32346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32347{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32348$as_echo "$ac_header_compiler" >&6; }
32349
32350# Is the header present?
32351{ $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
32352$as_echo_n "checking blkid/blkid.h presence... " >&6; }
32353cat >conftest.$ac_ext <<_ACEOF
32354/* confdefs.h. */
32355_ACEOF
32356cat confdefs.h >>conftest.$ac_ext
32357cat >>conftest.$ac_ext <<_ACEOF
32358/* end confdefs.h. */
32359#include <blkid/blkid.h>
32360_ACEOF
32361if { (ac_try="$ac_cpp conftest.$ac_ext"
32362case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32365esac
32366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32367$as_echo "$ac_try_echo") >&5
32368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32369 ac_status=$?
32370 grep -v '^ *+' conftest.er1 >conftest.err
32371 rm -f conftest.er1
32372 cat conftest.err >&5
32373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); } >/dev/null && {
32375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32376 test ! -s conftest.err
32377 }; then
32378 ac_header_preproc=yes
32379else
32380 $as_echo "$as_me: failed program was:" >&5
32381sed 's/^/| /' conftest.$ac_ext >&5
32382
32383 ac_header_preproc=no
32384fi
32385
32386rm -f conftest.err conftest.$ac_ext
32387{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32388$as_echo "$ac_header_preproc" >&6; }
32389
32390# So? What about this header?
32391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32392 yes:no: )
32393 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32394$as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32395 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
32396$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
32397 ac_header_preproc=yes
32398 ;;
32399 no:yes:* )
32400 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
32401$as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
32402 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
32403$as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
32404 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
32405$as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
32406 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
32407$as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32408 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
32409$as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
32410 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
32411$as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
32412
32413 ;;
32414esac
32415{ $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32416$as_echo_n "checking for blkid/blkid.h... " >&6; }
32417if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32418 $as_echo_n "(cached) " >&6
32419else
32420 ac_cv_header_blkid_blkid_h=$ac_header_preproc
32421fi
32422{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32423$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32424
32425fi
32426if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
32427 :
32428else
32429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32431{ { $as_echo "$as_me:$LINENO: error:
42f7b73b 32432 *** blkid.h missing, libblkid-devel package required
cae5b340
AX
32433See \`config.log' for more details." >&5
32434$as_echo "$as_me: error:
42f7b73b 32435 *** blkid.h missing, libblkid-devel package required
cae5b340
AX
32436See \`config.log' for more details." >&2;}
32437 { (exit 1); exit 1; }; }; }
32438fi
32439
32440
32441
32442 LIBBLKID="-lblkid"
32443
32444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_LIBBLKID 1
32447_ACEOF
32448
32449
32450
42f7b73b
AX
32451 LIBUDEV=
32452
32453 if test "${ac_cv_header_libudev_h+set}" = set; then
32454 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32455$as_echo_n "checking for libudev.h... " >&6; }
32456if test "${ac_cv_header_libudev_h+set}" = set; then
32457 $as_echo_n "(cached) " >&6
32458fi
32459{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32460$as_echo "$ac_cv_header_libudev_h" >&6; }
32461else
32462 # Is the header compilable?
32463{ $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
32464$as_echo_n "checking libudev.h usability... " >&6; }
32465cat >conftest.$ac_ext <<_ACEOF
32466/* confdefs.h. */
32467_ACEOF
32468cat confdefs.h >>conftest.$ac_ext
32469cat >>conftest.$ac_ext <<_ACEOF
32470/* end confdefs.h. */
32471$ac_includes_default
32472#include <libudev.h>
32473_ACEOF
32474rm -f conftest.$ac_objext
32475if { (ac_try="$ac_compile"
32476case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479esac
32480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32481$as_echo "$ac_try_echo") >&5
32482 (eval "$ac_compile") 2>conftest.er1
32483 ac_status=$?
32484 grep -v '^ *+' conftest.er1 >conftest.err
32485 rm -f conftest.er1
32486 cat conftest.err >&5
32487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } && {
32489 test -z "$ac_c_werror_flag" ||
32490 test ! -s conftest.err
32491 } && test -s conftest.$ac_objext; then
32492 ac_header_compiler=yes
32493else
32494 $as_echo "$as_me: failed program was:" >&5
32495sed 's/^/| /' conftest.$ac_ext >&5
32496
32497 ac_header_compiler=no
32498fi
32499
32500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32502$as_echo "$ac_header_compiler" >&6; }
32503
32504# Is the header present?
32505{ $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
32506$as_echo_n "checking libudev.h presence... " >&6; }
32507cat >conftest.$ac_ext <<_ACEOF
32508/* confdefs.h. */
32509_ACEOF
32510cat confdefs.h >>conftest.$ac_ext
32511cat >>conftest.$ac_ext <<_ACEOF
32512/* end confdefs.h. */
32513#include <libudev.h>
32514_ACEOF
32515if { (ac_try="$ac_cpp conftest.$ac_ext"
32516case "(($ac_try" in
32517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32518 *) ac_try_echo=$ac_try;;
32519esac
32520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32521$as_echo "$ac_try_echo") >&5
32522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32523 ac_status=$?
32524 grep -v '^ *+' conftest.er1 >conftest.err
32525 rm -f conftest.er1
32526 cat conftest.err >&5
32527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } >/dev/null && {
32529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32530 test ! -s conftest.err
32531 }; then
32532 ac_header_preproc=yes
32533else
32534 $as_echo "$as_me: failed program was:" >&5
32535sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ac_header_preproc=no
32538fi
32539
32540rm -f conftest.err conftest.$ac_ext
32541{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32542$as_echo "$ac_header_preproc" >&6; }
32543
32544# So? What about this header?
32545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32546 yes:no: )
32547 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32548$as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32549 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
32550$as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
32551 ac_header_preproc=yes
32552 ;;
32553 no:yes:* )
32554 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
32555$as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
32556 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
32557$as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
32558 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
32559$as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
32560 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
32561$as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
32562 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
32563$as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
32564 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
32565$as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
32566
32567 ;;
32568esac
32569{ $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32570$as_echo_n "checking for libudev.h... " >&6; }
32571if test "${ac_cv_header_libudev_h+set}" = set; then
32572 $as_echo_n "(cached) " >&6
32573else
32574 ac_cv_header_libudev_h=$ac_header_preproc
32575fi
32576{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32577$as_echo "$ac_cv_header_libudev_h" >&6; }
32578
32579fi
32580if test "x$ac_cv_header_libudev_h" = x""yes; then
32581
32582 user_libudev=yes
32583 LIBUDEV="-ludev"
32584
32585
32586cat >>confdefs.h <<\_ACEOF
32587#define HAVE_LIBUDEV 1
32588_ACEOF
32589
32590
32591else
32592
32593 user_libudev=no
32594
32595fi
32596
32597
32598
32599 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
32600$as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
32601if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32602 $as_echo_n "(cached) " >&6
32603else
32604 ac_func_search_save_LIBS=$LIBS
32605cat >conftest.$ac_ext <<_ACEOF
32606/* confdefs.h. */
32607_ACEOF
32608cat confdefs.h >>conftest.$ac_ext
32609cat >>conftest.$ac_ext <<_ACEOF
32610/* end confdefs.h. */
32611
32612/* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32615#ifdef __cplusplus
32616extern "C"
32617#endif
32618char udev_device_get_is_initialized ();
32619int
32620main ()
32621{
32622return udev_device_get_is_initialized ();
32623 ;
32624 return 0;
32625}
32626_ACEOF
32627for ac_lib in '' udev; do
32628 if test -z "$ac_lib"; then
32629 ac_res="none required"
32630 else
32631 ac_res=-l$ac_lib
32632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32633 fi
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635if { (ac_try="$ac_link"
32636case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639esac
32640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32641$as_echo "$ac_try_echo") >&5
32642 (eval "$ac_link") 2>conftest.er1
32643 ac_status=$?
32644 grep -v '^ *+' conftest.er1 >conftest.err
32645 rm -f conftest.er1
32646 cat conftest.err >&5
32647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } && {
32649 test -z "$ac_c_werror_flag" ||
32650 test ! -s conftest.err
32651 } && test -s conftest$ac_exeext && {
32652 test "$cross_compiling" = yes ||
32653 $as_test_x conftest$ac_exeext
32654 }; then
32655 ac_cv_search_udev_device_get_is_initialized=$ac_res
32656else
32657 $as_echo "$as_me: failed program was:" >&5
32658sed 's/^/| /' conftest.$ac_ext >&5
32659
32660
32661fi
32662
32663rm -rf conftest.dSYM
32664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32665 conftest$ac_exeext
32666 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32667 break
32668fi
32669done
32670if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32671 :
32672else
32673 ac_cv_search_udev_device_get_is_initialized=no
32674fi
32675rm conftest.$ac_ext
32676LIBS=$ac_func_search_save_LIBS
32677fi
32678{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
32679$as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
32680ac_res=$ac_cv_search_udev_device_get_is_initialized
32681if test "$ac_res" != no; then
32682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32683
32684
32685cat >>confdefs.h <<\_ACEOF
32686#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
32687_ACEOF
32688
32689fi
32690
32691
32692
32693
32694 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
32695$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
32696
32697 saved_flags="$CFLAGS"
32698 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
32699
32700 cat >conftest.$ac_ext <<_ACEOF
32701/* confdefs.h. */
32702_ACEOF
32703cat confdefs.h >>conftest.$ac_ext
32704cat >>conftest.$ac_ext <<_ACEOF
32705/* end confdefs.h. */
32706
32707int
32708main ()
32709{
cae5b340 32710
42f7b73b
AX
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext
32716if { (ac_try="$ac_compile"
32717case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720esac
32721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32722$as_echo "$ac_try_echo") >&5
32723 (eval "$ac_compile") 2>conftest.er1
32724 ac_status=$?
32725 grep -v '^ *+' conftest.er1 >conftest.err
32726 rm -f conftest.er1
32727 cat conftest.err >&5
32728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } && {
32730 test -z "$ac_c_werror_flag" ||
32731 test ! -s conftest.err
32732 } && test -s conftest.$ac_objext; then
32733
32734 FRAME_LARGER_THAN=-Wframe-larger-than=1024
32735 { $as_echo "$as_me:$LINENO: result: yes" >&5
32736$as_echo "yes" >&6; }
32737
32738else
32739 $as_echo "$as_me: failed program was:" >&5
32740sed 's/^/| /' conftest.$ac_ext >&5
32741
32742
32743 FRAME_LARGER_THAN=
32744 { $as_echo "$as_me:$LINENO: result: no" >&5
32745$as_echo "no" >&6; }
32746
32747fi
32748
32749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32750
32751 CFLAGS="$saved_flags"
32752
32753
32754
32755 LIBAIO=
32756
32757 if test "${ac_cv_header_libaio_h+set}" = set; then
32758 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32759$as_echo_n "checking for libaio.h... " >&6; }
32760if test "${ac_cv_header_libaio_h+set}" = set; then
cae5b340
AX
32761 $as_echo_n "(cached) " >&6
32762fi
42f7b73b
AX
32763{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32764$as_echo "$ac_cv_header_libaio_h" >&6; }
cae5b340
AX
32765else
32766 # Is the header compilable?
42f7b73b
AX
32767{ $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
32768$as_echo_n "checking libaio.h usability... " >&6; }
cae5b340
AX
32769cat >conftest.$ac_ext <<_ACEOF
32770/* confdefs.h. */
32771_ACEOF
32772cat confdefs.h >>conftest.$ac_ext
32773cat >>conftest.$ac_ext <<_ACEOF
32774/* end confdefs.h. */
32775$ac_includes_default
42f7b73b 32776#include <libaio.h>
cae5b340
AX
32777_ACEOF
32778rm -f conftest.$ac_objext
32779if { (ac_try="$ac_compile"
32780case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32785$as_echo "$ac_try_echo") >&5
32786 (eval "$ac_compile") 2>conftest.er1
32787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } && {
32793 test -z "$ac_c_werror_flag" ||
32794 test ! -s conftest.err
32795 } && test -s conftest.$ac_objext; then
32796 ac_header_compiler=yes
32797else
32798 $as_echo "$as_me: failed program was:" >&5
32799sed 's/^/| /' conftest.$ac_ext >&5
32800
32801 ac_header_compiler=no
32802fi
32803
32804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32805{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32806$as_echo "$ac_header_compiler" >&6; }
32807
32808# Is the header present?
42f7b73b
AX
32809{ $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
32810$as_echo_n "checking libaio.h presence... " >&6; }
cae5b340
AX
32811cat >conftest.$ac_ext <<_ACEOF
32812/* confdefs.h. */
32813_ACEOF
32814cat confdefs.h >>conftest.$ac_ext
32815cat >>conftest.$ac_ext <<_ACEOF
32816/* end confdefs.h. */
42f7b73b 32817#include <libaio.h>
cae5b340
AX
32818_ACEOF
32819if { (ac_try="$ac_cpp conftest.$ac_ext"
32820case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823esac
32824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32825$as_echo "$ac_try_echo") >&5
32826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32827 ac_status=$?
32828 grep -v '^ *+' conftest.er1 >conftest.err
32829 rm -f conftest.er1
32830 cat conftest.err >&5
32831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); } >/dev/null && {
32833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32834 test ! -s conftest.err
32835 }; then
32836 ac_header_preproc=yes
68d83c55 32837else
cae5b340
AX
32838 $as_echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
32841 ac_header_preproc=no
68d83c55
AX
32842fi
32843
cae5b340
AX
32844rm -f conftest.err conftest.$ac_ext
32845{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32846$as_echo "$ac_header_preproc" >&6; }
68d83c55 32847
cae5b340
AX
32848# So? What about this header?
32849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32850 yes:no: )
42f7b73b
AX
32851 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
32852$as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32853 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
32854$as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
cae5b340
AX
32855 ac_header_preproc=yes
32856 ;;
32857 no:yes:* )
42f7b73b
AX
32858 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
32859$as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
32860 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
32861$as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
32862 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
32863$as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
32864 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
32865$as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
32866 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
32867$as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
32868 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
32869$as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
68d83c55 32870
cae5b340
AX
32871 ;;
32872esac
42f7b73b
AX
32873{ $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32874$as_echo_n "checking for libaio.h... " >&6; }
32875if test "${ac_cv_header_libaio_h+set}" = set; then
32876 $as_echo_n "(cached) " >&6
32877else
32878 ac_cv_header_libaio_h=$ac_header_preproc
32879fi
32880{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32881$as_echo "$ac_cv_header_libaio_h" >&6; }
32882
32883fi
32884if test "x$ac_cv_header_libaio_h" = x""yes; then
32885
32886 user_libaio=yes
32887 LIBAIO="-laio"
32888
32889
32890cat >>confdefs.h <<\_ACEOF
32891#define HAVE_LIBAIO 1
32892_ACEOF
32893
32894
32895else
32896
32897 user_libaio=no
32898
32899fi
32900
32901
32902
32903
32904 if test "x$runstatedir" = x; then
32905 runstatedir='${localstatedir}/run'
32906
32907 fi
32908
32909
32910 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
32911$as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
32912 cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h. */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h. */
32918
32919 #include <sys/sysmacros.h>
32920
32921int
32922main ()
32923{
32924
32925 int k;
32926 k = makedev(0,0);
32927
32928 ;
32929 return 0;
32930}
32931_ACEOF
32932rm -f conftest.$ac_objext
32933if { (ac_try="$ac_compile"
32934case "(($ac_try" in
32935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936 *) ac_try_echo=$ac_try;;
32937esac
32938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32939$as_echo "$ac_try_echo") >&5
32940 (eval "$ac_compile") 2>conftest.er1
32941 ac_status=$?
32942 grep -v '^ *+' conftest.er1 >conftest.err
32943 rm -f conftest.er1
32944 cat conftest.err >&5
32945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); } && {
32947 test -z "$ac_c_werror_flag" ||
32948 test ! -s conftest.err
32949 } && test -s conftest.$ac_objext; then
32950
32951 { $as_echo "$as_me:$LINENO: result: yes" >&5
32952$as_echo "yes" >&6; }
32953
32954cat >>confdefs.h <<\_ACEOF
32955#define HAVE_MAKEDEV_IN_SYSMACROS 1
32956_ACEOF
32957
32958
32959else
32960 $as_echo "$as_me: failed program was:" >&5
32961sed 's/^/| /' conftest.$ac_ext >&5
32962
32963
32964 { $as_echo "$as_me:$LINENO: result: no" >&5
32965$as_echo "no" >&6; }
32966
32967fi
32968
32969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970
32971
32972 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
32973$as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
32974 cat >conftest.$ac_ext <<_ACEOF
32975/* confdefs.h. */
32976_ACEOF
32977cat confdefs.h >>conftest.$ac_ext
32978cat >>conftest.$ac_ext <<_ACEOF
32979/* end confdefs.h. */
32980
32981 #include <sys/mkdev.h>
32982
32983int
32984main ()
32985{
32986
32987 int k;
32988 k = makedev(0,0);
32989
32990 ;
32991 return 0;
32992}
32993_ACEOF
32994rm -f conftest.$ac_objext
32995if { (ac_try="$ac_compile"
32996case "(($ac_try" in
32997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998 *) ac_try_echo=$ac_try;;
32999esac
33000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33001$as_echo "$ac_try_echo") >&5
33002 (eval "$ac_compile") 2>conftest.er1
33003 ac_status=$?
33004 grep -v '^ *+' conftest.er1 >conftest.err
33005 rm -f conftest.er1
33006 cat conftest.err >&5
33007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33008 (exit $ac_status); } && {
33009 test -z "$ac_c_werror_flag" ||
33010 test ! -s conftest.err
33011 } && test -s conftest.$ac_objext; then
33012
33013 { $as_echo "$as_me:$LINENO: result: yes" >&5
33014$as_echo "yes" >&6; }
33015
33016cat >>confdefs.h <<\_ACEOF
33017#define HAVE_MAKEDEV_IN_MKDEV 1
33018_ACEOF
33019
33020
33021else
33022 $as_echo "$as_me: failed program was:" >&5
33023sed 's/^/| /' conftest.$ac_ext >&5
33024
33025
33026 { $as_echo "$as_me:$LINENO: result: no" >&5
33027$as_echo "no" >&6; }
33028
33029fi
33030
33031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33032
33033
33034 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
33035$as_echo_n "checking for -Wno-format-truncation support... " >&6; }
33036
33037 saved_flags="$CFLAGS"
33038 CFLAGS="$CFLAGS -Wno-format-truncation"
33039
33040 cat >conftest.$ac_ext <<_ACEOF
33041/* confdefs.h. */
33042_ACEOF
33043cat confdefs.h >>conftest.$ac_ext
33044cat >>conftest.$ac_ext <<_ACEOF
33045/* end confdefs.h. */
33046
33047int
33048main ()
33049{
33050
33051 ;
33052 return 0;
33053}
33054_ACEOF
33055rm -f conftest.$ac_objext
33056if { (ac_try="$ac_compile"
33057case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33060esac
33061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33062$as_echo "$ac_try_echo") >&5
33063 (eval "$ac_compile") 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } && {
33070 test -z "$ac_c_werror_flag" ||
33071 test ! -s conftest.err
33072 } && test -s conftest.$ac_objext; then
33073
33074 NO_FORMAT_TRUNCATION=-Wno-format-truncation
33075 { $as_echo "$as_me:$LINENO: result: yes" >&5
33076$as_echo "yes" >&6; }
33077
33078else
33079 $as_echo "$as_me: failed program was:" >&5
33080sed 's/^/| /' conftest.$ac_ext >&5
33081
33082
33083 NO_FORMAT_TRUNCATION=
33084 { $as_echo "$as_me:$LINENO: result: no" >&5
33085$as_echo "no" >&6; }
33086
33087fi
33088
33089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33090
33091 CFLAGS="$saved_flags"
33092
33093
33094
33095
33096 ZONENAME="echo global"
33097
33098
33099
33100
33101
33102
33103for ac_func in mlockall
33104do
33105as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33106{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33107$as_echo_n "checking for $ac_func... " >&6; }
33108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
cae5b340 33109 $as_echo_n "(cached) " >&6
68d83c55 33110else
42f7b73b
AX
33111 cat >conftest.$ac_ext <<_ACEOF
33112/* confdefs.h. */
33113_ACEOF
33114cat confdefs.h >>conftest.$ac_ext
33115cat >>conftest.$ac_ext <<_ACEOF
33116/* end confdefs.h. */
33117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33119#define $ac_func innocuous_$ac_func
33120
33121/* System header to define __stub macros and hopefully few prototypes,
33122 which can conflict with char $ac_func (); below.
33123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33124 <limits.h> exists even on freestanding compilers. */
33125
33126#ifdef __STDC__
33127# include <limits.h>
33128#else
33129# include <assert.h>
33130#endif
33131
33132#undef $ac_func
33133
33134/* Override any GCC internal prototype to avoid an error.
33135 Use char because int might match the return type of a GCC
33136 builtin and then its argument prototype would still apply. */
33137#ifdef __cplusplus
33138extern "C"
33139#endif
33140char $ac_func ();
33141/* The GNU C library defines this for functions which it implements
33142 to always fail with ENOSYS. Some functions are actually named
33143 something starting with __ and the normal name is an alias. */
33144#if defined __stub_$ac_func || defined __stub___$ac_func
33145choke me
33146#endif
33147
33148int
33149main ()
33150{
33151return $ac_func ();
33152 ;
33153 return 0;
33154}
33155_ACEOF
33156rm -f conftest.$ac_objext conftest$ac_exeext
33157if { (ac_try="$ac_link"
33158case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33163$as_echo "$ac_try_echo") >&5
33164 (eval "$ac_link") 2>conftest.er1
33165 ac_status=$?
33166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
33169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); } && {
33171 test -z "$ac_c_werror_flag" ||
33172 test ! -s conftest.err
33173 } && test -s conftest$ac_exeext && {
33174 test "$cross_compiling" = yes ||
33175 $as_test_x conftest$ac_exeext
33176 }; then
33177 eval "$as_ac_var=yes"
33178else
33179 $as_echo "$as_me: failed program was:" >&5
33180sed 's/^/| /' conftest.$ac_ext >&5
33181
33182 eval "$as_ac_var=no"
33183fi
33184
33185rm -rf conftest.dSYM
33186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33187 conftest$ac_exeext conftest.$ac_ext
33188fi
33189ac_res=`eval 'as_val=${'$as_ac_var'}
33190 $as_echo "$as_val"'`
33191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33192$as_echo "$ac_res" >&6; }
33193as_val=`eval 'as_val=${'$as_ac_var'}
33194 $as_echo "$as_val"'`
33195 if test "x$as_val" = x""yes; then
33196 cat >>confdefs.h <<_ACEOF
33197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33198_ACEOF
33199
33200fi
33201done
33202
33203
33204
33205
33206
33207# Check whether --with-linux was given.
33208if test "${with_linux+set}" = set; then
33209 withval=$with_linux; kernelsrc="$withval"
33210fi
33211
33212
33213
33214# Check whether --with-linux-obj was given.
33215if test "${with_linux_obj+set}" = set; then
33216 withval=$with_linux_obj; kernelbuild="$withval"
33217fi
33218
33219
33220 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
33221$as_echo_n "checking kernel source directory... " >&6; }
33222 if test -z "$kernelsrc"; then
33223
33224 if test -e "/lib/modules/$(uname -r)/source"; then
33225
33226 headersdir="/lib/modules/$(uname -r)/source"
33227 sourcelink=$(readlink -f "$headersdir")
33228
33229elif test -e "/lib/modules/$(uname -r)/build"; then
33230
33231 headersdir="/lib/modules/$(uname -r)/build"
33232 sourcelink=$(readlink -f "$headersdir")
33233
33234else
33235
33236 sourcelink=$(ls -1d /usr/src/kernels/* \
33237 /usr/src/linux-* \
33238 2>/dev/null | grep -v obj | tail -1)
33239
33240fi
33241
33242
33243 if test -n "$sourcelink" && test -e ${sourcelink}; then
33244
33245 kernelsrc=`readlink -f ${sourcelink}`
33246
33247else
33248
33249 kernelsrc="Not found"
33250
33251fi
33252
33253
33254else
33255
33256 if test "$kernelsrc" = "NONE"; then
33257
33258 kernsrcver=NONE
33259
33260fi
33261
33262 withlinux=yes
33263
33264fi
33265
33266
33267 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
33268$as_echo "$kernelsrc" >&6; }
33269 if test ! -d "$kernelsrc"; then
33270
33271 { { $as_echo "$as_me:$LINENO: error:
33272 *** Please make sure the kernel devel package for your distribution
33273 *** is installed and then try again. If that fails, you can specify the
33274 *** location of the kernel source with the '--with-linux=PATH' option." >&5
33275$as_echo "$as_me: error:
33276 *** Please make sure the kernel devel package for your distribution
33277 *** is installed and then try again. If that fails, you can specify the
33278 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
33279 { (exit 1); exit 1; }; }
33280
33281fi
33282
33283
33284 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
33285$as_echo_n "checking kernel build directory... " >&6; }
33286 if test -z "$kernelbuild"; then
33287
33288 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
33289
33290 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
33291
33292elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
33293
33294 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
33295
33296elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
33297
33298 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
33299
33300elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
33301
33302 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
33303
33304else
33305
33306 kernelbuild=${kernelsrc}
33307
33308fi
33309
33310
33311fi
33312
33313 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
33314$as_echo "$kernelbuild" >&6; }
33315
33316 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
33317$as_echo_n "checking kernel source version... " >&6; }
33318 utsrelease1=$kernelbuild/include/linux/version.h
33319 utsrelease2=$kernelbuild/include/linux/utsrelease.h
33320 utsrelease3=$kernelbuild/include/generated/utsrelease.h
33321 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
33322
33323 utsrelease=linux/version.h
33324
33325elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
33326
33327 utsrelease=linux/utsrelease.h
33328
33329elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
33330
33331 utsrelease=generated/utsrelease.h
33332
33333fi
33334
33335
33336 if test "$utsrelease"; then
33337
33338 kernsrcver=`(echo "#include <$utsrelease>";
33339 echo "kernsrcver=UTS_RELEASE") |
33340 cpp -I $kernelbuild/include |
33341 grep "^kernsrcver=" | cut -d \" -f 2`
33342
33343 if test -z "$kernsrcver"; then
33344
33345 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33346$as_echo "Not found" >&6; }
33347 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
33348$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
33349 { (exit 1); exit 1; }; }
33350
33351fi
33352
33353
33354else
33355
33356 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33357$as_echo "Not found" >&6; }
33358 if test "x$enable_linux_builtin" != xyes; then
33359 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
33360$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
33361 { (exit 1); exit 1; }; }
33362 else
33363 { { $as_echo "$as_me:$LINENO: error:
33364 *** Cannot find UTS_RELEASE definition.
33365 *** Please run 'make prepare' inside the kernel source tree." >&5
33366$as_echo "$as_me: error:
33367 *** Cannot find UTS_RELEASE definition.
33368 *** Please run 'make prepare' inside the kernel source tree." >&2;}
33369 { (exit 1); exit 1; }; }
33370 fi
33371
33372fi
33373
33374
33375 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
33376$as_echo "$kernsrcver" >&6; }
33377
33378 LINUX=${kernelsrc}
33379 LINUX_OBJ=${kernelbuild}
33380 LINUX_VERSION=${kernsrcver}
33381
33382
33383
33384
33385
33386
33387 modpost=$LINUX/scripts/Makefile.modpost
33388 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
33389$as_echo_n "checking kernel file name for module symbols... " >&6; }
33390 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
33391
33392 if grep -q Modules.symvers $modpost; then
33393
33394 LINUX_SYMBOLS=Modules.symvers
33395
33396else
33397
33398 LINUX_SYMBOLS=Module.symvers
33399
33400fi
33401
33402
33403 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
33404
33405 { { $as_echo "$as_me:$LINENO: error:
33406 *** Please make sure the kernel devel package for your distribution
33407 *** is installed. If you are building with a custom kernel, make sure the
33408 *** kernel is configured, built, and the '--with-linux=PATH' configure
33409 *** option refers to the location of the kernel source." >&5
33410$as_echo "$as_me: error:
33411 *** Please make sure the kernel devel package for your distribution
33412 *** is installed. If you are building with a custom kernel, make sure the
33413 *** kernel is configured, built, and the '--with-linux=PATH' configure
33414 *** option refers to the location of the kernel source." >&2;}
33415 { (exit 1); exit 1; }; }
33416
33417fi
33418
33419
33420else
33421
33422 LINUX_SYMBOLS=NONE
33423
33424fi
33425
33426 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
33427$as_echo "$LINUX_SYMBOLS" >&6; }
33428
33429
33430
33431
33432
33433# Check whether --with-spl was given.
33434if test "${with_spl+set}" = set; then
33435 withval=$with_spl; if test "$withval" = "yes"; then
33436 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
33437$as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
33438 { (exit 1); exit 1; }; }
33439else
33440 splsrc="$withval"
33441fi
33442
33443fi
33444
33445
33446
33447# Check whether --with-spl-obj was given.
33448if test "${with_spl_obj+set}" = set; then
33449 withval=$with_spl_obj; splbuild="$withval"
33450fi
33451
33452
33453
33454# Check whether --with-spl-timeout was given.
33455if test "${with_spl_timeout+set}" = set; then
33456 withval=$with_spl_timeout; timeout="$withval"
33457else
33458 timeout=0
33459fi
33460
33461
33462 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
33463 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
33464 splsrc2="/usr/local/src/spl-${VERSION}"
33465 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
33466 splsrc4="/usr/src/spl-${VERSION}"
33467 splsrc5="../spl/"
33468 splsrc6="$LINUX"
33469
33470 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
33471$as_echo_n "checking spl source directory... " >&6; }
33472 if test -z "${splsrc}"; then
33473
33474 all_spl_sources="
33475 ${splsrc0}
33476 ${splsrc1}
33477 ${splsrc2}
33478 ${splsrc3}
33479 ${splsrc4}
33480 ${splsrc5}
33481 ${splsrc6}",
33482 if test -e "${splsrc0}/spl.release.in"; then
33483
33484 splsrc=${splsrc0}
33485
33486elif test -e "${splsrc1}/spl.release.in"; then
33487
33488 splsrc=${splsrc1}
33489
33490elif test -e "${splsrc2}/spl.release.in"; then
33491
33492 splsrc=${splsrc2}
33493
33494elif test -e "${splsrc3}/spl.release.in"; then
33495
33496 splsrc=$(readlink -f "${splsrc3}")
33497
33498elif test -e "${splsrc4}/spl.release.in" ; then
33499
33500 splsrc=${splsrc4}
33501
33502elif test -e "${splsrc5}/spl.release.in"; then
33503
33504 splsrc=$(readlink -f "${splsrc5}")
33505
33506elif test -e "${splsrc6}/spl.release.in" ; then
33507
33508 splsrc=${splsrc6}
33509
33510else
33511
33512 splsrc="Not found"
33513
33514fi
33515
33516
33517else
33518
33519 all_spl_sources="$withval",
33520 if test "$splsrc" = "NONE"; then
33521
33522 splbuild=NONE
33523 splsrcver=NONE
33524
33525fi
33526
33527
33528fi
33529
33530
33531 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
33532$as_echo "$splsrc" >&6; }
33533 if test ! -e "$splsrc/spl.release.in"; then
33534
33535 { { $as_echo "$as_me:$LINENO: error:
33536 *** Please make sure the kmod spl devel package for your distribution
33537 *** is installed then try again. If that fails you can specify the
33538 *** location of the spl source with the '--with-spl=PATH' option.
33539 *** The spl version must match the version of ZFS you are building,
33540 *** ${VERSION}. Failed to find spl.release.in in the following:
33541 $all_spl_sources" >&5
33542$as_echo "$as_me: error:
33543 *** Please make sure the kmod spl devel package for your distribution
33544 *** is installed then try again. If that fails you can specify the
33545 *** location of the spl source with the '--with-spl=PATH' option.
33546 *** The spl version must match the version of ZFS you are building,
33547 *** ${VERSION}. Failed to find spl.release.in in the following:
33548 $all_spl_sources" >&2;}
33549 { (exit 1); exit 1; }; }
33550
33551fi
33552
33553
33554 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
33555$as_echo_n "checking spl build directory... " >&6; }
33556
33557 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
33558 ${splsrc}"
33559
33560 while true; do
33561 if test -z "$splbuild"; then
33562
33563 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
33564
33565 splbuild="${splsrc}/${LINUX_VERSION}"
33566
33567elif test -e "${splsrc}/spl_config.h" ; then
33568
33569 splbuild="${splsrc}"
33570
33571elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
33572
33573 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
33574
33575else
33576
33577 splbuild="Not found"
33578
68d83c55 33579fi
42f7b73b 33580
68d83c55 33581
cae5b340 33582fi
42f7b73b
AX
33583
33584 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
33585
33586 break;
33587
cae5b340 33588else
42f7b73b
AX
33589
33590 sleep 1
33591 timeout=$((timeout-1))
33592
68d83c55
AX
33593fi
33594
42f7b73b 33595 done
68d83c55 33596
42f7b73b
AX
33597 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
33598$as_echo "$splbuild" >&6; }
33599 if ! test -e "$splbuild/spl_config.h"; then
68d83c55 33600
42f7b73b
AX
33601 { { $as_echo "$as_me:$LINENO: error:
33602 *** Please make sure the kmod spl devel <kernel> package for your
33603 *** distribution is installed then try again. If that fails you
33604 *** can specify the location of the spl objects with the
33605 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33606 *** any of the following:
33607 $all_spl_config_locs" >&5
33608$as_echo "$as_me: error:
33609 *** Please make sure the kmod spl devel <kernel> package for your
33610 *** distribution is installed then try again. If that fails you
33611 *** can specify the location of the spl objects with the
33612 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33613 *** any of the following:
33614 $all_spl_config_locs" >&2;}
33615 { (exit 1); exit 1; }; }
68d83c55 33616
42f7b73b 33617fi
68d83c55
AX
33618
33619
42f7b73b
AX
33620 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
33621$as_echo_n "checking spl source version... " >&6; }
33622 if test -r $splbuild/spl_config.h &&
33623 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
68d83c55
AX
33624
33625
42f7b73b
AX
33626 splsrcver=`(echo "#include <spl_config.h>";
33627 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
33628 cpp -I $splbuild |
33629 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
68d83c55 33630
68d83c55
AX
33631fi
33632
33633
42f7b73b 33634 if test -z "$splsrcver"; then
68d83c55 33635
42f7b73b
AX
33636 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33637$as_echo "Not found" >&6; }
33638 { { $as_echo "$as_me:$LINENO: error:
33639 *** Cannot determine the version of the spl source.
33640 *** Please prepare the spl source before running this script" >&5
33641$as_echo "$as_me: error:
33642 *** Cannot determine the version of the spl source.
33643 *** Please prepare the spl source before running this script" >&2;}
33644 { (exit 1); exit 1; }; }
68d83c55 33645
cae5b340 33646fi
68d83c55 33647
68d83c55 33648
42f7b73b
AX
33649 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
33650$as_echo "$splsrcver" >&6; }
68d83c55 33651
42f7b73b
AX
33652 SPL=${splsrc}
33653 SPL_OBJ=${splbuild}
33654 SPL_VERSION=${splsrcver}
68d83c55 33655
68d83c55 33656
68d83c55
AX
33657
33658
68d83c55 33659
42f7b73b
AX
33660 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
33661$as_echo_n "checking spl file name for module symbols... " >&6; }
33662 SPL_SYMBOLS=NONE
68d83c55 33663
42f7b73b
AX
33664 while true; do
33665 if test -r $SPL_OBJ/Module.symvers; then
68d83c55 33666
42f7b73b
AX
33667 SPL_SYMBOLS=Module.symvers
33668
33669elif test -r $SPL_OBJ/Modules.symvers; then
33670
33671 SPL_SYMBOLS=Modules.symvers
33672
33673elif test -r $SPL_OBJ/module/Module.symvers; then
33674
33675 SPL_SYMBOLS=Module.symvers
33676
33677elif test -r $SPL_OBJ/module/Modules.symvers; then
33678
33679 SPL_SYMBOLS=Modules.symvers
68d83c55 33680
68d83c55
AX
33681fi
33682
33683
42f7b73b 33684 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
68d83c55 33685
42f7b73b 33686 break;
68d83c55 33687
68d83c55 33688else
68d83c55 33689
42f7b73b
AX
33690 sleep 1
33691 timeout=$((timeout-1))
68d83c55 33692
68d83c55
AX
33693fi
33694
42f7b73b
AX
33695 done
33696
33697 if test "$SPL_SYMBOLS" = NONE; then
33698
33699 SPL_SYMBOLS=$LINUX_SYMBOLS
33700
cae5b340 33701fi
42f7b73b
AX
33702
33703
33704 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
33705$as_echo "$SPL_SYMBOLS" >&6; }
33706
33707
33708
33709
33710# Check whether --with-qat was given.
33711if test "${with_qat+set}" = set; then
33712 withval=$with_qat; if test "$withval" = "yes"; then
33713 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
33714$as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
33715 { (exit 1); exit 1; }; }
68d83c55 33716else
42f7b73b 33717 qatsrc="$withval"
68d83c55 33718fi
42f7b73b 33719
68d83c55 33720fi
68d83c55 33721
68d83c55 33722
cae5b340 33723
42f7b73b
AX
33724# Check whether --with-qat-obj was given.
33725if test "${with_qat_obj+set}" = set; then
33726 withval=$with_qat_obj; qatbuild="$withval"
68d83c55
AX
33727fi
33728
33729
42f7b73b 33730 if test ! -z "${qatsrc}"; then
cae5b340 33731
42f7b73b
AX
33732 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
33733$as_echo_n "checking qat source directory... " >&6; }
33734 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
33735$as_echo "$qatsrc" >&6; }
33736 QAT_SRC="${qatsrc}/quickassist"
33737 if test ! -e "$QAT_SRC/include/cpa.h"; then
cae5b340 33738
42f7b73b
AX
33739 { { $as_echo "$as_me:$LINENO: error:
33740 *** Please make sure the qat driver package is installed
33741 *** and specify the location of the qat source with the
33742 *** '--with-qat=PATH' option then try again. Failed to
33743 *** find cpa.h in:
33744 ${QAT_SRC}/include" >&5
33745$as_echo "$as_me: error:
33746 *** Please make sure the qat driver package is installed
33747 *** and specify the location of the qat source with the
33748 *** '--with-qat=PATH' option then try again. Failed to
33749 *** find cpa.h in:
33750 ${QAT_SRC}/include" >&2;}
33751 { (exit 1); exit 1; }; }
cae5b340 33752
42f7b73b 33753fi
68d83c55 33754
cae5b340 33755
42f7b73b 33756fi
68d83c55 33757
68d83c55 33758
42f7b73b 33759 if test ! -z "${qatsrc}"; then
68d83c55 33760
42f7b73b
AX
33761 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
33762$as_echo_n "checking qat build directory... " >&6; }
33763 if test -z "$qatbuild"; then
68d83c55 33764
42f7b73b 33765 qatbuild="${qatsrc}/build"
68d83c55 33766
cae5b340 33767fi
68d83c55
AX
33768
33769
42f7b73b
AX
33770 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
33771$as_echo "$qatbuild" >&6; }
33772 QAT_OBJ=${qatbuild}
33773 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
33774
33775 { { $as_echo "$as_me:$LINENO: error:
33776 *** Please make sure the qat driver is installed then try again.
33777 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33778 $QAT_OBJ" >&5
33779$as_echo "$as_me: error:
33780 *** Please make sure the qat driver is installed then try again.
33781 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33782 $QAT_OBJ" >&2;}
33783 { (exit 1); exit 1; }; }
68d83c55 33784
42f7b73b 33785fi
68d83c55 33786
68d83c55 33787
68d83c55
AX
33788
33789
33790
42f7b73b
AX
33791
33792cat >>confdefs.h <<\_ACEOF
33793#define HAVE_QAT 1
cae5b340 33794_ACEOF
68d83c55 33795
cae5b340 33796
42f7b73b 33797fi
cae5b340 33798
cae5b340 33799
42f7b73b 33800 if test ! -z "${qatsrc}"; then
cae5b340 33801
42f7b73b
AX
33802 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
33803$as_echo_n "checking qat file for module symbols... " >&6; }
33804 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
cae5b340 33805
42f7b73b
AX
33806 if test -r $QAT_SYMBOLS; then
33807
33808 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
33809$as_echo "$QAT_SYMBOLS" >&6; }
68d83c55 33810
68d83c55
AX
33811
33812else
cae5b340 33813
42f7b73b
AX
33814 { { $as_echo "$as_me:$LINENO: error:
33815 *** Please make sure the qat driver is installed then try again.
33816 *** Failed to find Module.symvers in:
33817 $QAT_SYMBOLS" >&5
33818$as_echo "$as_me: error:
33819 *** Please make sure the qat driver is installed then try again.
33820 *** Failed to find Module.symvers in:
33821 $QAT_SYMBOLS" >&2;}
33822 { (exit 1); exit 1; }; }
33823
33824fi
cae5b340 33825
cae5b340 33826
68d83c55
AX
33827fi
33828
33829
cae5b340 33830
42f7b73b
AX
33831 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
33832$as_echo_n "checking whether modules can be built... " >&6; }
33833
33834
33835cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33836/* confdefs.h. */
33837_ACEOF
33838cat confdefs.h >>conftest.$ac_ext
33839cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
33840/* end confdefs.h. */
33841
cae5b340 33842
68d83c55 33843int
42f7b73b 33844main (void)
68d83c55 33845{
cae5b340 33846
68d83c55
AX
33847 ;
33848 return 0;
33849}
42f7b73b 33850
68d83c55 33851_ACEOF
42f7b73b
AX
33852
33853
33854
33855cat - <<_ACEOF >conftest.h
33856
33857_ACEOF
33858
33859
33860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33861 echo "obj-m := conftest.o" >build/Makefile
33862 modpost_flag=''
33863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
cae5b340 33867 ac_status=$?
cae5b340 33868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
33869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
68d83c55 33875
cae5b340
AX
33876 { $as_echo "$as_me:$LINENO: result: yes" >&5
33877$as_echo "yes" >&6; }
68d83c55 33878
68d83c55 33879else
cae5b340
AX
33880 $as_echo "$as_me: failed program was:" >&5
33881sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 33882
cae5b340
AX
33883 { $as_echo "$as_me:$LINENO: result: no" >&5
33884$as_echo "no" >&6; }
42f7b73b
AX
33885 if test "x$enable_linux_builtin" != xyes; then
33886 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
33887$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
33888 { (exit 1); exit 1; }; }
33889 else
33890 { { $as_echo "$as_me:$LINENO: error:
33891 *** Unable to build an empty module.
33892 *** Please run 'make scripts' inside the kernel source tree." >&5
33893$as_echo "$as_me: error:
33894 *** Unable to build an empty module.
33895 *** Please run 'make scripts' inside the kernel source tree." >&2;}
33896 { (exit 1); exit 1; }; }
33897 fi
33898
33899
68d83c55 33900
cae5b340 33901fi
68d83c55 33902
42f7b73b 33903 rm -Rf build
68d83c55 33904
68d83c55 33905
68d83c55 33906
68d83c55 33907
42f7b73b
AX
33908 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
33909$as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
33910
33911
33912cat confdefs.h - <<_ACEOF >conftest.c
cae5b340 33913/* confdefs.h. */
68d83c55 33914_ACEOF
cae5b340
AX
33915cat confdefs.h >>conftest.$ac_ext
33916cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
33917/* end confdefs.h. */
33918
42f7b73b
AX
33919
33920 #undef __ASSEMBLY__
33921 #include <asm/frame.h>
33922
68d83c55 33923int
42f7b73b 33924main (void)
68d83c55
AX
33925{
33926
42f7b73b
AX
33927 #if !defined(FRAME_BEGIN)
33928 CTASSERT(1);
33929 #endif
33930
68d83c55
AX
33931 ;
33932 return 0;
33933}
42f7b73b 33934
68d83c55 33935_ACEOF
42f7b73b
AX
33936
33937
33938
33939cat - <<_ACEOF >conftest.h
33940
33941_ACEOF
33942
33943
33944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33945 echo "obj-m := conftest.o" >build/Makefile
33946 modpost_flag=''
33947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33950 (eval $ac_try) 2>&5
cae5b340 33951 ac_status=$?
cae5b340 33952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
33953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
68d83c55 33959
cae5b340 33960 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 33961$as_echo "yes" >&6; }
68d83c55 33962
42f7b73b
AX
33963cat >>confdefs.h <<\_ACEOF
33964#define HAVE_KERNEL_OBJTOOL 1
33965_ACEOF
33966
33967
68d83c55 33968else
cae5b340
AX
33969 $as_echo "$as_me: failed program was:" >&5
33970sed 's/^/| /' conftest.$ac_ext >&5
33971
cae5b340 33972 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33973$as_echo "no" >&6; }
68d83c55 33974
68d83c55
AX
33975
33976
42f7b73b 33977fi
68d83c55 33978
42f7b73b 33979 rm -Rf build
68d83c55 33980
68d83c55
AX
33981
33982
68d83c55 33983
42f7b73b 33984 if test "x$cross_compiling" != xyes; then
68d83c55 33985
42f7b73b
AX
33986 if test "$cross_compiling" = yes; then
33987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33989{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33990See \`config.log' for more details." >&5
33991$as_echo "$as_me: error: cannot run test program while cross compiling
33992See \`config.log' for more details." >&2;}
33993 { (exit 1); exit 1; }; }; }
cae5b340
AX
33994else
33995 cat >conftest.$ac_ext <<_ACEOF
42f7b73b
AX
33996
33997 /* confdefs.h. */
cae5b340
AX
33998_ACEOF
33999cat confdefs.h >>conftest.$ac_ext
34000cat >>conftest.$ac_ext <<_ACEOF
68d83c55 34001/* end confdefs.h. */
cae5b340 34002
42f7b73b 34003 #include "$LINUX/include/linux/license.h"
68d83c55
AX
34004
34005int
34006main ()
34007{
42f7b73b
AX
34008
34009 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
34010
68d83c55
AX
34011 ;
34012 return 0;
34013}
42f7b73b 34014
68d83c55 34015_ACEOF
42f7b73b 34016rm -f conftest$ac_exeext
cae5b340
AX
34017if { (ac_try="$ac_link"
34018case "(($ac_try" in
34019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020 *) ac_try_echo=$ac_try;;
34021esac
34022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34023$as_echo "$ac_try_echo") >&5
42f7b73b 34024 (eval "$ac_link") 2>&5
cae5b340 34025 ac_status=$?
cae5b340 34026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
34027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34028 { (case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34031esac
34032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34033$as_echo "$ac_try_echo") >&5
34034 (eval "$ac_try") 2>&5
34035 ac_status=$?
34036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; }; then
68d83c55 34038
68d83c55 34039
42f7b73b
AX
34040cat >>confdefs.h <<\_ACEOF
34041#define ZFS_IS_GPL_COMPATIBLE 1
68d83c55
AX
34042_ACEOF
34043
cae5b340 34044
42f7b73b
AX
34045else
34046 $as_echo "$as_me: program exited with status $ac_status" >&5
34047$as_echo "$as_me: failed program was:" >&5
34048sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 34049
42f7b73b 34050( exit $ac_status )
68d83c55
AX
34051
34052
42f7b73b
AX
34053fi
34054rm -rf conftest.dSYM
34055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68d83c55
AX
34056fi
34057
34058
34059
68d83c55
AX
34060fi
34061
34062
68d83c55 34063
42f7b73b
AX
34064 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
34065$as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
68d83c55 34066
68d83c55 34067
42f7b73b
AX
34068cat confdefs.h - <<_ACEOF >conftest.c
34069/* confdefs.h. */
34070_ACEOF
34071cat confdefs.h >>conftest.$ac_ext
34072cat >>conftest.$ac_ext <<_ACEOF
34073/* end confdefs.h. */
68d83c55 34074
68d83c55 34075
42f7b73b 34076 #include <linux/module.h>
68d83c55 34077
42f7b73b
AX
34078int
34079main (void)
34080{
68d83c55 34081
42f7b73b
AX
34082 #if (THREAD_SIZE < 16384)
34083 #error "THREAD_SIZE is less than 16K"
34084 #endif
cae5b340 34085
42f7b73b
AX
34086 ;
34087 return 0;
34088}
68d83c55 34089
42f7b73b 34090_ACEOF
68d83c55 34091
68d83c55 34092
68d83c55 34093
42f7b73b 34094cat - <<_ACEOF >conftest.h
68d83c55 34095
42f7b73b 34096_ACEOF
cae5b340 34097
68d83c55 34098
42f7b73b
AX
34099 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34100 echo "obj-m := conftest.o" >build/Makefile
34101 modpost_flag=''
34102 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34103 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105 (eval $ac_try) 2>&5
34106 ac_status=$?
34107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
68d83c55 34114
42f7b73b
AX
34115 { $as_echo "$as_me:$LINENO: result: yes" >&5
34116$as_echo "yes" >&6; }
68d83c55 34117
42f7b73b
AX
34118cat >>confdefs.h <<\_ACEOF
34119#define HAVE_LARGE_STACKS 1
34120_ACEOF
68d83c55 34121
cae5b340 34122
42f7b73b
AX
34123else
34124 $as_echo "$as_me: failed program was:" >&5
34125sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34126
42f7b73b
AX
34127 { $as_echo "$as_me:$LINENO: result: no" >&5
34128$as_echo "no" >&6; }
cae5b340 34129
68d83c55 34130
68d83c55
AX
34131
34132fi
34133
42f7b73b 34134 rm -Rf build
cae5b340 34135
68d83c55 34136
68d83c55 34137
68d83c55 34138
68d83c55 34139
42f7b73b
AX
34140 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
34141$as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
68d83c55 34142
68d83c55 34143
42f7b73b
AX
34144cat confdefs.h - <<_ACEOF >conftest.c
34145/* confdefs.h. */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h. */
68d83c55 34150
cae5b340 34151
42f7b73b 34152 #include <linux/module.h>
cae5b340 34153
42f7b73b
AX
34154int
34155main (void)
34156{
68d83c55 34157
42f7b73b
AX
34158 #ifndef CONFIG_DEBUG_LOCK_ALLOC
34159 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
34160 #endif
68d83c55 34161
42f7b73b
AX
34162 ;
34163 return 0;
34164}
68d83c55 34165
42f7b73b 34166_ACEOF
68d83c55 34167
68d83c55 34168
68d83c55 34169
42f7b73b 34170cat - <<_ACEOF >conftest.h
68d83c55 34171
42f7b73b 34172_ACEOF
68d83c55 34173
cae5b340 34174
42f7b73b
AX
34175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34176 echo "obj-m := conftest.o" >build/Makefile
34177 modpost_flag=''
34178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34179 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181 (eval $ac_try) 2>&5
34182 ac_status=$?
34183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34187 ac_status=$?
34188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; }; then
68d83c55 34190
42f7b73b
AX
34191 { $as_echo "$as_me:$LINENO: result: yes" >&5
34192$as_echo "yes" >&6; }
68d83c55 34193
42f7b73b
AX
34194 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
34195$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
34196 tmp_flags="$EXTRA_KCFLAGS"
68d83c55 34197
68d83c55 34198
42f7b73b
AX
34199cat confdefs.h - <<_ACEOF >conftest.c
34200/* confdefs.h. */
34201_ACEOF
34202cat confdefs.h >>conftest.$ac_ext
34203cat >>conftest.$ac_ext <<_ACEOF
34204/* end confdefs.h. */
68d83c55 34205
cae5b340 34206
42f7b73b
AX
34207 #include <linux/module.h>
34208 #include <linux/mutex.h>
68d83c55 34209
42f7b73b 34210 MODULE_LICENSE("$ZFS_META_LICENSE");
68d83c55 34211
42f7b73b
AX
34212int
34213main (void)
34214{
68d83c55 34215
42f7b73b 34216 struct mutex lock;
cae5b340 34217
42f7b73b
AX
34218 mutex_init(&lock);
34219 mutex_lock(&lock);
34220 mutex_unlock(&lock);
68d83c55 34221
42f7b73b
AX
34222 ;
34223 return 0;
34224}
68d83c55 34225
42f7b73b 34226_ACEOF
68d83c55
AX
34227
34228
34229
42f7b73b 34230cat - <<_ACEOF >conftest.h
68d83c55 34231
42f7b73b 34232_ACEOF
68d83c55 34233
68d83c55 34234
42f7b73b
AX
34235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34236 echo "obj-m := conftest.o" >build/Makefile
34237 modpost_flag=''
34238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34242 ac_status=$?
34243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34247 ac_status=$?
34248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
68d83c55 34250
42f7b73b
AX
34251 { $as_echo "$as_me:$LINENO: result: no" >&5
34252$as_echo "no" >&6; }
68d83c55
AX
34253
34254else
42f7b73b
AX
34255 $as_echo "$as_me: failed program was:" >&5
34256sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34257
42f7b73b
AX
34258 { $as_echo "$as_me:$LINENO: result: yes" >&5
34259$as_echo "yes" >&6; }
cae5b340 34260 { { $as_echo "$as_me:$LINENO: error:
42f7b73b
AX
34261 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34262 *** with the CDDL license and will prevent the module linking stage
34263 *** from succeeding. You must rebuild your kernel without this
34264 *** option enabled." >&5
cae5b340 34265$as_echo "$as_me: error:
42f7b73b
AX
34266 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34267 *** with the CDDL license and will prevent the module linking stage
34268 *** from succeeding. You must rebuild your kernel without this
34269 *** option enabled." >&2;}
cae5b340 34270 { (exit 1); exit 1; }; }
68d83c55 34271
68d83c55 34272
68d83c55
AX
34273
34274fi
cae5b340 34275
42f7b73b 34276 rm -Rf build
68d83c55
AX
34277
34278
42f7b73b 34279 EXTRA_KCFLAGS="$tmp_flags"
cae5b340 34280
68d83c55 34281
42f7b73b
AX
34282else
34283 $as_echo "$as_me: failed program was:" >&5
34284sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34285
42f7b73b
AX
34286 { $as_echo "$as_me:$LINENO: result: no" >&5
34287$as_echo "no" >&6; }
68d83c55 34288
68d83c55
AX
34289
34290
34291
68d83c55
AX
34292fi
34293
42f7b73b 34294 rm -Rf build
68d83c55 34295
68d83c55 34296
cae5b340 34297
68d83c55 34298
68d83c55 34299
68d83c55 34300
42f7b73b
AX
34301 tmp_flags="$EXTRA_KCFLAGS"
34302 EXTRA_KCFLAGS="-I\$(src)"
68d83c55 34303
42f7b73b
AX
34304 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
34305$as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
68d83c55 34306
68d83c55 34307
42f7b73b
AX
34308cat confdefs.h - <<_ACEOF >conftest.c
34309/* confdefs.h. */
34310_ACEOF
34311cat confdefs.h >>conftest.$ac_ext
34312cat >>conftest.$ac_ext <<_ACEOF
34313/* end confdefs.h. */
68d83c55 34314
68d83c55 34315
42f7b73b
AX
34316 #include <linux/module.h>
34317 MODULE_LICENSE(ZFS_META_LICENSE);
68d83c55 34318
42f7b73b
AX
34319 #define CREATE_TRACE_POINTS
34320 #include "conftest.h"
68d83c55 34321
42f7b73b
AX
34322int
34323main (void)
34324{
68d83c55 34325
42f7b73b
AX
34326 trace_zfs_autoconf_event_one(1UL);
34327 trace_zfs_autoconf_event_two(2UL);
68d83c55 34328
42f7b73b
AX
34329 ;
34330 return 0;
34331}
68d83c55 34332
42f7b73b 34333_ACEOF
68d83c55 34334
68d83c55 34335
68d83c55 34336
42f7b73b 34337cat - <<_ACEOF >conftest.h
68d83c55 34338
42f7b73b
AX
34339 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
34340 #define _CONFTEST_H
cae5b340 34341
42f7b73b
AX
34342 #undef TRACE_SYSTEM
34343 #define TRACE_SYSTEM zfs
34344 #include <linux/tracepoint.h>
68d83c55 34345
42f7b73b
AX
34346 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
34347 TP_PROTO(unsigned long i),
34348 TP_ARGS(i),
34349 TP_STRUCT__entry(
34350 __field(unsigned long, i)
34351 ),
34352 TP_fast_assign(
34353 __entry->i = i;
34354 ),
34355 TP_printk("i = %lu", __entry->i)
34356 );
68d83c55 34357
42f7b73b
AX
34358 #define DEFINE_AUTOCONF_EVENT(name) \
34359 DEFINE_EVENT(zfs_autoconf_event_class, name, \
34360 TP_PROTO(unsigned long i), \
34361 TP_ARGS(i))
34362 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
34363 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
68d83c55 34364
42f7b73b 34365 #endif /* _CONFTEST_H */
68d83c55 34366
42f7b73b
AX
34367 #undef TRACE_INCLUDE_PATH
34368 #define TRACE_INCLUDE_PATH .
34369 #define TRACE_INCLUDE_FILE conftest
34370 #include <trace/define_trace.h>
cae5b340 34371
42f7b73b 34372_ACEOF
68d83c55 34373
cae5b340 34374
42f7b73b
AX
34375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34376 echo "obj-m := conftest.o" >build/Makefile
34377 modpost_flag=''
34378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34379 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34382 ac_status=$?
34383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 (eval $ac_try) 2>&5
34387 ac_status=$?
34388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); }; }; then
68d83c55 34390
42f7b73b
AX
34391 { $as_echo "$as_me:$LINENO: result: yes" >&5
34392$as_echo "yes" >&6; }
68d83c55 34393
42f7b73b
AX
34394cat >>confdefs.h <<\_ACEOF
34395#define HAVE_DECLARE_EVENT_CLASS 1
34396_ACEOF
68d83c55 34397
cae5b340 34398
42f7b73b
AX
34399else
34400 $as_echo "$as_me: failed program was:" >&5
34401sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 34402
42f7b73b
AX
34403 { $as_echo "$as_me:$LINENO: result: no" >&5
34404$as_echo "no" >&6; }
cae5b340 34405
68d83c55 34406
68d83c55 34407
42f7b73b 34408fi
68d83c55 34409
42f7b73b 34410 rm -Rf build
68d83c55 34411
68d83c55 34412
42f7b73b 34413 EXTRA_KCFLAGS="$tmp_flags"
68d83c55 34414
68d83c55 34415
42f7b73b
AX
34416 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
34417$as_echo_n "checking whether current->bio_tail exists... " >&6; }
68d83c55 34418
68d83c55 34419
42f7b73b
AX
34420cat confdefs.h - <<_ACEOF >conftest.c
34421/* confdefs.h. */
34422_ACEOF
34423cat confdefs.h >>conftest.$ac_ext
34424cat >>conftest.$ac_ext <<_ACEOF
34425/* end confdefs.h. */
68d83c55 34426
cae5b340 34427
42f7b73b 34428 #include <linux/sched.h>
cae5b340 34429
42f7b73b
AX
34430int
34431main (void)
34432{
68d83c55 34433
42f7b73b 34434 current->bio_tail = (struct bio **) NULL;
68d83c55 34435
42f7b73b
AX
34436 ;
34437 return 0;
34438}
68d83c55 34439
42f7b73b 34440_ACEOF
68d83c55 34441
cae5b340 34442
68d83c55 34443
42f7b73b 34444cat - <<_ACEOF >conftest.h
68d83c55 34445
42f7b73b 34446_ACEOF
68d83c55 34447
68d83c55 34448
42f7b73b
AX
34449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34450 echo "obj-m := conftest.o" >build/Makefile
34451 modpost_flag=''
34452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34453 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34461 ac_status=$?
34462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
cae5b340 34464
42f7b73b
AX
34465 { $as_echo "$as_me:$LINENO: result: yes" >&5
34466$as_echo "yes" >&6; }
68d83c55 34467
42f7b73b
AX
34468cat >>confdefs.h <<\_ACEOF
34469#define HAVE_CURRENT_BIO_TAIL 1
34470_ACEOF
68d83c55 34471
68d83c55 34472
42f7b73b
AX
34473else
34474 $as_echo "$as_me: failed program was:" >&5
34475sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34476
42f7b73b
AX
34477 { $as_echo "$as_me:$LINENO: result: no" >&5
34478$as_echo "no" >&6; }
34479 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
34480$as_echo_n "checking whether current->bio_list exists... " >&6; }
68d83c55 34481
cae5b340 34482
42f7b73b
AX
34483cat confdefs.h - <<_ACEOF >conftest.c
34484/* confdefs.h. */
34485_ACEOF
34486cat confdefs.h >>conftest.$ac_ext
34487cat >>conftest.$ac_ext <<_ACEOF
34488/* end confdefs.h. */
68d83c55 34489
68d83c55 34490
42f7b73b 34491 #include <linux/sched.h>
cae5b340 34492
42f7b73b
AX
34493int
34494main (void)
34495{
68d83c55 34496
42f7b73b 34497 current->bio_list = (struct bio_list *) NULL;
68d83c55 34498
42f7b73b
AX
34499 ;
34500 return 0;
34501}
68d83c55 34502
42f7b73b 34503_ACEOF
68d83c55
AX
34504
34505
34506
42f7b73b 34507cat - <<_ACEOF >conftest.h
68d83c55 34508
42f7b73b 34509_ACEOF
68d83c55 34510
68d83c55 34511
42f7b73b
AX
34512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34513 echo "obj-m := conftest.o" >build/Makefile
34514 modpost_flag=''
34515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34519 ac_status=$?
34520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34523 (eval $ac_try) 2>&5
34524 ac_status=$?
34525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); }; }; then
68d83c55 34527
42f7b73b
AX
34528 { $as_echo "$as_me:$LINENO: result: yes" >&5
34529$as_echo "yes" >&6; }
68d83c55 34530
42f7b73b
AX
34531cat >>confdefs.h <<\_ACEOF
34532#define HAVE_CURRENT_BIO_LIST 1
34533_ACEOF
68d83c55 34534
68d83c55 34535
42f7b73b
AX
34536else
34537 $as_echo "$as_me: failed program was:" >&5
34538sed 's/^/| /' conftest.$ac_ext >&5
34539
34540 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
34541 https://github.com/zfsonlinux/zfs/issues/new" >&5
34542$as_echo "$as_me: error: no - Please file a bug report at
34543 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
34544 { (exit 1); exit 1; }; }
34545
68d83c55 34546
68d83c55
AX
34547
34548fi
34549
42f7b73b 34550 rm -Rf build
cae5b340 34551
68d83c55 34552
68d83c55 34553
68d83c55 34554
68d83c55
AX
34555
34556fi
cae5b340 34557
42f7b73b 34558 rm -Rf build
68d83c55 34559
68d83c55 34560
68d83c55 34561
68d83c55 34562
42f7b73b
AX
34563 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
34564$as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
cae5b340 34565
68d83c55 34566
42f7b73b
AX
34567cat confdefs.h - <<_ACEOF >conftest.c
34568/* confdefs.h. */
34569_ACEOF
34570cat confdefs.h >>conftest.$ac_ext
34571cat >>conftest.$ac_ext <<_ACEOF
34572/* end confdefs.h. */
68d83c55
AX
34573
34574
42f7b73b
AX
34575 #include <linux/fs.h>
34576 #include <linux/user_namespace.h>
cae5b340 34577
42f7b73b
AX
34578int
34579main (void)
34580{
cae5b340 34581
42f7b73b
AX
34582 struct super_block super;
34583 super.s_user_ns = (struct user_namespace *)NULL;
cae5b340 34584
42f7b73b
AX
34585 ;
34586 return 0;
34587}
cae5b340 34588
42f7b73b 34589_ACEOF
cae5b340 34590
cae5b340
AX
34591
34592
42f7b73b 34593cat - <<_ACEOF >conftest.h
cae5b340 34594
42f7b73b 34595_ACEOF
cae5b340 34596
cae5b340 34597
42f7b73b
AX
34598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34599 echo "obj-m := conftest.o" >build/Makefile
34600 modpost_flag=''
34601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34602 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34604 (eval $ac_try) 2>&5
34605 ac_status=$?
34606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34609 (eval $ac_try) 2>&5
34610 ac_status=$?
34611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); }; }; then
cae5b340 34613
42f7b73b
AX
34614 { $as_echo "$as_me:$LINENO: result: yes" >&5
34615$as_echo "yes" >&6; }
cae5b340 34616
42f7b73b
AX
34617cat >>confdefs.h <<\_ACEOF
34618#define HAVE_SUPER_USER_NS 1
34619_ACEOF
cae5b340
AX
34620
34621
42f7b73b
AX
34622else
34623 $as_echo "$as_me: failed program was:" >&5
34624sed 's/^/| /' conftest.$ac_ext >&5
34625
34626 { $as_echo "$as_me:$LINENO: result: no" >&5
34627$as_echo "no" >&6; }
cae5b340 34628
cae5b340 34629
cae5b340
AX
34630
34631fi
34632
42f7b73b 34633 rm -Rf build
cae5b340 34634
cae5b340 34635
cae5b340 34636
42f7b73b
AX
34637
34638 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
34639$as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
34640
34641
34642cat confdefs.h - <<_ACEOF >conftest.c
34643/* confdefs.h. */
34644_ACEOF
34645cat confdefs.h >>conftest.$ac_ext
34646cat >>conftest.$ac_ext <<_ACEOF
34647/* end confdefs.h. */
cae5b340
AX
34648
34649
42f7b73b 34650 #include <linux/bio.h>
cae5b340 34651
42f7b73b
AX
34652int
34653main (void)
34654{
cae5b340 34655
42f7b73b
AX
34656 blk_qc_t blk_qc;
34657 struct bio *bio = NULL;
34658 blk_qc = submit_bio(bio);
cae5b340 34659
42f7b73b
AX
34660 ;
34661 return 0;
34662}
cae5b340 34663
cae5b340
AX
34664_ACEOF
34665
34666
cae5b340 34667
42f7b73b 34668cat - <<_ACEOF >conftest.h
cae5b340 34669
42f7b73b 34670_ACEOF
cae5b340 34671
cae5b340 34672
42f7b73b
AX
34673 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34674 echo "obj-m := conftest.o" >build/Makefile
34675 modpost_flag=''
34676 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34677 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34680 ac_status=$?
34681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34684 (eval $ac_try) 2>&5
34685 ac_status=$?
34686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); }; }; then
cae5b340 34688
42f7b73b
AX
34689 { $as_echo "$as_me:$LINENO: result: yes" >&5
34690$as_echo "yes" >&6; }
34691
34692cat >>confdefs.h <<\_ACEOF
34693#define HAVE_1ARG_SUBMIT_BIO 1
34694_ACEOF
cae5b340
AX
34695
34696
34697else
42f7b73b
AX
34698 $as_echo "$as_me: failed program was:" >&5
34699sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 34700
42f7b73b
AX
34701 { $as_echo "$as_me:$LINENO: result: no" >&5
34702$as_echo "no" >&6; }
cae5b340 34703
cae5b340
AX
34704
34705
34706fi
34707
42f7b73b
AX
34708 rm -Rf build
34709
cae5b340
AX
34710
34711
42f7b73b 34712
a07c8b41
MZ
34713 { $as_echo "$as_me:$LINENO: checking whether bops->check_events() exists" >&5
34714$as_echo_n "checking whether bops->check_events() exists... " >&6; }
42f7b73b
AX
34715 tmp_flags="$EXTRA_KCFLAGS"
34716 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
68d83c55
AX
34717
34718
34719cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34720/* confdefs.h. */
34721_ACEOF
34722cat confdefs.h >>conftest.$ac_ext
34723cat >>conftest.$ac_ext <<_ACEOF
34724/* end confdefs.h. */
68d83c55
AX
34725
34726
42f7b73b
AX
34727 #include <linux/blkdev.h>
34728
a07c8b41
MZ
34729 unsigned int blk_check_events(struct gendisk *disk,
34730 unsigned int clearing) { return (0); }
42f7b73b
AX
34731
34732 static const struct block_device_operations
34733 bops __attribute__ ((unused)) = {
a07c8b41 34734 .check_events = blk_check_events,
42f7b73b
AX
34735 };
34736
68d83c55
AX
34737int
34738main (void)
34739{
34740
42f7b73b 34741
68d83c55
AX
34742 ;
34743 return 0;
34744}
34745
34746_ACEOF
34747
34748
34749
34750cat - <<_ACEOF >conftest.h
34751
34752_ACEOF
34753
34754
34755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34756 echo "obj-m := conftest.o" >build/Makefile
34757 modpost_flag=''
34758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 34759 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
34761 (eval $ac_try) 2>&5
34762 ac_status=$?
cae5b340
AX
34763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
34766 (eval $ac_try) 2>&5
34767 ac_status=$?
cae5b340
AX
34768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; }; then
68d83c55 34770
a07c8b41
MZ
34771 { $as_echo "$as_me:$LINENO: result: yes" >&5
34772$as_echo "yes" >&6; }
42f7b73b
AX
34773
34774cat >>confdefs.h <<\_ACEOF
a07c8b41 34775#define HAVE_BLOCK_DEVICE_OPERATIONS_CHECK_EVENTS 1
42f7b73b
AX
34776_ACEOF
34777
68d83c55
AX
34778
34779else
34780 $as_echo "$as_me: failed program was:" >&5
34781sed 's/^/| /' conftest.$ac_ext >&5
34782
a07c8b41
MZ
34783 { $as_echo "$as_me:$LINENO: result: no" >&5
34784$as_echo "no" >&6; }
68d83c55
AX
34785
34786
34787
4d815aed 34788fi
cae5b340 34789
68d83c55 34790 rm -Rf build
4d815aed 34791
4d815aed 34792
42f7b73b 34793 EXTRA_KCFLAGS="$tmp_flags"
4d815aed 34794
4d815aed 34795
a07c8b41
MZ
34796 { $as_echo "$as_me:$LINENO: checking whether bops->release() is void" >&5
34797$as_echo_n "checking whether bops->release() is void... " >&6; }
42f7b73b
AX
34798 tmp_flags="$EXTRA_KCFLAGS"
34799 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
cae5b340
AX
34800
34801
34802cat confdefs.h - <<_ACEOF >conftest.c
34803/* confdefs.h. */
34804_ACEOF
34805cat confdefs.h >>conftest.$ac_ext
34806cat >>conftest.$ac_ext <<_ACEOF
34807/* end confdefs.h. */
68d83c55 34808
cae5b340 34809
42f7b73b
AX
34810 #include <linux/blkdev.h>
34811
34812 void blk_release(struct gendisk *g, fmode_t mode) { return; }
34813
34814 static const struct block_device_operations
34815 bops __attribute__ ((unused)) = {
34816 .open = NULL,
34817 .release = blk_release,
34818 .ioctl = NULL,
34819 .compat_ioctl = NULL,
34820 };
cae5b340
AX
34821
34822int
34823main (void)
34824{
34825
cae5b340
AX
34826
34827 ;
34828 return 0;
34829}
34830
34831_ACEOF
34832
34833
34834
34835cat - <<_ACEOF >conftest.h
34836
34837_ACEOF
34838
34839
34840 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34841 echo "obj-m := conftest.o" >build/Makefile
34842 modpost_flag=''
34843 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 34844 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34847 ac_status=$?
34848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855
42f7b73b
AX
34856 { $as_echo "$as_me:$LINENO: result: void" >&5
34857$as_echo "void" >&6; }
cae5b340
AX
34858
34859cat >>confdefs.h <<\_ACEOF
42f7b73b 34860#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
cae5b340
AX
34861_ACEOF
34862
34863
34864else
34865 $as_echo "$as_me: failed program was:" >&5
34866sed 's/^/| /' conftest.$ac_ext >&5
34867
42f7b73b
AX
34868 { $as_echo "$as_me:$LINENO: result: int" >&5
34869$as_echo "int" >&6; }
cae5b340
AX
34870
34871
34872
34873fi
34874
34875 rm -Rf build
34876
34877
42f7b73b 34878 EXTRA_KCFLAGS="$tmp_flags"
cae5b340 34879
42f7b73b
AX
34880 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
34881$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
cae5b340 34882
4d815aed 34883
42f7b73b
AX
34884cat confdefs.h - <<_ACEOF >conftest.c
34885/* confdefs.h. */
cae5b340
AX
34886_ACEOF
34887cat confdefs.h >>conftest.$ac_ext
34888cat >>conftest.$ac_ext <<_ACEOF
34889/* end confdefs.h. */
68d83c55 34890
42f7b73b
AX
34891
34892 #include <linux/types.h>
4d815aed
AX
34893
34894int
42f7b73b 34895main (void)
4d815aed
AX
34896{
34897
42f7b73b 34898 fmode_t *ptr __attribute__ ((unused));
4d815aed
AX
34899
34900 ;
34901 return 0;
34902}
68d83c55 34903
4d815aed 34904_ACEOF
42f7b73b
AX
34905
34906
34907
34908cat - <<_ACEOF >conftest.h
34909
34910_ACEOF
34911
34912
34913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34914 echo "obj-m := conftest.o" >build/Makefile
34915 modpost_flag=''
34916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34917 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
cae5b340
AX
34920 ac_status=$?
34921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
34922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
cae5b340
AX
34925 ac_status=$?
34926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34928
42f7b73b
AX
34929 { $as_echo "$as_me:$LINENO: result: yes" >&5
34930$as_echo "yes" >&6; }
cae5b340
AX
34931
34932cat >>confdefs.h <<\_ACEOF
42f7b73b 34933#define HAVE_FMODE_T 1
cae5b340 34934_ACEOF
4d815aed 34935
4d815aed 34936
cae5b340 34937else
42f7b73b 34938 $as_echo "$as_me: failed program was:" >&5
cae5b340
AX
34939sed 's/^/| /' conftest.$ac_ext >&5
34940
42f7b73b
AX
34941 { $as_echo "$as_me:$LINENO: result: no" >&5
34942$as_echo "no" >&6; }
4d815aed 34943
4d815aed 34944
4d815aed 34945
42f7b73b 34946fi
4d815aed 34947
42f7b73b 34948 rm -Rf build
cae5b340 34949
4d815aed
AX
34950
34951
cae5b340 34952
42f7b73b
AX
34953 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
34954$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
4d815aed
AX
34955
34956
68d83c55 34957cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34958/* confdefs.h. */
34959_ACEOF
34960cat confdefs.h >>conftest.$ac_ext
34961cat >>conftest.$ac_ext <<_ACEOF
34962/* end confdefs.h. */
4d815aed 34963
4d815aed 34964
42f7b73b 34965 #include <linux/fs.h>
4d815aed
AX
34966
34967int
68d83c55 34968main (void)
4d815aed
AX
34969{
34970
42f7b73b
AX
34971 struct block_device *bdev = NULL;
34972 (void) blkdev_get(bdev, 0, NULL);
68d83c55 34973
4d815aed
AX
34974 ;
34975 return 0;
34976}
68d83c55 34977
4d815aed 34978_ACEOF
4d815aed 34979
4d815aed 34980
4d815aed 34981
68d83c55 34982cat - <<_ACEOF >conftest.h
4d815aed 34983
68d83c55 34984_ACEOF
4d815aed 34985
4d815aed 34986
68d83c55
AX
34987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34988 echo "obj-m := conftest.o" >build/Makefile
34989 modpost_flag=''
34990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 34991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
34993 (eval $ac_try) 2>&5
34994 ac_status=$?
cae5b340
AX
34995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
cae5b340
AX
35000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; }; then
4d815aed 35002
cae5b340 35003 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35004$as_echo "yes" >&6; }
4d815aed 35005
cae5b340 35006cat >>confdefs.h <<\_ACEOF
42f7b73b 35007#define HAVE_3ARG_BLKDEV_GET 1
cae5b340 35008_ACEOF
4d815aed 35009
4d815aed 35010
68d83c55
AX
35011else
35012 $as_echo "$as_me: failed program was:" >&5
35013sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 35014
cae5b340 35015 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35016$as_echo "no" >&6; }
4d815aed 35017
4d815aed
AX
35018
35019
4d815aed 35020fi
cae5b340 35021
68d83c55 35022 rm -Rf build
4d815aed
AX
35023
35024
35025
42f7b73b
AX
35026 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
35027$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
4d815aed
AX
35028
35029
4d815aed 35030
68d83c55 35031cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35032/* confdefs.h. */
35033_ACEOF
35034cat confdefs.h >>conftest.$ac_ext
35035cat >>conftest.$ac_ext <<_ACEOF
35036/* end confdefs.h. */
4d815aed 35037
4d815aed 35038
42f7b73b 35039 #include <linux/fs.h>
4d815aed 35040
68d83c55
AX
35041int
35042main (void)
35043{
4d815aed 35044
42f7b73b 35045 blkdev_get_by_path(NULL, 0, NULL);
4d815aed 35046
68d83c55
AX
35047 ;
35048 return 0;
35049}
4d815aed 35050
68d83c55 35051_ACEOF
4d815aed 35052
4d815aed 35053
4d815aed 35054
68d83c55 35055cat - <<_ACEOF >conftest.h
4d815aed 35056
68d83c55 35057_ACEOF
4d815aed 35058
4d815aed 35059
68d83c55
AX
35060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35061 echo "obj-m := conftest.o" >build/Makefile
35062 modpost_flag=''
35063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35064 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35066 (eval $ac_try) 2>&5
35067 ac_status=$?
cae5b340
AX
35068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35071 (eval $ac_try) 2>&5
35072 ac_status=$?
cae5b340
AX
35073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); }; }; then
42f7b73b
AX
35075 rc=0
35076else
35077 $as_echo "$as_me: failed program was:" >&5
35078sed 's/^/| /' conftest.$ac_ext >&5
35079 rc=1
35080
35081
35082fi
35083
35084 rm -Rf build
35085
35086
35087 if test $rc -ne 0; then :
35088
35089 { $as_echo "$as_me:$LINENO: result: no" >&5
35090$as_echo "no" >&6; }
35091
35092 else
35093 if test "x$enable_linux_builtin" != xyes; then
35094
35095 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
35096 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35097 rc=$?
35098 if test $rc -ne 0; then
35099 export=0
35100 for file in fs/block_dev.c; do
35101 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
35102 "$LINUX/$file" 2>/dev/null
35103 rc=$?
35104 if test $rc -eq 0; then
35105 export=1
35106 break;
35107 fi
35108 done
35109 if test $export -eq 0; then :
35110 rc=1
35111 else :
35112 rc=0
35113 fi
35114 else :
35115 rc=0
35116 fi
35117
35118 fi
35119 if test $rc -ne 0; then :
35120
35121 { $as_echo "$as_me:$LINENO: result: no" >&5
35122$as_echo "no" >&6; }
35123
35124 else :
4d815aed 35125
cae5b340 35126 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35127$as_echo "yes" >&6; }
4d815aed 35128
42f7b73b
AX
35129cat >>confdefs.h <<\_ACEOF
35130#define HAVE_BLKDEV_GET_BY_PATH 1
35131_ACEOF
35132
35133
35134 fi
35135 fi
35136
35137
35138 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
35139$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
35140
4d815aed 35141
4d815aed 35142
68d83c55 35143cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35144/* confdefs.h. */
35145_ACEOF
35146cat confdefs.h >>conftest.$ac_ext
35147cat >>conftest.$ac_ext <<_ACEOF
35148/* end confdefs.h. */
4d815aed 35149
4d815aed 35150
42f7b73b 35151 #include <linux/fs.h>
4d815aed 35152
68d83c55
AX
35153int
35154main (void)
35155{
4d815aed 35156
42f7b73b 35157 open_bdev_exclusive(NULL, 0, NULL);
4d815aed 35158
68d83c55
AX
35159 ;
35160 return 0;
35161}
4d815aed 35162
68d83c55 35163_ACEOF
4d815aed 35164
4d815aed 35165
4d815aed 35166
68d83c55
AX
35167cat - <<_ACEOF >conftest.h
35168
35169_ACEOF
35170
35171
35172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35173 echo "obj-m := conftest.o" >build/Makefile
35174 modpost_flag=''
35175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35176 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35178 (eval $ac_try) 2>&5
35179 ac_status=$?
cae5b340
AX
35180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35183 (eval $ac_try) 2>&5
35184 ac_status=$?
cae5b340
AX
35185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; }; then
42f7b73b 35187 rc=0
4d815aed 35188else
68d83c55
AX
35189 $as_echo "$as_me: failed program was:" >&5
35190sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 35191 rc=1
4d815aed 35192
4d815aed
AX
35193
35194fi
cae5b340 35195
68d83c55 35196 rm -Rf build
4d815aed 35197
4d815aed 35198
42f7b73b 35199 if test $rc -ne 0; then :
4d815aed 35200
cae5b340 35201 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35202$as_echo "no" >&6; }
4d815aed 35203
42f7b73b
AX
35204 else
35205 if test "x$enable_linux_builtin" != xyes; then
4d815aed 35206
42f7b73b
AX
35207 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
35208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35209 rc=$?
35210 if test $rc -ne 0; then
35211 export=0
35212 for file in fs/block_dev.c; do
35213 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
35214 "$LINUX/$file" 2>/dev/null
35215 rc=$?
35216 if test $rc -eq 0; then
35217 export=1
35218 break;
35219 fi
35220 done
35221 if test $export -eq 0; then :
35222 rc=1
35223 else :
35224 rc=0
35225 fi
35226 else :
35227 rc=0
35228 fi
4d815aed 35229
42f7b73b
AX
35230 fi
35231 if test $rc -ne 0; then :
4d815aed 35232
42f7b73b
AX
35233 { $as_echo "$as_me:$LINENO: result: no" >&5
35234$as_echo "no" >&6; }
cae5b340 35235
42f7b73b 35236 else :
4d815aed 35237
42f7b73b
AX
35238 { $as_echo "$as_me:$LINENO: result: yes" >&5
35239$as_echo "yes" >&6; }
4d815aed 35240
42f7b73b
AX
35241cat >>confdefs.h <<\_ACEOF
35242#define HAVE_OPEN_BDEV_EXCLUSIVE 1
35243_ACEOF
4d815aed 35244
4d815aed 35245
42f7b73b
AX
35246 fi
35247 fi
4d815aed 35248
4d815aed 35249
42f7b73b
AX
35250 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
35251$as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
4d815aed 35252
4d815aed 35253
4d815aed 35254
68d83c55 35255cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35256/* confdefs.h. */
35257_ACEOF
35258cat confdefs.h >>conftest.$ac_ext
35259cat >>conftest.$ac_ext <<_ACEOF
35260/* end confdefs.h. */
4d815aed
AX
35261
35262
42f7b73b 35263 #include <linux/fs.h>
4d815aed 35264
68d83c55
AX
35265int
35266main (void)
35267{
4d815aed 35268
42f7b73b 35269 lookup_bdev(NULL);
4d815aed 35270
68d83c55
AX
35271 ;
35272 return 0;
35273}
4d815aed 35274
68d83c55 35275_ACEOF
4d815aed 35276
4d815aed 35277
4d815aed 35278
68d83c55 35279cat - <<_ACEOF >conftest.h
4d815aed 35280
42f7b73b 35281_ACEOF
4d815aed 35282
4d815aed 35283
42f7b73b
AX
35284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35285 echo "obj-m := conftest.o" >build/Makefile
35286 modpost_flag=''
35287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35291 ac_status=$?
35292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35296 ac_status=$?
35297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; }; then
35299 rc=0
35300else
35301 $as_echo "$as_me: failed program was:" >&5
35302sed 's/^/| /' conftest.$ac_ext >&5
35303 rc=1
4d815aed 35304
4d815aed 35305
42f7b73b 35306fi
4d815aed 35307
42f7b73b
AX
35308 rm -Rf build
35309
35310
35311 if test $rc -ne 0; then :
35312
35313 { $as_echo "$as_me:$LINENO: result: no" >&5
35314$as_echo "no" >&6; }
35315 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35316$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35317
35318
35319
35320cat confdefs.h - <<_ACEOF >conftest.c
35321/* confdefs.h. */
35322_ACEOF
35323cat confdefs.h >>conftest.$ac_ext
35324cat >>conftest.$ac_ext <<_ACEOF
35325/* end confdefs.h. */
35326
35327
35328 #include <linux/fs.h>
35329
35330int
35331main (void)
35332{
35333
35334 lookup_bdev(NULL, FMODE_READ);
35335
35336 ;
35337 return 0;
35338}
35339
35340_ACEOF
35341
35342
35343
35344cat - <<_ACEOF >conftest.h
4d815aed 35345
68d83c55 35346_ACEOF
4d815aed
AX
35347
35348
68d83c55
AX
35349 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35350 echo "obj-m := conftest.o" >build/Makefile
35351 modpost_flag=''
35352 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35353 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35355 (eval $ac_try) 2>&5
35356 ac_status=$?
cae5b340
AX
35357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
cae5b340
AX
35362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
42f7b73b
AX
35364 rc=0
35365else
35366 $as_echo "$as_me: failed program was:" >&5
35367sed 's/^/| /' conftest.$ac_ext >&5
35368 rc=1
4d815aed
AX
35369
35370
42f7b73b 35371fi
4d815aed 35372
42f7b73b 35373 rm -Rf build
4d815aed
AX
35374
35375
42f7b73b
AX
35376 if test $rc -ne 0; then :
35377
35378 { $as_echo "$as_me:$LINENO: result: no" >&5
35379$as_echo "no" >&6; }
35380
35381 else
35382 if test "x$enable_linux_builtin" != xyes; then
35383
35384 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35385 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35386 rc=$?
35387 if test $rc -ne 0; then
35388 export=0
35389 for file in fs/block_dev.c; do
35390 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35391 "$LINUX/$file" 2>/dev/null
35392 rc=$?
35393 if test $rc -eq 0; then
35394 export=1
35395 break;
35396 fi
35397 done
35398 if test $export -eq 0; then :
35399 rc=1
35400 else :
35401 rc=0
35402 fi
35403 else :
35404 rc=0
35405 fi
35406
35407 fi
35408 if test $rc -ne 0; then :
35409
35410 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35411$as_echo "no" >&6; }
4d815aed 35412
42f7b73b 35413 else :
4d815aed 35414
42f7b73b
AX
35415 { $as_echo "$as_me:$LINENO: result: yes" >&5
35416$as_echo "yes" >&6; }
4d815aed 35417
42f7b73b
AX
35418cat >>confdefs.h <<\_ACEOF
35419#define HAVE_2ARGS_LOOKUP_BDEV 1
35420_ACEOF
cae5b340 35421
4d815aed 35422
42f7b73b
AX
35423 fi
35424 fi
35425
35426
35427 else
35428 if test "x$enable_linux_builtin" != xyes; then
35429
35430 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35431 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35432 rc=$?
35433 if test $rc -ne 0; then
35434 export=0
35435 for file in fs/block_dev.c; do
35436 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35437 "$LINUX/$file" 2>/dev/null
35438 rc=$?
35439 if test $rc -eq 0; then
35440 export=1
35441 break;
35442 fi
35443 done
35444 if test $export -eq 0; then :
35445 rc=1
35446 else :
35447 rc=0
35448 fi
35449 else :
35450 rc=0
35451 fi
4d815aed 35452
42f7b73b
AX
35453 fi
35454 if test $rc -ne 0; then :
4d815aed 35455
42f7b73b
AX
35456 { $as_echo "$as_me:$LINENO: result: no" >&5
35457$as_echo "no" >&6; }
35458 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35459$as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
4d815aed 35460
4d815aed 35461
4d815aed 35462
68d83c55 35463cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35464/* confdefs.h. */
35465_ACEOF
35466cat confdefs.h >>conftest.$ac_ext
35467cat >>conftest.$ac_ext <<_ACEOF
35468/* end confdefs.h. */
4d815aed 35469
4d815aed 35470
42f7b73b 35471 #include <linux/fs.h>
4d815aed 35472
68d83c55
AX
35473int
35474main (void)
35475{
4d815aed 35476
42f7b73b 35477 lookup_bdev(NULL, FMODE_READ);
4d815aed 35478
68d83c55
AX
35479 ;
35480 return 0;
35481}
4d815aed 35482
68d83c55 35483_ACEOF
4d815aed 35484
4d815aed 35485
4d815aed 35486
68d83c55 35487cat - <<_ACEOF >conftest.h
4d815aed 35488
68d83c55 35489_ACEOF
4d815aed 35490
4d815aed 35491
68d83c55
AX
35492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35493 echo "obj-m := conftest.o" >build/Makefile
35494 modpost_flag=''
35495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35496 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
cae5b340
AX
35500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35503 (eval $ac_try) 2>&5
35504 ac_status=$?
cae5b340
AX
35505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; }; then
42f7b73b 35507 rc=0
4d815aed 35508else
68d83c55
AX
35509 $as_echo "$as_me: failed program was:" >&5
35510sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 35511 rc=1
4d815aed 35512
4d815aed 35513
42f7b73b 35514fi
4d815aed 35515
42f7b73b 35516 rm -Rf build
4d815aed 35517
4d815aed 35518
42f7b73b 35519 if test $rc -ne 0; then :
4d815aed 35520
42f7b73b
AX
35521 { $as_echo "$as_me:$LINENO: result: no" >&5
35522$as_echo "no" >&6; }
4d815aed 35523
42f7b73b
AX
35524 else
35525 if test "x$enable_linux_builtin" != xyes; then
4d815aed 35526
42f7b73b
AX
35527 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35528 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35529 rc=$?
35530 if test $rc -ne 0; then
35531 export=0
35532 for file in fs/block_dev.c; do
35533 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35534 "$LINUX/$file" 2>/dev/null
35535 rc=$?
35536 if test $rc -eq 0; then
35537 export=1
35538 break;
35539 fi
35540 done
35541 if test $export -eq 0; then :
35542 rc=1
35543 else :
35544 rc=0
35545 fi
35546 else :
35547 rc=0
35548 fi
4d815aed 35549
42f7b73b
AX
35550 fi
35551 if test $rc -ne 0; then :
4d815aed 35552
42f7b73b
AX
35553 { $as_echo "$as_me:$LINENO: result: no" >&5
35554$as_echo "no" >&6; }
4d815aed 35555
42f7b73b 35556 else :
4d815aed 35557
cae5b340 35558 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35559$as_echo "yes" >&6; }
4d815aed 35560
cae5b340 35561cat >>confdefs.h <<\_ACEOF
42f7b73b 35562#define HAVE_2ARGS_LOOKUP_BDEV 1
cae5b340 35563_ACEOF
4d815aed 35564
4d815aed 35565
42f7b73b
AX
35566 fi
35567 fi
4d815aed 35568
4d815aed 35569
42f7b73b 35570 else :
4d815aed 35571
42f7b73b
AX
35572 { $as_echo "$as_me:$LINENO: result: yes" >&5
35573$as_echo "yes" >&6; }
4d815aed 35574
42f7b73b
AX
35575cat >>confdefs.h <<\_ACEOF
35576#define HAVE_1ARG_LOOKUP_BDEV 1
35577_ACEOF
cae5b340 35578
ea04106b 35579
42f7b73b
AX
35580 fi
35581 fi
4d815aed 35582
ea04106b
AX
35583
35584
42f7b73b
AX
35585 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
35586$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
ea04106b 35587
ea04106b 35588
68d83c55 35589cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35590/* confdefs.h. */
35591_ACEOF
35592cat confdefs.h >>conftest.$ac_ext
35593cat >>conftest.$ac_ext <<_ACEOF
35594/* end confdefs.h. */
ea04106b 35595
ea04106b 35596
42f7b73b 35597 #include <linux/buffer_head.h>
ea04106b 35598
68d83c55
AX
35599int
35600main (void)
35601{
ea04106b 35602
42f7b73b
AX
35603 struct block_device *bdev = NULL;
35604 invalidate_bdev(bdev);
ea04106b 35605
68d83c55
AX
35606 ;
35607 return 0;
35608}
ea04106b 35609
68d83c55 35610_ACEOF
ea04106b 35611
ea04106b 35612
4d815aed 35613
68d83c55 35614cat - <<_ACEOF >conftest.h
ea04106b 35615
68d83c55 35616_ACEOF
ea04106b
AX
35617
35618
68d83c55
AX
35619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35620 echo "obj-m := conftest.o" >build/Makefile
35621 modpost_flag=''
35622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35623 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35625 (eval $ac_try) 2>&5
35626 ac_status=$?
cae5b340
AX
35627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35630 (eval $ac_try) 2>&5
35631 ac_status=$?
cae5b340
AX
35632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; }; then
ea04106b 35634
cae5b340 35635 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35636$as_echo "yes" >&6; }
ea04106b 35637
cae5b340 35638cat >>confdefs.h <<\_ACEOF
42f7b73b 35639#define HAVE_1ARG_INVALIDATE_BDEV 1
cae5b340 35640_ACEOF
4d815aed 35641
ea04106b 35642
e10b0808 35643else
68d83c55
AX
35644 $as_echo "$as_me: failed program was:" >&5
35645sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35646
cae5b340 35647 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35648$as_echo "no" >&6; }
4d815aed 35649
4d815aed 35650
4d815aed
AX
35651
35652fi
cae5b340 35653
68d83c55 35654 rm -Rf build
4d815aed 35655
4d815aed
AX
35656
35657
35658
42f7b73b
AX
35659 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
35660$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
35661 tmp_flags="$EXTRA_KCFLAGS"
35662 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed
AX
35663
35664
35665cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35666/* confdefs.h. */
35667_ACEOF
35668cat confdefs.h >>conftest.$ac_ext
35669cat >>conftest.$ac_ext <<_ACEOF
35670/* end confdefs.h. */
4d815aed
AX
35671
35672
42f7b73b 35673 #include <linux/blkdev.h>
68d83c55 35674
e10b0808 35675int
4d815aed 35676main (void)
e10b0808 35677{
4d815aed 35678
42f7b73b
AX
35679 struct block_device *bdev = NULL;
35680 bdev_logical_block_size(bdev);
68d83c55 35681
e10b0808
AX
35682 ;
35683 return 0;
35684}
4d815aed 35685
e10b0808 35686_ACEOF
4d815aed
AX
35687
35688
35689
35690cat - <<_ACEOF >conftest.h
35691
35692_ACEOF
35693
35694
35695 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35696 echo "obj-m := conftest.o" >build/Makefile
35697 modpost_flag=''
35698 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35699 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35701 (eval $ac_try) 2>&5
35702 ac_status=$?
cae5b340
AX
35703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35706 (eval $ac_try) 2>&5
35707 ac_status=$?
cae5b340
AX
35708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
4d815aed 35710
cae5b340
AX
35711 { $as_echo "$as_me:$LINENO: result: yes" >&5
35712$as_echo "yes" >&6; }
68d83c55 35713
cae5b340 35714cat >>confdefs.h <<\_ACEOF
42f7b73b 35715#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
cae5b340 35716_ACEOF
68d83c55 35717
4d815aed 35718
e10b0808 35719else
4d815aed
AX
35720 $as_echo "$as_me: failed program was:" >&5
35721sed 's/^/| /' conftest.$ac_ext >&5
35722
cae5b340
AX
35723 { $as_echo "$as_me:$LINENO: result: no" >&5
35724$as_echo "no" >&6; }
4d815aed
AX
35725
35726
35727
e10b0808 35728fi
cae5b340 35729
4d815aed 35730 rm -Rf build
ea04106b
AX
35731
35732
42f7b73b 35733 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
35734
35735
42f7b73b
AX
35736 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
35737$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
68d83c55
AX
35738 tmp_flags="$EXTRA_KCFLAGS"
35739 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed 35740
68d83c55
AX
35741
35742cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35743/* confdefs.h. */
35744_ACEOF
35745cat confdefs.h >>conftest.$ac_ext
35746cat >>conftest.$ac_ext <<_ACEOF
35747/* end confdefs.h. */
ea04106b 35748
4d815aed 35749
68d83c55
AX
35750 #include <linux/blkdev.h>
35751
e10b0808 35752int
68d83c55 35753main (void)
e10b0808 35754{
ea04106b 35755
42f7b73b
AX
35756 struct block_device *bdev = NULL;
35757 bdev_physical_block_size(bdev);
ea04106b
AX
35758
35759 ;
35760 return 0;
35761}
4d815aed 35762
ea04106b
AX
35763_ACEOF
35764
ea04106b
AX
35765
35766
68d83c55
AX
35767cat - <<_ACEOF >conftest.h
35768
35769_ACEOF
35770
35771
35772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35773 echo "obj-m := conftest.o" >build/Makefile
35774 modpost_flag=''
35775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35776 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35778 (eval $ac_try) 2>&5
35779 ac_status=$?
cae5b340
AX
35780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35783 (eval $ac_try) 2>&5
35784 ac_status=$?
cae5b340
AX
35785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); }; }; then
68d83c55 35787
42f7b73b
AX
35788 { $as_echo "$as_me:$LINENO: result: yes" >&5
35789$as_echo "yes" >&6; }
68d83c55 35790
cae5b340 35791cat >>confdefs.h <<\_ACEOF
42f7b73b 35792#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
cae5b340 35793_ACEOF
68d83c55
AX
35794
35795
35796else
35797 $as_echo "$as_me: failed program was:" >&5
35798sed 's/^/| /' conftest.$ac_ext >&5
35799
42f7b73b
AX
35800 { $as_echo "$as_me:$LINENO: result: no" >&5
35801$as_echo "no" >&6; }
ea04106b 35802
ea04106b 35803
ea04106b 35804
ea04106b 35805fi
cae5b340 35806
68d83c55 35807 rm -Rf build
ea04106b
AX
35808
35809
68d83c55 35810 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 35811
cae5b340 35812
42f7b73b
AX
35813 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
35814$as_echo_n "checking whether bio has bi_iter... " >&6; }
ea04106b
AX
35815
35816
4d815aed 35817cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35818/* confdefs.h. */
35819_ACEOF
35820cat confdefs.h >>conftest.$ac_ext
35821cat >>conftest.$ac_ext <<_ACEOF
35822/* end confdefs.h. */
ea04106b 35823
ea04106b 35824
42f7b73b 35825 #include <linux/bio.h>
ea04106b
AX
35826
35827int
4d815aed 35828main (void)
ea04106b
AX
35829{
35830
42f7b73b
AX
35831 struct bio bio;
35832 bio.bi_iter.bi_sector = 0;
4d815aed 35833
ea04106b
AX
35834 ;
35835 return 0;
35836}
ea04106b 35837
4d815aed 35838_ACEOF
ea04106b 35839
ea04106b
AX
35840
35841
4d815aed 35842cat - <<_ACEOF >conftest.h
ea04106b 35843
4d815aed 35844_ACEOF
ea04106b 35845
ea04106b 35846
4d815aed
AX
35847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35848 echo "obj-m := conftest.o" >build/Makefile
35849 modpost_flag=''
35850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35851 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35853 (eval $ac_try) 2>&5
35854 ac_status=$?
cae5b340
AX
35855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35858 (eval $ac_try) 2>&5
35859 ac_status=$?
cae5b340
AX
35860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
ea04106b 35862
42f7b73b
AX
35863 { $as_echo "$as_me:$LINENO: result: yes" >&5
35864$as_echo "yes" >&6; }
ea04106b 35865
cae5b340 35866cat >>confdefs.h <<\_ACEOF
42f7b73b 35867#define HAVE_BIO_BVEC_ITER 1
cae5b340 35868_ACEOF
ea04106b 35869
ea04106b 35870
68d83c55
AX
35871else
35872 $as_echo "$as_me: failed program was:" >&5
35873sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35874
42f7b73b
AX
35875 { $as_echo "$as_me:$LINENO: result: no" >&5
35876$as_echo "no" >&6; }
ea04106b
AX
35877
35878
68d83c55
AX
35879
35880fi
68d83c55 35881
cae5b340 35882 rm -Rf build
68d83c55
AX
35883
35884
35885
42f7b73b
AX
35886
35887 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
35888$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
68d83c55
AX
35889
35890
35891cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35892/* confdefs.h. */
35893_ACEOF
35894cat confdefs.h >>conftest.$ac_ext
35895cat >>conftest.$ac_ext <<_ACEOF
35896/* end confdefs.h. */
68d83c55
AX
35897
35898
42f7b73b 35899 #include <linux/bio.h>
ea04106b 35900
4d815aed
AX
35901int
35902main (void)
35903{
ea04106b 35904
42f7b73b
AX
35905 int flags __attribute__ ((unused));
35906 flags = ((1 << BIO_RW_FAILFAST_DEV) |
35907 (1 << BIO_RW_FAILFAST_TRANSPORT) |
35908 (1 << BIO_RW_FAILFAST_DRIVER));
ea04106b 35909
4d815aed
AX
35910 ;
35911 return 0;
35912}
ea04106b 35913
4d815aed 35914_ACEOF
ea04106b
AX
35915
35916
35917
4d815aed 35918cat - <<_ACEOF >conftest.h
ea04106b 35919
4d815aed 35920_ACEOF
ea04106b
AX
35921
35922
4d815aed
AX
35923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35924 echo "obj-m := conftest.o" >build/Makefile
35925 modpost_flag=''
35926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 35927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 35928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35929 (eval $ac_try) 2>&5
35930 ac_status=$?
cae5b340
AX
35931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
cae5b340
AX
35936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
ea04106b 35938
cae5b340 35939 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 35940$as_echo "yes" >&6; }
ea04106b 35941
cae5b340 35942cat >>confdefs.h <<\_ACEOF
42f7b73b 35943#define HAVE_BIO_RW_FAILFAST_DTD 1
cae5b340 35944_ACEOF
ea04106b 35945
ea04106b 35946
4d815aed
AX
35947else
35948 $as_echo "$as_me: failed program was:" >&5
35949sed 's/^/| /' conftest.$ac_ext >&5
35950
cae5b340 35951 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 35952$as_echo "no" >&6; }
ea04106b
AX
35953
35954
ea04106b 35955
e10b0808 35956fi
cae5b340 35957
4d815aed 35958 rm -Rf build
ea04106b 35959
ea04106b 35960
ea04106b 35961
ea04106b 35962
42f7b73b
AX
35963 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
35964$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
ea04106b
AX
35965
35966
4d815aed 35967cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35968/* confdefs.h. */
35969_ACEOF
35970cat confdefs.h >>conftest.$ac_ext
35971cat >>conftest.$ac_ext <<_ACEOF
35972/* end confdefs.h. */
ea04106b
AX
35973
35974
42f7b73b 35975 #include <linux/bio.h>
68d83c55 35976 #include <linux/fs.h>
ea04106b 35977
4d815aed
AX
35978int
35979main (void)
35980{
ea04106b 35981
68d83c55 35982 struct block_device *bdev = NULL;
42f7b73b
AX
35983 struct bio *bio = NULL;
35984 bio_set_dev(bio, bdev);
ea04106b 35985
4d815aed
AX
35986 ;
35987 return 0;
35988}
ea04106b 35989
4d815aed 35990_ACEOF
ea04106b 35991
ea04106b 35992
ea04106b 35993
4d815aed 35994cat - <<_ACEOF >conftest.h
ea04106b 35995
4d815aed 35996_ACEOF
ea04106b 35997
ea04106b 35998
4d815aed
AX
35999 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36000 echo "obj-m := conftest.o" >build/Makefile
36001 modpost_flag=''
36002 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36003 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36005 (eval $ac_try) 2>&5
36006 ac_status=$?
cae5b340
AX
36007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36010 (eval $ac_try) 2>&5
36011 ac_status=$?
cae5b340
AX
36012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); }; }; then
ea04106b 36014
cae5b340 36015 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 36016$as_echo "yes" >&6; }
ea04106b 36017
cae5b340 36018cat >>confdefs.h <<\_ACEOF
42f7b73b 36019#define HAVE_BIO_SET_DEV 1
cae5b340 36020_ACEOF
ea04106b 36021
ea04106b 36022
4d815aed
AX
36023else
36024 $as_echo "$as_me: failed program was:" >&5
36025sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36026
cae5b340 36027 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 36028$as_echo "no" >&6; }
ea04106b
AX
36029
36030
ea04106b 36031
4d815aed 36032fi
cae5b340 36033
4d815aed 36034 rm -Rf build
ea04106b
AX
36035
36036
ea04106b
AX
36037
36038
42f7b73b
AX
36039 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
36040$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
ea04106b 36041
ea04106b 36042
4d815aed 36043cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36044/* confdefs.h. */
36045_ACEOF
36046cat confdefs.h >>conftest.$ac_ext
36047cat >>conftest.$ac_ext <<_ACEOF
36048/* end confdefs.h. */
ea04106b 36049
ea04106b 36050
42f7b73b 36051 #include <linux/bio.h>
ea04106b 36052
4d815aed
AX
36053int
36054main (void)
36055{
ea04106b 36056
42f7b73b
AX
36057 int flags __attribute__ ((unused));
36058 flags = REQ_FAILFAST_MASK;
ea04106b 36059
4d815aed
AX
36060 ;
36061 return 0;
36062}
ea04106b 36063
4d815aed 36064_ACEOF
ea04106b
AX
36065
36066
ea04106b 36067
4d815aed 36068cat - <<_ACEOF >conftest.h
ea04106b 36069
4d815aed 36070_ACEOF
ea04106b 36071
ea04106b 36072
4d815aed
AX
36073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36074 echo "obj-m := conftest.o" >build/Makefile
36075 modpost_flag=''
36076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36077 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36079 (eval $ac_try) 2>&5
36080 ac_status=$?
cae5b340
AX
36081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36084 (eval $ac_try) 2>&5
36085 ac_status=$?
cae5b340
AX
36086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); }; }; then
ea04106b 36088
42f7b73b
AX
36089 { $as_echo "$as_me:$LINENO: result: yes" >&5
36090$as_echo "yes" >&6; }
ea04106b 36091
42f7b73b
AX
36092cat >>confdefs.h <<\_ACEOF
36093#define HAVE_REQ_FAILFAST_MASK 1
36094_ACEOF
68d83c55 36095
68d83c55 36096
42f7b73b
AX
36097else
36098 $as_echo "$as_me: failed program was:" >&5
36099sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 36100
cae5b340 36101 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
36102$as_echo "no" >&6; }
36103
68d83c55 36104
68d83c55 36105
42f7b73b 36106fi
68d83c55 36107
42f7b73b 36108 rm -Rf build
68d83c55 36109
68d83c55
AX
36110
36111
68d83c55 36112
42f7b73b
AX
36113 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
36114$as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
ea04106b 36115
ea04106b 36116
4d815aed 36117cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36118/* confdefs.h. */
36119_ACEOF
36120cat confdefs.h >>conftest.$ac_ext
36121cat >>conftest.$ac_ext <<_ACEOF
36122/* end confdefs.h. */
ea04106b 36123
ea04106b 36124
42f7b73b 36125 #include <linux/blk_types.h>
ea04106b 36126
4d815aed
AX
36127int
36128main (void)
36129{
ea04106b 36130
42f7b73b 36131 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
ea04106b 36132
4d815aed
AX
36133 ;
36134 return 0;
36135}
ea04106b 36136
4d815aed 36137_ACEOF
ea04106b
AX
36138
36139
ea04106b 36140
4d815aed 36141cat - <<_ACEOF >conftest.h
ea04106b 36142
4d815aed 36143_ACEOF
ea04106b 36144
ea04106b 36145
4d815aed
AX
36146 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36147 echo "obj-m := conftest.o" >build/Makefile
36148 modpost_flag=''
36149 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36150 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36152 (eval $ac_try) 2>&5
36153 ac_status=$?
cae5b340
AX
36154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36155 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36157 (eval $ac_try) 2>&5
36158 ac_status=$?
cae5b340
AX
36159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; }; then
ea04106b 36161
42f7b73b
AX
36162 { $as_echo "$as_me:$LINENO: result: yes" >&5
36163$as_echo "yes" >&6; }
ea04106b 36164
42f7b73b
AX
36165cat >>confdefs.h <<\_ACEOF
36166#define HAVE_REQ_OP_DISCARD 1
36167_ACEOF
ea04106b 36168
ea04106b 36169
42f7b73b
AX
36170else
36171 $as_echo "$as_me: failed program was:" >&5
36172sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36173
cae5b340 36174 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 36175$as_echo "no" >&6; }
ea04106b
AX
36176
36177
ea04106b 36178
42f7b73b 36179fi
ea04106b 36180
42f7b73b 36181 rm -Rf build
87dac73d
AX
36182
36183
36184
36185
42f7b73b
AX
36186 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
36187$as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
87dac73d
AX
36188
36189
36190cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36191/* confdefs.h. */
36192_ACEOF
36193cat confdefs.h >>conftest.$ac_ext
36194cat >>conftest.$ac_ext <<_ACEOF
36195/* end confdefs.h. */
87dac73d
AX
36196
36197
42f7b73b 36198 #include <linux/blk_types.h>
87dac73d
AX
36199
36200int
36201main (void)
36202{
36203
42f7b73b 36204 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
87dac73d
AX
36205
36206 ;
36207 return 0;
36208}
36209
36210_ACEOF
36211
36212
36213
36214cat - <<_ACEOF >conftest.h
36215
36216_ACEOF
36217
36218
36219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36220 echo "obj-m := conftest.o" >build/Makefile
36221 modpost_flag=''
36222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
36225 (eval $ac_try) 2>&5
36226 ac_status=$?
cae5b340
AX
36227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
36230 (eval $ac_try) 2>&5
36231 ac_status=$?
cae5b340
AX
36232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; }; then
42f7b73b
AX
36234
36235 { $as_echo "$as_me:$LINENO: result: yes" >&5
36236$as_echo "yes" >&6; }
36237
36238cat >>confdefs.h <<\_ACEOF
36239#define HAVE_REQ_OP_SECURE_ERASE 1
36240_ACEOF
36241
36242
87dac73d
AX
36243else
36244 $as_echo "$as_me: failed program was:" >&5
36245sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
36246
36247 { $as_echo "$as_me:$LINENO: result: no" >&5
36248$as_echo "no" >&6; }
36249
87dac73d
AX
36250
36251
e10b0808 36252fi
cae5b340 36253
4d815aed 36254 rm -Rf build
ea04106b 36255
ea04106b
AX
36256
36257
ea04106b 36258
42f7b73b
AX
36259 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
36260$as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
ea04106b 36261
ea04106b 36262
4d815aed 36263cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36264/* confdefs.h. */
36265_ACEOF
36266cat confdefs.h >>conftest.$ac_ext
36267cat >>conftest.$ac_ext <<_ACEOF
36268/* end confdefs.h. */
ea04106b 36269
ea04106b 36270
42f7b73b 36271 #include <linux/blk_types.h>
ea04106b 36272
4d815aed
AX
36273int
36274main (void)
36275{
ea04106b 36276
42f7b73b 36277 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b 36278
4d815aed
AX
36279 ;
36280 return 0;
36281}
ea04106b 36282
4d815aed 36283_ACEOF
ea04106b 36284
ea04106b
AX
36285
36286
4d815aed 36287cat - <<_ACEOF >conftest.h
ea04106b 36288
4d815aed 36289_ACEOF
ea04106b
AX
36290
36291
4d815aed
AX
36292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36293 echo "obj-m := conftest.o" >build/Makefile
36294 modpost_flag=''
36295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36296 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36298 (eval $ac_try) 2>&5
36299 ac_status=$?
cae5b340
AX
36300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36303 (eval $ac_try) 2>&5
36304 ac_status=$?
cae5b340
AX
36305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; }; then
ea04106b 36307
42f7b73b
AX
36308 { $as_echo "$as_me:$LINENO: result: yes" >&5
36309$as_echo "yes" >&6; }
ea04106b 36310
42f7b73b
AX
36311cat >>confdefs.h <<\_ACEOF
36312#define HAVE_REQ_OP_FLUSH 1
36313_ACEOF
ea04106b 36314
ea04106b 36315
42f7b73b
AX
36316else
36317 $as_echo "$as_me: failed program was:" >&5
36318sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36319
42f7b73b 36320 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 36321$as_echo "no" >&6; }
ea04106b 36322
ea04106b 36323
ea04106b 36324
42f7b73b 36325fi
ea04106b 36326
42f7b73b 36327 rm -Rf build
ea04106b 36328
ea04106b 36329
68d83c55 36330
68d83c55 36331
42f7b73b
AX
36332 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
36333$as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
68d83c55
AX
36334
36335
36336cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36337/* confdefs.h. */
36338_ACEOF
36339cat confdefs.h >>conftest.$ac_ext
36340cat >>conftest.$ac_ext <<_ACEOF
36341/* end confdefs.h. */
68d83c55
AX
36342
36343
42f7b73b 36344 #include <linux/bio.h>
ea04106b 36345
4d815aed
AX
36346int
36347main (void)
36348{
ea04106b 36349
42f7b73b
AX
36350 struct bio bio __attribute__ ((unused));
36351 bio.bi_opf = 0;
ea04106b 36352
4d815aed
AX
36353 ;
36354 return 0;
36355}
ea04106b 36356
4d815aed 36357_ACEOF
ea04106b 36358
e10b0808 36359
e10b0808 36360
4d815aed 36361cat - <<_ACEOF >conftest.h
e10b0808 36362
4d815aed 36363_ACEOF
e10b0808 36364
e10b0808 36365
4d815aed
AX
36366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36367 echo "obj-m := conftest.o" >build/Makefile
36368 modpost_flag=''
36369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36372 (eval $ac_try) 2>&5
36373 ac_status=$?
cae5b340
AX
36374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36377 (eval $ac_try) 2>&5
36378 ac_status=$?
cae5b340
AX
36379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); }; }; then
42f7b73b
AX
36381
36382 { $as_echo "$as_me:$LINENO: result: yes" >&5
36383$as_echo "yes" >&6; }
36384
36385cat >>confdefs.h <<\_ACEOF
36386#define HAVE_BIO_BI_OPF 1
36387_ACEOF
36388
36389
68d83c55
AX
36390else
36391 $as_echo "$as_me: failed program was:" >&5
36392sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
36393
36394 { $as_echo "$as_me:$LINENO: result: no" >&5
36395$as_echo "no" >&6; }
36396
e10b0808 36397
e10b0808 36398
68d83c55 36399fi
cae5b340 36400
68d83c55 36401 rm -Rf build
ea04106b 36402
ea04106b 36403
ea04106b 36404
ea04106b 36405
42f7b73b
AX
36406 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
36407$as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
ea04106b
AX
36408
36409
42f7b73b
AX
36410cat confdefs.h - <<_ACEOF >conftest.c
36411/* confdefs.h. */
36412_ACEOF
36413cat confdefs.h >>conftest.$ac_ext
36414cat >>conftest.$ac_ext <<_ACEOF
36415/* end confdefs.h. */
ea04106b
AX
36416
36417
42f7b73b 36418 #include <linux/bio.h>
ea04106b 36419
42f7b73b
AX
36420 void wanted_end_io(struct bio *bio) { return; }
36421
36422 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
36423
36424int
36425main (void)
36426{
36427
36428
36429 ;
36430 return 0;
36431}
68d83c55 36432
cae5b340 36433_ACEOF
68d83c55
AX
36434
36435
68d83c55 36436
42f7b73b
AX
36437cat - <<_ACEOF >conftest.h
36438
36439_ACEOF
68d83c55 36440
42f7b73b
AX
36441
36442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36443 echo "obj-m := conftest.o" >build/Makefile
36444 modpost_flag=''
36445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36449 ac_status=$?
36450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; }; then
68d83c55 36457
cae5b340 36458 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
36459$as_echo "yes" >&6; }
36460
cae5b340 36461cat >>confdefs.h <<\_ACEOF
42f7b73b 36462#define HAVE_1ARG_BIO_END_IO_T 1
cae5b340 36463_ACEOF
68d83c55
AX
36464
36465
42f7b73b
AX
36466else
36467 $as_echo "$as_me: failed program was:" >&5
36468sed 's/^/| /' conftest.$ac_ext >&5
36469
36470 { $as_echo "$as_me:$LINENO: result: no" >&5
36471$as_echo "no" >&6; }
68d83c55
AX
36472
36473
36474
42f7b73b
AX
36475fi
36476
36477 rm -Rf build
36478
36479
36480
36481
36482 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
36483$as_echo_n "checking whether bio->bi_status exists... " >&6; }
ea04106b
AX
36484
36485
36486cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36487/* confdefs.h. */
36488_ACEOF
36489cat confdefs.h >>conftest.$ac_ext
36490cat >>conftest.$ac_ext <<_ACEOF
36491/* end confdefs.h. */
ea04106b
AX
36492
36493
42f7b73b 36494 #include <linux/bio.h>
4d815aed 36495
ea04106b
AX
36496int
36497main (void)
36498{
36499
42f7b73b
AX
36500 struct bio bio __attribute__ ((unused));
36501 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
36502
36503 bio.bi_status = status;
4d815aed 36504
ea04106b
AX
36505 ;
36506 return 0;
36507}
36508
36509_ACEOF
36510
36511
36512
36513cat - <<_ACEOF >conftest.h
36514
36515_ACEOF
36516
36517
36518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36519 echo "obj-m := conftest.o" >build/Makefile
36520 modpost_flag=''
36521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36522 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36525 ac_status=$?
36526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36530 ac_status=$?
36531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; }; then
36533
36534 { $as_echo "$as_me:$LINENO: result: yes" >&5
36535$as_echo "yes" >&6; }
36536
36537cat >>confdefs.h <<\_ACEOF
42f7b73b 36538#define HAVE_BIO_BI_STATUS 1
cae5b340
AX
36539_ACEOF
36540
36541
36542else
36543 $as_echo "$as_me: failed program was:" >&5
36544sed 's/^/| /' conftest.$ac_ext >&5
36545
36546 { $as_echo "$as_me:$LINENO: result: no" >&5
36547$as_echo "no" >&6; }
36548
36549
36550
36551fi
36552
36553 rm -Rf build
36554
36555
36556
36557
42f7b73b
AX
36558 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
36559$as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
cae5b340
AX
36560
36561
36562cat confdefs.h - <<_ACEOF >conftest.c
36563/* confdefs.h. */
36564_ACEOF
36565cat confdefs.h >>conftest.$ac_ext
36566cat >>conftest.$ac_ext <<_ACEOF
36567/* end confdefs.h. */
36568
36569
42f7b73b 36570 #include <linux/bio.h>
cae5b340
AX
36571
36572int
36573main (void)
36574{
36575
42f7b73b
AX
36576 int flags __attribute__ ((unused));
36577 flags = BIO_RW_BARRIER;
cae5b340
AX
36578
36579 ;
36580 return 0;
36581}
36582
36583_ACEOF
36584
36585
36586
36587cat - <<_ACEOF >conftest.h
36588
36589_ACEOF
36590
36591
36592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36593 echo "obj-m := conftest.o" >build/Makefile
36594 modpost_flag=''
36595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36596 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
36597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36598 (eval $ac_try) 2>&5
36599 ac_status=$?
36600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36603 (eval $ac_try) 2>&5
36604 ac_status=$?
36605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); }; }; then
36607
36608 { $as_echo "$as_me:$LINENO: result: yes" >&5
36609$as_echo "yes" >&6; }
36610
36611cat >>confdefs.h <<\_ACEOF
42f7b73b 36612#define HAVE_BIO_RW_BARRIER 1
cae5b340
AX
36613_ACEOF
36614
36615
36616else
36617 $as_echo "$as_me: failed program was:" >&5
36618sed 's/^/| /' conftest.$ac_ext >&5
36619
36620 { $as_echo "$as_me:$LINENO: result: no" >&5
36621$as_echo "no" >&6; }
36622
36623
36624
36625fi
36626
36627 rm -Rf build
36628
36629
cae5b340
AX
36630
36631
42f7b73b
AX
36632 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
36633$as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
cae5b340
AX
36634
36635
36636cat confdefs.h - <<_ACEOF >conftest.c
36637/* confdefs.h. */
36638_ACEOF
36639cat confdefs.h >>conftest.$ac_ext
36640cat >>conftest.$ac_ext <<_ACEOF
36641/* end confdefs.h. */
36642
36643
42f7b73b 36644 #include <linux/bio.h>
cae5b340
AX
36645
36646int
36647main (void)
36648{
36649
42f7b73b
AX
36650 int flags __attribute__ ((unused));
36651 flags = BIO_RW_DISCARD;
cae5b340
AX
36652
36653 ;
36654 return 0;
36655}
36656
36657_ACEOF
36658
36659
36660
36661cat - <<_ACEOF >conftest.h
36662
36663_ACEOF
36664
36665
36666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36667 echo "obj-m := conftest.o" >build/Makefile
36668 modpost_flag=''
36669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36670 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
36671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672 (eval $ac_try) 2>&5
36673 ac_status=$?
36674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36677 (eval $ac_try) 2>&5
36678 ac_status=$?
36679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); }; }; then
36681
36682 { $as_echo "$as_me:$LINENO: result: yes" >&5
36683$as_echo "yes" >&6; }
36684
36685cat >>confdefs.h <<\_ACEOF
42f7b73b 36686#define HAVE_BIO_RW_DISCARD 1
cae5b340
AX
36687_ACEOF
36688
36689
36690else
36691 $as_echo "$as_me: failed program was:" >&5
36692sed 's/^/| /' conftest.$ac_ext >&5
36693
36694 { $as_echo "$as_me:$LINENO: result: no" >&5
36695$as_echo "no" >&6; }
36696
36697
36698
36699fi
36700
36701 rm -Rf build
36702
36703
cae5b340
AX
36704
36705
42f7b73b
AX
36706 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
36707$as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
cae5b340
AX
36708
36709
36710cat confdefs.h - <<_ACEOF >conftest.c
36711/* confdefs.h. */
36712_ACEOF
36713cat confdefs.h >>conftest.$ac_ext
36714cat >>conftest.$ac_ext <<_ACEOF
36715/* end confdefs.h. */
36716
36717
42f7b73b 36718 #include <linux/blkdev.h>
cae5b340
AX
36719
36720int
36721main (void)
36722{
36723
42f7b73b
AX
36724 struct request_queue q;
36725 struct backing_dev_info bdi;
36726 q.backing_dev_info = &bdi;
cae5b340
AX
36727
36728 ;
36729 return 0;
36730}
36731
36732_ACEOF
36733
36734
36735
36736cat - <<_ACEOF >conftest.h
36737
36738_ACEOF
36739
36740
36741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36742 echo "obj-m := conftest.o" >build/Makefile
36743 modpost_flag=''
36744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36745 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
36746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36747 (eval $ac_try) 2>&5
36748 ac_status=$?
36749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756
36757 { $as_echo "$as_me:$LINENO: result: yes" >&5
36758$as_echo "yes" >&6; }
36759
36760cat >>confdefs.h <<\_ACEOF
42f7b73b 36761#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
cae5b340
AX
36762_ACEOF
36763
36764
36765else
36766 $as_echo "$as_me: failed program was:" >&5
36767sed 's/^/| /' conftest.$ac_ext >&5
36768
36769 { $as_echo "$as_me:$LINENO: result: no" >&5
36770$as_echo "no" >&6; }
36771
36772
36773
36774fi
36775
36776 rm -Rf build
36777
36778
36779
36780
42f7b73b
AX
36781 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
36782$as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
cae5b340
AX
36783
36784
36785cat confdefs.h - <<_ACEOF >conftest.c
36786/* confdefs.h. */
36787_ACEOF
36788cat confdefs.h >>conftest.$ac_ext
36789cat >>conftest.$ac_ext <<_ACEOF
36790/* end confdefs.h. */
36791
36792
42f7b73b
AX
36793 #include <linux/kernel.h>
36794 #include <linux/blkdev.h>
cae5b340
AX
36795
36796int
36797main (void)
36798{
36799
42f7b73b
AX
36800 struct request_queue *q = NULL;
36801 blk_queue_flag_clear(0, q);
cae5b340
AX
36802
36803 ;
36804 return 0;
36805}
36806
36807_ACEOF
36808
36809
36810
36811cat - <<_ACEOF >conftest.h
36812
36813_ACEOF
36814
36815
36816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36817 echo "obj-m := conftest.o" >build/Makefile
36818 modpost_flag=''
36819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36820 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36822 (eval $ac_try) 2>&5
36823 ac_status=$?
cae5b340
AX
36824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36827 (eval $ac_try) 2>&5
36828 ac_status=$?
cae5b340
AX
36829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); }; }; then
ea04106b 36831
42f7b73b 36832
cae5b340 36833 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36834$as_echo "yes" >&6; }
36835
cae5b340 36836cat >>confdefs.h <<\_ACEOF
42f7b73b 36837#define HAVE_BLK_QUEUE_FLAG_CLEAR 1
e10b0808 36838_ACEOF
e10b0808
AX
36839
36840
4d815aed
AX
36841else
36842 $as_echo "$as_me: failed program was:" >&5
36843sed 's/^/| /' conftest.$ac_ext >&5
36844
cae5b340 36845 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 36846$as_echo "no" >&6; }
e10b0808 36847
e10b0808
AX
36848
36849
94a40997 36850fi
cae5b340 36851
4d815aed 36852 rm -Rf build
94a40997 36853
e10b0808
AX
36854
36855
4d815aed 36856
42f7b73b
AX
36857 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
36858$as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
ea04106b
AX
36859
36860
36861cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36862/* confdefs.h. */
36863_ACEOF
36864cat confdefs.h >>conftest.$ac_ext
36865cat >>conftest.$ac_ext <<_ACEOF
36866/* end confdefs.h. */
ea04106b
AX
36867
36868
42f7b73b
AX
36869 #include <linux/kernel.h>
36870 #include <linux/blkdev.h>
ea04106b
AX
36871
36872int
36873main (void)
36874{
36875
42f7b73b
AX
36876 struct request_queue *q = NULL;
36877 blk_queue_flag_set(0, q);
ea04106b
AX
36878
36879 ;
36880 return 0;
36881}
36882
36883_ACEOF
36884
36885
36886
36887cat - <<_ACEOF >conftest.h
36888
36889_ACEOF
36890
36891
36892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36893 echo "obj-m := conftest.o" >build/Makefile
36894 modpost_flag=''
36895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36896 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36898 (eval $ac_try) 2>&5
36899 ac_status=$?
cae5b340
AX
36900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36903 (eval $ac_try) 2>&5
36904 ac_status=$?
cae5b340
AX
36905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); }; }; then
ea04106b 36907
cae5b340 36908 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36909$as_echo "yes" >&6; }
36910
cae5b340 36911cat >>confdefs.h <<\_ACEOF
42f7b73b 36912#define HAVE_BLK_QUEUE_FLAG_SET 1
cae5b340 36913_ACEOF
ea04106b
AX
36914
36915
4d815aed
AX
36916else
36917 $as_echo "$as_me: failed program was:" >&5
36918sed 's/^/| /' conftest.$ac_ext >&5
36919
cae5b340 36920 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 36921$as_echo "no" >&6; }
ea04106b
AX
36922
36923
e10b0808 36924
4d815aed 36925fi
cae5b340 36926
4d815aed
AX
36927 rm -Rf build
36928
36929
36930
4d815aed 36931
42f7b73b
AX
36932 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
36933$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
36934 tmp_flags="$EXTRA_KCFLAGS"
36935 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed
AX
36936
36937
36938cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36939/* confdefs.h. */
36940_ACEOF
36941cat confdefs.h >>conftest.$ac_ext
36942cat >>conftest.$ac_ext <<_ACEOF
36943/* end confdefs.h. */
4d815aed
AX
36944
36945
42f7b73b 36946 #include <linux/blkdev.h>
ea04106b
AX
36947
36948int
36949main (void)
36950{
36951
42f7b73b
AX
36952 struct request_queue *q = NULL;
36953 (void) blk_queue_flush(q, REQ_FLUSH);
ea04106b
AX
36954
36955 ;
36956 return 0;
36957}
36958
36959_ACEOF
36960
36961
36962
36963cat - <<_ACEOF >conftest.h
36964
36965_ACEOF
36966
36967
36968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36969 echo "obj-m := conftest.o" >build/Makefile
36970 modpost_flag=''
36971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 36972 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
cae5b340
AX
36976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36979 (eval $ac_try) 2>&5
36980 ac_status=$?
cae5b340
AX
36981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); }; }; then
e10b0808 36983
cae5b340 36984 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 36985$as_echo "yes" >&6; }
ea04106b 36986
cae5b340 36987cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
36988#define HAVE_BLK_QUEUE_FLUSH 1
36989_ACEOF
36990
36991
36992 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
36993$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
36994
36995
36996cat confdefs.h - <<_ACEOF >conftest.c
36997/* confdefs.h. */
cae5b340 36998_ACEOF
42f7b73b
AX
36999cat confdefs.h >>conftest.$ac_ext
37000cat >>conftest.$ac_ext <<_ACEOF
37001/* end confdefs.h. */
37002
37003
37004 #include <linux/module.h>
37005 #include <linux/blkdev.h>
37006
37007 MODULE_LICENSE("$ZFS_META_LICENSE");
37008
37009int
37010main (void)
37011{
37012
37013 struct request_queue *q = NULL;
37014 (void) blk_queue_flush(q, REQ_FLUSH);
37015
37016 ;
37017 return 0;
37018}
37019
37020_ACEOF
37021
37022
37023
37024cat - <<_ACEOF >conftest.h
37025
37026_ACEOF
37027
37028
37029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37030 echo "obj-m := conftest.o" >build/Makefile
37031 modpost_flag=''
37032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37033 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035 (eval $ac_try) 2>&5
37036 ac_status=$?
37037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37041 ac_status=$?
37042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; }; then
37044
37045 { $as_echo "$as_me:$LINENO: result: no" >&5
37046$as_echo "no" >&6; }
37047
37048else
37049 $as_echo "$as_me: failed program was:" >&5
37050sed 's/^/| /' conftest.$ac_ext >&5
37051
37052 { $as_echo "$as_me:$LINENO: result: yes" >&5
37053$as_echo "yes" >&6; }
37054
37055cat >>confdefs.h <<\_ACEOF
37056#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
37057_ACEOF
37058
37059
37060
37061
37062fi
37063
37064 rm -Rf build
37065
4d815aed 37066
ea04106b 37067
68d83c55
AX
37068else
37069 $as_echo "$as_me: failed program was:" >&5
37070sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 37071
cae5b340 37072 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
37073$as_echo "no" >&6; }
37074
ea04106b 37075
ea04106b 37076
68d83c55 37077fi
cae5b340 37078
68d83c55 37079 rm -Rf build
ea04106b 37080
e10b0808
AX
37081
37082
42f7b73b
AX
37083 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
37084$as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
ea04106b
AX
37085
37086
37087cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37088/* confdefs.h. */
37089_ACEOF
37090cat confdefs.h >>conftest.$ac_ext
37091cat >>conftest.$ac_ext <<_ACEOF
37092/* end confdefs.h. */
ea04106b
AX
37093
37094
42f7b73b
AX
37095 #include <linux/kernel.h>
37096 #include <linux/blkdev.h>
37097
ea04106b
AX
37098
37099int
37100main (void)
37101{
37102
42f7b73b
AX
37103 struct request_queue *q = NULL;
37104 blk_queue_write_cache(q, true, true);
ea04106b
AX
37105
37106 ;
37107 return 0;
37108}
37109
37110_ACEOF
37111
37112
37113
37114cat - <<_ACEOF >conftest.h
37115
37116_ACEOF
37117
37118
37119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37120 echo "obj-m := conftest.o" >build/Makefile
37121 modpost_flag=''
37122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37125 (eval $ac_try) 2>&5
37126 ac_status=$?
cae5b340
AX
37127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37130 (eval $ac_try) 2>&5
37131 ac_status=$?
cae5b340
AX
37132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); }; }; then
ea04106b 37134
cae5b340 37135 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 37136$as_echo "yes" >&6; }
ea04106b 37137
cae5b340 37138cat >>confdefs.h <<\_ACEOF
42f7b73b 37139#define HAVE_BLK_QUEUE_WRITE_CACHE 1
cae5b340 37140_ACEOF
4d815aed 37141
4d815aed 37142
42f7b73b
AX
37143 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
37144$as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
ea04106b
AX
37145
37146
37147cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37148/* confdefs.h. */
37149_ACEOF
37150cat confdefs.h >>conftest.$ac_ext
37151cat >>conftest.$ac_ext <<_ACEOF
37152/* end confdefs.h. */
ea04106b
AX
37153
37154
42f7b73b
AX
37155 #include <linux/kernel.h>
37156 #include <linux/module.h>
37157 #include <linux/blkdev.h>
37158
37159 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
37160
37161int
37162main (void)
37163{
37164
42f7b73b
AX
37165 struct request_queue *q = NULL;
37166 blk_queue_write_cache(q, true, true);
ea04106b
AX
37167
37168 ;
37169 return 0;
37170}
37171
37172_ACEOF
37173
37174
37175
37176cat - <<_ACEOF >conftest.h
37177
37178_ACEOF
37179
37180
37181 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37182 echo "obj-m := conftest.o" >build/Makefile
37183 modpost_flag=''
37184 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37185 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37187 (eval $ac_try) 2>&5
37188 ac_status=$?
cae5b340
AX
37189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37192 (eval $ac_try) 2>&5
37193 ac_status=$?
cae5b340
AX
37194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195 (exit $ac_status); }; }; then
ea04106b 37196
42f7b73b
AX
37197 { $as_echo "$as_me:$LINENO: result: no" >&5
37198$as_echo "no" >&6; }
37199
37200else
37201 $as_echo "$as_me: failed program was:" >&5
37202sed 's/^/| /' conftest.$ac_ext >&5
37203
37204 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 37205$as_echo "yes" >&6; }
4d815aed 37206
cae5b340 37207cat >>confdefs.h <<\_ACEOF
42f7b73b 37208#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
cae5b340 37209_ACEOF
4d815aed 37210
4d815aed 37211
42f7b73b
AX
37212
37213
37214fi
37215
37216 rm -Rf build
37217
37218
37219
68d83c55
AX
37220else
37221 $as_echo "$as_me: failed program was:" >&5
37222sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 37223
cae5b340 37224 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
37225$as_echo "no" >&6; }
37226
4d815aed 37227
4d815aed 37228
68d83c55 37229fi
cae5b340 37230
68d83c55 37231 rm -Rf build
4d815aed 37232
4d815aed
AX
37233
37234
42f7b73b 37235 EXTRA_KCFLAGS="$tmp_flags"
4d815aed 37236
42f7b73b
AX
37237
37238 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
37239$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
37240 tmp_flags="$EXTRA_KCFLAGS"
37241 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
37242
37243
37244cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37245/* confdefs.h. */
37246_ACEOF
37247cat confdefs.h >>conftest.$ac_ext
37248cat >>conftest.$ac_ext <<_ACEOF
37249/* end confdefs.h. */
ea04106b
AX
37250
37251
42f7b73b 37252 #include <linux/blkdev.h>
ea04106b
AX
37253
37254int
37255main (void)
37256{
37257
42f7b73b
AX
37258 struct request_queue *q = NULL;
37259 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
ea04106b
AX
37260
37261 ;
37262 return 0;
37263}
37264
37265_ACEOF
37266
37267
37268
37269cat - <<_ACEOF >conftest.h
37270
37271_ACEOF
37272
37273
37274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37275 echo "obj-m := conftest.o" >build/Makefile
37276 modpost_flag=''
37277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37278 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37280 (eval $ac_try) 2>&5
37281 ac_status=$?
cae5b340
AX
37282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
cae5b340
AX
37287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; }; then
ea04106b 37289
cae5b340 37290 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37291$as_echo "yes" >&6; }
37292
cae5b340 37293cat >>confdefs.h <<\_ACEOF
42f7b73b 37294#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
cae5b340 37295_ACEOF
ea04106b
AX
37296
37297
37298else
37299 $as_echo "$as_me: failed program was:" >&5
37300sed 's/^/| /' conftest.$ac_ext >&5
37301
cae5b340 37302 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37303$as_echo "no" >&6; }
ea04106b
AX
37304
37305
e10b0808
AX
37306
37307fi
cae5b340 37308
e10b0808
AX
37309 rm -Rf build
37310
37311
42f7b73b 37312 EXTRA_KCFLAGS="$tmp_flags"
e10b0808
AX
37313
37314
42f7b73b
AX
37315 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
37316$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
37317 tmp_flags="$EXTRA_KCFLAGS"
37318 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
37319
37320
37321cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37322/* confdefs.h. */
37323_ACEOF
37324cat confdefs.h >>conftest.$ac_ext
37325cat >>conftest.$ac_ext <<_ACEOF
37326/* end confdefs.h. */
ea04106b
AX
37327
37328
42f7b73b 37329 #include <linux/blkdev.h>
e10b0808 37330
ea04106b
AX
37331int
37332main (void)
37333{
37334
42f7b73b
AX
37335 struct request_queue *q = NULL;
37336 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
ea04106b
AX
37337
37338 ;
37339 return 0;
37340}
37341
37342_ACEOF
37343
37344
37345
37346cat - <<_ACEOF >conftest.h
37347
37348_ACEOF
37349
37350
37351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37352 echo "obj-m := conftest.o" >build/Makefile
37353 modpost_flag=''
37354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37355 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37357 (eval $ac_try) 2>&5
37358 ac_status=$?
cae5b340
AX
37359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37362 (eval $ac_try) 2>&5
37363 ac_status=$?
cae5b340
AX
37364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365 (exit $ac_status); }; }; then
ea04106b 37366
cae5b340 37367 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 37368$as_echo "yes" >&6; }
ea04106b 37369
cae5b340 37370cat >>confdefs.h <<\_ACEOF
42f7b73b 37371#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
cae5b340 37372_ACEOF
ea04106b
AX
37373
37374
37375else
37376 $as_echo "$as_me: failed program was:" >&5
37377sed 's/^/| /' conftest.$ac_ext >&5
37378
cae5b340 37379 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37380$as_echo "no" >&6; }
ea04106b
AX
37381
37382
37383
37384fi
cae5b340 37385
ea04106b
AX
37386 rm -Rf build
37387
37388
42f7b73b 37389 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
37390
37391
42f7b73b
AX
37392 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
37393$as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
37394 tmp_flags="$EXTRA_KCFLAGS"
37395 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
37396
37397
37398cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37399/* confdefs.h. */
37400_ACEOF
37401cat confdefs.h >>conftest.$ac_ext
37402cat >>conftest.$ac_ext <<_ACEOF
37403/* end confdefs.h. */
ea04106b
AX
37404
37405
42f7b73b 37406 #include <linux/blkdev.h>
ea04106b 37407
ea04106b
AX
37408int
37409main (void)
37410{
37411
42f7b73b
AX
37412 extern enum bio_rw_flags rw;
37413
37414 rw = BIO_RW_UNPLUG;
ea04106b
AX
37415
37416 ;
37417 return 0;
37418}
37419
37420_ACEOF
37421
37422
37423
37424cat - <<_ACEOF >conftest.h
37425
37426_ACEOF
37427
37428
37429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37430 echo "obj-m := conftest.o" >build/Makefile
37431 modpost_flag=''
37432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37433 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37435 (eval $ac_try) 2>&5
37436 ac_status=$?
cae5b340
AX
37437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37440 (eval $ac_try) 2>&5
37441 ac_status=$?
cae5b340
AX
37442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; }; then
ea04106b 37444
cae5b340 37445 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 37446$as_echo "yes" >&6; }
ea04106b 37447
cae5b340 37448cat >>confdefs.h <<\_ACEOF
42f7b73b 37449#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
cae5b340 37450_ACEOF
87dac73d
AX
37451
37452
37453else
37454 $as_echo "$as_me: failed program was:" >&5
37455sed 's/^/| /' conftest.$ac_ext >&5
37456
cae5b340 37457 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
37458$as_echo "no" >&6; }
37459
37460
37461
37462fi
cae5b340 37463
87dac73d
AX
37464 rm -Rf build
37465
37466
42f7b73b 37467 EXTRA_KCFLAGS="$tmp_flags"
87dac73d
AX
37468
37469
42f7b73b
AX
37470 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
37471$as_echo_n "checking whether struct blk_plug is available... " >&6; }
37472 tmp_flags="$EXTRA_KCFLAGS"
37473 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
87dac73d
AX
37474
37475
37476cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37477/* confdefs.h. */
37478_ACEOF
37479cat confdefs.h >>conftest.$ac_ext
37480cat >>conftest.$ac_ext <<_ACEOF
37481/* end confdefs.h. */
87dac73d
AX
37482
37483
42f7b73b 37484 #include <linux/blkdev.h>
87dac73d
AX
37485
37486int
37487main (void)
37488{
37489
42f7b73b 37490 struct blk_plug plug;
cae5b340 37491
42f7b73b
AX
37492 blk_start_plug(&plug);
37493 blk_finish_plug(&plug);
87dac73d
AX
37494
37495 ;
37496 return 0;
37497}
37498
37499_ACEOF
37500
37501
37502
37503cat - <<_ACEOF >conftest.h
37504
37505_ACEOF
37506
37507
37508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37509 echo "obj-m := conftest.o" >build/Makefile
37510 modpost_flag=''
37511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37512 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37514 (eval $ac_try) 2>&5
37515 ac_status=$?
cae5b340
AX
37516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37519 (eval $ac_try) 2>&5
37520 ac_status=$?
cae5b340
AX
37521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522 (exit $ac_status); }; }; then
87dac73d 37523
cae5b340 37524 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
37525$as_echo "yes" >&6; }
37526
cae5b340 37527cat >>confdefs.h <<\_ACEOF
42f7b73b 37528#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
cae5b340 37529_ACEOF
87dac73d
AX
37530
37531
37532else
37533 $as_echo "$as_me: failed program was:" >&5
37534sed 's/^/| /' conftest.$ac_ext >&5
37535
cae5b340 37536 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
37537$as_echo "no" >&6; }
37538
37539
37540
37541fi
cae5b340 37542
87dac73d
AX
37543 rm -Rf build
37544
37545
42f7b73b 37546 EXTRA_KCFLAGS="$tmp_flags"
87dac73d 37547
42f7b73b
AX
37548 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
37549$as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
87dac73d 37550
87dac73d
AX
37551
37552
37553cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37554/* confdefs.h. */
37555_ACEOF
37556cat confdefs.h >>conftest.$ac_ext
37557cat >>conftest.$ac_ext <<_ACEOF
37558/* end confdefs.h. */
87dac73d
AX
37559
37560
42f7b73b 37561 #include <linux/genhd.h>
87dac73d
AX
37562
37563int
37564main (void)
37565{
37566
42f7b73b
AX
37567 struct gendisk *disk = NULL;
37568 (void) get_disk_and_module(disk);
87dac73d
AX
37569
37570 ;
37571 return 0;
37572}
37573
37574_ACEOF
37575
37576
37577
37578cat - <<_ACEOF >conftest.h
37579
37580_ACEOF
37581
37582
37583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37584 echo "obj-m := conftest.o" >build/Makefile
37585 modpost_flag=''
37586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37587 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37589 (eval $ac_try) 2>&5
37590 ac_status=$?
cae5b340
AX
37591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37594 (eval $ac_try) 2>&5
37595 ac_status=$?
cae5b340
AX
37596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); }; }; then
42f7b73b
AX
37598 rc=0
37599else
37600 $as_echo "$as_me: failed program was:" >&5
37601sed 's/^/| /' conftest.$ac_ext >&5
37602 rc=1
87dac73d 37603
87dac73d 37604
42f7b73b 37605fi
ea04106b 37606
42f7b73b 37607 rm -Rf build
ea04106b 37608
42f7b73b
AX
37609
37610 if test $rc -ne 0; then :
ea04106b 37611
cae5b340 37612 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37613$as_echo "no" >&6; }
ea04106b 37614
42f7b73b
AX
37615 else
37616 if test "x$enable_linux_builtin" != xyes; then
ea04106b 37617
42f7b73b
AX
37618 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
37619 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37620 rc=$?
37621 if test $rc -ne 0; then
37622 export=0
37623 for file in block/genhd.c; do
37624 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
37625 "$LINUX/$file" 2>/dev/null
37626 rc=$?
37627 if test $rc -eq 0; then
37628 export=1
37629 break;
37630 fi
37631 done
37632 if test $export -eq 0; then :
37633 rc=1
37634 else :
37635 rc=0
37636 fi
37637 else :
37638 rc=0
37639 fi
ea04106b 37640
42f7b73b
AX
37641 fi
37642 if test $rc -ne 0; then :
cae5b340 37643
42f7b73b
AX
37644 { $as_echo "$as_me:$LINENO: result: no" >&5
37645$as_echo "no" >&6; }
37646
37647 else :
37648
37649 { $as_echo "$as_me:$LINENO: result: yes" >&5
37650$as_echo "yes" >&6; }
37651
37652cat >>confdefs.h <<\_ACEOF
37653#define HAVE_GET_DISK_AND_MODULE 1
37654_ACEOF
ea04106b
AX
37655
37656
42f7b73b
AX
37657 fi
37658 fi
ea04106b 37659
4d815aed 37660
42f7b73b
AX
37661
37662 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
37663$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
37664 tmp_flags="$EXTRA_KCFLAGS"
37665 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
37666
37667
37668cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37669/* confdefs.h. */
37670_ACEOF
37671cat confdefs.h >>conftest.$ac_ext
37672cat >>conftest.$ac_ext <<_ACEOF
37673/* end confdefs.h. */
ea04106b
AX
37674
37675
42f7b73b 37676 #include <linux/blkdev.h>
ea04106b
AX
37677
37678int
37679main (void)
37680{
37681
42f7b73b
AX
37682 struct gendisk *disk = NULL;
37683 (void) get_disk_ro(disk);
ea04106b
AX
37684
37685 ;
37686 return 0;
37687}
37688
37689_ACEOF
37690
37691
37692
37693cat - <<_ACEOF >conftest.h
37694
37695_ACEOF
37696
37697
37698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37699 echo "obj-m := conftest.o" >build/Makefile
37700 modpost_flag=''
37701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37702 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37704 (eval $ac_try) 2>&5
37705 ac_status=$?
cae5b340
AX
37706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37709 (eval $ac_try) 2>&5
37710 ac_status=$?
cae5b340
AX
37711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; }; then
ea04106b 37713
cae5b340 37714 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37715$as_echo "yes" >&6; }
37716
cae5b340 37717cat >>confdefs.h <<\_ACEOF
42f7b73b 37718#define HAVE_GET_DISK_RO 1
cae5b340 37719_ACEOF
ea04106b
AX
37720
37721
37722else
37723 $as_echo "$as_me: failed program was:" >&5
37724sed 's/^/| /' conftest.$ac_ext >&5
37725
cae5b340 37726 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
37727$as_echo "no" >&6; }
37728
37729
37730
37731fi
cae5b340 37732
ea04106b
AX
37733 rm -Rf build
37734
37735
42f7b73b 37736 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 37737
42f7b73b
AX
37738 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
37739$as_echo_n "checking whether get_gendisk() is available... " >&6; }
ea04106b 37740
ea04106b
AX
37741
37742
37743cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37744/* confdefs.h. */
37745_ACEOF
37746cat confdefs.h >>conftest.$ac_ext
37747cat >>conftest.$ac_ext <<_ACEOF
37748/* end confdefs.h. */
ea04106b
AX
37749
37750
42f7b73b 37751 #include <linux/genhd.h>
ea04106b
AX
37752
37753int
37754main (void)
37755{
37756
42f7b73b 37757 get_gendisk(0, NULL);
ea04106b
AX
37758
37759 ;
37760 return 0;
37761}
37762
37763_ACEOF
37764
37765
37766
37767cat - <<_ACEOF >conftest.h
37768
37769_ACEOF
37770
37771
37772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37773 echo "obj-m := conftest.o" >build/Makefile
37774 modpost_flag=''
37775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37776 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37778 (eval $ac_try) 2>&5
37779 ac_status=$?
cae5b340
AX
37780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37783 (eval $ac_try) 2>&5
37784 ac_status=$?
cae5b340
AX
37785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); }; }; then
42f7b73b
AX
37787 rc=0
37788else
37789 $as_echo "$as_me: failed program was:" >&5
37790sed 's/^/| /' conftest.$ac_ext >&5
37791 rc=1
ea04106b 37792
ea04106b 37793
42f7b73b 37794fi
ea04106b 37795
42f7b73b 37796 rm -Rf build
ea04106b 37797
42f7b73b
AX
37798
37799 if test $rc -ne 0; then :
ea04106b 37800
cae5b340 37801 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
37802$as_echo "no" >&6; }
37803
42f7b73b
AX
37804 else
37805 if test "x$enable_linux_builtin" != xyes; then
ea04106b 37806
42f7b73b
AX
37807 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
37808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37809 rc=$?
37810 if test $rc -ne 0; then
37811 export=0
37812 for file in block/genhd.c; do
37813 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
37814 "$LINUX/$file" 2>/dev/null
37815 rc=$?
37816 if test $rc -eq 0; then
37817 export=1
37818 break;
37819 fi
37820 done
37821 if test $export -eq 0; then :
37822 rc=1
37823 else :
37824 rc=0
37825 fi
37826 else :
37827 rc=0
37828 fi
ea04106b 37829
42f7b73b
AX
37830 fi
37831 if test $rc -ne 0; then :
37832
37833 { $as_echo "$as_me:$LINENO: result: no" >&5
37834$as_echo "no" >&6; }
37835
37836 else :
37837
37838 { $as_echo "$as_me:$LINENO: result: yes" >&5
37839$as_echo "yes" >&6; }
37840
37841cat >>confdefs.h <<\_ACEOF
37842#define HAVE_GET_GENDISK 1
37843_ACEOF
cae5b340 37844
ea04106b 37845
42f7b73b
AX
37846 fi
37847 fi
ea04106b
AX
37848
37849
37850
42f7b73b
AX
37851 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
37852$as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
87dac73d
AX
37853
37854
37855cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37856/* confdefs.h. */
37857_ACEOF
37858cat confdefs.h >>conftest.$ac_ext
37859cat >>conftest.$ac_ext <<_ACEOF
37860/* end confdefs.h. */
87dac73d
AX
37861
37862
42f7b73b 37863 #include <linux/bio.h>
87dac73d
AX
37864
37865int
37866main (void)
37867{
37868
42f7b73b
AX
37869 struct bio *bio __attribute__ ((unused)) = NULL;
37870
37871 bio_set_op_attrs(bio, 0, 0);
87dac73d
AX
37872
37873 ;
37874 return 0;
37875}
37876
37877_ACEOF
37878
37879
37880
37881cat - <<_ACEOF >conftest.h
37882
37883_ACEOF
37884
37885
37886 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37887 echo "obj-m := conftest.o" >build/Makefile
37888 modpost_flag=''
37889 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37890 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37892 (eval $ac_try) 2>&5
37893 ac_status=$?
cae5b340
AX
37894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37897 (eval $ac_try) 2>&5
37898 ac_status=$?
cae5b340
AX
37899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); }; }; then
87dac73d 37901
cae5b340 37902 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
37903$as_echo "yes" >&6; }
37904
cae5b340 37905cat >>confdefs.h <<\_ACEOF
42f7b73b 37906#define HAVE_BIO_SET_OP_ATTRS 1
cae5b340 37907_ACEOF
68d83c55
AX
37908
37909
42f7b73b
AX
37910else
37911 $as_echo "$as_me: failed program was:" >&5
37912sed 's/^/| /' conftest.$ac_ext >&5
37913
37914 { $as_echo "$as_me:$LINENO: result: no" >&5
37915$as_echo "no" >&6; }
37916
37917
37918
37919fi
37920
37921 rm -Rf build
37922
37923
37924
37925
37926 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
37927$as_echo_n "checking whether generic_readlink is global... " >&6; }
68d83c55
AX
37928
37929
37930cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37931/* confdefs.h. */
37932_ACEOF
37933cat confdefs.h >>conftest.$ac_ext
37934cat >>conftest.$ac_ext <<_ACEOF
37935/* end confdefs.h. */
68d83c55
AX
37936
37937
42f7b73b 37938 #include <linux/fs.h>
68d83c55
AX
37939
37940int
37941main (void)
37942{
37943
42f7b73b
AX
37944 int i __attribute__ ((unused));
37945
37946 i = generic_readlink(NULL, NULL, 0);
68d83c55
AX
37947
37948 ;
37949 return 0;
37950}
37951
37952_ACEOF
37953
37954
37955
37956cat - <<_ACEOF >conftest.h
37957
37958_ACEOF
37959
37960
37961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37962 echo "obj-m := conftest.o" >build/Makefile
37963 modpost_flag=''
37964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 37965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
37967 (eval $ac_try) 2>&5
37968 ac_status=$?
cae5b340
AX
37969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
37972 (eval $ac_try) 2>&5
37973 ac_status=$?
cae5b340
AX
37974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); }; }; then
68d83c55 37976
42f7b73b 37977 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
37978$as_echo "yes" >&6; }
37979
cae5b340 37980cat >>confdefs.h <<\_ACEOF
42f7b73b 37981#define HAVE_GENERIC_READLINK 1
cae5b340 37982_ACEOF
68d83c55
AX
37983
37984
87dac73d
AX
37985else
37986 $as_echo "$as_me: failed program was:" >&5
37987sed 's/^/| /' conftest.$ac_ext >&5
37988
cae5b340 37989 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
37990$as_echo "no" >&6; }
37991
37992
37993
37994fi
cae5b340 37995
87dac73d
AX
37996 rm -Rf build
37997
37998
37999
42f7b73b
AX
38000
38001 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
38002$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
87dac73d
AX
38003
38004
38005cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38006/* confdefs.h. */
38007_ACEOF
38008cat confdefs.h >>conftest.$ac_ext
38009cat >>conftest.$ac_ext <<_ACEOF
38010/* end confdefs.h. */
87dac73d
AX
38011
38012
68d83c55
AX
38013 #include <linux/blkdev.h>
38014
87dac73d
AX
38015int
38016main (void)
38017{
38018
42f7b73b
AX
38019 struct queue_limits ql __attribute__ ((unused));
38020
38021 ql.discard_granularity = 0;
87dac73d
AX
38022
38023 ;
38024 return 0;
38025}
38026
38027_ACEOF
38028
38029
38030
38031cat - <<_ACEOF >conftest.h
38032
38033_ACEOF
38034
38035
38036 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38037 echo "obj-m := conftest.o" >build/Makefile
38038 modpost_flag=''
38039 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38040 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38042 (eval $ac_try) 2>&5
38043 ac_status=$?
cae5b340
AX
38044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38047 (eval $ac_try) 2>&5
38048 ac_status=$?
cae5b340
AX
38049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050 (exit $ac_status); }; }; then
87dac73d 38051
cae5b340 38052 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
38053$as_echo "yes" >&6; }
38054
cae5b340 38055cat >>confdefs.h <<\_ACEOF
42f7b73b 38056#define HAVE_DISCARD_GRANULARITY 1
cae5b340 38057_ACEOF
68d83c55
AX
38058
38059
42f7b73b
AX
38060else
38061 $as_echo "$as_me: failed program was:" >&5
38062sed 's/^/| /' conftest.$ac_ext >&5
38063
38064 { $as_echo "$as_me:$LINENO: result: no" >&5
38065$as_echo "no" >&6; }
38066
38067
38068
38069fi
38070
38071 rm -Rf build
38072
38073
38074
38075
38076 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
38077$as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
68d83c55
AX
38078
38079
38080cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38081/* confdefs.h. */
38082_ACEOF
38083cat confdefs.h >>conftest.$ac_ext
38084cat >>conftest.$ac_ext <<_ACEOF
38085/* end confdefs.h. */
68d83c55
AX
38086
38087
42f7b73b
AX
38088 #include <linux/fs.h>
38089 #include <linux/xattr.h>
68d83c55 38090
42f7b73b
AX
38091 const struct xattr_handler xattr_test_handler = {
38092 .prefix = "test",
38093 .get = NULL,
38094 .set = NULL,
38095 };
38096
38097 const struct xattr_handler *xattr_handlers[] = {
38098 &xattr_test_handler,
38099 };
38100
38101 const struct super_block sb __attribute__ ((unused)) = {
38102 .s_xattr = xattr_handlers,
38103 };
68d83c55
AX
38104
38105int
38106main (void)
38107{
38108
68d83c55
AX
38109
38110 ;
38111 return 0;
38112}
38113
38114_ACEOF
38115
38116
38117
38118cat - <<_ACEOF >conftest.h
38119
38120_ACEOF
38121
38122
38123 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38124 echo "obj-m := conftest.o" >build/Makefile
38125 modpost_flag=''
38126 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38127 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
38129 (eval $ac_try) 2>&5
38130 ac_status=$?
cae5b340
AX
38131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
38134 (eval $ac_try) 2>&5
38135 ac_status=$?
cae5b340
AX
38136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); }; }; then
68d83c55 38138
42f7b73b 38139 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
38140$as_echo "yes" >&6; }
38141
cae5b340 38142cat >>confdefs.h <<\_ACEOF
42f7b73b 38143#define HAVE_CONST_XATTR_HANDLER 1
cae5b340 38144_ACEOF
68d83c55
AX
38145
38146
87dac73d
AX
38147else
38148 $as_echo "$as_me: failed program was:" >&5
38149sed 's/^/| /' conftest.$ac_ext >&5
38150
cae5b340 38151 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
38152$as_echo "no" >&6; }
38153
38154
38155
38156fi
cae5b340 38157
87dac73d
AX
38158 rm -Rf build
38159
38160
38161
68d83c55 38162
42f7b73b
AX
38163 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
38164$as_echo_n "checking whether xattr_handler has name... " >&6; }
ea04106b
AX
38165
38166
38167cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38168/* confdefs.h. */
38169_ACEOF
38170cat confdefs.h >>conftest.$ac_ext
38171cat >>conftest.$ac_ext <<_ACEOF
38172/* end confdefs.h. */
ea04106b
AX
38173
38174
42f7b73b
AX
38175 #include <linux/xattr.h>
38176
38177 static const struct xattr_handler
38178 xops __attribute__ ((unused)) = {
38179 .name = XATTR_NAME_POSIX_ACL_ACCESS,
38180 };
ea04106b
AX
38181
38182int
38183main (void)
38184{
38185
ea04106b
AX
38186
38187 ;
38188 return 0;
38189}
38190
38191_ACEOF
38192
38193
38194
38195cat - <<_ACEOF >conftest.h
38196
38197_ACEOF
38198
38199
38200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38201 echo "obj-m := conftest.o" >build/Makefile
38202 modpost_flag=''
38203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38204 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38206 (eval $ac_try) 2>&5
38207 ac_status=$?
cae5b340
AX
38208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38211 (eval $ac_try) 2>&5
38212 ac_status=$?
cae5b340
AX
38213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); }; }; then
ea04106b 38215
cae5b340 38216 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38217$as_echo "yes" >&6; }
38218
cae5b340 38219cat >>confdefs.h <<\_ACEOF
42f7b73b 38220#define HAVE_XATTR_HANDLER_NAME 1
cae5b340 38221_ACEOF
ea04106b
AX
38222
38223
38224else
38225 $as_echo "$as_me: failed program was:" >&5
38226sed 's/^/| /' conftest.$ac_ext >&5
38227
cae5b340 38228 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38229$as_echo "no" >&6; }
38230
38231
38232
38233fi
cae5b340 38234
ea04106b
AX
38235 rm -Rf build
38236
38237
38238
38239
42f7b73b
AX
38240 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
38241$as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
ea04106b
AX
38242
38243
38244cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38245/* confdefs.h. */
38246_ACEOF
38247cat confdefs.h >>conftest.$ac_ext
38248cat >>conftest.$ac_ext <<_ACEOF
38249/* end confdefs.h. */
ea04106b
AX
38250
38251
42f7b73b
AX
38252 #include <linux/xattr.h>
38253
38254 int get(const struct xattr_handler *handler,
38255 struct dentry *dentry, struct inode *inode,
38256 const char *name, void *buffer, size_t size) { return 0; }
38257 static const struct xattr_handler
38258 xops __attribute__ ((unused)) = {
38259 .get = get,
38260 };
ea04106b
AX
38261
38262int
38263main (void)
38264{
38265
ea04106b
AX
38266
38267 ;
38268 return 0;
38269}
38270
38271_ACEOF
38272
38273
38274
38275cat - <<_ACEOF >conftest.h
38276
38277_ACEOF
38278
38279
38280 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38281 echo "obj-m := conftest.o" >build/Makefile
38282 modpost_flag=''
38283 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38284 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38286 (eval $ac_try) 2>&5
38287 ac_status=$?
cae5b340
AX
38288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38291 (eval $ac_try) 2>&5
38292 ac_status=$?
cae5b340
AX
38293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; }; then
ea04106b 38295
cae5b340 38296 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 38297$as_echo "yes" >&6; }
ea04106b 38298
cae5b340 38299cat >>confdefs.h <<\_ACEOF
42f7b73b 38300#define HAVE_XATTR_GET_DENTRY_INODE 1
cae5b340 38301_ACEOF
e10b0808 38302
ea04106b 38303
4d815aed
AX
38304else
38305 $as_echo "$as_me: failed program was:" >&5
38306sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38307
42f7b73b 38308 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 38309$as_echo "no" >&6; }
42f7b73b
AX
38310 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
38311$as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
e10b0808
AX
38312
38313
38314cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38315/* confdefs.h. */
38316_ACEOF
38317cat confdefs.h >>conftest.$ac_ext
38318cat >>conftest.$ac_ext <<_ACEOF
38319/* end confdefs.h. */
e10b0808
AX
38320
38321
42f7b73b
AX
38322 #include <linux/xattr.h>
38323
38324 int get(const struct xattr_handler *handler,
38325 struct dentry *dentry, const char *name,
38326 void *buffer, size_t size) { return 0; }
38327 static const struct xattr_handler
38328 xops __attribute__ ((unused)) = {
38329 .get = get,
38330 };
ea04106b
AX
38331
38332int
38333main (void)
38334{
38335
ea04106b
AX
38336
38337 ;
38338 return 0;
38339}
38340
38341_ACEOF
38342
38343
38344
38345cat - <<_ACEOF >conftest.h
38346
38347_ACEOF
38348
38349
38350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38351 echo "obj-m := conftest.o" >build/Makefile
38352 modpost_flag=''
38353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38356 (eval $ac_try) 2>&5
38357 ac_status=$?
cae5b340
AX
38358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38361 (eval $ac_try) 2>&5
38362 ac_status=$?
cae5b340
AX
38363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; }; then
e10b0808 38365
42f7b73b 38366 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 38367$as_echo "yes" >&6; }
e10b0808 38368
cae5b340 38369cat >>confdefs.h <<\_ACEOF
42f7b73b 38370#define HAVE_XATTR_GET_HANDLER 1
cae5b340 38371_ACEOF
ea04106b 38372
ea04106b 38373
4d815aed
AX
38374else
38375 $as_echo "$as_me: failed program was:" >&5
38376sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38377
42f7b73b 38378 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 38379$as_echo "no" >&6; }
42f7b73b
AX
38380 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
38381$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
ea04106b
AX
38382
38383
38384cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38385/* confdefs.h. */
38386_ACEOF
38387cat confdefs.h >>conftest.$ac_ext
38388cat >>conftest.$ac_ext <<_ACEOF
38389/* end confdefs.h. */
ea04106b
AX
38390
38391
42f7b73b
AX
38392 #include <linux/xattr.h>
38393
38394 int get(struct dentry *dentry, const char *name,
38395 void *buffer, size_t size, int handler_flags)
38396 { return 0; }
38397 static const struct xattr_handler
38398 xops __attribute__ ((unused)) = {
38399 .get = get,
38400 };
ea04106b
AX
38401
38402int
38403main (void)
38404{
38405
ea04106b
AX
38406
38407 ;
38408 return 0;
38409}
38410
38411_ACEOF
38412
38413
38414
38415cat - <<_ACEOF >conftest.h
38416
38417_ACEOF
38418
38419
38420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38421 echo "obj-m := conftest.o" >build/Makefile
38422 modpost_flag=''
38423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38426 (eval $ac_try) 2>&5
38427 ac_status=$?
cae5b340
AX
38428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38431 (eval $ac_try) 2>&5
38432 ac_status=$?
cae5b340
AX
38433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); }; }; then
ea04106b 38435
42f7b73b 38436 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 38437$as_echo "yes" >&6; }
ea04106b 38438
cae5b340 38439cat >>confdefs.h <<\_ACEOF
42f7b73b 38440#define HAVE_XATTR_GET_DENTRY 1
cae5b340 38441_ACEOF
e10b0808 38442
e10b0808 38443
4d815aed
AX
38444else
38445 $as_echo "$as_me: failed program was:" >&5
38446sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38447
42f7b73b 38448 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 38449$as_echo "no" >&6; }
42f7b73b
AX
38450 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
38451$as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
ea04106b
AX
38452
38453
38454cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38455/* confdefs.h. */
38456_ACEOF
38457cat confdefs.h >>conftest.$ac_ext
38458cat >>conftest.$ac_ext <<_ACEOF
38459/* end confdefs.h. */
ea04106b
AX
38460
38461
42f7b73b
AX
38462 #include <linux/xattr.h>
38463
38464 int get(struct inode *ip, const char *name,
38465 void *buffer, size_t size) { return 0; }
38466 static const struct xattr_handler
38467 xops __attribute__ ((unused)) = {
38468 .get = get,
38469 };
ea04106b
AX
38470
38471int
38472main (void)
38473{
38474
ea04106b
AX
38475
38476 ;
38477 return 0;
38478}
38479
38480_ACEOF
38481
38482
38483
38484cat - <<_ACEOF >conftest.h
38485
38486_ACEOF
38487
38488
38489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38490 echo "obj-m := conftest.o" >build/Makefile
38491 modpost_flag=''
38492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38495 (eval $ac_try) 2>&5
38496 ac_status=$?
cae5b340
AX
38497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38500 (eval $ac_try) 2>&5
38501 ac_status=$?
cae5b340
AX
38502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503 (exit $ac_status); }; }; then
ea04106b 38504
42f7b73b 38505 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
38506$as_echo "yes" >&6; }
38507
cae5b340 38508cat >>confdefs.h <<\_ACEOF
42f7b73b 38509#define HAVE_XATTR_GET_INODE 1
cae5b340 38510_ACEOF
e10b0808 38511
ea04106b 38512
68d83c55
AX
38513else
38514 $as_echo "$as_me: failed program was:" >&5
38515sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 38516
42f7b73b
AX
38517 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38518$as_echo "$as_me: error: no; please file a bug report" >&2;}
38519 { (exit 1); exit 1; }; }
87dac73d 38520
87dac73d
AX
38521
38522
68d83c55 38523fi
cae5b340 38524
68d83c55 38525 rm -Rf build
87dac73d 38526
68d83c55 38527
68d83c55 38528
68d83c55
AX
38529
38530
42f7b73b
AX
38531fi
38532
38533 rm -Rf build
38534
38535
38536
38537
38538
38539fi
38540
38541 rm -Rf build
38542
38543
38544
38545
38546
38547fi
38548
38549 rm -Rf build
38550
38551
38552
38553
38554 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
38555$as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
38556
68d83c55
AX
38557
38558cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38559/* confdefs.h. */
38560_ACEOF
38561cat confdefs.h >>conftest.$ac_ext
38562cat >>conftest.$ac_ext <<_ACEOF
38563/* end confdefs.h. */
68d83c55
AX
38564
38565
42f7b73b
AX
38566 #include <linux/xattr.h>
38567
38568 int set(const struct xattr_handler *handler,
38569 struct dentry *dentry, struct inode *inode,
38570 const char *name, const void *buffer,
38571 size_t size, int flags)
38572 { return 0; }
38573 static const struct xattr_handler
38574 xops __attribute__ ((unused)) = {
38575 .set = set,
38576 };
87dac73d
AX
38577
38578int
38579main (void)
38580{
38581
87dac73d
AX
38582
38583 ;
38584 return 0;
38585}
38586
38587_ACEOF
38588
38589
38590
38591cat - <<_ACEOF >conftest.h
38592
38593_ACEOF
38594
38595
38596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38597 echo "obj-m := conftest.o" >build/Makefile
38598 modpost_flag=''
38599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38600 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38602 (eval $ac_try) 2>&5
38603 ac_status=$?
cae5b340
AX
38604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38607 (eval $ac_try) 2>&5
38608 ac_status=$?
cae5b340
AX
38609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); }; }; then
ea04106b 38611
cae5b340 38612 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 38613$as_echo "yes" >&6; }
ea04106b 38614
cae5b340 38615cat >>confdefs.h <<\_ACEOF
42f7b73b 38616#define HAVE_XATTR_SET_DENTRY_INODE 1
cae5b340 38617_ACEOF
ea04106b
AX
38618
38619
42f7b73b
AX
38620else
38621 $as_echo "$as_me: failed program was:" >&5
38622sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38623
42f7b73b
AX
38624 { $as_echo "$as_me:$LINENO: result: no" >&5
38625$as_echo "no" >&6; }
38626 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
38627$as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
ea04106b
AX
38628
38629
68d83c55 38630cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38631/* confdefs.h. */
38632_ACEOF
38633cat confdefs.h >>conftest.$ac_ext
38634cat >>conftest.$ac_ext <<_ACEOF
38635/* end confdefs.h. */
ea04106b 38636
4d815aed 38637
42f7b73b
AX
38638 #include <linux/xattr.h>
38639
38640 int set(const struct xattr_handler *handler,
38641 struct dentry *dentry, const char *name,
38642 const void *buffer, size_t size, int flags)
38643 { return 0; }
38644 static const struct xattr_handler
38645 xops __attribute__ ((unused)) = {
38646 .set = set,
38647 };
68d83c55 38648
ea04106b
AX
38649int
38650main (void)
38651{
38652
87dac73d
AX
38653
38654 ;
38655 return 0;
38656}
38657
38658_ACEOF
38659
38660
38661
38662cat - <<_ACEOF >conftest.h
38663
38664_ACEOF
38665
38666
38667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38668 echo "obj-m := conftest.o" >build/Makefile
38669 modpost_flag=''
38670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38671 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38673 (eval $ac_try) 2>&5
38674 ac_status=$?
cae5b340
AX
38675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38678 (eval $ac_try) 2>&5
38679 ac_status=$?
cae5b340
AX
38680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; }; then
87dac73d 38682
42f7b73b 38683 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
38684$as_echo "yes" >&6; }
38685
cae5b340 38686cat >>confdefs.h <<\_ACEOF
42f7b73b 38687#define HAVE_XATTR_SET_HANDLER 1
cae5b340 38688_ACEOF
87dac73d
AX
38689
38690
68d83c55
AX
38691else
38692 $as_echo "$as_me: failed program was:" >&5
38693sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 38694
42f7b73b 38695 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 38696$as_echo "no" >&6; }
42f7b73b
AX
38697 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
38698$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
68d83c55
AX
38699
38700
38701cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38702/* confdefs.h. */
38703_ACEOF
38704cat confdefs.h >>conftest.$ac_ext
38705cat >>conftest.$ac_ext <<_ACEOF
38706/* end confdefs.h. */
68d83c55
AX
38707
38708
42f7b73b
AX
38709 #include <linux/xattr.h>
38710
38711 int set(struct dentry *dentry, const char *name,
38712 const void *buffer, size_t size, int flags,
38713 int handler_flags) { return 0; }
38714 static const struct xattr_handler
38715 xops __attribute__ ((unused)) = {
38716 .set = set,
38717 };
87dac73d
AX
38718
38719int
38720main (void)
38721{
38722
ea04106b
AX
38723
38724 ;
38725 return 0;
38726}
38727
38728_ACEOF
38729
38730
38731
38732cat - <<_ACEOF >conftest.h
38733
38734_ACEOF
38735
38736
38737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38738 echo "obj-m := conftest.o" >build/Makefile
38739 modpost_flag=''
38740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38743 (eval $ac_try) 2>&5
38744 ac_status=$?
cae5b340
AX
38745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38748 (eval $ac_try) 2>&5
38749 ac_status=$?
cae5b340
AX
38750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
ea04106b 38752
42f7b73b 38753 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
38754$as_echo "yes" >&6; }
38755
cae5b340 38756cat >>confdefs.h <<\_ACEOF
42f7b73b 38757#define HAVE_XATTR_SET_DENTRY 1
cae5b340 38758_ACEOF
ea04106b 38759
87dac73d
AX
38760
38761else
38762 $as_echo "$as_me: failed program was:" >&5
38763sed 's/^/| /' conftest.$ac_ext >&5
38764
42f7b73b 38765 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 38766$as_echo "no" >&6; }
42f7b73b
AX
38767 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
38768$as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
ea04106b
AX
38769
38770
38771cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38772/* confdefs.h. */
38773_ACEOF
38774cat confdefs.h >>conftest.$ac_ext
38775cat >>conftest.$ac_ext <<_ACEOF
38776/* end confdefs.h. */
ea04106b
AX
38777
38778
42f7b73b
AX
38779 #include <linux/xattr.h>
38780
38781 int set(struct inode *ip, const char *name,
38782 const void *buffer, size_t size, int flags)
38783 { return 0; }
38784 static const struct xattr_handler
38785 xops __attribute__ ((unused)) = {
38786 .set = set,
38787 };
ea04106b
AX
38788
38789int
38790main (void)
38791{
38792
ea04106b
AX
38793
38794 ;
38795 return 0;
38796}
38797
38798_ACEOF
38799
38800
38801
38802cat - <<_ACEOF >conftest.h
38803
38804_ACEOF
38805
38806
38807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38808 echo "obj-m := conftest.o" >build/Makefile
38809 modpost_flag=''
38810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38813 (eval $ac_try) 2>&5
38814 ac_status=$?
cae5b340
AX
38815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38818 (eval $ac_try) 2>&5
38819 ac_status=$?
cae5b340
AX
38820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); }; }; then
ea04106b 38822
42f7b73b 38823 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38824$as_echo "yes" >&6; }
38825
cae5b340 38826cat >>confdefs.h <<\_ACEOF
42f7b73b 38827#define HAVE_XATTR_SET_INODE 1
cae5b340 38828_ACEOF
ea04106b
AX
38829
38830
38831else
38832 $as_echo "$as_me: failed program was:" >&5
38833sed 's/^/| /' conftest.$ac_ext >&5
38834
42f7b73b
AX
38835 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38836$as_echo "$as_me: error: no; please file a bug report" >&2;}
38837 { (exit 1); exit 1; }; }
38838
38839
38840
38841fi
38842
38843 rm -Rf build
38844
38845
38846
38847
38848
38849fi
38850
38851 rm -Rf build
38852
38853
38854
38855
38856
38857fi
38858
38859 rm -Rf build
38860
38861
ea04106b
AX
38862
38863
38864
38865fi
cae5b340 38866
ea04106b
AX
38867 rm -Rf build
38868
38869
ea04106b
AX
38870
38871
42f7b73b
AX
38872 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
38873$as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
ea04106b
AX
38874
38875
38876cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38877/* confdefs.h. */
38878_ACEOF
38879cat confdefs.h >>conftest.$ac_ext
38880cat >>conftest.$ac_ext <<_ACEOF
38881/* end confdefs.h. */
ea04106b
AX
38882
38883
68d83c55
AX
38884 #include <linux/xattr.h>
38885
42f7b73b
AX
38886 bool list(struct dentry *dentry) { return 0; }
38887 static const struct xattr_handler
38888 xops __attribute__ ((unused)) = {
38889 .list = list,
68d83c55 38890 };
ea04106b
AX
38891
38892int
38893main (void)
38894{
38895
ea04106b
AX
38896
38897 ;
38898 return 0;
38899}
38900
38901_ACEOF
38902
38903
38904
38905cat - <<_ACEOF >conftest.h
38906
38907_ACEOF
38908
38909
38910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38911 echo "obj-m := conftest.o" >build/Makefile
38912 modpost_flag=''
38913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38914 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38916 (eval $ac_try) 2>&5
38917 ac_status=$?
cae5b340
AX
38918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38921 (eval $ac_try) 2>&5
38922 ac_status=$?
cae5b340
AX
38923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924 (exit $ac_status); }; }; then
ea04106b 38925
cae5b340 38926 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38927$as_echo "yes" >&6; }
38928
cae5b340 38929cat >>confdefs.h <<\_ACEOF
42f7b73b 38930#define HAVE_XATTR_LIST_SIMPLE 1
cae5b340 38931_ACEOF
ea04106b
AX
38932
38933
38934else
38935 $as_echo "$as_me: failed program was:" >&5
38936sed 's/^/| /' conftest.$ac_ext >&5
38937
42f7b73b 38938 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 38939$as_echo "no" >&6; }
42f7b73b
AX
38940 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
38941$as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
ea04106b
AX
38942
38943
38944cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38945/* confdefs.h. */
38946_ACEOF
38947cat confdefs.h >>conftest.$ac_ext
38948cat >>conftest.$ac_ext <<_ACEOF
38949/* end confdefs.h. */
ea04106b
AX
38950
38951
42f7b73b 38952 #include <linux/xattr.h>
68d83c55 38953
42f7b73b
AX
38954 size_t list(const struct xattr_handler *handler,
38955 struct dentry *dentry, char *list, size_t list_size,
38956 const char *name, size_t name_len) { return 0; }
38957 static const struct xattr_handler
38958 xops __attribute__ ((unused)) = {
38959 .list = list,
38960 };
ea04106b
AX
38961
38962int
38963main (void)
38964{
38965
ea04106b
AX
38966
38967 ;
38968 return 0;
38969}
38970
38971_ACEOF
38972
38973
38974
38975cat - <<_ACEOF >conftest.h
38976
38977_ACEOF
38978
38979
38980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38981 echo "obj-m := conftest.o" >build/Makefile
38982 modpost_flag=''
38983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 38984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 38985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38986 (eval $ac_try) 2>&5
38987 ac_status=$?
cae5b340
AX
38988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38991 (eval $ac_try) 2>&5
38992 ac_status=$?
cae5b340
AX
38993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994 (exit $ac_status); }; }; then
ea04106b 38995
42f7b73b 38996 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38997$as_echo "yes" >&6; }
38998
cae5b340 38999cat >>confdefs.h <<\_ACEOF
42f7b73b 39000#define HAVE_XATTR_LIST_HANDLER 1
cae5b340 39001_ACEOF
ea04106b
AX
39002
39003
39004else
39005 $as_echo "$as_me: failed program was:" >&5
39006sed 's/^/| /' conftest.$ac_ext >&5
39007
42f7b73b 39008 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39009$as_echo "no" >&6; }
42f7b73b
AX
39010 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
39011$as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
ea04106b
AX
39012
39013
39014cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39015/* confdefs.h. */
39016_ACEOF
39017cat confdefs.h >>conftest.$ac_ext
39018cat >>conftest.$ac_ext <<_ACEOF
39019/* end confdefs.h. */
ea04106b
AX
39020
39021
42f7b73b 39022 #include <linux/xattr.h>
68d83c55 39023
42f7b73b
AX
39024 size_t list(struct dentry *dentry,
39025 char *list, size_t list_size,
39026 const char *name, size_t name_len,
39027 int handler_flags) { return 0; }
39028 static const struct xattr_handler
39029 xops __attribute__ ((unused)) = {
39030 .list = list,
39031 };
ea04106b
AX
39032
39033int
39034main (void)
39035{
39036
ea04106b
AX
39037
39038 ;
39039 return 0;
39040}
39041
39042_ACEOF
39043
39044
39045
39046cat - <<_ACEOF >conftest.h
39047
39048_ACEOF
39049
39050
39051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39052 echo "obj-m := conftest.o" >build/Makefile
39053 modpost_flag=''
39054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39057 (eval $ac_try) 2>&5
39058 ac_status=$?
cae5b340
AX
39059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39062 (eval $ac_try) 2>&5
39063 ac_status=$?
cae5b340
AX
39064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); }; }; then
ea04106b 39066
42f7b73b 39067 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 39068$as_echo "yes" >&6; }
ea04106b 39069
cae5b340 39070cat >>confdefs.h <<\_ACEOF
42f7b73b 39071#define HAVE_XATTR_LIST_DENTRY 1
cae5b340 39072_ACEOF
ea04106b
AX
39073
39074
68d83c55
AX
39075else
39076 $as_echo "$as_me: failed program was:" >&5
39077sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 39078
42f7b73b 39079 { $as_echo "$as_me:$LINENO: result: no" >&5
cae5b340 39080$as_echo "no" >&6; }
42f7b73b
AX
39081 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
39082$as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
ea04106b 39083
e10b0808 39084
4d815aed 39085cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39086/* confdefs.h. */
39087_ACEOF
39088cat confdefs.h >>conftest.$ac_ext
39089cat >>conftest.$ac_ext <<_ACEOF
39090/* end confdefs.h. */
e10b0808 39091
4d815aed 39092
42f7b73b 39093 #include <linux/xattr.h>
68d83c55 39094
42f7b73b
AX
39095 size_t list(struct inode *ip, char *lst,
39096 size_t list_size, const char *name,
39097 size_t name_len) { return 0; }
39098 static const struct xattr_handler
39099 xops __attribute__ ((unused)) = {
39100 .list = list,
39101 };
ea04106b
AX
39102
39103int
39104main (void)
39105{
39106
ea04106b
AX
39107
39108 ;
39109 return 0;
39110}
39111
39112_ACEOF
39113
39114
39115
39116cat - <<_ACEOF >conftest.h
39117
39118_ACEOF
39119
39120
39121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39122 echo "obj-m := conftest.o" >build/Makefile
39123 modpost_flag=''
39124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39125 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39127 (eval $ac_try) 2>&5
39128 ac_status=$?
cae5b340
AX
39129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39132 (eval $ac_try) 2>&5
39133 ac_status=$?
cae5b340
AX
39134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); }; }; then
ea04106b 39136
42f7b73b 39137 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39138$as_echo "yes" >&6; }
39139
cae5b340 39140cat >>confdefs.h <<\_ACEOF
42f7b73b 39141#define HAVE_XATTR_LIST_INODE 1
cae5b340 39142_ACEOF
ea04106b
AX
39143
39144
39145else
39146 $as_echo "$as_me: failed program was:" >&5
39147sed 's/^/| /' conftest.$ac_ext >&5
39148
42f7b73b
AX
39149 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
39150$as_echo "$as_me: error: no; please file a bug report" >&2;}
39151 { (exit 1); exit 1; }; }
39152
39153
39154
39155fi
39156
39157 rm -Rf build
39158
39159
39160
39161
39162
39163fi
39164
39165 rm -Rf build
39166
39167
39168
39169
39170
39171fi
39172
39173 rm -Rf build
39174
39175
39176
39177
39178
39179fi
39180
39181 rm -Rf build
39182
39183
39184
39185
39186 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
39187$as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
ea04106b
AX
39188
39189
39190cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39191/* confdefs.h. */
39192_ACEOF
39193cat confdefs.h >>conftest.$ac_ext
39194cat >>conftest.$ac_ext <<_ACEOF
39195/* end confdefs.h. */
ea04106b
AX
39196
39197
42f7b73b 39198 #include <linux/fs.h>
ea04106b
AX
39199
39200int
39201main (void)
39202{
39203
42f7b73b
AX
39204 struct inode *ip = NULL;
39205 (void) inode_owner_or_capable(ip);
ea04106b
AX
39206
39207 ;
39208 return 0;
39209}
39210
39211_ACEOF
39212
39213
39214
39215cat - <<_ACEOF >conftest.h
39216
39217_ACEOF
39218
39219
39220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39221 echo "obj-m := conftest.o" >build/Makefile
39222 modpost_flag=''
39223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39226 (eval $ac_try) 2>&5
39227 ac_status=$?
cae5b340
AX
39228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39231 (eval $ac_try) 2>&5
39232 ac_status=$?
cae5b340
AX
39233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
ea04106b 39235
42f7b73b 39236 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39237$as_echo "yes" >&6; }
39238
cae5b340 39239cat >>confdefs.h <<\_ACEOF
42f7b73b 39240#define HAVE_INODE_OWNER_OR_CAPABLE 1
cae5b340 39241_ACEOF
ea04106b
AX
39242
39243
39244else
39245 $as_echo "$as_me: failed program was:" >&5
39246sed 's/^/| /' conftest.$ac_ext >&5
39247
42f7b73b 39248 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39249$as_echo "no" >&6; }
42f7b73b
AX
39250 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
39251$as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
5eacc075
AX
39252
39253
39254cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39255/* confdefs.h. */
39256_ACEOF
39257cat confdefs.h >>conftest.$ac_ext
39258cat >>conftest.$ac_ext <<_ACEOF
39259/* end confdefs.h. */
5eacc075
AX
39260
39261
42f7b73b
AX
39262 #include <linux/fs.h>
39263 #include <linux/sched.h>
5eacc075
AX
39264
39265int
39266main (void)
39267{
39268
42f7b73b
AX
39269 struct inode *ip = NULL;
39270 (void) is_owner_or_cap(ip);
5eacc075
AX
39271
39272 ;
39273 return 0;
39274}
39275
39276_ACEOF
39277
39278
39279
39280cat - <<_ACEOF >conftest.h
39281
39282_ACEOF
39283
39284
39285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39286 echo "obj-m := conftest.o" >build/Makefile
39287 modpost_flag=''
39288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
39291 (eval $ac_try) 2>&5
39292 ac_status=$?
cae5b340
AX
39293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
39296 (eval $ac_try) 2>&5
39297 ac_status=$?
cae5b340
AX
39298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); }; }; then
5eacc075 39300
42f7b73b 39301 { $as_echo "$as_me:$LINENO: result: yes" >&5
5eacc075
AX
39302$as_echo "yes" >&6; }
39303
cae5b340 39304cat >>confdefs.h <<\_ACEOF
42f7b73b 39305#define HAVE_IS_OWNER_OR_CAP 1
cae5b340 39306_ACEOF
5eacc075
AX
39307
39308
39309else
39310 $as_echo "$as_me: failed program was:" >&5
39311sed 's/^/| /' conftest.$ac_ext >&5
39312
42f7b73b
AX
39313 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
39314 https://github.com/zfsonlinux/zfs/issues/new" >&5
39315$as_echo "$as_me: error: no - Please file a bug report at
39316 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
cae5b340 39317 { (exit 1); exit 1; }; }
5eacc075
AX
39318
39319
39320
ea04106b 39321fi
cae5b340 39322
ea04106b
AX
39323 rm -Rf build
39324
39325
ea04106b
AX
39326
39327
68d83c55
AX
39328
39329fi
cae5b340 39330
68d83c55
AX
39331 rm -Rf build
39332
39333
39334
39335
42f7b73b
AX
39336 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
39337$as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
39338
39339
39340cat confdefs.h - <<_ACEOF >conftest.c
39341/* confdefs.h. */
39342_ACEOF
39343cat confdefs.h >>conftest.$ac_ext
39344cat >>conftest.$ac_ext <<_ACEOF
39345/* end confdefs.h. */
39346
68d83c55 39347
42f7b73b
AX
39348 #include <linux/cred.h>
39349 #include <linux/fs.h>
39350 #include <linux/posix_acl_xattr.h>
cae5b340 39351
42f7b73b
AX
39352int
39353main (void)
39354{
39355
39356 posix_acl_from_xattr(&init_user_ns, NULL, 0);
39357
39358 ;
39359 return 0;
39360}
39361
39362_ACEOF
39363
39364
39365
39366cat - <<_ACEOF >conftest.h
39367
39368_ACEOF
39369
39370
39371 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39372 echo "obj-m := conftest.o" >build/Makefile
39373 modpost_flag=''
39374 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39375 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39377 (eval $ac_try) 2>&5
39378 ac_status=$?
39379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39383 ac_status=$?
39384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; }; then
39386
39387 { $as_echo "$as_me:$LINENO: result: yes" >&5
39388$as_echo "yes" >&6; }
39389
39390cat >>confdefs.h <<\_ACEOF
39391#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
39392_ACEOF
68d83c55
AX
39393
39394
42f7b73b
AX
39395else
39396 $as_echo "$as_me: failed program was:" >&5
39397sed 's/^/| /' conftest.$ac_ext >&5
39398
39399 { $as_echo "$as_me:$LINENO: result: no" >&5
39400$as_echo "no" >&6; }
68d83c55
AX
39401
39402
39403
39404fi
cae5b340 39405
68d83c55
AX
39406 rm -Rf build
39407
39408
39409
39410
42f7b73b
AX
39411 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
39412$as_echo_n "checking whether posix_acl_release() is available... " >&6; }
ea04106b
AX
39413
39414
39415cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39416/* confdefs.h. */
39417_ACEOF
39418cat confdefs.h >>conftest.$ac_ext
39419cat >>conftest.$ac_ext <<_ACEOF
39420/* end confdefs.h. */
ea04106b
AX
39421
39422
42f7b73b
AX
39423 #include <linux/cred.h>
39424 #include <linux/fs.h>
39425 #include <linux/posix_acl.h>
ea04106b
AX
39426
39427int
39428main (void)
39429{
39430
42f7b73b
AX
39431 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39432 posix_acl_release(tmp);
ea04106b
AX
39433
39434 ;
39435 return 0;
39436}
39437
39438_ACEOF
39439
39440
39441
39442cat - <<_ACEOF >conftest.h
39443
39444_ACEOF
39445
39446
39447 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39448 echo "obj-m := conftest.o" >build/Makefile
39449 modpost_flag=''
39450 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39451 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39453 (eval $ac_try) 2>&5
39454 ac_status=$?
cae5b340
AX
39455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39458 (eval $ac_try) 2>&5
39459 ac_status=$?
cae5b340
AX
39460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); }; }; then
ea04106b 39462
cae5b340 39463 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39464$as_echo "yes" >&6; }
39465
cae5b340 39466cat >>confdefs.h <<\_ACEOF
42f7b73b 39467#define HAVE_POSIX_ACL_RELEASE 1
cae5b340 39468_ACEOF
ea04106b
AX
39469
39470
42f7b73b
AX
39471 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
39472$as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
ea04106b
AX
39473
39474
39475cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39476/* confdefs.h. */
39477_ACEOF
39478cat confdefs.h >>conftest.$ac_ext
39479cat >>conftest.$ac_ext <<_ACEOF
39480/* end confdefs.h. */
ea04106b
AX
39481
39482
42f7b73b
AX
39483 #include <linux/module.h>
39484 #include <linux/cred.h>
39485 #include <linux/fs.h>
39486 #include <linux/posix_acl.h>
4d815aed 39487
42f7b73b 39488 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
39489
39490int
39491main (void)
39492{
39493
42f7b73b
AX
39494 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39495 posix_acl_release(tmp);
ea04106b
AX
39496
39497 ;
39498 return 0;
39499}
39500
39501_ACEOF
39502
39503
39504
39505cat - <<_ACEOF >conftest.h
39506
39507_ACEOF
39508
39509
39510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39511 echo "obj-m := conftest.o" >build/Makefile
39512 modpost_flag=''
39513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39516 (eval $ac_try) 2>&5
39517 ac_status=$?
cae5b340
AX
39518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39521 (eval $ac_try) 2>&5
39522 ac_status=$?
cae5b340
AX
39523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); }; }; then
ea04106b 39525
42f7b73b
AX
39526 { $as_echo "$as_me:$LINENO: result: no" >&5
39527$as_echo "no" >&6; }
39528
39529else
39530 $as_echo "$as_me: failed program was:" >&5
39531sed 's/^/| /' conftest.$ac_ext >&5
39532
cae5b340 39533 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39534$as_echo "yes" >&6; }
39535
cae5b340 39536cat >>confdefs.h <<\_ACEOF
42f7b73b 39537#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
cae5b340 39538_ACEOF
ea04106b
AX
39539
39540
42f7b73b
AX
39541
39542
39543fi
39544
39545 rm -Rf build
39546
39547
39548
ea04106b
AX
39549else
39550 $as_echo "$as_me: failed program was:" >&5
39551sed 's/^/| /' conftest.$ac_ext >&5
39552
42f7b73b 39553 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39554$as_echo "no" >&6; }
42f7b73b
AX
39555
39556
39557
39558fi
39559
39560 rm -Rf build
39561
39562
39563
39564
39565 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
39566$as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
ea04106b
AX
39567
39568
39569cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39570/* confdefs.h. */
39571_ACEOF
39572cat confdefs.h >>conftest.$ac_ext
39573cat >>conftest.$ac_ext <<_ACEOF
39574/* end confdefs.h. */
ea04106b
AX
39575
39576
42f7b73b
AX
39577 #include <linux/module.h>
39578 #include <linux/cred.h>
39579 #include <linux/fs.h>
39580 #include <linux/posix_acl.h>
ea04106b 39581
42f7b73b 39582 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
39583
39584int
39585main (void)
39586{
39587
42f7b73b
AX
39588 struct inode *ip = NULL;
39589 struct posix_acl *acl = posix_acl_alloc(1, 0);
39590 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
39591 forget_cached_acl(ip, ACL_TYPE_ACCESS);
ea04106b
AX
39592
39593 ;
39594 return 0;
39595}
39596
39597_ACEOF
39598
39599
39600
39601cat - <<_ACEOF >conftest.h
39602
39603_ACEOF
39604
39605
39606 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39607 echo "obj-m := conftest.o" >build/Makefile
39608 modpost_flag=''
39609 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39610 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39612 (eval $ac_try) 2>&5
39613 ac_status=$?
cae5b340
AX
39614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39617 (eval $ac_try) 2>&5
39618 ac_status=$?
cae5b340
AX
39619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620 (exit $ac_status); }; }; then
ea04106b 39621
42f7b73b 39622 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
39623$as_echo "yes" >&6; }
39624
cae5b340 39625cat >>confdefs.h <<\_ACEOF
42f7b73b 39626#define HAVE_SET_CACHED_ACL_USABLE 1
cae5b340 39627_ACEOF
87dac73d
AX
39628
39629
39630else
39631 $as_echo "$as_me: failed program was:" >&5
39632sed 's/^/| /' conftest.$ac_ext >&5
39633
42f7b73b 39634 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 39635$as_echo "no" >&6; }
42f7b73b
AX
39636
39637
39638
39639fi
39640
39641 rm -Rf build
39642
39643
39644
39645
39646 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
39647$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
87dac73d
AX
39648
39649
39650cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39651/* confdefs.h. */
39652_ACEOF
39653cat confdefs.h >>conftest.$ac_ext
39654cat >>conftest.$ac_ext <<_ACEOF
39655/* end confdefs.h. */
87dac73d
AX
39656
39657
42f7b73b
AX
39658 #include <linux/fs.h>
39659 #include <linux/posix_acl.h>
87dac73d
AX
39660
39661int
39662main (void)
39663{
39664
42f7b73b 39665 posix_acl_chmod(NULL, 0, 0)
87dac73d
AX
39666
39667 ;
39668 return 0;
39669}
39670
39671_ACEOF
39672
39673
39674
39675cat - <<_ACEOF >conftest.h
39676
39677_ACEOF
39678
39679
39680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39681 echo "obj-m := conftest.o" >build/Makefile
39682 modpost_flag=''
39683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39684 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
39686 (eval $ac_try) 2>&5
39687 ac_status=$?
cae5b340
AX
39688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
39691 (eval $ac_try) 2>&5
39692 ac_status=$?
cae5b340
AX
39693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; }; then
87dac73d 39695
42f7b73b 39696 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
39697$as_echo "yes" >&6; }
39698
cae5b340 39699cat >>confdefs.h <<\_ACEOF
42f7b73b 39700#define HAVE_POSIX_ACL_CHMOD 1
cae5b340 39701_ACEOF
4d815aed 39702
ea04106b
AX
39703
39704else
39705 $as_echo "$as_me: failed program was:" >&5
39706sed 's/^/| /' conftest.$ac_ext >&5
39707
42f7b73b
AX
39708 { $as_echo "$as_me:$LINENO: result: no" >&5
39709$as_echo "no" >&6; }
4d815aed
AX
39710
39711
39712
39713fi
cae5b340 39714
4d815aed
AX
39715 rm -Rf build
39716
39717
39718
42f7b73b
AX
39719 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
39720$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
4d815aed
AX
39721
39722
42f7b73b
AX
39723cat confdefs.h - <<_ACEOF >conftest.c
39724/* confdefs.h. */
39725_ACEOF
39726cat confdefs.h >>conftest.$ac_ext
39727cat >>conftest.$ac_ext <<_ACEOF
39728/* end confdefs.h. */
cae5b340 39729
ea04106b 39730
42f7b73b
AX
39731 #include <linux/fs.h>
39732 #include <linux/posix_acl.h>
39733
39734int
39735main (void)
39736{
39737
39738 __posix_acl_chmod(NULL, 0, 0)
ea04106b 39739
42f7b73b
AX
39740 ;
39741 return 0;
39742}
ea04106b 39743
42f7b73b 39744_ACEOF
ea04106b
AX
39745
39746
cae5b340 39747
42f7b73b
AX
39748cat - <<_ACEOF >conftest.h
39749
39750_ACEOF
39751
39752
39753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39754 echo "obj-m := conftest.o" >build/Makefile
39755 modpost_flag=''
39756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39757 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39759 (eval $ac_try) 2>&5
39760 ac_status=$?
39761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39764 (eval $ac_try) 2>&5
39765 ac_status=$?
39766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767 (exit $ac_status); }; }; then
39768
39769 { $as_echo "$as_me:$LINENO: result: yes" >&5
39770$as_echo "yes" >&6; }
39771
39772cat >>confdefs.h <<\_ACEOF
39773#define HAVE___POSIX_ACL_CHMOD 1
39774_ACEOF
39775
ea04106b 39776
42f7b73b
AX
39777else
39778 $as_echo "$as_me: failed program was:" >&5
39779sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 39780
42f7b73b
AX
39781 { $as_echo "$as_me:$LINENO: result: no" >&5
39782$as_echo "no" >&6; }
ea04106b
AX
39783
39784
87dac73d
AX
39785
39786fi
cae5b340 39787
87dac73d
AX
39788 rm -Rf build
39789
39790
39791
39792
42f7b73b
AX
39793 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
39794$as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
ea04106b
AX
39795
39796
39797cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39798/* confdefs.h. */
39799_ACEOF
39800cat confdefs.h >>conftest.$ac_ext
39801cat >>conftest.$ac_ext <<_ACEOF
39802/* end confdefs.h. */
ea04106b
AX
39803
39804
42f7b73b
AX
39805 #include <linux/fs.h>
39806 #include <linux/posix_acl.h>
ea04106b
AX
39807
39808int
39809main (void)
39810{
39811
42f7b73b
AX
39812 umode_t tmp;
39813 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
39814
39815 ;
39816 return 0;
39817}
39818
39819_ACEOF
39820
39821
39822
39823cat - <<_ACEOF >conftest.h
39824
39825_ACEOF
39826
39827
39828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39829 echo "obj-m := conftest.o" >build/Makefile
39830 modpost_flag=''
39831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39834 (eval $ac_try) 2>&5
39835 ac_status=$?
cae5b340
AX
39836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39839 (eval $ac_try) 2>&5
39840 ac_status=$?
cae5b340
AX
39841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); }; }; then
ea04106b 39843
cae5b340 39844 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39845$as_echo "yes" >&6; }
39846
cae5b340 39847cat >>confdefs.h <<\_ACEOF
42f7b73b 39848#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
cae5b340 39849_ACEOF
ea04106b
AX
39850
39851
39852else
39853 $as_echo "$as_me: failed program was:" >&5
39854sed 's/^/| /' conftest.$ac_ext >&5
39855
42f7b73b 39856 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 39857$as_echo "no" >&6; }
42f7b73b
AX
39858
39859
39860
39861fi
39862
39863 rm -Rf build
39864
39865
39866
39867
39868 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
39869$as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
ea04106b
AX
39870
39871
39872cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39873/* confdefs.h. */
39874_ACEOF
39875cat confdefs.h >>conftest.$ac_ext
39876cat >>conftest.$ac_ext <<_ACEOF
39877/* end confdefs.h. */
ea04106b
AX
39878
39879
42f7b73b
AX
39880 #include <linux/fs.h>
39881 #include <linux/posix_acl.h>
ea04106b
AX
39882
39883int
39884main (void)
39885{
39886
42f7b73b
AX
39887 struct user_namespace *user_ns = NULL;
39888 const struct posix_acl *acl = NULL;
39889 int error;
39890
39891 error = posix_acl_valid(user_ns, acl);
ea04106b
AX
39892
39893 ;
39894 return 0;
39895}
39896
39897_ACEOF
39898
39899
39900
39901cat - <<_ACEOF >conftest.h
39902
39903_ACEOF
39904
39905
39906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39907 echo "obj-m := conftest.o" >build/Makefile
39908 modpost_flag=''
39909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39910 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39912 (eval $ac_try) 2>&5
39913 ac_status=$?
cae5b340
AX
39914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39917 (eval $ac_try) 2>&5
39918 ac_status=$?
cae5b340
AX
39919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
ea04106b 39921
42f7b73b 39922 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39923$as_echo "yes" >&6; }
39924
cae5b340 39925cat >>confdefs.h <<\_ACEOF
42f7b73b 39926#define HAVE_POSIX_ACL_VALID_WITH_NS 1
cae5b340 39927_ACEOF
ea04106b
AX
39928
39929
39930else
39931 $as_echo "$as_me: failed program was:" >&5
39932sed 's/^/| /' conftest.$ac_ext >&5
39933
42f7b73b 39934 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39935$as_echo "no" >&6; }
42f7b73b
AX
39936
39937
39938
39939fi
39940
39941 rm -Rf build
39942
39943
39944
39945
39946 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
39947$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
39948
39949
39950cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39951/* confdefs.h. */
39952_ACEOF
39953cat confdefs.h >>conftest.$ac_ext
39954cat >>conftest.$ac_ext <<_ACEOF
39955/* end confdefs.h. */
ea04106b
AX
39956
39957
42f7b73b 39958 #include <linux/fs.h>
4d815aed 39959
42f7b73b
AX
39960 int permission_fn(struct inode *inode, int mask) { return 0; }
39961
39962 static const struct inode_operations
39963 iops __attribute__ ((unused)) = {
39964 .permission = permission_fn,
39965 };
ea04106b
AX
39966
39967int
39968main (void)
39969{
39970
ea04106b
AX
39971
39972 ;
39973 return 0;
39974}
39975
39976_ACEOF
39977
39978
39979
39980cat - <<_ACEOF >conftest.h
39981
39982_ACEOF
39983
39984
39985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39986 echo "obj-m := conftest.o" >build/Makefile
39987 modpost_flag=''
39988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 39989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39991 (eval $ac_try) 2>&5
39992 ac_status=$?
cae5b340
AX
39993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39996 (eval $ac_try) 2>&5
39997 ac_status=$?
cae5b340
AX
39998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; }; then
ea04106b 40000
42f7b73b 40001 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40002$as_echo "yes" >&6; }
40003
cae5b340 40004cat >>confdefs.h <<\_ACEOF
42f7b73b 40005#define HAVE_PERMISSION 1
cae5b340 40006_ACEOF
87dac73d
AX
40007
40008
40009else
40010 $as_echo "$as_me: failed program was:" >&5
40011sed 's/^/| /' conftest.$ac_ext >&5
40012
42f7b73b 40013 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 40014$as_echo "no" >&6; }
42f7b73b
AX
40015
40016
40017
40018fi
40019
40020 rm -Rf build
40021
40022
40023
40024
40025 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
40026$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
87dac73d
AX
40027
40028
40029cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40030/* confdefs.h. */
40031_ACEOF
40032cat confdefs.h >>conftest.$ac_ext
40033cat >>conftest.$ac_ext <<_ACEOF
40034/* end confdefs.h. */
87dac73d
AX
40035
40036
42f7b73b
AX
40037 #include <linux/fs.h>
40038 #include <linux/sched.h>
87dac73d 40039
42f7b73b
AX
40040 int permission_fn(struct inode *inode, int mask,
40041 struct nameidata *nd) { return 0; }
40042
40043 static const struct inode_operations
40044 iops __attribute__ ((unused)) = {
40045 .permission = permission_fn,
40046 };
87dac73d
AX
40047
40048int
40049main (void)
40050{
40051
40052
40053 ;
40054 return 0;
40055}
40056
40057_ACEOF
40058
40059
40060
40061cat - <<_ACEOF >conftest.h
40062
40063_ACEOF
40064
40065
40066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40067 echo "obj-m := conftest.o" >build/Makefile
40068 modpost_flag=''
40069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40070 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
40072 (eval $ac_try) 2>&5
40073 ac_status=$?
cae5b340
AX
40074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
40077 (eval $ac_try) 2>&5
40078 ac_status=$?
cae5b340
AX
40079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); }; }; then
87dac73d 40081
42f7b73b 40082 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
40083$as_echo "yes" >&6; }
40084
cae5b340 40085cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
40086#define HAVE_PERMISSION 1
40087_ACEOF
40088
40089
40090cat >>confdefs.h <<\_ACEOF
40091#define HAVE_PERMISSION_WITH_NAMEIDATA 1
cae5b340 40092_ACEOF
ea04106b
AX
40093
40094
40095else
40096 $as_echo "$as_me: failed program was:" >&5
40097sed 's/^/| /' conftest.$ac_ext >&5
40098
42f7b73b
AX
40099 { $as_echo "$as_me:$LINENO: result: no" >&5
40100$as_echo "no" >&6; }
ea04106b 40101
4d815aed
AX
40102
40103
40104fi
cae5b340 40105
4d815aed
AX
40106 rm -Rf build
40107
40108
40109
40110
42f7b73b
AX
40111 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
40112$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
4d815aed
AX
40113
40114
ea04106b 40115cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40116/* confdefs.h. */
40117_ACEOF
40118cat confdefs.h >>conftest.$ac_ext
40119cat >>conftest.$ac_ext <<_ACEOF
40120/* end confdefs.h. */
ea04106b
AX
40121
40122
68d83c55 40123 #include <linux/fs.h>
ea04106b 40124
42f7b73b
AX
40125 int check_acl_fn(struct inode *inode, int mask) { return 0; }
40126
40127 static const struct inode_operations
40128 iops __attribute__ ((unused)) = {
40129 .check_acl = check_acl_fn,
40130 };
40131
ea04106b
AX
40132int
40133main (void)
40134{
40135
ea04106b
AX
40136
40137 ;
40138 return 0;
40139}
40140
40141_ACEOF
40142
40143
40144
40145cat - <<_ACEOF >conftest.h
40146
40147_ACEOF
40148
40149
40150 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40151 echo "obj-m := conftest.o" >build/Makefile
40152 modpost_flag=''
40153 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40154 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40156 (eval $ac_try) 2>&5
40157 ac_status=$?
cae5b340
AX
40158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40161 (eval $ac_try) 2>&5
40162 ac_status=$?
cae5b340
AX
40163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); }; }; then
ea04106b 40165
cae5b340 40166 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40167$as_echo "yes" >&6; }
40168
cae5b340 40169cat >>confdefs.h <<\_ACEOF
42f7b73b 40170#define HAVE_CHECK_ACL 1
cae5b340 40171_ACEOF
ea04106b
AX
40172
40173
4d815aed
AX
40174else
40175 $as_echo "$as_me: failed program was:" >&5
40176sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 40177
cae5b340 40178 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 40179$as_echo "no" >&6; }
42f7b73b
AX
40180
40181
40182
40183fi
40184
40185 rm -Rf build
40186
40187
40188
40189
40190 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
40191$as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
ea04106b
AX
40192
40193
40194cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40195/* confdefs.h. */
40196_ACEOF
40197cat confdefs.h >>conftest.$ac_ext
40198cat >>conftest.$ac_ext <<_ACEOF
40199/* end confdefs.h. */
ea04106b
AX
40200
40201
42f7b73b
AX
40202 #include <linux/fs.h>
40203
40204 int check_acl_fn(struct inode *inode, int mask,
40205 unsigned int flags) { return 0; }
40206
40207 static const struct inode_operations
40208 iops __attribute__ ((unused)) = {
40209 .check_acl = check_acl_fn,
40210 };
ea04106b
AX
40211
40212int
40213main (void)
40214{
40215
ea04106b
AX
40216
40217 ;
40218 return 0;
40219}
40220
40221_ACEOF
40222
40223
40224
40225cat - <<_ACEOF >conftest.h
40226
40227_ACEOF
40228
40229
40230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40231 echo "obj-m := conftest.o" >build/Makefile
40232 modpost_flag=''
40233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40234 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40236 (eval $ac_try) 2>&5
40237 ac_status=$?
cae5b340
AX
40238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40241 (eval $ac_try) 2>&5
40242 ac_status=$?
cae5b340
AX
40243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
ea04106b 40245
42f7b73b 40246 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40247$as_echo "yes" >&6; }
40248
cae5b340 40249cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
40250#define HAVE_CHECK_ACL 1
40251_ACEOF
40252
40253
40254cat >>confdefs.h <<\_ACEOF
40255#define HAVE_CHECK_ACL_WITH_FLAGS 1
cae5b340 40256_ACEOF
ea04106b
AX
40257
40258
40259else
40260 $as_echo "$as_me: failed program was:" >&5
40261sed 's/^/| /' conftest.$ac_ext >&5
40262
42f7b73b
AX
40263 { $as_echo "$as_me:$LINENO: result: no" >&5
40264$as_echo "no" >&6; }
68d83c55
AX
40265
40266
40267
40268fi
cae5b340 40269
68d83c55
AX
40270 rm -Rf build
40271
40272
40273
40274
42f7b73b
AX
40275 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
40276$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
68d83c55
AX
40277
40278
40279cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40280/* confdefs.h. */
40281_ACEOF
40282cat confdefs.h >>conftest.$ac_ext
40283cat >>conftest.$ac_ext <<_ACEOF
40284/* end confdefs.h. */
68d83c55
AX
40285
40286
68d83c55 40287 #include <linux/fs.h>
42f7b73b
AX
40288
40289 struct posix_acl *get_acl_fn(struct inode *inode, int type)
40290 { return NULL; }
40291
40292 static const struct inode_operations
40293 iops __attribute__ ((unused)) = {
40294 .get_acl = get_acl_fn,
40295 };
ea04106b
AX
40296
40297int
40298main (void)
40299{
40300
ea04106b
AX
40301
40302 ;
40303 return 0;
40304}
40305
40306_ACEOF
40307
40308
40309
40310cat - <<_ACEOF >conftest.h
40311
40312_ACEOF
40313
40314
40315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40316 echo "obj-m := conftest.o" >build/Makefile
40317 modpost_flag=''
40318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40319 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40321 (eval $ac_try) 2>&5
40322 ac_status=$?
cae5b340
AX
40323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40326 (eval $ac_try) 2>&5
40327 ac_status=$?
cae5b340
AX
40328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; }; then
ea04106b 40330
cae5b340 40331 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40332$as_echo "yes" >&6; }
40333
cae5b340 40334cat >>confdefs.h <<\_ACEOF
42f7b73b 40335#define HAVE_GET_ACL 1
cae5b340 40336_ACEOF
ea04106b
AX
40337
40338
40339else
40340 $as_echo "$as_me: failed program was:" >&5
40341sed 's/^/| /' conftest.$ac_ext >&5
40342
cae5b340 40343 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40344$as_echo "no" >&6; }
ea04106b
AX
40345
40346
ea04106b 40347
68d83c55 40348fi
cae5b340 40349
68d83c55 40350 rm -Rf build
ea04106b 40351
e10b0808 40352
68d83c55
AX
40353
40354
42f7b73b
AX
40355 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
40356$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
68d83c55
AX
40357
40358
40359cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40360/* confdefs.h. */
40361_ACEOF
40362cat confdefs.h >>conftest.$ac_ext
40363cat >>conftest.$ac_ext <<_ACEOF
40364/* end confdefs.h. */
68d83c55
AX
40365
40366
68d83c55 40367 #include <linux/fs.h>
42f7b73b
AX
40368
40369 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
40370 { return 0; }
40371
40372 static const struct inode_operations
40373 iops __attribute__ ((unused)) = {
40374 .set_acl = set_acl_fn,
40375 };
ea04106b
AX
40376
40377int
40378main (void)
40379{
40380
ea04106b
AX
40381
40382 ;
40383 return 0;
40384}
40385
40386_ACEOF
40387
40388
40389
40390cat - <<_ACEOF >conftest.h
40391
40392_ACEOF
40393
40394
40395 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40396 echo "obj-m := conftest.o" >build/Makefile
40397 modpost_flag=''
40398 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40399 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40401 (eval $ac_try) 2>&5
40402 ac_status=$?
cae5b340
AX
40403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40406 (eval $ac_try) 2>&5
40407 ac_status=$?
cae5b340
AX
40408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); }; }; then
ea04106b 40410
cae5b340 40411 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40412$as_echo "yes" >&6; }
40413
cae5b340 40414cat >>confdefs.h <<\_ACEOF
42f7b73b 40415#define HAVE_SET_ACL 1
cae5b340 40416_ACEOF
4d815aed
AX
40417
40418
42f7b73b
AX
40419else
40420 $as_echo "$as_me: failed program was:" >&5
40421sed 's/^/| /' conftest.$ac_ext >&5
40422
40423 { $as_echo "$as_me:$LINENO: result: no" >&5
40424$as_echo "no" >&6; }
40425
40426
40427
40428fi
40429
40430 rm -Rf build
40431
40432
40433
40434
40435
40436 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
40437$as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
4d815aed
AX
40438
40439
40440cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40441/* confdefs.h. */
40442_ACEOF
40443cat confdefs.h >>conftest.$ac_ext
40444cat >>conftest.$ac_ext <<_ACEOF
40445/* end confdefs.h. */
4d815aed
AX
40446
40447
42f7b73b 40448 #include <linux/fs.h>
68d83c55 40449
42f7b73b
AX
40450 int test_getattr(
40451 const struct path *p, struct kstat *k,
40452 u32 request_mask, unsigned int query_flags)
40453 { return 0; }
40454
40455 static const struct inode_operations
40456 iops __attribute__ ((unused)) = {
40457 .getattr = test_getattr,
40458 };
94a40997
AX
40459
40460int
40461main (void)
40462{
40463
40464
40465 ;
40466 return 0;
40467}
40468
40469_ACEOF
40470
40471
40472
40473cat - <<_ACEOF >conftest.h
40474
40475_ACEOF
40476
40477
40478 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40479 echo "obj-m := conftest.o" >build/Makefile
40480 modpost_flag=''
40481 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40482 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
40484 (eval $ac_try) 2>&5
40485 ac_status=$?
cae5b340
AX
40486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
40489 (eval $ac_try) 2>&5
40490 ac_status=$?
cae5b340
AX
40491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); }; }; then
94a40997 40493
42f7b73b 40494 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 40495$as_echo "yes" >&6; }
4d815aed 40496
cae5b340 40497cat >>confdefs.h <<\_ACEOF
42f7b73b 40498#define HAVE_PATH_IOPS_GETATTR 1
cae5b340 40499_ACEOF
4d815aed
AX
40500
40501
cae5b340
AX
40502else
40503 $as_echo "$as_me: failed program was:" >&5
40504sed 's/^/| /' conftest.$ac_ext >&5
40505
40506 { $as_echo "$as_me:$LINENO: result: no" >&5
40507$as_echo "no" >&6; }
40508
40509
40510
40511fi
40512
40513 rm -Rf build
40514
4d815aed 40515
cae5b340
AX
40516
40517
42f7b73b
AX
40518 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
40519$as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
4d815aed
AX
40520
40521
40522cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40523/* confdefs.h. */
40524_ACEOF
40525cat confdefs.h >>conftest.$ac_ext
40526cat >>conftest.$ac_ext <<_ACEOF
40527/* end confdefs.h. */
4d815aed
AX
40528
40529
4d815aed 40530 #include <linux/fs.h>
68d83c55 40531
42f7b73b
AX
40532 int test_getattr(
40533 struct vfsmount *mnt, struct dentry *d,
40534 struct kstat *k)
40535 { return 0; }
40536
40537 static const struct inode_operations
40538 iops __attribute__ ((unused)) = {
40539 .getattr = test_getattr,
40540 };
94a40997
AX
40541
40542int
40543main (void)
40544{
40545
40546
40547 ;
40548 return 0;
40549}
40550
40551_ACEOF
40552
40553
40554
40555cat - <<_ACEOF >conftest.h
40556
40557_ACEOF
40558
40559
40560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40561 echo "obj-m := conftest.o" >build/Makefile
40562 modpost_flag=''
40563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
40566 (eval $ac_try) 2>&5
40567 ac_status=$?
cae5b340
AX
40568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
40571 (eval $ac_try) 2>&5
40572 ac_status=$?
cae5b340
AX
40573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; }; then
94a40997 40575
cae5b340 40576 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
40577$as_echo "yes" >&6; }
40578
cae5b340 40579cat >>confdefs.h <<\_ACEOF
42f7b73b 40580#define HAVE_VFSMOUNT_IOPS_GETATTR 1
cae5b340 40581_ACEOF
94a40997
AX
40582
40583
40584else
40585 $as_echo "$as_me: failed program was:" >&5
40586sed 's/^/| /' conftest.$ac_ext >&5
40587
cae5b340 40588 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997
AX
40589$as_echo "no" >&6; }
40590
40591
40592
40593fi
cae5b340 40594
94a40997
AX
40595 rm -Rf build
40596
40597
ea04106b
AX
40598
40599
42f7b73b
AX
40600
40601 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
40602$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
ea04106b
AX
40603
40604
40605cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40606/* confdefs.h. */
40607_ACEOF
40608cat confdefs.h >>conftest.$ac_ext
40609cat >>conftest.$ac_ext <<_ACEOF
40610/* end confdefs.h. */
ea04106b
AX
40611
40612
4d815aed 40613 #include <linux/fs.h>
ea04106b
AX
40614
40615int
40616main (void)
40617{
40618
42f7b73b
AX
40619 struct inode inode;
40620 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
ea04106b
AX
40621
40622 ;
40623 return 0;
40624}
40625
40626_ACEOF
40627
40628
40629
40630cat - <<_ACEOF >conftest.h
40631
40632_ACEOF
40633
40634
40635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40636 echo "obj-m := conftest.o" >build/Makefile
40637 modpost_flag=''
40638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40639 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40641 (eval $ac_try) 2>&5
40642 ac_status=$?
cae5b340
AX
40643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40646 (eval $ac_try) 2>&5
40647 ac_status=$?
cae5b340
AX
40648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; }; then
ea04106b 40650
cae5b340 40651 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40652$as_echo "yes" >&6; }
40653
cae5b340 40654cat >>confdefs.h <<\_ACEOF
42f7b73b 40655#define HAVE_INODE_SET_FLAGS 1
cae5b340 40656_ACEOF
ea04106b
AX
40657
40658
40659else
40660 $as_echo "$as_me: failed program was:" >&5
40661sed 's/^/| /' conftest.$ac_ext >&5
40662
cae5b340 40663 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40664$as_echo "no" >&6; }
4d815aed
AX
40665
40666
40667
40668fi
cae5b340 40669
4d815aed
AX
40670 rm -Rf build
40671
40672
40673
42f7b73b
AX
40674
40675 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
40676$as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
ea04106b
AX
40677
40678
40679cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40680/* confdefs.h. */
40681_ACEOF
40682cat confdefs.h >>conftest.$ac_ext
40683cat >>conftest.$ac_ext <<_ACEOF
40684/* end confdefs.h. */
ea04106b
AX
40685
40686
42f7b73b 40687 #include <linux/iversion.h>
ea04106b
AX
40688
40689int
40690main (void)
40691{
40692
42f7b73b
AX
40693 struct inode inode;
40694 inode_set_iversion(&inode, 1);
ea04106b
AX
40695
40696 ;
40697 return 0;
40698}
40699
40700_ACEOF
40701
40702
40703
40704cat - <<_ACEOF >conftest.h
40705
40706_ACEOF
40707
40708
40709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40710 echo "obj-m := conftest.o" >build/Makefile
40711 modpost_flag=''
40712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40713 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40715 (eval $ac_try) 2>&5
40716 ac_status=$?
cae5b340
AX
40717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40720 (eval $ac_try) 2>&5
40721 ac_status=$?
cae5b340
AX
40722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); }; }; then
ea04106b 40724
cae5b340 40725 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40726$as_echo "yes" >&6; }
40727
cae5b340 40728cat >>confdefs.h <<\_ACEOF
42f7b73b 40729#define HAVE_INODE_SET_IVERSION 1
cae5b340 40730_ACEOF
ea04106b
AX
40731
40732
40733else
40734 $as_echo "$as_me: failed program was:" >&5
40735sed 's/^/| /' conftest.$ac_ext >&5
40736
cae5b340 40737 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40738$as_echo "no" >&6; }
4d815aed
AX
40739
40740
40741
40742fi
cae5b340 40743
4d815aed
AX
40744 rm -Rf build
40745
40746
40747
68d83c55 40748
42f7b73b
AX
40749 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
40750$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
40751
40752
40753cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40754/* confdefs.h. */
40755_ACEOF
40756cat confdefs.h >>conftest.$ac_ext
40757cat >>conftest.$ac_ext <<_ACEOF
40758/* end confdefs.h. */
ea04106b
AX
40759
40760
4d815aed 40761 #include <linux/fs.h>
ea04106b
AX
40762
40763int
40764main (void)
40765{
40766
42f7b73b 40767 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
40768
40769 ;
40770 return 0;
40771}
40772
40773_ACEOF
40774
40775
40776
40777cat - <<_ACEOF >conftest.h
40778
40779_ACEOF
40780
40781
40782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40783 echo "obj-m := conftest.o" >build/Makefile
40784 modpost_flag=''
40785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40788 (eval $ac_try) 2>&5
40789 ac_status=$?
cae5b340
AX
40790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40793 (eval $ac_try) 2>&5
40794 ac_status=$?
cae5b340
AX
40795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); }; }; then
ea04106b 40797
cae5b340 40798 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40799$as_echo "yes" >&6; }
40800
cae5b340 40801cat >>confdefs.h <<\_ACEOF
42f7b73b 40802#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
cae5b340 40803_ACEOF
ea04106b
AX
40804
40805
40806else
40807 $as_echo "$as_me: failed program was:" >&5
40808sed 's/^/| /' conftest.$ac_ext >&5
40809
cae5b340 40810 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 40811$as_echo "no" >&6; }
ea04106b
AX
40812
40813
ea04106b 40814
e10b0808 40815fi
cae5b340 40816
e10b0808 40817 rm -Rf build
ea04106b 40818
ea04106b
AX
40819
40820
ea04106b 40821
42f7b73b
AX
40822 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
40823$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
40824
e10b0808
AX
40825
40826
40827cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40828/* confdefs.h. */
40829_ACEOF
40830cat confdefs.h >>conftest.$ac_ext
40831cat >>conftest.$ac_ext <<_ACEOF
40832/* end confdefs.h. */
e10b0808
AX
40833
40834
e10b0808 40835 #include <linux/fs.h>
42f7b73b
AX
40836
40837 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
40838 static struct super_operations sops __attribute__ ((unused)) = {
40839 .show_options = show_options,
40840 };
ea04106b
AX
40841
40842int
40843main (void)
40844{
40845
40846
40847 ;
40848 return 0;
40849}
40850
40851_ACEOF
40852
40853
40854
40855cat - <<_ACEOF >conftest.h
40856
40857_ACEOF
40858
40859
40860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40861 echo "obj-m := conftest.o" >build/Makefile
40862 modpost_flag=''
40863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40866 (eval $ac_try) 2>&5
40867 ac_status=$?
cae5b340
AX
40868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40871 (eval $ac_try) 2>&5
40872 ac_status=$?
cae5b340
AX
40873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); }; }; then
ea04106b 40875
cae5b340 40876 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40877$as_echo "yes" >&6; }
40878
cae5b340 40879cat >>confdefs.h <<\_ACEOF
42f7b73b 40880#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
cae5b340 40881_ACEOF
ea04106b
AX
40882
40883
40884else
40885 $as_echo "$as_me: failed program was:" >&5
40886sed 's/^/| /' conftest.$ac_ext >&5
40887
cae5b340 40888 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40889$as_echo "no" >&6; }
40890
40891
40892
40893fi
cae5b340 40894
ea04106b
AX
40895 rm -Rf build
40896
40897
40898
40899
42f7b73b
AX
40900 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
40901$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
40902
40903
40904cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40905/* confdefs.h. */
40906_ACEOF
40907cat confdefs.h >>conftest.$ac_ext
40908cat >>conftest.$ac_ext <<_ACEOF
40909/* end confdefs.h. */
ea04106b
AX
40910
40911
e10b0808 40912 #include <linux/fs.h>
68d83c55 40913
ea04106b
AX
40914int
40915main (void)
40916{
40917
42f7b73b
AX
40918 struct file *f = NULL;
40919 file_inode(f);
ea04106b
AX
40920
40921 ;
40922 return 0;
40923}
40924
40925_ACEOF
40926
40927
40928
40929cat - <<_ACEOF >conftest.h
40930
40931_ACEOF
40932
40933
40934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40935 echo "obj-m := conftest.o" >build/Makefile
40936 modpost_flag=''
40937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 40938 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 40939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40940 (eval $ac_try) 2>&5
40941 ac_status=$?
cae5b340
AX
40942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40945 (eval $ac_try) 2>&5
40946 ac_status=$?
cae5b340
AX
40947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); }; }; then
ea04106b 40949
cae5b340 40950 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40951$as_echo "yes" >&6; }
40952
cae5b340 40953cat >>confdefs.h <<\_ACEOF
42f7b73b 40954#define HAVE_FILE_INODE 1
cae5b340 40955_ACEOF
ea04106b
AX
40956
40957
40958else
40959 $as_echo "$as_me: failed program was:" >&5
40960sed 's/^/| /' conftest.$ac_ext >&5
40961
cae5b340 40962 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40963$as_echo "no" >&6; }
40964
40965
40966
40967fi
cae5b340 40968
ea04106b
AX
40969 rm -Rf build
40970
40971
40972
4d815aed 40973
42f7b73b
AX
40974 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
40975$as_echo_n "checking whether file_dentry() is available... " >&6; }
ea04106b
AX
40976
40977
40978cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40979/* confdefs.h. */
40980_ACEOF
40981cat confdefs.h >>conftest.$ac_ext
40982cat >>conftest.$ac_ext <<_ACEOF
40983/* end confdefs.h. */
ea04106b
AX
40984
40985
40986 #include <linux/fs.h>
e10b0808 40987
ea04106b
AX
40988int
40989main (void)
40990{
40991
42f7b73b
AX
40992 struct file *f = NULL;
40993 file_dentry(f);
ea04106b
AX
40994
40995 ;
40996 return 0;
40997}
40998
40999_ACEOF
41000
41001
41002
41003cat - <<_ACEOF >conftest.h
41004
41005_ACEOF
41006
41007
41008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41009 echo "obj-m := conftest.o" >build/Makefile
41010 modpost_flag=''
41011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41012 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41014 (eval $ac_try) 2>&5
41015 ac_status=$?
cae5b340
AX
41016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41019 (eval $ac_try) 2>&5
41020 ac_status=$?
cae5b340
AX
41021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); }; }; then
ea04106b 41023
cae5b340 41024 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
41025$as_echo "yes" >&6; }
41026
cae5b340 41027cat >>confdefs.h <<\_ACEOF
42f7b73b 41028#define HAVE_FILE_DENTRY 1
cae5b340 41029_ACEOF
68d83c55
AX
41030
41031
e10b0808
AX
41032else
41033 $as_echo "$as_me: failed program was:" >&5
41034sed 's/^/| /' conftest.$ac_ext >&5
41035
cae5b340 41036 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 41037$as_echo "no" >&6; }
ea04106b 41038
ea04106b 41039
e10b0808
AX
41040
41041fi
cae5b340 41042
e10b0808
AX
41043 rm -Rf build
41044
41045
41046
41047
42f7b73b
AX
41048 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
41049$as_echo_n "checking whether fops->fsync() wants... " >&6; }
41050
ea04106b
AX
41051
41052
41053cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41054/* confdefs.h. */
41055_ACEOF
41056cat confdefs.h >>conftest.$ac_ext
41057cat >>conftest.$ac_ext <<_ACEOF
41058/* end confdefs.h. */
ea04106b
AX
41059
41060
e10b0808 41061 #include <linux/fs.h>
4d815aed 41062
42f7b73b
AX
41063 int test_fsync(struct file *f, struct dentry *dentry, int x)
41064 { return 0; }
4d815aed 41065
42f7b73b
AX
41066 static const struct file_operations
41067 fops __attribute__ ((unused)) = {
41068 .fsync = test_fsync,
4d815aed 41069 };
ea04106b
AX
41070
41071int
41072main (void)
41073{
41074
ea04106b
AX
41075
41076 ;
41077 return 0;
41078}
41079
41080_ACEOF
41081
41082
41083
41084cat - <<_ACEOF >conftest.h
41085
41086_ACEOF
41087
41088
41089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41090 echo "obj-m := conftest.o" >build/Makefile
41091 modpost_flag=''
41092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41093 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41095 (eval $ac_try) 2>&5
41096 ac_status=$?
cae5b340
AX
41097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41100 (eval $ac_try) 2>&5
41101 ac_status=$?
cae5b340
AX
41102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103 (exit $ac_status); }; }; then
ea04106b 41104
42f7b73b
AX
41105 { $as_echo "$as_me:$LINENO: result: dentry" >&5
41106$as_echo "dentry" >&6; }
ea04106b 41107
cae5b340 41108cat >>confdefs.h <<\_ACEOF
42f7b73b 41109#define HAVE_FSYNC_WITH_DENTRY 1
cae5b340 41110_ACEOF
ea04106b
AX
41111
41112
41113else
41114 $as_echo "$as_me: failed program was:" >&5
41115sed 's/^/| /' conftest.$ac_ext >&5
41116
ea04106b
AX
41117
41118
41119
41120fi
cae5b340 41121
ea04106b
AX
41122 rm -Rf build
41123
41124
41125
4d815aed 41126
ea04106b
AX
41127
41128
41129cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41130/* confdefs.h. */
41131_ACEOF
41132cat confdefs.h >>conftest.$ac_ext
41133cat >>conftest.$ac_ext <<_ACEOF
41134/* end confdefs.h. */
ea04106b
AX
41135
41136
ea04106b 41137 #include <linux/fs.h>
4d815aed 41138
42f7b73b 41139 int test_fsync(struct file *f, int x) { return 0; }
4d815aed 41140
42f7b73b
AX
41141 static const struct file_operations
41142 fops __attribute__ ((unused)) = {
41143 .fsync = test_fsync,
4d815aed 41144 };
ea04106b
AX
41145
41146int
41147main (void)
41148{
41149
ea04106b
AX
41150
41151 ;
41152 return 0;
41153}
41154
41155_ACEOF
41156
41157
41158
41159cat - <<_ACEOF >conftest.h
41160
41161_ACEOF
41162
41163
41164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41165 echo "obj-m := conftest.o" >build/Makefile
41166 modpost_flag=''
41167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41168 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41170 (eval $ac_try) 2>&5
41171 ac_status=$?
cae5b340
AX
41172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41175 (eval $ac_try) 2>&5
41176 ac_status=$?
cae5b340
AX
41177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); }; }; then
ea04106b 41179
42f7b73b
AX
41180 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
41181$as_echo "no dentry" >&6; }
ea04106b 41182
cae5b340 41183cat >>confdefs.h <<\_ACEOF
42f7b73b 41184#define HAVE_FSYNC_WITHOUT_DENTRY 1
cae5b340 41185_ACEOF
68d83c55
AX
41186
41187
ea04106b
AX
41188else
41189 $as_echo "$as_me: failed program was:" >&5
41190sed 's/^/| /' conftest.$ac_ext >&5
41191
ea04106b
AX
41192
41193
41194
41195fi
cae5b340 41196
ea04106b
AX
41197 rm -Rf build
41198
41199
41200
41201
ea04106b
AX
41202
41203
41204cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41205/* confdefs.h. */
41206_ACEOF
41207cat confdefs.h >>conftest.$ac_ext
41208cat >>conftest.$ac_ext <<_ACEOF
41209/* end confdefs.h. */
ea04106b
AX
41210
41211
ea04106b 41212 #include <linux/fs.h>
ea04106b 41213
42f7b73b
AX
41214 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
41215 { return 0; }
4d815aed 41216
42f7b73b
AX
41217 static const struct file_operations
41218 fops __attribute__ ((unused)) = {
41219 .fsync = test_fsync,
4d815aed
AX
41220 };
41221
ea04106b
AX
41222int
41223main (void)
41224{
41225
ea04106b
AX
41226
41227 ;
41228 return 0;
41229}
41230
41231_ACEOF
41232
41233
41234
41235cat - <<_ACEOF >conftest.h
41236
41237_ACEOF
41238
41239
41240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41241 echo "obj-m := conftest.o" >build/Makefile
41242 modpost_flag=''
41243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41244 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41246 (eval $ac_try) 2>&5
41247 ac_status=$?
cae5b340
AX
41248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41251 (eval $ac_try) 2>&5
41252 ac_status=$?
cae5b340
AX
41253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
ea04106b 41255
42f7b73b
AX
41256 { $as_echo "$as_me:$LINENO: result: range" >&5
41257$as_echo "range" >&6; }
ea04106b 41258
cae5b340 41259cat >>confdefs.h <<\_ACEOF
42f7b73b 41260#define HAVE_FSYNC_RANGE 1
cae5b340 41261_ACEOF
ea04106b
AX
41262
41263
41264else
41265 $as_echo "$as_me: failed program was:" >&5
41266sed 's/^/| /' conftest.$ac_ext >&5
41267
ea04106b
AX
41268
41269
41270
41271fi
cae5b340 41272
ea04106b
AX
41273 rm -Rf build
41274
41275
41276
e10b0808 41277
42f7b73b
AX
41278
41279 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
41280$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
ea04106b
AX
41281
41282
41283cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41284/* confdefs.h. */
41285_ACEOF
41286cat confdefs.h >>conftest.$ac_ext
41287cat >>conftest.$ac_ext <<_ACEOF
41288/* end confdefs.h. */
ea04106b
AX
41289
41290
ea04106b 41291 #include <linux/fs.h>
42f7b73b
AX
41292 void evict_inode (struct inode * t) { return; }
41293 static struct super_operations sops __attribute__ ((unused)) = {
41294 .evict_inode = evict_inode,
4d815aed 41295 };
ea04106b 41296
ea04106b
AX
41297int
41298main (void)
41299{
41300
ea04106b
AX
41301
41302 ;
41303 return 0;
41304}
41305
41306_ACEOF
41307
41308
41309
41310cat - <<_ACEOF >conftest.h
41311
41312_ACEOF
41313
41314
41315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41316 echo "obj-m := conftest.o" >build/Makefile
41317 modpost_flag=''
41318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41319 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41321 (eval $ac_try) 2>&5
41322 ac_status=$?
cae5b340
AX
41323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41326 (eval $ac_try) 2>&5
41327 ac_status=$?
cae5b340
AX
41328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); }; }; then
ea04106b 41330
cae5b340 41331 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
41332$as_echo "yes" >&6; }
41333
cae5b340 41334cat >>confdefs.h <<\_ACEOF
42f7b73b 41335#define HAVE_EVICT_INODE 1
cae5b340 41336_ACEOF
e10b0808 41337
ea04106b
AX
41338
41339else
41340 $as_echo "$as_me: failed program was:" >&5
41341sed 's/^/| /' conftest.$ac_ext >&5
41342
cae5b340 41343 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 41344$as_echo "no" >&6; }
ea04106b
AX
41345
41346
41347
41348fi
cae5b340 41349
ea04106b
AX
41350 rm -Rf build
41351
41352
41353
41354
42f7b73b
AX
41355 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
41356$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
ea04106b
AX
41357
41358
41359cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41360/* confdefs.h. */
41361_ACEOF
41362cat confdefs.h >>conftest.$ac_ext
41363cat >>conftest.$ac_ext <<_ACEOF
41364/* end confdefs.h. */
ea04106b
AX
41365
41366
41367 #include <linux/fs.h>
e10b0808 41368
42f7b73b 41369 void dirty_inode(struct inode *a, int b) { return; }
22929307 41370
42f7b73b
AX
41371 static const struct super_operations
41372 sops __attribute__ ((unused)) = {
41373 .dirty_inode = dirty_inode,
22929307
AX
41374 };
41375
ea04106b
AX
41376int
41377main (void)
41378{
41379
ea04106b
AX
41380
41381 ;
41382 return 0;
41383}
41384
41385_ACEOF
41386
41387
41388
41389cat - <<_ACEOF >conftest.h
41390
41391_ACEOF
41392
41393
41394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41395 echo "obj-m := conftest.o" >build/Makefile
41396 modpost_flag=''
41397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41398 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41400 (eval $ac_try) 2>&5
41401 ac_status=$?
cae5b340
AX
41402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41405 (eval $ac_try) 2>&5
41406 ac_status=$?
cae5b340
AX
41407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408 (exit $ac_status); }; }; then
ea04106b 41409
cae5b340 41410 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41411$as_echo "yes" >&6; }
41412
cae5b340 41413cat >>confdefs.h <<\_ACEOF
42f7b73b 41414#define HAVE_DIRTY_INODE_WITH_FLAGS 1
cae5b340 41415_ACEOF
ea04106b
AX
41416
41417
41418else
41419 $as_echo "$as_me: failed program was:" >&5
41420sed 's/^/| /' conftest.$ac_ext >&5
41421
cae5b340 41422 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41423$as_echo "no" >&6; }
41424
41425
41426
41427fi
cae5b340 41428
ea04106b
AX
41429 rm -Rf build
41430
41431
41432
e10b0808 41433
42f7b73b
AX
41434 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
41435$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
ea04106b
AX
41436
41437
41438cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41439/* confdefs.h. */
41440_ACEOF
41441cat confdefs.h >>conftest.$ac_ext
41442cat >>conftest.$ac_ext <<_ACEOF
41443/* end confdefs.h. */
ea04106b
AX
41444
41445
41446 #include <linux/fs.h>
e10b0808 41447
42f7b73b 41448 int nr_cached_objects(struct super_block *sb) { return 0; }
22929307 41449
42f7b73b
AX
41450 static const struct super_operations
41451 sops __attribute__ ((unused)) = {
41452 .nr_cached_objects = nr_cached_objects,
e10b0808 41453 };
ea04106b
AX
41454
41455int
41456main (void)
41457{
41458
ea04106b
AX
41459
41460 ;
41461 return 0;
41462}
41463
41464_ACEOF
41465
41466
41467
41468cat - <<_ACEOF >conftest.h
41469
41470_ACEOF
41471
41472
41473 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41474 echo "obj-m := conftest.o" >build/Makefile
41475 modpost_flag=''
41476 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41477 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41479 (eval $ac_try) 2>&5
41480 ac_status=$?
cae5b340
AX
41481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41484 (eval $ac_try) 2>&5
41485 ac_status=$?
cae5b340
AX
41486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
ea04106b 41488
cae5b340 41489 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
41490$as_echo "yes" >&6; }
41491
cae5b340 41492cat >>confdefs.h <<\_ACEOF
42f7b73b 41493#define HAVE_NR_CACHED_OBJECTS 1
cae5b340 41494_ACEOF
ea04106b
AX
41495
41496
41497else
41498 $as_echo "$as_me: failed program was:" >&5
41499sed 's/^/| /' conftest.$ac_ext >&5
41500
cae5b340 41501 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41502$as_echo "no" >&6; }
41503
41504
41505
41506fi
cae5b340 41507
ea04106b
AX
41508 rm -Rf build
41509
41510
41511
41512
42f7b73b
AX
41513 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
41514$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
cae5b340
AX
41515
41516
41517cat confdefs.h - <<_ACEOF >conftest.c
41518/* confdefs.h. */
41519_ACEOF
41520cat confdefs.h >>conftest.$ac_ext
41521cat >>conftest.$ac_ext <<_ACEOF
41522/* end confdefs.h. */
41523
41524
41525 #include <linux/fs.h>
41526
42f7b73b
AX
41527 void free_cached_objects(struct super_block *sb, int x)
41528 { return; }
41529
41530 static const struct super_operations
41531 sops __attribute__ ((unused)) = {
41532 .free_cached_objects = free_cached_objects,
41533 };
41534
cae5b340
AX
41535int
41536main (void)
41537{
41538
cae5b340
AX
41539
41540 ;
41541 return 0;
41542}
41543
41544_ACEOF
41545
41546
41547
41548cat - <<_ACEOF >conftest.h
41549
41550_ACEOF
41551
41552
41553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41554 echo "obj-m := conftest.o" >build/Makefile
41555 modpost_flag=''
41556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
41558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559 (eval $ac_try) 2>&5
41560 ac_status=$?
41561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564 (eval $ac_try) 2>&5
41565 ac_status=$?
41566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); }; }; then
41568
41569 { $as_echo "$as_me:$LINENO: result: yes" >&5
41570$as_echo "yes" >&6; }
41571
41572cat >>confdefs.h <<\_ACEOF
42f7b73b 41573#define HAVE_FREE_CACHED_OBJECTS 1
cae5b340
AX
41574_ACEOF
41575
41576
41577else
41578 $as_echo "$as_me: failed program was:" >&5
41579sed 's/^/| /' conftest.$ac_ext >&5
41580
41581 { $as_echo "$as_me:$LINENO: result: no" >&5
41582$as_echo "no" >&6; }
41583
41584
41585
41586fi
41587
41588 rm -Rf build
41589
41590
41591
41592
42f7b73b
AX
41593
41594 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
41595$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
ea04106b
AX
41596
41597
41598cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41599/* confdefs.h. */
41600_ACEOF
41601cat confdefs.h >>conftest.$ac_ext
41602cat >>conftest.$ac_ext <<_ACEOF
41603/* end confdefs.h. */
ea04106b
AX
41604
41605
41606 #include <linux/fs.h>
41607
42f7b73b
AX
41608 long test_fallocate(struct file *file, int mode,
41609 loff_t offset, loff_t len) { return 0; }
41610
41611 static const struct file_operations
41612 fops __attribute__ ((unused)) = {
41613 .fallocate = test_fallocate,
41614 };
41615
ea04106b
AX
41616int
41617main (void)
41618{
41619
ea04106b
AX
41620
41621 ;
41622 return 0;
41623}
41624
41625_ACEOF
41626
41627
41628
41629cat - <<_ACEOF >conftest.h
41630
41631_ACEOF
41632
41633
41634 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41635 echo "obj-m := conftest.o" >build/Makefile
41636 modpost_flag=''
41637 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41638 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41640 (eval $ac_try) 2>&5
41641 ac_status=$?
cae5b340
AX
41642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41645 (eval $ac_try) 2>&5
41646 ac_status=$?
cae5b340
AX
41647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648 (exit $ac_status); }; }; then
ea04106b 41649
cae5b340 41650 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41651$as_echo "yes" >&6; }
41652
cae5b340 41653cat >>confdefs.h <<\_ACEOF
42f7b73b 41654#define HAVE_FILE_FALLOCATE 1
cae5b340 41655_ACEOF
ea04106b
AX
41656
41657
41658else
41659 $as_echo "$as_me: failed program was:" >&5
41660sed 's/^/| /' conftest.$ac_ext >&5
41661
cae5b340 41662 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41663$as_echo "no" >&6; }
41664
41665
41666
41667fi
cae5b340 41668
ea04106b
AX
41669 rm -Rf build
41670
41671
41672
41673
42f7b73b
AX
41674 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
41675$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
ea04106b
AX
41676
41677
41678cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41679/* confdefs.h. */
41680_ACEOF
41681cat confdefs.h >>conftest.$ac_ext
41682cat >>conftest.$ac_ext <<_ACEOF
41683/* end confdefs.h. */
ea04106b
AX
41684
41685
41686 #include <linux/fs.h>
e10b0808 41687
42f7b73b
AX
41688 long test_fallocate(struct inode *inode, int mode,
41689 loff_t offset, loff_t len) { return 0; }
41690
41691 static const struct inode_operations
41692 fops __attribute__ ((unused)) = {
41693 .fallocate = test_fallocate,
e10b0808 41694 };
ea04106b
AX
41695
41696int
41697main (void)
41698{
41699
ea04106b
AX
41700
41701 ;
41702 return 0;
41703}
41704
41705_ACEOF
41706
41707
41708
41709cat - <<_ACEOF >conftest.h
41710
41711_ACEOF
41712
41713
41714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41715 echo "obj-m := conftest.o" >build/Makefile
41716 modpost_flag=''
41717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41718 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41720 (eval $ac_try) 2>&5
41721 ac_status=$?
cae5b340
AX
41722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41725 (eval $ac_try) 2>&5
41726 ac_status=$?
cae5b340
AX
41727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; }; then
ea04106b 41729
cae5b340 41730 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 41731$as_echo "yes" >&6; }
e10b0808 41732
cae5b340 41733cat >>confdefs.h <<\_ACEOF
42f7b73b 41734#define HAVE_INODE_FALLOCATE 1
cae5b340 41735_ACEOF
ea04106b
AX
41736
41737
41738else
41739 $as_echo "$as_me: failed program was:" >&5
41740sed 's/^/| /' conftest.$ac_ext >&5
41741
cae5b340 41742 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 41743$as_echo "no" >&6; }
ea04106b
AX
41744
41745
41746
41747fi
cae5b340 41748
ea04106b
AX
41749 rm -Rf build
41750
41751
41752
41753
42f7b73b
AX
41754
41755 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
41756$as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
ea04106b
AX
41757
41758
41759cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41760/* confdefs.h. */
41761_ACEOF
41762cat confdefs.h >>conftest.$ac_ext
41763cat >>conftest.$ac_ext <<_ACEOF
41764/* end confdefs.h. */
ea04106b
AX
41765
41766
41767 #include <linux/fs.h>
41768
42f7b73b
AX
41769 static const struct file_operations
41770 fops __attribute__ ((unused)) = {
41771 .aio_fsync = NULL,
41772 };
41773
ea04106b
AX
41774int
41775main (void)
41776{
41777
41778
41779 ;
41780 return 0;
41781}
41782
41783_ACEOF
41784
41785
41786
41787cat - <<_ACEOF >conftest.h
41788
41789_ACEOF
41790
41791
41792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41793 echo "obj-m := conftest.o" >build/Makefile
41794 modpost_flag=''
41795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
41797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41798 (eval $ac_try) 2>&5
41799 ac_status=$?
41800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41803 (eval $ac_try) 2>&5
41804 ac_status=$?
41805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41806 (exit $ac_status); }; }; then
41807
41808 { $as_echo "$as_me:$LINENO: result: yes" >&5
41809$as_echo "yes" >&6; }
41810
41811cat >>confdefs.h <<\_ACEOF
42f7b73b 41812#define HAVE_FILE_AIO_FSYNC 1
cae5b340
AX
41813_ACEOF
41814
41815
41816else
41817 $as_echo "$as_me: failed program was:" >&5
41818sed 's/^/| /' conftest.$ac_ext >&5
41819
41820 { $as_echo "$as_me:$LINENO: result: no" >&5
41821$as_echo "no" >&6; }
41822
41823
41824
41825fi
41826
41827 rm -Rf build
41828
41829
41830
41831
42f7b73b
AX
41832 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
41833$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
cae5b340
AX
41834
41835
41836cat confdefs.h - <<_ACEOF >conftest.c
41837/* confdefs.h. */
41838_ACEOF
41839cat confdefs.h >>conftest.$ac_ext
41840cat >>conftest.$ac_ext <<_ACEOF
41841/* end confdefs.h. */
41842
41843
41844 #include <linux/fs.h>
41845
42f7b73b
AX
41846 int mkdir(struct inode *inode, struct dentry *dentry,
41847 umode_t umode) { return 0; }
41848
41849 static const struct inode_operations
41850 iops __attribute__ ((unused)) = {
41851 .mkdir = mkdir,
41852 };
41853
cae5b340
AX
41854int
41855main (void)
41856{
41857
cae5b340
AX
41858
41859 ;
41860 return 0;
41861}
41862
41863_ACEOF
41864
41865
41866
41867cat - <<_ACEOF >conftest.h
41868
41869_ACEOF
41870
41871
41872 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41873 echo "obj-m := conftest.o" >build/Makefile
41874 modpost_flag=''
41875 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41876 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41878 (eval $ac_try) 2>&5
41879 ac_status=$?
cae5b340
AX
41880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41883 (eval $ac_try) 2>&5
41884 ac_status=$?
cae5b340
AX
41885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41886 (exit $ac_status); }; }; then
ea04106b 41887
cae5b340 41888 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 41889$as_echo "yes" >&6; }
ea04106b 41890
cae5b340 41891cat >>confdefs.h <<\_ACEOF
42f7b73b 41892#define HAVE_MKDIR_UMODE_T 1
cae5b340 41893_ACEOF
ea04106b
AX
41894
41895
41896else
41897 $as_echo "$as_me: failed program was:" >&5
41898sed 's/^/| /' conftest.$ac_ext >&5
41899
cae5b340 41900 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 41901$as_echo "no" >&6; }
ea04106b
AX
41902
41903
41904
41905fi
cae5b340 41906
ea04106b
AX
41907 rm -Rf build
41908
41909
41910
41911
42f7b73b
AX
41912 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
41913$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
ea04106b
AX
41914
41915
41916cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41917/* confdefs.h. */
41918_ACEOF
41919cat confdefs.h >>conftest.$ac_ext
41920cat >>conftest.$ac_ext <<_ACEOF
41921/* end confdefs.h. */
ea04106b
AX
41922
41923
41924 #include <linux/fs.h>
42f7b73b 41925 #include <linux/sched.h>
ea04106b 41926
42f7b73b
AX
41927 struct dentry *inode_lookup(struct inode *inode,
41928 struct dentry *dentry, struct nameidata *nidata)
41929 { return NULL; }
4d815aed 41930
42f7b73b
AX
41931 static const struct inode_operations iops
41932 __attribute__ ((unused)) = {
41933 .lookup = inode_lookup,
4d815aed
AX
41934 };
41935
ea04106b
AX
41936int
41937main (void)
41938{
41939
41940
41941 ;
41942 return 0;
41943}
41944
41945_ACEOF
41946
41947
41948
41949cat - <<_ACEOF >conftest.h
41950
41951_ACEOF
41952
41953
41954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41955 echo "obj-m := conftest.o" >build/Makefile
41956 modpost_flag=''
41957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 41958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 41959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41960 (eval $ac_try) 2>&5
41961 ac_status=$?
cae5b340
AX
41962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41965 (eval $ac_try) 2>&5
41966 ac_status=$?
cae5b340
AX
41967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); }; }; then
ea04106b 41969
42f7b73b
AX
41970 { $as_echo "$as_me:$LINENO: result: yes" >&5
41971$as_echo "yes" >&6; }
ea04106b 41972
cae5b340 41973cat >>confdefs.h <<\_ACEOF
42f7b73b 41974#define HAVE_LOOKUP_NAMEIDATA 1
cae5b340 41975_ACEOF
ea04106b
AX
41976
41977
41978else
41979 $as_echo "$as_me: failed program was:" >&5
41980sed 's/^/| /' conftest.$ac_ext >&5
41981
42f7b73b
AX
41982 { $as_echo "$as_me:$LINENO: result: no" >&5
41983$as_echo "no" >&6; }
ea04106b
AX
41984
41985
41986
41987fi
cae5b340 41988
ea04106b
AX
41989 rm -Rf build
41990
41991
41992
41993
42f7b73b
AX
41994 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
41995$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
41996
41997
41998cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41999/* confdefs.h. */
42000_ACEOF
42001cat confdefs.h >>conftest.$ac_ext
42002cat >>conftest.$ac_ext <<_ACEOF
42003/* end confdefs.h. */
ea04106b
AX
42004
42005
42006 #include <linux/fs.h>
42f7b73b 42007 #include <linux/sched.h>
ea04106b 42008
42f7b73b
AX
42009 #ifdef HAVE_MKDIR_UMODE_T
42010 int inode_create(struct inode *inode ,struct dentry *dentry,
42011 umode_t umode, struct nameidata *nidata) { return 0; }
42012 #else
42013 int inode_create(struct inode *inode,struct dentry *dentry,
42014 int umode, struct nameidata * nidata) { return 0; }
42015 #endif
4d815aed 42016
42f7b73b
AX
42017 static const struct inode_operations
42018 iops __attribute__ ((unused)) = {
42019 .create = inode_create,
4d815aed
AX
42020 };
42021
ea04106b
AX
42022int
42023main (void)
42024{
42025
42026
42027 ;
42028 return 0;
42029}
42030
42031_ACEOF
42032
42033
42034
42035cat - <<_ACEOF >conftest.h
42036
42037_ACEOF
42038
42039
42040 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42041 echo "obj-m := conftest.o" >build/Makefile
42042 modpost_flag=''
42043 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42044 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42046 (eval $ac_try) 2>&5
42047 ac_status=$?
cae5b340
AX
42048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42051 (eval $ac_try) 2>&5
42052 ac_status=$?
cae5b340
AX
42053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054 (exit $ac_status); }; }; then
ea04106b 42055
42f7b73b
AX
42056 { $as_echo "$as_me:$LINENO: result: yes" >&5
42057$as_echo "yes" >&6; }
ea04106b 42058
cae5b340 42059cat >>confdefs.h <<\_ACEOF
42f7b73b 42060#define HAVE_CREATE_NAMEIDATA 1
cae5b340 42061_ACEOF
ea04106b
AX
42062
42063
42064else
42065 $as_echo "$as_me: failed program was:" >&5
42066sed 's/^/| /' conftest.$ac_ext >&5
42067
42f7b73b
AX
42068 { $as_echo "$as_me:$LINENO: result: no" >&5
42069$as_echo "no" >&6; }
ea04106b
AX
42070
42071
42072
42073fi
cae5b340 42074
ea04106b
AX
42075 rm -Rf build
42076
42077
42078
42079
42f7b73b
AX
42080 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
42081$as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
ea04106b
AX
42082
42083
42084cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42085/* confdefs.h. */
42086_ACEOF
42087cat confdefs.h >>conftest.$ac_ext
42088cat >>conftest.$ac_ext <<_ACEOF
42089/* end confdefs.h. */
ea04106b
AX
42090
42091
42092 #include <linux/fs.h>
42f7b73b
AX
42093 const char *get_link(struct dentry *de, struct inode *ip,
42094 struct delayed_call *done) { return "symlink"; }
42095 static struct inode_operations
42096 iops __attribute__ ((unused)) = {
42097 .get_link = get_link,
ea04106b
AX
42098 };
42099
42100int
42101main (void)
42102{
42103
42104
42105 ;
42106 return 0;
42107}
42108
42109_ACEOF
42110
42111
42112
42113cat - <<_ACEOF >conftest.h
42114
42115_ACEOF
42116
42117
42118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42119 echo "obj-m := conftest.o" >build/Makefile
42120 modpost_flag=''
42121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42124 (eval $ac_try) 2>&5
42125 ac_status=$?
cae5b340
AX
42126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42129 (eval $ac_try) 2>&5
42130 ac_status=$?
cae5b340
AX
42131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42132 (exit $ac_status); }; }; then
ea04106b 42133
42f7b73b
AX
42134 { $as_echo "$as_me:$LINENO: result: yes" >&5
42135$as_echo "yes" >&6; }
ea04106b 42136
cae5b340 42137cat >>confdefs.h <<\_ACEOF
42f7b73b 42138#define HAVE_GET_LINK_DELAYED 1
cae5b340 42139_ACEOF
ea04106b
AX
42140
42141
42142else
42143 $as_echo "$as_me: failed program was:" >&5
42144sed 's/^/| /' conftest.$ac_ext >&5
42145
42f7b73b
AX
42146 { $as_echo "$as_me:$LINENO: result: no" >&5
42147$as_echo "no" >&6; }
42148 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
42149$as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
ea04106b
AX
42150
42151
42152cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42153/* confdefs.h. */
42154_ACEOF
42155cat confdefs.h >>conftest.$ac_ext
42156cat >>conftest.$ac_ext <<_ACEOF
42157/* end confdefs.h. */
ea04106b
AX
42158
42159
42f7b73b
AX
42160 #include <linux/fs.h>
42161 const char *get_link(struct dentry *de, struct
42162 inode *ip, void **cookie) { return "symlink"; }
42163 static struct inode_operations
42164 iops __attribute__ ((unused)) = {
42165 .get_link = get_link,
42166 };
e10b0808 42167
ea04106b
AX
42168int
42169main (void)
42170{
42171
ea04106b
AX
42172
42173 ;
42174 return 0;
42175}
42176
42177_ACEOF
42178
42179
42180
42181cat - <<_ACEOF >conftest.h
42182
42183_ACEOF
42184
42185
42186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42187 echo "obj-m := conftest.o" >build/Makefile
42188 modpost_flag=''
42189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42192 (eval $ac_try) 2>&5
42193 ac_status=$?
cae5b340
AX
42194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42197 (eval $ac_try) 2>&5
42198 ac_status=$?
cae5b340
AX
42199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); }; }; then
ea04106b 42201
42f7b73b 42202 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 42203$as_echo "yes" >&6; }
ea04106b 42204
cae5b340 42205cat >>confdefs.h <<\_ACEOF
42f7b73b 42206#define HAVE_GET_LINK_COOKIE 1
cae5b340 42207_ACEOF
ea04106b
AX
42208
42209
42210else
42211 $as_echo "$as_me: failed program was:" >&5
42212sed 's/^/| /' conftest.$ac_ext >&5
42213
42f7b73b 42214 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 42215$as_echo "no" >&6; }
ea04106b 42216
42f7b73b
AX
42217 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
42218$as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
4d815aed 42219
ea04106b
AX
42220
42221cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42222/* confdefs.h. */
42223_ACEOF
42224cat confdefs.h >>conftest.$ac_ext
42225cat >>conftest.$ac_ext <<_ACEOF
42226/* end confdefs.h. */
ea04106b
AX
42227
42228
42229 #include <linux/fs.h>
42f7b73b
AX
42230 const char *follow_link(struct dentry *de,
42231 void **cookie) { return "symlink"; }
42232 static struct inode_operations
42233 iops __attribute__ ((unused)) = {
42234 .follow_link = follow_link,
ea04106b
AX
42235 };
42236
42237int
42238main (void)
42239{
42240
42241
42242 ;
42243 return 0;
42244}
42245
42246_ACEOF
42247
42248
42249
42250cat - <<_ACEOF >conftest.h
42251
42252_ACEOF
42253
42254
42255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42256 echo "obj-m := conftest.o" >build/Makefile
42257 modpost_flag=''
42258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42259 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42261 (eval $ac_try) 2>&5
42262 ac_status=$?
cae5b340
AX
42263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42266 (eval $ac_try) 2>&5
42267 ac_status=$?
cae5b340
AX
42268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269 (exit $ac_status); }; }; then
ea04106b 42270
cae5b340 42271 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 42272$as_echo "yes" >&6; }
ea04106b 42273
cae5b340 42274cat >>confdefs.h <<\_ACEOF
42f7b73b 42275#define HAVE_FOLLOW_LINK_COOKIE 1
cae5b340 42276_ACEOF
ea04106b
AX
42277
42278
42279else
42280 $as_echo "$as_me: failed program was:" >&5
42281sed 's/^/| /' conftest.$ac_ext >&5
42282
42f7b73b 42283 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 42284$as_echo "no" >&6; }
42f7b73b
AX
42285 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
42286$as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
ea04106b
AX
42287
42288
42289cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42290/* confdefs.h. */
42291_ACEOF
42292cat confdefs.h >>conftest.$ac_ext
42293cat >>conftest.$ac_ext <<_ACEOF
42294/* end confdefs.h. */
ea04106b
AX
42295
42296
42297 #include <linux/fs.h>
42f7b73b
AX
42298 void *follow_link(struct dentry *de, struct
42299 nameidata *nd) { return (void *)NULL; }
42300 static struct inode_operations
42301 iops __attribute__ ((unused)) = {
42302 .follow_link = follow_link,
42303 };
ea04106b
AX
42304
42305int
42306main (void)
42307{
42308
ea04106b
AX
42309
42310 ;
42311 return 0;
42312}
42313
42314_ACEOF
42315
42316
42317
42318cat - <<_ACEOF >conftest.h
42319
42320_ACEOF
42321
42322
42323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42324 echo "obj-m := conftest.o" >build/Makefile
42325 modpost_flag=''
42326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42327 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42329 (eval $ac_try) 2>&5
42330 ac_status=$?
cae5b340
AX
42331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42334 (eval $ac_try) 2>&5
42335 ac_status=$?
cae5b340
AX
42336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42337 (exit $ac_status); }; }; then
ea04106b 42338
42f7b73b 42339 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42340$as_echo "yes" >&6; }
42341
cae5b340 42342cat >>confdefs.h <<\_ACEOF
42f7b73b 42343#define HAVE_FOLLOW_LINK_NAMEIDATA 1
cae5b340 42344_ACEOF
ea04106b
AX
42345
42346
42347else
42348 $as_echo "$as_me: failed program was:" >&5
42349sed 's/^/| /' conftest.$ac_ext >&5
42350
42f7b73b
AX
42351 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42352$as_echo "$as_me: error: no; please file a bug report" >&2;}
42353 { (exit 1); exit 1; }; }
42354
42355
42356
42357fi
42358
42359 rm -Rf build
42360
42361
42362
42363
42364
42365fi
42366
42367 rm -Rf build
42368
42369
42370
42371
42372
42373
42374fi
42375
42376 rm -Rf build
42377
42378
ea04106b
AX
42379
42380
42381
42382fi
cae5b340 42383
ea04106b
AX
42384 rm -Rf build
42385
42386
42387
42388
68d83c55
AX
42389
42390
42391cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42392/* confdefs.h. */
42393_ACEOF
42394cat confdefs.h >>conftest.$ac_ext
42395cat >>conftest.$ac_ext <<_ACEOF
42396/* end confdefs.h. */
68d83c55
AX
42397
42398
42f7b73b
AX
42399 #if !defined(HAVE_GET_LINK_DELAYED)
42400 #error "Expecting get_link() delayed done"
42401 #endif
68d83c55
AX
42402
42403int
42404main (void)
42405{
42406
42407
42408 ;
42409 return 0;
42410}
42411
42412_ACEOF
42413
42414
42415
42416cat - <<_ACEOF >conftest.h
42417
42418_ACEOF
42419
42420
42421 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42422 echo "obj-m := conftest.o" >build/Makefile
42423 modpost_flag=''
42424 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42425 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
42427 (eval $ac_try) 2>&5
42428 ac_status=$?
cae5b340
AX
42429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
42432 (eval $ac_try) 2>&5
42433 ac_status=$?
cae5b340
AX
42434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); }; }; then
68d83c55 42436
68d83c55 42437
cae5b340 42438cat >>confdefs.h <<\_ACEOF
42f7b73b 42439#define HAVE_PUT_LINK_DELAYED 1
cae5b340 42440_ACEOF
68d83c55
AX
42441
42442
42443else
42444 $as_echo "$as_me: failed program was:" >&5
42445sed 's/^/| /' conftest.$ac_ext >&5
42446
42f7b73b
AX
42447 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
42448$as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
ea04106b
AX
42449
42450
42451cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42452/* confdefs.h. */
42453_ACEOF
42454cat confdefs.h >>conftest.$ac_ext
42455cat >>conftest.$ac_ext <<_ACEOF
42456/* end confdefs.h. */
ea04106b
AX
42457
42458
42f7b73b
AX
42459 #include <linux/fs.h>
42460 void put_link(struct inode *ip, void *cookie)
42461 { return; }
42462 static struct inode_operations
42463 iops __attribute__ ((unused)) = {
42464 .put_link = put_link,
42465 };
ea04106b
AX
42466
42467int
42468main (void)
42469{
42470
42471
42472 ;
42473 return 0;
42474}
42475
42476_ACEOF
42477
42478
42479
42480cat - <<_ACEOF >conftest.h
42481
42482_ACEOF
42483
42484
42485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42486 echo "obj-m := conftest.o" >build/Makefile
42487 modpost_flag=''
42488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42489 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42491 (eval $ac_try) 2>&5
42492 ac_status=$?
cae5b340
AX
42493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42496 (eval $ac_try) 2>&5
42497 ac_status=$?
cae5b340
AX
42498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499 (exit $ac_status); }; }; then
ea04106b 42500
42f7b73b 42501 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42502$as_echo "yes" >&6; }
ea04106b 42503
cae5b340 42504cat >>confdefs.h <<\_ACEOF
42f7b73b 42505#define HAVE_PUT_LINK_COOKIE 1
cae5b340 42506_ACEOF
ea04106b
AX
42507
42508
42509else
42510 $as_echo "$as_me: failed program was:" >&5
42511sed 's/^/| /' conftest.$ac_ext >&5
42512
42f7b73b 42513 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42514$as_echo "no" >&6; }
42f7b73b
AX
42515 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
42516$as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
ea04106b
AX
42517
42518
42519cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42520/* confdefs.h. */
42521_ACEOF
42522cat confdefs.h >>conftest.$ac_ext
42523cat >>conftest.$ac_ext <<_ACEOF
42524/* end confdefs.h. */
ea04106b
AX
42525
42526
42f7b73b
AX
42527 #include <linux/fs.h>
42528 void put_link(struct dentry *de, struct
42529 nameidata *nd, void *ptr) { return; }
42530 static struct inode_operations
42531 iops __attribute__ ((unused)) = {
42532 .put_link = put_link,
42533 };
ea04106b
AX
42534
42535int
42536main (void)
42537{
42538
42539
42540 ;
42541 return 0;
42542}
42543
42544_ACEOF
42545
42546
42547
42548cat - <<_ACEOF >conftest.h
42549
42550_ACEOF
42551
42552
42553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42554 echo "obj-m := conftest.o" >build/Makefile
42555 modpost_flag=''
42556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42559 (eval $ac_try) 2>&5
42560 ac_status=$?
cae5b340
AX
42561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42564 (eval $ac_try) 2>&5
42565 ac_status=$?
cae5b340
AX
42566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); }; }; then
ea04106b 42568
42f7b73b 42569 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42570$as_echo "yes" >&6; }
ea04106b 42571
cae5b340 42572cat >>confdefs.h <<\_ACEOF
42f7b73b 42573#define HAVE_PUT_LINK_NAMEIDATA 1
cae5b340 42574_ACEOF
ea04106b
AX
42575
42576
42577else
42578 $as_echo "$as_me: failed program was:" >&5
42579sed 's/^/| /' conftest.$ac_ext >&5
42580
42f7b73b
AX
42581 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42582$as_echo "$as_me: error: no; please file a bug report" >&2;}
42583 { (exit 1); exit 1; }; }
ea04106b
AX
42584
42585
42586
42587fi
cae5b340 42588
ea04106b
AX
42589 rm -Rf build
42590
42591
42592
42593
22929307 42594
42f7b73b
AX
42595fi
42596
42597 rm -Rf build
42598
42599
42600
42601
42602
42603fi
42604
42605 rm -Rf build
42606
42607
42608
42609
42610 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
42611$as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
ea04106b
AX
42612
42613
42614cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42615/* confdefs.h. */
42616_ACEOF
42617cat confdefs.h >>conftest.$ac_ext
42618cat >>conftest.$ac_ext <<_ACEOF
42619/* end confdefs.h. */
ea04106b
AX
42620
42621
42622 #include <linux/fs.h>
42f7b73b
AX
42623 int tmpfile(struct inode *inode, struct dentry *dentry,
42624 umode_t mode) { return 0; }
42625 static struct inode_operations
42626 iops __attribute__ ((unused)) = {
42627 .tmpfile = tmpfile,
ea04106b
AX
42628 };
42629
42630int
42631main (void)
42632{
42633
42634
42635 ;
42636 return 0;
42637}
42638
42639_ACEOF
42640
42641
42642
42643cat - <<_ACEOF >conftest.h
42644
42645_ACEOF
42646
42647
42648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42649 echo "obj-m := conftest.o" >build/Makefile
42650 modpost_flag=''
42651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42652 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42654 (eval $ac_try) 2>&5
42655 ac_status=$?
cae5b340
AX
42656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42659 (eval $ac_try) 2>&5
42660 ac_status=$?
cae5b340
AX
42661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); }; }; then
ea04106b 42663
cae5b340 42664 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42665$as_echo "yes" >&6; }
ea04106b 42666
cae5b340 42667cat >>confdefs.h <<\_ACEOF
42f7b73b 42668#define HAVE_TMPFILE 1
cae5b340 42669_ACEOF
ea04106b
AX
42670
42671
42672else
42673 $as_echo "$as_me: failed program was:" >&5
42674sed 's/^/| /' conftest.$ac_ext >&5
42675
cae5b340 42676 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42677$as_echo "no" >&6; }
ea04106b
AX
42678
42679
42680
42681fi
cae5b340 42682
ea04106b
AX
42683 rm -Rf build
42684
42685
42686
42687
42f7b73b
AX
42688 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
42689$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
ea04106b
AX
42690
42691
42692cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42693/* confdefs.h. */
42694_ACEOF
42695cat confdefs.h >>conftest.$ac_ext
42696cat >>conftest.$ac_ext <<_ACEOF
42697/* end confdefs.h. */
ea04106b
AX
42698
42699
42700 #include <linux/fs.h>
42f7b73b
AX
42701 void truncate_range(struct inode *inode, loff_t start,
42702 loff_t end) { return; }
42703 static struct inode_operations iops __attribute__ ((unused)) = {
42704 .truncate_range = truncate_range,
ea04106b
AX
42705 };
42706
42707int
42708main (void)
42709{
42710
42711
42712 ;
42713 return 0;
42714}
42715
42716_ACEOF
42717
42718
42719
42720cat - <<_ACEOF >conftest.h
42721
42722_ACEOF
42723
42724
42725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42726 echo "obj-m := conftest.o" >build/Makefile
42727 modpost_flag=''
42728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42729 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42731 (eval $ac_try) 2>&5
42732 ac_status=$?
cae5b340
AX
42733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42736 (eval $ac_try) 2>&5
42737 ac_status=$?
cae5b340
AX
42738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); }; }; then
ea04106b 42740
cae5b340 42741 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42742$as_echo "yes" >&6; }
42743
cae5b340 42744cat >>confdefs.h <<\_ACEOF
42f7b73b 42745#define HAVE_INODE_TRUNCATE_RANGE 1
cae5b340 42746_ACEOF
ea04106b
AX
42747
42748
42749else
42750 $as_echo "$as_me: failed program was:" >&5
42751sed 's/^/| /' conftest.$ac_ext >&5
42752
cae5b340 42753 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 42754$as_echo "no" >&6; }
22929307
AX
42755
42756
42757
42758fi
cae5b340 42759
22929307
AX
42760 rm -Rf build
42761
42762
42763
42764
42f7b73b
AX
42765 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
42766$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
e10b0808 42767
ea04106b
AX
42768
42769cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42770/* confdefs.h. */
42771_ACEOF
42772cat confdefs.h >>conftest.$ac_ext
42773cat >>conftest.$ac_ext <<_ACEOF
42774/* end confdefs.h. */
ea04106b
AX
42775
42776
42f7b73b
AX
42777 #include <linux/dcache.h>
42778 struct vfsmount *d_automount(struct path *p) { return NULL; }
42779 struct dentry_operations dops __attribute__ ((unused)) = {
42780 .d_automount = d_automount,
22929307 42781 };
ea04106b
AX
42782
42783int
42784main (void)
42785{
42786
42787
42788 ;
42789 return 0;
42790}
42791
42792_ACEOF
42793
42794
42795
42796cat - <<_ACEOF >conftest.h
42797
42798_ACEOF
42799
42800
42801 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42802 echo "obj-m := conftest.o" >build/Makefile
42803 modpost_flag=''
42804 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42805 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42807 (eval $ac_try) 2>&5
42808 ac_status=$?
cae5b340
AX
42809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42812 (eval $ac_try) 2>&5
42813 ac_status=$?
cae5b340
AX
42814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815 (exit $ac_status); }; }; then
ea04106b 42816
cae5b340 42817 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42818$as_echo "yes" >&6; }
42819
cae5b340 42820cat >>confdefs.h <<\_ACEOF
42f7b73b 42821#define HAVE_AUTOMOUNT 1
cae5b340 42822_ACEOF
ea04106b
AX
42823
42824
42825else
42826 $as_echo "$as_me: failed program was:" >&5
42827sed 's/^/| /' conftest.$ac_ext >&5
42828
cae5b340 42829 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42830$as_echo "no" >&6; }
42831
22929307
AX
42832
42833
42834fi
cae5b340 42835
22929307
AX
42836 rm -Rf build
42837
42838
42839
42840
42f7b73b
AX
42841 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
42842$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
ea04106b
AX
42843
42844
42845cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42846/* confdefs.h. */
42847_ACEOF
42848cat confdefs.h >>conftest.$ac_ext
42849cat >>conftest.$ac_ext <<_ACEOF
42850/* end confdefs.h. */
ea04106b
AX
42851
42852
42f7b73b
AX
42853 #include <linux/exportfs.h>
42854 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
42855 struct inode *parent) { return 0; }
42856 static struct export_operations eops __attribute__ ((unused))={
42857 .encode_fh = encode_fh,
ea04106b
AX
42858 };
42859
42860int
42861main (void)
42862{
42863
42864
42865 ;
42866 return 0;
42867}
42868
42869_ACEOF
42870
42871
42872
42873cat - <<_ACEOF >conftest.h
42874
42875_ACEOF
42876
42877
42878 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42879 echo "obj-m := conftest.o" >build/Makefile
42880 modpost_flag=''
42881 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42882 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42884 (eval $ac_try) 2>&5
42885 ac_status=$?
cae5b340
AX
42886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42889 (eval $ac_try) 2>&5
42890 ac_status=$?
cae5b340
AX
42891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); }; }; then
ea04106b 42893
cae5b340 42894 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42895$as_echo "yes" >&6; }
42896
cae5b340 42897cat >>confdefs.h <<\_ACEOF
42f7b73b 42898#define HAVE_ENCODE_FH_WITH_INODE 1
cae5b340 42899_ACEOF
ea04106b
AX
42900
42901
42902else
42903 $as_echo "$as_me: failed program was:" >&5
42904sed 's/^/| /' conftest.$ac_ext >&5
42905
cae5b340 42906 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 42907$as_echo "no" >&6; }
22929307
AX
42908
42909
42910
42911fi
cae5b340 42912
22929307
AX
42913 rm -Rf build
42914
42915
42916
42917
42f7b73b
AX
42918 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
42919$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
ea04106b
AX
42920
42921
42922cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42923/* confdefs.h. */
42924_ACEOF
42925cat confdefs.h >>conftest.$ac_ext
42926cat >>conftest.$ac_ext <<_ACEOF
42927/* end confdefs.h. */
ea04106b
AX
42928
42929
42f7b73b
AX
42930 #include <linux/exportfs.h>
42931 int commit_metadata(struct inode *inode) { return 0; }
42932 static struct export_operations eops __attribute__ ((unused))={
42933 .commit_metadata = commit_metadata,
22929307 42934 };
ea04106b
AX
42935
42936int
42937main (void)
42938{
42939
42940
42941 ;
42942 return 0;
42943}
42944
42945_ACEOF
42946
42947
42948
42949cat - <<_ACEOF >conftest.h
42950
42951_ACEOF
42952
42953
42954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42955 echo "obj-m := conftest.o" >build/Makefile
42956 modpost_flag=''
42957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 42958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 42959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42960 (eval $ac_try) 2>&5
42961 ac_status=$?
cae5b340
AX
42962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42965 (eval $ac_try) 2>&5
42966 ac_status=$?
cae5b340
AX
42967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968 (exit $ac_status); }; }; then
ea04106b 42969
cae5b340 42970 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42971$as_echo "yes" >&6; }
42972
cae5b340 42973cat >>confdefs.h <<\_ACEOF
42f7b73b 42974#define HAVE_COMMIT_METADATA 1
cae5b340 42975_ACEOF
ea04106b
AX
42976
42977
42978else
42979 $as_echo "$as_me: failed program was:" >&5
42980sed 's/^/| /' conftest.$ac_ext >&5
42981
42f7b73b 42982 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 42983$as_echo "no" >&6; }
42f7b73b
AX
42984
42985
42986
42987fi
42988
42989 rm -Rf build
42990
42991
42992
42993 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
42994$as_echo_n "checking whether clear_inode() is available... " >&6; }
42995
4d815aed
AX
42996
42997
42998cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42999/* confdefs.h. */
43000_ACEOF
43001cat confdefs.h >>conftest.$ac_ext
43002cat >>conftest.$ac_ext <<_ACEOF
43003/* end confdefs.h. */
4d815aed
AX
43004
43005
42f7b73b 43006 #include <linux/fs.h>
ea04106b
AX
43007
43008int
43009main (void)
43010{
43011
42f7b73b 43012 clear_inode(NULL);
ea04106b
AX
43013
43014 ;
43015 return 0;
43016}
43017
43018_ACEOF
43019
43020
43021
43022cat - <<_ACEOF >conftest.h
43023
43024_ACEOF
43025
43026
43027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43028 echo "obj-m := conftest.o" >build/Makefile
43029 modpost_flag=''
43030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43031 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43033 (eval $ac_try) 2>&5
43034 ac_status=$?
cae5b340
AX
43035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43038 (eval $ac_try) 2>&5
43039 ac_status=$?
cae5b340
AX
43040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); }; }; then
42f7b73b 43042 rc=0
ea04106b
AX
43043else
43044 $as_echo "$as_me: failed program was:" >&5
43045sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43046 rc=1
ea04106b
AX
43047
43048
42f7b73b 43049fi
ea04106b 43050
42f7b73b 43051 rm -Rf build
ea04106b 43052
ea04106b 43053
42f7b73b 43054 if test $rc -ne 0; then :
ea04106b 43055
42f7b73b
AX
43056 { $as_echo "$as_me:$LINENO: result: no" >&5
43057$as_echo "no" >&6; }
ea04106b 43058
42f7b73b
AX
43059 else
43060 if test "x$enable_linux_builtin" != xyes; then
ea04106b 43061
42f7b73b
AX
43062 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
43063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43064 rc=$?
43065 if test $rc -ne 0; then
43066 export=0
43067 for file in fs/inode.c; do
43068 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
43069 "$LINUX/$file" 2>/dev/null
43070 rc=$?
43071 if test $rc -eq 0; then
43072 export=1
43073 break;
43074 fi
43075 done
43076 if test $export -eq 0; then :
43077 rc=1
43078 else :
43079 rc=0
43080 fi
43081 else :
43082 rc=0
43083 fi
ea04106b 43084
42f7b73b
AX
43085 fi
43086 if test $rc -ne 0; then :
ea04106b 43087
42f7b73b
AX
43088 { $as_echo "$as_me:$LINENO: result: no" >&5
43089$as_echo "no" >&6; }
ea04106b 43090
42f7b73b 43091 else :
ea04106b 43092
cae5b340 43093 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
43094$as_echo "yes" >&6; }
43095
cae5b340 43096cat >>confdefs.h <<\_ACEOF
42f7b73b 43097#define HAVE_CLEAR_INODE 1
cae5b340 43098_ACEOF
68d83c55
AX
43099
43100
42f7b73b
AX
43101 fi
43102 fi
43103
43104
43105 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
43106$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
68d83c55 43107
68d83c55
AX
43108
43109
43110cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43111/* confdefs.h. */
43112_ACEOF
43113cat confdefs.h >>conftest.$ac_ext
43114cat >>conftest.$ac_ext <<_ACEOF
43115/* end confdefs.h. */
68d83c55
AX
43116
43117
22929307 43118 #include <linux/fs.h>
68d83c55
AX
43119
43120int
43121main (void)
43122{
43123
42f7b73b
AX
43124 struct dentry *dentry = NULL;
43125 struct iattr *attr = NULL;
43126 int error;
43127
43128 error = setattr_prepare(dentry, attr);
68d83c55
AX
43129
43130 ;
43131 return 0;
43132}
43133
43134_ACEOF
43135
43136
43137
43138cat - <<_ACEOF >conftest.h
43139
43140_ACEOF
43141
43142
43143 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43144 echo "obj-m := conftest.o" >build/Makefile
43145 modpost_flag=''
43146 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43147 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
43149 (eval $ac_try) 2>&5
43150 ac_status=$?
cae5b340
AX
43151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
43154 (eval $ac_try) 2>&5
43155 ac_status=$?
cae5b340
AX
43156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43157 (exit $ac_status); }; }; then
42f7b73b 43158 rc=0
68d83c55
AX
43159else
43160 $as_echo "$as_me: failed program was:" >&5
43161sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43162 rc=1
68d83c55
AX
43163
43164
22929307 43165fi
cae5b340 43166
22929307
AX
43167 rm -Rf build
43168
43169
42f7b73b 43170 if test $rc -ne 0; then :
22929307 43171
42f7b73b
AX
43172 { $as_echo "$as_me:$LINENO: result: no" >&5
43173$as_echo "no" >&6; }
22929307 43174
42f7b73b
AX
43175 else
43176 if test "x$enable_linux_builtin" != xyes; then
22929307 43177
42f7b73b
AX
43178 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
43179 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43180 rc=$?
43181 if test $rc -ne 0; then
43182 export=0
43183 for file in fs/attr.c; do
43184 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
43185 "$LINUX/$file" 2>/dev/null
43186 rc=$?
43187 if test $rc -eq 0; then
43188 export=1
43189 break;
43190 fi
43191 done
43192 if test $export -eq 0; then :
43193 rc=1
43194 else :
43195 rc=0
43196 fi
43197 else :
43198 rc=0
43199 fi
22929307 43200
42f7b73b
AX
43201 fi
43202 if test $rc -ne 0; then :
68d83c55 43203
42f7b73b
AX
43204 { $as_echo "$as_me:$LINENO: result: no" >&5
43205$as_echo "no" >&6; }
68d83c55 43206
42f7b73b 43207 else :
68d83c55 43208
42f7b73b
AX
43209 { $as_echo "$as_me:$LINENO: result: yes" >&5
43210$as_echo "yes" >&6; }
68d83c55 43211
42f7b73b
AX
43212cat >>confdefs.h <<\_ACEOF
43213#define HAVE_SETATTR_PREPARE 1
43214_ACEOF
cae5b340 43215
68d83c55 43216
42f7b73b
AX
43217 fi
43218 fi
68d83c55
AX
43219
43220
42f7b73b
AX
43221 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
43222$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
68d83c55 43223
68d83c55
AX
43224
43225
43226cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43227/* confdefs.h. */
43228_ACEOF
43229cat confdefs.h >>conftest.$ac_ext
43230cat >>conftest.$ac_ext <<_ACEOF
43231/* end confdefs.h. */
68d83c55
AX
43232
43233
42f7b73b 43234 #include <linux/fs.h>
68d83c55
AX
43235
43236int
43237main (void)
43238{
43239
42f7b73b 43240 insert_inode_locked(NULL);
68d83c55
AX
43241
43242 ;
43243 return 0;
43244}
43245
43246_ACEOF
43247
43248
43249
43250cat - <<_ACEOF >conftest.h
43251
43252_ACEOF
43253
43254
43255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43256 echo "obj-m := conftest.o" >build/Makefile
43257 modpost_flag=''
43258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43259 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
43261 (eval $ac_try) 2>&5
43262 ac_status=$?
cae5b340
AX
43263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
43266 (eval $ac_try) 2>&5
43267 ac_status=$?
cae5b340
AX
43268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269 (exit $ac_status); }; }; then
42f7b73b 43270 rc=0
4d815aed
AX
43271else
43272 $as_echo "$as_me: failed program was:" >&5
43273sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43274 rc=1
ea04106b 43275
4d815aed 43276
42f7b73b 43277fi
4d815aed 43278
42f7b73b 43279 rm -Rf build
4d815aed 43280
22929307 43281
42f7b73b 43282 if test $rc -ne 0; then :
22929307 43283
42f7b73b
AX
43284 { $as_echo "$as_me:$LINENO: result: no" >&5
43285$as_echo "no" >&6; }
22929307 43286
42f7b73b
AX
43287 else
43288 if test "x$enable_linux_builtin" != xyes; then
22929307 43289
42f7b73b
AX
43290 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
43291 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43292 rc=$?
43293 if test $rc -ne 0; then
43294 export=0
43295 for file in fs/inode.c; do
43296 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
43297 "$LINUX/$file" 2>/dev/null
43298 rc=$?
43299 if test $rc -eq 0; then
43300 export=1
43301 break;
43302 fi
43303 done
43304 if test $export -eq 0; then :
43305 rc=1
43306 else :
43307 rc=0
43308 fi
43309 else :
43310 rc=0
43311 fi
22929307 43312
42f7b73b
AX
43313 fi
43314 if test $rc -ne 0; then :
22929307 43315
42f7b73b
AX
43316 { $as_echo "$as_me:$LINENO: result: no" >&5
43317$as_echo "no" >&6; }
22929307 43318
42f7b73b 43319 else :
22929307 43320
42f7b73b 43321 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43322$as_echo "yes" >&6; }
43323
cae5b340 43324cat >>confdefs.h <<\_ACEOF
42f7b73b 43325#define HAVE_INSERT_INODE_LOCKED 1
cae5b340 43326_ACEOF
22929307
AX
43327
43328
42f7b73b
AX
43329 fi
43330 fi
43331
43332
43333 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
43334$as_echo_n "checking whether d_make_root() is available... " >&6; }
22929307 43335
ea04106b
AX
43336
43337
43338cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43339/* confdefs.h. */
43340_ACEOF
43341cat confdefs.h >>conftest.$ac_ext
43342cat >>conftest.$ac_ext <<_ACEOF
43343/* end confdefs.h. */
ea04106b
AX
43344
43345
42f7b73b 43346 #include <linux/dcache.h>
ea04106b
AX
43347
43348int
43349main (void)
43350{
43351
42f7b73b 43352 d_make_root(NULL);
ea04106b
AX
43353
43354 ;
43355 return 0;
43356}
43357
43358_ACEOF
43359
43360
43361
43362cat - <<_ACEOF >conftest.h
43363
43364_ACEOF
43365
43366
43367 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43368 echo "obj-m := conftest.o" >build/Makefile
43369 modpost_flag=''
43370 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43371 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43373 (eval $ac_try) 2>&5
43374 ac_status=$?
cae5b340
AX
43375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43378 (eval $ac_try) 2>&5
43379 ac_status=$?
cae5b340
AX
43380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; }; then
42f7b73b 43382 rc=0
ea04106b
AX
43383else
43384 $as_echo "$as_me: failed program was:" >&5
43385sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43386 rc=1
ea04106b
AX
43387
43388
43389fi
cae5b340 43390
ea04106b
AX
43391 rm -Rf build
43392
43393
42f7b73b 43394 if test $rc -ne 0; then :
ea04106b 43395
42f7b73b
AX
43396 { $as_echo "$as_me:$LINENO: result: no" >&5
43397$as_echo "no" >&6; }
ea04106b 43398
42f7b73b
AX
43399 else
43400 if test "x$enable_linux_builtin" != xyes; then
22929307 43401
42f7b73b
AX
43402 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
43403 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43404 rc=$?
43405 if test $rc -ne 0; then
43406 export=0
43407 for file in fs/dcache.c; do
43408 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
43409 "$LINUX/$file" 2>/dev/null
43410 rc=$?
43411 if test $rc -eq 0; then
43412 export=1
43413 break;
43414 fi
43415 done
43416 if test $export -eq 0; then :
43417 rc=1
43418 else :
43419 rc=0
43420 fi
43421 else :
43422 rc=0
43423 fi
22929307 43424
42f7b73b
AX
43425 fi
43426 if test $rc -ne 0; then :
22929307 43427
42f7b73b
AX
43428 { $as_echo "$as_me:$LINENO: result: no" >&5
43429$as_echo "no" >&6; }
22929307 43430
42f7b73b 43431 else :
22929307 43432
42f7b73b
AX
43433 { $as_echo "$as_me:$LINENO: result: yes" >&5
43434$as_echo "yes" >&6; }
22929307 43435
42f7b73b
AX
43436cat >>confdefs.h <<\_ACEOF
43437#define HAVE_D_MAKE_ROOT 1
43438_ACEOF
cae5b340 43439
22929307 43440
42f7b73b
AX
43441 fi
43442 fi
22929307
AX
43443
43444
42f7b73b
AX
43445 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
43446$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22929307 43447
ea04106b
AX
43448
43449
43450cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43451/* confdefs.h. */
43452_ACEOF
43453cat confdefs.h >>conftest.$ac_ext
43454cat >>conftest.$ac_ext <<_ACEOF
43455/* end confdefs.h. */
ea04106b
AX
43456
43457
42f7b73b 43458 #include <linux/dcache.h>
ea04106b
AX
43459
43460int
43461main (void)
43462{
43463
42f7b73b 43464 d_obtain_alias(NULL);
ea04106b
AX
43465
43466 ;
43467 return 0;
43468}
43469
43470_ACEOF
43471
43472
43473
43474cat - <<_ACEOF >conftest.h
43475
43476_ACEOF
43477
43478
43479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43480 echo "obj-m := conftest.o" >build/Makefile
43481 modpost_flag=''
43482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43485 (eval $ac_try) 2>&5
43486 ac_status=$?
cae5b340
AX
43487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43490 (eval $ac_try) 2>&5
43491 ac_status=$?
cae5b340
AX
43492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); }; }; then
42f7b73b
AX
43494 rc=0
43495else
43496 $as_echo "$as_me: failed program was:" >&5
43497sed 's/^/| /' conftest.$ac_ext >&5
43498 rc=1
ea04106b 43499
ea04106b 43500
42f7b73b 43501fi
ea04106b 43502
42f7b73b 43503 rm -Rf build
ea04106b 43504
42f7b73b
AX
43505
43506 if test $rc -ne 0; then :
ea04106b 43507
cae5b340 43508 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43509$as_echo "no" >&6; }
43510
42f7b73b
AX
43511 else
43512 if test "x$enable_linux_builtin" != xyes; then
43513
43514 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
43515 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43516 rc=$?
43517 if test $rc -ne 0; then
43518 export=0
43519 for file in fs/dcache.c; do
43520 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
43521 "$LINUX/$file" 2>/dev/null
43522 rc=$?
43523 if test $rc -eq 0; then
43524 export=1
43525 break;
43526 fi
43527 done
43528 if test $export -eq 0; then :
43529 rc=1
43530 else :
43531 rc=0
43532 fi
43533 else :
43534 rc=0
43535 fi
43536
43537 fi
43538 if test $rc -ne 0; then :
ea04106b 43539
42f7b73b
AX
43540 { $as_echo "$as_me:$LINENO: result: no" >&5
43541$as_echo "no" >&6; }
ea04106b 43542
42f7b73b 43543 else :
cae5b340 43544
42f7b73b
AX
43545 { $as_echo "$as_me:$LINENO: result: yes" >&5
43546$as_echo "yes" >&6; }
ea04106b 43547
42f7b73b
AX
43548cat >>confdefs.h <<\_ACEOF
43549#define HAVE_D_OBTAIN_ALIAS 1
43550_ACEOF
ea04106b
AX
43551
43552
42f7b73b
AX
43553 fi
43554 fi
43555
43556
43557 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
43558$as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
ea04106b 43559
ea04106b
AX
43560
43561
43562cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43563/* confdefs.h. */
43564_ACEOF
43565cat confdefs.h >>conftest.$ac_ext
43566cat >>conftest.$ac_ext <<_ACEOF
43567/* end confdefs.h. */
ea04106b
AX
43568
43569
42f7b73b 43570 #include <linux/dcache.h>
ea04106b
AX
43571
43572int
43573main (void)
43574{
43575
42f7b73b
AX
43576 struct inode *ip = NULL;
43577 d_prune_aliases(ip);
ea04106b
AX
43578
43579 ;
43580 return 0;
43581}
43582
43583_ACEOF
43584
43585
43586
43587cat - <<_ACEOF >conftest.h
43588
43589_ACEOF
43590
43591
43592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43593 echo "obj-m := conftest.o" >build/Makefile
43594 modpost_flag=''
43595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43596 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43598 (eval $ac_try) 2>&5
43599 ac_status=$?
cae5b340
AX
43600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43603 (eval $ac_try) 2>&5
43604 ac_status=$?
cae5b340
AX
43605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606 (exit $ac_status); }; }; then
42f7b73b
AX
43607 rc=0
43608else
43609 $as_echo "$as_me: failed program was:" >&5
43610sed 's/^/| /' conftest.$ac_ext >&5
43611 rc=1
ea04106b 43612
ea04106b 43613
42f7b73b 43614fi
ea04106b 43615
42f7b73b 43616 rm -Rf build
ea04106b 43617
42f7b73b
AX
43618
43619 if test $rc -ne 0; then :
ea04106b 43620
cae5b340 43621 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43622$as_echo "no" >&6; }
43623
42f7b73b
AX
43624 else
43625 if test "x$enable_linux_builtin" != xyes; then
ea04106b 43626
42f7b73b
AX
43627 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
43628 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43629 rc=$?
43630 if test $rc -ne 0; then
43631 export=0
43632 for file in fs/dcache.c; do
43633 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
43634 "$LINUX/$file" 2>/dev/null
43635 rc=$?
43636 if test $rc -eq 0; then
43637 export=1
43638 break;
43639 fi
43640 done
43641 if test $export -eq 0; then :
43642 rc=1
43643 else :
43644 rc=0
43645 fi
43646 else :
43647 rc=0
43648 fi
ea04106b 43649
42f7b73b
AX
43650 fi
43651 if test $rc -ne 0; then :
cae5b340 43652
42f7b73b
AX
43653 { $as_echo "$as_me:$LINENO: result: no" >&5
43654$as_echo "no" >&6; }
43655
43656 else :
ea04106b 43657
42f7b73b
AX
43658 { $as_echo "$as_me:$LINENO: result: yes" >&5
43659$as_echo "yes" >&6; }
ea04106b 43660
42f7b73b
AX
43661cat >>confdefs.h <<\_ACEOF
43662#define HAVE_D_PRUNE_ALIASES 1
43663_ACEOF
ea04106b
AX
43664
43665
42f7b73b
AX
43666 fi
43667 fi
43668
43669
43670 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
43671$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
43672
ea04106b
AX
43673
43674
43675cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43676/* confdefs.h. */
43677_ACEOF
43678cat confdefs.h >>conftest.$ac_ext
43679cat >>conftest.$ac_ext <<_ACEOF
43680/* end confdefs.h. */
ea04106b
AX
43681
43682
cae5b340 43683 #include <linux/dcache.h>
ea04106b
AX
43684
43685int
43686main (void)
43687{
43688
42f7b73b 43689 d_set_d_op(NULL, NULL);
22929307
AX
43690
43691 ;
43692 return 0;
43693}
43694
43695_ACEOF
43696
43697
43698
43699cat - <<_ACEOF >conftest.h
43700
43701_ACEOF
43702
43703
43704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43705 echo "obj-m := conftest.o" >build/Makefile
43706 modpost_flag=''
43707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43708 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43710 (eval $ac_try) 2>&5
43711 ac_status=$?
cae5b340
AX
43712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43713 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43715 (eval $ac_try) 2>&5
43716 ac_status=$?
cae5b340
AX
43717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); }; }; then
42f7b73b
AX
43719 rc=0
43720else
43721 $as_echo "$as_me: failed program was:" >&5
43722sed 's/^/| /' conftest.$ac_ext >&5
43723 rc=1
22929307 43724
22929307 43725
42f7b73b 43726fi
22929307 43727
42f7b73b 43728 rm -Rf build
22929307 43729
42f7b73b
AX
43730
43731 if test $rc -ne 0; then :
43732
43733 { $as_echo "$as_me:$LINENO: result: no" >&5
43734$as_echo "no" >&6; }
43735
43736 else
43737 if test "x$enable_linux_builtin" != xyes; then
43738
43739 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
43740 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43741 rc=$?
43742 if test $rc -ne 0; then
43743 export=0
43744 for file in fs/dcache.c; do
43745 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
43746 "$LINUX/$file" 2>/dev/null
43747 rc=$?
43748 if test $rc -eq 0; then
43749 export=1
43750 break;
43751 fi
43752 done
43753 if test $export -eq 0; then :
43754 rc=1
43755 else :
43756 rc=0
43757 fi
43758 else :
43759 rc=0
43760 fi
43761
43762 fi
43763 if test $rc -ne 0; then :
22929307 43764
cae5b340 43765 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43766$as_echo "no" >&6; }
43767
42f7b73b 43768 else :
22929307 43769
42f7b73b
AX
43770 { $as_echo "$as_me:$LINENO: result: yes" >&5
43771$as_echo "yes" >&6; }
22929307 43772
42f7b73b
AX
43773cat >>confdefs.h <<\_ACEOF
43774#define HAVE_D_SET_D_OP 1
43775_ACEOF
cae5b340 43776
22929307 43777
42f7b73b
AX
43778 fi
43779 fi
22929307
AX
43780
43781
43782
42f7b73b
AX
43783 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
43784$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22929307
AX
43785
43786
43787cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43788/* confdefs.h. */
43789_ACEOF
43790cat confdefs.h >>conftest.$ac_ext
43791cat >>conftest.$ac_ext <<_ACEOF
43792/* end confdefs.h. */
22929307
AX
43793
43794
42f7b73b
AX
43795 #include <linux/dcache.h>
43796 #include <linux/sched.h>
43797
43798 int revalidate (struct dentry *dentry,
43799 struct nameidata *nidata) { return 0; }
43800
43801 static const struct dentry_operations
43802 dops __attribute__ ((unused)) = {
43803 .d_revalidate = revalidate,
22929307
AX
43804 };
43805
43806int
43807main (void)
43808{
43809
43810
43811 ;
43812 return 0;
43813}
43814
43815_ACEOF
43816
43817
43818
43819cat - <<_ACEOF >conftest.h
43820
43821_ACEOF
43822
43823
43824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43825 echo "obj-m := conftest.o" >build/Makefile
43826 modpost_flag=''
43827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43828 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43830 (eval $ac_try) 2>&5
43831 ac_status=$?
cae5b340
AX
43832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43835 (eval $ac_try) 2>&5
43836 ac_status=$?
cae5b340
AX
43837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838 (exit $ac_status); }; }; then
22929307 43839
cae5b340 43840 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43841$as_echo "yes" >&6; }
43842
cae5b340 43843cat >>confdefs.h <<\_ACEOF
42f7b73b 43844#define HAVE_D_REVALIDATE_NAMEIDATA 1
cae5b340 43845_ACEOF
22929307
AX
43846
43847
43848else
43849 $as_echo "$as_me: failed program was:" >&5
43850sed 's/^/| /' conftest.$ac_ext >&5
43851
cae5b340 43852 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43853$as_echo "no" >&6; }
43854
43855
43856
43857fi
cae5b340 43858
22929307
AX
43859 rm -Rf build
43860
43861
43862
22929307 43863
42f7b73b
AX
43864 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
43865$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22929307
AX
43866
43867
43868cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43869/* confdefs.h. */
43870_ACEOF
43871cat confdefs.h >>conftest.$ac_ext
43872cat >>conftest.$ac_ext <<_ACEOF
43873/* end confdefs.h. */
22929307
AX
43874
43875
42f7b73b
AX
43876 #include <linux/dcache.h>
43877
43878 const struct dentry_operations test_d_op = {
43879 .d_revalidate = NULL,
cae5b340 43880 };
22929307
AX
43881
43882int
43883main (void)
43884{
43885
42f7b73b
AX
43886 struct dentry d __attribute__ ((unused));
43887
43888 d.d_op = &test_d_op;
ea04106b
AX
43889
43890 ;
43891 return 0;
43892}
43893
43894_ACEOF
43895
43896
43897
43898cat - <<_ACEOF >conftest.h
43899
43900_ACEOF
43901
43902
43903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43904 echo "obj-m := conftest.o" >build/Makefile
43905 modpost_flag=''
43906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43907 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43909 (eval $ac_try) 2>&5
43910 ac_status=$?
cae5b340
AX
43911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43914 (eval $ac_try) 2>&5
43915 ac_status=$?
cae5b340
AX
43916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); }; }; then
ea04106b 43918
cae5b340
AX
43919 { $as_echo "$as_me:$LINENO: result: yes" >&5
43920$as_echo "yes" >&6; }
ea04106b 43921
cae5b340 43922cat >>confdefs.h <<\_ACEOF
42f7b73b 43923#define HAVE_CONST_DENTRY_OPERATIONS 1
cae5b340 43924_ACEOF
ea04106b
AX
43925
43926
cae5b340
AX
43927else
43928 $as_echo "$as_me: failed program was:" >&5
43929sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 43930
cae5b340 43931 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43932$as_echo "no" >&6; }
43933
43934
ea04106b 43935
cae5b340 43936fi
68d83c55 43937
cae5b340 43938 rm -Rf build
68d83c55
AX
43939
43940
68d83c55 43941
42f7b73b
AX
43942 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
43943$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b 43944
ea04106b
AX
43945
43946
43947cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43948/* confdefs.h. */
43949_ACEOF
43950cat confdefs.h >>conftest.$ac_ext
43951cat >>conftest.$ac_ext <<_ACEOF
43952/* end confdefs.h. */
ea04106b
AX
43953
43954
42f7b73b 43955 #include <linux/mm.h>
ea04106b
AX
43956
43957int
43958main (void)
43959{
43960
42f7b73b 43961 truncate_setsize(NULL, 0);
ea04106b
AX
43962
43963 ;
43964 return 0;
43965}
43966
43967_ACEOF
43968
43969
43970
43971cat - <<_ACEOF >conftest.h
43972
43973_ACEOF
43974
43975
43976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43977 echo "obj-m := conftest.o" >build/Makefile
43978 modpost_flag=''
43979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 43980 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 43981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43982 (eval $ac_try) 2>&5
43983 ac_status=$?
cae5b340
AX
43984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43987 (eval $ac_try) 2>&5
43988 ac_status=$?
cae5b340
AX
43989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43990 (exit $ac_status); }; }; then
e10b0808
AX
43991 rc=0
43992else
43993 $as_echo "$as_me: failed program was:" >&5
43994sed 's/^/| /' conftest.$ac_ext >&5
43995 rc=1
ea04106b 43996
ea04106b 43997
e10b0808 43998fi
cae5b340 43999
e10b0808 44000 rm -Rf build
ea04106b
AX
44001
44002
e10b0808
AX
44003 if test $rc -ne 0; then :
44004
cae5b340 44005 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
44006$as_echo "no" >&6; }
44007
44008 else
44009 if test "x$enable_linux_builtin" != xyes; then
44010
42f7b73b 44011 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
e10b0808
AX
44012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44013 rc=$?
44014 if test $rc -ne 0; then
44015 export=0
42f7b73b
AX
44016 for file in mm/truncate.c; do
44017 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
e10b0808
AX
44018 "$LINUX/$file" 2>/dev/null
44019 rc=$?
44020 if test $rc -eq 0; then
44021 export=1
44022 break;
44023 fi
44024 done
44025 if test $export -eq 0; then :
44026 rc=1
44027 else :
44028 rc=0
44029 fi
44030 else :
44031 rc=0
44032 fi
44033
44034 fi
44035 if test $rc -ne 0; then :
ea04106b 44036
cae5b340 44037 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44038$as_echo "no" >&6; }
44039
e10b0808
AX
44040 else :
44041
cae5b340 44042 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 44043$as_echo "yes" >&6; }
ea04106b 44044
cae5b340 44045cat >>confdefs.h <<\_ACEOF
42f7b73b 44046#define HAVE_TRUNCATE_SETSIZE 1
cae5b340 44047_ACEOF
ea04106b 44048
ea04106b 44049
e10b0808
AX
44050 fi
44051 fi
ea04106b
AX
44052
44053
44054
42f7b73b
AX
44055 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
44056$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
ea04106b
AX
44057
44058
44059cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44060/* confdefs.h. */
44061_ACEOF
44062cat confdefs.h >>conftest.$ac_ext
44063cat >>conftest.$ac_ext <<_ACEOF
44064/* end confdefs.h. */
ea04106b
AX
44065
44066
42f7b73b 44067 #include <linux/security.h>
ea04106b
AX
44068
44069int
44070main (void)
44071{
44072
42f7b73b
AX
44073 struct inode *ip __attribute__ ((unused)) = NULL;
44074 struct inode *dip __attribute__ ((unused)) = NULL;
44075 const struct qstr *str __attribute__ ((unused)) = NULL;
44076 char *name __attribute__ ((unused)) = NULL;
44077 void *value __attribute__ ((unused)) = NULL;
44078 size_t len __attribute__ ((unused)) = 0;
cae5b340 44079
42f7b73b 44080 security_inode_init_security(ip, dip, str, &name, &value, &len);
ea04106b
AX
44081
44082 ;
44083 return 0;
44084}
44085
44086_ACEOF
44087
44088
44089
44090cat - <<_ACEOF >conftest.h
44091
44092_ACEOF
44093
44094
44095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44096 echo "obj-m := conftest.o" >build/Makefile
44097 modpost_flag=''
44098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44099 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44101 (eval $ac_try) 2>&5
44102 ac_status=$?
cae5b340
AX
44103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44106 (eval $ac_try) 2>&5
44107 ac_status=$?
cae5b340
AX
44108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109 (exit $ac_status); }; }; then
ea04106b 44110
42f7b73b
AX
44111 { $as_echo "$as_me:$LINENO: result: yes" >&5
44112$as_echo "yes" >&6; }
ea04106b 44113
42f7b73b
AX
44114cat >>confdefs.h <<\_ACEOF
44115#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
44116_ACEOF
e10b0808 44117
e10b0808 44118
42f7b73b
AX
44119else
44120 $as_echo "$as_me: failed program was:" >&5
44121sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44122
cae5b340 44123 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44124$as_echo "no" >&6; }
44125
e10b0808 44126
ea04106b 44127
42f7b73b 44128fi
ea04106b 44129
42f7b73b 44130 rm -Rf build
ea04106b
AX
44131
44132
44133
ea04106b 44134
42f7b73b
AX
44135 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
44136$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
ea04106b
AX
44137
44138
44139cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44140/* confdefs.h. */
44141_ACEOF
44142cat confdefs.h >>conftest.$ac_ext
44143cat >>conftest.$ac_ext <<_ACEOF
44144/* end confdefs.h. */
ea04106b
AX
44145
44146
42f7b73b 44147 #include <linux/security.h>
ea04106b
AX
44148
44149int
44150main (void)
44151{
44152
42f7b73b
AX
44153 struct inode *ip __attribute__ ((unused)) = NULL;
44154 struct inode *dip __attribute__ ((unused)) = NULL;
44155 const struct qstr *str __attribute__ ((unused)) = NULL;
44156 initxattrs func __attribute__ ((unused)) = NULL;
44157
44158 security_inode_init_security(ip, dip, str, func, NULL);
ea04106b
AX
44159
44160 ;
44161 return 0;
44162}
44163
44164_ACEOF
44165
44166
44167
44168cat - <<_ACEOF >conftest.h
44169
44170_ACEOF
44171
44172
44173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44174 echo "obj-m := conftest.o" >build/Makefile
44175 modpost_flag=''
44176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44177 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44179 (eval $ac_try) 2>&5
44180 ac_status=$?
cae5b340
AX
44181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44184 (eval $ac_try) 2>&5
44185 ac_status=$?
cae5b340
AX
44186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44187 (exit $ac_status); }; }; then
ea04106b 44188
42f7b73b
AX
44189 { $as_echo "$as_me:$LINENO: result: yes" >&5
44190$as_echo "yes" >&6; }
ea04106b 44191
42f7b73b
AX
44192cat >>confdefs.h <<\_ACEOF
44193#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
44194_ACEOF
ea04106b 44195
ea04106b 44196
42f7b73b
AX
44197else
44198 $as_echo "$as_me: failed program was:" >&5
44199sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44200
cae5b340 44201 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44202$as_echo "no" >&6; }
44203
ea04106b 44204
ea04106b 44205
42f7b73b 44206fi
ea04106b 44207
42f7b73b 44208 rm -Rf build
ea04106b 44209
ea04106b
AX
44210
44211
ea04106b 44212
42f7b73b
AX
44213 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
44214$as_echo_n "checking whether fst->mount() exists... " >&6; }
ea04106b
AX
44215
44216
44217cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44218/* confdefs.h. */
44219_ACEOF
44220cat confdefs.h >>conftest.$ac_ext
44221cat >>conftest.$ac_ext <<_ACEOF
44222/* end confdefs.h. */
ea04106b
AX
44223
44224
42f7b73b
AX
44225 #include <linux/fs.h>
44226
44227 static struct dentry *
44228 mount(struct file_system_type *fs_type, int flags,
44229 const char *osname, void *data) {
44230 struct dentry *d = NULL;
44231 return (d);
44232 }
44233
44234 static struct file_system_type fst __attribute__ ((unused)) = {
44235 .mount = mount,
44236 };
ea04106b
AX
44237
44238int
44239main (void)
44240{
44241
ea04106b
AX
44242
44243 ;
44244 return 0;
44245}
44246
44247_ACEOF
44248
44249
44250
44251cat - <<_ACEOF >conftest.h
44252
44253_ACEOF
44254
44255
44256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44257 echo "obj-m := conftest.o" >build/Makefile
44258 modpost_flag=''
44259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44260 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44262 (eval $ac_try) 2>&5
44263 ac_status=$?
cae5b340
AX
44264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44267 (eval $ac_try) 2>&5
44268 ac_status=$?
cae5b340
AX
44269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270 (exit $ac_status); }; }; then
ea04106b 44271
42f7b73b
AX
44272 { $as_echo "$as_me:$LINENO: result: yes" >&5
44273$as_echo "yes" >&6; }
ea04106b 44274
42f7b73b
AX
44275cat >>confdefs.h <<\_ACEOF
44276#define HAVE_FST_MOUNT 1
44277_ACEOF
ea04106b 44278
ea04106b 44279
42f7b73b
AX
44280else
44281 $as_echo "$as_me: failed program was:" >&5
44282sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44283
42f7b73b 44284 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44285$as_echo "no" >&6; }
44286
ea04106b 44287
ea04106b 44288
42f7b73b 44289fi
ea04106b 44290
42f7b73b 44291 rm -Rf build
ea04106b 44292
ea04106b
AX
44293
44294
ea04106b 44295
42f7b73b
AX
44296 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
44297$as_echo_n "checking whether super_block has s_shrink... " >&6; }
ea04106b
AX
44298
44299
44300cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44301/* confdefs.h. */
44302_ACEOF
44303cat confdefs.h >>conftest.$ac_ext
44304cat >>conftest.$ac_ext <<_ACEOF
44305/* end confdefs.h. */
ea04106b
AX
44306
44307
42f7b73b
AX
44308 #include <linux/fs.h>
44309
44310 int shrink(struct shrinker *s, struct shrink_control *sc)
44311 { return 0; }
44312
44313 static const struct super_block
44314 sb __attribute__ ((unused)) = {
44315 .s_shrink.shrink = shrink,
44316 .s_shrink.seeks = DEFAULT_SEEKS,
44317 .s_shrink.batch = 0,
44318 };
ea04106b
AX
44319
44320int
44321main (void)
44322{
44323
ea04106b
AX
44324
44325 ;
44326 return 0;
44327}
44328
44329_ACEOF
44330
44331
44332
44333cat - <<_ACEOF >conftest.h
44334
44335_ACEOF
44336
44337
44338 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44339 echo "obj-m := conftest.o" >build/Makefile
44340 modpost_flag=''
44341 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44342 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44344 (eval $ac_try) 2>&5
44345 ac_status=$?
cae5b340
AX
44346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44349 (eval $ac_try) 2>&5
44350 ac_status=$?
cae5b340
AX
44351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; }; then
ea04106b 44353
42f7b73b
AX
44354 { $as_echo "$as_me:$LINENO: result: yes" >&5
44355$as_echo "yes" >&6; }
ea04106b 44356
42f7b73b
AX
44357cat >>confdefs.h <<\_ACEOF
44358#define HAVE_SHRINK 1
44359_ACEOF
ea04106b 44360
ea04106b 44361
ea04106b 44362
42f7b73b
AX
44363else
44364 $as_echo "$as_me: failed program was:" >&5
44365sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44366
cae5b340 44367 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44368$as_echo "no" >&6; }
44369
ea04106b 44370
ea04106b 44371
42f7b73b 44372fi
ea04106b 44373
42f7b73b 44374 rm -Rf build
ea04106b 44375
ea04106b
AX
44376
44377
ea04106b 44378
42f7b73b
AX
44379 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
44380$as_echo_n "checking whether shrink_control has nid... " >&6; }
ea04106b
AX
44381
44382
44383cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44384/* confdefs.h. */
44385_ACEOF
44386cat confdefs.h >>conftest.$ac_ext
44387cat >>conftest.$ac_ext <<_ACEOF
44388/* end confdefs.h. */
ea04106b
AX
44389
44390
42f7b73b 44391 #include <linux/fs.h>
ea04106b
AX
44392
44393int
44394main (void)
44395{
44396
42f7b73b
AX
44397 struct shrink_control sc __attribute__ ((unused));
44398 unsigned long scnidsize __attribute__ ((unused)) =
44399 sizeof(sc.nid);
ea04106b
AX
44400
44401 ;
44402 return 0;
44403}
44404
44405_ACEOF
44406
44407
44408
44409cat - <<_ACEOF >conftest.h
44410
44411_ACEOF
44412
44413
44414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44415 echo "obj-m := conftest.o" >build/Makefile
44416 modpost_flag=''
44417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44418 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44420 (eval $ac_try) 2>&5
44421 ac_status=$?
cae5b340
AX
44422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44425 (eval $ac_try) 2>&5
44426 ac_status=$?
cae5b340
AX
44427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428 (exit $ac_status); }; }; then
42f7b73b
AX
44429
44430 { $as_echo "$as_me:$LINENO: result: yes" >&5
44431$as_echo "yes" >&6; }
44432
44433cat >>confdefs.h <<\_ACEOF
44434#define SHRINK_CONTROL_HAS_NID 1
44435_ACEOF
44436
44437
ea04106b
AX
44438else
44439 $as_echo "$as_me: failed program was:" >&5
44440sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
44441
44442 { $as_echo "$as_me:$LINENO: result: no" >&5
44443$as_echo "no" >&6; }
44444
ea04106b
AX
44445
44446
44447fi
cae5b340 44448
ea04106b
AX
44449 rm -Rf build
44450
44451
ea04106b 44452
ea04106b 44453
42f7b73b
AX
44454 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
44455$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
ea04106b 44456
ea04106b 44457
42f7b73b
AX
44458cat confdefs.h - <<_ACEOF >conftest.c
44459/* confdefs.h. */
44460_ACEOF
44461cat confdefs.h >>conftest.$ac_ext
44462cat >>conftest.$ac_ext <<_ACEOF
44463/* end confdefs.h. */
e10b0808 44464
e10b0808 44465
42f7b73b
AX
44466 #include <linux/fs.h>
44467
44468int
44469main (void)
44470{
44471
44472 struct super_block sb __attribute__ ((unused));
44473
44474 INIT_LIST_HEAD(&sb.s_instances);
44475
44476 ;
44477 return 0;
44478}
44479
44480_ACEOF
44481
44482
44483
44484cat - <<_ACEOF >conftest.h
44485
44486_ACEOF
44487
44488
44489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44490 echo "obj-m := conftest.o" >build/Makefile
44491 modpost_flag=''
44492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44495 (eval $ac_try) 2>&5
44496 ac_status=$?
44497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44500 (eval $ac_try) 2>&5
44501 ac_status=$?
44502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503 (exit $ac_status); }; }; then
e10b0808 44504
cae5b340 44505 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
44506$as_echo "yes" >&6; }
44507
cae5b340 44508cat >>confdefs.h <<\_ACEOF
42f7b73b 44509#define HAVE_S_INSTANCES_LIST_HEAD 1
cae5b340 44510_ACEOF
e10b0808
AX
44511
44512
42f7b73b
AX
44513else
44514 $as_echo "$as_me: failed program was:" >&5
44515sed 's/^/| /' conftest.$ac_ext >&5
44516
44517 { $as_echo "$as_me:$LINENO: result: no" >&5
44518$as_echo "no" >&6; }
e10b0808
AX
44519
44520
42f7b73b
AX
44521
44522fi
44523
44524 rm -Rf build
e10b0808 44525
e10b0808
AX
44526
44527
42f7b73b
AX
44528 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
44529$as_echo_n "checking whether super_block has s_d_op... " >&6; }
44530
44531
e10b0808 44532cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44533/* confdefs.h. */
44534_ACEOF
44535cat confdefs.h >>conftest.$ac_ext
44536cat >>conftest.$ac_ext <<_ACEOF
44537/* end confdefs.h. */
e10b0808
AX
44538
44539
42f7b73b 44540 #include <linux/fs.h>
e10b0808 44541
e10b0808
AX
44542int
44543main (void)
44544{
44545
42f7b73b
AX
44546 struct super_block sb __attribute__ ((unused));
44547 sb.s_d_op = NULL;
e10b0808
AX
44548
44549 ;
44550 return 0;
44551}
44552
44553_ACEOF
44554
44555
44556
44557cat - <<_ACEOF >conftest.h
44558
44559_ACEOF
44560
44561
44562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44563 echo "obj-m := conftest.o" >build/Makefile
44564 modpost_flag=''
44565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44566 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
44568 (eval $ac_try) 2>&5
44569 ac_status=$?
cae5b340
AX
44570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44571 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
44573 (eval $ac_try) 2>&5
44574 ac_status=$?
cae5b340
AX
44575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44576 (exit $ac_status); }; }; then
e10b0808 44577
42f7b73b
AX
44578 { $as_echo "$as_me:$LINENO: result: yes" >&5
44579$as_echo "yes" >&6; }
e10b0808 44580
42f7b73b
AX
44581cat >>confdefs.h <<\_ACEOF
44582#define HAVE_S_D_OP 1
44583_ACEOF
e10b0808 44584
e10b0808 44585
42f7b73b
AX
44586else
44587 $as_echo "$as_me: failed program was:" >&5
44588sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
44589
44590 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
44591$as_echo "no" >&6; }
44592
e10b0808
AX
44593
44594
42f7b73b 44595fi
cae5b340 44596
42f7b73b 44597 rm -Rf build
cae5b340
AX
44598
44599
e10b0808 44600
cae5b340 44601
42f7b73b
AX
44602 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
44603$as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
cae5b340 44604
e10b0808
AX
44605
44606
44607cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44608/* confdefs.h. */
44609_ACEOF
44610cat confdefs.h >>conftest.$ac_ext
44611cat >>conftest.$ac_ext <<_ACEOF
44612/* end confdefs.h. */
e10b0808
AX
44613
44614
42f7b73b
AX
44615 #include <linux/fs.h>
44616 struct super_block sb;
e10b0808
AX
44617
44618int
44619main (void)
44620{
44621
42f7b73b
AX
44622 char *name = "bdi";
44623 atomic_long_t zfs_bdi_seq;
44624 int error __attribute__((unused)) =
44625 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
e10b0808
AX
44626
44627 ;
44628 return 0;
44629}
44630
44631_ACEOF
44632
44633
44634
44635cat - <<_ACEOF >conftest.h
44636
44637_ACEOF
44638
44639
44640 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44641 echo "obj-m := conftest.o" >build/Makefile
44642 modpost_flag=''
44643 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44644 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
44646 (eval $ac_try) 2>&5
44647 ac_status=$?
cae5b340
AX
44648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44649 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
44651 (eval $ac_try) 2>&5
44652 ac_status=$?
cae5b340
AX
44653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44654 (exit $ac_status); }; }; then
42f7b73b 44655 rc=0
e10b0808
AX
44656else
44657 $as_echo "$as_me: failed program was:" >&5
44658sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 44659 rc=1
ea04106b 44660
ea04106b 44661
e10b0808 44662fi
cae5b340 44663
e10b0808 44664 rm -Rf build
ea04106b 44665
ea04106b 44666
42f7b73b 44667 if test $rc -ne 0; then :
ea04106b 44668
42f7b73b
AX
44669 { $as_echo "$as_me:$LINENO: result: no" >&5
44670$as_echo "no" >&6; }
44671 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
44672$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
ea04106b
AX
44673
44674
44675
44676cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44677/* confdefs.h. */
44678_ACEOF
44679cat confdefs.h >>conftest.$ac_ext
44680cat >>conftest.$ac_ext <<_ACEOF
44681/* end confdefs.h. */
ea04106b
AX
44682
44683
42f7b73b
AX
44684 #include <linux/backing-dev.h>
44685 struct backing_dev_info bdi;
ea04106b
AX
44686
44687int
44688main (void)
44689{
44690
42f7b73b
AX
44691 char *name = "bdi";
44692 int error __attribute__((unused)) =
44693 bdi_setup_and_register(&bdi, name);
ea04106b
AX
44694
44695 ;
44696 return 0;
44697}
44698
44699_ACEOF
44700
44701
44702
44703cat - <<_ACEOF >conftest.h
44704
44705_ACEOF
44706
44707
44708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44709 echo "obj-m := conftest.o" >build/Makefile
44710 modpost_flag=''
44711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44714 (eval $ac_try) 2>&5
44715 ac_status=$?
cae5b340
AX
44716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44719 (eval $ac_try) 2>&5
44720 ac_status=$?
cae5b340
AX
44721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 (exit $ac_status); }; }; then
42f7b73b 44723 rc=0
cae5b340
AX
44724else
44725 $as_echo "$as_me: failed program was:" >&5
44726sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 44727 rc=1
ea04106b 44728
ea04106b 44729
cae5b340 44730fi
ea04106b 44731
cae5b340 44732 rm -Rf build
ea04106b 44733
ea04106b 44734
42f7b73b 44735 if test $rc -ne 0; then :
ea04106b 44736
42f7b73b
AX
44737 { $as_echo "$as_me:$LINENO: result: no" >&5
44738$as_echo "no" >&6; }
44739 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44740$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
44741
44742
44743
44744cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44745/* confdefs.h. */
44746_ACEOF
44747cat confdefs.h >>conftest.$ac_ext
44748cat >>conftest.$ac_ext <<_ACEOF
44749/* end confdefs.h. */
ea04106b
AX
44750
44751
42f7b73b
AX
44752 #include <linux/backing-dev.h>
44753 struct backing_dev_info bdi;
ea04106b
AX
44754
44755int
44756main (void)
44757{
44758
42f7b73b
AX
44759 char *name = "bdi";
44760 unsigned int cap = BDI_CAP_MAP_COPY;
44761 int error __attribute__((unused)) =
44762 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
44763
44764 ;
44765 return 0;
44766}
44767
44768_ACEOF
44769
44770
44771
44772cat - <<_ACEOF >conftest.h
44773
44774_ACEOF
44775
44776
44777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44778 echo "obj-m := conftest.o" >build/Makefile
44779 modpost_flag=''
44780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44781 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44783 (eval $ac_try) 2>&5
44784 ac_status=$?
cae5b340
AX
44785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44788 (eval $ac_try) 2>&5
44789 ac_status=$?
cae5b340
AX
44790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44791 (exit $ac_status); }; }; then
ea04106b
AX
44792 rc=0
44793else
44794 $as_echo "$as_me: failed program was:" >&5
44795sed 's/^/| /' conftest.$ac_ext >&5
44796 rc=1
44797
44798
44799fi
cae5b340 44800
ea04106b
AX
44801 rm -Rf build
44802
44803
44804 if test $rc -ne 0; then :
44805
42f7b73b 44806 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44807$as_echo "no" >&6; }
44808
44809 else
44810 if test "x$enable_linux_builtin" != xyes; then
44811
42f7b73b 44812 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
ea04106b
AX
44813 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44814 rc=$?
44815 if test $rc -ne 0; then
44816 export=0
42f7b73b
AX
44817 for file in mm/backing-dev.c; do
44818 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
ea04106b
AX
44819 "$LINUX/$file" 2>/dev/null
44820 rc=$?
44821 if test $rc -eq 0; then
44822 export=1
44823 break;
44824 fi
44825 done
44826 if test $export -eq 0; then :
44827 rc=1
44828 else :
44829 rc=0
44830 fi
44831 else :
44832 rc=0
44833 fi
44834
44835 fi
44836 if test $rc -ne 0; then :
44837
42f7b73b 44838 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44839$as_echo "no" >&6; }
44840
44841 else :
44842
42f7b73b 44843 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44844$as_echo "yes" >&6; }
44845
cae5b340 44846cat >>confdefs.h <<\_ACEOF
42f7b73b 44847#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 44848_ACEOF
ea04106b
AX
44849
44850
44851 fi
44852 fi
44853
44854
42f7b73b
AX
44855 else
44856 if test "x$enable_linux_builtin" != xyes; then
44857
44858 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44859 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44860 rc=$?
44861 if test $rc -ne 0; then
44862 export=0
44863 for file in mm/backing-dev.c; do
44864 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44865 "$LINUX/$file" 2>/dev/null
44866 rc=$?
44867 if test $rc -eq 0; then
44868 export=1
44869 break;
44870 fi
44871 done
44872 if test $export -eq 0; then :
44873 rc=1
44874 else :
44875 rc=0
44876 fi
44877 else :
44878 rc=0
44879 fi
44880
44881 fi
44882 if test $rc -ne 0; then :
44883
44884 { $as_echo "$as_me:$LINENO: result: no" >&5
44885$as_echo "no" >&6; }
44886 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44887$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b 44888
ea04106b
AX
44889
44890
44891cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44892/* confdefs.h. */
44893_ACEOF
44894cat confdefs.h >>conftest.$ac_ext
44895cat >>conftest.$ac_ext <<_ACEOF
44896/* end confdefs.h. */
ea04106b
AX
44897
44898
42f7b73b
AX
44899 #include <linux/backing-dev.h>
44900 struct backing_dev_info bdi;
ea04106b
AX
44901
44902int
44903main (void)
44904{
44905
42f7b73b
AX
44906 char *name = "bdi";
44907 unsigned int cap = BDI_CAP_MAP_COPY;
44908 int error __attribute__((unused)) =
44909 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
44910
44911 ;
44912 return 0;
44913}
44914
44915_ACEOF
44916
44917
44918
44919cat - <<_ACEOF >conftest.h
44920
44921_ACEOF
44922
44923
44924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44925 echo "obj-m := conftest.o" >build/Makefile
44926 modpost_flag=''
44927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 44928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 44929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44930 (eval $ac_try) 2>&5
44931 ac_status=$?
cae5b340
AX
44932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44935 (eval $ac_try) 2>&5
44936 ac_status=$?
cae5b340
AX
44937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; }; then
42f7b73b
AX
44939 rc=0
44940else
44941 $as_echo "$as_me: failed program was:" >&5
44942sed 's/^/| /' conftest.$ac_ext >&5
44943 rc=1
ea04106b 44944
42f7b73b
AX
44945
44946fi
44947
44948 rm -Rf build
44949
44950
44951 if test $rc -ne 0; then :
44952
44953 { $as_echo "$as_me:$LINENO: result: no" >&5
44954$as_echo "no" >&6; }
44955
44956 else
44957 if test "x$enable_linux_builtin" != xyes; then
44958
44959 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44960 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44961 rc=$?
44962 if test $rc -ne 0; then
44963 export=0
44964 for file in mm/backing-dev.c; do
44965 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44966 "$LINUX/$file" 2>/dev/null
44967 rc=$?
44968 if test $rc -eq 0; then
44969 export=1
44970 break;
44971 fi
44972 done
44973 if test $export -eq 0; then :
44974 rc=1
44975 else :
44976 rc=0
44977 fi
44978 else :
44979 rc=0
44980 fi
44981
44982 fi
44983 if test $rc -ne 0; then :
44984
44985 { $as_echo "$as_me:$LINENO: result: no" >&5
44986$as_echo "no" >&6; }
44987
44988 else :
44989
44990 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44991$as_echo "yes" >&6; }
44992
cae5b340 44993cat >>confdefs.h <<\_ACEOF
42f7b73b 44994#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 44995_ACEOF
ea04106b
AX
44996
44997
42f7b73b
AX
44998 fi
44999 fi
ea04106b 45000
ea04106b 45001
42f7b73b 45002 else :
ea04106b 45003
42f7b73b
AX
45004 { $as_echo "$as_me:$LINENO: result: yes" >&5
45005$as_echo "yes" >&6; }
ea04106b 45006
42f7b73b
AX
45007cat >>confdefs.h <<\_ACEOF
45008#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45009_ACEOF
45010
45011
45012 fi
45013 fi
cae5b340 45014
ea04106b 45015
42f7b73b
AX
45016 else
45017 if test "x$enable_linux_builtin" != xyes; then
ea04106b 45018
42f7b73b
AX
45019 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
45020 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45021 rc=$?
45022 if test $rc -ne 0; then
45023 export=0
45024 for file in fs/super.c; do
45025 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
45026 "$LINUX/$file" 2>/dev/null
45027 rc=$?
45028 if test $rc -eq 0; then
45029 export=1
45030 break;
45031 fi
45032 done
45033 if test $export -eq 0; then :
45034 rc=1
45035 else :
45036 rc=0
45037 fi
45038 else :
45039 rc=0
45040 fi
ea04106b 45041
42f7b73b
AX
45042 fi
45043 if test $rc -ne 0; then :
45044
45045 { $as_echo "$as_me:$LINENO: result: no" >&5
45046$as_echo "no" >&6; }
45047 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
45048$as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
ea04106b 45049
ea04106b
AX
45050
45051
45052cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45053/* confdefs.h. */
45054_ACEOF
45055cat confdefs.h >>conftest.$ac_ext
45056cat >>conftest.$ac_ext <<_ACEOF
45057/* end confdefs.h. */
ea04106b
AX
45058
45059
42f7b73b
AX
45060 #include <linux/backing-dev.h>
45061 struct backing_dev_info bdi;
ea04106b
AX
45062
45063int
45064main (void)
45065{
45066
42f7b73b
AX
45067 char *name = "bdi";
45068 int error __attribute__((unused)) =
45069 bdi_setup_and_register(&bdi, name);
ea04106b
AX
45070
45071 ;
45072 return 0;
45073}
45074
45075_ACEOF
45076
45077
45078
45079cat - <<_ACEOF >conftest.h
45080
45081_ACEOF
45082
45083
45084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45085 echo "obj-m := conftest.o" >build/Makefile
45086 modpost_flag=''
45087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45090 (eval $ac_try) 2>&5
45091 ac_status=$?
cae5b340
AX
45092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45095 (eval $ac_try) 2>&5
45096 ac_status=$?
cae5b340
AX
45097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098 (exit $ac_status); }; }; then
42f7b73b 45099 rc=0
ea04106b
AX
45100else
45101 $as_echo "$as_me: failed program was:" >&5
45102sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 45103 rc=1
ea04106b
AX
45104
45105
45106fi
cae5b340 45107
ea04106b
AX
45108 rm -Rf build
45109
45110
42f7b73b 45111 if test $rc -ne 0; then :
ea04106b 45112
42f7b73b
AX
45113 { $as_echo "$as_me:$LINENO: result: no" >&5
45114$as_echo "no" >&6; }
45115 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45116$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
45117
45118
45119
45120cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45121/* confdefs.h. */
45122_ACEOF
45123cat confdefs.h >>conftest.$ac_ext
45124cat >>conftest.$ac_ext <<_ACEOF
45125/* end confdefs.h. */
ea04106b
AX
45126
45127
42f7b73b
AX
45128 #include <linux/backing-dev.h>
45129 struct backing_dev_info bdi;
ea04106b
AX
45130
45131int
45132main (void)
45133{
45134
42f7b73b
AX
45135 char *name = "bdi";
45136 unsigned int cap = BDI_CAP_MAP_COPY;
45137 int error __attribute__((unused)) =
45138 bdi_setup_and_register(&bdi, name, cap);
ea04106b
AX
45139
45140 ;
45141 return 0;
45142}
45143
45144_ACEOF
45145
45146
45147
45148cat - <<_ACEOF >conftest.h
45149
45150_ACEOF
45151
45152
45153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45154 echo "obj-m := conftest.o" >build/Makefile
45155 modpost_flag=''
45156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45157 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45159 (eval $ac_try) 2>&5
45160 ac_status=$?
cae5b340
AX
45161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45162 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45164 (eval $ac_try) 2>&5
45165 ac_status=$?
cae5b340
AX
45166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45167 (exit $ac_status); }; }; then
ea04106b
AX
45168 rc=0
45169else
45170 $as_echo "$as_me: failed program was:" >&5
45171sed 's/^/| /' conftest.$ac_ext >&5
45172 rc=1
45173
45174
45175fi
cae5b340 45176
ea04106b
AX
45177 rm -Rf build
45178
45179
45180 if test $rc -ne 0; then :
45181
42f7b73b 45182 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45183$as_echo "no" >&6; }
45184
45185 else
45186 if test "x$enable_linux_builtin" != xyes; then
45187
42f7b73b 45188 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
ea04106b
AX
45189 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45190 rc=$?
45191 if test $rc -ne 0; then
45192 export=0
42f7b73b
AX
45193 for file in mm/backing-dev.c; do
45194 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
ea04106b
AX
45195 "$LINUX/$file" 2>/dev/null
45196 rc=$?
45197 if test $rc -eq 0; then
45198 export=1
45199 break;
45200 fi
45201 done
45202 if test $export -eq 0; then :
45203 rc=1
45204 else :
45205 rc=0
45206 fi
45207 else :
45208 rc=0
45209 fi
45210
45211 fi
45212 if test $rc -ne 0; then :
45213
42f7b73b 45214 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45215$as_echo "no" >&6; }
45216
45217 else :
45218
42f7b73b 45219 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45220$as_echo "yes" >&6; }
45221
cae5b340 45222cat >>confdefs.h <<\_ACEOF
42f7b73b 45223#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 45224_ACEOF
ea04106b
AX
45225
45226
45227 fi
45228 fi
45229
45230
42f7b73b
AX
45231 else
45232 if test "x$enable_linux_builtin" != xyes; then
45233
45234 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45235 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45236 rc=$?
45237 if test $rc -ne 0; then
45238 export=0
45239 for file in mm/backing-dev.c; do
45240 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45241 "$LINUX/$file" 2>/dev/null
45242 rc=$?
45243 if test $rc -eq 0; then
45244 export=1
45245 break;
45246 fi
45247 done
45248 if test $export -eq 0; then :
45249 rc=1
45250 else :
45251 rc=0
45252 fi
45253 else :
45254 rc=0
45255 fi
45256
45257 fi
45258 if test $rc -ne 0; then :
45259
45260 { $as_echo "$as_me:$LINENO: result: no" >&5
45261$as_echo "no" >&6; }
45262 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45263$as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
ea04106b
AX
45264
45265
45266
45267cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45268/* confdefs.h. */
45269_ACEOF
45270cat confdefs.h >>conftest.$ac_ext
45271cat >>conftest.$ac_ext <<_ACEOF
45272/* end confdefs.h. */
ea04106b
AX
45273
45274
42f7b73b
AX
45275 #include <linux/backing-dev.h>
45276 struct backing_dev_info bdi;
e10b0808
AX
45277
45278int
45279main (void)
45280{
45281
42f7b73b
AX
45282 char *name = "bdi";
45283 unsigned int cap = BDI_CAP_MAP_COPY;
45284 int error __attribute__((unused)) =
45285 bdi_setup_and_register(&bdi, name, cap);
e10b0808
AX
45286
45287 ;
45288 return 0;
45289}
45290
45291_ACEOF
45292
45293
45294
45295cat - <<_ACEOF >conftest.h
45296
45297_ACEOF
45298
45299
45300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45301 echo "obj-m := conftest.o" >build/Makefile
45302 modpost_flag=''
45303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45304 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
45306 (eval $ac_try) 2>&5
45307 ac_status=$?
cae5b340
AX
45308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
45311 (eval $ac_try) 2>&5
45312 ac_status=$?
cae5b340
AX
45313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45314 (exit $ac_status); }; }; then
42f7b73b 45315 rc=0
e10b0808
AX
45316else
45317 $as_echo "$as_me: failed program was:" >&5
45318sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 45319 rc=1
e10b0808
AX
45320
45321
45322fi
cae5b340 45323
e10b0808
AX
45324 rm -Rf build
45325
45326
42f7b73b 45327 if test $rc -ne 0; then :
e10b0808 45328
42f7b73b
AX
45329 { $as_echo "$as_me:$LINENO: result: no" >&5
45330$as_echo "no" >&6; }
e10b0808 45331
42f7b73b
AX
45332 else
45333 if test "x$enable_linux_builtin" != xyes; then
e10b0808 45334
42f7b73b
AX
45335 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45336 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45337 rc=$?
45338 if test $rc -ne 0; then
45339 export=0
45340 for file in mm/backing-dev.c; do
45341 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45342 "$LINUX/$file" 2>/dev/null
45343 rc=$?
45344 if test $rc -eq 0; then
45345 export=1
45346 break;
45347 fi
45348 done
45349 if test $export -eq 0; then :
45350 rc=1
45351 else :
45352 rc=0
45353 fi
45354 else :
45355 rc=0
45356 fi
e10b0808 45357
42f7b73b
AX
45358 fi
45359 if test $rc -ne 0; then :
e10b0808 45360
42f7b73b
AX
45361 { $as_echo "$as_me:$LINENO: result: no" >&5
45362$as_echo "no" >&6; }
e10b0808 45363
42f7b73b 45364 else :
e10b0808 45365
42f7b73b 45366 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
45367$as_echo "yes" >&6; }
45368
cae5b340 45369cat >>confdefs.h <<\_ACEOF
42f7b73b 45370#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 45371_ACEOF
e10b0808
AX
45372
45373
42f7b73b
AX
45374 fi
45375 fi
ea04106b 45376
e10b0808 45377
42f7b73b 45378 else :
ea04106b 45379
42f7b73b
AX
45380 { $as_echo "$as_me:$LINENO: result: yes" >&5
45381$as_echo "yes" >&6; }
ea04106b 45382
42f7b73b
AX
45383cat >>confdefs.h <<\_ACEOF
45384#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
ea04106b
AX
45385_ACEOF
45386
45387
42f7b73b
AX
45388 fi
45389 fi
ea04106b
AX
45390
45391
42f7b73b 45392 else :
ea04106b 45393
cae5b340 45394 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 45395$as_echo "yes" >&6; }
ea04106b 45396
cae5b340 45397cat >>confdefs.h <<\_ACEOF
42f7b73b 45398#define HAVE_SUPER_SETUP_BDI_NAME 1
cae5b340 45399_ACEOF
ea04106b 45400
ea04106b 45401
42f7b73b
AX
45402 fi
45403 fi
ea04106b
AX
45404
45405
45406
42f7b73b
AX
45407 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
45408$as_echo_n "checking whether set_nlink() is available... " >&6; }
ea04106b
AX
45409
45410
45411cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45412/* confdefs.h. */
45413_ACEOF
45414cat confdefs.h >>conftest.$ac_ext
45415cat >>conftest.$ac_ext <<_ACEOF
45416/* end confdefs.h. */
ea04106b
AX
45417
45418
e10b0808 45419 #include <linux/fs.h>
ea04106b
AX
45420
45421int
45422main (void)
45423{
45424
42f7b73b
AX
45425 struct inode node;
45426 unsigned int link = 0;
45427 (void) set_nlink(&node, link);
ea04106b
AX
45428
45429 ;
45430 return 0;
45431}
45432
45433_ACEOF
45434
45435
45436
45437cat - <<_ACEOF >conftest.h
45438
45439_ACEOF
45440
45441
45442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45443 echo "obj-m := conftest.o" >build/Makefile
45444 modpost_flag=''
45445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45448 (eval $ac_try) 2>&5
45449 ac_status=$?
cae5b340
AX
45450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45453 (eval $ac_try) 2>&5
45454 ac_status=$?
cae5b340
AX
45455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); }; }; then
ea04106b 45457
cae5b340 45458 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45459$as_echo "yes" >&6; }
45460
cae5b340 45461cat >>confdefs.h <<\_ACEOF
42f7b73b 45462#define HAVE_SET_NLINK 1
cae5b340 45463_ACEOF
ea04106b
AX
45464
45465
45466else
45467 $as_echo "$as_me: failed program was:" >&5
45468sed 's/^/| /' conftest.$ac_ext >&5
45469
cae5b340 45470 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45471$as_echo "no" >&6; }
45472
45473
45474
45475fi
cae5b340 45476
ea04106b
AX
45477 rm -Rf build
45478
45479
45480
45481
42f7b73b
AX
45482 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
45483$as_echo_n "checking whether elevator_change() is available... " >&6; }
45484 tmp_flags="$EXTRA_KCFLAGS"
45485 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
45486
45487
45488cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45489/* confdefs.h. */
45490_ACEOF
45491cat confdefs.h >>conftest.$ac_ext
45492cat >>conftest.$ac_ext <<_ACEOF
45493/* end confdefs.h. */
ea04106b
AX
45494
45495
42f7b73b
AX
45496 #include <linux/blkdev.h>
45497 #include <linux/elevator.h>
ea04106b
AX
45498
45499int
45500main (void)
45501{
45502
42f7b73b
AX
45503 int ret;
45504 struct request_queue *q = NULL;
45505 char *elevator = NULL;
45506 ret = elevator_change(q, elevator);
ea04106b
AX
45507
45508 ;
45509 return 0;
45510}
45511
45512_ACEOF
45513
45514
45515
45516cat - <<_ACEOF >conftest.h
45517
45518_ACEOF
45519
45520
45521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45522 echo "obj-m := conftest.o" >build/Makefile
45523 modpost_flag=''
45524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45525 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45527 (eval $ac_try) 2>&5
45528 ac_status=$?
cae5b340
AX
45529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45530 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45532 (eval $ac_try) 2>&5
45533 ac_status=$?
cae5b340
AX
45534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; }; then
42f7b73b
AX
45536
45537 { $as_echo "$as_me:$LINENO: result: yes" >&5
45538$as_echo "yes" >&6; }
45539
45540cat >>confdefs.h <<\_ACEOF
45541#define HAVE_ELEVATOR_CHANGE 1
45542_ACEOF
45543
45544
ea04106b
AX
45545else
45546 $as_echo "$as_me: failed program was:" >&5
45547sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
45548
45549 { $as_echo "$as_me:$LINENO: result: no" >&5
45550$as_echo "no" >&6; }
45551
ea04106b
AX
45552
45553
45554fi
cae5b340 45555
ea04106b
AX
45556 rm -Rf build
45557
45558
42f7b73b 45559 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 45560
42f7b73b
AX
45561 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
45562$as_echo_n "checking whether sget() wants 5 args... " >&6; }
ea04106b
AX
45563
45564
45565cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45566/* confdefs.h. */
45567_ACEOF
45568cat confdefs.h >>conftest.$ac_ext
45569cat >>conftest.$ac_ext <<_ACEOF
45570/* end confdefs.h. */
ea04106b
AX
45571
45572
42f7b73b 45573 #include <linux/fs.h>
ea04106b
AX
45574
45575int
45576main (void)
45577{
45578
42f7b73b
AX
45579 struct file_system_type *type = NULL;
45580 int (*test)(struct super_block *,void *) = NULL;
45581 int (*set)(struct super_block *,void *) = NULL;
45582 int flags = 0;
45583 void *data = NULL;
45584 (void) sget(type, test, set, flags, data);
ea04106b
AX
45585
45586 ;
45587 return 0;
45588}
45589
45590_ACEOF
45591
45592
45593
45594cat - <<_ACEOF >conftest.h
45595
45596_ACEOF
45597
45598
45599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45600 echo "obj-m := conftest.o" >build/Makefile
45601 modpost_flag=''
45602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45603 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45605 (eval $ac_try) 2>&5
45606 ac_status=$?
cae5b340
AX
45607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45610 (eval $ac_try) 2>&5
45611 ac_status=$?
cae5b340
AX
45612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613 (exit $ac_status); }; }; then
42f7b73b
AX
45614
45615 { $as_echo "$as_me:$LINENO: result: yes" >&5
45616$as_echo "yes" >&6; }
45617
45618cat >>confdefs.h <<\_ACEOF
45619#define HAVE_5ARG_SGET 1
45620_ACEOF
45621
45622
ea04106b
AX
45623else
45624 $as_echo "$as_me: failed program was:" >&5
45625sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
45626
45627 { $as_echo "$as_me:$LINENO: result: no" >&5
45628$as_echo "no" >&6; }
45629
ea04106b
AX
45630
45631
45632fi
cae5b340 45633
ea04106b
AX
45634 rm -Rf build
45635
45636
ea04106b 45637
42f7b73b
AX
45638 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
45639$as_echo_n "checking whether lseek_execute() is available... " >&6; }
ea04106b
AX
45640
45641
ea04106b 45642
e10b0808 45643cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45644/* confdefs.h. */
45645_ACEOF
45646cat confdefs.h >>conftest.$ac_ext
45647cat >>conftest.$ac_ext <<_ACEOF
45648/* end confdefs.h. */
ea04106b 45649
e10b0808 45650
42f7b73b 45651 #include <linux/fs.h>
ea04106b
AX
45652
45653int
45654main (void)
45655{
45656
42f7b73b
AX
45657 struct file *fp __attribute__ ((unused)) = NULL;
45658 struct inode *ip __attribute__ ((unused)) = NULL;
45659 loff_t offset __attribute__ ((unused)) = 0;
45660 loff_t maxsize __attribute__ ((unused)) = 0;
45661
45662 lseek_execute(fp, ip, offset, maxsize);
ea04106b
AX
45663
45664 ;
45665 return 0;
45666}
45667
45668_ACEOF
45669
45670
45671
45672cat - <<_ACEOF >conftest.h
45673
45674_ACEOF
45675
45676
45677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45678 echo "obj-m := conftest.o" >build/Makefile
45679 modpost_flag=''
45680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45683 (eval $ac_try) 2>&5
45684 ac_status=$?
cae5b340
AX
45685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45688 (eval $ac_try) 2>&5
45689 ac_status=$?
cae5b340
AX
45690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45691 (exit $ac_status); }; }; then
e10b0808 45692 rc=0
ea04106b
AX
45693else
45694 $as_echo "$as_me: failed program was:" >&5
45695sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 45696 rc=1
ea04106b
AX
45697
45698
45699fi
cae5b340 45700
ea04106b
AX
45701 rm -Rf build
45702
45703
e10b0808 45704 if test $rc -ne 0; then :
ea04106b 45705
42f7b73b 45706 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 45707$as_echo "no" >&6; }
ea04106b 45708
e10b0808
AX
45709 else
45710 if test "x$enable_linux_builtin" != xyes; then
ea04106b 45711
42f7b73b 45712 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
e10b0808
AX
45713 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45714 rc=$?
45715 if test $rc -ne 0; then
45716 export=0
42f7b73b
AX
45717 for file in fs/read_write.c; do
45718 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
e10b0808
AX
45719 "$LINUX/$file" 2>/dev/null
45720 rc=$?
45721 if test $rc -eq 0; then
45722 export=1
45723 break;
45724 fi
45725 done
45726 if test $export -eq 0; then :
45727 rc=1
45728 else :
45729 rc=0
45730 fi
45731 else :
45732 rc=0
45733 fi
ea04106b 45734
e10b0808
AX
45735 fi
45736 if test $rc -ne 0; then :
ea04106b 45737
42f7b73b 45738 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 45739$as_echo "no" >&6; }
ea04106b 45740
e10b0808 45741 else :
ea04106b 45742
42f7b73b 45743 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45744$as_echo "yes" >&6; }
45745
cae5b340 45746cat >>confdefs.h <<\_ACEOF
42f7b73b 45747#define HAVE_LSEEK_EXECUTE 1
cae5b340 45748_ACEOF
ea04106b
AX
45749
45750
e10b0808
AX
45751 fi
45752 fi
ea04106b 45753
ea04106b 45754
e10b0808 45755
42f7b73b
AX
45756 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
45757$as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
ea04106b
AX
45758
45759
45760cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45761/* confdefs.h. */
45762_ACEOF
45763cat confdefs.h >>conftest.$ac_ext
45764cat >>conftest.$ac_ext <<_ACEOF
45765/* end confdefs.h. */
ea04106b
AX
45766
45767
42f7b73b
AX
45768 #include <linux/fs.h>
45769 int iterate(struct file *filp, struct dir_context * context)
45770 { return 0; }
45771
45772 static const struct file_operations fops
45773 __attribute__ ((unused)) = {
45774 .iterate_shared = iterate,
45775 };
ea04106b
AX
45776
45777int
45778main (void)
45779{
45780
22929307
AX
45781
45782 ;
45783 return 0;
45784}
45785
45786_ACEOF
45787
45788
45789
45790cat - <<_ACEOF >conftest.h
45791
45792_ACEOF
45793
45794
45795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45796 echo "obj-m := conftest.o" >build/Makefile
45797 modpost_flag=''
45798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45801 (eval $ac_try) 2>&5
45802 ac_status=$?
cae5b340
AX
45803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45804 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45806 (eval $ac_try) 2>&5
45807 ac_status=$?
cae5b340
AX
45808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45809 (exit $ac_status); }; }; then
22929307 45810
42f7b73b 45811 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
45812$as_echo "yes" >&6; }
45813
cae5b340 45814cat >>confdefs.h <<\_ACEOF
42f7b73b 45815#define HAVE_VFS_ITERATE_SHARED 1
cae5b340 45816_ACEOF
22929307
AX
45817
45818
42f7b73b
AX
45819else
45820 $as_echo "$as_me: failed program was:" >&5
45821sed 's/^/| /' conftest.$ac_ext >&5
22929307 45822
cae5b340 45823 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 45824$as_echo "no" >&6; }
22929307 45825
42f7b73b
AX
45826 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
45827$as_echo_n "checking whether fops->iterate() is available... " >&6; }
22929307
AX
45828
45829
45830cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45831/* confdefs.h. */
45832_ACEOF
45833cat confdefs.h >>conftest.$ac_ext
45834cat >>conftest.$ac_ext <<_ACEOF
45835/* end confdefs.h. */
22929307
AX
45836
45837
42f7b73b
AX
45838 #include <linux/fs.h>
45839 int iterate(struct file *filp,
45840 struct dir_context *context) { return 0; }
45841
45842 static const struct file_operations fops
45843 __attribute__ ((unused)) = {
45844 .iterate = iterate,
45845 };
45846
45847 #if defined(FMODE_KABI_ITERATE)
45848 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
45849 #endif
22929307
AX
45850
45851int
45852main (void)
45853{
45854
22929307
AX
45855
45856 ;
45857 return 0;
45858}
45859
45860_ACEOF
45861
45862
45863
45864cat - <<_ACEOF >conftest.h
45865
45866_ACEOF
45867
45868
45869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45870 echo "obj-m := conftest.o" >build/Makefile
45871 modpost_flag=''
45872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45873 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45875 (eval $ac_try) 2>&5
45876 ac_status=$?
cae5b340
AX
45877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45880 (eval $ac_try) 2>&5
45881 ac_status=$?
cae5b340
AX
45882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883 (exit $ac_status); }; }; then
22929307 45884
42f7b73b
AX
45885 { $as_echo "$as_me:$LINENO: result: yes" >&5
45886$as_echo "yes" >&6; }
cae5b340 45887
42f7b73b
AX
45888cat >>confdefs.h <<\_ACEOF
45889#define HAVE_VFS_ITERATE 1
45890_ACEOF
22929307
AX
45891
45892
42f7b73b
AX
45893else
45894 $as_echo "$as_me: failed program was:" >&5
45895sed 's/^/| /' conftest.$ac_ext >&5
22929307 45896
cae5b340 45897 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 45898$as_echo "no" >&6; }
22929307 45899
42f7b73b
AX
45900 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
45901$as_echo_n "checking whether fops->readdir() is available... " >&6; }
22929307
AX
45902
45903
45904cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45905/* confdefs.h. */
45906_ACEOF
45907cat confdefs.h >>conftest.$ac_ext
45908cat >>conftest.$ac_ext <<_ACEOF
45909/* end confdefs.h. */
22929307
AX
45910
45911
42f7b73b
AX
45912 #include <linux/fs.h>
45913 int readdir(struct file *filp, void *entry,
45914 filldir_t func) { return 0; }
45915
45916 static const struct file_operations fops
45917 __attribute__ ((unused)) = {
45918 .readdir = readdir,
45919 };
22929307
AX
45920
45921int
45922main (void)
45923{
45924
22929307
AX
45925
45926 ;
45927 return 0;
45928}
45929
45930_ACEOF
45931
45932
45933
45934cat - <<_ACEOF >conftest.h
45935
45936_ACEOF
45937
45938
45939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45940 echo "obj-m := conftest.o" >build/Makefile
45941 modpost_flag=''
45942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 45943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 45944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45945 (eval $ac_try) 2>&5
45946 ac_status=$?
cae5b340
AX
45947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45950 (eval $ac_try) 2>&5
45951 ac_status=$?
cae5b340
AX
45952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953 (exit $ac_status); }; }; then
42f7b73b
AX
45954
45955 { $as_echo "$as_me:$LINENO: result: yes" >&5
45956$as_echo "yes" >&6; }
45957
45958cat >>confdefs.h <<\_ACEOF
45959#define HAVE_VFS_READDIR 1
45960_ACEOF
45961
45962
22929307
AX
45963else
45964 $as_echo "$as_me: failed program was:" >&5
45965sed 's/^/| /' conftest.$ac_ext >&5
22929307 45966
42f7b73b
AX
45967 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
45968$as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
45969 { (exit 1); exit 1; }; }
22929307 45970
22929307
AX
45971
45972
42f7b73b 45973fi
22929307 45974
42f7b73b 45975 rm -Rf build
22929307 45976
22929307 45977
22929307 45978
22929307 45979
22929307 45980
42f7b73b 45981fi
22929307 45982
42f7b73b 45983 rm -Rf build
22929307 45984
22929307
AX
45985
45986
22929307
AX
45987
45988
42f7b73b 45989fi
22929307 45990
42f7b73b 45991 rm -Rf build
22929307 45992
22929307 45993
22929307 45994
42f7b73b
AX
45995 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
45996$as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
22929307
AX
45997
45998
45999cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46000/* confdefs.h. */
46001_ACEOF
46002cat confdefs.h >>conftest.$ac_ext
46003cat >>conftest.$ac_ext <<_ACEOF
46004/* end confdefs.h. */
22929307
AX
46005
46006
42f7b73b
AX
46007 #include <linux/fs.h>
46008
46009 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
46010 { return 0; }
46011 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
46012 { return 0; }
46013
46014 static const struct file_operations
46015 fops __attribute__ ((unused)) = {
46016 .read_iter = test_read,
46017 .write_iter = test_write,
46018 };
22929307
AX
46019
46020int
46021main (void)
46022{
46023
22929307
AX
46024
46025 ;
46026 return 0;
46027}
46028
46029_ACEOF
46030
46031
46032
46033cat - <<_ACEOF >conftest.h
46034
46035_ACEOF
46036
46037
46038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46039 echo "obj-m := conftest.o" >build/Makefile
46040 modpost_flag=''
46041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46042 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46044 (eval $ac_try) 2>&5
46045 ac_status=$?
cae5b340
AX
46046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46049 (eval $ac_try) 2>&5
46050 ac_status=$?
cae5b340
AX
46051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052 (exit $ac_status); }; }; then
22929307 46053
42f7b73b
AX
46054 { $as_echo "$as_me:$LINENO: result: yes" >&5
46055$as_echo "yes" >&6; }
22929307 46056
42f7b73b
AX
46057cat >>confdefs.h <<\_ACEOF
46058#define HAVE_VFS_RW_ITERATE 1
46059_ACEOF
cae5b340 46060
22929307 46061
42f7b73b
AX
46062 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
46063$as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
22929307 46064
22929307 46065
42f7b73b
AX
46066cat confdefs.h - <<_ACEOF >conftest.c
46067/* confdefs.h. */
46068_ACEOF
46069cat confdefs.h >>conftest.$ac_ext
46070cat >>conftest.$ac_ext <<_ACEOF
46071/* end confdefs.h. */
22929307 46072
22929307 46073
42f7b73b 46074 #include <linux/fs.h>
22929307 46075
42f7b73b
AX
46076int
46077main (void)
46078{
22929307 46079
42f7b73b
AX
46080 ssize_t ret __attribute__ ((unused));
46081 struct file *filp = NULL;
46082 char __user *rbuf = NULL;
46083 const char __user *wbuf = NULL;
46084 size_t len = 0;
46085 loff_t ppos;
22929307 46086
42f7b73b
AX
46087 ret = new_sync_read(filp, rbuf, len, &ppos);
46088 ret = new_sync_write(filp, wbuf, len, &ppos);
22929307 46089
42f7b73b
AX
46090 ;
46091 return 0;
46092}
46093
46094_ACEOF
46095
46096
46097
46098cat - <<_ACEOF >conftest.h
46099
46100_ACEOF
46101
46102
46103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46104 echo "obj-m := conftest.o" >build/Makefile
46105 modpost_flag=''
46106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46107 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46109 (eval $ac_try) 2>&5
46110 ac_status=$?
46111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46114 (eval $ac_try) 2>&5
46115 ac_status=$?
46116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46117 (exit $ac_status); }; }; then
46118
46119 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
46120$as_echo "yes" >&6; }
46121
cae5b340 46122cat >>confdefs.h <<\_ACEOF
42f7b73b 46123#define HAVE_NEW_SYNC_READ 1
cae5b340 46124_ACEOF
22929307
AX
46125
46126
42f7b73b
AX
46127else
46128 $as_echo "$as_me: failed program was:" >&5
46129sed 's/^/| /' conftest.$ac_ext >&5
22929307 46130
42f7b73b
AX
46131 { $as_echo "$as_me:$LINENO: result: no" >&5
46132$as_echo "no" >&6; }
22929307 46133
22929307 46134
22929307 46135
42f7b73b 46136fi
22929307 46137
42f7b73b 46138 rm -Rf build
22929307 46139
22929307
AX
46140
46141
22929307 46142
42f7b73b
AX
46143else
46144 $as_echo "$as_me: failed program was:" >&5
46145sed 's/^/| /' conftest.$ac_ext >&5
22929307 46146
42f7b73b
AX
46147 { $as_echo "$as_me:$LINENO: result: no" >&5
46148$as_echo "no" >&6; }
22929307
AX
46149
46150
22929307 46151
42f7b73b 46152fi
22929307 46153
42f7b73b 46154 rm -Rf build
22929307 46155
42f7b73b
AX
46156
46157
46158 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
46159$as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
22929307
AX
46160
46161
46162cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46163/* confdefs.h. */
46164_ACEOF
46165cat confdefs.h >>conftest.$ac_ext
46166cat >>conftest.$ac_ext <<_ACEOF
46167/* end confdefs.h. */
22929307
AX
46168
46169
46170 #include <linux/fs.h>
46171
42f7b73b 46172
22929307
AX
46173int
46174main (void)
46175{
46176
42f7b73b
AX
46177 struct kiocb *iocb = NULL;
46178 struct iov_iter *iov = NULL;
46179 generic_write_checks(iocb, iov);
ea04106b
AX
46180
46181 ;
46182 return 0;
46183}
46184
46185_ACEOF
46186
46187
46188
46189cat - <<_ACEOF >conftest.h
46190
46191_ACEOF
46192
46193
46194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46195 echo "obj-m := conftest.o" >build/Makefile
46196 modpost_flag=''
46197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46198 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46200 (eval $ac_try) 2>&5
46201 ac_status=$?
cae5b340
AX
46202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46205 (eval $ac_try) 2>&5
46206 ac_status=$?
cae5b340
AX
46207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46208 (exit $ac_status); }; }; then
ea04106b 46209
cae5b340 46210 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46211$as_echo "yes" >&6; }
46212
cae5b340 46213cat >>confdefs.h <<\_ACEOF
42f7b73b 46214#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
cae5b340 46215_ACEOF
ea04106b
AX
46216
46217
46218else
46219 $as_echo "$as_me: failed program was:" >&5
46220sed 's/^/| /' conftest.$ac_ext >&5
46221
cae5b340 46222 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
46223$as_echo "no" >&6; }
46224
46225
46226
46227fi
cae5b340 46228
ea04106b
AX
46229 rm -Rf build
46230
46231
46232
e10b0808 46233
42f7b73b
AX
46234 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
46235$as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
ea04106b
AX
46236
46237
46238cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46239/* confdefs.h. */
46240_ACEOF
46241cat confdefs.h >>conftest.$ac_ext
46242cat >>conftest.$ac_ext <<_ACEOF
46243/* end confdefs.h. */
ea04106b
AX
46244
46245
42f7b73b 46246 #include <linux/pagemap.h>
ea04106b
AX
46247
46248int
46249main (void)
46250{
46251
42f7b73b
AX
46252 struct page page;
46253 kmap_atomic(&page);
ea04106b
AX
46254
46255 ;
46256 return 0;
46257}
46258
46259_ACEOF
46260
46261
46262
46263cat - <<_ACEOF >conftest.h
46264
46265_ACEOF
46266
46267
46268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46269 echo "obj-m := conftest.o" >build/Makefile
46270 modpost_flag=''
46271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46274 (eval $ac_try) 2>&5
46275 ac_status=$?
cae5b340
AX
46276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46279 (eval $ac_try) 2>&5
46280 ac_status=$?
cae5b340
AX
46281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46282 (exit $ac_status); }; }; then
ea04106b 46283
cae5b340 46284 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46285$as_echo "yes" >&6; }
46286
cae5b340 46287cat >>confdefs.h <<\_ACEOF
42f7b73b 46288#define HAVE_1ARG_KMAP_ATOMIC 1
cae5b340 46289_ACEOF
ea04106b
AX
46290
46291
46292else
46293 $as_echo "$as_me: failed program was:" >&5
46294sed 's/^/| /' conftest.$ac_ext >&5
46295
cae5b340 46296 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
46297$as_echo "no" >&6; }
46298
46299
46300
46301fi
cae5b340 46302
ea04106b
AX
46303 rm -Rf build
46304
46305
46306
42f7b73b
AX
46307
46308 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
46309$as_echo_n "checking whether follow_down_one() is available... " >&6; }
ea04106b
AX
46310
46311
46312cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46313/* confdefs.h. */
46314_ACEOF
46315cat confdefs.h >>conftest.$ac_ext
46316cat >>conftest.$ac_ext <<_ACEOF
46317/* end confdefs.h. */
ea04106b
AX
46318
46319
42f7b73b 46320 #include <linux/namei.h>
ea04106b
AX
46321
46322int
46323main (void)
46324{
46325
42f7b73b
AX
46326 struct path *p = NULL;
46327 follow_down_one(p);
ea04106b
AX
46328
46329 ;
46330 return 0;
46331}
46332
46333_ACEOF
46334
46335
46336
46337cat - <<_ACEOF >conftest.h
46338
46339_ACEOF
46340
46341
46342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46343 echo "obj-m := conftest.o" >build/Makefile
46344 modpost_flag=''
46345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46346 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46348 (eval $ac_try) 2>&5
46349 ac_status=$?
cae5b340
AX
46350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46353 (eval $ac_try) 2>&5
46354 ac_status=$?
cae5b340
AX
46355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356 (exit $ac_status); }; }; then
e10b0808 46357
cae5b340 46358 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
46359$as_echo "yes" >&6; }
46360
cae5b340 46361cat >>confdefs.h <<\_ACEOF
42f7b73b 46362#define HAVE_FOLLOW_DOWN_ONE 1
cae5b340 46363_ACEOF
e10b0808
AX
46364
46365
ea04106b
AX
46366else
46367 $as_echo "$as_me: failed program was:" >&5
46368sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 46369
cae5b340 46370 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
46371$as_echo "no" >&6; }
46372
ea04106b
AX
46373
46374
46375fi
cae5b340 46376
ea04106b
AX
46377 rm -Rf build
46378
46379
ea04106b 46380
ea04106b 46381
42f7b73b
AX
46382 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
46383$as_echo_n "checking whether make_request_fn() returns int... " >&6; }
ea04106b
AX
46384
46385
46386cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46387/* confdefs.h. */
46388_ACEOF
46389cat confdefs.h >>conftest.$ac_ext
46390cat >>conftest.$ac_ext <<_ACEOF
46391/* end confdefs.h. */
ea04106b
AX
46392
46393
42f7b73b
AX
46394 #include <linux/blkdev.h>
46395
46396 int make_request(struct request_queue *q, struct bio *bio)
46397 {
46398 return (0);
46399 }
ea04106b
AX
46400
46401int
46402main (void)
46403{
46404
42f7b73b 46405 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
46406
46407 ;
46408 return 0;
46409}
46410
46411_ACEOF
46412
46413
46414
46415cat - <<_ACEOF >conftest.h
46416
46417_ACEOF
46418
46419
46420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46421 echo "obj-m := conftest.o" >build/Makefile
46422 modpost_flag=''
46423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46426 (eval $ac_try) 2>&5
46427 ac_status=$?
cae5b340
AX
46428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46431 (eval $ac_try) 2>&5
46432 ac_status=$?
cae5b340
AX
46433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434 (exit $ac_status); }; }; then
ea04106b 46435
cae5b340 46436 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46437$as_echo "yes" >&6; }
46438
cae5b340 46439cat >>confdefs.h <<\_ACEOF
42f7b73b 46440#define MAKE_REQUEST_FN_RET int
cae5b340 46441_ACEOF
ea04106b 46442
ea04106b 46443
42f7b73b
AX
46444cat >>confdefs.h <<\_ACEOF
46445#define HAVE_MAKE_REQUEST_FN_RET_INT 1
46446_ACEOF
ea04106b 46447
ea04106b 46448
42f7b73b
AX
46449else
46450 $as_echo "$as_me: failed program was:" >&5
46451sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 46452
42f7b73b
AX
46453 { $as_echo "$as_me:$LINENO: result: no" >&5
46454$as_echo "no" >&6; }
46455 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
46456$as_echo_n "checking whether make_request_fn() returns void... " >&6; }
ea04106b
AX
46457
46458
46459cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46460/* confdefs.h. */
46461_ACEOF
46462cat confdefs.h >>conftest.$ac_ext
46463cat >>conftest.$ac_ext <<_ACEOF
46464/* end confdefs.h. */
ea04106b
AX
46465
46466
42f7b73b 46467 #include <linux/blkdev.h>
e10b0808 46468
42f7b73b
AX
46469 void make_request(struct request_queue *q, struct bio *bio)
46470 {
46471 return;
46472 }
ea04106b
AX
46473
46474int
46475main (void)
46476{
46477
42f7b73b 46478 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
46479
46480 ;
46481 return 0;
46482}
46483
46484_ACEOF
46485
46486
46487
e10b0808 46488cat - <<_ACEOF >conftest.h
ea04106b 46489
e10b0808 46490_ACEOF
ea04106b
AX
46491
46492
e10b0808
AX
46493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46494 echo "obj-m := conftest.o" >build/Makefile
46495 modpost_flag=''
46496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
46499 (eval $ac_try) 2>&5
46500 ac_status=$?
cae5b340
AX
46501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46502 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
46504 (eval $ac_try) 2>&5
46505 ac_status=$?
cae5b340
AX
46506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46507 (exit $ac_status); }; }; then
ea04106b 46508
42f7b73b 46509 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46510$as_echo "yes" >&6; }
46511
cae5b340 46512cat >>confdefs.h <<\_ACEOF
42f7b73b 46513#define MAKE_REQUEST_FN_RET void
cae5b340 46514_ACEOF
22929307
AX
46515
46516
46517else
46518 $as_echo "$as_me: failed program was:" >&5
46519sed 's/^/| /' conftest.$ac_ext >&5
46520
42f7b73b 46521 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 46522$as_echo "no" >&6; }
42f7b73b
AX
46523 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
46524$as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
22929307
AX
46525
46526
46527cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46528/* confdefs.h. */
46529_ACEOF
46530cat confdefs.h >>conftest.$ac_ext
46531cat >>conftest.$ac_ext <<_ACEOF
46532/* end confdefs.h. */
22929307
AX
46533
46534
42f7b73b 46535 #include <linux/blkdev.h>
22929307 46536
42f7b73b
AX
46537 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
46538 {
46539 return (BLK_QC_T_NONE);
46540 }
22929307
AX
46541
46542int
46543main (void)
46544{
46545
42f7b73b 46546 blk_queue_make_request(NULL, &make_request);
22929307
AX
46547
46548 ;
46549 return 0;
46550}
46551
46552_ACEOF
46553
46554
46555
46556cat - <<_ACEOF >conftest.h
46557
46558_ACEOF
46559
46560
46561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46562 echo "obj-m := conftest.o" >build/Makefile
46563 modpost_flag=''
46564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46565 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46567 (eval $ac_try) 2>&5
46568 ac_status=$?
cae5b340
AX
46569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46572 (eval $ac_try) 2>&5
46573 ac_status=$?
cae5b340
AX
46574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575 (exit $ac_status); }; }; then
22929307 46576
42f7b73b 46577 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
46578$as_echo "yes" >&6; }
46579
cae5b340 46580cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
46581#define MAKE_REQUEST_FN_RET blk_qc_t
46582_ACEOF
46583
46584
46585cat >>confdefs.h <<\_ACEOF
46586#define HAVE_MAKE_REQUEST_FN_RET_QC 1
cae5b340 46587_ACEOF
22929307
AX
46588
46589
46590else
46591 $as_echo "$as_me: failed program was:" >&5
46592sed 's/^/| /' conftest.$ac_ext >&5
46593
42f7b73b
AX
46594 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
46595 https://github.com/zfsonlinux/zfs/issues/new" >&5
46596$as_echo "$as_me: error: no - Please file a bug report at
46597 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
46598 { (exit 1); exit 1; }; }
46599
46600
46601
46602fi
46603
46604 rm -Rf build
46605
46606
46607
46608
46609
46610fi
46611
46612 rm -Rf build
46613
46614
46615
46616
46617
46618fi
46619
46620 rm -Rf build
46621
46622
46623
46624
46625 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
46626$as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
22929307 46627
22929307
AX
46628
46629
46630cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46631/* confdefs.h. */
46632_ACEOF
46633cat confdefs.h >>conftest.$ac_ext
46634cat >>conftest.$ac_ext <<_ACEOF
46635/* end confdefs.h. */
22929307
AX
46636
46637
42f7b73b 46638 #include <linux/bio.h>
22929307 46639
42f7b73b
AX
46640 void (*generic_start_io_acct_f)(int, unsigned long,
46641 struct hd_struct *) = &generic_start_io_acct;
46642 void (*generic_end_io_acct_f)(int, struct hd_struct *,
46643 unsigned long) = &generic_end_io_acct;
22929307
AX
46644
46645int
46646main (void)
46647{
46648
42f7b73b
AX
46649 generic_start_io_acct(0, 0, NULL);
46650 generic_end_io_acct(0, NULL, 0);
22929307
AX
46651
46652 ;
46653 return 0;
46654}
46655
46656_ACEOF
46657
46658
46659
46660cat - <<_ACEOF >conftest.h
46661
46662_ACEOF
46663
46664
46665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46666 echo "obj-m := conftest.o" >build/Makefile
46667 modpost_flag=''
46668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46669 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46671 (eval $ac_try) 2>&5
46672 ac_status=$?
cae5b340
AX
46673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46676 (eval $ac_try) 2>&5
46677 ac_status=$?
cae5b340
AX
46678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679 (exit $ac_status); }; }; then
42f7b73b 46680 rc=0
22929307
AX
46681else
46682 $as_echo "$as_me: failed program was:" >&5
46683sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 46684 rc=1
22929307
AX
46685
46686
46687fi
cae5b340 46688
22929307
AX
46689 rm -Rf build
46690
46691
42f7b73b 46692 if test $rc -ne 0; then :
22929307 46693
42f7b73b
AX
46694 { $as_echo "$as_me:$LINENO: result: no" >&5
46695$as_echo "no" >&6; }
22929307 46696
42f7b73b
AX
46697 else
46698 if test "x$enable_linux_builtin" != xyes; then
22929307 46699
42f7b73b
AX
46700 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
46701 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46702 rc=$?
46703 if test $rc -ne 0; then
46704 export=0
46705 for file in block/bio.c; do
46706 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46707 "$LINUX/$file" 2>/dev/null
46708 rc=$?
46709 if test $rc -eq 0; then
46710 export=1
46711 break;
46712 fi
46713 done
46714 if test $export -eq 0; then :
46715 rc=1
46716 else :
46717 rc=0
46718 fi
46719 else :
46720 rc=0
46721 fi
cae5b340 46722
42f7b73b
AX
46723 fi
46724 if test $rc -ne 0; then :
22929307 46725
42f7b73b
AX
46726 { $as_echo "$as_me:$LINENO: result: no" >&5
46727$as_echo "no" >&6; }
22929307 46728
42f7b73b 46729 else :
22929307 46730
42f7b73b
AX
46731 { $as_echo "$as_me:$LINENO: result: yes" >&5
46732$as_echo "yes" >&6; }
22929307 46733
42f7b73b
AX
46734cat >>confdefs.h <<\_ACEOF
46735#define HAVE_GENERIC_IO_ACCT_3ARG 1
46736_ACEOF
22929307 46737
cae5b340 46738
42f7b73b
AX
46739 fi
46740 fi
22929307
AX
46741
46742
46743
42f7b73b
AX
46744 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
46745$as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
46746
22929307
AX
46747
46748
46749cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46750/* confdefs.h. */
46751_ACEOF
46752cat confdefs.h >>conftest.$ac_ext
46753cat >>conftest.$ac_ext <<_ACEOF
46754/* end confdefs.h. */
22929307
AX
46755
46756
42f7b73b 46757 #include <linux/bio.h>
22929307 46758
42f7b73b
AX
46759 void (*generic_start_io_acct_f)(struct request_queue *, int,
46760 unsigned long, struct hd_struct *) = &generic_start_io_acct;
46761 void (*generic_end_io_acct_f)(struct request_queue *, int,
46762 struct hd_struct *, unsigned long) = &generic_end_io_acct;
22929307
AX
46763
46764int
46765main (void)
46766{
46767
42f7b73b
AX
46768 generic_start_io_acct(NULL, 0, 0, NULL);
46769 generic_end_io_acct(NULL, 0, NULL, 0);
22929307
AX
46770
46771 ;
46772 return 0;
46773}
46774
46775_ACEOF
46776
46777
46778
46779cat - <<_ACEOF >conftest.h
46780
46781_ACEOF
46782
46783
46784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46785 echo "obj-m := conftest.o" >build/Makefile
46786 modpost_flag=''
46787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46788 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46790 (eval $ac_try) 2>&5
46791 ac_status=$?
cae5b340
AX
46792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46795 (eval $ac_try) 2>&5
46796 ac_status=$?
cae5b340
AX
46797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798 (exit $ac_status); }; }; then
42f7b73b
AX
46799 rc=0
46800else
46801 $as_echo "$as_me: failed program was:" >&5
46802sed 's/^/| /' conftest.$ac_ext >&5
46803 rc=1
46804
46805
46806fi
46807
46808 rm -Rf build
46809
46810
46811 if test $rc -ne 0; then :
46812
46813 { $as_echo "$as_me:$LINENO: result: no" >&5
46814$as_echo "no" >&6; }
46815
46816 else
46817 if test "x$enable_linux_builtin" != xyes; then
46818
46819 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
46820 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46821 rc=$?
46822 if test $rc -ne 0; then
46823 export=0
46824 for file in block/bio.c; do
46825 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46826 "$LINUX/$file" 2>/dev/null
46827 rc=$?
46828 if test $rc -eq 0; then
46829 export=1
46830 break;
46831 fi
46832 done
46833 if test $export -eq 0; then :
46834 rc=1
46835 else :
46836 rc=0
46837 fi
46838 else :
46839 rc=0
46840 fi
46841
46842 fi
46843 if test $rc -ne 0; then :
46844
46845 { $as_echo "$as_me:$LINENO: result: no" >&5
46846$as_echo "no" >&6; }
46847
46848 else :
22929307 46849
cae5b340 46850 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
46851$as_echo "yes" >&6; }
46852
cae5b340 46853cat >>confdefs.h <<\_ACEOF
42f7b73b 46854#define HAVE_GENERIC_IO_ACCT_4ARG 1
cae5b340 46855_ACEOF
ea04106b 46856
ea04106b 46857
42f7b73b
AX
46858 fi
46859 fi
46860
46861
46862
46863 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
46864$as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
ea04106b
AX
46865
46866
46867cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46868/* confdefs.h. */
46869_ACEOF
46870cat confdefs.h >>conftest.$ac_ext
46871cat >>conftest.$ac_ext <<_ACEOF
46872/* end confdefs.h. */
ea04106b
AX
46873
46874
42f7b73b
AX
46875 #include <linux/kernel.h>
46876 #include <asm/fpu/api.h>
ea04106b
AX
46877
46878int
46879main (void)
46880{
46881
42f7b73b 46882 __kernel_fpu_begin();
ea04106b
AX
46883
46884 ;
46885 return 0;
46886}
46887
46888_ACEOF
46889
46890
46891
46892cat - <<_ACEOF >conftest.h
46893
46894_ACEOF
46895
46896
46897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46898 echo "obj-m := conftest.o" >build/Makefile
46899 modpost_flag=''
46900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 46901 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 46902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46903 (eval $ac_try) 2>&5
46904 ac_status=$?
cae5b340
AX
46905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46906 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46908 (eval $ac_try) 2>&5
46909 ac_status=$?
cae5b340
AX
46910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911 (exit $ac_status); }; }; then
ea04106b 46912
cae5b340 46913 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
46914$as_echo "yes" >&6; }
46915
cae5b340 46916cat >>confdefs.h <<\_ACEOF
42f7b73b 46917#define HAVE_FPU_API_H 1
cae5b340 46918_ACEOF
68d83c55
AX
46919
46920
46921else
46922 $as_echo "$as_me: failed program was:" >&5
46923sed 's/^/| /' conftest.$ac_ext >&5
46924
cae5b340 46925 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
46926$as_echo "no" >&6; }
46927
68d83c55
AX
46928
46929
46930fi
cae5b340 46931
68d83c55
AX
46932 rm -Rf build
46933
46934
46935
46936
42f7b73b
AX
46937 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
46938$as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
46939
46940
46941cat confdefs.h - <<_ACEOF >conftest.c
46942/* confdefs.h. */
46943_ACEOF
46944cat confdefs.h >>conftest.$ac_ext
46945cat >>conftest.$ac_ext <<_ACEOF
46946/* end confdefs.h. */
46947
46948
46949 #include <linux/fs.h>
46950
46951int
46952main (void)
46953{
46954
46955 struct inode *ip = NULL;
46956 (void) i_uid_read(ip);
46957
46958 ;
46959 return 0;
46960}
46961
46962_ACEOF
46963
46964
46965
46966cat - <<_ACEOF >conftest.h
46967
46968_ACEOF
46969
46970
46971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46972 echo "obj-m := conftest.o" >build/Makefile
46973 modpost_flag=''
46974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46975 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977 (eval $ac_try) 2>&5
46978 ac_status=$?
46979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46982 (eval $ac_try) 2>&5
46983 ac_status=$?
46984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46985 (exit $ac_status); }; }; then
46986
46987 { $as_echo "$as_me:$LINENO: result: yes" >&5
46988$as_echo "yes" >&6; }
46989
46990cat >>confdefs.h <<\_ACEOF
46991#define HAVE_KUID_HELPERS 1
46992_ACEOF
46993
46994
ea04106b
AX
46995else
46996 $as_echo "$as_me: failed program was:" >&5
46997sed 's/^/| /' conftest.$ac_ext >&5
46998
cae5b340 46999 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 47000$as_echo "no" >&6; }
87dac73d
AX
47001
47002
e10b0808
AX
47003
47004fi
cae5b340 47005
e10b0808
AX
47006 rm -Rf build
47007
47008
47009
42f7b73b
AX
47010
47011 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
47012$as_echo_n "checking whether module_param_call() is hardened... " >&6; }
ea04106b
AX
47013
47014
47015cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47016/* confdefs.h. */
47017_ACEOF
47018cat confdefs.h >>conftest.$ac_ext
47019cat >>conftest.$ac_ext <<_ACEOF
47020/* end confdefs.h. */
ea04106b
AX
47021
47022
42f7b73b
AX
47023 #include <linux/module.h>
47024 #include <linux/moduleparam.h>
47025
47026 int param_get(char *b, const struct kernel_param *kp)
47027 {
47028 return (0);
47029 }
47030
47031 int param_set(const char *b, const struct kernel_param *kp)
47032 {
47033 return (0);
47034 }
e10b0808 47035
42f7b73b 47036 module_param_call(p, param_set, param_get, NULL, 0644);
ea04106b
AX
47037
47038int
47039main (void)
47040{
47041
ea04106b
AX
47042
47043 ;
47044 return 0;
47045}
47046
47047_ACEOF
47048
47049
47050
47051cat - <<_ACEOF >conftest.h
47052
47053_ACEOF
47054
47055
47056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47057 echo "obj-m := conftest.o" >build/Makefile
47058 modpost_flag=''
47059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47062 (eval $ac_try) 2>&5
47063 ac_status=$?
cae5b340
AX
47064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47065 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47067 (eval $ac_try) 2>&5
47068 ac_status=$?
cae5b340
AX
47069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070 (exit $ac_status); }; }; then
ea04106b 47071
cae5b340 47072 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47073$as_echo "yes" >&6; }
47074
cae5b340 47075cat >>confdefs.h <<\_ACEOF
42f7b73b 47076#define MODULE_PARAM_CALL_CONST 1
cae5b340 47077_ACEOF
ea04106b
AX
47078
47079
47080else
47081 $as_echo "$as_me: failed program was:" >&5
47082sed 's/^/| /' conftest.$ac_ext >&5
47083
cae5b340 47084 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
47085$as_echo "no" >&6; }
47086
47087
47088
47089fi
cae5b340 47090
ea04106b
AX
47091 rm -Rf build
47092
47093
ea04106b 47094
e10b0808 47095
42f7b73b
AX
47096 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
47097$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
ea04106b
AX
47098
47099
47100cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47101/* confdefs.h. */
47102_ACEOF
47103cat confdefs.h >>conftest.$ac_ext
47104cat >>conftest.$ac_ext <<_ACEOF
47105/* end confdefs.h. */
ea04106b
AX
47106
47107
42f7b73b
AX
47108 #include <linux/fs.h>
47109 int rename_fn(struct inode *sip, struct dentry *sdp,
47110 struct inode *tip, struct dentry *tdp,
47111 unsigned int flags) { return 0; }
47112
47113 static const struct inode_operations
47114 iops __attribute__ ((unused)) = {
47115 .rename = rename_fn,
47116 };
ea04106b
AX
47117
47118int
47119main (void)
47120{
47121
ea04106b
AX
47122
47123 ;
47124 return 0;
47125}
47126
47127_ACEOF
47128
47129
47130
47131cat - <<_ACEOF >conftest.h
47132
47133_ACEOF
47134
47135
47136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47137 echo "obj-m := conftest.o" >build/Makefile
47138 modpost_flag=''
47139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47140 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47142 (eval $ac_try) 2>&5
47143 ac_status=$?
cae5b340
AX
47144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47147 (eval $ac_try) 2>&5
47148 ac_status=$?
cae5b340
AX
47149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47150 (exit $ac_status); }; }; then
ea04106b 47151
cae5b340 47152 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47153$as_echo "yes" >&6; }
47154
cae5b340 47155cat >>confdefs.h <<\_ACEOF
42f7b73b 47156#define HAVE_RENAME_WANTS_FLAGS 1
cae5b340 47157_ACEOF
ea04106b
AX
47158
47159
47160else
47161 $as_echo "$as_me: failed program was:" >&5
47162sed 's/^/| /' conftest.$ac_ext >&5
47163
cae5b340 47164 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
47165$as_echo "no" >&6; }
47166
47167
47168
47169fi
cae5b340 47170
ea04106b
AX
47171 rm -Rf build
47172
47173
47174
ea04106b 47175
42f7b73b
AX
47176 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
47177$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
ea04106b
AX
47178
47179
47180cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47181/* confdefs.h. */
47182_ACEOF
47183cat confdefs.h >>conftest.$ac_ext
47184cat >>conftest.$ac_ext <<_ACEOF
47185/* end confdefs.h. */
ea04106b
AX
47186
47187
42f7b73b
AX
47188 #include <linux/fs.h>
47189 #include <linux/xattr.h>
47190
47191 static const struct inode_operations
47192 iops __attribute__ ((unused)) = {
47193 .setxattr = generic_setxattr
47194 };
ea04106b
AX
47195
47196int
47197main (void)
47198{
47199
ea04106b
AX
47200
47201 ;
47202 return 0;
47203}
47204
47205_ACEOF
47206
47207
47208
47209cat - <<_ACEOF >conftest.h
47210
47211_ACEOF
47212
47213
47214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47215 echo "obj-m := conftest.o" >build/Makefile
47216 modpost_flag=''
47217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47220 (eval $ac_try) 2>&5
47221 ac_status=$?
cae5b340
AX
47222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47225 (eval $ac_try) 2>&5
47226 ac_status=$?
cae5b340
AX
47227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228 (exit $ac_status); }; }; then
ea04106b 47229
cae5b340 47230 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 47231$as_echo "yes" >&6; }
ea04106b 47232
cae5b340 47233cat >>confdefs.h <<\_ACEOF
42f7b73b 47234#define HAVE_GENERIC_SETXATTR 1
cae5b340 47235_ACEOF
ea04106b 47236
ea04106b 47237
e10b0808
AX
47238else
47239 $as_echo "$as_me: failed program was:" >&5
47240sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 47241
cae5b340 47242 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
47243$as_echo "no" >&6; }
47244
ea04106b 47245
ea04106b 47246
e10b0808 47247fi
cae5b340 47248
e10b0808 47249 rm -Rf build
ea04106b 47250
ea04106b
AX
47251
47252
42f7b73b
AX
47253 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
47254$as_echo_n "checking whether current_time() exists... " >&6; }
ea04106b 47255
ea04106b
AX
47256
47257
47258cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47259/* confdefs.h. */
47260_ACEOF
47261cat confdefs.h >>conftest.$ac_ext
47262cat >>conftest.$ac_ext <<_ACEOF
47263/* end confdefs.h. */
ea04106b
AX
47264
47265
42f7b73b 47266 #include <linux/fs.h>
ea04106b
AX
47267
47268int
47269main (void)
47270{
47271
a07c8b41
MZ
47272 struct inode ip __attribute__ ((unused));
47273 ip.i_atime = current_time(&ip);
ea04106b
AX
47274
47275 ;
47276 return 0;
47277}
47278
47279_ACEOF
47280
47281
47282
47283cat - <<_ACEOF >conftest.h
47284
47285_ACEOF
47286
47287
47288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47289 echo "obj-m := conftest.o" >build/Makefile
47290 modpost_flag=''
47291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47292 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47294 (eval $ac_try) 2>&5
47295 ac_status=$?
cae5b340
AX
47296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47299 (eval $ac_try) 2>&5
47300 ac_status=$?
cae5b340
AX
47301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47302 (exit $ac_status); }; }; then
42f7b73b
AX
47303 rc=0
47304else
47305 $as_echo "$as_me: failed program was:" >&5
47306sed 's/^/| /' conftest.$ac_ext >&5
47307 rc=1
47308
47309
47310fi
47311
47312 rm -Rf build
47313
47314
47315 if test $rc -ne 0; then :
47316
47317 { $as_echo "$as_me:$LINENO: result: no" >&5
47318$as_echo "no" >&6; }
47319
47320 else
47321 if test "x$enable_linux_builtin" != xyes; then
47322
47323 grep -q -E '[[:space:]]current_time[[:space:]]' \
47324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
47325 rc=$?
47326 if test $rc -ne 0; then
47327 export=0
47328 for file in fs/inode.c; do
47329 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
47330 "$LINUX/$file" 2>/dev/null
47331 rc=$?
47332 if test $rc -eq 0; then
47333 export=1
47334 break;
47335 fi
47336 done
47337 if test $export -eq 0; then :
47338 rc=1
47339 else :
47340 rc=0
47341 fi
47342 else :
47343 rc=0
47344 fi
47345
47346 fi
47347 if test $rc -ne 0; then :
47348
47349 { $as_echo "$as_me:$LINENO: result: no" >&5
47350$as_echo "no" >&6; }
47351
47352 else :
ea04106b 47353
cae5b340 47354 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47355$as_echo "yes" >&6; }
47356
cae5b340 47357cat >>confdefs.h <<\_ACEOF
42f7b73b 47358#define HAVE_CURRENT_TIME 1
cae5b340 47359_ACEOF
e10b0808
AX
47360
47361
42f7b73b
AX
47362 fi
47363 fi
ea04106b
AX
47364
47365
ea04106b 47366
42f7b73b
AX
47367
47368 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
47369$as_echo_n "checking whether global_node_page_state() exists... " >&6; }
ea04106b
AX
47370
47371
47372cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47373/* confdefs.h. */
47374_ACEOF
47375cat confdefs.h >>conftest.$ac_ext
47376cat >>conftest.$ac_ext <<_ACEOF
47377/* end confdefs.h. */
ea04106b
AX
47378
47379
42f7b73b
AX
47380 #include <linux/mm.h>
47381 #include <linux/vmstat.h>
ea04106b
AX
47382
47383int
47384main (void)
47385{
47386
42f7b73b 47387 (void) global_node_page_state(0);
ea04106b
AX
47388
47389 ;
47390 return 0;
47391}
47392
47393_ACEOF
47394
47395
47396
47397cat - <<_ACEOF >conftest.h
47398
47399_ACEOF
47400
47401
47402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47403 echo "obj-m := conftest.o" >build/Makefile
47404 modpost_flag=''
47405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47406 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47408 (eval $ac_try) 2>&5
47409 ac_status=$?
cae5b340
AX
47410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47413 (eval $ac_try) 2>&5
47414 ac_status=$?
cae5b340
AX
47415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416 (exit $ac_status); }; }; then
ea04106b 47417
42f7b73b 47418 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47419$as_echo "yes" >&6; }
47420
cae5b340 47421cat >>confdefs.h <<\_ACEOF
42f7b73b 47422#define ZFS_GLOBAL_NODE_PAGE_STATE 1
cae5b340 47423_ACEOF
ea04106b
AX
47424
47425
47426else
47427 $as_echo "$as_me: failed program was:" >&5
47428sed 's/^/| /' conftest.$ac_ext >&5
47429
42f7b73b 47430 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 47431$as_echo "no" >&6; }
42f7b73b
AX
47432
47433
47434
47435fi
47436
47437 rm -Rf build
47438
47439
47440
47441
47442 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
47443$as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
94a40997
AX
47444
47445
47446cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47447/* confdefs.h. */
47448_ACEOF
47449cat confdefs.h >>conftest.$ac_ext
47450cat >>conftest.$ac_ext <<_ACEOF
47451/* end confdefs.h. */
94a40997
AX
47452
47453
42f7b73b
AX
47454 #include <linux/mm.h>
47455 #include <linux/vmstat.h>
94a40997
AX
47456
47457int
47458main (void)
47459{
47460
42f7b73b 47461 (void) global_zone_page_state(0);
94a40997
AX
47462
47463 ;
47464 return 0;
47465}
47466
47467_ACEOF
47468
47469
47470
47471cat - <<_ACEOF >conftest.h
47472
47473_ACEOF
47474
47475
47476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47477 echo "obj-m := conftest.o" >build/Makefile
47478 modpost_flag=''
47479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47480 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
47482 (eval $ac_try) 2>&5
47483 ac_status=$?
cae5b340
AX
47484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
47487 (eval $ac_try) 2>&5
47488 ac_status=$?
cae5b340
AX
47489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47490 (exit $ac_status); }; }; then
94a40997 47491
42f7b73b 47492 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
47493$as_echo "yes" >&6; }
47494
cae5b340 47495cat >>confdefs.h <<\_ACEOF
42f7b73b 47496#define ZFS_GLOBAL_ZONE_PAGE_STATE 1
cae5b340 47497_ACEOF
94a40997
AX
47498
47499
47500else
47501 $as_echo "$as_me: failed program was:" >&5
47502sed 's/^/| /' conftest.$ac_ext >&5
47503
42f7b73b
AX
47504 { $as_echo "$as_me:$LINENO: result: no" >&5
47505$as_echo "no" >&6; }
94a40997
AX
47506
47507
47508
47509fi
cae5b340 47510
94a40997
AX
47511 rm -Rf build
47512
47513
ea04106b
AX
47514
47515
47516
42f7b73b
AX
47517 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
47518$as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
47519 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
47520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47521 (eval $ac_try) 2>&5
47522 ac_status=$?
47523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47524 (exit $ac_status); }; }; then
cae5b340 47525
42f7b73b
AX
47526 { $as_echo "$as_me:$LINENO: result: yes" >&5
47527$as_echo "yes" >&6; }
ea04106b 47528
42f7b73b
AX
47529cat >>confdefs.h <<\_ACEOF
47530#define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
47531_ACEOF
ea04106b 47532
42f7b73b 47533 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
ea04106b 47534
42f7b73b 47535else
ea04106b 47536
42f7b73b
AX
47537 { $as_echo "$as_me:$LINENO: result: no" >&5
47538$as_echo "no" >&6; }
ea04106b 47539
ea04106b 47540fi
cae5b340 47541
ea04106b
AX
47542
47543
42f7b73b
AX
47544 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
47545$as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
47546 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
47547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47548 (eval $ac_try) 2>&5
47549 ac_status=$?
47550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551 (exit $ac_status); }; }; then
ea04106b 47552
42f7b73b
AX
47553 { $as_echo "$as_me:$LINENO: result: yes" >&5
47554$as_echo "yes" >&6; }
ea04106b 47555
42f7b73b
AX
47556cat >>confdefs.h <<\_ACEOF
47557#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
47558_ACEOF
ea04106b 47559
42f7b73b 47560 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
ea04106b 47561
42f7b73b 47562else
ea04106b 47563
42f7b73b
AX
47564 { $as_echo "$as_me:$LINENO: result: no" >&5
47565$as_echo "no" >&6; }
ea04106b 47566
42f7b73b 47567fi
e10b0808 47568
ea04106b 47569
ea04106b 47570
42f7b73b
AX
47571 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
47572$as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
47573 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
47574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47575 (eval $ac_try) 2>&5
47576 ac_status=$?
47577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47578 (exit $ac_status); }; }; then
ea04106b 47579
42f7b73b
AX
47580 { $as_echo "$as_me:$LINENO: result: yes" >&5
47581$as_echo "yes" >&6; }
ea04106b 47582
42f7b73b
AX
47583cat >>confdefs.h <<\_ACEOF
47584#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
ea04106b
AX
47585_ACEOF
47586
42f7b73b 47587 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
ea04106b 47588
42f7b73b 47589else
ea04106b 47590
42f7b73b
AX
47591 { $as_echo "$as_me:$LINENO: result: no" >&5
47592$as_echo "no" >&6; }
ea04106b 47593
42f7b73b 47594fi
ea04106b
AX
47595
47596
42f7b73b
AX
47597
47598 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47599$as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47600 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
cae5b340 47601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47602 (eval $ac_try) 2>&5
47603 ac_status=$?
cae5b340
AX
47604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); }; }; then
ea04106b 47606
42f7b73b
AX
47607 { $as_echo "$as_me:$LINENO: result: yes" >&5
47608$as_echo "yes" >&6; }
cae5b340 47609
42f7b73b
AX
47610cat >>confdefs.h <<\_ACEOF
47611#define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47612_ACEOF
ea04106b 47613
42f7b73b 47614 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
ea04106b 47615
42f7b73b 47616else
e10b0808 47617
cae5b340 47618 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
47619$as_echo "no" >&6; }
47620
42f7b73b 47621fi
e10b0808 47622
e10b0808 47623
ea04106b 47624
ea04106b 47625
42f7b73b
AX
47626 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
47627$as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
47628 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
47629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47630 (eval $ac_try) 2>&5
47631 ac_status=$?
47632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47633 (exit $ac_status); }; }; then
ea04106b 47634
cae5b340 47635 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
47636$as_echo "yes" >&6; }
47637
cae5b340 47638cat >>confdefs.h <<\_ACEOF
42f7b73b 47639#define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
cae5b340 47640_ACEOF
ea04106b 47641
42f7b73b 47642 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
ea04106b 47643
42f7b73b
AX
47644else
47645
47646 { $as_echo "$as_me:$LINENO: result: no" >&5
47647$as_echo "no" >&6; }
ea04106b 47648
42f7b73b 47649fi
ea04106b
AX
47650
47651
cae5b340 47652
42f7b73b
AX
47653 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
47654$as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
47655 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
47656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47657 (eval $ac_try) 2>&5
47658 ac_status=$?
47659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660 (exit $ac_status); }; }; then
68d83c55 47661
42f7b73b
AX
47662 { $as_echo "$as_me:$LINENO: result: yes" >&5
47663$as_echo "yes" >&6; }
68d83c55 47664
42f7b73b
AX
47665cat >>confdefs.h <<\_ACEOF
47666#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
cae5b340 47667_ACEOF
68d83c55 47668
42f7b73b 47669 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
68d83c55 47670
42f7b73b 47671else
68d83c55 47672
42f7b73b
AX
47673 { $as_echo "$as_me:$LINENO: result: no" >&5
47674$as_echo "no" >&6; }
68d83c55 47675
42f7b73b 47676fi
68d83c55
AX
47677
47678
68d83c55 47679
42f7b73b
AX
47680 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
47681$as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
47682 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
47683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47684 (eval $ac_try) 2>&5
47685 ac_status=$?
47686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47687 (exit $ac_status); }; }; then
47688
47689 { $as_echo "$as_me:$LINENO: result: yes" >&5
47690$as_echo "yes" >&6; }
47691
47692cat >>confdefs.h <<\_ACEOF
47693#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
68d83c55
AX
47694_ACEOF
47695
42f7b73b 47696 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
68d83c55 47697
42f7b73b 47698else
68d83c55 47699
42f7b73b
AX
47700 { $as_echo "$as_me:$LINENO: result: no" >&5
47701$as_echo "no" >&6; }
68d83c55 47702
42f7b73b 47703fi
68d83c55
AX
47704
47705
42f7b73b
AX
47706
47707 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47708$as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47709 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
cae5b340 47710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
47711 (eval $ac_try) 2>&5
47712 ac_status=$?
cae5b340
AX
47713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47714 (exit $ac_status); }; }; then
42f7b73b
AX
47715
47716 { $as_echo "$as_me:$LINENO: result: yes" >&5
47717$as_echo "yes" >&6; }
47718
47719cat >>confdefs.h <<\_ACEOF
47720#define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47721_ACEOF
47722
47723 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47724
cae5b340 47725else
68d83c55 47726
42f7b73b
AX
47727 { $as_echo "$as_me:$LINENO: result: no" >&5
47728$as_echo "no" >&6; }
68d83c55 47729
cae5b340
AX
47730fi
47731
68d83c55
AX
47732
47733
68d83c55 47734
42f7b73b
AX
47735 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
47736$as_echo_n "checking global_page_state enums are sane... " >&6; }
47737
47738
47739 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
47740 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
47741 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47742
47743
47744 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 47745$as_echo "no" >&6; }
42f7b73b
AX
47746 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47747$as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47748 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47749$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47752{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47753See \`config.log' for more details." >&5
47754$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47755See \`config.log' for more details." >&2;}
47756 { (exit 1); exit 1; }; }; }
68d83c55
AX
47757
47758
42f7b73b 47759fi
68d83c55 47760
42f7b73b 47761 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
68d83c55 47762
42f7b73b
AX
47763
47764 { $as_echo "$as_me:$LINENO: result: no" >&5
cae5b340 47765$as_echo "no" >&6; }
42f7b73b
AX
47766 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47767$as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47768 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47769$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47770 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47772{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47773See \`config.log' for more details." >&5
47774$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47775See \`config.log' for more details." >&2;}
47776 { (exit 1); exit 1; }; }; }
68d83c55
AX
47777
47778
42f7b73b 47779fi
68d83c55 47780
68d83c55
AX
47781
47782
42f7b73b
AX
47783 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
47784 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
47785 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
68d83c55
AX
47786
47787
42f7b73b
AX
47788 { $as_echo "$as_me:$LINENO: result: no" >&5
47789$as_echo "no" >&6; }
47790 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47791$as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47792 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47793$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47794 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47796{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47797See \`config.log' for more details." >&5
47798$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47799See \`config.log' for more details." >&2;}
47800 { (exit 1); exit 1; }; }; }
68d83c55 47801
cae5b340 47802
42f7b73b 47803fi
cae5b340 47804
42f7b73b 47805 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
cae5b340
AX
47806
47807
42f7b73b
AX
47808 { $as_echo "$as_me:$LINENO: result: no" >&5
47809$as_echo "no" >&6; }
47810 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47811$as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47812 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47813$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47814 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47816{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47817See \`config.log' for more details." >&5
47818$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47819See \`config.log' for more details." >&2;}
47820 { (exit 1); exit 1; }; }; }
68d83c55 47821
68d83c55 47822
42f7b73b 47823fi
68d83c55 47824
68d83c55 47825
68d83c55 47826
42f7b73b
AX
47827 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
47828 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
47829 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
68d83c55
AX
47830
47831
42f7b73b
AX
47832 { $as_echo "$as_me:$LINENO: result: no" >&5
47833$as_echo "no" >&6; }
47834 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47835$as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47836 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47837$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47838 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47840{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47841See \`config.log' for more details." >&5
47842$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47843See \`config.log' for more details." >&2;}
47844 { (exit 1); exit 1; }; }; }
68d83c55 47845
68d83c55 47846
42f7b73b 47847fi
68d83c55 47848
42f7b73b 47849 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
68d83c55 47850
68d83c55 47851
42f7b73b
AX
47852 { $as_echo "$as_me:$LINENO: result: no" >&5
47853$as_echo "no" >&6; }
47854 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47855$as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47856 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47857$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47858 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47860{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47861See \`config.log' for more details." >&5
47862$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47863See \`config.log' for more details." >&2;}
47864 { (exit 1); exit 1; }; }; }
68d83c55
AX
47865
47866
42f7b73b 47867fi
68d83c55 47868
42f7b73b
AX
47869
47870
47871 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47872 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47873 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47874
47875
47876 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 47877$as_echo "no" >&6; }
42f7b73b
AX
47878 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47879$as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47880 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47881$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47882 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47884{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47885See \`config.log' for more details." >&5
47886$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47887See \`config.log' for more details." >&2;}
47888 { (exit 1); exit 1; }; }; }
47889
47890
47891fi
47892
47893 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
68d83c55
AX
47894
47895
42f7b73b
AX
47896 { $as_echo "$as_me:$LINENO: result: no" >&5
47897$as_echo "no" >&6; }
47898 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47899$as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47900 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47901$as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47904{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47905See \`config.log' for more details." >&5
47906$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47907See \`config.log' for more details." >&2;}
47908 { (exit 1); exit 1; }; }; }
47909
68d83c55
AX
47910
47911fi
cae5b340 47912
68d83c55
AX
47913
47914
42f7b73b
AX
47915 { $as_echo "$as_me:$LINENO: result: yes" >&5
47916$as_echo "yes" >&6; }
68d83c55 47917
22929307 47918
42f7b73b
AX
47919
47920 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
47921$as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
22929307
AX
47922
47923
47924cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47925/* confdefs.h. */
47926_ACEOF
47927cat confdefs.h >>conftest.$ac_ext
47928cat >>conftest.$ac_ext <<_ACEOF
47929/* end confdefs.h. */
22929307
AX
47930
47931
42f7b73b
AX
47932 #include <linux/backing-dev.h>
47933 #include <linux/refcount.h>
47934 #include <linux/posix_acl.h>
22929307
AX
47935
47936int
47937main (void)
47938{
47939
42f7b73b
AX
47940 struct posix_acl acl;
47941 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
22929307
AX
47942
47943 ;
47944 return 0;
47945}
47946
47947_ACEOF
47948
47949
47950
47951cat - <<_ACEOF >conftest.h
47952
47953_ACEOF
47954
47955
47956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47957 echo "obj-m := conftest.o" >build/Makefile
47958 modpost_flag=''
47959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 47960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340 47961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
47962 (eval $ac_try) 2>&5
47963 ac_status=$?
cae5b340
AX
47964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47965 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
47967 (eval $ac_try) 2>&5
47968 ac_status=$?
cae5b340
AX
47969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47970 (exit $ac_status); }; }; then
22929307 47971
cae5b340 47972 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
47973$as_echo "yes" >&6; }
47974
cae5b340 47975cat >>confdefs.h <<\_ACEOF
42f7b73b 47976#define HAVE_ACL_REFCOUNT 1
cae5b340 47977_ACEOF
ea04106b 47978
ea04106b 47979
ea04106b 47980else
cae5b340
AX
47981 $as_echo "$as_me: failed program was:" >&5
47982sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 47983
cae5b340
AX
47984 { $as_echo "$as_me:$LINENO: result: no" >&5
47985$as_echo "no" >&6; }
ea04106b 47986
ea04106b 47987
ea04106b
AX
47988
47989fi
47990
cae5b340 47991 rm -Rf build
ea04106b
AX
47992
47993
ea04106b 47994
ea04106b 47995
ea04106b 47996
42f7b73b
AX
47997 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
47998$as_echo_n "checking whether ns_capable exists... " >&6; }
ea04106b
AX
47999
48000
cae5b340
AX
48001cat confdefs.h - <<_ACEOF >conftest.c
48002/* confdefs.h. */
48003_ACEOF
48004cat confdefs.h >>conftest.$ac_ext
48005cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
48006/* end confdefs.h. */
48007
cae5b340 48008
42f7b73b 48009 #include <linux/capability.h>
cae5b340 48010
ea04106b 48011int
cae5b340 48012main (void)
ea04106b 48013{
cae5b340 48014
42f7b73b 48015 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
cae5b340 48016
ea04106b
AX
48017 ;
48018 return 0;
48019}
cae5b340 48020
ea04106b 48021_ACEOF
cae5b340
AX
48022
48023
48024
48025cat - <<_ACEOF >conftest.h
48026
48027_ACEOF
48028
48029
48030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48031 echo "obj-m := conftest.o" >build/Makefile
48032 modpost_flag=''
48033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 48034 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
48035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48036 (eval $ac_try) 2>&5
48037 ac_status=$?
48038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48041 (eval $ac_try) 2>&5
48042 ac_status=$?
48043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044 (exit $ac_status); }; }; then
48045
48046 { $as_echo "$as_me:$LINENO: result: yes" >&5
48047$as_echo "yes" >&6; }
48048
48049cat >>confdefs.h <<\_ACEOF
42f7b73b 48050#define HAVE_NS_CAPABLE 1
ea04106b
AX
48051_ACEOF
48052
ea04106b
AX
48053
48054else
cae5b340
AX
48055 $as_echo "$as_me: failed program was:" >&5
48056sed 's/^/| /' conftest.$ac_ext >&5
48057
48058 { $as_echo "$as_me:$LINENO: result: no" >&5
48059$as_echo "no" >&6; }
48060
48061
48062
ea04106b
AX
48063fi
48064
cae5b340 48065 rm -Rf build
ea04106b 48066
cae5b340
AX
48067
48068
48069
42f7b73b
AX
48070 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
48071$as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
cae5b340
AX
48072
48073
48074cat confdefs.h - <<_ACEOF >conftest.c
48075/* confdefs.h. */
48076_ACEOF
48077cat confdefs.h >>conftest.$ac_ext
48078cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
48079/* end confdefs.h. */
48080
cae5b340 48081
42f7b73b 48082 #include <linux/cred.h>
cae5b340 48083
ea04106b 48084int
cae5b340 48085main (void)
ea04106b 48086{
cae5b340 48087
42f7b73b
AX
48088 struct cred cr;
48089 cr.user_ns = (struct user_namespace *)NULL;
cae5b340 48090
ea04106b
AX
48091 ;
48092 return 0;
48093}
cae5b340 48094
ea04106b
AX
48095_ACEOF
48096
ea04106b 48097
ea04106b 48098
cae5b340 48099cat - <<_ACEOF >conftest.h
ea04106b 48100
cae5b340 48101_ACEOF
ea04106b
AX
48102
48103
cae5b340
AX
48104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48105 echo "obj-m := conftest.o" >build/Makefile
48106 modpost_flag=''
48107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 48108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
48109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48110 (eval $ac_try) 2>&5
48111 ac_status=$?
48112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48115 (eval $ac_try) 2>&5
48116 ac_status=$?
48117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48118 (exit $ac_status); }; }; then
ea04106b 48119
cae5b340
AX
48120 { $as_echo "$as_me:$LINENO: result: yes" >&5
48121$as_echo "yes" >&6; }
ea04106b 48122
cae5b340 48123cat >>confdefs.h <<\_ACEOF
42f7b73b 48124#define HAVE_CRED_USER_NS 1
cae5b340 48125_ACEOF
ea04106b
AX
48126
48127
ea04106b 48128else
cae5b340
AX
48129 $as_echo "$as_me: failed program was:" >&5
48130sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 48131
cae5b340
AX
48132 { $as_echo "$as_me:$LINENO: result: no" >&5
48133$as_echo "no" >&6; }
ea04106b 48134
ea04106b 48135
ea04106b 48136
cae5b340 48137fi
ea04106b 48138
cae5b340 48139 rm -Rf build
ea04106b
AX
48140
48141
ea04106b 48142
ea04106b 48143
42f7b73b
AX
48144 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
48145$as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
ea04106b 48146
cae5b340
AX
48147
48148cat confdefs.h - <<_ACEOF >conftest.c
48149/* confdefs.h. */
ea04106b 48150_ACEOF
cae5b340
AX
48151cat confdefs.h >>conftest.$ac_ext
48152cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
48153/* end confdefs.h. */
48154
cae5b340 48155
42f7b73b 48156 #include <linux/uidgid.h>
ea04106b
AX
48157
48158int
cae5b340 48159main (void)
ea04106b
AX
48160{
48161
42f7b73b
AX
48162 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
48163 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
ea04106b
AX
48164
48165 ;
48166 return 0;
48167}
cae5b340 48168
ea04106b 48169_ACEOF
ea04106b 48170
ea04106b
AX
48171
48172
cae5b340
AX
48173cat - <<_ACEOF >conftest.h
48174
48175_ACEOF
ea04106b
AX
48176
48177
cae5b340
AX
48178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48179 echo "obj-m := conftest.o" >build/Makefile
48180 modpost_flag=''
48181 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42f7b73b 48182 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
cae5b340
AX
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48185 ac_status=$?
48186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48189 (eval $ac_try) 2>&5
48190 ac_status=$?
48191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48192 (exit $ac_status); }; }; then
ea04106b 48193
cae5b340
AX
48194 { $as_echo "$as_me:$LINENO: result: yes" >&5
48195$as_echo "yes" >&6; }
ea04106b 48196
cae5b340 48197cat >>confdefs.h <<\_ACEOF
42f7b73b 48198#define HAVE_KUID_HAS_MAPPING 1
cae5b340
AX
48199_ACEOF
48200
48201
ea04106b 48202else
cae5b340
AX
48203 $as_echo "$as_me: failed program was:" >&5
48204sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 48205
cae5b340 48206 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
48207$as_echo "no" >&6; }
48208
cae5b340
AX
48209
48210
ea04106b 48211fi
ea04106b 48212
cae5b340 48213 rm -Rf build
ea04106b
AX
48214
48215
48216
ea04106b 48217
42f7b73b 48218
cae5b340 48219 if test "$LINUX_OBJ" != "$LINUX"; then
ea04106b 48220
cae5b340 48221 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
ea04106b
AX
48222
48223fi
ea04106b 48224
cae5b340
AX
48225
48226
48227
48228 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
48229 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
48230 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
48231 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
48232 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
48233 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
48234
48235
48236 ;;
ea04106b
AX
48237 srpm) ;;
48238 *)
cae5b340 48239 { $as_echo "$as_me:$LINENO: result: Error!" >&5
ea04106b 48240$as_echo "Error!" >&6; }
cae5b340
AX
48241 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
48242 user kernel|user|all|srpm" >&5
48243$as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
48244 user kernel|user|all|srpm" >&2;}
48245 { (exit 1); exit 1; }; } ;;
ea04106b
AX
48246 esac
48247
48248 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
48249 CONFIG_USER_TRUE=
48250 CONFIG_USER_FALSE='#'
48251else
48252 CONFIG_USER_TRUE='#'
48253 CONFIG_USER_FALSE=
48254fi
48255
48256 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
cae5b340 48257 test "x$enable_linux_builtin" != xyes ; then
ea04106b
AX
48258 CONFIG_KERNEL_TRUE=
48259 CONFIG_KERNEL_FALSE='#'
48260else
48261 CONFIG_KERNEL_TRUE='#'
48262 CONFIG_KERNEL_FALSE=
48263fi
48264
42f7b73b
AX
48265 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48266 test "x$qatsrc" != x ; then
48267 CONFIG_QAT_TRUE=
48268 CONFIG_QAT_FALSE='#'
48269else
48270 CONFIG_QAT_TRUE='#'
48271 CONFIG_QAT_FALSE=
48272fi
48273
cae5b340
AX
48274 if test "x$user_libudev" = xyes ; then
48275 WANT_DEVNAME2DEVID_TRUE=
48276 WANT_DEVNAME2DEVID_FALSE='#'
48277else
48278 WANT_DEVNAME2DEVID_TRUE='#'
48279 WANT_DEVNAME2DEVID_FALSE=
48280fi
48281
42f7b73b
AX
48282 if test "x$user_libaio" = xyes ; then
48283 WANT_MMAP_LIBAIO_TRUE=
48284 WANT_MMAP_LIBAIO_FALSE='#'
cae5b340 48285else
42f7b73b
AX
48286 WANT_MMAP_LIBAIO_TRUE='#'
48287 WANT_MMAP_LIBAIO_FALSE=
cae5b340
AX
48288fi
48289
ea04106b
AX
48290
48291
42f7b73b
AX
48292 { $as_echo "$as_me:$LINENO: checking whether assertion support will be enabled" >&5
48293$as_echo_n "checking whether assertion support will be enabled... " >&6; }
ea04106b 48294 # Check whether --enable-debug was given.
cae5b340 48295if test "${enable_debug+set}" = set; then
ea04106b
AX
48296 enableval=$enable_debug;
48297else
48298 enable_debug=no
48299fi
48300
48301
42f7b73b
AX
48302 case "x$enable_debug" in
48303 "xyes")
48304 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
48305 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
48306 DEBUG_CFLAGS="-DDEBUG -Werror"
48307 DEBUG_ZFS="_with_debug"
ea04106b 48308
cae5b340
AX
48309cat >>confdefs.h <<\_ACEOF
48310#define ZFS_DEBUG 1
48311_ACEOF
ea04106b 48312
42f7b73b
AX
48313 ;;
48314 "xno")
48315 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
48316 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
48317 DEBUG_CFLAGS="-DNDEBUG"
48318 DEBUG_STACKFLAGS=""
48319 DEBUG_ZFS="_without_debug"
48320 ;;
48321 *) { { $as_echo "$as_me:$LINENO: error: Unknown option $enable_debug" >&5
48322$as_echo "$as_me: error: Unknown option $enable_debug" >&2;}
48323 { (exit 1); exit 1; }; } ;;
48324esac
ea04106b 48325
ea04106b 48326
ea04106b 48327
42f7b73b
AX
48328
48329 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
48330$as_echo "$enable_debug" >&6; }
48331
48332
48333 { $as_echo "$as_me:$LINENO: checking whether debuginfo support will be forced" >&5
48334$as_echo_n "checking whether debuginfo support will be forced... " >&6; }
48335 # Check whether --enable-debuginfo was given.
48336if test "${enable_debuginfo+set}" = set; then
48337 enableval=$enable_debuginfo;
48338else
48339 enable_debuginfo=no
ea04106b
AX
48340fi
48341
48342
42f7b73b
AX
48343 case "x$enable_debuginfo" in
48344 "xyes")
48345 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48346 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
ea04106b
AX
48347
48348
42f7b73b
AX
48349 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48350 ;;
48351 "xkernel")
48352 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48353 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48354 ;;
48355 "xuser")
48356 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48357 ;;
48358 "xno") : ;;
48359 *) { { $as_echo "$as_me:$LINENO: error: Unknown option $enable_debug" >&5
48360$as_echo "$as_me: error: Unknown option $enable_debug" >&2;}
48361 { (exit 1); exit 1; }; } ;;
48362esac
ea04106b
AX
48363
48364
ea04106b 48365
42f7b73b
AX
48366 { $as_echo "$as_me:$LINENO: result: $enable_debuginfo" >&5
48367$as_echo "$enable_debuginfo" >&6; }
48368
48369
a07c8b41 48370ac_config_files="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/sudoers.d/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libicp/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile cmd/raidz_test/Makefile cmd/zgenhostid/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/02zfsexpandknowledge/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile 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 scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh tests/Makefile tests/test-runner/Makefile tests/test-runner/cmd/Makefile tests/test-runner/include/Makefile tests/test-runner/man/Makefile tests/runfiles/Makefile tests/zfs-tests/Makefile tests/zfs-tests/callbacks/Makefile tests/zfs-tests/cmd/Makefile tests/zfs-tests/cmd/chg_usr_exec/Makefile tests/zfs-tests/cmd/user_ns_exec/Makefile tests/zfs-tests/cmd/devname2devid/Makefile tests/zfs-tests/cmd/dir_rd_update/Makefile tests/zfs-tests/cmd/file_check/Makefile tests/zfs-tests/cmd/file_trunc/Makefile tests/zfs-tests/cmd/file_write/Makefile tests/zfs-tests/cmd/largest_file/Makefile tests/zfs-tests/cmd/mkbusy/Makefile tests/zfs-tests/cmd/mkfile/Makefile tests/zfs-tests/cmd/mkfiles/Makefile tests/zfs-tests/cmd/mktree/Makefile tests/zfs-tests/cmd/mmap_exec/Makefile tests/zfs-tests/cmd/mmap_libaio/Makefile tests/zfs-tests/cmd/mmapwrite/Makefile tests/zfs-tests/cmd/randfree_file/Makefile tests/zfs-tests/cmd/readmmap/Makefile tests/zfs-tests/cmd/rename_dir/Makefile tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile tests/zfs-tests/cmd/threadsappend/Makefile tests/zfs-tests/cmd/xattrtest/Makefile tests/zfs-tests/include/Makefile tests/zfs-tests/include/default.cfg tests/zfs-tests/tests/Makefile tests/zfs-tests/tests/functional/Makefile tests/zfs-tests/tests/functional/acl/Makefile tests/zfs-tests/tests/functional/acl/posix/Makefile tests/zfs-tests/tests/functional/atime/Makefile tests/zfs-tests/tests/functional/bootfs/Makefile tests/zfs-tests/tests/functional/cache/Makefile tests/zfs-tests/tests/functional/cachefile/Makefile tests/zfs-tests/tests/functional/casenorm/Makefile tests/zfs-tests/tests/functional/checksum/Makefile tests/zfs-tests/tests/functional/chattr/Makefile tests/zfs-tests/tests/functional/clean_mirror/Makefile tests/zfs-tests/tests/functional/cli_root/Makefile tests/zfs-tests/tests/functional/cli_root/zdb/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile tests/zfs-tests/tests/functional/cli_root/zfs/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile tests/zfs-tests/tests/functional/cli_root/zpool/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile tests/zfs-tests/tests/functional/cli_user/Makefile tests/zfs-tests/tests/functional/cli_user/misc/Makefile tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile tests/zfs-tests/tests/functional/compression/Makefile tests/zfs-tests/tests/functional/cp_files/Makefile tests/zfs-tests/tests/functional/ctime/Makefile tests/zfs-tests/tests/functional/delegate/Makefile tests/zfs-tests/tests/functional/devices/Makefile tests/zfs-tests/tests/functional/events/Makefile tests/zfs-tests/tests/functional/exec/Makefile tests/zfs-tests/tests/functional/fault/Makefile tests/zfs-tests/tests/functional/features/async_destroy/Makefile tests/zfs-tests/tests/functional/features/large_dnode/Makefile tests/zfs-tests/tests/functional/features/Makefile tests/zfs-tests/tests/functional/grow_pool/Makefile tests/zfs-tests/tests/functional/grow_replicas/Makefile tests/zfs-tests/tests/functional/history/Makefile tests/zfs-tests/tests/functional/inheritance/Makefile tests/zfs-tests/tests/functional/inuse/Makefile tests/zfs-tests/tests/functional/kstat/Makefile tests/zfs-tests/tests/functional/large_files/Makefile tests/zfs-tests/tests/functional/largest_pool/Makefile tests/zfs-tests/tests/functional/link_count/Makefile tests/zfs-tests/tests/functional/libzfs/Makefile tests/zfs-tests/tests/functional/migration/Makefile tests/zfs-tests/tests/functional/mmap/Makefile tests/zfs-tests/tests/functional/mmp/Makefile tests/zfs-tests/tests/functional/mount/Makefile tests/zfs-tests/tests/functional/mv_files/Makefile tests/zfs-tests/tests/functional/nestedfs/Makefile tests/zfs-tests/tests/functional/no_space/Makefile tests/zfs-tests/tests/functional/nopwrite/Makefile tests/zfs-tests/tests/functional/online_offline/Makefile tests/zfs-tests/tests/functional/pool_names/Makefile tests/zfs-tests/tests/functional/poolversion/Makefile tests/zfs-tests/tests/functional/privilege/Makefile tests/zfs-tests/tests/functional/quota/Makefile tests/zfs-tests/tests/functional/raidz/Makefile tests/zfs-tests/tests/functional/redundancy/Makefile tests/zfs-tests/tests/functional/refquota/Makefile tests/zfs-tests/tests/functional/refreserv/Makefile tests/zfs-tests/tests/functional/rename_dirs/Makefile tests/zfs-tests/tests/functional/replacement/Makefile tests/zfs-tests/tests/functional/reservation/Makefile tests/zfs-tests/tests/functional/rootpool/Makefile tests/zfs-tests/tests/functional/rsend/Makefile tests/zfs-tests/tests/functional/scrub_mirror/Makefile tests/zfs-tests/tests/functional/slog/Makefile tests/zfs-tests/tests/functional/snapshot/Makefile tests/zfs-tests/tests/functional/snapused/Makefile tests/zfs-tests/tests/functional/sparse/Makefile tests/zfs-tests/tests/functional/threadsappend/Makefile tests/zfs-tests/tests/functional/tmpfile/Makefile tests/zfs-tests/tests/functional/truncate/Makefile tests/zfs-tests/tests/functional/user_namespace/Makefile tests/zfs-tests/tests/functional/userquota/Makefile tests/zfs-tests/tests/functional/upgrade/Makefile tests/zfs-tests/tests/functional/vdev_zaps/Makefile tests/zfs-tests/tests/functional/write_dirs/Makefile tests/zfs-tests/tests/functional/xattr/Makefile tests/zfs-tests/tests/functional/zvol/Makefile tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile tests/zfs-tests/tests/perf/Makefile tests/zfs-tests/tests/perf/fio/Makefile tests/zfs-tests/tests/perf/regression/Makefile tests/zfs-tests/tests/perf/scripts/Makefile tests/zfs-tests/tests/stress/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
ea04106b 48371
ea04106b
AX
48372
48373
48374cat >confcache <<\_ACEOF
48375# This file is a shell script that caches the results of configure
48376# tests run on this system so they can be shared between configure
48377# scripts and configure runs, see configure's option --config-cache.
48378# It is not useful on other systems. If it contains results you don't
48379# want to keep, you may remove or edit it.
48380#
48381# config.status only pays attention to the cache file if you give it
48382# the --recheck option to rerun configure.
48383#
48384# `ac_cv_env_foo' variables (set or unset) will be overridden when
48385# loading this file, other *unset* `ac_cv_foo' will be assigned the
48386# following values.
48387
48388_ACEOF
48389
48390# The following way of writing the cache mishandles newlines in values,
48391# but we know of no workaround that is simple, portable, and efficient.
48392# So, we kill variables containing newlines.
48393# Ultrix sh set writes to stderr and can't be redirected directly,
48394# and sets the high bit in the cache file unless we assign to the vars.
48395(
48396 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48397 eval ac_val=\$$ac_var
48398 case $ac_val in #(
48399 *${as_nl}*)
48400 case $ac_var in #(
cae5b340 48401 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
ea04106b
AX
48402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48403 esac
48404 case $ac_var in #(
48405 _ | IFS | as_nl) ;; #(
48406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cae5b340 48407 *) $as_unset $ac_var ;;
ea04106b
AX
48408 esac ;;
48409 esac
48410 done
48411
48412 (set) 2>&1 |
48413 case $as_nl`(ac_space=' '; set) 2>&1` in #(
48414 *${as_nl}ac_space=\ *)
cae5b340
AX
48415 # `set' does not quote correctly, so add quotes (double-quote
48416 # substitution turns \\\\ into \\, and sed turns \\ into \).
ea04106b
AX
48417 sed -n \
48418 "s/'/'\\\\''/g;
48419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48420 ;; #(
48421 *)
48422 # `set' quotes correctly as required by POSIX, so do not add quotes.
48423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48424 ;;
48425 esac |
48426 sort
48427) |
48428 sed '
48429 /^ac_cv_env_/b end
48430 t clear
48431 :clear
48432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48433 t end
48434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48435 :end' >>confcache
48436if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48437 if test -w "$cache_file"; then
cae5b340
AX
48438 test "x$cache_file" != "x/dev/null" &&
48439 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
ea04106b 48440$as_echo "$as_me: updating cache $cache_file" >&6;}
cae5b340 48441 cat confcache >$cache_file
ea04106b 48442 else
cae5b340 48443 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
ea04106b
AX
48444$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48445 fi
48446fi
48447rm -f confcache
48448
48449test "x$prefix" = xNONE && prefix=$ac_default_prefix
48450# Let make expand exec_prefix.
48451test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48452
48453DEFS=-DHAVE_CONFIG_H
48454
48455ac_libobjs=
48456ac_ltlibobjs=
ea04106b
AX
48457for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48458 # 1. Remove the extension, and $U if already installed.
48459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
48462 # will be set to the directory where LIBOBJS objects are built.
cae5b340
AX
48463 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48464 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ea04106b
AX
48465done
48466LIBOBJS=$ac_libobjs
48467
48468LTLIBOBJS=$ac_ltlibobjs
48469
48470
48471if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cae5b340
AX
48472 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
48473Usually this means the macro was only invoked conditionally." >&5
48474$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
48475Usually this means the macro was only invoked conditionally." >&2;}
48476 { (exit 1); exit 1; }; }
48477fi
ea04106b
AX
48478 if test -n "$EXEEXT"; then
48479 am__EXEEXT_TRUE=
48480 am__EXEEXT_FALSE='#'
48481else
48482 am__EXEEXT_TRUE='#'
48483 am__EXEEXT_FALSE=
48484fi
48485
48486if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cae5b340
AX
48487 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
48488Usually this means the macro was only invoked conditionally." >&5
48489$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
48490Usually this means the macro was only invoked conditionally." >&2;}
48491 { (exit 1); exit 1; }; }
ea04106b
AX
48492fi
48493if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cae5b340
AX
48494 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
48495Usually this means the macro was only invoked conditionally." >&5
48496$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
48497Usually this means the macro was only invoked conditionally." >&2;}
48498 { (exit 1); exit 1; }; }
ea04106b
AX
48499fi
48500if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
cae5b340
AX
48501 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
48502Usually this means the macro was only invoked conditionally." >&5
48503$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
48504Usually this means the macro was only invoked conditionally." >&2;}
48505 { (exit 1); exit 1; }; }
48506fi
42f7b73b
AX
48507if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
48508 { { $as_echo "$as_me:$LINENO: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48509Usually this means the macro was only invoked conditionally." >&5
48510$as_echo "$as_me: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48511Usually this means the macro was only invoked conditionally." >&2;}
48512 { (exit 1); exit 1; }; }
48513fi
cae5b340
AX
48514if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
48515 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48516Usually this means the macro was only invoked conditionally." >&5
48517$as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48518Usually this means the macro was only invoked conditionally." >&2;}
48519 { (exit 1); exit 1; }; }
48520fi
48521if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
48522 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_I386\" was never defined.
48523Usually this means the macro was only invoked conditionally." >&5
48524$as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
48525Usually this means the macro was only invoked conditionally." >&2;}
48526 { (exit 1); exit 1; }; }
48527fi
48528if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
48529 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48530Usually this means the macro was only invoked conditionally." >&5
48531$as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48532Usually this means the macro was only invoked conditionally." >&2;}
48533 { (exit 1); exit 1; }; }
ea04106b
AX
48534fi
48535if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
cae5b340
AX
48536 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
48537Usually this means the macro was only invoked conditionally." >&5
48538$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
48539Usually this means the macro was only invoked conditionally." >&2;}
48540 { (exit 1); exit 1; }; }
ea04106b
AX
48541fi
48542if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
cae5b340
AX
48543 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
48544Usually this means the macro was only invoked conditionally." >&5
48545$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
48546Usually this means the macro was only invoked conditionally." >&2;}
48547 { (exit 1); exit 1; }; }
48548fi
42f7b73b
AX
48549if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
48550 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
48551Usually this means the macro was only invoked conditionally." >&5
48552$as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
48553Usually this means the macro was only invoked conditionally." >&2;}
48554 { (exit 1); exit 1; }; }
48555fi
cae5b340
AX
48556if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
48557 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48558Usually this means the macro was only invoked conditionally." >&5
48559$as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48560Usually this means the macro was only invoked conditionally." >&2;}
48561 { (exit 1); exit 1; }; }
48562fi
42f7b73b
AX
48563if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
48564 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
cae5b340 48565Usually this means the macro was only invoked conditionally." >&5
42f7b73b 48566$as_echo "$as_me: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
cae5b340
AX
48567Usually this means the macro was only invoked conditionally." >&2;}
48568 { (exit 1); exit 1; }; }
48569fi
48570
48571: ${CONFIG_STATUS=./config.status}
ea04106b
AX
48572ac_write_fail=0
48573ac_clean_files_save=$ac_clean_files
48574ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cae5b340 48575{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
ea04106b 48576$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cae5b340 48577cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea04106b
AX
48578#! $SHELL
48579# Generated by $as_me.
48580# Run this file to recreate the current configuration.
48581# Compiler output produced by configure, useful for debugging
48582# configure, is in config.log if it exists.
48583
48584debug=false
48585ac_cs_recheck=false
48586ac_cs_silent=false
ea04106b 48587SHELL=\${CONFIG_SHELL-$SHELL}
cae5b340
AX
48588_ACEOF
48589
48590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48591## --------------------- ##
48592## M4sh Initialization. ##
48593## --------------------- ##
ea04106b
AX
48594
48595# Be more Bourne compatible
48596DUALCASE=1; export DUALCASE # for MKS sh
cae5b340 48597if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
ea04106b
AX
48598 emulate sh
48599 NULLCMD=:
48600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48601 # is contrary to our usage. Disable this feature.
48602 alias -g '${1+"$@"}'='"$@"'
48603 setopt NO_GLOB_SUBST
48604else
cae5b340
AX
48605 case `(set -o) 2>/dev/null` in
48606 *posix*) set -o posix ;;
ea04106b 48607esac
cae5b340 48608
ea04106b
AX
48609fi
48610
48611
cae5b340
AX
48612
48613
48614# PATH needs CR
48615# Avoid depending upon Character Ranges.
48616as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48617as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48618as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48619as_cr_digits='0123456789'
48620as_cr_alnum=$as_cr_Letters$as_cr_digits
48621
ea04106b
AX
48622as_nl='
48623'
48624export as_nl
48625# Printing a long string crashes Solaris 7 /usr/bin/printf.
48626as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cae5b340 48629if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ea04106b
AX
48630 as_echo='printf %s\n'
48631 as_echo_n='printf %s'
48632else
48633 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
48634 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48635 as_echo_n='/usr/ucb/echo -n'
48636 else
48637 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48638 as_echo_n_body='eval
48639 arg=$1;
cae5b340 48640 case $arg in
ea04106b
AX
48641 *"$as_nl"*)
48642 expr "X$arg" : "X\\(.*\\)$as_nl";
48643 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48644 esac;
48645 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
48646 '
48647 export as_echo_n_body
48648 as_echo_n='sh -c $as_echo_n_body as_echo'
48649 fi
48650 export as_echo_body
48651 as_echo='sh -c $as_echo_body as_echo'
48652fi
48653
48654# The user is always right.
48655if test "${PATH_SEPARATOR+set}" != set; then
48656 PATH_SEPARATOR=:
48657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48659 PATH_SEPARATOR=';'
48660 }
48661fi
48662
cae5b340
AX
48663# Support unset when possible.
48664if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48665 as_unset=unset
48666else
48667 as_unset=false
48668fi
48669
ea04106b
AX
48670
48671# IFS
48672# We need space, tab and new line, in precisely that order. Quoting is
48673# there to prevent editors from complaining about space-tab.
48674# (If _AS_PATH_WALK were called with IFS unset, it would disable word
48675# splitting by setting IFS to empty value.)
48676IFS=" "" $as_nl"
48677
48678# Find who we are. Look in the path if we contain no directory separator.
cae5b340 48679case $0 in
ea04106b
AX
48680 *[\\/]* ) as_myself=$0 ;;
48681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48682for as_dir in $PATH
48683do
48684 IFS=$as_save_IFS
48685 test -z "$as_dir" && as_dir=.
cae5b340
AX
48686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48687done
ea04106b
AX
48688IFS=$as_save_IFS
48689
48690 ;;
48691esac
48692# We did not find ourselves, most probably we were run as `sh COMMAND'
48693# in which case we are not to be found in the path.
48694if test "x$as_myself" = x; then
48695 as_myself=$0
48696fi
48697if test ! -f "$as_myself"; then
48698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cae5b340 48699 { (exit 1); exit 1; }
ea04106b
AX
48700fi
48701
cae5b340
AX
48702# Work around bugs in pre-3.0 UWIN ksh.
48703for as_var in ENV MAIL MAILPATH
48704do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ea04106b
AX
48705done
48706PS1='$ '
48707PS2='> '
48708PS4='+ '
48709
48710# NLS nuisances.
48711LC_ALL=C
48712export LC_ALL
48713LANGUAGE=C
48714export LANGUAGE
48715
cae5b340 48716# Required to use basename.
ea04106b
AX
48717if expr a : '\(a\)' >/dev/null 2>&1 &&
48718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48719 as_expr=expr
48720else
48721 as_expr=false
48722fi
48723
48724if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
48725 as_basename=basename
48726else
48727 as_basename=false
48728fi
48729
ea04106b 48730
cae5b340 48731# Name of the executable.
ea04106b
AX
48732as_me=`$as_basename -- "$0" ||
48733$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48734 X"$0" : 'X\(//\)$' \| \
48735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
48736$as_echo X/"$0" |
48737 sed '/^.*\/\([^/][^/]*\)\/*$/{
48738 s//\1/
48739 q
48740 }
48741 /^X\/\(\/\/\)$/{
48742 s//\1/
48743 q
48744 }
48745 /^X\/\(\/\).*/{
48746 s//\1/
48747 q
48748 }
48749 s/.*/./; q'`
48750
cae5b340
AX
48751# CDPATH.
48752$as_unset CDPATH
48753
48754
48755
48756 as_lineno_1=$LINENO
48757 as_lineno_2=$LINENO
48758 test "x$as_lineno_1" != "x$as_lineno_2" &&
48759 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
48760
48761 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48762 # uniformly replaced by the line number. The first 'sed' inserts a
48763 # line-number line after each line using $LINENO; the second 'sed'
48764 # does the real work. The second script uses 'N' to pair each
48765 # line-number line with the line containing $LINENO, and appends
48766 # trailing '-' during substitution so that $LINENO is not a special
48767 # case at line end.
48768 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48769 # scripts with optimization help from Paolo Bonzini. Blame Lee
48770 # E. McMahon (1931-1989) for sed's syntax. :-)
48771 sed -n '
48772 p
48773 /[$]LINENO/=
48774 ' <$as_myself |
48775 sed '
48776 s/[$]LINENO.*/&-/
48777 t lineno
48778 b
48779 :lineno
48780 N
48781 :loop
48782 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48783 t loop
48784 s/-\n.*//
48785 ' >$as_me.lineno &&
48786 chmod +x "$as_me.lineno" ||
48787 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
48788 { (exit 1); exit 1; }; }
48789
48790 # Don't try to exec as it changes $[0], causing all sort of problems
48791 # (the dirname of $[0] is not the place where we might find the
48792 # original and so on. Autoconf is especially sensitive to this).
48793 . "./$as_me.lineno"
48794 # Exit status is that of the last command.
48795 exit
48796}
48797
48798
48799if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48800 as_dirname=dirname
48801else
48802 as_dirname=false
48803fi
ea04106b
AX
48804
48805ECHO_C= ECHO_N= ECHO_T=
cae5b340 48806case `echo -n x` in
ea04106b 48807-n*)
cae5b340 48808 case `echo 'x\c'` in
ea04106b 48809 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cae5b340 48810 *) ECHO_C='\c';;
ea04106b
AX
48811 esac;;
48812*)
48813 ECHO_N='-n';;
48814esac
cae5b340
AX
48815if expr a : '\(a\)' >/dev/null 2>&1 &&
48816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48817 as_expr=expr
48818else
48819 as_expr=false
48820fi
ea04106b
AX
48821
48822rm -f conf$$ conf$$.exe conf$$.file
48823if test -d conf$$.dir; then
48824 rm -f conf$$.dir/conf$$.file
48825else
48826 rm -f conf$$.dir
48827 mkdir conf$$.dir 2>/dev/null
48828fi
48829if (echo >conf$$.file) 2>/dev/null; then
48830 if ln -s conf$$.file conf$$ 2>/dev/null; then
48831 as_ln_s='ln -s'
48832 # ... but there are two gotchas:
48833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cae5b340 48835 # In both cases, we have to default to `cp -p'.
ea04106b 48836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cae5b340 48837 as_ln_s='cp -p'
ea04106b
AX
48838 elif ln conf$$.file conf$$ 2>/dev/null; then
48839 as_ln_s=ln
48840 else
cae5b340 48841 as_ln_s='cp -p'
ea04106b
AX
48842 fi
48843else
cae5b340 48844 as_ln_s='cp -p'
ea04106b
AX
48845fi
48846rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48847rmdir conf$$.dir 2>/dev/null
48848
ea04106b 48849if mkdir -p . 2>/dev/null; then
cae5b340 48850 as_mkdir_p=:
ea04106b
AX
48851else
48852 test -d ./-p && rmdir ./-p
48853 as_mkdir_p=false
48854fi
48855
cae5b340
AX
48856if test -x / >/dev/null 2>&1; then
48857 as_test_x='test -x'
48858else
48859 if ls -dL / >/dev/null 2>&1; then
48860 as_ls_L_option=L
48861 else
48862 as_ls_L_option=
48863 fi
48864 as_test_x='
48865 eval sh -c '\''
48866 if test -d "$1"; then
48867 test -d "$1/.";
48868 else
48869 case $1 in
48870 -*)set "./$1";;
48871 esac;
48872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48873 ???[sx]*):;;*)false;;esac;fi
48874 '\'' sh
48875 '
48876fi
48877as_executable_p=$as_test_x
ea04106b
AX
48878
48879# Sed expression to map a string onto a valid CPP name.
48880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48881
48882# Sed expression to map a string onto a valid variable name.
48883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48884
48885
48886exec 6>&1
ea04106b 48887
cae5b340 48888# Save the log message, to keep $[0] and so on meaningful, and to
ea04106b
AX
48889# report actual input values of CONFIG_FILES etc. instead of their
48890# values after options handling.
48891ac_log="
a07c8b41 48892This file was extended by zfs $as_me 0.7.11, which was
cae5b340 48893generated by GNU Autoconf 2.63. Invocation command line was
ea04106b
AX
48894
48895 CONFIG_FILES = $CONFIG_FILES
48896 CONFIG_HEADERS = $CONFIG_HEADERS
48897 CONFIG_LINKS = $CONFIG_LINKS
48898 CONFIG_COMMANDS = $CONFIG_COMMANDS
48899 $ $0 $@
48900
48901on `(hostname || uname -n) 2>/dev/null | sed 1q`
48902"
48903
48904_ACEOF
48905
48906case $ac_config_files in *"
48907"*) set x $ac_config_files; shift; ac_config_files=$*;;
48908esac
48909
48910case $ac_config_headers in *"
48911"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48912esac
48913
48914
48915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48916# Files that config.status was made for.
48917config_files="$ac_config_files"
48918config_headers="$ac_config_headers"
48919config_commands="$ac_config_commands"
48920
48921_ACEOF
48922
48923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48924ac_cs_usage="\
cae5b340
AX
48925\`$as_me' instantiates files from templates according to the
48926current configuration.
ea04106b 48927
cae5b340 48928Usage: $0 [OPTION]... [FILE]...
ea04106b
AX
48929
48930 -h, --help print this help, then exit
48931 -V, --version print version number and configuration settings, then exit
ea04106b
AX
48932 -q, --quiet, --silent
48933 do not print progress messages
48934 -d, --debug don't remove temporary files
48935 --recheck update $as_me by reconfiguring in the same conditions
48936 --file=FILE[:TEMPLATE]
48937 instantiate the configuration file FILE
48938 --header=FILE[:TEMPLATE]
48939 instantiate the configuration header FILE
48940
48941Configuration files:
48942$config_files
48943
48944Configuration headers:
48945$config_headers
48946
48947Configuration commands:
48948$config_commands
48949
cae5b340 48950Report bugs to <bug-autoconf@gnu.org>."
ea04106b
AX
48951
48952_ACEOF
48953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea04106b 48954ac_cs_version="\\
a07c8b41 48955zfs config.status 0.7.11
cae5b340
AX
48956configured by $0, generated by GNU Autoconf 2.63,
48957 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ea04106b 48958
cae5b340 48959Copyright (C) 2008 Free Software Foundation, Inc.
ea04106b
AX
48960This config.status script is free software; the Free Software Foundation
48961gives unlimited permission to copy, distribute and modify it."
48962
48963ac_pwd='$ac_pwd'
48964srcdir='$srcdir'
48965INSTALL='$INSTALL'
48966MKDIR_P='$MKDIR_P'
48967AWK='$AWK'
48968test -n "\$AWK" || AWK=awk
48969_ACEOF
48970
48971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48972# The default lists apply if the user does not specify any file.
48973ac_need_defaults=:
48974while test $# != 0
48975do
48976 case $1 in
cae5b340 48977 --*=*)
ea04106b
AX
48978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48980 ac_shift=:
48981 ;;
ea04106b
AX
48982 *)
48983 ac_option=$1
48984 ac_optarg=$2
48985 ac_shift=shift
48986 ;;
48987 esac
48988
48989 case $ac_option in
48990 # Handling of the options.
48991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48992 ac_cs_recheck=: ;;
48993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48994 $as_echo "$ac_cs_version"; exit ;;
ea04106b
AX
48995 --debug | --debu | --deb | --de | --d | -d )
48996 debug=: ;;
48997 --file | --fil | --fi | --f )
48998 $ac_shift
48999 case $ac_optarg in
49000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
ea04106b 49001 esac
cae5b340 49002 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ea04106b
AX
49003 ac_need_defaults=false;;
49004 --header | --heade | --head | --hea )
49005 $ac_shift
49006 case $ac_optarg in
49007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49008 esac
cae5b340 49009 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ea04106b
AX
49010 ac_need_defaults=false;;
49011 --he | --h)
49012 # Conflict between --help and --header
cae5b340
AX
49013 { $as_echo "$as_me: error: ambiguous option: $1
49014Try \`$0 --help' for more information." >&2
49015 { (exit 1); exit 1; }; };;
ea04106b
AX
49016 --help | --hel | -h )
49017 $as_echo "$ac_cs_usage"; exit ;;
49018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49020 ac_cs_silent=: ;;
49021
49022 # This is an error.
cae5b340
AX
49023 -*) { $as_echo "$as_me: error: unrecognized option: $1
49024Try \`$0 --help' for more information." >&2
49025 { (exit 1); exit 1; }; } ;;
ea04106b 49026
cae5b340 49027 *) ac_config_targets="$ac_config_targets $1"
ea04106b
AX
49028 ac_need_defaults=false ;;
49029
49030 esac
49031 shift
49032done
49033
49034ac_configure_extra_args=
49035
49036if $ac_cs_silent; then
49037 exec 6>/dev/null
49038 ac_configure_extra_args="$ac_configure_extra_args --silent"
49039fi
49040
49041_ACEOF
49042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49043if \$ac_cs_recheck; then
cae5b340 49044 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ea04106b
AX
49045 shift
49046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49047 CONFIG_SHELL='$SHELL'
49048 export CONFIG_SHELL
49049 exec "\$@"
49050fi
49051
49052_ACEOF
49053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49054exec 5>>config.log
49055{
49056 echo
49057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49058## Running $as_me. ##
49059_ASBOX
49060 $as_echo "$ac_log"
49061} >&5
49062
49063_ACEOF
49064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49065#
49066# INIT-COMMANDS
49067#
49068AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49069
49070
49071# The HP-UX ksh and POSIX shell print the target directory to stdout
49072# if CDPATH is set.
49073(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49074
49075sed_quote_subst='$sed_quote_subst'
49076double_quote_subst='$double_quote_subst'
49077delay_variable_subst='$delay_variable_subst'
cae5b340
AX
49078macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
49079macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
49080enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
49081enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
49082pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
49083enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
49084host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
49085host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
49086host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
49087build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
49088build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
49089build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
49090SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
49091Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
49092GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
49093EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
49094FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
49095LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
49096NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
49097LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
49098max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
49099ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
49100exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
49101lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
49102lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
49103lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
49104reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
49105reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49106OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
49107deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
49108file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
49109AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
49110AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49111STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
49112RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
49113old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49114old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49115old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49116CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
49117CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49118compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
49119GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
49120lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
49121lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
49122lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
49123lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49124objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
49125SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
49126ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
49127MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
49128lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
49129lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
49130lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
49131lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
49132lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
49133need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
49134DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
49135NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
49136LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
49137OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
49138OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
49139libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
49140shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49141extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49142archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
49143enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
49144export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49145whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49146compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
49147old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49148old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49149archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49150archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49151module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49152module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49153with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
49154allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49155no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49156hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49157hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
49158hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
49159hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
49160hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
49161hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
49162hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49163hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
49164inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
49165link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
49166fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
49167always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
49168export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49169exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49170include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49171prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49172file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
49173variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
49174need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49175need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
49176version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
49177runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49178shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49179shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
49180libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49181library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
49182soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49183postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49184postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49185finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49186finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
49187hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
49188sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49189sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49190hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
49191enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
49192enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
49193enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
49194old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
49195striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
ea04106b
AX
49196
49197LTCC='$LTCC'
49198LTCFLAGS='$LTCFLAGS'
49199compiler='$compiler_DEFAULT'
49200
ea04106b 49201# Quote evaled strings.
cae5b340 49202for var in SED \
ea04106b
AX
49203GREP \
49204EGREP \
49205FGREP \
49206LD \
49207NM \
49208LN_S \
49209lt_SP2NL \
49210lt_NL2SP \
49211reload_flag \
49212OBJDUMP \
49213deplibs_check_method \
49214file_magic_cmd \
ea04106b
AX
49215AR \
49216AR_FLAGS \
ea04106b
AX
49217STRIP \
49218RANLIB \
49219CC \
49220CFLAGS \
49221compiler \
49222lt_cv_sys_global_symbol_pipe \
49223lt_cv_sys_global_symbol_to_cdecl \
49224lt_cv_sys_global_symbol_to_c_name_address \
49225lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cae5b340
AX
49226SHELL \
49227ECHO \
ea04106b 49228lt_prog_compiler_no_builtin_flag \
ea04106b 49229lt_prog_compiler_wl \
cae5b340 49230lt_prog_compiler_pic \
ea04106b
AX
49231lt_prog_compiler_static \
49232lt_cv_prog_compiler_c_o \
49233need_locks \
ea04106b
AX
49234DSYMUTIL \
49235NMEDIT \
49236LIPO \
49237OTOOL \
49238OTOOL64 \
49239shrext_cmds \
49240export_dynamic_flag_spec \
49241whole_archive_flag_spec \
49242compiler_needs_object \
49243with_gnu_ld \
49244allow_undefined_flag \
49245no_undefined_flag \
49246hardcode_libdir_flag_spec \
cae5b340 49247hardcode_libdir_flag_spec_ld \
ea04106b 49248hardcode_libdir_separator \
cae5b340 49249fix_srcfile_path \
ea04106b
AX
49250exclude_expsyms \
49251include_expsyms \
49252file_list_spec \
49253variables_saved_for_relink \
49254libname_spec \
49255library_names_spec \
49256soname_spec \
ea04106b
AX
49257finish_eval \
49258old_striplib \
49259striplib; do
cae5b340 49260 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
ea04106b 49261 *[\\\\\\\`\\"\\\$]*)
cae5b340 49262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
ea04106b
AX
49263 ;;
49264 *)
49265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49266 ;;
49267 esac
49268done
49269
49270# Double-quote double-evaled strings.
49271for var in reload_cmds \
49272old_postinstall_cmds \
49273old_postuninstall_cmds \
49274old_archive_cmds \
49275extract_expsyms_cmds \
49276old_archive_from_new_cmds \
49277old_archive_from_expsyms_cmds \
49278archive_cmds \
49279archive_expsym_cmds \
49280module_cmds \
49281module_expsym_cmds \
49282export_symbols_cmds \
49283prelink_cmds \
ea04106b
AX
49284postinstall_cmds \
49285postuninstall_cmds \
49286finish_cmds \
49287sys_lib_search_path_spec \
cae5b340
AX
49288sys_lib_dlsearch_path_spec; do
49289 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
ea04106b 49290 *[\\\\\\\`\\"\\\$]*)
cae5b340 49291 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
ea04106b
AX
49292 ;;
49293 *)
49294 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49295 ;;
49296 esac
49297done
49298
cae5b340
AX
49299# Fix-up fallback echo if it was mangled by the above quoting rules.
49300case \$lt_ECHO in
49301*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
49302 ;;
49303esac
49304
ea04106b 49305ac_aux_dir='$ac_aux_dir'
cae5b340
AX
49306xsi_shell='$xsi_shell'
49307lt_shell_append='$lt_shell_append'
ea04106b 49308
cae5b340 49309# See if we are running on zsh, and set the options which allow our
ea04106b 49310# commands through without removal of \ escapes INIT.
cae5b340 49311if test -n "\${ZSH_VERSION+set}" ; then
ea04106b
AX
49312 setopt NO_GLOB_SUBST
49313fi
49314
49315
49316 PACKAGE='$PACKAGE'
49317 VERSION='$VERSION'
cae5b340 49318 TIMESTAMP='$TIMESTAMP'
ea04106b
AX
49319 RM='$RM'
49320 ofile='$ofile'
49321
49322
49323
49324
49325_ACEOF
49326
49327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49328
49329# Handling of arguments.
49330for ac_config_target in $ac_config_targets
49331do
49332 case $ac_config_target in
49333 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
49334 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49335 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
49336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
ea04106b
AX
49337 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
49338 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
49339 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
49340 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
49341 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
49342 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
49343 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
cae5b340 49344 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
ea04106b
AX
49345 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
49346 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49347 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
49348 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
49349 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
49350 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
49351 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
49352 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
49353 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
49354 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
49355 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
49356 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
49357 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
49358 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
49359 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
ea04106b
AX
49360 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
49361 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
49362 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
49363 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
cae5b340 49364 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
ea04106b
AX
49365 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
49366 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
49367 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
49368 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
49369 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
49370 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
49371 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
49372 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
49373 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
49374 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
49375 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
49376 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
49377 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
49378 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
49379 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
49380 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
49381 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
49382 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
49383 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
49384 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
49385 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
49386 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
49387 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
49388 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
49389 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
49390 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
cae5b340
AX
49391 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
49392 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
ea04106b
AX
49393 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
49394 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
e10b0808 49395 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
cae5b340 49396 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
e10b0808
AX
49397 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
49398 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
ea04106b
AX
49399 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
49400 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
49401 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
49402 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
49403 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
49404 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
49405 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
cae5b340 49406 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
ea04106b
AX
49407 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
49408 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
49409 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
49410 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
49411 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
49412 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
cae5b340
AX
49413 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
49414 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
ea04106b
AX
49415 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
49416 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
49417 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
49418 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
49419 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
cae5b340
AX
49420 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
49421 "tests/test-runner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/Makefile" ;;
49422 "tests/test-runner/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
49423 "tests/test-runner/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
49424 "tests/test-runner/man/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
49425 "tests/runfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/runfiles/Makefile" ;;
49426 "tests/zfs-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
49427 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
49428 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
49429 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
42f7b73b 49430 "tests/zfs-tests/cmd/user_ns_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/user_ns_exec/Makefile" ;;
cae5b340
AX
49431 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
49432 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
49433 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
49434 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
49435 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
49436 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
49437 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
49438 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
49439 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
49440 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
49441 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
42f7b73b 49442 "tests/zfs-tests/cmd/mmap_libaio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_libaio/Makefile" ;;
cae5b340
AX
49443 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
49444 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
49445 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
49446 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
49447 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
49448 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
49449 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
49450 "tests/zfs-tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
49451 "tests/zfs-tests/include/default.cfg") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
49452 "tests/zfs-tests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
49453 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
49454 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
49455 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
49456 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
49457 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
49458 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
49459 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
49460 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
49461 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
49462 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
49463 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
49464 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
49465 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
49466 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
49467 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
49468 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
49469 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
49470 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
49471 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
49472 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
49473 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
49474 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
49475 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
49476 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
49477 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
49478 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
49479 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
49480 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
49481 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
49482 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
49483 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
49484 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
49485 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
49486 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
49487 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
49488 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
49489 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
49490 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
49491 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
49492 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
49493 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
49494 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
49495 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
49496 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
49497 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
49498 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
49499 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
49500 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
49501 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
49502 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
49503 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
49504 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
49505 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
49506 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
49507 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
49508 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
49509 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
49510 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
49511 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
49512 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
49513 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
49514 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
a07c8b41 49515 "tests/zfs-tests/tests/functional/cp_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cp_files/Makefile" ;;
cae5b340
AX
49516 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
49517 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
49518 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
49519 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
49520 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
49521 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
49522 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
49523 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
49524 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
49525 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
49526 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
49527 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
49528 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
49529 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
a07c8b41 49530 "tests/zfs-tests/tests/functional/kstat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/kstat/Makefile" ;;
cae5b340
AX
49531 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
49532 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
49533 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
49534 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
49535 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
49536 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
49537 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
49538 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
49539 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
49540 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
49541 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
49542 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
49543 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
49544 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
49545 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
49546 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
49547 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
49548 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
49549 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
49550 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
49551 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
49552 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
49553 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
49554 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
49555 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
49556 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
49557 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
49558 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
49559 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
49560 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
49561 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
49562 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
49563 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
49564 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
42f7b73b 49565 "tests/zfs-tests/tests/functional/user_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/user_namespace/Makefile" ;;
cae5b340
AX
49566 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
49567 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
49568 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
49569 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
49570 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
49571 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
49572 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
49573 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
49574 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
49575 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
49576 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
49577 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
49578 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
49579 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
49580 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
ea04106b
AX
49581 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
49582 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
49583 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
49584 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
49585 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
49586 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
49587 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
49588 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
49589 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
49590 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
49591 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
49592
cae5b340
AX
49593 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49594$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49595 { (exit 1); exit 1; }; };;
ea04106b
AX
49596 esac
49597done
49598
49599
49600# If the user did not use the arguments to specify the items to instantiate,
49601# then the envvar interface is used. Set only those that are not.
49602# We use the long form for the default assignment because of an extremely
49603# bizarre bug on SunOS 4.1.3.
49604if $ac_need_defaults; then
49605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49608fi
49609
49610# Have a temporary directory for convenience. Make it in the build tree
49611# simply because there is no reason against having it here, and in addition,
49612# creating and moving files from /tmp can sometimes cause problems.
49613# Hook for its removal unless debugging.
49614# Note that there is a small window in which the directory will not be cleaned:
49615# after its creation but before its name has been assigned to `$tmp'.
49616$debug ||
49617{
cae5b340 49618 tmp=
ea04106b 49619 trap 'exit_status=$?
cae5b340 49620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
ea04106b 49621' 0
cae5b340 49622 trap '{ (exit 1); exit 1; }' 1 2 13 15
ea04106b
AX
49623}
49624# Create a (secure) tmp directory for tmp files.
49625
49626{
49627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cae5b340 49628 test -n "$tmp" && test -d "$tmp"
ea04106b
AX
49629} ||
49630{
49631 tmp=./conf$$-$RANDOM
49632 (umask 077 && mkdir "$tmp")
cae5b340
AX
49633} ||
49634{
49635 $as_echo "$as_me: cannot create a temporary directory in ." >&2
49636 { (exit 1); exit 1; }
49637}
ea04106b
AX
49638
49639# Set up the scripts for CONFIG_FILES section.
49640# No need to generate them if there are no CONFIG_FILES.
49641# This happens for instance with `./config.status config.h'.
49642if test -n "$CONFIG_FILES"; then
49643
49644
cae5b340 49645ac_cr='\r'
ea04106b
AX
49646ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49647if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49648 ac_cs_awk_cr='\\r'
49649else
49650 ac_cs_awk_cr=$ac_cr
49651fi
49652
cae5b340 49653echo 'BEGIN {' >"$tmp/subs1.awk" &&
ea04106b
AX
49654_ACEOF
49655
49656
49657{
49658 echo "cat >conf$$subs.awk <<_ACEOF" &&
49659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
49660 echo "_ACEOF"
49661} >conf$$subs.sh ||
cae5b340
AX
49662 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49663$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49664 { (exit 1); exit 1; }; }
49665ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ea04106b
AX
49666ac_delim='%!_!# '
49667for ac_last_try in false false false false false :; do
49668 . ./conf$$subs.sh ||
cae5b340
AX
49669 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49670$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49671 { (exit 1); exit 1; }; }
ea04106b
AX
49672
49673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
49674 if test $ac_delim_n = $ac_delim_num; then
49675 break
49676 elif $ac_last_try; then
cae5b340
AX
49677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49678$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49679 { (exit 1); exit 1; }; }
ea04106b
AX
49680 else
49681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49682 fi
49683done
49684rm -f conf$$subs.sh
49685
49686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cae5b340 49687cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
ea04106b
AX
49688_ACEOF
49689sed -n '
49690h
49691s/^/S["/; s/!.*/"]=/
49692p
49693g
49694s/^[^!]*!//
49695:repl
49696t repl
49697s/'"$ac_delim"'$//
49698t delim
49699:nl
49700h
cae5b340 49701s/\(.\{148\}\).*/\1/
ea04106b
AX
49702t more1
49703s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
49704p
49705n
49706b repl
49707:more1
49708s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49709p
49710g
49711s/.\{148\}//
49712t nl
49713:delim
49714h
cae5b340 49715s/\(.\{148\}\).*/\1/
ea04106b
AX
49716t more2
49717s/["\\]/\\&/g; s/^/"/; s/$/"/
49718p
49719b
49720:more2
49721s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49722p
49723g
49724s/.\{148\}//
49725t delim
49726' <conf$$subs.awk | sed '
49727/^[^""]/{
49728 N
49729 s/\n//
49730}
49731' >>$CONFIG_STATUS || ac_write_fail=1
49732rm -f conf$$subs.awk
49733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49734_ACAWK
cae5b340 49735cat >>"\$tmp/subs1.awk" <<_ACAWK &&
ea04106b
AX
49736 for (key in S) S_is_set[key] = 1
49737 FS = "\a"
49738
49739}
49740{
49741 line = $ 0
49742 nfields = split(line, field, "@")
49743 substed = 0
49744 len = length(field[1])
49745 for (i = 2; i < nfields; i++) {
49746 key = field[i]
49747 keylen = length(key)
49748 if (S_is_set[key]) {
49749 value = S[key]
49750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
49751 len += length(value) + length(field[++i])
49752 substed = 1
49753 } else
49754 len += 1 + keylen
49755 }
49756
49757 print line
49758}
49759
49760_ACAWK
49761_ACEOF
49762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49763if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
49765else
49766 cat
cae5b340
AX
49767fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
49768 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
49769$as_echo "$as_me: error: could not setup config files machinery" >&2;}
49770 { (exit 1); exit 1; }; }
ea04106b
AX
49771_ACEOF
49772
cae5b340
AX
49773# VPATH may cause trouble with some makes, so we remove $(srcdir),
49774# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
ea04106b
AX
49775# trailing colons and then remove the whole line if VPATH becomes empty
49776# (actually we leave an empty line to preserve line numbers).
49777if test "x$srcdir" = x.; then
cae5b340
AX
49778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49779s/:*\$(srcdir):*/:/
49780s/:*\${srcdir}:*/:/
49781s/:*@srcdir@:*/:/
49782s/^\([^=]*=[ ]*\):*/\1/
ea04106b 49783s/:*$//
ea04106b
AX
49784s/^[^=]*=[ ]*$//
49785}'
49786fi
49787
49788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49789fi # test -n "$CONFIG_FILES"
49790
49791# Set up the scripts for CONFIG_HEADERS section.
49792# No need to generate them if there are no CONFIG_HEADERS.
49793# This happens for instance with `./config.status Makefile'.
49794if test -n "$CONFIG_HEADERS"; then
cae5b340 49795cat >"$tmp/defines.awk" <<\_ACAWK ||
ea04106b
AX
49796BEGIN {
49797_ACEOF
49798
49799# Transform confdefs.h into an awk script `defines.awk', embedded as
49800# here-document in config.status, that substitutes the proper values into
49801# config.h.in to produce config.h.
49802
49803# Create a delimiter string that does not exist in confdefs.h, to ease
49804# handling of long lines.
49805ac_delim='%!_!# '
49806for ac_last_try in false false :; do
cae5b340
AX
49807 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
49808 if test -z "$ac_t"; then
ea04106b
AX
49809 break
49810 elif $ac_last_try; then
cae5b340
AX
49811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
49812$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
49813 { (exit 1); exit 1; }; }
ea04106b
AX
49814 else
49815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49816 fi
49817done
49818
49819# For the awk script, D is an array of macro values keyed by name,
49820# likewise P contains macro parameters if any. Preserve backslash
49821# newline sequences.
49822
49823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49824sed -n '
49825s/.\{148\}/&'"$ac_delim"'/g
49826t rset
49827:rset
49828s/^[ ]*#[ ]*define[ ][ ]*/ /
49829t def
49830d
49831:def
49832s/\\$//
49833t bsnl
49834s/["\\]/\\&/g
49835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49836D["\1"]=" \3"/p
49837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
49838d
49839:bsnl
49840s/["\\]/\\&/g
49841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49842D["\1"]=" \3\\\\\\n"\\/p
49843t cont
49844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49845t cont
49846d
49847:cont
49848n
49849s/.\{148\}/&'"$ac_delim"'/g
49850t clear
49851:clear
49852s/\\$//
49853t bsnlc
49854s/["\\]/\\&/g; s/^/"/; s/$/"/p
49855d
49856:bsnlc
49857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49858b cont
49859' <confdefs.h | sed '
49860s/'"$ac_delim"'/"\\\
49861"/g' >>$CONFIG_STATUS || ac_write_fail=1
49862
49863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49864 for (key in D) D_is_set[key] = 1
49865 FS = "\a"
49866}
49867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49868 line = \$ 0
49869 split(line, arg, " ")
49870 if (arg[1] == "#") {
49871 defundef = arg[2]
49872 mac1 = arg[3]
49873 } else {
49874 defundef = substr(arg[1], 2)
49875 mac1 = arg[2]
49876 }
49877 split(mac1, mac2, "(") #)
49878 macro = mac2[1]
49879 prefix = substr(line, 1, index(line, defundef) - 1)
49880 if (D_is_set[macro]) {
49881 # Preserve the white space surrounding the "#".
49882 print prefix "define", macro P[macro] D[macro]
49883 next
49884 } else {
49885 # Replace #undef with comments. This is necessary, for example,
49886 # in the case of _POSIX_SOURCE, which is predefined and required
49887 # on some systems where configure will not decide to define it.
49888 if (defundef == "undef") {
49889 print "/*", prefix defundef, macro, "*/"
49890 next
49891 }
49892 }
49893}
49894{ print }
49895_ACAWK
49896_ACEOF
49897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cae5b340
AX
49898 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
49899$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
49900 { (exit 1); exit 1; }; }
ea04106b
AX
49901fi # test -n "$CONFIG_HEADERS"
49902
49903
49904eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
49905shift
49906for ac_tag
49907do
49908 case $ac_tag in
49909 :[FHLC]) ac_mode=$ac_tag; continue;;
49910 esac
49911 case $ac_mode$ac_tag in
49912 :[FHL]*:*);;
cae5b340
AX
49913 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
49914$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
49915 { (exit 1); exit 1; }; };;
ea04106b
AX
49916 :[FH]-) ac_tag=-:-;;
49917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49918 esac
49919 ac_save_IFS=$IFS
49920 IFS=:
49921 set x $ac_tag
49922 IFS=$ac_save_IFS
49923 shift
49924 ac_file=$1
49925 shift
49926
49927 case $ac_mode in
49928 :L) ac_source=$1;;
49929 :[FH])
49930 ac_file_inputs=
49931 for ac_f
49932 do
49933 case $ac_f in
cae5b340 49934 -) ac_f="$tmp/stdin";;
ea04106b
AX
49935 *) # Look for the file first in the build tree, then in the source tree
49936 # (if the path is not absolute). The absolute path cannot be DOS-style,
49937 # because $ac_f cannot contain `:'.
49938 test -f "$ac_f" ||
49939 case $ac_f in
49940 [\\/$]*) false;;
49941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49942 esac ||
cae5b340
AX
49943 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49944$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49945 { (exit 1); exit 1; }; };;
ea04106b
AX
49946 esac
49947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cae5b340 49948 ac_file_inputs="$ac_file_inputs '$ac_f'"
ea04106b
AX
49949 done
49950
49951 # Let's still pretend it is `configure' which instantiates (i.e., don't
49952 # use $as_me), people would be surprised to read:
49953 # /* config.h. Generated by config.status. */
49954 configure_input='Generated from '`
49955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49956 `' by configure.'
49957 if test x"$ac_file" != x-; then
49958 configure_input="$ac_file. $configure_input"
cae5b340 49959 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
ea04106b
AX
49960$as_echo "$as_me: creating $ac_file" >&6;}
49961 fi
49962 # Neutralize special characters interpreted by sed in replacement strings.
49963 case $configure_input in #(
49964 *\&* | *\|* | *\\* )
49965 ac_sed_conf_input=`$as_echo "$configure_input" |
49966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
49967 *) ac_sed_conf_input=$configure_input;;
49968 esac
49969
49970 case $ac_tag in
cae5b340
AX
49971 *:-:* | *:-) cat >"$tmp/stdin" \
49972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49973$as_echo "$as_me: error: could not create $ac_file" >&2;}
49974 { (exit 1); exit 1; }; } ;;
ea04106b
AX
49975 esac
49976 ;;
49977 esac
49978
49979 ac_dir=`$as_dirname -- "$ac_file" ||
49980$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49981 X"$ac_file" : 'X\(//\)[^/]' \| \
49982 X"$ac_file" : 'X\(//\)$' \| \
49983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49984$as_echo X"$ac_file" |
49985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49986 s//\1/
49987 q
49988 }
49989 /^X\(\/\/\)[^/].*/{
49990 s//\1/
49991 q
49992 }
49993 /^X\(\/\/\)$/{
49994 s//\1/
49995 q
49996 }
49997 /^X\(\/\).*/{
49998 s//\1/
49999 q
50000 }
50001 s/.*/./; q'`
cae5b340
AX
50002 { as_dir="$ac_dir"
50003 case $as_dir in #(
50004 -*) as_dir=./$as_dir;;
50005 esac
50006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50007 as_dirs=
50008 while :; do
50009 case $as_dir in #(
50010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50011 *) as_qdir=$as_dir;;
50012 esac
50013 as_dirs="'$as_qdir' $as_dirs"
50014 as_dir=`$as_dirname -- "$as_dir" ||
50015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50016 X"$as_dir" : 'X\(//\)[^/]' \| \
50017 X"$as_dir" : 'X\(//\)$' \| \
50018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50019$as_echo X"$as_dir" |
50020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50021 s//\1/
50022 q
50023 }
50024 /^X\(\/\/\)[^/].*/{
50025 s//\1/
50026 q
50027 }
50028 /^X\(\/\/\)$/{
50029 s//\1/
50030 q
50031 }
50032 /^X\(\/\).*/{
50033 s//\1/
50034 q
50035 }
50036 s/.*/./; q'`
50037 test -d "$as_dir" && break
50038 done
50039 test -z "$as_dirs" || eval "mkdir $as_dirs"
50040 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50041$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50042 { (exit 1); exit 1; }; }; }
ea04106b
AX
50043 ac_builddir=.
50044
50045case "$ac_dir" in
50046.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50047*)
50048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
50049 # A ".." for each directory in $ac_dir_suffix.
50050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
50051 case $ac_top_builddir_sub in
50052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50054 esac ;;
50055esac
50056ac_abs_top_builddir=$ac_pwd
50057ac_abs_builddir=$ac_pwd$ac_dir_suffix
50058# for backward compatibility:
50059ac_top_builddir=$ac_top_build_prefix
50060
50061case $srcdir in
50062 .) # We are building in place.
50063 ac_srcdir=.
50064 ac_top_srcdir=$ac_top_builddir_sub
50065 ac_abs_top_srcdir=$ac_pwd ;;
50066 [\\/]* | ?:[\\/]* ) # Absolute name.
50067 ac_srcdir=$srcdir$ac_dir_suffix;
50068 ac_top_srcdir=$srcdir
50069 ac_abs_top_srcdir=$srcdir ;;
50070 *) # Relative name.
50071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50072 ac_top_srcdir=$ac_top_build_prefix$srcdir
50073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50074esac
50075ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50076
50077
50078 case $ac_mode in
50079 :F)
50080 #
50081 # CONFIG_FILE
50082 #
50083
50084 case $INSTALL in
50085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50087 esac
50088 ac_MKDIR_P=$MKDIR_P
50089 case $MKDIR_P in
50090 [\\/$]* | ?:[\\/]* ) ;;
50091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
50092 esac
50093_ACEOF
50094
50095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50096# If the template does not know about datarootdir, expand it.
50097# FIXME: This hack should be removed a few years after 2.60.
50098ac_datarootdir_hack=; ac_datarootdir_seen=
cae5b340 50099
ea04106b
AX
50100ac_sed_dataroot='
50101/datarootdir/ {
50102 p
50103 q
50104}
50105/@datadir@/p
50106/@docdir@/p
50107/@infodir@/p
50108/@localedir@/p
cae5b340
AX
50109/@mandir@/p
50110'
ea04106b
AX
50111case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
50112*datarootdir*) ac_datarootdir_seen=yes;;
50113*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cae5b340 50114 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ea04106b
AX
50115$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50116_ACEOF
50117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50118 ac_datarootdir_hack='
50119 s&@datadir@&$datadir&g
50120 s&@docdir@&$docdir&g
50121 s&@infodir@&$infodir&g
50122 s&@localedir@&$localedir&g
50123 s&@mandir@&$mandir&g
cae5b340 50124 s&\\\${datarootdir}&$datarootdir&g' ;;
ea04106b
AX
50125esac
50126_ACEOF
50127
50128# Neutralize VPATH when `$srcdir' = `.'.
50129# Shell code in configure.ac might set extrasub.
50130# FIXME: do we really want to maintain this feature?
50131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50132ac_sed_extra="$ac_vpsub
50133$extrasub
50134_ACEOF
50135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50136:t
50137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50138s|@configure_input@|$ac_sed_conf_input|;t t
50139s&@top_builddir@&$ac_top_builddir_sub&;t t
50140s&@top_build_prefix@&$ac_top_build_prefix&;t t
50141s&@srcdir@&$ac_srcdir&;t t
50142s&@abs_srcdir@&$ac_abs_srcdir&;t t
50143s&@top_srcdir@&$ac_top_srcdir&;t t
50144s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50145s&@builddir@&$ac_builddir&;t t
50146s&@abs_builddir@&$ac_abs_builddir&;t t
50147s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50148s&@INSTALL@&$ac_INSTALL&;t t
50149s&@MKDIR_P@&$ac_MKDIR_P&;t t
50150$ac_datarootdir_hack
50151"
cae5b340
AX
50152eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
50153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50154$as_echo "$as_me: error: could not create $ac_file" >&2;}
50155 { (exit 1); exit 1; }; }
ea04106b
AX
50156
50157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cae5b340
AX
50158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50160 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50161which seems to be undefined. Please make sure it is defined." >&5
ea04106b 50162$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cae5b340 50163which seems to be undefined. Please make sure it is defined." >&2;}
ea04106b 50164
cae5b340 50165 rm -f "$tmp/stdin"
ea04106b 50166 case $ac_file in
cae5b340
AX
50167 -) cat "$tmp/out" && rm -f "$tmp/out";;
50168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
ea04106b 50169 esac \
cae5b340
AX
50170 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50171$as_echo "$as_me: error: could not create $ac_file" >&2;}
50172 { (exit 1); exit 1; }; }
ea04106b
AX
50173 ;;
50174 :H)
50175 #
50176 # CONFIG_HEADER
50177 #
50178 if test x"$ac_file" != x-; then
50179 {
50180 $as_echo "/* $configure_input */" \
cae5b340
AX
50181 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
50182 } >"$tmp/config.h" \
50183 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50184$as_echo "$as_me: error: could not create $ac_file" >&2;}
50185 { (exit 1); exit 1; }; }
50186 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
50187 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
ea04106b
AX
50188$as_echo "$as_me: $ac_file is unchanged" >&6;}
50189 else
50190 rm -f "$ac_file"
cae5b340
AX
50191 mv "$tmp/config.h" "$ac_file" \
50192 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50193$as_echo "$as_me: error: could not create $ac_file" >&2;}
50194 { (exit 1); exit 1; }; }
ea04106b
AX
50195 fi
50196 else
50197 $as_echo "/* $configure_input */" \
cae5b340
AX
50198 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
50199 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
50200$as_echo "$as_me: error: could not create -" >&2;}
50201 { (exit 1); exit 1; }; }
ea04106b
AX
50202 fi
50203# Compute "$ac_file"'s index in $config_headers.
50204_am_arg="$ac_file"
50205_am_stamp_count=1
50206for _am_header in $config_headers :; do
50207 case $_am_header in
50208 $_am_arg | $_am_arg:* )
50209 break ;;
50210 * )
50211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50212 esac
50213done
50214echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
50215$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50216 X"$_am_arg" : 'X\(//\)[^/]' \| \
50217 X"$_am_arg" : 'X\(//\)$' \| \
50218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
50219$as_echo X"$_am_arg" |
50220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50221 s//\1/
50222 q
50223 }
50224 /^X\(\/\/\)[^/].*/{
50225 s//\1/
50226 q
50227 }
50228 /^X\(\/\/\)$/{
50229 s//\1/
50230 q
50231 }
50232 /^X\(\/\).*/{
50233 s//\1/
50234 q
50235 }
50236 s/.*/./; q'`/stamp-h$_am_stamp_count
50237 ;;
50238
cae5b340 50239 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
ea04106b
AX
50240$as_echo "$as_me: executing $ac_file commands" >&6;}
50241 ;;
50242 esac
50243
50244
50245 case $ac_file$ac_mode in
50246 "zfs_config.h":H)
50247 (mv zfs_config.h zfs_config.h.tmp &&
50248 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
50249 rm zfs_config.h.tmp) || exit 1 ;;
50250 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cae5b340 50251 # Autoconf 2.62 quotes --file arguments for eval, but not when files
ea04106b
AX
50252 # are listed without --file. Let's play safe and only enable the eval
50253 # if we detect the quoting.
50254 case $CONFIG_FILES in
50255 *\'*) eval set x "$CONFIG_FILES" ;;
50256 *) set x $CONFIG_FILES ;;
50257 esac
50258 shift
50259 for mf
50260 do
50261 # Strip MF so we end up with the name of the file.
50262 mf=`echo "$mf" | sed -e 's/:.*$//'`
50263 # Check whether this is an Automake generated Makefile or not.
cae5b340 50264 # We used to match only the files named `Makefile.in', but
ea04106b
AX
50265 # some people rename them; so instead we look at the file content.
50266 # Grep'ing the first line is not enough: some people post-process
50267 # each Makefile.in and add a new line on top of each file to say so.
50268 # Grep'ing the whole file is not good either: AIX grep has a line
50269 # limit of 2048, but all sed's we know have understand at least 4000.
50270 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
50271 dirpart=`$as_dirname -- "$mf" ||
50272$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50273 X"$mf" : 'X\(//\)[^/]' \| \
50274 X"$mf" : 'X\(//\)$' \| \
50275 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
50276$as_echo X"$mf" |
50277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50278 s//\1/
50279 q
50280 }
50281 /^X\(\/\/\)[^/].*/{
50282 s//\1/
50283 q
50284 }
50285 /^X\(\/\/\)$/{
50286 s//\1/
50287 q
50288 }
50289 /^X\(\/\).*/{
50290 s//\1/
50291 q
50292 }
50293 s/.*/./; q'`
50294 else
50295 continue
50296 fi
50297 # Extract the definition of DEPDIR, am__include, and am__quote
cae5b340 50298 # from the Makefile without running `make'.
ea04106b
AX
50299 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50300 test -z "$DEPDIR" && continue
50301 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cae5b340 50302 test -z "am__include" && continue
ea04106b 50303 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cae5b340
AX
50304 # When using ansi2knr, U may be empty or an underscore; expand it
50305 U=`sed -n 's/^U = //p' < "$mf"`
ea04106b
AX
50306 # Find all dependency output files, they are included files with
50307 # $(DEPDIR) in their names. We invoke sed twice because it is the
50308 # simplest approach to changing $(DEPDIR) to its actual value in the
50309 # expansion.
50310 for file in `sed -n "
50311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cae5b340 50312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
ea04106b
AX
50313 # Make sure the directory exists.
50314 test -f "$dirpart/$file" && continue
50315 fdir=`$as_dirname -- "$file" ||
50316$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50317 X"$file" : 'X\(//\)[^/]' \| \
50318 X"$file" : 'X\(//\)$' \| \
50319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
50320$as_echo X"$file" |
50321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50322 s//\1/
50323 q
50324 }
50325 /^X\(\/\/\)[^/].*/{
50326 s//\1/
50327 q
50328 }
50329 /^X\(\/\/\)$/{
50330 s//\1/
50331 q
50332 }
50333 /^X\(\/\).*/{
50334 s//\1/
50335 q
50336 }
50337 s/.*/./; q'`
cae5b340
AX
50338 { as_dir=$dirpart/$fdir
50339 case $as_dir in #(
50340 -*) as_dir=./$as_dir;;
50341 esac
50342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50343 as_dirs=
50344 while :; do
50345 case $as_dir in #(
50346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50347 *) as_qdir=$as_dir;;
50348 esac
50349 as_dirs="'$as_qdir' $as_dirs"
50350 as_dir=`$as_dirname -- "$as_dir" ||
50351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50352 X"$as_dir" : 'X\(//\)[^/]' \| \
50353 X"$as_dir" : 'X\(//\)$' \| \
50354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50355$as_echo X"$as_dir" |
50356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50357 s//\1/
50358 q
50359 }
50360 /^X\(\/\/\)[^/].*/{
50361 s//\1/
50362 q
50363 }
50364 /^X\(\/\/\)$/{
50365 s//\1/
50366 q
50367 }
50368 /^X\(\/\).*/{
50369 s//\1/
50370 q
50371 }
50372 s/.*/./; q'`
50373 test -d "$as_dir" && break
50374 done
50375 test -z "$as_dirs" || eval "mkdir $as_dirs"
50376 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50377$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50378 { (exit 1); exit 1; }; }; }
ea04106b
AX
50379 # echo "creating $dirpart/$file"
50380 echo '# dummy' > "$dirpart/$file"
50381 done
50382 done
50383}
50384 ;;
50385 "libtool":C)
50386
cae5b340 50387 # See if we are running on zsh, and set the options which allow our
ea04106b 50388 # commands through without removal of \ escapes.
cae5b340 50389 if test -n "${ZSH_VERSION+set}" ; then
ea04106b
AX
50390 setopt NO_GLOB_SUBST
50391 fi
50392
cae5b340 50393 cfgfile="${ofile}T"
ea04106b
AX
50394 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
50395 $RM "$cfgfile"
50396
50397 cat <<_LT_EOF >> "$cfgfile"
50398#! $SHELL
cae5b340
AX
50399
50400# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
50401# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
ea04106b
AX
50402# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50403# NOTE: Changes made to this file will be lost: look at ltmain.sh.
50404#
cae5b340
AX
50405# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
50406# 2006, 2007, 2008 Free Software Foundation, Inc.
50407# Written by Gordon Matzigkeit, 1996
50408#
50409# This file is part of GNU Libtool.
ea04106b 50410#
cae5b340
AX
50411# GNU Libtool is free software; you can redistribute it and/or
50412# modify it under the terms of the GNU General Public License as
50413# published by the Free Software Foundation; either version 2 of
50414# the License, or (at your option) any later version.
50415#
50416# As a special exception to the GNU General Public License,
50417# if you distribute this file as part of a program or library that
50418# is built using GNU Libtool, you may include this file under the
50419# same distribution terms that you use for the rest of that program.
50420#
50421# GNU Libtool is distributed in the hope that it will be useful,
50422# but WITHOUT ANY WARRANTY; without even the implied warranty of
ea04106b
AX
50423# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50424# GNU General Public License for more details.
50425#
50426# You should have received a copy of the GNU General Public License
cae5b340
AX
50427# along with GNU Libtool; see the file COPYING. If not, a copy
50428# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
50429# obtained by writing to the Free Software Foundation, Inc.,
50430# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
ea04106b
AX
50431
50432
50433# The names of the tagged configurations supported by this script.
cae5b340 50434available_tags=""
ea04106b
AX
50435
50436# ### BEGIN LIBTOOL CONFIG
50437
50438# Which release of libtool.m4 was used?
50439macro_version=$macro_version
50440macro_revision=$macro_revision
50441
50442# Whether or not to build shared libraries.
50443build_libtool_libs=$enable_shared
50444
50445# Whether or not to build static libraries.
50446build_old_libs=$enable_static
50447
50448# What type of objects to build.
50449pic_mode=$pic_mode
50450
50451# Whether or not to optimize for fast installation.
50452fast_install=$enable_fast_install
50453
ea04106b
AX
50454# The host system.
50455host_alias=$host_alias
50456host=$host
50457host_os=$host_os
50458
50459# The build system.
50460build_alias=$build_alias
50461build=$build
50462build_os=$build_os
50463
50464# A sed program that does not truncate output.
50465SED=$lt_SED
50466
50467# Sed that helps us avoid accidentally triggering echo(1) options like -n.
50468Xsed="\$SED -e 1s/^X//"
50469
50470# A grep program that handles long lines.
50471GREP=$lt_GREP
50472
50473# An ERE matcher.
50474EGREP=$lt_EGREP
50475
50476# A literal string matcher.
50477FGREP=$lt_FGREP
50478
50479# A BSD- or MS-compatible name lister.
50480NM=$lt_NM
50481
50482# Whether we need soft or hard links.
50483LN_S=$lt_LN_S
50484
50485# What is the maximum length of a command?
50486max_cmd_len=$max_cmd_len
50487
50488# Object file suffix (normally "o").
50489objext=$ac_objext
50490
50491# Executable file suffix (normally "").
50492exeext=$exeext
50493
50494# whether the shell understands "unset".
50495lt_unset=$lt_unset
50496
50497# turn spaces into newlines.
50498SP2NL=$lt_lt_SP2NL
50499
50500# turn newlines into spaces.
50501NL2SP=$lt_lt_NL2SP
50502
cae5b340
AX
50503# How to create reloadable object files.
50504reload_flag=$lt_reload_flag
50505reload_cmds=$lt_reload_cmds
ea04106b
AX
50506
50507# An object symbol dumper.
50508OBJDUMP=$lt_OBJDUMP
50509
50510# Method to check whether dependent libraries are shared objects.
50511deplibs_check_method=$lt_deplibs_check_method
50512
cae5b340 50513# Command to use when deplibs_check_method == "file_magic".
ea04106b
AX
50514file_magic_cmd=$lt_file_magic_cmd
50515
ea04106b
AX
50516# The archiver.
50517AR=$lt_AR
ea04106b
AX
50518AR_FLAGS=$lt_AR_FLAGS
50519
ea04106b
AX
50520# A symbol stripping program.
50521STRIP=$lt_STRIP
50522
50523# Commands used to install an old-style archive.
50524RANLIB=$lt_RANLIB
50525old_postinstall_cmds=$lt_old_postinstall_cmds
50526old_postuninstall_cmds=$lt_old_postuninstall_cmds
50527
ea04106b
AX
50528# A C compiler.
50529LTCC=$lt_CC
50530
50531# LTCC compiler flags.
50532LTCFLAGS=$lt_CFLAGS
50533
50534# Take the output of nm and produce a listing of raw symbols and C names.
50535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50536
50537# Transform the output of nm in a proper C declaration.
50538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50539
50540# Transform the output of nm in a C name address pair.
50541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50542
50543# Transform the output of nm in a C name address pair when lib prefix is needed.
50544global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
50545
ea04106b
AX
50546# The name of the directory that contains temporary libtool files.
50547objdir=$objdir
50548
cae5b340
AX
50549# Shell to use when invoking shell scripts.
50550SHELL=$lt_SHELL
50551
50552# An echo program that does not interpret backslashes.
50553ECHO=$lt_ECHO
50554
ea04106b
AX
50555# Used to examine libraries when file_magic_cmd begins with "file".
50556MAGIC_CMD=$MAGIC_CMD
50557
50558# Must we lock files when doing compilation?
50559need_locks=$lt_need_locks
50560
ea04106b
AX
50561# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
50562DSYMUTIL=$lt_DSYMUTIL
50563
50564# Tool to change global to local symbols on Mac OS X.
50565NMEDIT=$lt_NMEDIT
50566
50567# Tool to manipulate fat objects and archives on Mac OS X.
50568LIPO=$lt_LIPO
50569
50570# ldd/readelf like tool for Mach-O binaries on Mac OS X.
50571OTOOL=$lt_OTOOL
50572
50573# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
50574OTOOL64=$lt_OTOOL64
50575
50576# Old archive suffix (normally "a").
50577libext=$libext
50578
50579# Shared library suffix (normally ".so").
50580shrext_cmds=$lt_shrext_cmds
50581
50582# The commands to extract the exported symbol list from a shared archive.
50583extract_expsyms_cmds=$lt_extract_expsyms_cmds
50584
50585# Variables whose values should be saved in libtool wrapper scripts and
50586# restored at link time.
50587variables_saved_for_relink=$lt_variables_saved_for_relink
50588
50589# Do we need the "lib" prefix for modules?
50590need_lib_prefix=$need_lib_prefix
50591
50592# Do we need a version for libraries?
50593need_version=$need_version
50594
50595# Library versioning type.
50596version_type=$version_type
50597
50598# Shared library runtime path variable.
50599runpath_var=$runpath_var
50600
50601# Shared library path variable.
50602shlibpath_var=$shlibpath_var
50603
50604# Is shlibpath searched before the hard-coded library search path?
50605shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50606
50607# Format of library name prefix.
50608libname_spec=$lt_libname_spec
50609
50610# List of archive names. First name is the real one, the rest are links.
50611# The last name is the one that the linker finds with -lNAME
50612library_names_spec=$lt_library_names_spec
50613
50614# The coded name of the library, if different from the real name.
50615soname_spec=$lt_soname_spec
50616
ea04106b
AX
50617# Command to use after installation of a shared archive.
50618postinstall_cmds=$lt_postinstall_cmds
50619
50620# Command to use after uninstallation of a shared archive.
50621postuninstall_cmds=$lt_postuninstall_cmds
50622
50623# Commands used to finish a libtool library installation in a directory.
50624finish_cmds=$lt_finish_cmds
50625
50626# As "finish_cmds", except a single script fragment to be evaled but
50627# not shown.
50628finish_eval=$lt_finish_eval
50629
50630# Whether we should hardcode library paths into libraries.
50631hardcode_into_libs=$hardcode_into_libs
50632
50633# Compile-time system search path for libraries.
50634sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50635
cae5b340
AX
50636# Run-time system search path for libraries.
50637sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
ea04106b
AX
50638
50639# Whether dlopen is supported.
50640dlopen_support=$enable_dlopen
50641
50642# Whether dlopen of programs is supported.
50643dlopen_self=$enable_dlopen_self
50644
50645# Whether dlopen of statically linked programs is supported.
50646dlopen_self_static=$enable_dlopen_self_static
50647
50648# Commands to strip libraries.
50649old_striplib=$lt_old_striplib
50650striplib=$lt_striplib
50651
50652
50653# The linker used to build libraries.
50654LD=$lt_LD
50655
ea04106b
AX
50656# Commands used to build an old-style archive.
50657old_archive_cmds=$lt_old_archive_cmds
50658
50659# A language specific compiler.
50660CC=$lt_compiler
50661
50662# Is the compiler the GNU compiler?
50663with_gcc=$GCC
50664
50665# Compiler flag to turn off builtin functions.
50666no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
50667
ea04106b
AX
50668# How to pass a linker flag through the compiler.
50669wl=$lt_lt_prog_compiler_wl
50670
cae5b340
AX
50671# Additional compiler flags for building library objects.
50672pic_flag=$lt_lt_prog_compiler_pic
50673
ea04106b
AX
50674# Compiler flag to prevent dynamic linking.
50675link_static_flag=$lt_lt_prog_compiler_static
50676
50677# Does compiler simultaneously support -c and -o options?
50678compiler_c_o=$lt_lt_cv_prog_compiler_c_o
50679
50680# Whether or not to add -lc for building shared libraries.
50681build_libtool_need_lc=$archive_cmds_need_lc
50682
50683# Whether or not to disallow shared libs when runtime libs are static.
50684allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
50685
50686# Compiler flag to allow reflexive dlopens.
50687export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
50688
50689# Compiler flag to generate shared objects directly from archives.
50690whole_archive_flag_spec=$lt_whole_archive_flag_spec
50691
50692# Whether the compiler copes with passing no objects directly.
50693compiler_needs_object=$lt_compiler_needs_object
50694
50695# Create an old-style archive from a shared archive.
50696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
50697
50698# Create a temporary old-style archive to link instead of a shared archive.
50699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
50700
50701# Commands used to build a shared archive.
50702archive_cmds=$lt_archive_cmds
50703archive_expsym_cmds=$lt_archive_expsym_cmds
50704
50705# Commands used to build a loadable module if different from building
50706# a shared archive.
50707module_cmds=$lt_module_cmds
50708module_expsym_cmds=$lt_module_expsym_cmds
50709
50710# Whether we are building with GNU ld or not.
50711with_gnu_ld=$lt_with_gnu_ld
50712
50713# Flag that allows shared libraries with undefined symbols to be built.
50714allow_undefined_flag=$lt_allow_undefined_flag
50715
50716# Flag that enforces no undefined symbols.
50717no_undefined_flag=$lt_no_undefined_flag
50718
50719# Flag to hardcode \$libdir into a binary during linking.
50720# This must work even if \$libdir does not exist
50721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
50722
cae5b340
AX
50723# If ld is used when linking, flag to hardcode \$libdir into a binary
50724# during linking. This must work even if \$libdir does not exist.
50725hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
50726
ea04106b
AX
50727# Whether we need a single "-rpath" flag with a separated argument.
50728hardcode_libdir_separator=$lt_hardcode_libdir_separator
50729
cae5b340 50730# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
ea04106b
AX
50731# DIR into the resulting binary.
50732hardcode_direct=$hardcode_direct
50733
cae5b340 50734# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
ea04106b 50735# DIR into the resulting binary and the resulting library dependency is
cae5b340 50736# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
ea04106b
AX
50737# library is relocated.
50738hardcode_direct_absolute=$hardcode_direct_absolute
50739
50740# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50741# into the resulting binary.
50742hardcode_minus_L=$hardcode_minus_L
50743
50744# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50745# into the resulting binary.
50746hardcode_shlibpath_var=$hardcode_shlibpath_var
50747
50748# Set to "yes" if building a shared library automatically hardcodes DIR
50749# into the library and all subsequent libraries and executables linked
50750# against it.
50751hardcode_automatic=$hardcode_automatic
50752
50753# Set to yes if linker adds runtime paths of dependent libraries
50754# to runtime path list.
50755inherit_rpath=$inherit_rpath
50756
50757# Whether libtool must link a program against all its dependency libraries.
50758link_all_deplibs=$link_all_deplibs
50759
cae5b340
AX
50760# Fix the shell variable \$srcfile for the compiler.
50761fix_srcfile_path=$lt_fix_srcfile_path
50762
ea04106b
AX
50763# Set to "yes" if exported symbols are required.
50764always_export_symbols=$always_export_symbols
50765
50766# The commands to list exported symbols.
50767export_symbols_cmds=$lt_export_symbols_cmds
50768
50769# Symbols that should not be listed in the preloaded symbols.
50770exclude_expsyms=$lt_exclude_expsyms
50771
50772# Symbols that must always be exported.
50773include_expsyms=$lt_include_expsyms
50774
50775# Commands necessary for linking programs (against libraries) with templates.
50776prelink_cmds=$lt_prelink_cmds
50777
ea04106b
AX
50778# Specify filename containing input files.
50779file_list_spec=$lt_file_list_spec
50780
50781# How to hardcode a shared library path into an executable.
50782hardcode_action=$hardcode_action
50783
50784# ### END LIBTOOL CONFIG
50785
50786_LT_EOF
50787
50788 case $host_os in
50789 aix3*)
50790 cat <<\_LT_EOF >> "$cfgfile"
50791# AIX sometimes has problems with the GCC collect2 program. For some
50792# reason, if we set the COLLECT_NAMES environment variable, the problems
50793# vanish in a puff of smoke.
cae5b340 50794if test "X${COLLECT_NAMES+set}" != Xset; then
ea04106b
AX
50795 COLLECT_NAMES=
50796 export COLLECT_NAMES
50797fi
50798_LT_EOF
50799 ;;
50800 esac
50801
50802
cae5b340 50803ltmain="$ac_aux_dir/ltmain.sh"
ea04106b
AX
50804
50805
50806 # We use sed instead of cat because bash on DJGPP gets confused if
50807 # if finds mixed CR/LF and LF-only lines. Since sed operates in
50808 # text mode, it properly converts lines to CR/LF. This bash problem
50809 # is reportedly fixed, but why not run on old versions too?
cae5b340
AX
50810 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
50811 || (rm -f "$cfgfile"; exit 1)
50812
50813 case $xsi_shell in
50814 yes)
50815 cat << \_LT_EOF >> "$cfgfile"
50816
50817# func_dirname file append nondir_replacement
50818# Compute the dirname of FILE. If nonempty, add APPEND to the result,
50819# otherwise set result to NONDIR_REPLACEMENT.
50820func_dirname ()
50821{
50822 case ${1} in
50823 */*) func_dirname_result="${1%/*}${2}" ;;
50824 * ) func_dirname_result="${3}" ;;
50825 esac
50826}
50827
50828# func_basename file
50829func_basename ()
50830{
50831 func_basename_result="${1##*/}"
50832}
50833
50834# func_dirname_and_basename file append nondir_replacement
50835# perform func_basename and func_dirname in a single function
50836# call:
50837# dirname: Compute the dirname of FILE. If nonempty,
50838# add APPEND to the result, otherwise set result
50839# to NONDIR_REPLACEMENT.
50840# value returned in "$func_dirname_result"
50841# basename: Compute filename of FILE.
50842# value retuned in "$func_basename_result"
50843# Implementation must be kept synchronized with func_dirname
50844# and func_basename. For efficiency, we do not delegate to
50845# those functions but instead duplicate the functionality here.
50846func_dirname_and_basename ()
50847{
50848 case ${1} in
50849 */*) func_dirname_result="${1%/*}${2}" ;;
50850 * ) func_dirname_result="${3}" ;;
50851 esac
50852 func_basename_result="${1##*/}"
50853}
50854
50855# func_stripname prefix suffix name
50856# strip PREFIX and SUFFIX off of NAME.
50857# PREFIX and SUFFIX must not contain globbing or regex special
50858# characters, hashes, percent signs, but SUFFIX may contain a leading
50859# dot (in which case that matches only a dot).
50860func_stripname ()
50861{
50862 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
50863 # positional parameters, so assign one to ordinary parameter first.
50864 func_stripname_result=${3}
50865 func_stripname_result=${func_stripname_result#"${1}"}
50866 func_stripname_result=${func_stripname_result%"${2}"}
50867}
50868
50869# func_opt_split
50870func_opt_split ()
50871{
50872 func_opt_split_opt=${1%%=*}
50873 func_opt_split_arg=${1#*=}
50874}
50875
50876# func_lo2o object
50877func_lo2o ()
50878{
50879 case ${1} in
50880 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
50881 *) func_lo2o_result=${1} ;;
50882 esac
50883}
50884
50885# func_xform libobj-or-source
50886func_xform ()
50887{
50888 func_xform_result=${1%.*}.lo
50889}
50890
50891# func_arith arithmetic-term...
50892func_arith ()
50893{
50894 func_arith_result=$(( $* ))
50895}
50896
50897# func_len string
50898# STRING may not start with a hyphen.
50899func_len ()
50900{
50901 func_len_result=${#1}
50902}
50903
50904_LT_EOF
50905 ;;
50906 *) # Bourne compatible functions.
50907 cat << \_LT_EOF >> "$cfgfile"
50908
50909# func_dirname file append nondir_replacement
50910# Compute the dirname of FILE. If nonempty, add APPEND to the result,
50911# otherwise set result to NONDIR_REPLACEMENT.
50912func_dirname ()
50913{
50914 # Extract subdirectory from the argument.
50915 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
50916 if test "X$func_dirname_result" = "X${1}"; then
50917 func_dirname_result="${3}"
50918 else
50919 func_dirname_result="$func_dirname_result${2}"
50920 fi
50921}
50922
50923# func_basename file
50924func_basename ()
50925{
50926 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
50927}
50928
50929
50930# func_stripname prefix suffix name
50931# strip PREFIX and SUFFIX off of NAME.
50932# PREFIX and SUFFIX must not contain globbing or regex special
50933# characters, hashes, percent signs, but SUFFIX may contain a leading
50934# dot (in which case that matches only a dot).
50935# func_strip_suffix prefix name
50936func_stripname ()
50937{
50938 case ${2} in
50939 .*) func_stripname_result=`$ECHO "X${3}" \
50940 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
50941 *) func_stripname_result=`$ECHO "X${3}" \
50942 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
50943 esac
50944}
50945
50946# sed scripts:
50947my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
50948my_sed_long_arg='1s/^-[^=]*=//'
50949
50950# func_opt_split
50951func_opt_split ()
50952{
50953 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
50954 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
50955}
50956
50957# func_lo2o object
50958func_lo2o ()
50959{
50960 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
50961}
50962
50963# func_xform libobj-or-source
50964func_xform ()
50965{
50966 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
50967}
50968
50969# func_arith arithmetic-term...
50970func_arith ()
50971{
50972 func_arith_result=`expr "$@"`
50973}
50974
50975# func_len string
50976# STRING may not start with a hyphen.
50977func_len ()
50978{
50979 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50980}
50981
50982_LT_EOF
50983esac
50984
50985case $lt_shell_append in
50986 yes)
50987 cat << \_LT_EOF >> "$cfgfile"
50988
50989# func_append var value
50990# Append VALUE to the end of shell variable VAR.
50991func_append ()
50992{
50993 eval "$1+=\$2"
50994}
50995_LT_EOF
50996 ;;
50997 *)
50998 cat << \_LT_EOF >> "$cfgfile"
50999
51000# func_append var value
51001# Append VALUE to the end of shell variable VAR.
51002func_append ()
51003{
51004 eval "$1=\$$1\$2"
51005}
51006
51007_LT_EOF
51008 ;;
51009 esac
51010
51011
51012 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
51013 || (rm -f "$cfgfile"; exit 1)
ea04106b 51014
cae5b340 51015 mv -f "$cfgfile" "$ofile" ||
ea04106b
AX
51016 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
51017 chmod +x "$ofile"
51018
51019 ;;
51020
51021 esac
51022done # for ac_tag
51023
51024
cae5b340 51025{ (exit 0); exit 0; }
ea04106b 51026_ACEOF
cae5b340 51027chmod +x $CONFIG_STATUS
ea04106b
AX
51028ac_clean_files=$ac_clean_files_save
51029
51030test $ac_write_fail = 0 ||
cae5b340
AX
51031 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
51032$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
51033 { (exit 1); exit 1; }; }
ea04106b
AX
51034
51035
51036# configure is writing to config.log, and then calls config.status.
51037# config.status does its own redirection, appending to config.log.
51038# Unfortunately, on DOS this fails, as config.log is still kept open
51039# by configure, so config.status won't be able to write to it; its
51040# output is simply discarded. So we exec the FD to /dev/null,
51041# effectively closing config.log, so it can be properly (re)opened and
51042# appended to by config.status. When coming back to configure, we
51043# need to make the FD available again.
51044if test "$no_create" != yes; then
51045 ac_cs_success=:
51046 ac_config_status_args=
51047 test "$silent" = yes &&
51048 ac_config_status_args="$ac_config_status_args --quiet"
51049 exec 5>/dev/null
51050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51051 exec 5>>config.log
51052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51053 # would make configure fail if this is the last instruction.
cae5b340 51054 $ac_cs_success || { (exit 1); exit 1; }
ea04106b
AX
51055fi
51056if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cae5b340 51057 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ea04106b
AX
51058$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
51059fi
51060